@ipv9/tokentracker-cli 0.39.2 → 0.39.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +43 -3
  2. package/dashboard/dist/assets/{ActivityHeatmap-COavTMVP.js → ActivityHeatmap-DupMp_9l.js} +1 -1
  3. package/dashboard/dist/assets/{Card-BblP5ok2.js → Card-MYizSUb1.js} +1 -1
  4. package/dashboard/dist/assets/DashboardPage-DgfB74ho.js +19 -0
  5. package/dashboard/dist/assets/{DevicePage-DG0T2vaG.js → DevicePage-tEOIlH-F.js} +1 -1
  6. package/dashboard/dist/assets/{DialogTitle-1y4WEerV.js → DialogTitle-l9PEaRgH.js} +1 -1
  7. package/dashboard/dist/assets/{FadeIn-jKUQWO7U.js → FadeIn-BclkzWTA.js} +1 -1
  8. package/dashboard/dist/assets/{InsforgeUserHeaderControls-IDtiw2Wd.js → InsforgeUserHeaderControls-D0XlV-oX.js} +1 -1
  9. package/dashboard/dist/assets/{IpCheckPage-BPDbZ-Os.js → IpCheckPage-BTRIIrgJ.js} +1 -1
  10. package/dashboard/dist/assets/{LandingPage-DdhGPdVl.js → LandingPage-8megwe50.js} +1 -1
  11. package/dashboard/dist/assets/{LeaderboardAvatar-BJhQZmam.js → LeaderboardAvatar-BV1UiDwX.js} +1 -1
  12. package/dashboard/dist/assets/{LeaderboardPage-CWL3PHJa.js → LeaderboardPage-Do8q6zE0.js} +3 -3
  13. package/dashboard/dist/assets/{LeaderboardProfileModal-CeJVFnE_.js → LeaderboardProfileModal-DeKIoMlR.js} +1 -1
  14. package/dashboard/dist/assets/{LeaderboardProfilePage-BHkeWk6I.js → LeaderboardProfilePage-BwRQXm7S.js} +1 -1
  15. package/dashboard/dist/assets/{LimitsPage-DQ7MqbRV.js → LimitsPage-CSMrR78h.js} +1 -1
  16. package/dashboard/dist/assets/{LocalOnlyNotice-Bs4XyBee.js → LocalOnlyNotice-CUdHhlrC.js} +1 -1
  17. package/dashboard/dist/assets/{LoginPage-Bkwx4LK-.js → LoginPage-X3dGB5KJ.js} +1 -1
  18. package/dashboard/dist/assets/{PopoverPopup-WfaurCS6.js → PopoverPopup-ShPzXbyH.js} +1 -1
  19. package/dashboard/dist/assets/{Select-C3Uz7WKE.js → Select-DFM7i7RL.js} +1 -1
  20. package/dashboard/dist/assets/{SelectItemText-6pJJg6UW.js → SelectItemText-DwkxrsyM.js} +1 -1
  21. package/dashboard/dist/assets/{SettingsPage-CofXaEmG.js → SettingsPage-BaFEjcYg.js} +1 -1
  22. package/dashboard/dist/assets/{SkillsPage-BAJT9ekc.js → SkillsPage-B3eZ7Xoi.js} +1 -1
  23. package/dashboard/dist/assets/{WidgetsPage-Be8VGxtC.js → WidgetsPage-BJG30H3H.js} +1 -1
  24. package/dashboard/dist/assets/{WrappedPage-ByYPGIH0.js → WrappedPage-BxCUoD83.js} +1 -1
  25. package/dashboard/dist/assets/{arrow-up-right-D-qqGuaL.js → arrow-up-right-BsPjBASe.js} +1 -1
  26. package/dashboard/dist/assets/{download-CioezpA9.js → download-6LUdhAxC.js} +1 -1
  27. package/dashboard/dist/assets/{info-DEPCiLwq.js → info-BMwZlaMC.js} +1 -1
  28. package/dashboard/dist/assets/{main-BWDGptcQ.css → main-C80JQmCi.css} +1 -1
  29. package/dashboard/dist/assets/main-CfE6FaES.js +978 -0
  30. package/dashboard/dist/assets/{use-limits-display-prefs-718ayTOP.js → use-limits-display-prefs-CM3EFl6c.js} +1 -1
  31. package/dashboard/dist/assets/{use-native-settings-CYvlJmCL.js → use-native-settings-BBZrO1fx.js} +1 -1
  32. package/dashboard/dist/assets/{use-spring-CjxUbIJ2.js → use-spring-qlUw6kK4.js} +1 -1
  33. package/dashboard/dist/assets/{use-usage-limits-DuxnBkoi.js → use-usage-limits-Dt-cVgAc.js} +1 -1
  34. package/dashboard/dist/assets/{useCurrency-B7JRWfUs.js → useCurrency-DC7lXHlu.js} +1 -1
  35. package/dashboard/dist/assets/{useOpenInteractionType-BeY2HQjO.js → useOpenInteractionType-NVSaov8J.js} +1 -1
  36. package/dashboard/dist/index.html +2 -2
  37. package/dashboard/dist/share.html +2 -2
  38. package/package.json +1 -1
  39. package/src/lib/pricing/seed-snapshot.json +1 -1
  40. package/dashboard/dist/assets/DashboardPage-BPavH2-4.js +0 -19
  41. package/dashboard/dist/assets/main-BIMrhne9.js +0 -971
@@ -0,0 +1,978 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LimitsPage-CSMrR78h.js","assets/use-usage-limits-Dt-cVgAc.js","assets/use-limits-display-prefs-CM3EFl6c.js","assets/Card-MYizSUb1.js","assets/FadeIn-BclkzWTA.js","assets/LocalOnlyNotice-CUdHhlrC.js","assets/arrow-up-right-BsPjBASe.js","assets/download-6LUdhAxC.js","assets/LeaderboardPage-Do8q6zE0.js","assets/Select-DFM7i7RL.js","assets/SelectItemText-DwkxrsyM.js","assets/useOpenInteractionType-NVSaov8J.js","assets/useCurrency-DC7lXHlu.js","assets/LeaderboardAvatar-BV1UiDwX.js","assets/DashboardPage-DgfB74ho.js","assets/ActivityHeatmap-DupMp_9l.js","assets/info-BMwZlaMC.js","assets/DialogTitle-l9PEaRgH.js","assets/use-spring-qlUw6kK4.js","assets/PopoverPopup-ShPzXbyH.js","assets/LandingPage-8megwe50.js","assets/InsforgeUserHeaderControls-D0XlV-oX.js","assets/LeaderboardProfilePage-BwRQXm7S.js","assets/LeaderboardProfileModal-DeKIoMlR.js","assets/SettingsPage-BaFEjcYg.js","assets/use-native-settings-BBZrO1fx.js","assets/SkillsPage-B3eZ7Xoi.js","assets/WidgetsPage-BJG30H3H.js"])))=>i.map(i=>d[i]);
2
+ function aT(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(a,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function b0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rT(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function a(){var o=!1;try{o=this instanceof a}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}),n}var hf={exports:{}},Bs={},ff={exports:{}},et={};var ub;function iT(){if(ub)return et;ub=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function v(I){return I===null||typeof I!="object"?null:(I=y&&I[y]||I["@@iterator"],typeof I=="function"?I:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function S(I,W,ge){this.props=I,this.context=W,this.refs=C,this.updater=ge||_}S.prototype.isReactComponent={},S.prototype.setState=function(I,W){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,W,"setState")},S.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function M(){}M.prototype=S.prototype;function R(I,W,ge){this.props=I,this.context=W,this.refs=C,this.updater=ge||_}var A=R.prototype=new M;A.constructor=R,x(A,S.prototype),A.isPureReactComponent=!0;var E=Array.isArray,B=Object.prototype.hasOwnProperty,$={current:null},V={key:!0,ref:!0,__self:!0,__source:!0};function P(I,W,ge){var pe,me={},be=null,Be=null;if(W!=null)for(pe in W.ref!==void 0&&(Be=W.ref),W.key!==void 0&&(be=""+W.key),W)B.call(W,pe)&&!V.hasOwnProperty(pe)&&(me[pe]=W[pe]);var Ye=arguments.length-2;if(Ye===1)me.children=ge;else if(1<Ye){for(var Ne=Array(Ye),Rt=0;Rt<Ye;Rt++)Ne[Rt]=arguments[Rt+2];me.children=Ne}if(I&&I.defaultProps)for(pe in Ye=I.defaultProps,Ye)me[pe]===void 0&&(me[pe]=Ye[pe]);return{$$typeof:e,type:I,key:be,ref:Be,props:me,_owner:$.current}}function Z(I,W){return{$$typeof:e,type:I.type,key:W,ref:I.ref,props:I.props,_owner:I._owner}}function X(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function fe(I){var W={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(ge){return W[ge]})}var he=/\/+/g;function J(I,W){return typeof I=="object"&&I!==null&&I.key!=null?fe(""+I.key):W.toString(36)}function re(I,W,ge,pe,me){var be=typeof I;(be==="undefined"||be==="boolean")&&(I=null);var Be=!1;if(I===null)Be=!0;else switch(be){case"string":case"number":Be=!0;break;case"object":switch(I.$$typeof){case e:case t:Be=!0}}if(Be)return Be=I,me=me(Be),I=pe===""?"."+J(Be,0):pe,E(me)?(ge="",I!=null&&(ge=I.replace(he,"$&/")+"/"),re(me,W,ge,"",function(Rt){return Rt})):me!=null&&(X(me)&&(me=Z(me,ge+(!me.key||Be&&Be.key===me.key?"":(""+me.key).replace(he,"$&/")+"/")+I)),W.push(me)),1;if(Be=0,pe=pe===""?".":pe+":",E(I))for(var Ye=0;Ye<I.length;Ye++){be=I[Ye];var Ne=pe+J(be,Ye);Be+=re(be,W,ge,Ne,me)}else if(Ne=v(I),typeof Ne=="function")for(I=Ne.call(I),Ye=0;!(be=I.next()).done;)be=be.value,Ne=pe+J(be,Ye++),Be+=re(be,W,ge,Ne,me);else if(be==="object")throw W=String(I),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return Be}function ue(I,W,ge){if(I==null)return I;var pe=[],me=0;return re(I,pe,"","",function(be){return W.call(ge,be,me++)}),pe}function Q(I){if(I._status===-1){var W=I._result;W=W(),W.then(function(ge){(I._status===0||I._status===-1)&&(I._status=1,I._result=ge)},function(ge){(I._status===0||I._status===-1)&&(I._status=2,I._result=ge)}),I._status===-1&&(I._status=0,I._result=W)}if(I._status===1)return I._result.default;throw I._result}var ie={current:null},F={transition:null},Y={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:F,ReactCurrentOwner:$};function z(){throw Error("act(...) is not supported in production builds of React.")}return et.Children={map:ue,forEach:function(I,W,ge){ue(I,function(){W.apply(this,arguments)},ge)},count:function(I){var W=0;return ue(I,function(){W++}),W},toArray:function(I){return ue(I,function(W){return W})||[]},only:function(I){if(!X(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},et.Component=S,et.Fragment=n,et.Profiler=o,et.PureComponent=R,et.StrictMode=a,et.Suspense=h,et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,et.act=z,et.cloneElement=function(I,W,ge){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var pe=x({},I.props),me=I.key,be=I.ref,Be=I._owner;if(W!=null){if(W.ref!==void 0&&(be=W.ref,Be=$.current),W.key!==void 0&&(me=""+W.key),I.type&&I.type.defaultProps)var Ye=I.type.defaultProps;for(Ne in W)B.call(W,Ne)&&!V.hasOwnProperty(Ne)&&(pe[Ne]=W[Ne]===void 0&&Ye!==void 0?Ye[Ne]:W[Ne])}var Ne=arguments.length-2;if(Ne===1)pe.children=ge;else if(1<Ne){Ye=Array(Ne);for(var Rt=0;Rt<Ne;Rt++)Ye[Rt]=arguments[Rt+2];pe.children=Ye}return{$$typeof:e,type:I.type,key:me,ref:be,props:pe,_owner:Be}},et.createContext=function(I){return I={$$typeof:l,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:s,_context:I},I.Consumer=I},et.createElement=P,et.createFactory=function(I){var W=P.bind(null,I);return W.type=I,W},et.createRef=function(){return{current:null}},et.forwardRef=function(I){return{$$typeof:u,render:I}},et.isValidElement=X,et.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:Q}},et.memo=function(I,W){return{$$typeof:f,type:I,compare:W===void 0?null:W}},et.startTransition=function(I){var W=F.transition;F.transition={};try{I()}finally{F.transition=W}},et.unstable_act=z,et.useCallback=function(I,W){return ie.current.useCallback(I,W)},et.useContext=function(I){return ie.current.useContext(I)},et.useDebugValue=function(){},et.useDeferredValue=function(I){return ie.current.useDeferredValue(I)},et.useEffect=function(I,W){return ie.current.useEffect(I,W)},et.useId=function(){return ie.current.useId()},et.useImperativeHandle=function(I,W,ge){return ie.current.useImperativeHandle(I,W,ge)},et.useInsertionEffect=function(I,W){return ie.current.useInsertionEffect(I,W)},et.useLayoutEffect=function(I,W){return ie.current.useLayoutEffect(I,W)},et.useMemo=function(I,W){return ie.current.useMemo(I,W)},et.useReducer=function(I,W,ge){return ie.current.useReducer(I,W,ge)},et.useRef=function(I){return ie.current.useRef(I)},et.useState=function(I){return ie.current.useState(I)},et.useSyncExternalStore=function(I,W,ge){return ie.current.useSyncExternalStore(I,W,ge)},et.useTransition=function(){return ie.current.useTransition()},et.version="18.3.1",et}var db;function sm(){return db||(db=1,ff.exports=iT()),ff.exports}var hb;function oT(){if(hb)return Bs;hb=1;var e=sm(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(u,h,f){var m,y={},v=null,_=null;f!==void 0&&(v=""+f),h.key!==void 0&&(v=""+h.key),h.ref!==void 0&&(_=h.ref);for(m in h)a.call(h,m)&&!s.hasOwnProperty(m)&&(y[m]=h[m]);if(u&&u.defaultProps)for(m in h=u.defaultProps,h)y[m]===void 0&&(y[m]=h[m]);return{$$typeof:t,type:u,key:v,ref:_,props:y,_owner:o.current}}return Bs.Fragment=n,Bs.jsx=l,Bs.jsxs=l,Bs}var fb;function sT(){return fb||(fb=1,hf.exports=oT()),hf.exports}var T=sT(),k=sm();const lm=b0(k),cm=aT({__proto__:null,default:lm},[k]);var Kc={},pf={exports:{}},Ln={},mf={exports:{}},gf={};var pb;function lT(){return pb||(pb=1,(function(e){function t(F,Y){var z=F.length;F.push(Y);e:for(;0<z;){var I=z-1>>>1,W=F[I];if(0<o(W,Y))F[I]=Y,F[z]=W,z=I;else break e}}function n(F){return F.length===0?null:F[0]}function a(F){if(F.length===0)return null;var Y=F[0],z=F.pop();if(z!==Y){F[0]=z;e:for(var I=0,W=F.length,ge=W>>>1;I<ge;){var pe=2*(I+1)-1,me=F[pe],be=pe+1,Be=F[be];if(0>o(me,z))be<W&&0>o(Be,me)?(F[I]=Be,F[be]=z,I=be):(F[I]=me,F[pe]=z,I=pe);else if(be<W&&0>o(Be,z))F[I]=Be,F[be]=z,I=be;else break e}}return Y}function o(F,Y){var z=F.sortIndex-Y.sortIndex;return z!==0?z:F.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var h=[],f=[],m=1,y=null,v=3,_=!1,x=!1,C=!1,S=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(F){for(var Y=n(f);Y!==null;){if(Y.callback===null)a(f);else if(Y.startTime<=F)a(f),Y.sortIndex=Y.expirationTime,t(h,Y);else break;Y=n(f)}}function E(F){if(C=!1,A(F),!x)if(n(h)!==null)x=!0,Q(B);else{var Y=n(f);Y!==null&&ie(E,Y.startTime-F)}}function B(F,Y){x=!1,C&&(C=!1,M(P),P=-1),_=!0;var z=v;try{for(A(Y),y=n(h);y!==null&&(!(y.expirationTime>Y)||F&&!fe());){var I=y.callback;if(typeof I=="function"){y.callback=null,v=y.priorityLevel;var W=I(y.expirationTime<=Y);Y=e.unstable_now(),typeof W=="function"?y.callback=W:y===n(h)&&a(h),A(Y)}else a(h);y=n(h)}if(y!==null)var ge=!0;else{var pe=n(f);pe!==null&&ie(E,pe.startTime-Y),ge=!1}return ge}finally{y=null,v=z,_=!1}}var $=!1,V=null,P=-1,Z=5,X=-1;function fe(){return!(e.unstable_now()-X<Z)}function he(){if(V!==null){var F=e.unstable_now();X=F;var Y=!0;try{Y=V(!0,F)}finally{Y?J():($=!1,V=null)}}else $=!1}var J;if(typeof R=="function")J=function(){R(he)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,ue=re.port2;re.port1.onmessage=he,J=function(){ue.postMessage(null)}}else J=function(){S(he,0)};function Q(F){V=F,$||($=!0,J())}function ie(F,Y){P=S(function(){F(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){x||_||(x=!0,Q(B))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(F){switch(v){case 1:case 2:case 3:var Y=3;break;default:Y=v}var z=v;v=Y;try{return F()}finally{v=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,Y){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var z=v;v=F;try{return Y()}finally{v=z}},e.unstable_scheduleCallback=function(F,Y,z){var I=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?I+z:I):z=I,F){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=z+W,F={id:m++,callback:Y,priorityLevel:F,startTime:z,expirationTime:W,sortIndex:-1},z>I?(F.sortIndex=z,t(f,F),n(h)===null&&F===n(f)&&(C?(M(P),P=-1):C=!0,ie(E,z-I))):(F.sortIndex=W,t(h,F),x||_||(x=!0,Q(B))),F},e.unstable_shouldYield=fe,e.unstable_wrapCallback=function(F){var Y=v;return function(){var z=v;v=Y;try{return F.apply(this,arguments)}finally{v=z}}}})(gf)),gf}var mb;function cT(){return mb||(mb=1,mf.exports=lT()),mf.exports}var gb;function uT(){if(gb)return Ln;gb=1;var e=sm(),t=cT();function n(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,c=1;c<arguments.length;c++)i+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,o={};function s(r,i){l(r,i),l(r+"Capture",i)}function l(r,i){for(o[r]=i,r=0;r<i.length;r++)a.add(i[r])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,f=/^[: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]*$/,m={},y={};function v(r){return h.call(y,r)?!0:h.call(m,r)?!1:f.test(r)?y[r]=!0:(m[r]=!0,!1)}function _(r,i,c,d){if(c!==null&&c.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return d?!1:c!==null?!c.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function x(r,i,c,d){if(i===null||typeof i>"u"||_(r,i,c,d))return!0;if(d)return!1;if(c!==null)switch(c.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function C(r,i,c,d,p,g,w){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=d,this.attributeNamespace=p,this.mustUseProperty=c,this.propertyName=r,this.type=i,this.sanitizeURL=g,this.removeEmptyString=w}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){S[r]=new C(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];S[i]=new C(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){S[r]=new C(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){S[r]=new C(r,2,!1,r,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(r){S[r]=new C(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){S[r]=new C(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){S[r]=new C(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){S[r]=new C(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){S[r]=new C(r,5,!1,r.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function R(r){return r[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-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(r){var i=r.replace(M,R);S[i]=new C(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(M,R);S[i]=new C(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(M,R);S[i]=new C(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){S[r]=new C(r,1,!1,r.toLowerCase(),null,!1,!1)}),S.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){S[r]=new C(r,1,!1,r.toLowerCase(),null,!0,!0)});function A(r,i,c,d){var p=S.hasOwnProperty(i)?S[i]:null;(p!==null?p.type!==0:d||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(x(i,c,p,d)&&(c=null),d||p===null?v(i)&&(c===null?r.removeAttribute(i):r.setAttribute(i,""+c)):p.mustUseProperty?r[p.propertyName]=c===null?p.type===3?!1:"":c:(i=p.attributeName,d=p.attributeNamespace,c===null?r.removeAttribute(i):(p=p.type,c=p===3||p===4&&c===!0?"":""+c,d?r.setAttributeNS(d,i,c):r.setAttribute(i,c))))}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,B=Symbol.for("react.element"),$=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),fe=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),F=Symbol.iterator;function Y(r){return r===null||typeof r!="object"?null:(r=F&&r[F]||r["@@iterator"],typeof r=="function"?r:null)}var z=Object.assign,I;function W(r){if(I===void 0)try{throw Error()}catch(c){var i=c.stack.trim().match(/\n( *(at )?)/);I=i&&i[1]||""}return`
3
+ `+I+r}var ge=!1;function pe(r,i){if(!r||ge)return"";ge=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(q){var d=q}Reflect.construct(r,[],i)}else{try{i.call()}catch(q){d=q}r.call(i.prototype)}else{try{throw Error()}catch(q){d=q}r()}}catch(q){if(q&&d&&typeof q.stack=="string"){for(var p=q.stack.split(`
4
+ `),g=d.stack.split(`
5
+ `),w=p.length-1,D=g.length-1;1<=w&&0<=D&&p[w]!==g[D];)D--;for(;1<=w&&0<=D;w--,D--)if(p[w]!==g[D]){if(w!==1||D!==1)do if(w--,D--,0>D||p[w]!==g[D]){var O=`
6
+ `+p[w].replace(" at new "," at ");return r.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",r.displayName)),O}while(1<=w&&0<=D);break}}}finally{ge=!1,Error.prepareStackTrace=c}return(r=r?r.displayName||r.name:"")?W(r):""}function me(r){switch(r.tag){case 5:return W(r.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return r=pe(r.type,!1),r;case 11:return r=pe(r.type.render,!1),r;case 1:return r=pe(r.type,!0),r;default:return""}}function be(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case V:return"Fragment";case $:return"Portal";case Z:return"Profiler";case P:return"StrictMode";case J:return"Suspense";case re:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case fe:return(r.displayName||"Context")+".Consumer";case X:return(r._context.displayName||"Context")+".Provider";case he:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ue:return i=r.displayName||null,i!==null?i:be(r.type)||"Memo";case Q:i=r._payload,r=r._init;try{return be(r(i))}catch{}}return null}function Be(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return be(i);case 8:return i===P?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Ye(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ne(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Rt(r){var i=Ne(r)?"checked":"value",c=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),d=""+r[i];if(!r.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,g=c.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return p.call(this)},set:function(w){d=""+w,g.call(this,w)}}),Object.defineProperty(r,i,{enumerable:c.enumerable}),{getValue:function(){return d},setValue:function(w){d=""+w},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function Mn(r){r._valueTracker||(r._valueTracker=Rt(r))}function Pn(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var c=i.getValue(),d="";return r&&(d=Ne(r)?r.checked?"true":"false":r.value),r=d,r!==c?(i.setValue(r),!0):!1}function mt(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Jt(r,i){var c=i.checked;return z({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??r._wrapperState.initialChecked})}function oi(r,i){var c=i.defaultValue==null?"":i.defaultValue,d=i.checked!=null?i.checked:i.defaultChecked;c=Ye(i.value!=null?i.value:c),r._wrapperState={initialChecked:d,initialValue:c,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function qi(r,i){i=i.checked,i!=null&&A(r,"checked",i,!1)}function Nn(r,i){qi(r,i);var c=Ye(i.value),d=i.type;if(c!=null)d==="number"?(c===0&&r.value===""||r.value!=c)&&(r.value=""+c):r.value!==""+c&&(r.value=""+c);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?pr(r,i.type,c):i.hasOwnProperty("defaultValue")&&pr(r,i.type,Ye(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function Yi(r,i,c){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var d=i.type;if(!(d!=="submit"&&d!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,c||i===r.value||(r.value=i),r.defaultValue=i}c=r.name,c!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,c!==""&&(r.name=c)}function pr(r,i,c){(i!=="number"||mt(r.ownerDocument)!==r)&&(c==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+c&&(r.defaultValue=""+c))}var Sa=Array.isArray;function pn(r,i,c,d){if(r=r.options,i){i={};for(var p=0;p<c.length;p++)i["$"+c[p]]=!0;for(c=0;c<r.length;c++)p=i.hasOwnProperty("$"+r[c].value),r[c].selected!==p&&(r[c].selected=p),p&&d&&(r[c].defaultSelected=!0)}else{for(c=""+Ye(c),i=null,p=0;p<r.length;p++){if(r[p].value===c){r[p].selected=!0,d&&(r[p].defaultSelected=!0);return}i!==null||r[p].disabled||(i=r[p])}i!==null&&(i.selected=!0)}}function si(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return z({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Zi(r,i){var c=i.value;if(c==null){if(c=i.children,i=i.defaultValue,c!=null){if(i!=null)throw Error(n(92));if(Sa(c)){if(1<c.length)throw Error(n(93));c=c[0]}i=c}i==null&&(i=""),c=i}r._wrapperState={initialValue:Ye(c)}}function Ke(r,i){var c=Ye(i.value),d=Ye(i.defaultValue);c!=null&&(c=""+c,c!==r.value&&(r.value=c),i.defaultValue==null&&r.defaultValue!==c&&(r.defaultValue=c)),d!=null&&(r.defaultValue=""+d)}function Ve(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function pt(r){switch(r){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 Pt(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?pt(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Ot,yt=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,c,d,p){MSApp.execUnsafeLocalFunction(function(){return r(i,c,d,p)})}:r})(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(Ot=Ot||document.createElement("div"),Ot.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Ot.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function dt(r,i){if(i){var c=r.firstChild;if(c&&c===r.lastChild&&c.nodeType===3){c.nodeValue=i;return}}r.textContent=i}var Ya={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},as=["Webkit","ms","Moz","O"];Object.keys(Ya).forEach(function(r){as.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),Ya[i]=Ya[r]})});function Gt(r,i,c){return i==null||typeof i=="boolean"||i===""?"":c||typeof i!="number"||i===0||Ya.hasOwnProperty(r)&&Ya[r]?(""+i).trim():i+"px"}function Za(r,i){r=r.style;for(var c in i)if(i.hasOwnProperty(c)){var d=c.indexOf("--")===0,p=Gt(c,i[c],d);c==="float"&&(c="cssFloat"),d?r.setProperty(c,p):r[c]=p}}var mn=z({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 Ca(r,i){if(i){if(mn[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function Ta(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){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 ca=null;function li(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var mr=null,On=null,Xa=null;function Xi(r){if(r=Ps(r)){if(typeof mr!="function")throw Error(n(280));var i=r.stateNode;i&&(i=sc(i),mr(r.stateNode,r.type,i))}}function $l(r){On?Xa?Xa.push(r):Xa=[r]:On=r}function rs(){if(On){var r=On,i=Xa;if(Xa=On=null,Xi(r),i)for(r=0;r<i.length;r++)Xi(i[r])}}function Hl(r,i){return r(i)}function is(){}var gr=!1;function ci(r,i,c){if(gr)return r(i,c);gr=!0;try{return Hl(r,i,c)}finally{gr=!1,(On!==null||Xa!==null)&&(is(),rs())}}function yr(r,i){var c=r.stateNode;if(c===null)return null;var d=sc(c);if(d===null)return null;c=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(c&&typeof c!="function")throw Error(n(231,i,typeof c));return c}var os=!1;if(u)try{var ui={};Object.defineProperty(ui,"passive",{get:function(){os=!0}}),window.addEventListener("test",ui,ui),window.removeEventListener("test",ui,ui)}catch{os=!1}function N(r,i,c,d,p,g,w,D,O){var q=Array.prototype.slice.call(arguments,3);try{i.apply(c,q)}catch(oe){this.onError(oe)}}var j=!1,K=null,ee=!1,te=null,Re={onError:function(r){j=!0,K=r}};function Le(r,i,c,d,p,g,w,D,O){j=!1,K=null,N.apply(Re,arguments)}function De(r,i,c,d,p,g,w,D,O){if(Le.apply(this,arguments),j){if(j){var q=K;j=!1,K=null}else throw Error(n(198));ee||(ee=!0,te=q)}}function ve(r){var i=r,c=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(c=i.return),r=i.return;while(r)}return i.tag===3?c:null}function Oe(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function Me(r){if(ve(r)!==r)throw Error(n(188))}function Ge(r){var i=r.alternate;if(!i){if(i=ve(r),i===null)throw Error(n(188));return i!==r?null:r}for(var c=r,d=i;;){var p=c.return;if(p===null)break;var g=p.alternate;if(g===null){if(d=p.return,d!==null){c=d;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===c)return Me(p),r;if(g===d)return Me(p),i;g=g.sibling}throw Error(n(188))}if(c.return!==d.return)c=p,d=g;else{for(var w=!1,D=p.child;D;){if(D===c){w=!0,c=p,d=g;break}if(D===d){w=!0,d=p,c=g;break}D=D.sibling}if(!w){for(D=g.child;D;){if(D===c){w=!0,c=g,d=p;break}if(D===d){w=!0,d=g,c=p;break}D=D.sibling}if(!w)throw Error(n(189))}}if(c.alternate!==d)throw Error(n(190))}if(c.tag!==3)throw Error(n(188));return c.stateNode.current===c?r:i}function ze(r){return r=Ge(r),r!==null?rt(r):null}function rt(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=rt(r);if(i!==null)return i;r=r.sibling}return null}var ut=t.unstable_scheduleCallback,It=t.unstable_cancelCallback,kt=t.unstable_shouldYield,ht=t.unstable_requestPaint,tt=t.unstable_now,rn=t.unstable_getCurrentPriorityLevel,Qa=t.unstable_ImmediatePriority,ua=t.unstable_UserBlockingPriority,da=t.unstable_NormalPriority,Ea=t.unstable_LowPriority,jn=t.unstable_IdlePriority,vr=null,Ft=null;function Qi(r){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(vr,r,void 0,(r.current.flags&128)===128)}catch{}}var on=Math.clz32?Math.clz32:sn,Ji=Math.log,nt=Math.LN2;function sn(r){return r>>>=0,r===0?32:31-(Ji(r)/nt|0)|0}var gn=64,Sn=4194304;function br(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function kr(r,i){var c=r.pendingLanes;if(c===0)return 0;var d=0,p=r.suspendedLanes,g=r.pingedLanes,w=c&268435455;if(w!==0){var D=w&~p;D!==0?d=br(D):(g&=w,g!==0&&(d=br(g)))}else w=c&~p,w!==0?d=br(w):g!==0&&(d=br(g));if(d===0)return 0;if(i!==0&&i!==d&&(i&p)===0&&(p=d&-d,g=i&-i,p>=g||p===16&&(g&4194240)!==0))return i;if((d&4)!==0&&(d|=c&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=d;0<i;)c=31-on(i),p=1<<c,d|=r[c],i&=~p;return d}function vt(r,i){switch(r){case 1:case 2:case 4:return i+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 i+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 Ja(r,i){for(var c=r.suspendedLanes,d=r.pingedLanes,p=r.expirationTimes,g=r.pendingLanes;0<g;){var w=31-on(g),D=1<<w,O=p[w];O===-1?((D&c)===0||(D&d)!==0)&&(p[w]=vt(D,i)):O<=i&&(r.expiredLanes|=D),g&=~D}}function eo(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Wl(){var r=gn;return gn<<=1,(gn&4194240)===0&&(gn=64),r}function Id(r){for(var i=[],c=0;31>c;c++)i.push(r);return i}function ss(r,i,c){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-on(i),r[i]=c}function PS(r,i){var c=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0<c;){var p=31-on(c),g=1<<p;i[p]=0,d[p]=-1,r[p]=-1,c&=~g}}function Md(r,i){var c=r.entangledLanes|=i;for(r=r.entanglements;c;){var d=31-on(c),p=1<<d;p&i|r[d]&i&&(r[d]|=i),c&=~p}}var ft=0;function Vg(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var $g,Nd,Hg,Wg,Kg,Od=!1,Kl=[],_r=null,wr=null,xr=null,ls=new Map,cs=new Map,Pr=[],SS="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 Gg(r,i){switch(r){case"focusin":case"focusout":_r=null;break;case"dragenter":case"dragleave":wr=null;break;case"mouseover":case"mouseout":xr=null;break;case"pointerover":case"pointerout":ls.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":cs.delete(i.pointerId)}}function us(r,i,c,d,p,g){return r===null||r.nativeEvent!==g?(r={blockedOn:i,domEventName:c,eventSystemFlags:d,nativeEvent:g,targetContainers:[p]},i!==null&&(i=Ps(i),i!==null&&Nd(i)),r):(r.eventSystemFlags|=d,i=r.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),r)}function CS(r,i,c,d,p){switch(i){case"focusin":return _r=us(_r,r,i,c,d,p),!0;case"dragenter":return wr=us(wr,r,i,c,d,p),!0;case"mouseover":return xr=us(xr,r,i,c,d,p),!0;case"pointerover":var g=p.pointerId;return ls.set(g,us(ls.get(g)||null,r,i,c,d,p)),!0;case"gotpointercapture":return g=p.pointerId,cs.set(g,us(cs.get(g)||null,r,i,c,d,p)),!0}return!1}function qg(r){var i=di(r.target);if(i!==null){var c=ve(i);if(c!==null){if(i=c.tag,i===13){if(i=Oe(c),i!==null){r.blockedOn=i,Kg(r.priority,function(){Hg(c)});return}}else if(i===3&&c.stateNode.current.memoizedState.isDehydrated){r.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Gl(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var c=Ud(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(c===null){c=r.nativeEvent;var d=new c.constructor(c.type,c);ca=d,c.target.dispatchEvent(d),ca=null}else return i=Ps(c),i!==null&&Nd(i),r.blockedOn=c,!1;i.shift()}return!0}function Yg(r,i,c){Gl(r)&&c.delete(i)}function TS(){Od=!1,_r!==null&&Gl(_r)&&(_r=null),wr!==null&&Gl(wr)&&(wr=null),xr!==null&&Gl(xr)&&(xr=null),ls.forEach(Yg),cs.forEach(Yg)}function ds(r,i){r.blockedOn===i&&(r.blockedOn=null,Od||(Od=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,TS)))}function hs(r){function i(p){return ds(p,r)}if(0<Kl.length){ds(Kl[0],r);for(var c=1;c<Kl.length;c++){var d=Kl[c];d.blockedOn===r&&(d.blockedOn=null)}}for(_r!==null&&ds(_r,r),wr!==null&&ds(wr,r),xr!==null&&ds(xr,r),ls.forEach(i),cs.forEach(i),c=0;c<Pr.length;c++)d=Pr[c],d.blockedOn===r&&(d.blockedOn=null);for(;0<Pr.length&&(c=Pr[0],c.blockedOn===null);)qg(c),c.blockedOn===null&&Pr.shift()}var to=E.ReactCurrentBatchConfig,ql=!0;function ES(r,i,c,d){var p=ft,g=to.transition;to.transition=null;try{ft=1,jd(r,i,c,d)}finally{ft=p,to.transition=g}}function AS(r,i,c,d){var p=ft,g=to.transition;to.transition=null;try{ft=4,jd(r,i,c,d)}finally{ft=p,to.transition=g}}function jd(r,i,c,d){if(ql){var p=Ud(r,i,c,d);if(p===null)th(r,i,d,Yl,c),Gg(r,d);else if(CS(p,r,i,c,d))d.stopPropagation();else if(Gg(r,d),i&4&&-1<SS.indexOf(r)){for(;p!==null;){var g=Ps(p);if(g!==null&&$g(g),g=Ud(r,i,c,d),g===null&&th(r,i,d,Yl,c),g===p)break;p=g}p!==null&&d.stopPropagation()}else th(r,i,d,null,c)}}var Yl=null;function Ud(r,i,c,d){if(Yl=null,r=li(d),r=di(r),r!==null)if(i=ve(r),i===null)r=null;else if(c=i.tag,c===13){if(r=Oe(i),r!==null)return r;r=null}else if(c===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return Yl=r,null}function Zg(r){switch(r){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(rn()){case Qa:return 1;case ua:return 4;case da:case Ea:return 16;case jn:return 536870912;default:return 16}default:return 16}}var Sr=null,Bd=null,Zl=null;function Xg(){if(Zl)return Zl;var r,i=Bd,c=i.length,d,p="value"in Sr?Sr.value:Sr.textContent,g=p.length;for(r=0;r<c&&i[r]===p[r];r++);var w=c-r;for(d=1;d<=w&&i[c-d]===p[g-d];d++);return Zl=p.slice(r,1<d?1-d:void 0)}function Xl(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function Ql(){return!0}function Qg(){return!1}function Un(r){function i(c,d,p,g,w){this._reactName=c,this._targetInst=p,this.type=d,this.nativeEvent=g,this.target=w,this.currentTarget=null;for(var D in r)r.hasOwnProperty(D)&&(c=r[D],this[D]=c?c(g):g[D]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ql:Qg,this.isPropagationStopped=Qg,this}return z(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Ql)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Ql)},persist:function(){},isPersistent:Ql}),i}var no={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zd=Un(no),fs=z({},no,{view:0,detail:0}),RS=Un(fs),Fd,Vd,ps,Jl=z({},fs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hd,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==ps&&(ps&&r.type==="mousemove"?(Fd=r.screenX-ps.screenX,Vd=r.screenY-ps.screenY):Vd=Fd=0,ps=r),Fd)},movementY:function(r){return"movementY"in r?r.movementY:Vd}}),Jg=Un(Jl),LS=z({},Jl,{dataTransfer:0}),DS=Un(LS),IS=z({},fs,{relatedTarget:0}),$d=Un(IS),MS=z({},no,{animationName:0,elapsedTime:0,pseudoElement:0}),NS=Un(MS),OS=z({},no,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),jS=Un(OS),US=z({},no,{data:0}),ey=Un(US),BS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zS={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"},FS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VS(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=FS[r])?!!i[r]:!1}function Hd(){return VS}var $S=z({},fs,{key:function(r){if(r.key){var i=BS[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Xl(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?zS[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hd,charCode:function(r){return r.type==="keypress"?Xl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Xl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),HS=Un($S),WS=z({},Jl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ty=Un(WS),KS=z({},fs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hd}),GS=Un(KS),qS=z({},no,{propertyName:0,elapsedTime:0,pseudoElement:0}),YS=Un(qS),ZS=z({},Jl,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),XS=Un(ZS),QS=[9,13,27,32],Wd=u&&"CompositionEvent"in window,ms=null;u&&"documentMode"in document&&(ms=document.documentMode);var JS=u&&"TextEvent"in window&&!ms,ny=u&&(!Wd||ms&&8<ms&&11>=ms),ay=" ",ry=!1;function iy(r,i){switch(r){case"keyup":return QS.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oy(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ao=!1;function eC(r,i){switch(r){case"compositionend":return oy(i);case"keypress":return i.which!==32?null:(ry=!0,ay);case"textInput":return r=i.data,r===ay&&ry?null:r;default:return null}}function tC(r,i){if(ao)return r==="compositionend"||!Wd&&iy(r,i)?(r=Xg(),Zl=Bd=Sr=null,ao=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return ny&&i.locale!=="ko"?null:i.data;default:return null}}var nC={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 sy(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!nC[r.type]:i==="textarea"}function ly(r,i,c,d){$l(d),i=rc(i,"onChange"),0<i.length&&(c=new zd("onChange","change",null,c,d),r.push({event:c,listeners:i}))}var gs=null,ys=null;function aC(r){Cy(r,0)}function ec(r){var i=lo(r);if(Pn(i))return r}function rC(r,i){if(r==="change")return i}var cy=!1;if(u){var Kd;if(u){var Gd="oninput"in document;if(!Gd){var uy=document.createElement("div");uy.setAttribute("oninput","return;"),Gd=typeof uy.oninput=="function"}Kd=Gd}else Kd=!1;cy=Kd&&(!document.documentMode||9<document.documentMode)}function dy(){gs&&(gs.detachEvent("onpropertychange",hy),ys=gs=null)}function hy(r){if(r.propertyName==="value"&&ec(ys)){var i=[];ly(i,ys,r,li(r)),ci(aC,i)}}function iC(r,i,c){r==="focusin"?(dy(),gs=i,ys=c,gs.attachEvent("onpropertychange",hy)):r==="focusout"&&dy()}function oC(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ec(ys)}function sC(r,i){if(r==="click")return ec(i)}function lC(r,i){if(r==="input"||r==="change")return ec(i)}function cC(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var ha=typeof Object.is=="function"?Object.is:cC;function vs(r,i){if(ha(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var c=Object.keys(r),d=Object.keys(i);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++){var p=c[d];if(!h.call(i,p)||!ha(r[p],i[p]))return!1}return!0}function fy(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function py(r,i){var c=fy(r);r=0;for(var d;c;){if(c.nodeType===3){if(d=r+c.textContent.length,r<=i&&d>=i)return{node:c,offset:i-r};r=d}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=fy(c)}}function my(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?my(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function gy(){for(var r=window,i=mt();i instanceof r.HTMLIFrameElement;){try{var c=typeof i.contentWindow.location.href=="string"}catch{c=!1}if(c)r=i.contentWindow;else break;i=mt(r.document)}return i}function qd(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function uC(r){var i=gy(),c=r.focusedElem,d=r.selectionRange;if(i!==c&&c&&c.ownerDocument&&my(c.ownerDocument.documentElement,c)){if(d!==null&&qd(c)){if(i=d.start,r=d.end,r===void 0&&(r=i),"selectionStart"in c)c.selectionStart=i,c.selectionEnd=Math.min(r,c.value.length);else if(r=(i=c.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var p=c.textContent.length,g=Math.min(d.start,p);d=d.end===void 0?g:Math.min(d.end,p),!r.extend&&g>d&&(p=d,d=g,g=p),p=py(c,g);var w=py(c,d);p&&w&&(r.rangeCount!==1||r.anchorNode!==p.node||r.anchorOffset!==p.offset||r.focusNode!==w.node||r.focusOffset!==w.offset)&&(i=i.createRange(),i.setStart(p.node,p.offset),r.removeAllRanges(),g>d?(r.addRange(i),r.extend(w.node,w.offset)):(i.setEnd(w.node,w.offset),r.addRange(i)))}}for(i=[],r=c;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<i.length;c++)r=i[c],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var dC=u&&"documentMode"in document&&11>=document.documentMode,ro=null,Yd=null,bs=null,Zd=!1;function yy(r,i,c){var d=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Zd||ro==null||ro!==mt(d)||(d=ro,"selectionStart"in d&&qd(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),bs&&vs(bs,d)||(bs=d,d=rc(Yd,"onSelect"),0<d.length&&(i=new zd("onSelect","select",null,i,c),r.push({event:i,listeners:d}),i.target=ro)))}function tc(r,i){var c={};return c[r.toLowerCase()]=i.toLowerCase(),c["Webkit"+r]="webkit"+i,c["Moz"+r]="moz"+i,c}var io={animationend:tc("Animation","AnimationEnd"),animationiteration:tc("Animation","AnimationIteration"),animationstart:tc("Animation","AnimationStart"),transitionend:tc("Transition","TransitionEnd")},Xd={},vy={};u&&(vy=document.createElement("div").style,"AnimationEvent"in window||(delete io.animationend.animation,delete io.animationiteration.animation,delete io.animationstart.animation),"TransitionEvent"in window||delete io.transitionend.transition);function nc(r){if(Xd[r])return Xd[r];if(!io[r])return r;var i=io[r],c;for(c in i)if(i.hasOwnProperty(c)&&c in vy)return Xd[r]=i[c];return r}var by=nc("animationend"),ky=nc("animationiteration"),_y=nc("animationstart"),wy=nc("transitionend"),xy=new Map,Py="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 Cr(r,i){xy.set(r,i),s(i,[r])}for(var Qd=0;Qd<Py.length;Qd++){var Jd=Py[Qd],hC=Jd.toLowerCase(),fC=Jd[0].toUpperCase()+Jd.slice(1);Cr(hC,"on"+fC)}Cr(by,"onAnimationEnd"),Cr(ky,"onAnimationIteration"),Cr(_y,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(wy,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ks="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(" "),pC=new Set("cancel close invalid load scroll toggle".split(" ").concat(ks));function Sy(r,i,c){var d=r.type||"unknown-event";r.currentTarget=c,De(d,i,void 0,r),r.currentTarget=null}function Cy(r,i){i=(i&4)!==0;for(var c=0;c<r.length;c++){var d=r[c],p=d.event;d=d.listeners;e:{var g=void 0;if(i)for(var w=d.length-1;0<=w;w--){var D=d[w],O=D.instance,q=D.currentTarget;if(D=D.listener,O!==g&&p.isPropagationStopped())break e;Sy(p,D,q),g=O}else for(w=0;w<d.length;w++){if(D=d[w],O=D.instance,q=D.currentTarget,D=D.listener,O!==g&&p.isPropagationStopped())break e;Sy(p,D,q),g=O}}}if(ee)throw r=te,ee=!1,te=null,r}function _t(r,i){var c=i[sh];c===void 0&&(c=i[sh]=new Set);var d=r+"__bubble";c.has(d)||(Ty(i,r,2,!1),c.add(d))}function eh(r,i,c){var d=0;i&&(d|=4),Ty(c,r,d,i)}var ac="_reactListening"+Math.random().toString(36).slice(2);function _s(r){if(!r[ac]){r[ac]=!0,a.forEach(function(c){c!=="selectionchange"&&(pC.has(c)||eh(c,!1,r),eh(c,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[ac]||(i[ac]=!0,eh("selectionchange",!1,i))}}function Ty(r,i,c,d){switch(Zg(i)){case 1:var p=ES;break;case 4:p=AS;break;default:p=jd}c=p.bind(null,i,c,r),p=void 0,!os||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),d?p!==void 0?r.addEventListener(i,c,{capture:!0,passive:p}):r.addEventListener(i,c,!0):p!==void 0?r.addEventListener(i,c,{passive:p}):r.addEventListener(i,c,!1)}function th(r,i,c,d,p){var g=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var w=d.tag;if(w===3||w===4){var D=d.stateNode.containerInfo;if(D===p||D.nodeType===8&&D.parentNode===p)break;if(w===4)for(w=d.return;w!==null;){var O=w.tag;if((O===3||O===4)&&(O=w.stateNode.containerInfo,O===p||O.nodeType===8&&O.parentNode===p))return;w=w.return}for(;D!==null;){if(w=di(D),w===null)return;if(O=w.tag,O===5||O===6){d=g=w;continue e}D=D.parentNode}}d=d.return}ci(function(){var q=g,oe=li(c),se=[];e:{var ae=xy.get(r);if(ae!==void 0){var ke=zd,xe=r;switch(r){case"keypress":if(Xl(c)===0)break e;case"keydown":case"keyup":ke=HS;break;case"focusin":xe="focus",ke=$d;break;case"focusout":xe="blur",ke=$d;break;case"beforeblur":case"afterblur":ke=$d;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ke=Jg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ke=DS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ke=GS;break;case by:case ky:case _y:ke=NS;break;case wy:ke=YS;break;case"scroll":ke=RS;break;case"wheel":ke=XS;break;case"copy":case"cut":case"paste":ke=jS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ke=ty}var Te=(i&4)!==0,Mt=!Te&&r==="scroll",H=Te?ae!==null?ae+"Capture":null:ae;Te=[];for(var U=q,G;U!==null;){G=U;var de=G.stateNode;if(G.tag===5&&de!==null&&(G=de,H!==null&&(de=yr(U,H),de!=null&&Te.push(ws(U,de,G)))),Mt)break;U=U.return}0<Te.length&&(ae=new ke(ae,xe,null,c,oe),se.push({event:ae,listeners:Te}))}}if((i&7)===0){e:{if(ae=r==="mouseover"||r==="pointerover",ke=r==="mouseout"||r==="pointerout",ae&&c!==ca&&(xe=c.relatedTarget||c.fromElement)&&(di(xe)||xe[er]))break e;if((ke||ae)&&(ae=oe.window===oe?oe:(ae=oe.ownerDocument)?ae.defaultView||ae.parentWindow:window,ke?(xe=c.relatedTarget||c.toElement,ke=q,xe=xe?di(xe):null,xe!==null&&(Mt=ve(xe),xe!==Mt||xe.tag!==5&&xe.tag!==6)&&(xe=null)):(ke=null,xe=q),ke!==xe)){if(Te=Jg,de="onMouseLeave",H="onMouseEnter",U="mouse",(r==="pointerout"||r==="pointerover")&&(Te=ty,de="onPointerLeave",H="onPointerEnter",U="pointer"),Mt=ke==null?ae:lo(ke),G=xe==null?ae:lo(xe),ae=new Te(de,U+"leave",ke,c,oe),ae.target=Mt,ae.relatedTarget=G,de=null,di(oe)===q&&(Te=new Te(H,U+"enter",xe,c,oe),Te.target=G,Te.relatedTarget=Mt,de=Te),Mt=de,ke&&xe)t:{for(Te=ke,H=xe,U=0,G=Te;G;G=oo(G))U++;for(G=0,de=H;de;de=oo(de))G++;for(;0<U-G;)Te=oo(Te),U--;for(;0<G-U;)H=oo(H),G--;for(;U--;){if(Te===H||H!==null&&Te===H.alternate)break t;Te=oo(Te),H=oo(H)}Te=null}else Te=null;ke!==null&&Ey(se,ae,ke,Te,!1),xe!==null&&Mt!==null&&Ey(se,Mt,xe,Te,!0)}}e:{if(ae=q?lo(q):window,ke=ae.nodeName&&ae.nodeName.toLowerCase(),ke==="select"||ke==="input"&&ae.type==="file")var Ee=rC;else if(sy(ae))if(cy)Ee=lC;else{Ee=oC;var je=iC}else(ke=ae.nodeName)&&ke.toLowerCase()==="input"&&(ae.type==="checkbox"||ae.type==="radio")&&(Ee=sC);if(Ee&&(Ee=Ee(r,q))){ly(se,Ee,c,oe);break e}je&&je(r,ae,q),r==="focusout"&&(je=ae._wrapperState)&&je.controlled&&ae.type==="number"&&pr(ae,"number",ae.value)}switch(je=q?lo(q):window,r){case"focusin":(sy(je)||je.contentEditable==="true")&&(ro=je,Yd=q,bs=null);break;case"focusout":bs=Yd=ro=null;break;case"mousedown":Zd=!0;break;case"contextmenu":case"mouseup":case"dragend":Zd=!1,yy(se,c,oe);break;case"selectionchange":if(dC)break;case"keydown":case"keyup":yy(se,c,oe)}var Ue;if(Wd)e:{switch(r){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else ao?iy(r,c)&&($e="onCompositionEnd"):r==="keydown"&&c.keyCode===229&&($e="onCompositionStart");$e&&(ny&&c.locale!=="ko"&&(ao||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&ao&&(Ue=Xg()):(Sr=oe,Bd="value"in Sr?Sr.value:Sr.textContent,ao=!0)),je=rc(q,$e),0<je.length&&($e=new ey($e,r,null,c,oe),se.push({event:$e,listeners:je}),Ue?$e.data=Ue:(Ue=oy(c),Ue!==null&&($e.data=Ue)))),(Ue=JS?eC(r,c):tC(r,c))&&(q=rc(q,"onBeforeInput"),0<q.length&&(oe=new ey("onBeforeInput","beforeinput",null,c,oe),se.push({event:oe,listeners:q}),oe.data=Ue))}Cy(se,i)})}function ws(r,i,c){return{instance:r,listener:i,currentTarget:c}}function rc(r,i){for(var c=i+"Capture",d=[];r!==null;){var p=r,g=p.stateNode;p.tag===5&&g!==null&&(p=g,g=yr(r,c),g!=null&&d.unshift(ws(r,g,p)),g=yr(r,i),g!=null&&d.push(ws(r,g,p))),r=r.return}return d}function oo(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Ey(r,i,c,d,p){for(var g=i._reactName,w=[];c!==null&&c!==d;){var D=c,O=D.alternate,q=D.stateNode;if(O!==null&&O===d)break;D.tag===5&&q!==null&&(D=q,p?(O=yr(c,g),O!=null&&w.unshift(ws(c,O,D))):p||(O=yr(c,g),O!=null&&w.push(ws(c,O,D)))),c=c.return}w.length!==0&&r.push({event:i,listeners:w})}var mC=/\r\n?/g,gC=/\u0000|\uFFFD/g;function Ay(r){return(typeof r=="string"?r:""+r).replace(mC,`
7
+ `).replace(gC,"")}function ic(r,i,c){if(i=Ay(i),Ay(r)!==i&&c)throw Error(n(425))}function oc(){}var nh=null,ah=null;function rh(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var ih=typeof setTimeout=="function"?setTimeout:void 0,yC=typeof clearTimeout=="function"?clearTimeout:void 0,Ry=typeof Promise=="function"?Promise:void 0,vC=typeof queueMicrotask=="function"?queueMicrotask:typeof Ry<"u"?function(r){return Ry.resolve(null).then(r).catch(bC)}:ih;function bC(r){setTimeout(function(){throw r})}function oh(r,i){var c=i,d=0;do{var p=c.nextSibling;if(r.removeChild(c),p&&p.nodeType===8)if(c=p.data,c==="/$"){if(d===0){r.removeChild(p),hs(i);return}d--}else c!=="$"&&c!=="$?"&&c!=="$!"||d++;c=p}while(c);hs(i)}function Tr(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function Ly(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var c=r.data;if(c==="$"||c==="$!"||c==="$?"){if(i===0)return r;i--}else c==="/$"&&i++}r=r.previousSibling}return null}var so=Math.random().toString(36).slice(2),Aa="__reactFiber$"+so,xs="__reactProps$"+so,er="__reactContainer$"+so,sh="__reactEvents$"+so,kC="__reactListeners$"+so,_C="__reactHandles$"+so;function di(r){var i=r[Aa];if(i)return i;for(var c=r.parentNode;c;){if(i=c[er]||c[Aa]){if(c=i.alternate,i.child!==null||c!==null&&c.child!==null)for(r=Ly(r);r!==null;){if(c=r[Aa])return c;r=Ly(r)}return i}r=c,c=r.parentNode}return null}function Ps(r){return r=r[Aa]||r[er],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function lo(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function sc(r){return r[xs]||null}var lh=[],co=-1;function Er(r){return{current:r}}function wt(r){0>co||(r.current=lh[co],lh[co]=null,co--)}function bt(r,i){co++,lh[co]=r.current,r.current=i}var Ar={},ln=Er(Ar),Cn=Er(!1),hi=Ar;function uo(r,i){var c=r.type.contextTypes;if(!c)return Ar;var d=r.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===i)return d.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in c)p[g]=i[g];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=p),p}function Tn(r){return r=r.childContextTypes,r!=null}function lc(){wt(Cn),wt(ln)}function Dy(r,i,c){if(ln.current!==Ar)throw Error(n(168));bt(ln,i),bt(Cn,c)}function Iy(r,i,c){var d=r.stateNode;if(i=i.childContextTypes,typeof d.getChildContext!="function")return c;d=d.getChildContext();for(var p in d)if(!(p in i))throw Error(n(108,Be(r)||"Unknown",p));return z({},c,d)}function cc(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Ar,hi=ln.current,bt(ln,r),bt(Cn,Cn.current),!0}function My(r,i,c){var d=r.stateNode;if(!d)throw Error(n(169));c?(r=Iy(r,i,hi),d.__reactInternalMemoizedMergedChildContext=r,wt(Cn),wt(ln),bt(ln,r)):wt(Cn),bt(Cn,c)}var tr=null,uc=!1,ch=!1;function Ny(r){tr===null?tr=[r]:tr.push(r)}function wC(r){uc=!0,Ny(r)}function Rr(){if(!ch&&tr!==null){ch=!0;var r=0,i=ft;try{var c=tr;for(ft=1;r<c.length;r++){var d=c[r];do d=d(!0);while(d!==null)}tr=null,uc=!1}catch(p){throw tr!==null&&(tr=tr.slice(r+1)),ut(Qa,Rr),p}finally{ft=i,ch=!1}}return null}var ho=[],fo=0,dc=null,hc=0,Kn=[],Gn=0,fi=null,nr=1,ar="";function pi(r,i){ho[fo++]=hc,ho[fo++]=dc,dc=r,hc=i}function Oy(r,i,c){Kn[Gn++]=nr,Kn[Gn++]=ar,Kn[Gn++]=fi,fi=r;var d=nr;r=ar;var p=32-on(d)-1;d&=~(1<<p),c+=1;var g=32-on(i)+p;if(30<g){var w=p-p%5;g=(d&(1<<w)-1).toString(32),d>>=w,p-=w,nr=1<<32-on(i)+p|c<<p|d,ar=g+r}else nr=1<<g|c<<p|d,ar=r}function uh(r){r.return!==null&&(pi(r,1),Oy(r,1,0))}function dh(r){for(;r===dc;)dc=ho[--fo],ho[fo]=null,hc=ho[--fo],ho[fo]=null;for(;r===fi;)fi=Kn[--Gn],Kn[Gn]=null,ar=Kn[--Gn],Kn[Gn]=null,nr=Kn[--Gn],Kn[Gn]=null}var Bn=null,zn=null,St=!1,fa=null;function jy(r,i){var c=Xn(5,null,null,0);c.elementType="DELETED",c.stateNode=i,c.return=r,i=r.deletions,i===null?(r.deletions=[c],r.flags|=16):i.push(c)}function Uy(r,i){switch(r.tag){case 5:var c=r.type;return i=i.nodeType!==1||c.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,Bn=r,zn=Tr(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,Bn=r,zn=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(c=fi!==null?{id:nr,overflow:ar}:null,r.memoizedState={dehydrated:i,treeContext:c,retryLane:1073741824},c=Xn(18,null,null,0),c.stateNode=i,c.return=r,r.child=c,Bn=r,zn=null,!0):!1;default:return!1}}function hh(r){return(r.mode&1)!==0&&(r.flags&128)===0}function fh(r){if(St){var i=zn;if(i){var c=i;if(!Uy(r,i)){if(hh(r))throw Error(n(418));i=Tr(c.nextSibling);var d=Bn;i&&Uy(r,i)?jy(d,c):(r.flags=r.flags&-4097|2,St=!1,Bn=r)}}else{if(hh(r))throw Error(n(418));r.flags=r.flags&-4097|2,St=!1,Bn=r}}}function By(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Bn=r}function fc(r){if(r!==Bn)return!1;if(!St)return By(r),St=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!rh(r.type,r.memoizedProps)),i&&(i=zn)){if(hh(r))throw zy(),Error(n(418));for(;i;)jy(r,i),i=Tr(i.nextSibling)}if(By(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var c=r.data;if(c==="/$"){if(i===0){zn=Tr(r.nextSibling);break e}i--}else c!=="$"&&c!=="$!"&&c!=="$?"||i++}r=r.nextSibling}zn=null}}else zn=Bn?Tr(r.stateNode.nextSibling):null;return!0}function zy(){for(var r=zn;r;)r=Tr(r.nextSibling)}function po(){zn=Bn=null,St=!1}function ph(r){fa===null?fa=[r]:fa.push(r)}var xC=E.ReactCurrentBatchConfig;function Ss(r,i,c){if(r=c.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(c._owner){if(c=c._owner,c){if(c.tag!==1)throw Error(n(309));var d=c.stateNode}if(!d)throw Error(n(147,r));var p=d,g=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===g?i.ref:(i=function(w){var D=p.refs;w===null?delete D[g]:D[g]=w},i._stringRef=g,i)}if(typeof r!="string")throw Error(n(284));if(!c._owner)throw Error(n(290,r))}return r}function pc(r,i){throw r=Object.prototype.toString.call(i),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function Fy(r){var i=r._init;return i(r._payload)}function Vy(r){function i(H,U){if(r){var G=H.deletions;G===null?(H.deletions=[U],H.flags|=16):G.push(U)}}function c(H,U){if(!r)return null;for(;U!==null;)i(H,U),U=U.sibling;return null}function d(H,U){for(H=new Map;U!==null;)U.key!==null?H.set(U.key,U):H.set(U.index,U),U=U.sibling;return H}function p(H,U){return H=Ur(H,U),H.index=0,H.sibling=null,H}function g(H,U,G){return H.index=G,r?(G=H.alternate,G!==null?(G=G.index,G<U?(H.flags|=2,U):G):(H.flags|=2,U)):(H.flags|=1048576,U)}function w(H){return r&&H.alternate===null&&(H.flags|=2),H}function D(H,U,G,de){return U===null||U.tag!==6?(U=of(G,H.mode,de),U.return=H,U):(U=p(U,G),U.return=H,U)}function O(H,U,G,de){var Ee=G.type;return Ee===V?oe(H,U,G.props.children,de,G.key):U!==null&&(U.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===Q&&Fy(Ee)===U.type)?(de=p(U,G.props),de.ref=Ss(H,U,G),de.return=H,de):(de=Uc(G.type,G.key,G.props,null,H.mode,de),de.ref=Ss(H,U,G),de.return=H,de)}function q(H,U,G,de){return U===null||U.tag!==4||U.stateNode.containerInfo!==G.containerInfo||U.stateNode.implementation!==G.implementation?(U=sf(G,H.mode,de),U.return=H,U):(U=p(U,G.children||[]),U.return=H,U)}function oe(H,U,G,de,Ee){return U===null||U.tag!==7?(U=wi(G,H.mode,de,Ee),U.return=H,U):(U=p(U,G),U.return=H,U)}function se(H,U,G){if(typeof U=="string"&&U!==""||typeof U=="number")return U=of(""+U,H.mode,G),U.return=H,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case B:return G=Uc(U.type,U.key,U.props,null,H.mode,G),G.ref=Ss(H,null,U),G.return=H,G;case $:return U=sf(U,H.mode,G),U.return=H,U;case Q:var de=U._init;return se(H,de(U._payload),G)}if(Sa(U)||Y(U))return U=wi(U,H.mode,G,null),U.return=H,U;pc(H,U)}return null}function ae(H,U,G,de){var Ee=U!==null?U.key:null;if(typeof G=="string"&&G!==""||typeof G=="number")return Ee!==null?null:D(H,U,""+G,de);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case B:return G.key===Ee?O(H,U,G,de):null;case $:return G.key===Ee?q(H,U,G,de):null;case Q:return Ee=G._init,ae(H,U,Ee(G._payload),de)}if(Sa(G)||Y(G))return Ee!==null?null:oe(H,U,G,de,null);pc(H,G)}return null}function ke(H,U,G,de,Ee){if(typeof de=="string"&&de!==""||typeof de=="number")return H=H.get(G)||null,D(U,H,""+de,Ee);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case B:return H=H.get(de.key===null?G:de.key)||null,O(U,H,de,Ee);case $:return H=H.get(de.key===null?G:de.key)||null,q(U,H,de,Ee);case Q:var je=de._init;return ke(H,U,G,je(de._payload),Ee)}if(Sa(de)||Y(de))return H=H.get(G)||null,oe(U,H,de,Ee,null);pc(U,de)}return null}function xe(H,U,G,de){for(var Ee=null,je=null,Ue=U,$e=U=0,Zt=null;Ue!==null&&$e<G.length;$e++){Ue.index>$e?(Zt=Ue,Ue=null):Zt=Ue.sibling;var ct=ae(H,Ue,G[$e],de);if(ct===null){Ue===null&&(Ue=Zt);break}r&&Ue&&ct.alternate===null&&i(H,Ue),U=g(ct,U,$e),je===null?Ee=ct:je.sibling=ct,je=ct,Ue=Zt}if($e===G.length)return c(H,Ue),St&&pi(H,$e),Ee;if(Ue===null){for(;$e<G.length;$e++)Ue=se(H,G[$e],de),Ue!==null&&(U=g(Ue,U,$e),je===null?Ee=Ue:je.sibling=Ue,je=Ue);return St&&pi(H,$e),Ee}for(Ue=d(H,Ue);$e<G.length;$e++)Zt=ke(Ue,H,$e,G[$e],de),Zt!==null&&(r&&Zt.alternate!==null&&Ue.delete(Zt.key===null?$e:Zt.key),U=g(Zt,U,$e),je===null?Ee=Zt:je.sibling=Zt,je=Zt);return r&&Ue.forEach(function(Br){return i(H,Br)}),St&&pi(H,$e),Ee}function Te(H,U,G,de){var Ee=Y(G);if(typeof Ee!="function")throw Error(n(150));if(G=Ee.call(G),G==null)throw Error(n(151));for(var je=Ee=null,Ue=U,$e=U=0,Zt=null,ct=G.next();Ue!==null&&!ct.done;$e++,ct=G.next()){Ue.index>$e?(Zt=Ue,Ue=null):Zt=Ue.sibling;var Br=ae(H,Ue,ct.value,de);if(Br===null){Ue===null&&(Ue=Zt);break}r&&Ue&&Br.alternate===null&&i(H,Ue),U=g(Br,U,$e),je===null?Ee=Br:je.sibling=Br,je=Br,Ue=Zt}if(ct.done)return c(H,Ue),St&&pi(H,$e),Ee;if(Ue===null){for(;!ct.done;$e++,ct=G.next())ct=se(H,ct.value,de),ct!==null&&(U=g(ct,U,$e),je===null?Ee=ct:je.sibling=ct,je=ct);return St&&pi(H,$e),Ee}for(Ue=d(H,Ue);!ct.done;$e++,ct=G.next())ct=ke(Ue,H,$e,ct.value,de),ct!==null&&(r&&ct.alternate!==null&&Ue.delete(ct.key===null?$e:ct.key),U=g(ct,U,$e),je===null?Ee=ct:je.sibling=ct,je=ct);return r&&Ue.forEach(function(nT){return i(H,nT)}),St&&pi(H,$e),Ee}function Mt(H,U,G,de){if(typeof G=="object"&&G!==null&&G.type===V&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case B:e:{for(var Ee=G.key,je=U;je!==null;){if(je.key===Ee){if(Ee=G.type,Ee===V){if(je.tag===7){c(H,je.sibling),U=p(je,G.props.children),U.return=H,H=U;break e}}else if(je.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===Q&&Fy(Ee)===je.type){c(H,je.sibling),U=p(je,G.props),U.ref=Ss(H,je,G),U.return=H,H=U;break e}c(H,je);break}else i(H,je);je=je.sibling}G.type===V?(U=wi(G.props.children,H.mode,de,G.key),U.return=H,H=U):(de=Uc(G.type,G.key,G.props,null,H.mode,de),de.ref=Ss(H,U,G),de.return=H,H=de)}return w(H);case $:e:{for(je=G.key;U!==null;){if(U.key===je)if(U.tag===4&&U.stateNode.containerInfo===G.containerInfo&&U.stateNode.implementation===G.implementation){c(H,U.sibling),U=p(U,G.children||[]),U.return=H,H=U;break e}else{c(H,U);break}else i(H,U);U=U.sibling}U=sf(G,H.mode,de),U.return=H,H=U}return w(H);case Q:return je=G._init,Mt(H,U,je(G._payload),de)}if(Sa(G))return xe(H,U,G,de);if(Y(G))return Te(H,U,G,de);pc(H,G)}return typeof G=="string"&&G!==""||typeof G=="number"?(G=""+G,U!==null&&U.tag===6?(c(H,U.sibling),U=p(U,G),U.return=H,H=U):(c(H,U),U=of(G,H.mode,de),U.return=H,H=U),w(H)):c(H,U)}return Mt}var mo=Vy(!0),$y=Vy(!1),mc=Er(null),gc=null,go=null,mh=null;function gh(){mh=go=gc=null}function yh(r){var i=mc.current;wt(mc),r._currentValue=i}function vh(r,i,c){for(;r!==null;){var d=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),r===c)break;r=r.return}}function yo(r,i){gc=r,mh=go=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(En=!0),r.firstContext=null)}function qn(r){var i=r._currentValue;if(mh!==r)if(r={context:r,memoizedValue:i,next:null},go===null){if(gc===null)throw Error(n(308));go=r,gc.dependencies={lanes:0,firstContext:r}}else go=go.next=r;return i}var mi=null;function bh(r){mi===null?mi=[r]:mi.push(r)}function Hy(r,i,c,d){var p=i.interleaved;return p===null?(c.next=c,bh(i)):(c.next=p.next,p.next=c),i.interleaved=c,rr(r,d)}function rr(r,i){r.lanes|=i;var c=r.alternate;for(c!==null&&(c.lanes|=i),c=r,r=r.return;r!==null;)r.childLanes|=i,c=r.alternate,c!==null&&(c.childLanes|=i),c=r,r=r.return;return c.tag===3?c.stateNode:null}var Lr=!1;function kh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wy(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function ir(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function Dr(r,i,c){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(st&2)!==0){var p=d.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),d.pending=i,rr(r,c)}return p=d.interleaved,p===null?(i.next=i,bh(d)):(i.next=p.next,p.next=i),d.interleaved=i,rr(r,c)}function yc(r,i,c){if(i=i.updateQueue,i!==null&&(i=i.shared,(c&4194240)!==0)){var d=i.lanes;d&=r.pendingLanes,c|=d,i.lanes=c,Md(r,c)}}function Ky(r,i){var c=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,c===d)){var p=null,g=null;if(c=c.firstBaseUpdate,c!==null){do{var w={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};g===null?p=g=w:g=g.next=w,c=c.next}while(c!==null);g===null?p=g=i:g=g.next=i}else p=g=i;c={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:d.shared,effects:d.effects},r.updateQueue=c;return}r=c.lastBaseUpdate,r===null?c.firstBaseUpdate=i:r.next=i,c.lastBaseUpdate=i}function vc(r,i,c,d){var p=r.updateQueue;Lr=!1;var g=p.firstBaseUpdate,w=p.lastBaseUpdate,D=p.shared.pending;if(D!==null){p.shared.pending=null;var O=D,q=O.next;O.next=null,w===null?g=q:w.next=q,w=O;var oe=r.alternate;oe!==null&&(oe=oe.updateQueue,D=oe.lastBaseUpdate,D!==w&&(D===null?oe.firstBaseUpdate=q:D.next=q,oe.lastBaseUpdate=O))}if(g!==null){var se=p.baseState;w=0,oe=q=O=null,D=g;do{var ae=D.lane,ke=D.eventTime;if((d&ae)===ae){oe!==null&&(oe=oe.next={eventTime:ke,lane:0,tag:D.tag,payload:D.payload,callback:D.callback,next:null});e:{var xe=r,Te=D;switch(ae=i,ke=c,Te.tag){case 1:if(xe=Te.payload,typeof xe=="function"){se=xe.call(ke,se,ae);break e}se=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=Te.payload,ae=typeof xe=="function"?xe.call(ke,se,ae):xe,ae==null)break e;se=z({},se,ae);break e;case 2:Lr=!0}}D.callback!==null&&D.lane!==0&&(r.flags|=64,ae=p.effects,ae===null?p.effects=[D]:ae.push(D))}else ke={eventTime:ke,lane:ae,tag:D.tag,payload:D.payload,callback:D.callback,next:null},oe===null?(q=oe=ke,O=se):oe=oe.next=ke,w|=ae;if(D=D.next,D===null){if(D=p.shared.pending,D===null)break;ae=D,D=ae.next,ae.next=null,p.lastBaseUpdate=ae,p.shared.pending=null}}while(!0);if(oe===null&&(O=se),p.baseState=O,p.firstBaseUpdate=q,p.lastBaseUpdate=oe,i=p.shared.interleaved,i!==null){p=i;do w|=p.lane,p=p.next;while(p!==i)}else g===null&&(p.shared.lanes=0);vi|=w,r.lanes=w,r.memoizedState=se}}function Gy(r,i,c){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var d=r[i],p=d.callback;if(p!==null){if(d.callback=null,d=c,typeof p!="function")throw Error(n(191,p));p.call(d)}}}var Cs={},Ra=Er(Cs),Ts=Er(Cs),Es=Er(Cs);function gi(r){if(r===Cs)throw Error(n(174));return r}function _h(r,i){switch(bt(Es,i),bt(Ts,r),bt(Ra,Cs),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Pt(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=Pt(i,r)}wt(Ra),bt(Ra,i)}function vo(){wt(Ra),wt(Ts),wt(Es)}function qy(r){gi(Es.current);var i=gi(Ra.current),c=Pt(i,r.type);i!==c&&(bt(Ts,r),bt(Ra,c))}function wh(r){Ts.current===r&&(wt(Ra),wt(Ts))}var Et=Er(0);function bc(r){for(var i=r;i!==null;){if(i.tag===13){var c=i.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var xh=[];function Ph(){for(var r=0;r<xh.length;r++)xh[r]._workInProgressVersionPrimary=null;xh.length=0}var kc=E.ReactCurrentDispatcher,Sh=E.ReactCurrentBatchConfig,yi=0,At=null,Vt=null,qt=null,_c=!1,As=!1,Rs=0,PC=0;function cn(){throw Error(n(321))}function Ch(r,i){if(i===null)return!1;for(var c=0;c<i.length&&c<r.length;c++)if(!ha(r[c],i[c]))return!1;return!0}function Th(r,i,c,d,p,g){if(yi=g,At=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,kc.current=r===null||r.memoizedState===null?EC:AC,r=c(d,p),As){g=0;do{if(As=!1,Rs=0,25<=g)throw Error(n(301));g+=1,qt=Vt=null,i.updateQueue=null,kc.current=RC,r=c(d,p)}while(As)}if(kc.current=Pc,i=Vt!==null&&Vt.next!==null,yi=0,qt=Vt=At=null,_c=!1,i)throw Error(n(300));return r}function Eh(){var r=Rs!==0;return Rs=0,r}function La(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qt===null?At.memoizedState=qt=r:qt=qt.next=r,qt}function Yn(){if(Vt===null){var r=At.alternate;r=r!==null?r.memoizedState:null}else r=Vt.next;var i=qt===null?At.memoizedState:qt.next;if(i!==null)qt=i,Vt=r;else{if(r===null)throw Error(n(310));Vt=r,r={memoizedState:Vt.memoizedState,baseState:Vt.baseState,baseQueue:Vt.baseQueue,queue:Vt.queue,next:null},qt===null?At.memoizedState=qt=r:qt=qt.next=r}return qt}function Ls(r,i){return typeof i=="function"?i(r):i}function Ah(r){var i=Yn(),c=i.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=r;var d=Vt,p=d.baseQueue,g=c.pending;if(g!==null){if(p!==null){var w=p.next;p.next=g.next,g.next=w}d.baseQueue=p=g,c.pending=null}if(p!==null){g=p.next,d=d.baseState;var D=w=null,O=null,q=g;do{var oe=q.lane;if((yi&oe)===oe)O!==null&&(O=O.next={lane:0,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),d=q.hasEagerState?q.eagerState:r(d,q.action);else{var se={lane:oe,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null};O===null?(D=O=se,w=d):O=O.next=se,At.lanes|=oe,vi|=oe}q=q.next}while(q!==null&&q!==g);O===null?w=d:O.next=D,ha(d,i.memoizedState)||(En=!0),i.memoizedState=d,i.baseState=w,i.baseQueue=O,c.lastRenderedState=d}if(r=c.interleaved,r!==null){p=r;do g=p.lane,At.lanes|=g,vi|=g,p=p.next;while(p!==r)}else p===null&&(c.lanes=0);return[i.memoizedState,c.dispatch]}function Rh(r){var i=Yn(),c=i.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=r;var d=c.dispatch,p=c.pending,g=i.memoizedState;if(p!==null){c.pending=null;var w=p=p.next;do g=r(g,w.action),w=w.next;while(w!==p);ha(g,i.memoizedState)||(En=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),c.lastRenderedState=g}return[g,d]}function Yy(){}function Zy(r,i){var c=At,d=Yn(),p=i(),g=!ha(d.memoizedState,p);if(g&&(d.memoizedState=p,En=!0),d=d.queue,Lh(Jy.bind(null,c,d,r),[r]),d.getSnapshot!==i||g||qt!==null&&qt.memoizedState.tag&1){if(c.flags|=2048,Ds(9,Qy.bind(null,c,d,p,i),void 0,null),Yt===null)throw Error(n(349));(yi&30)!==0||Xy(c,i,p)}return p}function Xy(r,i,c){r.flags|=16384,r={getSnapshot:i,value:c},i=At.updateQueue,i===null?(i={lastEffect:null,stores:null},At.updateQueue=i,i.stores=[r]):(c=i.stores,c===null?i.stores=[r]:c.push(r))}function Qy(r,i,c,d){i.value=c,i.getSnapshot=d,ev(i)&&tv(r)}function Jy(r,i,c){return c(function(){ev(i)&&tv(r)})}function ev(r){var i=r.getSnapshot;r=r.value;try{var c=i();return!ha(r,c)}catch{return!0}}function tv(r){var i=rr(r,1);i!==null&&ya(i,r,1,-1)}function nv(r){var i=La();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ls,lastRenderedState:r},i.queue=r,r=r.dispatch=TC.bind(null,At,r),[i.memoizedState,r]}function Ds(r,i,c,d){return r={tag:r,create:i,destroy:c,deps:d,next:null},i=At.updateQueue,i===null?(i={lastEffect:null,stores:null},At.updateQueue=i,i.lastEffect=r.next=r):(c=i.lastEffect,c===null?i.lastEffect=r.next=r:(d=c.next,c.next=r,r.next=d,i.lastEffect=r)),r}function av(){return Yn().memoizedState}function wc(r,i,c,d){var p=La();At.flags|=r,p.memoizedState=Ds(1|i,c,void 0,d===void 0?null:d)}function xc(r,i,c,d){var p=Yn();d=d===void 0?null:d;var g=void 0;if(Vt!==null){var w=Vt.memoizedState;if(g=w.destroy,d!==null&&Ch(d,w.deps)){p.memoizedState=Ds(i,c,g,d);return}}At.flags|=r,p.memoizedState=Ds(1|i,c,g,d)}function rv(r,i){return wc(8390656,8,r,i)}function Lh(r,i){return xc(2048,8,r,i)}function iv(r,i){return xc(4,2,r,i)}function ov(r,i){return xc(4,4,r,i)}function sv(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function lv(r,i,c){return c=c!=null?c.concat([r]):null,xc(4,4,sv.bind(null,i,r),c)}function Dh(){}function cv(r,i){var c=Yn();i=i===void 0?null:i;var d=c.memoizedState;return d!==null&&i!==null&&Ch(i,d[1])?d[0]:(c.memoizedState=[r,i],r)}function uv(r,i){var c=Yn();i=i===void 0?null:i;var d=c.memoizedState;return d!==null&&i!==null&&Ch(i,d[1])?d[0]:(r=r(),c.memoizedState=[r,i],r)}function dv(r,i,c){return(yi&21)===0?(r.baseState&&(r.baseState=!1,En=!0),r.memoizedState=c):(ha(c,i)||(c=Wl(),At.lanes|=c,vi|=c,r.baseState=!0),i)}function SC(r,i){var c=ft;ft=c!==0&&4>c?c:4,r(!0);var d=Sh.transition;Sh.transition={};try{r(!1),i()}finally{ft=c,Sh.transition=d}}function hv(){return Yn().memoizedState}function CC(r,i,c){var d=Or(r);if(c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null},fv(r))pv(i,c);else if(c=Hy(r,i,c,d),c!==null){var p=vn();ya(c,r,d,p),mv(c,i,d)}}function TC(r,i,c){var d=Or(r),p={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(fv(r))pv(i,p);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var w=i.lastRenderedState,D=g(w,c);if(p.hasEagerState=!0,p.eagerState=D,ha(D,w)){var O=i.interleaved;O===null?(p.next=p,bh(i)):(p.next=O.next,O.next=p),i.interleaved=p;return}}catch{}c=Hy(r,i,p,d),c!==null&&(p=vn(),ya(c,r,d,p),mv(c,i,d))}}function fv(r){var i=r.alternate;return r===At||i!==null&&i===At}function pv(r,i){As=_c=!0;var c=r.pending;c===null?i.next=i:(i.next=c.next,c.next=i),r.pending=i}function mv(r,i,c){if((c&4194240)!==0){var d=i.lanes;d&=r.pendingLanes,c|=d,i.lanes=c,Md(r,c)}}var Pc={readContext:qn,useCallback:cn,useContext:cn,useEffect:cn,useImperativeHandle:cn,useInsertionEffect:cn,useLayoutEffect:cn,useMemo:cn,useReducer:cn,useRef:cn,useState:cn,useDebugValue:cn,useDeferredValue:cn,useTransition:cn,useMutableSource:cn,useSyncExternalStore:cn,useId:cn,unstable_isNewReconciler:!1},EC={readContext:qn,useCallback:function(r,i){return La().memoizedState=[r,i===void 0?null:i],r},useContext:qn,useEffect:rv,useImperativeHandle:function(r,i,c){return c=c!=null?c.concat([r]):null,wc(4194308,4,sv.bind(null,i,r),c)},useLayoutEffect:function(r,i){return wc(4194308,4,r,i)},useInsertionEffect:function(r,i){return wc(4,2,r,i)},useMemo:function(r,i){var c=La();return i=i===void 0?null:i,r=r(),c.memoizedState=[r,i],r},useReducer:function(r,i,c){var d=La();return i=c!==void 0?c(i):i,d.memoizedState=d.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},d.queue=r,r=r.dispatch=CC.bind(null,At,r),[d.memoizedState,r]},useRef:function(r){var i=La();return r={current:r},i.memoizedState=r},useState:nv,useDebugValue:Dh,useDeferredValue:function(r){return La().memoizedState=r},useTransition:function(){var r=nv(!1),i=r[0];return r=SC.bind(null,r[1]),La().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,c){var d=At,p=La();if(St){if(c===void 0)throw Error(n(407));c=c()}else{if(c=i(),Yt===null)throw Error(n(349));(yi&30)!==0||Xy(d,i,c)}p.memoizedState=c;var g={value:c,getSnapshot:i};return p.queue=g,rv(Jy.bind(null,d,g,r),[r]),d.flags|=2048,Ds(9,Qy.bind(null,d,g,c,i),void 0,null),c},useId:function(){var r=La(),i=Yt.identifierPrefix;if(St){var c=ar,d=nr;c=(d&~(1<<32-on(d)-1)).toString(32)+c,i=":"+i+"R"+c,c=Rs++,0<c&&(i+="H"+c.toString(32)),i+=":"}else c=PC++,i=":"+i+"r"+c.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},AC={readContext:qn,useCallback:cv,useContext:qn,useEffect:Lh,useImperativeHandle:lv,useInsertionEffect:iv,useLayoutEffect:ov,useMemo:uv,useReducer:Ah,useRef:av,useState:function(){return Ah(Ls)},useDebugValue:Dh,useDeferredValue:function(r){var i=Yn();return dv(i,Vt.memoizedState,r)},useTransition:function(){var r=Ah(Ls)[0],i=Yn().memoizedState;return[r,i]},useMutableSource:Yy,useSyncExternalStore:Zy,useId:hv,unstable_isNewReconciler:!1},RC={readContext:qn,useCallback:cv,useContext:qn,useEffect:Lh,useImperativeHandle:lv,useInsertionEffect:iv,useLayoutEffect:ov,useMemo:uv,useReducer:Rh,useRef:av,useState:function(){return Rh(Ls)},useDebugValue:Dh,useDeferredValue:function(r){var i=Yn();return Vt===null?i.memoizedState=r:dv(i,Vt.memoizedState,r)},useTransition:function(){var r=Rh(Ls)[0],i=Yn().memoizedState;return[r,i]},useMutableSource:Yy,useSyncExternalStore:Zy,useId:hv,unstable_isNewReconciler:!1};function pa(r,i){if(r&&r.defaultProps){i=z({},i),r=r.defaultProps;for(var c in r)i[c]===void 0&&(i[c]=r[c]);return i}return i}function Ih(r,i,c,d){i=r.memoizedState,c=c(d,i),c=c==null?i:z({},i,c),r.memoizedState=c,r.lanes===0&&(r.updateQueue.baseState=c)}var Sc={isMounted:function(r){return(r=r._reactInternals)?ve(r)===r:!1},enqueueSetState:function(r,i,c){r=r._reactInternals;var d=vn(),p=Or(r),g=ir(d,p);g.payload=i,c!=null&&(g.callback=c),i=Dr(r,g,p),i!==null&&(ya(i,r,p,d),yc(i,r,p))},enqueueReplaceState:function(r,i,c){r=r._reactInternals;var d=vn(),p=Or(r),g=ir(d,p);g.tag=1,g.payload=i,c!=null&&(g.callback=c),i=Dr(r,g,p),i!==null&&(ya(i,r,p,d),yc(i,r,p))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var c=vn(),d=Or(r),p=ir(c,d);p.tag=2,i!=null&&(p.callback=i),i=Dr(r,p,d),i!==null&&(ya(i,r,d,c),yc(i,r,d))}};function gv(r,i,c,d,p,g,w){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,g,w):i.prototype&&i.prototype.isPureReactComponent?!vs(c,d)||!vs(p,g):!0}function yv(r,i,c){var d=!1,p=Ar,g=i.contextType;return typeof g=="object"&&g!==null?g=qn(g):(p=Tn(i)?hi:ln.current,d=i.contextTypes,g=(d=d!=null)?uo(r,p):Ar),i=new i(c,g),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Sc,r.stateNode=i,i._reactInternals=r,d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=p,r.__reactInternalMemoizedMaskedChildContext=g),i}function vv(r,i,c,d){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(c,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(c,d),i.state!==r&&Sc.enqueueReplaceState(i,i.state,null)}function Mh(r,i,c,d){var p=r.stateNode;p.props=c,p.state=r.memoizedState,p.refs={},kh(r);var g=i.contextType;typeof g=="object"&&g!==null?p.context=qn(g):(g=Tn(i)?hi:ln.current,p.context=uo(r,g)),p.state=r.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(Ih(r,i,g,c),p.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(i=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),i!==p.state&&Sc.enqueueReplaceState(p,p.state,null),vc(r,c,p,d),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308)}function bo(r,i){try{var c="",d=i;do c+=me(d),d=d.return;while(d);var p=c}catch(g){p=`
8
+ Error generating stack: `+g.message+`
9
+ `+g.stack}return{value:r,source:i,stack:p,digest:null}}function Nh(r,i,c){return{value:r,source:null,stack:c??null,digest:i??null}}function Oh(r,i){try{console.error(i.value)}catch(c){setTimeout(function(){throw c})}}var LC=typeof WeakMap=="function"?WeakMap:Map;function bv(r,i,c){c=ir(-1,c),c.tag=3,c.payload={element:null};var d=i.value;return c.callback=function(){Dc||(Dc=!0,Xh=d),Oh(r,i)},c}function kv(r,i,c){c=ir(-1,c),c.tag=3;var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var p=i.value;c.payload=function(){return d(p)},c.callback=function(){Oh(r,i)}}var g=r.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(c.callback=function(){Oh(r,i),typeof d!="function"&&(Mr===null?Mr=new Set([this]):Mr.add(this));var w=i.stack;this.componentDidCatch(i.value,{componentStack:w!==null?w:""})}),c}function _v(r,i,c){var d=r.pingCache;if(d===null){d=r.pingCache=new LC;var p=new Set;d.set(i,p)}else p=d.get(i),p===void 0&&(p=new Set,d.set(i,p));p.has(c)||(p.add(c),r=WC.bind(null,r,i,c),i.then(r,r))}function wv(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function xv(r,i,c,d,p){return(r.mode&1)===0?(r===i?r.flags|=65536:(r.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(i=ir(-1,1),i.tag=2,Dr(c,i,1))),c.lanes|=1),r):(r.flags|=65536,r.lanes=p,r)}var DC=E.ReactCurrentOwner,En=!1;function yn(r,i,c,d){i.child=r===null?$y(i,null,c,d):mo(i,r.child,c,d)}function Pv(r,i,c,d,p){c=c.render;var g=i.ref;return yo(i,p),d=Th(r,i,c,d,g,p),c=Eh(),r!==null&&!En?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~p,or(r,i,p)):(St&&c&&uh(i),i.flags|=1,yn(r,i,d,p),i.child)}function Sv(r,i,c,d,p){if(r===null){var g=c.type;return typeof g=="function"&&!rf(g)&&g.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(i.tag=15,i.type=g,Cv(r,i,g,d,p)):(r=Uc(c.type,null,d,i,i.mode,p),r.ref=i.ref,r.return=i,i.child=r)}if(g=r.child,(r.lanes&p)===0){var w=g.memoizedProps;if(c=c.compare,c=c!==null?c:vs,c(w,d)&&r.ref===i.ref)return or(r,i,p)}return i.flags|=1,r=Ur(g,d),r.ref=i.ref,r.return=i,i.child=r}function Cv(r,i,c,d,p){if(r!==null){var g=r.memoizedProps;if(vs(g,d)&&r.ref===i.ref)if(En=!1,i.pendingProps=d=g,(r.lanes&p)!==0)(r.flags&131072)!==0&&(En=!0);else return i.lanes=r.lanes,or(r,i,p)}return jh(r,i,c,d,p)}function Tv(r,i,c){var d=i.pendingProps,p=d.children,g=r!==null?r.memoizedState:null;if(d.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},bt(_o,Fn),Fn|=c;else{if((c&1073741824)===0)return r=g!==null?g.baseLanes|c:c,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,bt(_o,Fn),Fn|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=g!==null?g.baseLanes:c,bt(_o,Fn),Fn|=d}else g!==null?(d=g.baseLanes|c,i.memoizedState=null):d=c,bt(_o,Fn),Fn|=d;return yn(r,i,p,c),i.child}function Ev(r,i){var c=i.ref;(r===null&&c!==null||r!==null&&r.ref!==c)&&(i.flags|=512,i.flags|=2097152)}function jh(r,i,c,d,p){var g=Tn(c)?hi:ln.current;return g=uo(i,g),yo(i,p),c=Th(r,i,c,d,g,p),d=Eh(),r!==null&&!En?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~p,or(r,i,p)):(St&&d&&uh(i),i.flags|=1,yn(r,i,c,p),i.child)}function Av(r,i,c,d,p){if(Tn(c)){var g=!0;cc(i)}else g=!1;if(yo(i,p),i.stateNode===null)Tc(r,i),yv(i,c,d),Mh(i,c,d,p),d=!0;else if(r===null){var w=i.stateNode,D=i.memoizedProps;w.props=D;var O=w.context,q=c.contextType;typeof q=="object"&&q!==null?q=qn(q):(q=Tn(c)?hi:ln.current,q=uo(i,q));var oe=c.getDerivedStateFromProps,se=typeof oe=="function"||typeof w.getSnapshotBeforeUpdate=="function";se||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(D!==d||O!==q)&&vv(i,w,d,q),Lr=!1;var ae=i.memoizedState;w.state=ae,vc(i,d,w,p),O=i.memoizedState,D!==d||ae!==O||Cn.current||Lr?(typeof oe=="function"&&(Ih(i,c,oe,d),O=i.memoizedState),(D=Lr||gv(i,c,D,d,ae,O,q))?(se||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"&&(i.flags|=4194308)):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=O),w.props=d,w.state=O,w.context=q,d=D):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{w=i.stateNode,Wy(r,i),D=i.memoizedProps,q=i.type===i.elementType?D:pa(i.type,D),w.props=q,se=i.pendingProps,ae=w.context,O=c.contextType,typeof O=="object"&&O!==null?O=qn(O):(O=Tn(c)?hi:ln.current,O=uo(i,O));var ke=c.getDerivedStateFromProps;(oe=typeof ke=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(D!==se||ae!==O)&&vv(i,w,d,O),Lr=!1,ae=i.memoizedState,w.state=ae,vc(i,d,w,p);var xe=i.memoizedState;D!==se||ae!==xe||Cn.current||Lr?(typeof ke=="function"&&(Ih(i,c,ke,d),xe=i.memoizedState),(q=Lr||gv(i,c,q,d,ae,xe,O)||!1)?(oe||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(d,xe,O),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(d,xe,O)),typeof w.componentDidUpdate=="function"&&(i.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof w.componentDidUpdate!="function"||D===r.memoizedProps&&ae===r.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&ae===r.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=xe),w.props=d,w.state=xe,w.context=O,d=q):(typeof w.componentDidUpdate!="function"||D===r.memoizedProps&&ae===r.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&ae===r.memoizedState||(i.flags|=1024),d=!1)}return Uh(r,i,c,d,g,p)}function Uh(r,i,c,d,p,g){Ev(r,i);var w=(i.flags&128)!==0;if(!d&&!w)return p&&My(i,c,!1),or(r,i,g);d=i.stateNode,DC.current=i;var D=w&&typeof c.getDerivedStateFromError!="function"?null:d.render();return i.flags|=1,r!==null&&w?(i.child=mo(i,r.child,null,g),i.child=mo(i,null,D,g)):yn(r,i,D,g),i.memoizedState=d.state,p&&My(i,c,!0),i.child}function Rv(r){var i=r.stateNode;i.pendingContext?Dy(r,i.pendingContext,i.pendingContext!==i.context):i.context&&Dy(r,i.context,!1),_h(r,i.containerInfo)}function Lv(r,i,c,d,p){return po(),ph(p),i.flags|=256,yn(r,i,c,d),i.child}var Bh={dehydrated:null,treeContext:null,retryLane:0};function zh(r){return{baseLanes:r,cachePool:null,transitions:null}}function Dv(r,i,c){var d=i.pendingProps,p=Et.current,g=!1,w=(i.flags&128)!==0,D;if((D=w)||(D=r!==null&&r.memoizedState===null?!1:(p&2)!==0),D?(g=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(p|=1),bt(Et,p&1),r===null)return fh(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((i.mode&1)===0?i.lanes=1:r.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(w=d.children,r=d.fallback,g?(d=i.mode,g=i.child,w={mode:"hidden",children:w},(d&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=w):g=Bc(w,d,0,null),r=wi(r,d,c,null),g.return=i,r.return=i,g.sibling=r,i.child=g,i.child.memoizedState=zh(c),i.memoizedState=Bh,r):Fh(i,w));if(p=r.memoizedState,p!==null&&(D=p.dehydrated,D!==null))return IC(r,i,w,d,D,p,c);if(g){g=d.fallback,w=i.mode,p=r.child,D=p.sibling;var O={mode:"hidden",children:d.children};return(w&1)===0&&i.child!==p?(d=i.child,d.childLanes=0,d.pendingProps=O,i.deletions=null):(d=Ur(p,O),d.subtreeFlags=p.subtreeFlags&14680064),D!==null?g=Ur(D,g):(g=wi(g,w,c,null),g.flags|=2),g.return=i,d.return=i,d.sibling=g,i.child=d,d=g,g=i.child,w=r.child.memoizedState,w=w===null?zh(c):{baseLanes:w.baseLanes|c,cachePool:null,transitions:w.transitions},g.memoizedState=w,g.childLanes=r.childLanes&~c,i.memoizedState=Bh,d}return g=r.child,r=g.sibling,d=Ur(g,{mode:"visible",children:d.children}),(i.mode&1)===0&&(d.lanes=c),d.return=i,d.sibling=null,r!==null&&(c=i.deletions,c===null?(i.deletions=[r],i.flags|=16):c.push(r)),i.child=d,i.memoizedState=null,d}function Fh(r,i){return i=Bc({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function Cc(r,i,c,d){return d!==null&&ph(d),mo(i,r.child,null,c),r=Fh(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function IC(r,i,c,d,p,g,w){if(c)return i.flags&256?(i.flags&=-257,d=Nh(Error(n(422))),Cc(r,i,w,d)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(g=d.fallback,p=i.mode,d=Bc({mode:"visible",children:d.children},p,0,null),g=wi(g,p,w,null),g.flags|=2,d.return=i,g.return=i,d.sibling=g,i.child=d,(i.mode&1)!==0&&mo(i,r.child,null,w),i.child.memoizedState=zh(w),i.memoizedState=Bh,g);if((i.mode&1)===0)return Cc(r,i,w,null);if(p.data==="$!"){if(d=p.nextSibling&&p.nextSibling.dataset,d)var D=d.dgst;return d=D,g=Error(n(419)),d=Nh(g,d,void 0),Cc(r,i,w,d)}if(D=(w&r.childLanes)!==0,En||D){if(d=Yt,d!==null){switch(w&-w){case 4:p=2;break;case 16:p=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:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(d.suspendedLanes|w))!==0?0:p,p!==0&&p!==g.retryLane&&(g.retryLane=p,rr(r,p),ya(d,r,p,-1))}return af(),d=Nh(Error(n(421))),Cc(r,i,w,d)}return p.data==="$?"?(i.flags|=128,i.child=r.child,i=KC.bind(null,r),p._reactRetry=i,null):(r=g.treeContext,zn=Tr(p.nextSibling),Bn=i,St=!0,fa=null,r!==null&&(Kn[Gn++]=nr,Kn[Gn++]=ar,Kn[Gn++]=fi,nr=r.id,ar=r.overflow,fi=i),i=Fh(i,d.children),i.flags|=4096,i)}function Iv(r,i,c){r.lanes|=i;var d=r.alternate;d!==null&&(d.lanes|=i),vh(r.return,i,c)}function Vh(r,i,c,d,p){var g=r.memoizedState;g===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:p}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=d,g.tail=c,g.tailMode=p)}function Mv(r,i,c){var d=i.pendingProps,p=d.revealOrder,g=d.tail;if(yn(r,i,d.children,c),d=Et.current,(d&2)!==0)d=d&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Iv(r,c,i);else if(r.tag===19)Iv(r,c,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}if(bt(Et,d),(i.mode&1)===0)i.memoizedState=null;else switch(p){case"forwards":for(c=i.child,p=null;c!==null;)r=c.alternate,r!==null&&bc(r)===null&&(p=c),c=c.sibling;c=p,c===null?(p=i.child,i.child=null):(p=c.sibling,c.sibling=null),Vh(i,!1,p,c,g);break;case"backwards":for(c=null,p=i.child,i.child=null;p!==null;){if(r=p.alternate,r!==null&&bc(r)===null){i.child=p;break}r=p.sibling,p.sibling=c,c=p,p=r}Vh(i,!0,c,null,g);break;case"together":Vh(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Tc(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function or(r,i,c){if(r!==null&&(i.dependencies=r.dependencies),vi|=i.lanes,(c&i.childLanes)===0)return null;if(r!==null&&i.child!==r.child)throw Error(n(153));if(i.child!==null){for(r=i.child,c=Ur(r,r.pendingProps),i.child=c,c.return=i;r.sibling!==null;)r=r.sibling,c=c.sibling=Ur(r,r.pendingProps),c.return=i;c.sibling=null}return i.child}function MC(r,i,c){switch(i.tag){case 3:Rv(i),po();break;case 5:qy(i);break;case 1:Tn(i.type)&&cc(i);break;case 4:_h(i,i.stateNode.containerInfo);break;case 10:var d=i.type._context,p=i.memoizedProps.value;bt(mc,d._currentValue),d._currentValue=p;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?(bt(Et,Et.current&1),i.flags|=128,null):(c&i.child.childLanes)!==0?Dv(r,i,c):(bt(Et,Et.current&1),r=or(r,i,c),r!==null?r.sibling:null);bt(Et,Et.current&1);break;case 19:if(d=(c&i.childLanes)!==0,(r.flags&128)!==0){if(d)return Mv(r,i,c);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),bt(Et,Et.current),d)break;return null;case 22:case 23:return i.lanes=0,Tv(r,i,c)}return or(r,i,c)}var Nv,$h,Ov,jv;Nv=function(r,i){for(var c=i.child;c!==null;){if(c.tag===5||c.tag===6)r.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},$h=function(){},Ov=function(r,i,c,d){var p=r.memoizedProps;if(p!==d){r=i.stateNode,gi(Ra.current);var g=null;switch(c){case"input":p=Jt(r,p),d=Jt(r,d),g=[];break;case"select":p=z({},p,{value:void 0}),d=z({},d,{value:void 0}),g=[];break;case"textarea":p=si(r,p),d=si(r,d),g=[];break;default:typeof p.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=oc)}Ca(c,d);var w;c=null;for(q in p)if(!d.hasOwnProperty(q)&&p.hasOwnProperty(q)&&p[q]!=null)if(q==="style"){var D=p[q];for(w in D)D.hasOwnProperty(w)&&(c||(c={}),c[w]="")}else q!=="dangerouslySetInnerHTML"&&q!=="children"&&q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&q!=="autoFocus"&&(o.hasOwnProperty(q)?g||(g=[]):(g=g||[]).push(q,null));for(q in d){var O=d[q];if(D=p?.[q],d.hasOwnProperty(q)&&O!==D&&(O!=null||D!=null))if(q==="style")if(D){for(w in D)!D.hasOwnProperty(w)||O&&O.hasOwnProperty(w)||(c||(c={}),c[w]="");for(w in O)O.hasOwnProperty(w)&&D[w]!==O[w]&&(c||(c={}),c[w]=O[w])}else c||(g||(g=[]),g.push(q,c)),c=O;else q==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,D=D?D.__html:void 0,O!=null&&D!==O&&(g=g||[]).push(q,O)):q==="children"?typeof O!="string"&&typeof O!="number"||(g=g||[]).push(q,""+O):q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&(o.hasOwnProperty(q)?(O!=null&&q==="onScroll"&&_t("scroll",r),g||D===O||(g=[])):(g=g||[]).push(q,O))}c&&(g=g||[]).push("style",c);var q=g;(i.updateQueue=q)&&(i.flags|=4)}},jv=function(r,i,c,d){c!==d&&(i.flags|=4)};function Is(r,i){if(!St)switch(r.tailMode){case"hidden":i=r.tail;for(var c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?r.tail=null:c.sibling=null;break;case"collapsed":c=r.tail;for(var d=null;c!==null;)c.alternate!==null&&(d=c),c=c.sibling;d===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function un(r){var i=r.alternate!==null&&r.alternate.child===r.child,c=0,d=0;if(i)for(var p=r.child;p!==null;)c|=p.lanes|p.childLanes,d|=p.subtreeFlags&14680064,d|=p.flags&14680064,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)c|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=d,r.childLanes=c,i}function NC(r,i,c){var d=i.pendingProps;switch(dh(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return un(i),null;case 1:return Tn(i.type)&&lc(),un(i),null;case 3:return d=i.stateNode,vo(),wt(Cn),wt(ln),Ph(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(fc(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,fa!==null&&(ef(fa),fa=null))),$h(r,i),un(i),null;case 5:wh(i);var p=gi(Es.current);if(c=i.type,r!==null&&i.stateNode!=null)Ov(r,i,c,d,p),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!d){if(i.stateNode===null)throw Error(n(166));return un(i),null}if(r=gi(Ra.current),fc(i)){d=i.stateNode,c=i.type;var g=i.memoizedProps;switch(d[Aa]=i,d[xs]=g,r=(i.mode&1)!==0,c){case"dialog":_t("cancel",d),_t("close",d);break;case"iframe":case"object":case"embed":_t("load",d);break;case"video":case"audio":for(p=0;p<ks.length;p++)_t(ks[p],d);break;case"source":_t("error",d);break;case"img":case"image":case"link":_t("error",d),_t("load",d);break;case"details":_t("toggle",d);break;case"input":oi(d,g),_t("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!g.multiple},_t("invalid",d);break;case"textarea":Zi(d,g),_t("invalid",d)}Ca(c,g),p=null;for(var w in g)if(g.hasOwnProperty(w)){var D=g[w];w==="children"?typeof D=="string"?d.textContent!==D&&(g.suppressHydrationWarning!==!0&&ic(d.textContent,D,r),p=["children",D]):typeof D=="number"&&d.textContent!==""+D&&(g.suppressHydrationWarning!==!0&&ic(d.textContent,D,r),p=["children",""+D]):o.hasOwnProperty(w)&&D!=null&&w==="onScroll"&&_t("scroll",d)}switch(c){case"input":Mn(d),Yi(d,g,!0);break;case"textarea":Mn(d),Ve(d);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(d.onclick=oc)}d=p,i.updateQueue=d,d!==null&&(i.flags|=4)}else{w=p.nodeType===9?p:p.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=pt(c)),r==="http://www.w3.org/1999/xhtml"?c==="script"?(r=w.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=w.createElement(c,{is:d.is}):(r=w.createElement(c),c==="select"&&(w=r,d.multiple?w.multiple=!0:d.size&&(w.size=d.size))):r=w.createElementNS(r,c),r[Aa]=i,r[xs]=d,Nv(r,i,!1,!1),i.stateNode=r;e:{switch(w=Ta(c,d),c){case"dialog":_t("cancel",r),_t("close",r),p=d;break;case"iframe":case"object":case"embed":_t("load",r),p=d;break;case"video":case"audio":for(p=0;p<ks.length;p++)_t(ks[p],r);p=d;break;case"source":_t("error",r),p=d;break;case"img":case"image":case"link":_t("error",r),_t("load",r),p=d;break;case"details":_t("toggle",r),p=d;break;case"input":oi(r,d),p=Jt(r,d),_t("invalid",r);break;case"option":p=d;break;case"select":r._wrapperState={wasMultiple:!!d.multiple},p=z({},d,{value:void 0}),_t("invalid",r);break;case"textarea":Zi(r,d),p=si(r,d),_t("invalid",r);break;default:p=d}Ca(c,p),D=p;for(g in D)if(D.hasOwnProperty(g)){var O=D[g];g==="style"?Za(r,O):g==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,O!=null&&yt(r,O)):g==="children"?typeof O=="string"?(c!=="textarea"||O!=="")&&dt(r,O):typeof O=="number"&&dt(r,""+O):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(o.hasOwnProperty(g)?O!=null&&g==="onScroll"&&_t("scroll",r):O!=null&&A(r,g,O,w))}switch(c){case"input":Mn(r),Yi(r,d,!1);break;case"textarea":Mn(r),Ve(r);break;case"option":d.value!=null&&r.setAttribute("value",""+Ye(d.value));break;case"select":r.multiple=!!d.multiple,g=d.value,g!=null?pn(r,!!d.multiple,g,!1):d.defaultValue!=null&&pn(r,!!d.multiple,d.defaultValue,!0);break;default:typeof p.onClick=="function"&&(r.onclick=oc)}switch(c){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return un(i),null;case 6:if(r&&i.stateNode!=null)jv(r,i,r.memoizedProps,d);else{if(typeof d!="string"&&i.stateNode===null)throw Error(n(166));if(c=gi(Es.current),gi(Ra.current),fc(i)){if(d=i.stateNode,c=i.memoizedProps,d[Aa]=i,(g=d.nodeValue!==c)&&(r=Bn,r!==null))switch(r.tag){case 3:ic(d.nodeValue,c,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&ic(d.nodeValue,c,(r.mode&1)!==0)}g&&(i.flags|=4)}else d=(c.nodeType===9?c:c.ownerDocument).createTextNode(d),d[Aa]=i,i.stateNode=d}return un(i),null;case 13:if(wt(Et),d=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(St&&zn!==null&&(i.mode&1)!==0&&(i.flags&128)===0)zy(),po(),i.flags|=98560,g=!1;else if(g=fc(i),d!==null&&d.dehydrated!==null){if(r===null){if(!g)throw Error(n(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(n(317));g[Aa]=i}else po(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;un(i),g=!1}else fa!==null&&(ef(fa),fa=null),g=!0;if(!g)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=c,i):(d=d!==null,d!==(r!==null&&r.memoizedState!==null)&&d&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(Et.current&1)!==0?$t===0&&($t=3):af())),i.updateQueue!==null&&(i.flags|=4),un(i),null);case 4:return vo(),$h(r,i),r===null&&_s(i.stateNode.containerInfo),un(i),null;case 10:return yh(i.type._context),un(i),null;case 17:return Tn(i.type)&&lc(),un(i),null;case 19:if(wt(Et),g=i.memoizedState,g===null)return un(i),null;if(d=(i.flags&128)!==0,w=g.rendering,w===null)if(d)Is(g,!1);else{if($t!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(w=bc(r),w!==null){for(i.flags|=128,Is(g,!1),d=w.updateQueue,d!==null&&(i.updateQueue=d,i.flags|=4),i.subtreeFlags=0,d=c,c=i.child;c!==null;)g=c,r=d,g.flags&=14680066,w=g.alternate,w===null?(g.childLanes=0,g.lanes=r,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=w.childLanes,g.lanes=w.lanes,g.child=w.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=w.memoizedProps,g.memoizedState=w.memoizedState,g.updateQueue=w.updateQueue,g.type=w.type,r=w.dependencies,g.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),c=c.sibling;return bt(Et,Et.current&1|2),i.child}r=r.sibling}g.tail!==null&&tt()>wo&&(i.flags|=128,d=!0,Is(g,!1),i.lanes=4194304)}else{if(!d)if(r=bc(w),r!==null){if(i.flags|=128,d=!0,c=r.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),Is(g,!0),g.tail===null&&g.tailMode==="hidden"&&!w.alternate&&!St)return un(i),null}else 2*tt()-g.renderingStartTime>wo&&c!==1073741824&&(i.flags|=128,d=!0,Is(g,!1),i.lanes=4194304);g.isBackwards?(w.sibling=i.child,i.child=w):(c=g.last,c!==null?c.sibling=w:i.child=w,g.last=w)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=tt(),i.sibling=null,c=Et.current,bt(Et,d?c&1|2:c&1),i):(un(i),null);case 22:case 23:return nf(),d=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(i.flags|=8192),d&&(i.mode&1)!==0?(Fn&1073741824)!==0&&(un(i),i.subtreeFlags&6&&(i.flags|=8192)):un(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function OC(r,i){switch(dh(i),i.tag){case 1:return Tn(i.type)&&lc(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return vo(),wt(Cn),wt(ln),Ph(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return wh(i),null;case 13:if(wt(Et),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));po()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return wt(Et),null;case 4:return vo(),null;case 10:return yh(i.type._context),null;case 22:case 23:return nf(),null;case 24:return null;default:return null}}var Ec=!1,dn=!1,jC=typeof WeakSet=="function"?WeakSet:Set,_e=null;function ko(r,i){var c=r.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(d){Lt(r,i,d)}else c.current=null}function Hh(r,i,c){try{c()}catch(d){Lt(r,i,d)}}var Uv=!1;function UC(r,i){if(nh=ql,r=gy(),qd(r)){if("selectionStart"in r)var c={start:r.selectionStart,end:r.selectionEnd};else e:{c=(c=r.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&d.rangeCount!==0){c=d.anchorNode;var p=d.anchorOffset,g=d.focusNode;d=d.focusOffset;try{c.nodeType,g.nodeType}catch{c=null;break e}var w=0,D=-1,O=-1,q=0,oe=0,se=r,ae=null;t:for(;;){for(var ke;se!==c||p!==0&&se.nodeType!==3||(D=w+p),se!==g||d!==0&&se.nodeType!==3||(O=w+d),se.nodeType===3&&(w+=se.nodeValue.length),(ke=se.firstChild)!==null;)ae=se,se=ke;for(;;){if(se===r)break t;if(ae===c&&++q===p&&(D=w),ae===g&&++oe===d&&(O=w),(ke=se.nextSibling)!==null)break;se=ae,ae=se.parentNode}se=ke}c=D===-1||O===-1?null:{start:D,end:O}}else c=null}c=c||{start:0,end:0}}else c=null;for(ah={focusedElem:r,selectionRange:c},ql=!1,_e=i;_e!==null;)if(i=_e,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,_e=r;else for(;_e!==null;){i=_e;try{var xe=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(xe!==null){var Te=xe.memoizedProps,Mt=xe.memoizedState,H=i.stateNode,U=H.getSnapshotBeforeUpdate(i.elementType===i.type?Te:pa(i.type,Te),Mt);H.__reactInternalSnapshotBeforeUpdate=U}break;case 3:var G=i.stateNode.containerInfo;G.nodeType===1?G.textContent="":G.nodeType===9&&G.documentElement&&G.removeChild(G.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(de){Lt(i,i.return,de)}if(r=i.sibling,r!==null){r.return=i.return,_e=r;break}_e=i.return}return xe=Uv,Uv=!1,xe}function Ms(r,i,c){var d=i.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var p=d=d.next;do{if((p.tag&r)===r){var g=p.destroy;p.destroy=void 0,g!==void 0&&Hh(i,c,g)}p=p.next}while(p!==d)}}function Ac(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var c=i=i.next;do{if((c.tag&r)===r){var d=c.create;c.destroy=d()}c=c.next}while(c!==i)}}function Wh(r){var i=r.ref;if(i!==null){var c=r.stateNode;r.tag,r=c,typeof i=="function"?i(r):i.current=r}}function Bv(r){var i=r.alternate;i!==null&&(r.alternate=null,Bv(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[Aa],delete i[xs],delete i[sh],delete i[kC],delete i[_C])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function zv(r){return r.tag===5||r.tag===3||r.tag===4}function Fv(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||zv(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Kh(r,i,c){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?c.nodeType===8?c.parentNode.insertBefore(r,i):c.insertBefore(r,i):(c.nodeType===8?(i=c.parentNode,i.insertBefore(r,c)):(i=c,i.appendChild(r)),c=c._reactRootContainer,c!=null||i.onclick!==null||(i.onclick=oc));else if(d!==4&&(r=r.child,r!==null))for(Kh(r,i,c),r=r.sibling;r!==null;)Kh(r,i,c),r=r.sibling}function Gh(r,i,c){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?c.insertBefore(r,i):c.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for(Gh(r,i,c),r=r.sibling;r!==null;)Gh(r,i,c),r=r.sibling}var en=null,ma=!1;function Ir(r,i,c){for(c=c.child;c!==null;)Vv(r,i,c),c=c.sibling}function Vv(r,i,c){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(vr,c)}catch{}switch(c.tag){case 5:dn||ko(c,i);case 6:var d=en,p=ma;en=null,Ir(r,i,c),en=d,ma=p,en!==null&&(ma?(r=en,c=c.stateNode,r.nodeType===8?r.parentNode.removeChild(c):r.removeChild(c)):en.removeChild(c.stateNode));break;case 18:en!==null&&(ma?(r=en,c=c.stateNode,r.nodeType===8?oh(r.parentNode,c):r.nodeType===1&&oh(r,c),hs(r)):oh(en,c.stateNode));break;case 4:d=en,p=ma,en=c.stateNode.containerInfo,ma=!0,Ir(r,i,c),en=d,ma=p;break;case 0:case 11:case 14:case 15:if(!dn&&(d=c.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){p=d=d.next;do{var g=p,w=g.destroy;g=g.tag,w!==void 0&&((g&2)!==0||(g&4)!==0)&&Hh(c,i,w),p=p.next}while(p!==d)}Ir(r,i,c);break;case 1:if(!dn&&(ko(c,i),d=c.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(D){Lt(c,i,D)}Ir(r,i,c);break;case 21:Ir(r,i,c);break;case 22:c.mode&1?(dn=(d=dn)||c.memoizedState!==null,Ir(r,i,c),dn=d):Ir(r,i,c);break;default:Ir(r,i,c)}}function $v(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var c=r.stateNode;c===null&&(c=r.stateNode=new jC),i.forEach(function(d){var p=GC.bind(null,r,d);c.has(d)||(c.add(d),d.then(p,p))})}}function ga(r,i){var c=i.deletions;if(c!==null)for(var d=0;d<c.length;d++){var p=c[d];try{var g=r,w=i,D=w;e:for(;D!==null;){switch(D.tag){case 5:en=D.stateNode,ma=!1;break e;case 3:en=D.stateNode.containerInfo,ma=!0;break e;case 4:en=D.stateNode.containerInfo,ma=!0;break e}D=D.return}if(en===null)throw Error(n(160));Vv(g,w,p),en=null,ma=!1;var O=p.alternate;O!==null&&(O.return=null),p.return=null}catch(q){Lt(p,i,q)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Hv(i,r),i=i.sibling}function Hv(r,i){var c=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(ga(i,r),Da(r),d&4){try{Ms(3,r,r.return),Ac(3,r)}catch(Te){Lt(r,r.return,Te)}try{Ms(5,r,r.return)}catch(Te){Lt(r,r.return,Te)}}break;case 1:ga(i,r),Da(r),d&512&&c!==null&&ko(c,c.return);break;case 5:if(ga(i,r),Da(r),d&512&&c!==null&&ko(c,c.return),r.flags&32){var p=r.stateNode;try{dt(p,"")}catch(Te){Lt(r,r.return,Te)}}if(d&4&&(p=r.stateNode,p!=null)){var g=r.memoizedProps,w=c!==null?c.memoizedProps:g,D=r.type,O=r.updateQueue;if(r.updateQueue=null,O!==null)try{D==="input"&&g.type==="radio"&&g.name!=null&&qi(p,g),Ta(D,w);var q=Ta(D,g);for(w=0;w<O.length;w+=2){var oe=O[w],se=O[w+1];oe==="style"?Za(p,se):oe==="dangerouslySetInnerHTML"?yt(p,se):oe==="children"?dt(p,se):A(p,oe,se,q)}switch(D){case"input":Nn(p,g);break;case"textarea":Ke(p,g);break;case"select":var ae=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!g.multiple;var ke=g.value;ke!=null?pn(p,!!g.multiple,ke,!1):ae!==!!g.multiple&&(g.defaultValue!=null?pn(p,!!g.multiple,g.defaultValue,!0):pn(p,!!g.multiple,g.multiple?[]:"",!1))}p[xs]=g}catch(Te){Lt(r,r.return,Te)}}break;case 6:if(ga(i,r),Da(r),d&4){if(r.stateNode===null)throw Error(n(162));p=r.stateNode,g=r.memoizedProps;try{p.nodeValue=g}catch(Te){Lt(r,r.return,Te)}}break;case 3:if(ga(i,r),Da(r),d&4&&c!==null&&c.memoizedState.isDehydrated)try{hs(i.containerInfo)}catch(Te){Lt(r,r.return,Te)}break;case 4:ga(i,r),Da(r);break;case 13:ga(i,r),Da(r),p=r.child,p.flags&8192&&(g=p.memoizedState!==null,p.stateNode.isHidden=g,!g||p.alternate!==null&&p.alternate.memoizedState!==null||(Zh=tt())),d&4&&$v(r);break;case 22:if(oe=c!==null&&c.memoizedState!==null,r.mode&1?(dn=(q=dn)||oe,ga(i,r),dn=q):ga(i,r),Da(r),d&8192){if(q=r.memoizedState!==null,(r.stateNode.isHidden=q)&&!oe&&(r.mode&1)!==0)for(_e=r,oe=r.child;oe!==null;){for(se=_e=oe;_e!==null;){switch(ae=_e,ke=ae.child,ae.tag){case 0:case 11:case 14:case 15:Ms(4,ae,ae.return);break;case 1:ko(ae,ae.return);var xe=ae.stateNode;if(typeof xe.componentWillUnmount=="function"){d=ae,c=ae.return;try{i=d,xe.props=i.memoizedProps,xe.state=i.memoizedState,xe.componentWillUnmount()}catch(Te){Lt(d,c,Te)}}break;case 5:ko(ae,ae.return);break;case 22:if(ae.memoizedState!==null){Gv(se);continue}}ke!==null?(ke.return=ae,_e=ke):Gv(se)}oe=oe.sibling}e:for(oe=null,se=r;;){if(se.tag===5){if(oe===null){oe=se;try{p=se.stateNode,q?(g=p.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(D=se.stateNode,O=se.memoizedProps.style,w=O!=null&&O.hasOwnProperty("display")?O.display:null,D.style.display=Gt("display",w))}catch(Te){Lt(r,r.return,Te)}}}else if(se.tag===6){if(oe===null)try{se.stateNode.nodeValue=q?"":se.memoizedProps}catch(Te){Lt(r,r.return,Te)}}else if((se.tag!==22&&se.tag!==23||se.memoizedState===null||se===r)&&se.child!==null){se.child.return=se,se=se.child;continue}if(se===r)break e;for(;se.sibling===null;){if(se.return===null||se.return===r)break e;oe===se&&(oe=null),se=se.return}oe===se&&(oe=null),se.sibling.return=se.return,se=se.sibling}}break;case 19:ga(i,r),Da(r),d&4&&$v(r);break;case 21:break;default:ga(i,r),Da(r)}}function Da(r){var i=r.flags;if(i&2){try{e:{for(var c=r.return;c!==null;){if(zv(c)){var d=c;break e}c=c.return}throw Error(n(160))}switch(d.tag){case 5:var p=d.stateNode;d.flags&32&&(dt(p,""),d.flags&=-33);var g=Fv(r);Gh(r,g,p);break;case 3:case 4:var w=d.stateNode.containerInfo,D=Fv(r);Kh(r,D,w);break;default:throw Error(n(161))}}catch(O){Lt(r,r.return,O)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function BC(r,i,c){_e=r,Wv(r)}function Wv(r,i,c){for(var d=(r.mode&1)!==0;_e!==null;){var p=_e,g=p.child;if(p.tag===22&&d){var w=p.memoizedState!==null||Ec;if(!w){var D=p.alternate,O=D!==null&&D.memoizedState!==null||dn;D=Ec;var q=dn;if(Ec=w,(dn=O)&&!q)for(_e=p;_e!==null;)w=_e,O=w.child,w.tag===22&&w.memoizedState!==null?qv(p):O!==null?(O.return=w,_e=O):qv(p);for(;g!==null;)_e=g,Wv(g),g=g.sibling;_e=p,Ec=D,dn=q}Kv(r)}else(p.subtreeFlags&8772)!==0&&g!==null?(g.return=p,_e=g):Kv(r)}}function Kv(r){for(;_e!==null;){var i=_e;if((i.flags&8772)!==0){var c=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:dn||Ac(5,i);break;case 1:var d=i.stateNode;if(i.flags&4&&!dn)if(c===null)d.componentDidMount();else{var p=i.elementType===i.type?c.memoizedProps:pa(i.type,c.memoizedProps);d.componentDidUpdate(p,c.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var g=i.updateQueue;g!==null&&Gy(i,g,d);break;case 3:var w=i.updateQueue;if(w!==null){if(c=null,i.child!==null)switch(i.child.tag){case 5:c=i.child.stateNode;break;case 1:c=i.child.stateNode}Gy(i,w,c)}break;case 5:var D=i.stateNode;if(c===null&&i.flags&4){c=D;var O=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":O.autoFocus&&c.focus();break;case"img":O.src&&(c.src=O.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var q=i.alternate;if(q!==null){var oe=q.memoizedState;if(oe!==null){var se=oe.dehydrated;se!==null&&hs(se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}dn||i.flags&512&&Wh(i)}catch(ae){Lt(i,i.return,ae)}}if(i===r){_e=null;break}if(c=i.sibling,c!==null){c.return=i.return,_e=c;break}_e=i.return}}function Gv(r){for(;_e!==null;){var i=_e;if(i===r){_e=null;break}var c=i.sibling;if(c!==null){c.return=i.return,_e=c;break}_e=i.return}}function qv(r){for(;_e!==null;){var i=_e;try{switch(i.tag){case 0:case 11:case 15:var c=i.return;try{Ac(4,i)}catch(O){Lt(i,c,O)}break;case 1:var d=i.stateNode;if(typeof d.componentDidMount=="function"){var p=i.return;try{d.componentDidMount()}catch(O){Lt(i,p,O)}}var g=i.return;try{Wh(i)}catch(O){Lt(i,g,O)}break;case 5:var w=i.return;try{Wh(i)}catch(O){Lt(i,w,O)}}}catch(O){Lt(i,i.return,O)}if(i===r){_e=null;break}var D=i.sibling;if(D!==null){D.return=i.return,_e=D;break}_e=i.return}}var zC=Math.ceil,Rc=E.ReactCurrentDispatcher,qh=E.ReactCurrentOwner,Zn=E.ReactCurrentBatchConfig,st=0,Yt=null,jt=null,tn=0,Fn=0,_o=Er(0),$t=0,Ns=null,vi=0,Lc=0,Yh=0,Os=null,An=null,Zh=0,wo=1/0,sr=null,Dc=!1,Xh=null,Mr=null,Ic=!1,Nr=null,Mc=0,js=0,Qh=null,Nc=-1,Oc=0;function vn(){return(st&6)!==0?tt():Nc!==-1?Nc:Nc=tt()}function Or(r){return(r.mode&1)===0?1:(st&2)!==0&&tn!==0?tn&-tn:xC.transition!==null?(Oc===0&&(Oc=Wl()),Oc):(r=ft,r!==0||(r=window.event,r=r===void 0?16:Zg(r.type)),r)}function ya(r,i,c,d){if(50<js)throw js=0,Qh=null,Error(n(185));ss(r,c,d),((st&2)===0||r!==Yt)&&(r===Yt&&((st&2)===0&&(Lc|=c),$t===4&&jr(r,tn)),Rn(r,d),c===1&&st===0&&(i.mode&1)===0&&(wo=tt()+500,uc&&Rr()))}function Rn(r,i){var c=r.callbackNode;Ja(r,i);var d=kr(r,r===Yt?tn:0);if(d===0)c!==null&&It(c),r.callbackNode=null,r.callbackPriority=0;else if(i=d&-d,r.callbackPriority!==i){if(c!=null&&It(c),i===1)r.tag===0?wC(Zv.bind(null,r)):Ny(Zv.bind(null,r)),vC(function(){(st&6)===0&&Rr()}),c=null;else{switch(Vg(d)){case 1:c=Qa;break;case 4:c=ua;break;case 16:c=da;break;case 536870912:c=jn;break;default:c=da}c=rb(c,Yv.bind(null,r))}r.callbackPriority=i,r.callbackNode=c}}function Yv(r,i){if(Nc=-1,Oc=0,(st&6)!==0)throw Error(n(327));var c=r.callbackNode;if(xo()&&r.callbackNode!==c)return null;var d=kr(r,r===Yt?tn:0);if(d===0)return null;if((d&30)!==0||(d&r.expiredLanes)!==0||i)i=jc(r,d);else{i=d;var p=st;st|=2;var g=Qv();(Yt!==r||tn!==i)&&(sr=null,wo=tt()+500,ki(r,i));do try{$C();break}catch(D){Xv(r,D)}while(!0);gh(),Rc.current=g,st=p,jt!==null?i=0:(Yt=null,tn=0,i=$t)}if(i!==0){if(i===2&&(p=eo(r),p!==0&&(d=p,i=Jh(r,p))),i===1)throw c=Ns,ki(r,0),jr(r,d),Rn(r,tt()),c;if(i===6)jr(r,d);else{if(p=r.current.alternate,(d&30)===0&&!FC(p)&&(i=jc(r,d),i===2&&(g=eo(r),g!==0&&(d=g,i=Jh(r,g))),i===1))throw c=Ns,ki(r,0),jr(r,d),Rn(r,tt()),c;switch(r.finishedWork=p,r.finishedLanes=d,i){case 0:case 1:throw Error(n(345));case 2:_i(r,An,sr);break;case 3:if(jr(r,d),(d&130023424)===d&&(i=Zh+500-tt(),10<i)){if(kr(r,0)!==0)break;if(p=r.suspendedLanes,(p&d)!==d){vn(),r.pingedLanes|=r.suspendedLanes&p;break}r.timeoutHandle=ih(_i.bind(null,r,An,sr),i);break}_i(r,An,sr);break;case 4:if(jr(r,d),(d&4194240)===d)break;for(i=r.eventTimes,p=-1;0<d;){var w=31-on(d);g=1<<w,w=i[w],w>p&&(p=w),d&=~g}if(d=p,d=tt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*zC(d/1960))-d,10<d){r.timeoutHandle=ih(_i.bind(null,r,An,sr),d);break}_i(r,An,sr);break;case 5:_i(r,An,sr);break;default:throw Error(n(329))}}}return Rn(r,tt()),r.callbackNode===c?Yv.bind(null,r):null}function Jh(r,i){var c=Os;return r.current.memoizedState.isDehydrated&&(ki(r,i).flags|=256),r=jc(r,i),r!==2&&(i=An,An=c,i!==null&&ef(i)),r}function ef(r){An===null?An=r:An.push.apply(An,r)}function FC(r){for(var i=r;;){if(i.flags&16384){var c=i.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var d=0;d<c.length;d++){var p=c[d],g=p.getSnapshot;p=p.value;try{if(!ha(g(),p))return!1}catch{return!1}}}if(c=i.child,i.subtreeFlags&16384&&c!==null)c.return=i,i=c;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function jr(r,i){for(i&=~Yh,i&=~Lc,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var c=31-on(i),d=1<<c;r[c]=-1,i&=~d}}function Zv(r){if((st&6)!==0)throw Error(n(327));xo();var i=kr(r,0);if((i&1)===0)return Rn(r,tt()),null;var c=jc(r,i);if(r.tag!==0&&c===2){var d=eo(r);d!==0&&(i=d,c=Jh(r,d))}if(c===1)throw c=Ns,ki(r,0),jr(r,i),Rn(r,tt()),c;if(c===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,_i(r,An,sr),Rn(r,tt()),null}function tf(r,i){var c=st;st|=1;try{return r(i)}finally{st=c,st===0&&(wo=tt()+500,uc&&Rr())}}function bi(r){Nr!==null&&Nr.tag===0&&(st&6)===0&&xo();var i=st;st|=1;var c=Zn.transition,d=ft;try{if(Zn.transition=null,ft=1,r)return r()}finally{ft=d,Zn.transition=c,st=i,(st&6)===0&&Rr()}}function nf(){Fn=_o.current,wt(_o)}function ki(r,i){r.finishedWork=null,r.finishedLanes=0;var c=r.timeoutHandle;if(c!==-1&&(r.timeoutHandle=-1,yC(c)),jt!==null)for(c=jt.return;c!==null;){var d=c;switch(dh(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&lc();break;case 3:vo(),wt(Cn),wt(ln),Ph();break;case 5:wh(d);break;case 4:vo();break;case 13:wt(Et);break;case 19:wt(Et);break;case 10:yh(d.type._context);break;case 22:case 23:nf()}c=c.return}if(Yt=r,jt=r=Ur(r.current,null),tn=Fn=i,$t=0,Ns=null,Yh=Lc=vi=0,An=Os=null,mi!==null){for(i=0;i<mi.length;i++)if(c=mi[i],d=c.interleaved,d!==null){c.interleaved=null;var p=d.next,g=c.pending;if(g!==null){var w=g.next;g.next=p,d.next=w}c.pending=d}mi=null}return r}function Xv(r,i){do{var c=jt;try{if(gh(),kc.current=Pc,_c){for(var d=At.memoizedState;d!==null;){var p=d.queue;p!==null&&(p.pending=null),d=d.next}_c=!1}if(yi=0,qt=Vt=At=null,As=!1,Rs=0,qh.current=null,c===null||c.return===null){$t=1,Ns=i,jt=null;break}e:{var g=r,w=c.return,D=c,O=i;if(i=tn,D.flags|=32768,O!==null&&typeof O=="object"&&typeof O.then=="function"){var q=O,oe=D,se=oe.tag;if((oe.mode&1)===0&&(se===0||se===11||se===15)){var ae=oe.alternate;ae?(oe.updateQueue=ae.updateQueue,oe.memoizedState=ae.memoizedState,oe.lanes=ae.lanes):(oe.updateQueue=null,oe.memoizedState=null)}var ke=wv(w);if(ke!==null){ke.flags&=-257,xv(ke,w,D,g,i),ke.mode&1&&_v(g,q,i),i=ke,O=q;var xe=i.updateQueue;if(xe===null){var Te=new Set;Te.add(O),i.updateQueue=Te}else xe.add(O);break e}else{if((i&1)===0){_v(g,q,i),af();break e}O=Error(n(426))}}else if(St&&D.mode&1){var Mt=wv(w);if(Mt!==null){(Mt.flags&65536)===0&&(Mt.flags|=256),xv(Mt,w,D,g,i),ph(bo(O,D));break e}}g=O=bo(O,D),$t!==4&&($t=2),Os===null?Os=[g]:Os.push(g),g=w;do{switch(g.tag){case 3:g.flags|=65536,i&=-i,g.lanes|=i;var H=bv(g,O,i);Ky(g,H);break e;case 1:D=O;var U=g.type,G=g.stateNode;if((g.flags&128)===0&&(typeof U.getDerivedStateFromError=="function"||G!==null&&typeof G.componentDidCatch=="function"&&(Mr===null||!Mr.has(G)))){g.flags|=65536,i&=-i,g.lanes|=i;var de=kv(g,D,i);Ky(g,de);break e}}g=g.return}while(g!==null)}eb(c)}catch(Ee){i=Ee,jt===c&&c!==null&&(jt=c=c.return);continue}break}while(!0)}function Qv(){var r=Rc.current;return Rc.current=Pc,r===null?Pc:r}function af(){($t===0||$t===3||$t===2)&&($t=4),Yt===null||(vi&268435455)===0&&(Lc&268435455)===0||jr(Yt,tn)}function jc(r,i){var c=st;st|=2;var d=Qv();(Yt!==r||tn!==i)&&(sr=null,ki(r,i));do try{VC();break}catch(p){Xv(r,p)}while(!0);if(gh(),st=c,Rc.current=d,jt!==null)throw Error(n(261));return Yt=null,tn=0,$t}function VC(){for(;jt!==null;)Jv(jt)}function $C(){for(;jt!==null&&!kt();)Jv(jt)}function Jv(r){var i=ab(r.alternate,r,Fn);r.memoizedProps=r.pendingProps,i===null?eb(r):jt=i,qh.current=null}function eb(r){var i=r;do{var c=i.alternate;if(r=i.return,(i.flags&32768)===0){if(c=NC(c,i,Fn),c!==null){jt=c;return}}else{if(c=OC(c,i),c!==null){c.flags&=32767,jt=c;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{$t=6,jt=null;return}}if(i=i.sibling,i!==null){jt=i;return}jt=i=r}while(i!==null);$t===0&&($t=5)}function _i(r,i,c){var d=ft,p=Zn.transition;try{Zn.transition=null,ft=1,HC(r,i,c,d)}finally{Zn.transition=p,ft=d}return null}function HC(r,i,c,d){do xo();while(Nr!==null);if((st&6)!==0)throw Error(n(327));c=r.finishedWork;var p=r.finishedLanes;if(c===null)return null;if(r.finishedWork=null,r.finishedLanes=0,c===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var g=c.lanes|c.childLanes;if(PS(r,g),r===Yt&&(jt=Yt=null,tn=0),(c.subtreeFlags&2064)===0&&(c.flags&2064)===0||Ic||(Ic=!0,rb(da,function(){return xo(),null})),g=(c.flags&15990)!==0,(c.subtreeFlags&15990)!==0||g){g=Zn.transition,Zn.transition=null;var w=ft;ft=1;var D=st;st|=4,qh.current=null,UC(r,c),Hv(c,r),uC(ah),ql=!!nh,ah=nh=null,r.current=c,BC(c),ht(),st=D,ft=w,Zn.transition=g}else r.current=c;if(Ic&&(Ic=!1,Nr=r,Mc=p),g=r.pendingLanes,g===0&&(Mr=null),Qi(c.stateNode),Rn(r,tt()),i!==null)for(d=r.onRecoverableError,c=0;c<i.length;c++)p=i[c],d(p.value,{componentStack:p.stack,digest:p.digest});if(Dc)throw Dc=!1,r=Xh,Xh=null,r;return(Mc&1)!==0&&r.tag!==0&&xo(),g=r.pendingLanes,(g&1)!==0?r===Qh?js++:(js=0,Qh=r):js=0,Rr(),null}function xo(){if(Nr!==null){var r=Vg(Mc),i=Zn.transition,c=ft;try{if(Zn.transition=null,ft=16>r?16:r,Nr===null)var d=!1;else{if(r=Nr,Nr=null,Mc=0,(st&6)!==0)throw Error(n(331));var p=st;for(st|=4,_e=r.current;_e!==null;){var g=_e,w=g.child;if((_e.flags&16)!==0){var D=g.deletions;if(D!==null){for(var O=0;O<D.length;O++){var q=D[O];for(_e=q;_e!==null;){var oe=_e;switch(oe.tag){case 0:case 11:case 15:Ms(8,oe,g)}var se=oe.child;if(se!==null)se.return=oe,_e=se;else for(;_e!==null;){oe=_e;var ae=oe.sibling,ke=oe.return;if(Bv(oe),oe===q){_e=null;break}if(ae!==null){ae.return=ke,_e=ae;break}_e=ke}}}var xe=g.alternate;if(xe!==null){var Te=xe.child;if(Te!==null){xe.child=null;do{var Mt=Te.sibling;Te.sibling=null,Te=Mt}while(Te!==null)}}_e=g}}if((g.subtreeFlags&2064)!==0&&w!==null)w.return=g,_e=w;else e:for(;_e!==null;){if(g=_e,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Ms(9,g,g.return)}var H=g.sibling;if(H!==null){H.return=g.return,_e=H;break e}_e=g.return}}var U=r.current;for(_e=U;_e!==null;){w=_e;var G=w.child;if((w.subtreeFlags&2064)!==0&&G!==null)G.return=w,_e=G;else e:for(w=U;_e!==null;){if(D=_e,(D.flags&2048)!==0)try{switch(D.tag){case 0:case 11:case 15:Ac(9,D)}}catch(Ee){Lt(D,D.return,Ee)}if(D===w){_e=null;break e}var de=D.sibling;if(de!==null){de.return=D.return,_e=de;break e}_e=D.return}}if(st=p,Rr(),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(vr,r)}catch{}d=!0}return d}finally{ft=c,Zn.transition=i}}return!1}function tb(r,i,c){i=bo(c,i),i=bv(r,i,1),r=Dr(r,i,1),i=vn(),r!==null&&(ss(r,1,i),Rn(r,i))}function Lt(r,i,c){if(r.tag===3)tb(r,r,c);else for(;i!==null;){if(i.tag===3){tb(i,r,c);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Mr===null||!Mr.has(d))){r=bo(c,r),r=kv(i,r,1),i=Dr(i,r,1),r=vn(),i!==null&&(ss(i,1,r),Rn(i,r));break}}i=i.return}}function WC(r,i,c){var d=r.pingCache;d!==null&&d.delete(i),i=vn(),r.pingedLanes|=r.suspendedLanes&c,Yt===r&&(tn&c)===c&&($t===4||$t===3&&(tn&130023424)===tn&&500>tt()-Zh?ki(r,0):Yh|=c),Rn(r,i)}function nb(r,i){i===0&&((r.mode&1)===0?i=1:(i=Sn,Sn<<=1,(Sn&130023424)===0&&(Sn=4194304)));var c=vn();r=rr(r,i),r!==null&&(ss(r,i,c),Rn(r,c))}function KC(r){var i=r.memoizedState,c=0;i!==null&&(c=i.retryLane),nb(r,c)}function GC(r,i){var c=0;switch(r.tag){case 13:var d=r.stateNode,p=r.memoizedState;p!==null&&(c=p.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(i),nb(r,c)}var ab;ab=function(r,i,c){if(r!==null)if(r.memoizedProps!==i.pendingProps||Cn.current)En=!0;else{if((r.lanes&c)===0&&(i.flags&128)===0)return En=!1,MC(r,i,c);En=(r.flags&131072)!==0}else En=!1,St&&(i.flags&1048576)!==0&&Oy(i,hc,i.index);switch(i.lanes=0,i.tag){case 2:var d=i.type;Tc(r,i),r=i.pendingProps;var p=uo(i,ln.current);yo(i,c),p=Th(null,i,d,r,p,c);var g=Eh();return i.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Tn(d)?(g=!0,cc(i)):g=!1,i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,kh(i),p.updater=Sc,i.stateNode=p,p._reactInternals=i,Mh(i,d,r,c),i=Uh(null,i,d,!0,g,c)):(i.tag=0,St&&g&&uh(i),yn(null,i,p,c),i=i.child),i;case 16:d=i.elementType;e:{switch(Tc(r,i),r=i.pendingProps,p=d._init,d=p(d._payload),i.type=d,p=i.tag=YC(d),r=pa(d,r),p){case 0:i=jh(null,i,d,r,c);break e;case 1:i=Av(null,i,d,r,c);break e;case 11:i=Pv(null,i,d,r,c);break e;case 14:i=Sv(null,i,d,pa(d.type,r),c);break e}throw Error(n(306,d,""))}return i;case 0:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:pa(d,p),jh(r,i,d,p,c);case 1:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:pa(d,p),Av(r,i,d,p,c);case 3:e:{if(Rv(i),r===null)throw Error(n(387));d=i.pendingProps,g=i.memoizedState,p=g.element,Wy(r,i),vc(i,d,null,c);var w=i.memoizedState;if(d=w.element,g.isDehydrated)if(g={element:d,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){p=bo(Error(n(423)),i),i=Lv(r,i,d,c,p);break e}else if(d!==p){p=bo(Error(n(424)),i),i=Lv(r,i,d,c,p);break e}else for(zn=Tr(i.stateNode.containerInfo.firstChild),Bn=i,St=!0,fa=null,c=$y(i,null,d,c),i.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(po(),d===p){i=or(r,i,c);break e}yn(r,i,d,c)}i=i.child}return i;case 5:return qy(i),r===null&&fh(i),d=i.type,p=i.pendingProps,g=r!==null?r.memoizedProps:null,w=p.children,rh(d,p)?w=null:g!==null&&rh(d,g)&&(i.flags|=32),Ev(r,i),yn(r,i,w,c),i.child;case 6:return r===null&&fh(i),null;case 13:return Dv(r,i,c);case 4:return _h(i,i.stateNode.containerInfo),d=i.pendingProps,r===null?i.child=mo(i,null,d,c):yn(r,i,d,c),i.child;case 11:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:pa(d,p),Pv(r,i,d,p,c);case 7:return yn(r,i,i.pendingProps,c),i.child;case 8:return yn(r,i,i.pendingProps.children,c),i.child;case 12:return yn(r,i,i.pendingProps.children,c),i.child;case 10:e:{if(d=i.type._context,p=i.pendingProps,g=i.memoizedProps,w=p.value,bt(mc,d._currentValue),d._currentValue=w,g!==null)if(ha(g.value,w)){if(g.children===p.children&&!Cn.current){i=or(r,i,c);break e}}else for(g=i.child,g!==null&&(g.return=i);g!==null;){var D=g.dependencies;if(D!==null){w=g.child;for(var O=D.firstContext;O!==null;){if(O.context===d){if(g.tag===1){O=ir(-1,c&-c),O.tag=2;var q=g.updateQueue;if(q!==null){q=q.shared;var oe=q.pending;oe===null?O.next=O:(O.next=oe.next,oe.next=O),q.pending=O}}g.lanes|=c,O=g.alternate,O!==null&&(O.lanes|=c),vh(g.return,c,i),D.lanes|=c;break}O=O.next}}else if(g.tag===10)w=g.type===i.type?null:g.child;else if(g.tag===18){if(w=g.return,w===null)throw Error(n(341));w.lanes|=c,D=w.alternate,D!==null&&(D.lanes|=c),vh(w,c,i),w=g.sibling}else w=g.child;if(w!==null)w.return=g;else for(w=g;w!==null;){if(w===i){w=null;break}if(g=w.sibling,g!==null){g.return=w.return,w=g;break}w=w.return}g=w}yn(r,i,p.children,c),i=i.child}return i;case 9:return p=i.type,d=i.pendingProps.children,yo(i,c),p=qn(p),d=d(p),i.flags|=1,yn(r,i,d,c),i.child;case 14:return d=i.type,p=pa(d,i.pendingProps),p=pa(d.type,p),Sv(r,i,d,p,c);case 15:return Cv(r,i,i.type,i.pendingProps,c);case 17:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:pa(d,p),Tc(r,i),i.tag=1,Tn(d)?(r=!0,cc(i)):r=!1,yo(i,c),yv(i,d,p),Mh(i,d,p,c),Uh(null,i,d,!0,r,c);case 19:return Mv(r,i,c);case 22:return Tv(r,i,c)}throw Error(n(156,i.tag))};function rb(r,i){return ut(r,i)}function qC(r,i,c,d){this.tag=r,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(r,i,c,d){return new qC(r,i,c,d)}function rf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function YC(r){if(typeof r=="function")return rf(r)?1:0;if(r!=null){if(r=r.$$typeof,r===he)return 11;if(r===ue)return 14}return 2}function Ur(r,i){var c=r.alternate;return c===null?(c=Xn(r.tag,i,r.key,r.mode),c.elementType=r.elementType,c.type=r.type,c.stateNode=r.stateNode,c.alternate=r,r.alternate=c):(c.pendingProps=i,c.type=r.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=r.flags&14680064,c.childLanes=r.childLanes,c.lanes=r.lanes,c.child=r.child,c.memoizedProps=r.memoizedProps,c.memoizedState=r.memoizedState,c.updateQueue=r.updateQueue,i=r.dependencies,c.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},c.sibling=r.sibling,c.index=r.index,c.ref=r.ref,c}function Uc(r,i,c,d,p,g){var w=2;if(d=r,typeof r=="function")rf(r)&&(w=1);else if(typeof r=="string")w=5;else e:switch(r){case V:return wi(c.children,p,g,i);case P:w=8,p|=8;break;case Z:return r=Xn(12,c,i,p|2),r.elementType=Z,r.lanes=g,r;case J:return r=Xn(13,c,i,p),r.elementType=J,r.lanes=g,r;case re:return r=Xn(19,c,i,p),r.elementType=re,r.lanes=g,r;case ie:return Bc(c,p,g,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case X:w=10;break e;case fe:w=9;break e;case he:w=11;break e;case ue:w=14;break e;case Q:w=16,d=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=Xn(w,c,i,p),i.elementType=r,i.type=d,i.lanes=g,i}function wi(r,i,c,d){return r=Xn(7,r,d,i),r.lanes=c,r}function Bc(r,i,c,d){return r=Xn(22,r,d,i),r.elementType=ie,r.lanes=c,r.stateNode={isHidden:!1},r}function of(r,i,c){return r=Xn(6,r,null,i),r.lanes=c,r}function sf(r,i,c){return i=Xn(4,r.children!==null?r.children:[],r.key,i),i.lanes=c,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function ZC(r,i,c,d,p){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Id(0),this.expirationTimes=Id(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Id(0),this.identifierPrefix=d,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function lf(r,i,c,d,p,g,w,D,O){return r=new ZC(r,i,c,D,O),i===1?(i=1,g===!0&&(i|=8)):i=0,g=Xn(3,null,null,i),r.current=g,g.stateNode=r,g.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(g),r}function XC(r,i,c){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:d==null?null:""+d,children:r,containerInfo:i,implementation:c}}function ib(r){if(!r)return Ar;r=r._reactInternals;e:{if(ve(r)!==r||r.tag!==1)throw Error(n(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Tn(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(r.tag===1){var c=r.type;if(Tn(c))return Iy(r,c,i)}return i}function ob(r,i,c,d,p,g,w,D,O){return r=lf(c,d,!0,r,p,g,w,D,O),r.context=ib(null),c=r.current,d=vn(),p=Or(c),g=ir(d,p),g.callback=i??null,Dr(c,g,p),r.current.lanes=p,ss(r,p,d),Rn(r,d),r}function zc(r,i,c,d){var p=i.current,g=vn(),w=Or(p);return c=ib(c),i.context===null?i.context=c:i.pendingContext=c,i=ir(g,w),i.payload={element:r},d=d===void 0?null:d,d!==null&&(i.callback=d),r=Dr(p,i,w),r!==null&&(ya(r,p,w,g),yc(r,p,w)),w}function Fc(r){return r=r.current,r.child?(r.child.tag===5,r.child.stateNode):null}function sb(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var c=r.retryLane;r.retryLane=c!==0&&c<i?c:i}}function cf(r,i){sb(r,i),(r=r.alternate)&&sb(r,i)}function QC(){return null}var lb=typeof reportError=="function"?reportError:function(r){console.error(r)};function uf(r){this._internalRoot=r}Vc.prototype.render=uf.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(n(409));zc(r,i,null,null)},Vc.prototype.unmount=uf.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;bi(function(){zc(null,r,null,null)}),i[er]=null}};function Vc(r){this._internalRoot=r}Vc.prototype.unstable_scheduleHydration=function(r){if(r){var i=Wg();r={blockedOn:null,target:r,priority:i};for(var c=0;c<Pr.length&&i!==0&&i<Pr[c].priority;c++);Pr.splice(c,0,r),c===0&&qg(r)}};function df(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function $c(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function cb(){}function JC(r,i,c,d,p){if(p){if(typeof d=="function"){var g=d;d=function(){var q=Fc(w);g.call(q)}}var w=ob(i,d,r,0,null,!1,!1,"",cb);return r._reactRootContainer=w,r[er]=w.current,_s(r.nodeType===8?r.parentNode:r),bi(),w}for(;p=r.lastChild;)r.removeChild(p);if(typeof d=="function"){var D=d;d=function(){var q=Fc(O);D.call(q)}}var O=lf(r,0,!1,null,null,!1,!1,"",cb);return r._reactRootContainer=O,r[er]=O.current,_s(r.nodeType===8?r.parentNode:r),bi(function(){zc(i,O,c,d)}),O}function Hc(r,i,c,d,p){var g=c._reactRootContainer;if(g){var w=g;if(typeof p=="function"){var D=p;p=function(){var O=Fc(w);D.call(O)}}zc(i,w,r,p)}else w=JC(c,i,r,p,d);return Fc(w)}$g=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var c=br(i.pendingLanes);c!==0&&(Md(i,c|1),Rn(i,tt()),(st&6)===0&&(wo=tt()+500,Rr()))}break;case 13:bi(function(){var d=rr(r,1);if(d!==null){var p=vn();ya(d,r,1,p)}}),cf(r,1)}},Nd=function(r){if(r.tag===13){var i=rr(r,134217728);if(i!==null){var c=vn();ya(i,r,134217728,c)}cf(r,134217728)}},Hg=function(r){if(r.tag===13){var i=Or(r),c=rr(r,i);if(c!==null){var d=vn();ya(c,r,i,d)}cf(r,i)}},Wg=function(){return ft},Kg=function(r,i){var c=ft;try{return ft=r,i()}finally{ft=c}},mr=function(r,i,c){switch(i){case"input":if(Nn(r,c),i=c.name,c.type==="radio"&&i!=null){for(c=r;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<c.length;i++){var d=c[i];if(d!==r&&d.form===r.form){var p=sc(d);if(!p)throw Error(n(90));Pn(d),Nn(d,p)}}}break;case"textarea":Ke(r,c);break;case"select":i=c.value,i!=null&&pn(r,!!c.multiple,i,!1)}},Hl=tf,is=bi;var eT={usingClientEntryPoint:!1,Events:[Ps,lo,sc,$l,rs,tf]},Us={findFiberByHostInstance:di,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tT={bundleType:Us.bundleType,version:Us.version,rendererPackageName:Us.rendererPackageName,rendererConfig:Us.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=ze(r),r===null?null:r.stateNode},findFiberByHostInstance:Us.findFiberByHostInstance||QC,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 Wc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wc.isDisabled&&Wc.supportsFiber)try{vr=Wc.inject(tT),Ft=Wc}catch{}}return Ln.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eT,Ln.createPortal=function(r,i){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!df(i))throw Error(n(200));return XC(r,i,null,c)},Ln.createRoot=function(r,i){if(!df(r))throw Error(n(299));var c=!1,d="",p=lb;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onRecoverableError!==void 0&&(p=i.onRecoverableError)),i=lf(r,1,!1,null,null,c,!1,d,p),r[er]=i.current,_s(r.nodeType===8?r.parentNode:r),new uf(i)},Ln.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=ze(i),r=r===null?null:r.stateNode,r},Ln.flushSync=function(r){return bi(r)},Ln.hydrate=function(r,i,c){if(!$c(i))throw Error(n(200));return Hc(null,r,i,!0,c)},Ln.hydrateRoot=function(r,i,c){if(!df(r))throw Error(n(405));var d=c!=null&&c.hydratedSources||null,p=!1,g="",w=lb;if(c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(g=c.identifierPrefix),c.onRecoverableError!==void 0&&(w=c.onRecoverableError)),i=ob(i,null,r,1,c??null,p,!1,g,w),r[er]=i.current,_s(r),d)for(r=0;r<d.length;r++)c=d[r],p=c._getVersion,p=p(c._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[c,p]:i.mutableSourceEagerHydrationData.push(c,p);return new Vc(i)},Ln.render=function(r,i,c){if(!$c(i))throw Error(n(200));return Hc(null,r,i,!1,c)},Ln.unmountComponentAtNode=function(r){if(!$c(r))throw Error(n(40));return r._reactRootContainer?(bi(function(){Hc(null,null,r,!1,function(){r._reactRootContainer=null,r[er]=null})}),!0):!1},Ln.unstable_batchedUpdates=tf,Ln.unstable_renderSubtreeIntoContainer=function(r,i,c,d){if(!$c(c))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Hc(r,i,c,!1,d)},Ln.version="18.3.1-next-f1338f8080-20240426",Ln}var yb;function k0(){if(yb)return pf.exports;yb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),pf.exports=uT(),pf.exports}var vb;function dT(){if(vb)return Kc;vb=1;var e=k0();return Kc.createRoot=e.createRoot,Kc.hydrateRoot=e.hydrateRoot,Kc}var hT=dT();var _0=e=>{throw TypeError(e)},w0=(e,t,n)=>t.has(e)||_0("Cannot "+n),Qn=(e,t,n)=>(w0(e,t,"read from private field"),n?n.call(e):t.get(e)),qs=(e,t,n)=>t.has(e)?_0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ia=(e,t,n,a)=>(w0(e,t,"write to private field"),t.set(e,n),n),bb="popstate";function kb(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function fT(e={}){function t(a,o){let s=o.state?.masked,{pathname:l,search:u,hash:h}=s||a.location;return hl("",{pathname:l,search:u,hash:h},o.state&&o.state.usr||null,o.state&&o.state.key||"default",s?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function n(a,o){return typeof o=="string"?o:Fa(o)}return mT(t,n,null,e)}function Qe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pT(){return Math.random().toString(36).substring(2,10)}function _b(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function hl(e,t,n=null,a,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ka(t):t,state:n,key:t&&t.key||a||pT(),mask:o}}function Fa({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ka(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function mT(e,t,n,a={}){let{window:o=document.defaultView,v5Compat:s=!1}=a,l=o.history,u="POP",h=null,f=m();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function m(){return(l.state||{idx:null}).idx}function y(){u="POP";let S=m(),M=S==null?null:S-f;f=S,h&&h({action:u,location:C.location,delta:M})}function v(S,M){u="PUSH";let R=kb(S)?S:hl(C.location,S,M);f=m()+1;let A=_b(R,f),E=C.createHref(R.mask||R);try{l.pushState(A,"",E)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;o.location.assign(E)}s&&h&&h({action:u,location:C.location,delta:1})}function _(S,M){u="REPLACE";let R=kb(S)?S:hl(C.location,S,M);f=m();let A=_b(R,f),E=C.createHref(R.mask||R);l.replaceState(A,"",E),s&&h&&h({action:u,location:C.location,delta:0})}function x(S){return x0(o,S)}let C={get action(){return u},get location(){return e(o,l)},listen(S){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(bb,y),h=S,()=>{o.removeEventListener(bb,y),h=null}},createHref(S){return t(o,S)},createURL:x,encodeLocation(S){let M=x(S);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:v,replace:_,go(S){return l.go(S)}};return C}function x0(e,t,n=!1){let a="http://localhost";e&&(a=e.location.origin!=="null"?e.location.origin:e.location.href),Qe(a,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:Fa(t);return o=o.replace(/ $/,"%20"),!n&&o.startsWith("//")&&(o=a+o),new URL(o,a)}var Ys,wb=class{constructor(e){if(qs(this,Ys,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(Qn(this,Ys).has(e))return Qn(this,Ys).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){Qn(this,Ys).set(e,t)}};Ys=new WeakMap;var gT=new Set(["lazy","caseSensitive","path","id","index","children"]);function yT(e){return gT.has(e)}var vT=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function bT(e){return vT.has(e)}function kT(e){return e.index===!0}function fl(e,t,n=[],a={},o=!1){return e.map((s,l)=>{let u=[...n,String(l)],h=typeof s.id=="string"?s.id:u.join("-");if(Qe(s.index!==!0||!s.children,"Cannot specify children on an index route"),Qe(o||!a[h],`Found a route id collision on id "${h}". Route id's must be globally unique within Data Router usages`),kT(s)){let f={...s,id:h};return a[h]=xb(f,t(f)),f}else{let f={...s,id:h,children:void 0};return a[h]=xb(f,t(f)),s.children&&(f.children=fl(s.children,t,u,a,o)),f}})}function xb(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function P0(e,t,n="/"){return ba(e,t,n,!1)}function ba(e,t,n,a,o){let s=typeof t=="string"?Ka(t):t,l=ia(s.pathname||"/",n);if(l==null)return null;let u=o??du(e),h=null,f=IT(l);for(let m=0;h==null&&m<u.length;++m)h=LT(u[m],f,a);return h}function _T(e,t){let{route:n,pathname:a,params:o}=e;return{id:n.id,pathname:a,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function du(e){let t=S0(e);return wT(t),t}function S0(e,t=[],n=[],a="",o=!1){let s=(l,u,h=o,f)=>{let m={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(a)&&h)return;Qe(m.relativePath.startsWith(a),`Absolute route path "${m.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(a.length)}let y=na([a,m.relativePath]),v=n.concat(m);l.children&&l.children.length>0&&(Qe(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),S0(l.children,t,v,y,h)),!(l.path==null&&!l.index)&&t.push({path:y,score:AT(y,l.index),routesMeta:v})};return e.forEach((l,u)=>{if(l.path===""||!l.path?.includes("?"))s(l,u);else for(let h of C0(l.path))s(l,u,!0,h)}),t}function C0(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(a.length===0)return o?[s,""]:[s];let l=C0(a.join("/")),u=[];return u.push(...l.map(h=>h===""?s:[s,h].join("/"))),o&&u.push(...l),u.map(h=>e.startsWith("/")&&h===""?"/":h)}function wT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:RT(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var xT=/^:[\w-]+$/,PT=3,ST=2,CT=1,TT=10,ET=-2,Pb=e=>e==="*";function AT(e,t){let n=e.split("/"),a=n.length;return n.some(Pb)&&(a+=ET),t&&(a+=ST),n.filter(o=>!Pb(o)).reduce((o,s)=>o+(xT.test(s)?PT:s===""?CT:TT),a)}function RT(e,t){return e.length===t.length&&e.slice(0,-1).every((a,o)=>a===t[o])?e[e.length-1]-t[t.length-1]:0}function LT(e,t,n=!1){let{routesMeta:a}=e,o={},s="/",l=[];for(let u=0;u<a.length;++u){let h=a[u],f=u===a.length-1,m=s==="/"?t:t.slice(s.length)||"/",y=Du({path:h.relativePath,caseSensitive:h.caseSensitive,end:f},m),v=h.route;if(!y&&f&&n&&!a[a.length-1].route.index&&(y=Du({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},m)),!y)return null;Object.assign(o,y.params),l.push({params:o,pathname:na([s,y.pathname]),pathnameBase:OT(na([s,y.pathnameBase])),route:v}),y.pathnameBase!=="/"&&(s=na([s,y.pathnameBase]))}return l}function Du(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=DT(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:a.reduce((f,{paramName:m,isOptional:y},v)=>{if(m==="*"){let x=u[v]||"";l=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const _=u[v];return y&&!_?f[m]=void 0:f[m]=(_||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function DT(e,t=!1,n=!0){Nt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,h,f,m)=>{if(a.push({paramName:u,isOptional:h!=null}),h){let y=m.charAt(f+l.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),a]}function IT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Nt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ia(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function MT({basename:e,pathname:t}){return t==="/"?e:na([e,t])}var T0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,um=e=>T0.test(e);function NT(e,t="/"){let{pathname:n,search:a="",hash:o=""}=typeof e=="string"?Ka(e):e,s;return n?(n=hm(n),n.startsWith("/")?s=Sb(n.substring(1),"/"):s=Sb(n,t)):s=t,{pathname:s,search:jT(a),hash:UT(o)}}function Sb(e,t){let n=Iu(t).split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function yf(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function E0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function dm(e){let t=E0(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function hd(e,t,n,a=!1){let o;typeof e=="string"?o=Ka(e):(o={...e},Qe(!o.pathname||!o.pathname.includes("?"),yf("?","pathname","search",o)),Qe(!o.pathname||!o.pathname.includes("#"),yf("#","pathname","hash",o)),Qe(!o.search||!o.search.includes("#"),yf("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,u;if(l==null)u=n;else{let y=t.length-1;if(!a&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),y-=1;o.pathname=v.join("/")}u=y>=0?t[y]:"/"}let h=NT(o,u),f=l&&l!=="/"&&l.endsWith("/"),m=(s||l===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(f||m)&&(h.pathname+="/"),h}var hm=e=>e.replace(/\/\/+/g,"/"),na=e=>hm(e.join("/")),Iu=e=>e.replace(/\/+$/,""),OT=e=>Iu(e).replace(/^\/*/,"/"),jT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,UT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Pl=class{constructor(e,t,n,a=!1){this.status=e,this.statusText=t||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function pl(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Sl(e){let t=e.map(n=>n.route.path).filter(Boolean);return na(t)||"/"}var A0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function R0(e,t){let n=e;if(typeof n!="string"||!T0.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let a=n,o=!1;if(A0)try{let s=new URL(window.location.href),l=n.startsWith("//")?new URL(s.protocol+n):new URL(n),u=ia(l.pathname,t);l.origin===s.origin&&u!=null?n=u+l.search+l.hash:o=!0}catch{Nt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:o,to:n}}var Yr=Symbol("Uninstrumented");function BT(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(o=>o({id:t.id,index:t.index,path:t.path,instrument(s){let l=Object.keys(n);for(let u of l)s[u]&&n[u].push(s[u])}}));let a={};if(typeof t.lazy=="function"&&n.lazy.length>0){let o=Mo(n.lazy,t.lazy,()=>{});o&&(a.lazy=o)}if(typeof t.lazy=="object"){let o=t.lazy;["middleware","loader","action"].forEach(s=>{let l=o[s],u=n[`lazy.${s}`];if(typeof l=="function"&&u.length>0){let h=Mo(u,l,()=>{});h&&(a.lazy=Object.assign(a.lazy||{},{[s]:h}))}})}return["loader","action"].forEach(o=>{let s=t[o];if(typeof s=="function"&&n[o].length>0){let l=s[Yr]??s,u=Mo(n[o],l,(...h)=>Cb(h[0]));u&&(o==="loader"&&l.hydrate===!0&&(u.hydrate=!0),u[Yr]=l,a[o]=u)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(a.middleware=t.middleware.map(o=>{let s=o[Yr]??o,l=Mo(n.middleware,s,(...u)=>Cb(u[0]));return l?(l[Yr]=s,l):o})),a}function zT(e,t){let n={navigate:[],fetch:[]};if(t.forEach(a=>a({instrument(o){let s=Object.keys(o);for(let l of s)o[l]&&n[l].push(o[l])}})),n.navigate.length>0){let a=e.navigate[Yr]??e.navigate,o=Mo(n.navigate,a,(...s)=>{let[l,u]=s;return{to:typeof l=="number"||typeof l=="string"?l:l?Fa(l):".",...Tb(e,u??{})}});o&&(o[Yr]=a,e.navigate=o)}if(n.fetch.length>0){let a=e.fetch[Yr]??e.fetch,o=Mo(n.fetch,a,(...s)=>{let[l,,u,h]=s;return{href:u??".",fetcherKey:l,...Tb(e,h??{})}});o&&(o[Yr]=a,e.fetch=o)}return e}function Mo(e,t,n){return e.length===0?null:async(...a)=>{let o=await L0(e,n(...a),()=>t(...a),e.length-1);if(o.type==="error")throw o.value;return o.value}}async function L0(e,t,n,a){let o=e[a],s;if(o){let l,u=async()=>(l?console.error("You cannot call instrumented handlers more than once"):l=L0(e,t,n,a-1),s=await l,Qe(s,"Expected a result"),s.type==="error"&&s.value instanceof Error?{status:"error",error:s.value}:{status:"success",error:void 0});try{await o(u,t)}catch(h){console.error("An instrumentation function threw an error:",h)}l||await u(),await l}else try{s={type:"success",value:await n()}}catch(l){s={type:"error",value:l}}return s||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function Cb(e){let{request:t,context:n,params:a,pattern:o}=e;return{request:FT(t),params:{...a},pattern:o,context:VT(n)}}function Tb(e,t){return{currentUrl:Fa(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function FT(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function VT(e){if(HT(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var $T=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function HT(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===$T}var D0=["POST","PUT","PATCH","DELETE"],WT=new Set(D0),KT=["GET",...D0],GT=new Set(KT),I0=new Set([301,302,303,307,308]),qT=new Set([307,308]),vf={state:"idle",location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},YT={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},zs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ZT=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),M0="remix-router-transitions",N0=Symbol("ResetLoaderData"),Ti,Ao,$r,Ro,XT=class{constructor(e){qs(this,Ti),qs(this,Ao),qs(this,$r),qs(this,Ro),Ia(this,Ti,e),Ia(this,Ao,du(e))}get stableRoutes(){return Qn(this,Ti)}get activeRoutes(){return Qn(this,$r)??Qn(this,Ti)}get branches(){return Qn(this,Ro)??Qn(this,Ao)}get hasHMRRoutes(){return Qn(this,$r)!=null}setRoutes(e){Ia(this,Ti,e),Ia(this,Ao,du(e))}setHmrRoutes(e){Ia(this,$r,e),Ia(this,Ro,du(e))}commitHmrRoutes(){Qn(this,$r)&&(Ia(this,Ti,Qn(this,$r)),Ia(this,Ao,Qn(this,Ro)),Ia(this,$r,void 0),Ia(this,Ro,void 0))}};Ti=new WeakMap;Ao=new WeakMap;$r=new WeakMap;Ro=new WeakMap;function QT(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Qe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a=e.hydrationRouteProperties||[],o=e.mapRouteProperties||ZT,s=o;if(e.instrumentations){let N=e.instrumentations;s=j=>({...o(j),...BT(N.map(K=>K.route).filter(Boolean),j)})}let l={},u=new XT(fl(e.routes,s,void 0,l)),h=e.basename||"/";h.startsWith("/")||(h=`/${h}`);let f=e.dataStrategy||a2,m={...e.future},y=null,v=new Set,_=null,x=null,C=null,S=null,M=e.hydrationData!=null,R=ba(u.activeRoutes,e.history.location,h,!1,u.branches),A=!1,E=null,B,$;if(R==null&&!e.patchRoutesOnNavigation){let N=Jn(404,{pathname:e.history.location.pathname}),{matches:j,route:K}=Gc(u.activeRoutes);B=!0,$=!B,R=j,E={[K.id]:N}}else if(R&&!e.hydrationData&&gr(R,u.activeRoutes,e.history.location.pathname).active&&(R=null),R)if(R.some(N=>N.route.lazy))B=!1,$=!B;else if(!R.some(N=>fm(N.route)))B=!0,$=!B;else{let N=e.hydrationData?e.hydrationData.loaderData:null,j=e.hydrationData?e.hydrationData.errors:null,K=R;if(j){let ee=R.findIndex(te=>j[te.route.id]!==void 0);K=K.slice(0,ee+1)}$=!1,B=!0,K.forEach(ee=>{let te=O0(ee.route,N,j);$=$||te.renderFallback,B=B&&!te.shouldLoad})}else{B=!1,$=!B,R=[];let N=gr(null,u.activeRoutes,e.history.location.pathname);N.active&&N.matches&&(A=!0,R=N.matches)}let V,P={historyAction:e.history.action,location:e.history.location,matches:R,initialized:B,renderFallback:$,navigation:vf,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},Z="POP",X=null,fe=!1,he,J=!1,re=new Map,ue=null,Q=!1,ie=!1,F=new Set,Y=new Map,z=0,I=-1,W=new Map,ge=new Set,pe=new Map,me=new Map,be=new Set,Be=new Map,Ye,Ne=null;function Rt(){if(y=e.history.listen(({action:N,location:j,delta:K})=>{if(Ye){Ye(),Ye=void 0;return}Nt(Be.size===0||K!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ee=Xa({currentLocation:P.location,nextLocation:j,historyAction:N});if(ee&&K!=null){let te=new Promise(Re=>{Ye=Re});e.history.go(K*-1),On(ee,{state:"blocked",location:j,proceed(){On(ee,{state:"proceeding",proceed:void 0,reset:void 0,location:j}),te.then(()=>e.history.go(K))},reset(){let Re=new Map(P.blockers);Re.set(ee,zs),mt({blockers:Re})}}),X?.resolve(),X=null;return}return Nn(N,j)}),n){_2(t,re);let N=()=>w2(t,re);t.addEventListener("pagehide",N),ue=()=>t.removeEventListener("pagehide",N)}return P.initialized||Nn("POP",P.location,{initialHydration:!0}),V}function Mn(){y&&y(),ue&&ue(),v.clear(),he&&he.abort(),P.fetchers.forEach((N,j)=>Gt(P.fetchers,j)),P.blockers.forEach((N,j)=>mr(j))}function Pn(N){if(v.add(N),_){let{newErrors:j}=_;_=null,N(P,{deletedFetchers:[],newErrors:j,viewTransitionOpts:void 0,flushSync:!1})}return()=>v.delete(N)}function mt(N,j={}){N.matches&&(N.matches=N.matches.map(te=>{let Re=l[te.route.id],Le=te.route;return Le.element!==Re.element||Le.errorElement!==Re.errorElement||Le.hydrateFallbackElement!==Re.hydrateFallbackElement?{...te,route:Re}:te})),P={...P,...N};let K=[],ee=[];P.fetchers.forEach((te,Re)=>{te.state==="idle"&&(be.has(Re)?K.push(Re):ee.push(Re))}),be.forEach(te=>{!P.fetchers.has(te)&&!Y.has(te)&&K.push(te)}),v.size===0&&(_={newErrors:N.errors??null}),[...v].forEach(te=>te(P,{deletedFetchers:K,newErrors:N.errors??null,viewTransitionOpts:j.viewTransitionOpts,flushSync:j.flushSync===!0})),K.forEach(te=>Gt(P.fetchers,te)),ee.forEach(te=>P.fetchers.delete(te))}function Jt(N,j,{flushSync:K}={}){let ee=P.actionData!=null&&P.navigation.formMethod!=null&&hn(P.navigation.formMethod)&&P.navigation.state==="loading"&&N.state?._isRedirect!==!0,te;j.actionData?Object.keys(j.actionData).length>0?te=j.actionData:te=null:ee?te=P.actionData:te=null;let Re=j.loaderData?Ub(P.loaderData,j.loaderData,j.matches||[],j.errors):P.loaderData,Le=P.blockers;Le.size>0&&(Le=new Map(Le),Le.forEach((Me,Ge)=>Le.set(Ge,zs)));let De=Q?!1:is(N,j.matches||P.matches),ve=fe===!0||P.navigation.formMethod!=null&&hn(P.navigation.formMethod)&&N.state?._isRedirect!==!0;u.commitHmrRoutes(),Q||Z==="POP"||(Z==="PUSH"?e.history.push(N,N.state):Z==="REPLACE"&&e.history.replace(N,N.state));let Oe;if(Z==="POP"){let Me=re.get(P.location.pathname);Me&&Me.has(N.pathname)?Oe={currentLocation:P.location,nextLocation:N}:re.has(N.pathname)&&(Oe={currentLocation:N,nextLocation:P.location})}else if(J){let Me=re.get(P.location.pathname);Me?Me.add(N.pathname):(Me=new Set([N.pathname]),re.set(P.location.pathname,Me)),Oe={currentLocation:P.location,nextLocation:N}}mt({...j,actionData:te,loaderData:Re,historyAction:Z,location:N,initialized:!0,renderFallback:!1,navigation:vf,revalidation:"idle",restoreScrollPosition:De,preventScrollReset:ve,blockers:Le},{viewTransitionOpts:Oe,flushSync:K===!0}),Z="POP",fe=!1,J=!1,Q=!1,ie=!1,X?.resolve(),X=null,Ne?.resolve(),Ne=null}async function oi(N,j){if(X?.resolve(),X=null,typeof N=="number"){X||(X=Vb());let ut=X.promise;return e.history.go(N),ut}let K=np(P.location,P.matches,h,N,j?.fromRouteId,j?.relative),{path:ee,submission:te,error:Re}=Eb(!1,K,j),Le;j?.mask&&(Le={pathname:"",search:"",hash:"",...typeof j.mask=="string"?Ka(j.mask):{...P.location.mask,...j.mask}});let De=P.location,ve=hl(De,ee,j&&j.state,void 0,Le);ve={...ve,...e.history.encodeLocation(ve)};let Oe=j&&j.replace!=null?j.replace:void 0,Me="PUSH";Oe===!0?Me="REPLACE":Oe===!1||te!=null&&hn(te.formMethod)&&te.formAction===P.location.pathname+P.location.search&&(Me="REPLACE");let Ge=j&&"preventScrollReset"in j?j.preventScrollReset===!0:void 0,ze=(j&&j.flushSync)===!0,rt=Xa({currentLocation:De,nextLocation:ve,historyAction:Me});if(rt){On(rt,{state:"blocked",location:ve,proceed(){On(rt,{state:"proceeding",proceed:void 0,reset:void 0,location:ve}),oi(N,j)},reset(){let ut=new Map(P.blockers);ut.set(rt,zs),mt({blockers:ut})}});return}await Nn(Me,ve,{submission:te,pendingError:Re,preventScrollReset:Ge,replace:j&&j.replace,enableViewTransition:j&&j.viewTransition,flushSync:ze,callSiteDefaultShouldRevalidate:j&&j.defaultShouldRevalidate})}function qi(){Ne||(Ne=Vb()),Ot(),mt({revalidation:"loading"});let N=Ne.promise;return P.navigation.state==="submitting"?N:P.navigation.state==="idle"?(Nn(P.historyAction,P.location,{startUninterruptedRevalidation:!0}),N):(Nn(Z||P.historyAction,P.navigation.location,{overrideNavigation:P.navigation,enableViewTransition:J===!0}),N)}async function Nn(N,j,K){he&&he.abort(),he=null,Z=N,Q=(K&&K.startUninterruptedRevalidation)===!0,Hl(P.location,P.matches),fe=(K&&K.preventScrollReset)===!0,J=(K&&K.enableViewTransition)===!0;let ee=u.activeRoutes,te=K?.initialHydration&&P.matches&&P.matches.length>0&&!A?P.matches:ba(ee,j,h,!1,u.branches),Re=(K&&K.flushSync)===!0;if(te&&P.initialized&&!ie&&d2(P.location,j)&&!(K&&K.submission&&hn(K.submission.formMethod))){Jt(j,{matches:te},{flushSync:Re});return}let Le=gr(te,ee,j.pathname);if(Le.active&&Le.matches&&(te=Le.matches),!te){let{error:kt,notFoundMatches:ht,route:tt}=Xi(j.pathname);Jt(j,{matches:ht,loaderData:{},errors:{[tt.id]:kt}},{flushSync:Re});return}let De=K&&K.overrideNavigation?{...K.overrideNavigation,matches:te,historyAction:N}:void 0;he=new AbortController;let ve=Lo(e.history,j,he.signal,K&&K.submission),Oe=e.getContext?await e.getContext():new wb,Me;if(K&&K.pendingError)Me=[Kr(te).route.id,{type:"error",error:K.pendingError}];else if(K&&K.submission&&hn(K.submission.formMethod)){let kt=await Yi(ve,j,K.submission,te,N,Oe,Le.active,K&&K.initialHydration===!0,{replace:K.replace,flushSync:Re});if(kt.shortCircuited)return;if(kt.pendingActionResult){let[ht,tt]=kt.pendingActionResult;if($n(tt)&&pl(tt.error)&&tt.error.status===404){he=null,Jt(j,{matches:kt.matches,loaderData:{},errors:{[ht]:tt.error}});return}}te=kt.matches||te,Me=kt.pendingActionResult,De=bf(j,te,N,K.submission),Re=!1,Le.active=!1,ve=Lo(e.history,ve.url,ve.signal)}let{shortCircuited:Ge,matches:ze,loaderData:rt,errors:ut,workingFetchers:It}=await pr(ve,j,te,N,Oe,Le.active,De,K&&K.submission,K&&K.fetcherSubmission,K&&K.replace,K&&K.initialHydration===!0,Re,Me,K&&K.callSiteDefaultShouldRevalidate);Ge||(he=null,Jt(j,{matches:ze||te,...Bb(Me),loaderData:rt,errors:ut,...It?{fetchers:It}:{}}))}async function Yi(N,j,K,ee,te,Re,Le,De,ve={}){Ot();let Oe=b2(j,ee,te,K);if(mt({navigation:Oe},{flushSync:ve.flushSync===!0}),Le){let ze=await ci(ee,j.pathname,N.signal);if(ze.type==="aborted")return{shortCircuited:!0};if(ze.type==="error"){if(ze.partialMatches.length===0){let{matches:ut,route:It}=Gc(u.activeRoutes);return{matches:ut,pendingActionResult:[It.id,{type:"error",error:ze.error}]}}let rt=Kr(ze.partialMatches).route.id;return{matches:ze.partialMatches,pendingActionResult:[rt,{type:"error",error:ze.error}]}}else if(ze.matches)ee=ze.matches;else{let{notFoundMatches:rt,error:ut,route:It}=Xi(j.pathname);return{matches:rt,pendingActionResult:[It.id,{type:"error",error:ut}]}}}let Me,Ge=hu(ee,j);if(!Ge.route.action&&!Ge.route.lazy)Me={type:"error",error:Jn(405,{method:N.method,pathname:j.pathname,routeId:Ge.route.id})};else{let ze=zo(s,l,N,j,ee,Ge,De?[]:a,Re),rt=await pt(N,j,ze,Re,null);if(Me=rt[Ge.route.id],!Me){for(let ut of ee)if(rt[ut.route.id]){Me=rt[ut.route.id];break}}if(N.signal.aborted)return{shortCircuited:!0}}if(Ai(Me)){let ze;return ve&&ve.replace!=null?ze=ve.replace:ze=Nb(Me.response.headers.get("Location"),new URL(N.url),h,e.history)===P.location.pathname+P.location.search,await Ve(N,Me,!0,{submission:K,replace:ze}),{shortCircuited:!0}}if($n(Me)){let ze=Kr(ee,Ge.route.id);return(ve&&ve.replace)!==!0&&(Z="PUSH"),{matches:ee,pendingActionResult:[ze.route.id,Me,Ge.route.id]}}return{matches:ee,pendingActionResult:[Ge.route.id,Me]}}async function pr(N,j,K,ee,te,Re,Le,De,ve,Oe,Me,Ge,ze,rt){let ut=Le||bf(j,K,ee,De),It=De||ve||Fb(ut),kt=!Q&&!Me;if(Re){if(kt){let sn=Sa(ze);mt({navigation:ut,...sn!==void 0?{actionData:sn}:{}},{flushSync:Ge})}let nt=await ci(K,j.pathname,N.signal);if(nt.type==="aborted")return{shortCircuited:!0};if(nt.type==="error"){if(nt.partialMatches.length===0){let{matches:gn,route:Sn}=Gc(u.activeRoutes);return{matches:gn,loaderData:{},errors:{[Sn.id]:nt.error}}}let sn=Kr(nt.partialMatches).route.id;return{matches:nt.partialMatches,loaderData:{},errors:{[sn]:nt.error}}}else if(nt.matches)K=nt.matches;else{let{error:sn,notFoundMatches:gn,route:Sn}=Xi(j.pathname);return{matches:gn,loaderData:{},errors:{[Sn.id]:sn}}}}let ht=u.activeRoutes,{dsMatches:tt,revalidatingFetchers:rn}=Ab(N,te,s,l,e.history,P,K,It,j,Me?[]:a,Me===!0,ie,F,be,pe,ge,ht,h,e.patchRoutesOnNavigation!=null,u.branches,ze,rt);if(I=++z,!e.dataStrategy&&!tt.some(nt=>nt.shouldLoad)&&!tt.some(nt=>nt.route.middleware&&nt.route.middleware.length>0)&&rn.length===0){let nt=new Map(P.fetchers),sn=Ta(nt);return Jt(j,{matches:K,loaderData:{},errors:ze&&$n(ze[1])?{[ze[0]]:ze[1].error}:null,...Bb(ze),...sn?{fetchers:nt}:{}},{flushSync:Ge}),{shortCircuited:!0}}if(kt){let nt={};if(!Re){nt.navigation=ut;let sn=Sa(ze);sn!==void 0&&(nt.actionData=sn)}rn.length>0&&(nt.fetchers=pn(rn)),mt(nt,{flushSync:Ge})}rn.forEach(nt=>{mn(nt.key),nt.controller&&Y.set(nt.key,nt.controller)});let Qa=()=>rn.forEach(nt=>mn(nt.key));he&&he.signal.addEventListener("abort",Qa);let{loaderResults:ua,fetcherResults:da}=await Pt(tt,rn,N,j,te);if(N.signal.aborted)return{shortCircuited:!0};he&&he.signal.removeEventListener("abort",Qa),rn.forEach(nt=>Y.delete(nt.key));let Ea=qc(ua);if(Ea)return await Ve(N,Ea.result,!0,{replace:Oe}),{shortCircuited:!0};if(Ea=qc(da),Ea)return ge.add(Ea.key),await Ve(N,Ea.result,!0,{replace:Oe}),{shortCircuited:!0};let jn=new Map(P.fetchers),{loaderData:vr,errors:Ft}=jb(P,K,ua,ze,rn,da,jn);Me&&P.errors&&(Ft={...P.errors,...Ft});let Qi=Ta(jn),on=ca(I,jn),Ji=Qi||on||rn.length>0;return{matches:K,loaderData:vr,errors:Ft,...Ji?{workingFetchers:jn}:{}}}function Sa(N){if(N&&!$n(N[1]))return{[N[0]]:N[1].data};if(P.actionData)return Object.keys(P.actionData).length===0?null:P.actionData}function pn(N){let j=new Map(P.fetchers);return N.forEach(K=>{let ee=j.get(K.key),te=Fs(void 0,ee?ee.data:void 0);j.set(K.key,te)}),j}async function si(N,j,K,ee){mn(N);let te=(ee&&ee.flushSync)===!0,Re=u.activeRoutes,Le=np(P.location,P.matches,h,K,j,ee?.relative),De=ba(Re,Le,h,!1,u.branches),ve=gr(De,Re,Le);if(ve.active&&ve.matches&&(De=ve.matches),!De){dt(N,j,Jn(404,{pathname:Le}),{flushSync:te});return}let{path:Oe,submission:Me,error:Ge}=Eb(!0,Le,ee);if(Ge){dt(N,j,Ge,{flushSync:te});return}let ze=e.getContext?await e.getContext():new wb,rt=(ee&&ee.preventScrollReset)===!0;if(Me&&hn(Me.formMethod)){await Zi(N,j,Oe,De,ze,ve.active,te,rt,Me,ee&&ee.defaultShouldRevalidate);return}pe.set(N,{routeId:j,path:Oe}),await Ke(N,j,Oe,De,ze,ve.active,te,rt,Me)}async function Zi(N,j,K,ee,te,Re,Le,De,ve,Oe){Ot(),pe.delete(N);let Me=P.fetchers.get(N);yt(N,k2(ve,Me),{flushSync:Le});let Ge=new AbortController,ze=Lo(e.history,K,Ge.signal,ve);if(Re){let vt=await ci(ee,new URL(ze.url).pathname,ze.signal,N);if(vt.type==="aborted")return;if(vt.type==="error"){dt(N,j,vt.error,{flushSync:Le});return}else if(vt.matches)ee=vt.matches;else{dt(N,j,Jn(404,{pathname:K}),{flushSync:Le});return}}let rt=hu(ee,K);if(!rt.route.action&&!rt.route.lazy){let vt=Jn(405,{method:ve.formMethod,pathname:K,routeId:j});dt(N,j,vt,{flushSync:Le});return}Y.set(N,Ge);let ut=z,It=zo(s,l,ze,K,ee,rt,a,te),kt=await pt(ze,K,It,te,N),ht=kt[rt.route.id];if(!ht){for(let vt of It)if(kt[vt.route.id]){ht=kt[vt.route.id];break}}if(ze.signal.aborted){Y.get(N)===Ge&&Y.delete(N);return}if(be.has(N)){if(Ai(ht)||$n(ht)){yt(N,Ma(void 0));return}}else{if(Ai(ht))if(Y.delete(N),I>ut){yt(N,Ma(void 0));return}else return ge.add(N),yt(N,Fs(ve)),Ve(ze,ht,!1,{fetcherSubmission:ve,preventScrollReset:De});if($n(ht)){dt(N,j,ht.error);return}}let tt=P.navigation.location||P.location,rn=Lo(e.history,tt,Ge.signal),Qa=u.activeRoutes,ua=P.navigation.state!=="idle"?ba(Qa,P.navigation.location,h,!1,u.branches):P.matches;Qe(ua,"Didn't find any matches after fetcher action");let da=++z;W.set(N,da);let{dsMatches:Ea,revalidatingFetchers:jn}=Ab(rn,te,s,l,e.history,P,ua,ve,tt,a,!1,ie,F,be,pe,ge,Qa,h,e.patchRoutesOnNavigation!=null,u.branches,[rt.route.id,ht],Oe),vr=Fs(ve,ht.data),Ft=new Map(P.fetchers);Ft.set(N,vr),jn.filter(vt=>vt.key!==N).forEach(vt=>{let Ja=vt.key,eo=Ft.get(Ja),Wl=Fs(void 0,eo?eo.data:void 0);Ft.set(Ja,Wl),mn(Ja),vt.controller&&Y.set(Ja,vt.controller)}),mt({fetchers:Ft});let Qi=()=>jn.forEach(vt=>mn(vt.key));Ge.signal.addEventListener("abort",Qi);let{loaderResults:on,fetcherResults:Ji}=await Pt(Ea,jn,rn,tt,te);if(Ge.signal.aborted)return;Ge.signal.removeEventListener("abort",Qi),W.delete(N),Y.delete(N),jn.forEach(vt=>Y.delete(vt.key));let nt=P.fetchers.has(N),sn=vt=>{if(!nt)return vt;let Ja=new Map(vt.fetchers);return Ja.set(N,Ma(ht.data)),{...vt,fetchers:Ja}},gn=qc(on);if(gn)return P=sn(P),Ve(rn,gn.result,!1,{preventScrollReset:De});if(gn=qc(Ji),gn)return ge.add(gn.key),P=sn(P),Ve(rn,gn.result,!1,{preventScrollReset:De});let Sn=new Map(P.fetchers);nt&&Sn.set(N,Ma(ht.data));let{loaderData:br,errors:kr}=jb(P,ua,on,void 0,jn,Ji,Sn);ca(da,Sn),P.navigation.state==="loading"&&da>I?(Qe(Z,"Expected pending action"),he&&he.abort(),Jt(P.navigation.location,{matches:ua,loaderData:br,errors:kr,fetchers:Sn})):(mt({errors:kr,loaderData:Ub(P.loaderData,br,ua,kr),fetchers:Sn}),ie=!1)}async function Ke(N,j,K,ee,te,Re,Le,De,ve){let Oe=P.fetchers.get(N);yt(N,Fs(ve,Oe?Oe.data:void 0),{flushSync:Le});let Me=new AbortController,Ge=Lo(e.history,K,Me.signal);if(Re){let ht=await ci(ee,new URL(Ge.url).pathname,Ge.signal,N);if(ht.type==="aborted")return;if(ht.type==="error"){dt(N,j,ht.error,{flushSync:Le});return}else if(ht.matches)ee=ht.matches;else{dt(N,j,Jn(404,{pathname:K}),{flushSync:Le});return}}let ze=hu(ee,K);Y.set(N,Me);let rt=z,ut=zo(s,l,Ge,K,ee,ze,a,te),It=await pt(Ge,K,ut,te,N),kt=It[ze.route.id];if(!kt){for(let ht of ee)if(It[ht.route.id]){kt=It[ht.route.id];break}}if(Y.get(N)===Me&&Y.delete(N),!Ge.signal.aborted){if(be.has(N)){yt(N,Ma(void 0));return}if(Ai(kt))if(I>rt){yt(N,Ma(void 0));return}else{ge.add(N),await Ve(Ge,kt,!1,{preventScrollReset:De});return}if($n(kt)){dt(N,j,kt.error);return}yt(N,Ma(kt.data))}}async function Ve(N,j,K,{submission:ee,fetcherSubmission:te,preventScrollReset:Re,replace:Le}={}){K||(X?.resolve(),X=null),j.response.headers.has("X-Remix-Revalidate")&&(ie=!0);let De=j.response.headers.get("Location");Qe(De,"Expected a Location header on the redirect Response"),De=Nb(De,new URL(N.url),h,e.history);let ve=hl(P.location,De,{_isRedirect:!0});if(n){let ut=!1;if(j.response.headers.has("X-Remix-Reload-Document"))ut=!0;else if(um(De)){const It=x0(t,De,!0);ut=It.origin!==t.location.origin||ia(It.pathname,h)==null}if(ut){Le?t.location.replace(De):t.location.assign(De);return}}he=null;let Oe=Le===!0||j.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Me,formAction:Ge,formEncType:ze}=P.navigation;!ee&&!te&&Me&&Ge&&ze&&(ee=Fb(P.navigation));let rt=ee||te;if(qT.has(j.response.status)&&rt&&hn(rt.formMethod))await Nn(Oe,ve,{submission:{...rt,formAction:De},preventScrollReset:Re||fe,enableViewTransition:K?J:void 0});else{let ut=bf(ve,[],Oe,ee);await Nn(Oe,ve,{overrideNavigation:ut,fetcherSubmission:te,preventScrollReset:Re||fe,enableViewTransition:K?J:void 0})}}async function pt(N,j,K,ee,te){let Re,Le={};try{Re=await i2(f,N,j,K,te,ee,!1)}catch(De){return K.filter(ve=>ve.shouldLoad).forEach(ve=>{Le[ve.route.id]={type:"error",error:De}}),Le}if(N.signal.aborted)return Le;if(!hn(N.method))for(let De of K){if(Re[De.route.id]?.type==="error")break;!Re.hasOwnProperty(De.route.id)&&!P.loaderData.hasOwnProperty(De.route.id)&&(!P.errors||!P.errors.hasOwnProperty(De.route.id))&&De.shouldCallHandler()&&(Re[De.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${De.route.id}`)})}for(let[De,ve]of Object.entries(Re))if(m2(ve)){let Oe=ve.result;Le[De]={type:"redirect",response:c2(Oe,N,De,K,h)}}else Le[De]=await l2(ve);return Le}async function Pt(N,j,K,ee,te){let Re=pt(K,ee,N,te,null),Le=Promise.all(j.map(async Oe=>{if(Oe.matches&&Oe.match&&Oe.request&&Oe.controller){let Ge=(await pt(Oe.request,Oe.path,Oe.matches,te,Oe.key))[Oe.match.route.id];return{[Oe.key]:Ge}}else return Promise.resolve({[Oe.key]:{type:"error",error:Jn(404,{pathname:Oe.path})}})})),De=await Re,ve=(await Le).reduce((Oe,Me)=>Object.assign(Oe,Me),{});return{loaderResults:De,fetcherResults:ve}}function Ot(){ie=!0,pe.forEach((N,j)=>{Y.has(j)&&F.add(j),mn(j)})}function yt(N,j,K={}){let ee=new Map(P.fetchers);ee.set(N,j),mt({fetchers:ee},{flushSync:(K&&K.flushSync)===!0})}function dt(N,j,K,ee={}){let te=Kr(P.matches,j),Re=new Map(P.fetchers);Gt(Re,N),mt({errors:{[te.route.id]:K},fetchers:Re},{flushSync:(ee&&ee.flushSync)===!0})}function Ya(N){return me.set(N,(me.get(N)||0)+1),be.has(N)&&be.delete(N),P.fetchers.get(N)||YT}function as(N,j){mn(N,j?.reason),yt(N,Ma(null))}function Gt(N,j){let K=P.fetchers.get(j);Y.has(j)&&!(K&&K.state==="loading"&&W.has(j))&&mn(j),pe.delete(j),W.delete(j),ge.delete(j),be.delete(j),F.delete(j),N.delete(j)}function Za(N){let j=(me.get(N)||0)-1;j<=0?(me.delete(N),be.add(N)):me.set(N,j),mt({fetchers:new Map(P.fetchers)})}function mn(N,j){let K=Y.get(N);K&&(K.abort(j),Y.delete(N))}function Ca(N,j){for(let K of N){let ee=j.get(K);Qe(ee,`Expected fetcher: ${K}`);let te=Ma(ee.data);j.set(K,te)}}function Ta(N){let j=[],K=!1;for(let ee of ge){let te=N.get(ee);Qe(te,`Expected fetcher: ${ee}`),te.state==="loading"&&(ge.delete(ee),j.push(ee),K=!0)}return Ca(j,N),K}function ca(N,j){let K=[];for(let[ee,te]of W)if(te<N){let Re=j.get(ee);Qe(Re,`Expected fetcher: ${ee}`),Re.state==="loading"&&(mn(ee),W.delete(ee),K.push(ee))}return Ca(K,j),K.length>0}function li(N,j){let K=P.blockers.get(N)||zs;return Be.get(N)!==j&&Be.set(N,j),K}function mr(N){P.blockers.delete(N),Be.delete(N)}function On(N,j){let K=P.blockers.get(N)||zs;Qe(K.state==="unblocked"&&j.state==="blocked"||K.state==="blocked"&&j.state==="blocked"||K.state==="blocked"&&j.state==="proceeding"||K.state==="blocked"&&j.state==="unblocked"||K.state==="proceeding"&&j.state==="unblocked",`Invalid blocker state transition: ${K.state} -> ${j.state}`);let ee=new Map(P.blockers);ee.set(N,j),mt({blockers:ee})}function Xa({currentLocation:N,nextLocation:j,historyAction:K}){if(Be.size===0)return;Be.size>1&&Nt(!1,"A router only supports one blocker at a time");let ee=Array.from(Be.entries()),[te,Re]=ee[ee.length-1],Le=P.blockers.get(te);if(!(Le&&Le.state==="proceeding")&&Re({currentLocation:N,nextLocation:j,historyAction:K}))return te}function Xi(N){let j=Jn(404,{pathname:N}),K=u.activeRoutes,{matches:ee,route:te}=Gc(K);return{notFoundMatches:ee,route:te,error:j}}function $l(N,j,K){if(x=N,S=j,C=K||null,!M&&P.navigation===vf){M=!0;let ee=is(P.location,P.matches);ee!=null&&mt({restoreScrollPosition:ee})}return()=>{x=null,S=null,C=null}}function rs(N,j){return C&&C(N,j.map(ee=>_T(ee,P.loaderData)))||N.key}function Hl(N,j){if(x&&S){let K=rs(N,j);x[K]=S()}}function is(N,j){if(x){let K=rs(N,j),ee=x[K];if(typeof ee=="number")return ee}return null}function gr(N,j,K){if(e.patchRoutesOnNavigation){let ee=u.branches;if(N){if(Object.keys(N[0].params).length>0)return{active:!0,matches:ba(j,K,h,!0,ee)}}else return{active:!0,matches:ba(j,K,h,!0,ee)||[]}}return{active:!1,matches:null}}async function ci(N,j,K,ee){if(!e.patchRoutesOnNavigation)return{type:"success",matches:N};let te=N;for(;;){let Re=l;try{await e.patchRoutesOnNavigation({signal:K,path:j,matches:te,fetcherKey:ee,patch:(Oe,Me)=>{K.aborted||Rb(Oe,Me,u,Re,s,!1)}})}catch(Oe){return{type:"error",error:Oe,partialMatches:te}}if(K.aborted)return{type:"aborted"};let Le=u.branches,De=ba(u.activeRoutes,j,h,!1,Le),ve=null;if(De){if(Object.keys(De[0].params).length===0)return{type:"success",matches:De};if(ve=ba(u.activeRoutes,j,h,!0,Le),!(ve&&te.length<ve.length&&yr(te,ve.slice(0,te.length))))return{type:"success",matches:De}}if(ve||(ve=ba(u.activeRoutes,j,h,!0,Le)),!ve||yr(te,ve))return{type:"success",matches:null};te=ve}}function yr(N,j){return N.length===j.length&&N.every((K,ee)=>K.route.id===j[ee].route.id)}function os(N){l={},u.setHmrRoutes(fl(N,s,void 0,l))}function ui(N,j,K=!1){Rb(N,j,u,l,s,K),u.hasHMRRoutes||mt({})}return V={get basename(){return h},get future(){return m},get state(){return P},get routes(){return u.stableRoutes},get branches(){return u.branches},get manifest(){return l},get window(){return t},initialize:Rt,subscribe:Pn,enableScrollRestoration:$l,navigate:oi,fetch:si,revalidate:qi,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:Ya,resetFetcher:as,deleteFetcher:Za,dispose:Mn,getBlocker:li,deleteBlocker:mr,patchRoutes:ui,_internalFetchControllers:Y,_internalSetRoutes:os,_internalSetStateDoNotUseOrYouWillBreakYourApp(N){mt(N)}},e.instrumentations&&(V=zT(V,e.instrumentations.map(N=>N.router).filter(Boolean))),V}function JT(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function np(e,t,n,a,o,s){let l,u;if(o){l=[];for(let f of t)if(l.push(f),f.route.id===o){u=f;break}}else l=t,u=t[t.length-1];let h=hd(a||".",dm(l),ia(e.pathname,n)||e.pathname,s==="path");if(a==null&&(h.search=e.search,h.hash=e.hash),(a==null||a===""||a===".")&&u){let f=mm(h.search);if(u.route.index&&!f)h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&f){let m=new URLSearchParams(h.search),y=m.getAll("index");m.delete("index"),y.filter(_=>_).forEach(_=>m.append("index",_));let v=m.toString();h.search=v?`?${v}`:""}}return n!=="/"&&(h.pathname=MT({basename:n,pathname:h.pathname})),Fa(h)}function Eb(e,t,n){if(!n||!JT(n))return{path:t};if(n.formMethod&&!v2(n.formMethod))return{path:t,error:Jn(405,{method:n.formMethod})};let a=()=>({path:t,error:Jn(400,{type:"invalid-body"})}),s=(n.formMethod||"get").toUpperCase(),l=$0(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!hn(s))return a();let y=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,[_,x])=>`${v}${_}=${x}
10
+ `,""):String(n.body);return{path:t,submission:{formMethod:s,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:y}}}else if(n.formEncType==="application/json"){if(!hn(s))return a();try{let y=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:s,formAction:l,formEncType:n.formEncType,formData:void 0,json:y,text:void 0}}}catch{return a()}}}Qe(typeof FormData=="function","FormData is not available in this environment");let u,h;if(n.formData)u=rp(n.formData),h=n.formData;else if(n.body instanceof FormData)u=rp(n.body),h=n.body;else if(n.body instanceof URLSearchParams)u=n.body,h=Ob(u);else if(n.body==null)u=new URLSearchParams,h=new FormData;else try{u=new URLSearchParams(n.body),h=Ob(u)}catch{return a()}let f={formMethod:s,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:h,json:void 0,text:void 0};if(hn(f.formMethod))return{path:t,submission:f};let m=Ka(t);return e&&m.search&&mm(m.search)&&u.append("index",""),m.search=`?${u}`,{path:Fa(m),submission:f}}function Ab(e,t,n,a,o,s,l,u,h,f,m,y,v,_,x,C,S,M,R,A,E,B){let $=E?$n(E[1])?E[1].error:E[1].data:void 0,V=o.createURL(s.location),P=o.createURL(h),Z;if(m&&s.errors){let Q=Object.keys(s.errors)[0];Z=l.findIndex(ie=>ie.route.id===Q)}else if(E&&$n(E[1])){let Q=E[0];Z=l.findIndex(ie=>ie.route.id===Q)-1}let X=E?E[1].statusCode:void 0,fe=X&&X>=400,he={currentUrl:V,currentParams:s.matches[0]?.params||{},nextUrl:P,nextParams:l[0].params,...u,actionResult:$,actionStatus:X},J=Sl(l),re=l.map((Q,ie)=>{let{route:F}=Q,Y=null;if(Z!=null&&ie>Z)Y=!1;else if(F.lazy)Y=!0;else if(!fm(F))Y=!1;else if(m){let{shouldLoad:ge}=O0(F,s.loaderData,s.errors);Y=ge}else e2(s.loaderData,s.matches[ie],Q)&&(Y=!0);if(Y!==null)return ap(n,a,e,h,J,Q,f,t,Y);let z=!1;typeof B=="boolean"?z=B:fe?z=!1:(y||V.pathname+V.search===P.pathname+P.search||V.search!==P.search||t2(s.matches[ie],Q))&&(z=!0);let I={...he,defaultShouldRevalidate:z},W=el(Q,I);return ap(n,a,e,h,J,Q,f,t,W,I,B)}),ue=[];return x.forEach((Q,ie)=>{if(m||!l.some(me=>me.route.id===Q.routeId)||_.has(ie))return;let F=s.fetchers.get(ie),Y=F&&F.state!=="idle"&&F.data===void 0,z=ba(S,Q.path,M??"/",!1,A);if(!z){if(R&&Y)return;ue.push({key:ie,routeId:Q.routeId,path:Q.path,matches:null,match:null,request:null,controller:null});return}if(C.has(ie))return;let I=hu(z,Q.path),W=new AbortController,ge=Lo(o,Q.path,W.signal),pe=null;if(v.has(ie))v.delete(ie),pe=zo(n,a,ge,Q.path,z,I,f,t);else if(Y)y&&(pe=zo(n,a,ge,Q.path,z,I,f,t));else{let me;typeof B=="boolean"?me=B:fe?me=!1:me=y;let be={...he,defaultShouldRevalidate:me};el(I,be)&&(pe=zo(n,a,ge,Q.path,z,I,f,t,be))}pe&&ue.push({key:ie,routeId:Q.routeId,path:Q.path,matches:pe,match:I,request:ge,controller:W})}),{dsMatches:re,revalidatingFetchers:ue}}function fm(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function O0(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!fm(e))return{shouldLoad:!1,renderFallback:!1};let a=t!=null&&e.id in t,o=n!=null&&n[e.id]!==void 0;if(!a&&o)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader=="function"&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!a};let s=!a&&!o;return{shouldLoad:s,renderFallback:s}}function e2(e,t,n){let a=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return a||o}function t2(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function el(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Rb(e,t,n,a,o,s){let l;if(e){let f=a[e];Qe(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),l=f.children}else l=n.activeRoutes;let u=[],h=[];if(t.forEach(f=>{let m=l.find(y=>j0(f,y));m?h.push({existingRoute:m,newRoute:f}):u.push(f)}),u.length>0){let f=fl(u,o,[e||"_","patch",String(l?.length||"0")],a);l.push(...f)}if(s&&h.length>0)for(let f=0;f<h.length;f++){let{existingRoute:m,newRoute:y}=h[f],v=m,[_]=fl([y],o,[],{},!0);Object.assign(v,{element:_.element?_.element:v.element,errorElement:_.errorElement?_.errorElement:v.errorElement,hydrateFallbackElement:_.hydrateFallbackElement?_.hydrateFallbackElement:v.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function j0(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((n,a)=>t.children?.some(o=>j0(n,o)))??!1:!1}var Lb=new WeakMap,U0=({key:e,route:t,manifest:n,mapRouteProperties:a})=>{let o=n[t.id];if(Qe(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let s=o.lazy[e];if(!s)return;let l=Lb.get(o);l||(l={},Lb.set(o,l));let u=l[e];if(u)return u;let h=(async()=>{let f=yT(e),y=o[e]!==void 0&&e!=="hasErrorBoundary";if(f)Nt(!f,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),l[e]=Promise.resolve();else if(y)Nt(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let v=await s();v!=null&&(Object.assign(o,{[e]:v}),Object.assign(o,a(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(v=>v===void 0)&&(o.lazy=void 0))})();return l[e]=h,h},Db=new WeakMap;function n2(e,t,n,a,o){let s=n[e.id];if(Qe(s,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let m=Db.get(s);if(m)return{lazyRoutePromise:m,lazyHandlerPromise:m};let y=(async()=>{Qe(typeof e.lazy=="function","No lazy route function found");let v=await e.lazy(),_={};for(let x in v){let C=v[x];if(C===void 0)continue;let S=bT(x),R=s[x]!==void 0&&x!=="hasErrorBoundary";S?Nt(!S,"Route property "+x+" is not a supported property to be returned from a lazy route function. This property will be ignored."):R?Nt(!R,`Route "${s.id}" has a static property "${x}" defined but its lazy function is also returning a value for this property. The lazy route property "${x}" will be ignored.`):_[x]=C}Object.assign(s,_),Object.assign(s,{...a(s),lazy:void 0})})();return Db.set(s,y),y.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:y}}let l=Object.keys(e.lazy),u=[],h;for(let m of l){if(o&&o.includes(m))continue;let y=U0({key:m,route:e,manifest:n,mapRouteProperties:a});y&&(u.push(y),m===t&&(h=y))}let f=u.length>0?Promise.all(u).then(()=>{}):void 0;return f?.catch(()=>{}),h?.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:h}}async function Ib(e){let t=e.matches.filter(o=>o.shouldLoad),n={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,s)=>{n[t[s].route.id]=o}),n}async function a2(e){return e.matches.some(t=>t.route.middleware)?B0(e,()=>Ib(e)):Ib(e)}function B0(e,t){return r2(e,t,a=>{if(y2(a))throw a;return a},f2,n);function n(a,o,s){if(s)return Promise.resolve(Object.assign(s.value,{[o]:{type:"error",result:a}}));{let{matches:l}=e,u=Math.min(Math.max(l.findIndex(f=>f.route.id===o),0),Math.max(l.findIndex(f=>f.shouldCallHandler()),0)),h=Kr(l,l[u].route.id).route.id;return Promise.resolve({[h]:{type:"error",result:a}})}}}async function r2(e,t,n,a,o){let{matches:s,...l}=e,u=s.flatMap(f=>f.route.middleware?f.route.middleware.map(m=>[f.route.id,m]):[]);return await z0(l,u,t,n,a,o)}async function z0(e,t,n,a,o,s,l=0){let{request:u}=e;if(u.signal.aborted)throw u.signal.reason??new Error(`Request aborted: ${u.method} ${u.url}`);let h=t[l];if(!h)return await n();let[f,m]=h,y,v=async()=>{if(y)throw new Error("You may only call `next()` once per middleware");try{return y={value:await z0(e,t,n,a,o,s,l+1)},y.value}catch(_){return y={value:await s(_,f,y)},y.value}};try{let _=await m(e,v),x=_!=null?a(_):void 0;return o(x)?x:y?x??y.value:(y={value:await v()},y.value)}catch(_){return await s(_,f,y)}}function F0(e,t,n,a,o){let s=U0({key:"middleware",route:a.route,manifest:t,mapRouteProperties:e}),l=n2(a.route,hn(n.method)?"action":"loader",t,e,o);return{middleware:s,route:l.lazyRoutePromise,handler:l.lazyHandlerPromise}}function ap(e,t,n,a,o,s,l,u,h,f=null,m){let y=!1,v=F0(e,t,n,s,l);return{...s,_lazyPromises:v,shouldLoad:h,shouldRevalidateArgs:f,shouldCallHandler(_){return y=!0,f?typeof m=="boolean"?el(s,{...f,defaultShouldRevalidate:m}):typeof _=="boolean"?el(s,{...f,defaultShouldRevalidate:_}):el(s,f):h},resolve(_){let{lazy:x,loader:C,middleware:S}=s.route,M=y||h||_&&!hn(n.method)&&(x||C),R=S&&S.length>0&&!C&&!x;return M&&(hn(n.method)||!R)?o2({request:n,path:a,pattern:o,match:s,lazyHandlerPromise:v?.handler,lazyRoutePromise:v?.route,handlerOverride:_,scopedContext:u}):Promise.resolve({type:"data",result:void 0})}}}function zo(e,t,n,a,o,s,l,u,h=null){return o.map(f=>f.route.id!==s.route.id?{...f,shouldLoad:!1,shouldRevalidateArgs:h,shouldCallHandler:()=>!1,_lazyPromises:F0(e,t,n,f,l),resolve:()=>Promise.resolve({type:"data",result:void 0})}:ap(e,t,n,a,Sl(o),f,l,u,!0,h))}async function i2(e,t,n,a,o,s,l){a.some(m=>m._lazyPromises?.middleware)&&await Promise.all(a.map(m=>m._lazyPromises?.middleware));let u={request:t,url:V0(t,n),pattern:Sl(a),params:a[0].params,context:s,matches:a},f=await e({...u,fetcherKey:o,runClientMiddleware:m=>{let y=u;return B0(y,()=>m({...y,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(a.flatMap(m=>[m._lazyPromises?.handler,m._lazyPromises?.route]))}catch{}return f}async function o2({request:e,path:t,pattern:n,match:a,lazyHandlerPromise:o,lazyRoutePromise:s,handlerOverride:l,scopedContext:u}){let h,f,m=hn(e.method),y=m?"action":"loader",v=_=>{let x,C=new Promise((R,A)=>x=A);f=()=>x(),e.signal.addEventListener("abort",f);let S=R=>typeof _!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${y}" [routeId: ${a.route.id}]`)):_({request:e,url:V0(e,t),pattern:n,params:a.params,context:u},...R!==void 0?[R]:[]),M=(async()=>{try{return{type:"data",result:await(l?l(A=>S(A)):S())}}catch(R){return{type:"error",result:R}}})();return Promise.race([M,C])};try{let _=m?a.route.action:a.route.loader;if(o||s)if(_){let x,[C]=await Promise.all([v(_).catch(S=>{x=S}),o,s]);if(x!==void 0)throw x;h=C}else{await o;let x=m?a.route.action:a.route.loader;if(x)[h]=await Promise.all([v(x),s]);else if(y==="action"){let C=new URL(e.url),S=C.pathname+C.search;throw Jn(405,{method:e.method,pathname:S,routeId:a.route.id})}else return{type:"data",result:void 0}}else if(_)h=await v(_);else{let x=new URL(e.url),C=x.pathname+x.search;throw Jn(404,{pathname:C})}}catch(_){return{type:"error",result:_}}finally{f&&e.signal.removeEventListener("abort",f)}return h}async function s2(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function l2(e){let{result:t,type:n}=e;if(pm(t)){let a;try{a=await s2(t)}catch(o){return{type:"error",error:o}}return n==="error"?{type:"error",error:new Pl(t.status,t.statusText,a),statusCode:t.status,headers:t.headers}:{type:"data",data:a,statusCode:t.status,headers:t.headers}}return n==="error"?zb(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:h2(t),statusCode:pl(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:pl(t)?t.status:void 0}:zb(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function c2(e,t,n,a,o){let s=e.headers.get("Location");if(Qe(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!um(s)){let l=a.slice(0,a.findIndex(u=>u.route.id===n)+1);s=np(new URL(t.url),l,o,s),e.headers.set("Location",s)}return e}var Mb=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Nb(e,t,n,a){if(um(e)){let o=e,s=o.startsWith("//")?new URL(t.protocol+o):new URL(o);if(Mb.includes(s.protocol))throw new Error("Invalid redirect location");let l=ia(s.pathname,n)!=null;if(s.origin===t.origin&&l)return hm(s.pathname)+s.search+s.hash}try{let o=a.createURL(e);if(Mb.includes(o.protocol))throw new Error("Invalid redirect location")}catch{}return e}function Lo(e,t,n,a){let o=e.createURL($0(t)).toString(),s={signal:n};if(a&&hn(a.formMethod)){let{formMethod:l,formEncType:u}=a;s.method=l.toUpperCase(),u==="application/json"?(s.headers=new Headers({"Content-Type":u}),s.body=JSON.stringify(a.json)):u==="text/plain"?s.body=a.text:u==="application/x-www-form-urlencoded"&&a.formData?s.body=rp(a.formData):s.body=a.formData}return new Request(o,s)}function V0(e,t){let n=new URL(e.url),a=typeof t=="string"?Ka(t):t;if(n.pathname=a.pathname||"/",a.search){let o=new URLSearchParams(a.search),s=o.getAll("index");o.delete("index");for(let l of s.filter(Boolean))o.append("index",l);n.search=o.size?`?${o.toString()}`:""}else n.search="";return n.hash=a.hash||"",n}function rp(e){let t=new URLSearchParams;for(let[n,a]of e.entries())t.append(n,typeof a=="string"?a:a.name);return t}function Ob(e){let t=new FormData;for(let[n,a]of e.entries())t.append(n,a);return t}function u2(e,t,n,a=!1,o=!1){let s={},l=null,u,h=!1,f={},m=n&&$n(n[1])?n[1].error:void 0;return e.forEach(y=>{if(!(y.route.id in t))return;let v=y.route.id,_=t[v];if(Qe(!Ai(_),"Cannot handle redirect results in processLoaderData"),$n(_)){let x=_.error;if(m!==void 0&&(x=m,m=void 0),l=l||{},o)l[v]=x;else{let C=Kr(e,v);l[C.route.id]==null&&(l[C.route.id]=x)}a||(s[v]=N0),h||(h=!0,u=pl(_.error)?_.error.status:500),_.headers&&(f[v]=_.headers)}else s[v]=_.data,_.statusCode&&_.statusCode!==200&&!h&&(u=_.statusCode),_.headers&&(f[v]=_.headers)}),m!==void 0&&n&&(l={[n[0]]:m},n[2]&&(s[n[2]]=void 0)),{loaderData:s,errors:l,statusCode:u||200,loaderHeaders:f}}function jb(e,t,n,a,o,s,l){let{loaderData:u,errors:h}=u2(t,n,a);return o.filter(f=>!f.matches||f.matches.some(m=>m.shouldLoad)).forEach(f=>{let{key:m,match:y,controller:v}=f;if(v&&v.signal.aborted)return;let _=s[m];if(Qe(_,"Did not find corresponding fetcher result"),$n(_)){let x=Kr(e.matches,y?.route.id);h&&h[x.route.id]||(h={...h,[x.route.id]:_.error}),l.delete(m)}else if(Ai(_))Qe(!1,"Unhandled fetcher revalidation redirect");else{let x=Ma(_.data);l.set(m,x)}}),{loaderData:u,errors:h}}function Ub(e,t,n,a){let o=Object.entries(t).filter(([,s])=>s!==N0).reduce((s,[l,u])=>(s[l]=u,s),{});for(let s of n){let l=s.route.id;if(!t.hasOwnProperty(l)&&e.hasOwnProperty(l)&&s.route.loader&&(o[l]=e[l]),a&&a.hasOwnProperty(l))break}return o}function Bb(e){return e?$n(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Kr(e,t){return(t?e.slice(0,e.findIndex(a=>a.route.id===t)+1):[...e]).reverse().find(a=>a.route.hasErrorBoundary===!0)||e[0]}function Gc(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Jn(e,{pathname:t,routeId:n,method:a,type:o,message:s}={}){let l="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(l="Bad Request",a&&t&&n?u=`You made a ${a} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(l="Forbidden",u=`Route "${n}" does not match URL "${t}"`):e===404?(l="Not Found",u=`No route matches URL "${t}"`):e===405&&(l="Method Not Allowed",a&&t&&n?u=`You made a ${a.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:a&&(u=`Invalid request method "${a.toUpperCase()}"`)),new Pl(e||500,l,new Error(u),!0)}function qc(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[a,o]=t[n];if(Ai(o))return{key:a,result:o}}}function $0(e){let t=typeof e=="string"?Ka(e):e;return Fa({...t,hash:""})}function d2(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function h2(e){return new Pl(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function f2(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&p2(n))}function p2(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function m2(e){return pm(e.result)&&I0.has(e.result.status)}function $n(e){return e.type==="error"}function Ai(e){return(e&&e.type)==="redirect"}function zb(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function pm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function g2(e){return I0.has(e)}function y2(e){return pm(e)&&g2(e.status)&&e.headers.has("Location")}function v2(e){return GT.has(e.toUpperCase())}function hn(e){return WT.has(e.toUpperCase())}function mm(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function hu(e,t){let n=typeof t=="string"?Ka(t).search:t.search;if(e[e.length-1].route.index&&mm(n||""))return e[e.length-1];let a=E0(e);return a[a.length-1]}function Fb(e){let{formMethod:t,formAction:n,formEncType:a,text:o,formData:s,json:l}=e;if(!(!t||!n||!a)){if(o!=null)return{formMethod:t,formAction:n,formEncType:a,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:t,formAction:n,formEncType:a,formData:s,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:a,formData:void 0,json:l,text:void 0}}}function bf(e,t,n,a){return a?{state:"loading",location:e,matches:t,historyAction:n,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}:{state:"loading",location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function b2(e,t,n,a){return{state:"submitting",location:e,matches:t,historyAction:n,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}}function Fs(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function k2(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ma(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function _2(e,t){try{let n=e.sessionStorage.getItem(M0);if(n){let a=JSON.parse(n);for(let[o,s]of Object.entries(a||{}))s&&Array.isArray(s)&&t.set(o,new Set(s||[]))}}catch{}}function w2(e,t){if(t.size>0){let n={};for(let[a,o]of t)n[a]=[...o];try{e.sessionStorage.setItem(M0,JSON.stringify(n))}catch(a){Nt(!1,`Failed to save applied view transitions in sessionStorage (${a}).`)}}}function Vb(){let e,t,n=new Promise((a,o)=>{e=async s=>{a(s);try{await n}catch{}},t=async s=>{o(s);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Vi=k.createContext(null);Vi.displayName="DataRouter";var Cl=k.createContext(null);Cl.displayName="DataRouterState";var H0=k.createContext(!1);function W0(){return k.useContext(H0)}var gm=k.createContext({isTransitioning:!1});gm.displayName="ViewTransition";var K0=k.createContext(new Map);K0.displayName="Fetchers";var x2=k.createContext(null);x2.displayName="Await";var oa=k.createContext(null);oa.displayName="Navigation";var fd=k.createContext(null);fd.displayName="Location";var fr=k.createContext({outlet:null,matches:[],isDataRoute:!1});fr.displayName="Route";var ym=k.createContext(null);ym.displayName="RouteError";var G0="REACT_ROUTER_ERROR",P2="REDIRECT",S2="ROUTE_ERROR_RESPONSE";function C2(e){if(e.startsWith(`${G0}:${P2}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function T2(e){if(e.startsWith(`${G0}:${S2}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Pl(t.status,t.statusText,t.data)}catch{}}function E2(e,{relative:t}={}){Qe(Tl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=k.useContext(oa),{hash:o,pathname:s,search:l}=El(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:na([n,s])),a.createHref({pathname:u,search:l,hash:o})}function Tl(){return k.useContext(fd)!=null}function Wn(){return Qe(Tl(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(fd).location}var q0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Y0(e){k.useContext(oa).static||k.useLayoutEffect(e)}function pd(){let{isDataRoute:e}=k.useContext(fr);return e?F2():A2()}function A2(){Qe(Tl(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(Vi),{basename:t,navigator:n}=k.useContext(oa),{matches:a}=k.useContext(fr),{pathname:o}=Wn(),s=JSON.stringify(dm(a)),l=k.useRef(!1);return Y0(()=>{l.current=!0}),k.useCallback((h,f={})=>{if(Nt(l.current,q0),!l.current)return;if(typeof h=="number"){n.go(h);return}let m=hd(h,JSON.parse(s),o,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:na([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,s,o,e])}k.createContext(null);function El(e,{relative:t}={}){let{matches:n}=k.useContext(fr),{pathname:a}=Wn(),o=JSON.stringify(dm(n));return k.useMemo(()=>hd(e,JSON.parse(o),a,t==="path"),[e,o,a,t])}function R2(e,t,n){Qe(Tl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=k.useContext(oa),{matches:o}=k.useContext(fr),s=o[o.length-1],l=s?s.params:{},u=s?s.pathname:"/",h=s?s.pathnameBase:"/",f=s&&s.route;{let S=f&&f.path||"";X0(u,!f||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${S}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
11
+
12
+ Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let m=Wn(),y;y=m;let v=y.pathname||"/",_=v;if(h!=="/"){let S=h.replace(/^\//,"").split("/");_="/"+v.replace(/^\//,"").split("/").slice(S.length).join("/")}let x=n&&n.state.matches.length?n.state.matches.map(S=>Object.assign(S,{route:n.manifest[S.route.id]||S.route})):P0(e,{pathname:_});return Nt(f||x!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Nt(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),N2(x&&x.map(S=>Object.assign({},S,{params:Object.assign({},l,S.params),pathname:na([h,a.encodeLocation?a.encodeLocation(S.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?h:na([h,a.encodeLocation?a.encodeLocation(S.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathnameBase])})),o,n)}function L2(){let e=z2(),t=pl(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:s},"ErrorBoundary")," or"," ",k.createElement("code",{style:s},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:o},n):null,l)}var D2=k.createElement(L2,null),Z0=class extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=T2(e.digest);n&&(e=n)}let t=e!==void 0?k.createElement(fr.Provider,{value:this.props.routeContext},k.createElement(ym.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?k.createElement(I2,{error:e},t):t}};Z0.contextType=H0;var kf=new WeakMap;function I2({children:e,error:t}){let{basename:n}=k.useContext(oa);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=C2(t.digest);if(a){let o=kf.get(t);if(o)throw o;let s=R0(a.location,n);if(A0&&!kf.get(t))if(s.isExternal||a.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:a.replace}));throw kf.set(t,l),l}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function M2({routeContext:e,match:t,children:n}){let a=k.useContext(Vi);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(fr.Provider,{value:e},n)}function N2(e,t=[],n){let a=n?.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let o=e,s=a?.errors;if(s!=null){let m=o.findIndex(y=>y.route.id&&s?.[y.route.id]!==void 0);Qe(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let l=!1,u=-1;if(n&&a){l=a.renderFallback;for(let m=0;m<o.length;m++){let y=o[m];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(u=m),y.route.id){let{loaderData:v,errors:_}=a,x=y.route.loader&&!v.hasOwnProperty(y.route.id)&&(!_||_[y.route.id]===void 0);if(y.route.lazy||x){n.isStatic&&(l=!0),u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}}let h=n?.onError,f=a&&h?(m,y)=>{h(m,{location:a.location,params:a.matches?.[0]?.params??{},pattern:Sl(a.matches),errorInfo:y})}:void 0;return o.reduceRight((m,y,v)=>{let _,x=!1,C=null,S=null;a&&(_=s&&y.route.id?s[y.route.id]:void 0,C=y.route.errorElement||D2,l&&(u<0&&v===0?(X0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,S=null):u===v&&(x=!0,S=y.route.hydrateFallbackElement||null)));let M=t.concat(o.slice(0,v+1)),R=()=>{let A;return _?A=C:x?A=S:y.route.Component?A=k.createElement(y.route.Component,null):y.route.element?A=y.route.element:A=m,k.createElement(M2,{match:y,routeContext:{outlet:m,matches:M,isDataRoute:a!=null},children:A})};return a&&(y.route.ErrorBoundary||y.route.errorElement||v===0)?k.createElement(Z0,{location:a.location,revalidation:a.revalidation,component:C,error:_,children:R(),routeContext:{outlet:null,matches:M,isDataRoute:!0},onError:f}):R()},null)}function vm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function O2(e){let t=k.useContext(Vi);return Qe(t,vm(e)),t}function j2(e){let t=k.useContext(Cl);return Qe(t,vm(e)),t}function U2(e){let t=k.useContext(fr);return Qe(t,vm(e)),t}function bm(e){let t=U2(e),n=t.matches[t.matches.length-1];return Qe(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function B2(){return bm("useRouteId")}function z2(){let e=k.useContext(ym),t=j2("useRouteError"),n=bm("useRouteError");return e!==void 0?e:t.errors?.[n]}function F2(){let{router:e}=O2("useNavigate"),t=bm("useNavigate"),n=k.useRef(!1);return Y0(()=>{n.current=!0}),k.useCallback(async(o,s={})=>{Nt(n.current,q0),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var $b={};function X0(e,t,n){!t&&!$b[e]&&($b[e]=!0,Nt(!1,n))}var Hb={};function Wb(e,t){!e&&!Hb[t]&&(Hb[t]=!0,console.warn(t))}var V2="useOptimistic",Kb=cm[V2],$2=()=>{};function H2(e){return Kb?Kb(e):[e,$2]}function W2(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Nt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:k.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Nt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:k.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Nt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:k.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var K2=["HydrateFallback","hydrateFallbackElement"],G2=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function q2({router:e,flushSync:t,onError:n,useTransitions:a}){a=W0()||a;let[s,l]=k.useState(e.state),[u,h]=H2(s),[f,m]=k.useState(),[y,v]=k.useState({isTransitioning:!1}),[_,x]=k.useState(),[C,S]=k.useState(),[M,R]=k.useState(),A=k.useRef(new Map),E=k.useCallback((P,{deletedFetchers:Z,newErrors:X,flushSync:fe,viewTransitionOpts:he})=>{X&&n&&Object.values(X).forEach(re=>n(re,{location:P.location,params:P.matches[0]?.params??{},pattern:Sl(P.matches)})),P.fetchers.forEach((re,ue)=>{re.data!==void 0&&A.current.set(ue,re.data)}),Z.forEach(re=>A.current.delete(re)),Wb(fe===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let J=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Wb(he==null||J,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!he||!J){t&&fe?t(()=>l(P)):a===!1?l(P):k.startTransition(()=>{a===!0&&h(re=>Gb(re,P)),l(P)});return}if(t&&fe){t(()=>{C&&(_?.resolve(),C.skipTransition()),v({isTransitioning:!0,flushSync:!0,currentLocation:he.currentLocation,nextLocation:he.nextLocation})});let re=e.window.document.startViewTransition(()=>{t(()=>l(P))});re.finished.finally(()=>{t(()=>{x(void 0),S(void 0),m(void 0),v({isTransitioning:!1})})}),t(()=>S(re));return}C?(_?.resolve(),C.skipTransition(),R({state:P,currentLocation:he.currentLocation,nextLocation:he.nextLocation})):(m(P),v({isTransitioning:!0,flushSync:!1,currentLocation:he.currentLocation,nextLocation:he.nextLocation}))},[e.window,t,C,_,a,h,n]);k.useLayoutEffect(()=>e.subscribe(E),[e,E]),k.useEffect(()=>{y.isTransitioning&&!y.flushSync&&x(new G2)},[y]),k.useEffect(()=>{if(_&&f&&e.window){let P=f,Z=_.promise,X=e.window.document.startViewTransition(async()=>{a===!1?l(P):k.startTransition(()=>{a===!0&&h(fe=>Gb(fe,P)),l(P)}),await Z});X.finished.finally(()=>{x(void 0),S(void 0),m(void 0),v({isTransitioning:!1})}),S(X)}},[f,_,e.window,a,h]),k.useEffect(()=>{_&&f&&u.location.key===f.location.key&&_.resolve()},[_,C,u.location,f]),k.useEffect(()=>{!y.isTransitioning&&M&&(m(M.state),v({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}),R(void 0))},[y.isTransitioning,M]);let B=k.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:P=>e.navigate(P),push:(P,Z,X)=>e.navigate(P,{state:Z,preventScrollReset:X?.preventScrollReset}),replace:(P,Z,X)=>e.navigate(P,{replace:!0,state:Z,preventScrollReset:X?.preventScrollReset})}),[e]),$=e.basename||"/",V=k.useMemo(()=>({router:e,navigator:B,static:!1,basename:$,onError:n}),[e,B,$,n]);return k.createElement(k.Fragment,null,k.createElement(Vi.Provider,{value:V},k.createElement(Cl.Provider,{value:u},k.createElement(K0.Provider,{value:A.current},k.createElement(gm.Provider,{value:y},k.createElement(X2,{basename:$,location:u.location,navigationType:u.historyAction,navigator:B,useTransitions:a},k.createElement(Y2,{routes:e.routes,manifest:e.manifest,future:e.future,state:u,isStatic:!1,onError:n})))))),null)}function Gb(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var Y2=k.memo(Z2);function Z2({routes:e,manifest:t,future:n,state:a,isStatic:o,onError:s}){return R2(e,void 0,{manifest:t,state:a,isStatic:o,onError:s})}function X2({basename:e="/",children:t=null,location:n,navigationType:a="POP",navigator:o,static:s=!1,useTransitions:l}){Qe(!Tl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),h=k.useMemo(()=>({basename:u,navigator:o,static:s,useTransitions:l,future:{}}),[u,o,s,l]);typeof n=="string"&&(n=Ka(n));let{pathname:f="/",search:m="",hash:y="",state:v=null,key:_="default",mask:x}=n,C=k.useMemo(()=>{let S=ia(f,u);return S==null?null:{location:{pathname:S,search:m,hash:y,state:v,key:_,mask:x},navigationType:a}},[u,f,m,y,v,_,a,x]);return Nt(C!=null,`<Router basename="${u}"> is not able to match the URL "${f}${m}${y}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:k.createElement(oa.Provider,{value:h},k.createElement(fd.Provider,{children:t,value:C}))}var fu="get",pu="application/x-www-form-urlencoded";function md(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Q2(e){return md(e)&&e.tagName.toLowerCase()==="button"}function J2(e){return md(e)&&e.tagName.toLowerCase()==="form"}function eE(e){return md(e)&&e.tagName.toLowerCase()==="input"}function tE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nE(e,t){return e.button===0&&(!t||t==="_self")&&!tE(e)}function ip(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map(o=>[n,o]):[[n,a]])},[]))}function aE(e,t){let n=ip(e);return t&&t.forEach((a,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}var Yc=null;function rE(){if(Yc===null)try{new FormData(document.createElement("form"),0),Yc=!1}catch{Yc=!0}return Yc}var iE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _f(e){return e!=null&&!iE.has(e)?(Nt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pu}"`),null):e}function oE(e,t){let n,a,o,s,l;if(J2(e)){let u=e.getAttribute("action");a=u?ia(u,t):null,n=e.getAttribute("method")||fu,o=_f(e.getAttribute("enctype"))||pu,s=new FormData(e)}else if(Q2(e)||eE(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||u.getAttribute("action");if(a=h?ia(h,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||fu,o=_f(e.getAttribute("formenctype"))||_f(u.getAttribute("enctype"))||pu,s=new FormData(u,e),!rE()){let{name:f,type:m,value:y}=e;if(m==="image"){let v=f?`${f}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else f&&s.append(f,y)}}else{if(md(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=fu,a=null,o=pu,l=e}return s&&o==="text/plain"&&(l=s,s=void 0),{action:a,method:n.toLowerCase(),encType:o,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function km(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Q0(e,t,n,a){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${a}`:o.pathname=`${o.pathname}.${a}`:o.pathname==="/"?o.pathname=`_root.${a}`:t&&ia(o.pathname,t)==="/"?o.pathname=`${Iu(t)}/_root.${a}`:o.pathname=`${Iu(o.pathname)}.${a}`,o}async function sE(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function lE(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function cE(e,t,n){let a=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let l=await sE(s,n);return l.links?l.links():[]}return[]}));return fE(a.flat(1).filter(lE).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function qb(e,t,n,a,o,s){let l=(h,f)=>n[f]?h.route.id!==n[f].route.id:!0,u=(h,f)=>n[f].pathname!==h.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==h.params["*"];return s==="assets"?t.filter((h,f)=>l(h,f)||u(h,f)):s==="data"?t.filter((h,f)=>{let m=a.routes[h.route.id];if(!m||!m.hasLoader)return!1;if(l(h,f)||u(h,f))return!0;if(h.route.shouldRevalidate){let y=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function uE(e,t,{includeHydrateFallback:n}={}){return dE(e.map(a=>{let o=t.routes[a.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function dE(e){return[...new Set(e)]}function hE(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function fE(e,t){let n=new Set;return new Set(t),e.reduce((a,o)=>{let s=JSON.stringify(hE(o));return n.has(s)||(n.add(s),a.push({key:s,link:o})),a},[])}function _m(){let e=k.useContext(Vi);return km(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function pE(){let e=k.useContext(Cl);return km(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var wm=k.createContext(void 0);wm.displayName="FrameworkContext";function xm(){let e=k.useContext(wm);return km(e,"You must render this element inside a <HydratedRouter> element"),e}function mE(e,t){let n=k.useContext(wm),[a,o]=k.useState(!1),[s,l]=k.useState(!1),{onFocus:u,onBlur:h,onMouseEnter:f,onMouseLeave:m,onTouchStart:y}=t,v=k.useRef(null);k.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let C=M=>{M.forEach(R=>{l(R.isIntersecting)})},S=new IntersectionObserver(C,{threshold:.5});return v.current&&S.observe(v.current),()=>{S.disconnect()}}},[e]),k.useEffect(()=>{if(a){let C=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(C)}}},[a]);let _=()=>{o(!0)},x=()=>{o(!1),l(!1)};return n?e!=="intent"?[s,v,{}]:[s,v,{onFocus:Vs(u,_),onBlur:Vs(h,x),onMouseEnter:Vs(f,_),onMouseLeave:Vs(m,x),onTouchStart:Vs(y,_)}]:[!1,v,{}]}function Vs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function gE({page:e,...t}){let n=W0(),{router:a}=_m(),o=k.useMemo(()=>P0(a.routes,e,a.basename),[a.routes,e,a.basename]);return o?n?k.createElement(vE,{page:e,matches:o,...t}):k.createElement(bE,{page:e,matches:o,...t}):null}function yE(e){let{manifest:t,routeModules:n}=xm(),[a,o]=k.useState([]);return k.useEffect(()=>{let s=!1;return cE(e,t,n).then(l=>{s||o(l)}),()=>{s=!0}},[e,t,n]),a}function vE({page:e,matches:t,...n}){let a=Wn(),{future:o}=xm(),{basename:s}=_m(),l=k.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let u=Q0(e,s,o.v8_trailingSlashAwareDataRequests,"rsc"),h=!1,f=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?h=!0:f.push(m.route.id);return h&&f.length>0&&u.searchParams.set("_routes",f.join(",")),[u.pathname+u.search]},[s,o.v8_trailingSlashAwareDataRequests,e,a,t]);return k.createElement(k.Fragment,null,l.map(u=>k.createElement("link",{key:u,rel:"prefetch",as:"fetch",href:u,...n})))}function bE({page:e,matches:t,...n}){let a=Wn(),{future:o,manifest:s,routeModules:l}=xm(),{basename:u}=_m(),{loaderData:h,matches:f}=pE(),m=k.useMemo(()=>qb(e,t,f,s,a,"data"),[e,t,f,s,a]),y=k.useMemo(()=>qb(e,t,f,s,a,"assets"),[e,t,f,s,a]),v=k.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let C=new Set,S=!1;if(t.forEach(R=>{let A=s.routes[R.route.id];!A||!A.hasLoader||(!m.some(E=>E.route.id===R.route.id)&&R.route.id in h&&l[R.route.id]?.shouldRevalidate||A.hasClientLoader?S=!0:C.add(R.route.id))}),C.size===0)return[];let M=Q0(e,u,o.v8_trailingSlashAwareDataRequests,"data");return S&&C.size>0&&M.searchParams.set("_routes",t.filter(R=>C.has(R.route.id)).map(R=>R.route.id).join(",")),[M.pathname+M.search]},[u,o.v8_trailingSlashAwareDataRequests,h,a,s,m,t,e,l]),_=k.useMemo(()=>uE(y,s),[y,s]),x=yE(y);return k.createElement(k.Fragment,null,v.map(C=>k.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...n})),_.map(C=>k.createElement("link",{key:C,rel:"modulepreload",href:C,...n})),x.map(({key:C,link:S})=>k.createElement("link",{key:C,nonce:n.nonce,...S,crossOrigin:S.crossOrigin??n.crossOrigin})))}function kE(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var _E=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{_E&&(window.__reactRouterVersion="7.17.0")}catch{}function wE(e,t){return QT({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:fT({window:t?.window}),hydrationData:xE(),routes:e,mapRouteProperties:W2,hydrationRouteProperties:K2,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function xE(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:PE(e.errors)}),e}function PE(e){if(!e)return null;let t=Object.entries(e),n={};for(let[a,o]of t)if(o&&o.__type==="RouteErrorResponse")n[a]=new Pl(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let s=window[o.__subType];if(typeof s=="function")try{let l=new s(o.message);l.stack="",n[a]=l}catch{}}if(n[a]==null){let s=new Error(o.message);s.stack="",n[a]=s}}else n[a]=o;return n}var J0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gd=k.forwardRef(function({onClick:t,discover:n="render",prefetch:a="none",relative:o,reloadDocument:s,replace:l,mask:u,state:h,target:f,to:m,preventScrollReset:y,viewTransition:v,defaultShouldRevalidate:_,...x},C){let{basename:S,navigator:M,useTransitions:R}=k.useContext(oa),A=typeof m=="string"&&J0.test(m),E=R0(m,S);m=E.to;let B=E2(m,{relative:o}),$=Wn(),V=null;if(u){let ue=hd(u,[],$.mask?$.mask.pathname:"/",!0);S!=="/"&&(ue.pathname=ue.pathname==="/"?S:na([S,ue.pathname])),V=M.createHref(ue)}let[P,Z,X]=mE(a,x),fe=EE(m,{replace:l,mask:u,state:h,target:f,preventScrollReset:y,relative:o,viewTransition:v,defaultShouldRevalidate:_,useTransitions:R});function he(ue){t&&t(ue),ue.defaultPrevented||fe(ue)}let J=!(E.isExternal||s),re=k.createElement("a",{...x,...X,href:(J?V:void 0)||E.absoluteURL||B,onClick:J?he:t,ref:kE(C,Z),target:f,"data-discover":!A&&n==="render"?"true":void 0});return P&&!A?k.createElement(k.Fragment,null,re,k.createElement(gE,{page:B})):re});gd.displayName="Link";var SE=k.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:o=!1,style:s,to:l,viewTransition:u,children:h,...f},m){let y=El(l,{relative:f.relative}),v=Wn(),_=k.useContext(Cl),{navigator:x,basename:C}=k.useContext(oa),S=_!=null&&IE(y)&&u===!0,M=x.encodeLocation?x.encodeLocation(y).pathname:y.pathname,R=v.pathname,A=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(R=R.toLowerCase(),A=A?A.toLowerCase():null,M=M.toLowerCase()),A&&C&&(A=ia(A,C)||A);const E=M!=="/"&&M.endsWith("/")?M.length-1:M.length;let B=R===M||!o&&R.startsWith(M)&&R.charAt(E)==="/",$=A!=null&&(A===M||!o&&A.startsWith(M)&&A.charAt(M.length)==="/"),V={isActive:B,isPending:$,isTransitioning:S},P=B?t:void 0,Z;typeof a=="function"?Z=a(V):Z=[a,B?"active":null,$?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let X=typeof s=="function"?s(V):s;return k.createElement(gd,{...f,"aria-current":P,className:Z,ref:m,style:X,to:l,viewTransition:u},typeof h=="function"?h(V):h)});SE.displayName="NavLink";var CE=k.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:o,state:s,method:l=fu,action:u,onSubmit:h,relative:f,preventScrollReset:m,viewTransition:y,defaultShouldRevalidate:v,..._},x)=>{let{useTransitions:C}=k.useContext(oa),S=LE(),M=DE(u,{relative:f}),R=l.toLowerCase()==="get"?"get":"post",A=typeof u=="string"&&J0.test(u),E=B=>{if(h&&h(B),B.defaultPrevented)return;B.preventDefault();let $=B.nativeEvent.submitter,V=$?.getAttribute("formmethod")||l,P=()=>S($||B.currentTarget,{fetcherKey:t,method:V,navigate:n,replace:o,state:s,relative:f,preventScrollReset:m,viewTransition:y,defaultShouldRevalidate:v});C&&n!==!1?k.startTransition(()=>P()):P()};return k.createElement("form",{ref:x,method:R,action:M,onSubmit:a?h:E,..._,"data-discover":!A&&e==="render"?"true":void 0})});CE.displayName="Form";function TE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ew(e){let t=k.useContext(Vi);return Qe(t,TE(e)),t}function EE(e,{target:t,replace:n,mask:a,state:o,preventScrollReset:s,relative:l,viewTransition:u,defaultShouldRevalidate:h,useTransitions:f}={}){let m=pd(),y=Wn(),v=El(e,{relative:l});return k.useCallback(_=>{if(nE(_,t)){_.preventDefault();let x=n!==void 0?n:Fa(y)===Fa(v),C=()=>m(e,{replace:x,mask:a,state:o,preventScrollReset:s,relative:l,viewTransition:u,defaultShouldRevalidate:h});f?k.startTransition(()=>C()):C()}},[y,m,v,n,a,o,t,e,s,l,u,h,f])}function k9(e){Nt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=k.useRef(ip(e)),n=k.useRef(!1),a=Wn(),o=k.useMemo(()=>aE(a.search,n.current?null:t.current),[a.search]),s=pd(),l=k.useCallback((u,h)=>{const f=ip(typeof u=="function"?u(new URLSearchParams(o)):u);n.current=!0,s("?"+f,h)},[s,o]);return[o,l]}var AE=0,RE=()=>`__${String(++AE)}__`;function LE(){let{router:e}=ew("useSubmit"),{basename:t}=k.useContext(oa),n=B2(),a=e.fetch,o=e.navigate;return k.useCallback(async(s,l={})=>{let{action:u,method:h,encType:f,formData:m,body:y}=oE(s,t);if(l.navigate===!1){let v=l.fetcherKey||RE();await a(v,n,l.action||u,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:y,formMethod:l.method||h,formEncType:l.encType||f,flushSync:l.flushSync})}else await o(l.action||u,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:y,formMethod:l.method||h,formEncType:l.encType||f,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[a,o,t,n])}function DE(e,{relative:t}={}){let{basename:n}=k.useContext(oa),a=k.useContext(fr);Qe(a,"useFormAction must be used inside a RouteContext");let[o]=a.matches.slice(-1),s={...El(e||".",{relative:t})},l=Wn();if(e==null){s.search=l.search;let u=new URLSearchParams(s.search),h=u.getAll("index");if(h.some(m=>m==="")){u.delete("index"),h.filter(y=>y).forEach(y=>u.append("index",y));let m=u.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:na([n,s.pathname])),Fa(s)}function IE(e,{relative:t}={}){let n=k.useContext(gm);Qe(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=ew("useViewTransitionState"),o=El(e,{relative:t});if(!n.isTransitioning)return!1;let s=ia(n.currentLocation.pathname,a)||n.currentLocation.pathname,l=ia(n.nextLocation.pathname,a)||n.nextLocation.pathname;return Du(o.pathname,l)!=null||Du(o.pathname,s)!=null}var $i=k0();function ME(e){return k.createElement(q2,{flushSync:$i.flushSync,...e})}var lt;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const l of o)s[l]=l;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(u=>typeof o[o[u]]!="number"),l={};for(const u of s)l[u]=o[u];return e.objectValues(l)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const l in o)Object.prototype.hasOwnProperty.call(o,l)&&s.push(l);return s},e.find=(o,s)=>{for(const l of o)if(s(l))return l},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function a(o,s=" | "){return o.map(l=>typeof l=="string"?`'${l}'`:l).join(s)}e.joinValues=a,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(lt||(lt={}));var Yb;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Yb||(Yb={}));const we=lt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Wr=e=>{switch(typeof e){case"undefined":return we.undefined;case"string":return we.string;case"number":return Number.isNaN(e)?we.nan:we.number;case"boolean":return we.boolean;case"function":return we.function;case"bigint":return we.bigint;case"symbol":return we.symbol;case"object":return Array.isArray(e)?we.array:e===null?we.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?we.promise:typeof Map<"u"&&e instanceof Map?we.map:typeof Set<"u"&&e instanceof Set?we.set:typeof Date<"u"&&e instanceof Date?we.date:we.object;default:return we.unknown}},le=lt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class dr extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(s){return s.message},a={_errors:[]},o=s=>{for(const l of s.issues)if(l.code==="invalid_union")l.unionErrors.map(o);else if(l.code==="invalid_return_type")o(l.returnTypeError);else if(l.code==="invalid_arguments")o(l.argumentsError);else if(l.path.length===0)a._errors.push(n(l));else{let u=a,h=0;for(;h<l.path.length;){const f=l.path[h];h===l.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(l))):u[f]=u[f]||{_errors:[]},u=u[f],h++}}};return o(this),a}static assert(t){if(!(t instanceof dr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,lt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},a=[];for(const o of this.issues)if(o.path.length>0){const s=o.path[0];n[s]=n[s]||[],n[s].push(t(o))}else a.push(t(o));return{formErrors:a,fieldErrors:n}}get formErrors(){return this.flatten()}}dr.create=e=>new dr(e);const op=(e,t)=>{let n;switch(e.code){case le.invalid_type:e.received===we.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case le.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,lt.jsonStringifyReplacer)}`;break;case le.unrecognized_keys:n=`Unrecognized key(s) in object: ${lt.joinValues(e.keys,", ")}`;break;case le.invalid_union:n="Invalid input";break;case le.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${lt.joinValues(e.options)}`;break;case le.invalid_enum_value:n=`Invalid enum value. Expected ${lt.joinValues(e.options)}, received '${e.received}'`;break;case le.invalid_arguments:n="Invalid function arguments";break;case le.invalid_return_type:n="Invalid function return type";break;case le.invalid_date:n="Invalid date";break;case le.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:lt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case le.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case le.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case le.custom:n="Invalid input";break;case le.invalid_intersection_types:n="Intersection results could not be merged";break;case le.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case le.not_finite:n="Number must be finite";break;default:n=t.defaultError,lt.assertNever(e)}return{message:n}};let NE=op;function OE(){return NE}const jE=e=>{const{data:t,path:n,errorMaps:a,issueData:o}=e,s=[...n,...o.path||[]],l={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let u="";const h=a.filter(f=>!!f).slice().reverse();for(const f of h)u=f(l,{data:t,defaultError:u}).message;return{...o,path:s,message:u}};function ye(e,t){const n=OE(),a=jE({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===op?void 0:op].filter(o=>!!o)});e.common.issues.push(a)}class wn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const a=[];for(const o of n){if(o.status==="aborted")return He;o.status==="dirty"&&t.dirty(),a.push(o.value)}return{status:t.value,value:a}}static async mergeObjectAsync(t,n){const a=[];for(const o of n){const s=await o.key,l=await o.value;a.push({key:s,value:l})}return wn.mergeObjectSync(t,a)}static mergeObjectSync(t,n){const a={};for(const o of n){const{key:s,value:l}=o;if(s.status==="aborted"||l.status==="aborted")return He;s.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof l.value<"u"||o.alwaysSet)&&(a[s.value]=l.value)}return{status:t.value,value:a}}}const He=Object.freeze({status:"aborted"}),Zs=e=>({status:"dirty",value:e}),sa=e=>({status:"valid",value:e}),Zb=e=>e.status==="aborted",Xb=e=>e.status==="dirty",Vo=e=>e.status==="valid",Mu=e=>typeof Promise<"u"&&e instanceof Promise;var Ae;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Ae||(Ae={}));class Va{constructor(t,n,a,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=a,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Qb=(e,t)=>{if(Vo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new dr(e.common.issues);return this._error=n,this._error}}};function Ze(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:a,description:o}=e;if(t&&(n||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(l,u)=>{const{message:h}=e;return l.code==="invalid_enum_value"?{message:h??u.defaultError}:typeof u.data>"u"?{message:h??a??u.defaultError}:l.code!=="invalid_type"?{message:u.defaultError}:{message:h??n??u.defaultError}},description:o}}class at{get description(){return this._def.description}_getType(t){return Wr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Wr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new wn,ctx:{common:t.parent.common,data:t.data,parsedType:Wr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Mu(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const a=this.safeParse(t,n);if(a.success)return a.data;throw a.error}safeParse(t,n){const a={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wr(t)},o=this._parseSync({data:t,path:a.path,parent:a});return Qb(a,o)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wr(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return Vo(a)?{value:a.value}:{issues:n.common.issues}}catch(a){a?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(a=>Vo(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(t,n){const a=await this.safeParseAsync(t,n);if(a.success)return a.data;throw a.error}async safeParseAsync(t,n){const a={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wr(t)},o=this._parse({data:t,path:a.path,parent:a}),s=await(Mu(o)?o:Promise.resolve(o));return Qb(a,s)}refine(t,n){const a=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const l=t(o),u=()=>s.addIssue({code:le.custom,...a(o)});return typeof Promise<"u"&&l instanceof Promise?l.then(h=>h?!0:(u(),!1)):l?!0:(u(),!1)})}refinement(t,n){return this._refinement((a,o)=>t(a)?!0:(o.addIssue(typeof n=="function"?n(a,o):n),!1))}_refinement(t){return new zi({schema:this,typeName:We.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ur.create(this,this._def)}nullable(){return Fi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ba.create(this)}promise(){return zu.create(this,this._def)}or(t){return Ou.create([this,t],this._def)}and(t){return ju.create(this,t,this._def)}transform(t){return new zi({...Ze(this._def),schema:this,typeName:We.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Fu({...Ze(this._def),innerType:this,defaultValue:n,typeName:We.ZodDefault})}brand(){return new rw({typeName:We.ZodBranded,type:this,...Ze(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Vu({...Ze(this._def),innerType:this,catchValue:n,typeName:We.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Sm.create(this,t)}readonly(){return $u.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const UE=/^c[^\s-]{8,}$/i,BE=/^[0-9a-z]+$/,zE=/^[0-9A-HJKMNP-TV-Z]{26}$/i,FE=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,VE=/^[a-z0-9_-]{21}$/i,$E=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,HE=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,WE=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,KE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let wf;const GE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,qE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,YE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ZE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,XE=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,QE=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,tw="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",JE=new RegExp(`^${tw}$`);function nw(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function eA(e){return new RegExp(`^${nw(e)}$`)}function tA(e){let t=`${tw}T${nw(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function nA(e,t){return!!((t==="v4"||!t)&&GE.test(e)||(t==="v6"||!t)&&YE.test(e))}function aA(e,t){if(!$E.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const a=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(a));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function rA(e,t){return!!((t==="v4"||!t)&&qE.test(e)||(t==="v6"||!t)&&ZE.test(e))}class Ua extends at{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==we.string){const s=this._getOrReturnCtx(t);return ye(s,{code:le.invalid_type,expected:we.string,received:s.parsedType}),He}const a=new wn;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(o=this._getOrReturnCtx(t,o),ye(o,{code:le.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),a.dirty());else if(s.kind==="max")t.data.length>s.value&&(o=this._getOrReturnCtx(t,o),ye(o,{code:le.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),a.dirty());else if(s.kind==="length"){const l=t.data.length>s.value,u=t.data.length<s.value;(l||u)&&(o=this._getOrReturnCtx(t,o),l?ye(o,{code:le.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):u&&ye(o,{code:le.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),a.dirty())}else if(s.kind==="email")WE.test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"email",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="emoji")wf||(wf=new RegExp(KE,"u")),wf.test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"emoji",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="uuid")FE.test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"uuid",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="nanoid")VE.test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"nanoid",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="cuid")UE.test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"cuid",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="cuid2")BE.test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"cuid2",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="ulid")zE.test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"ulid",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),ye(o,{validation:"url",code:le.invalid_string,message:s.message}),a.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"regex",code:le.invalid_string,message:s.message}),a.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(t,o),ye(o,{code:le.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),a.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(o=this._getOrReturnCtx(t,o),ye(o,{code:le.invalid_string,validation:{startsWith:s.value},message:s.message}),a.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(o=this._getOrReturnCtx(t,o),ye(o,{code:le.invalid_string,validation:{endsWith:s.value},message:s.message}),a.dirty()):s.kind==="datetime"?tA(s).test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{code:le.invalid_string,validation:"datetime",message:s.message}),a.dirty()):s.kind==="date"?JE.test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{code:le.invalid_string,validation:"date",message:s.message}),a.dirty()):s.kind==="time"?eA(s).test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{code:le.invalid_string,validation:"time",message:s.message}),a.dirty()):s.kind==="duration"?HE.test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"duration",code:le.invalid_string,message:s.message}),a.dirty()):s.kind==="ip"?nA(t.data,s.version)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"ip",code:le.invalid_string,message:s.message}),a.dirty()):s.kind==="jwt"?aA(t.data,s.alg)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"jwt",code:le.invalid_string,message:s.message}),a.dirty()):s.kind==="cidr"?rA(t.data,s.version)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"cidr",code:le.invalid_string,message:s.message}),a.dirty()):s.kind==="base64"?XE.test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"base64",code:le.invalid_string,message:s.message}),a.dirty()):s.kind==="base64url"?QE.test(t.data)||(o=this._getOrReturnCtx(t,o),ye(o,{validation:"base64url",code:le.invalid_string,message:s.message}),a.dirty()):lt.assertNever(s);return{status:a.value,value:t.data}}_regex(t,n,a){return this.refinement(o=>t.test(o),{validation:n,code:le.invalid_string,...Ae.errToObj(a)})}_addCheck(t){return new Ua({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ae.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ae.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ae.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ae.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ae.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ae.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ae.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ae.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ae.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Ae.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Ae.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ae.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Ae.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Ae.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Ae.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Ae.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Ae.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...Ae.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Ae.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Ae.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Ae.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Ae.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Ae.errToObj(n)})}nonempty(t){return this.min(1,Ae.errToObj(t))}trim(){return new Ua({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ua({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ua({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ua.create=e=>new Ua({checks:[],typeName:We.ZodString,coerce:e?.coerce??!1,...Ze(e)});function iA(e,t){const n=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,o=n>a?n:a,s=Number.parseInt(e.toFixed(o).replace(".","")),l=Number.parseInt(t.toFixed(o).replace(".",""));return s%l/10**o}class Oi extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==we.number){const s=this._getOrReturnCtx(t);return ye(s,{code:le.invalid_type,expected:we.number,received:s.parsedType}),He}let a;const o=new wn;for(const s of this._def.checks)s.kind==="int"?lt.isInteger(t.data)||(a=this._getOrReturnCtx(t,a),ye(a,{code:le.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(a=this._getOrReturnCtx(t,a),ye(a,{code:le.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(a=this._getOrReturnCtx(t,a),ye(a,{code:le.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?iA(t.data,s.value)!==0&&(a=this._getOrReturnCtx(t,a),ye(a,{code:le.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(a=this._getOrReturnCtx(t,a),ye(a,{code:le.not_finite,message:s.message}),o.dirty()):lt.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,a,o){return new Oi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:a,message:Ae.toString(o)}]})}_addCheck(t){return new Oi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ae.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Ae.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ae.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ae.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&lt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(n===null||a.value>n)&&(n=a.value):a.kind==="max"&&(t===null||a.value<t)&&(t=a.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Oi.create=e=>new Oi({checks:[],typeName:We.ZodNumber,coerce:e?.coerce||!1,...Ze(e)});class ji extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==we.bigint)return this._getInvalidInput(t);let a;const o=new wn;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(a=this._getOrReturnCtx(t,a),ye(a,{code:le.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(a=this._getOrReturnCtx(t,a),ye(a,{code:le.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(a=this._getOrReturnCtx(t,a),ye(a,{code:le.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):lt.assertNever(s);return{status:o.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ye(n,{code:le.invalid_type,expected:we.bigint,received:n.parsedType}),He}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,a,o){return new ji({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:a,message:Ae.toString(o)}]})}_addCheck(t){return new ji({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}ji.create=e=>new ji({checks:[],typeName:We.ZodBigInt,coerce:e?.coerce??!1,...Ze(e)});class Nu extends at{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==we.boolean){const a=this._getOrReturnCtx(t);return ye(a,{code:le.invalid_type,expected:we.boolean,received:a.parsedType}),He}return sa(t.data)}}Nu.create=e=>new Nu({typeName:We.ZodBoolean,coerce:e?.coerce||!1,...Ze(e)});class $o extends at{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==we.date){const s=this._getOrReturnCtx(t);return ye(s,{code:le.invalid_type,expected:we.date,received:s.parsedType}),He}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return ye(s,{code:le.invalid_date}),He}const a=new wn;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(o=this._getOrReturnCtx(t,o),ye(o,{code:le.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),a.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(o=this._getOrReturnCtx(t,o),ye(o,{code:le.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),a.dirty()):lt.assertNever(s);return{status:a.value,value:new Date(t.data.getTime())}}_addCheck(t){return new $o({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Ae.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Ae.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}$o.create=e=>new $o({checks:[],coerce:e?.coerce||!1,typeName:We.ZodDate,...Ze(e)});class Jb extends at{_parse(t){if(this._getType(t)!==we.symbol){const a=this._getOrReturnCtx(t);return ye(a,{code:le.invalid_type,expected:we.symbol,received:a.parsedType}),He}return sa(t.data)}}Jb.create=e=>new Jb({typeName:We.ZodSymbol,...Ze(e)});class sp extends at{_parse(t){if(this._getType(t)!==we.undefined){const a=this._getOrReturnCtx(t);return ye(a,{code:le.invalid_type,expected:we.undefined,received:a.parsedType}),He}return sa(t.data)}}sp.create=e=>new sp({typeName:We.ZodUndefined,...Ze(e)});class lp extends at{_parse(t){if(this._getType(t)!==we.null){const a=this._getOrReturnCtx(t);return ye(a,{code:le.invalid_type,expected:we.null,received:a.parsedType}),He}return sa(t.data)}}lp.create=e=>new lp({typeName:We.ZodNull,...Ze(e)});class ek extends at{constructor(){super(...arguments),this._any=!0}_parse(t){return sa(t.data)}}ek.create=e=>new ek({typeName:We.ZodAny,...Ze(e)});class cp extends at{constructor(){super(...arguments),this._unknown=!0}_parse(t){return sa(t.data)}}cp.create=e=>new cp({typeName:We.ZodUnknown,...Ze(e)});class Qr extends at{_parse(t){const n=this._getOrReturnCtx(t);return ye(n,{code:le.invalid_type,expected:we.never,received:n.parsedType}),He}}Qr.create=e=>new Qr({typeName:We.ZodNever,...Ze(e)});class tk extends at{_parse(t){if(this._getType(t)!==we.undefined){const a=this._getOrReturnCtx(t);return ye(a,{code:le.invalid_type,expected:we.void,received:a.parsedType}),He}return sa(t.data)}}tk.create=e=>new tk({typeName:We.ZodVoid,...Ze(e)});class Ba extends at{_parse(t){const{ctx:n,status:a}=this._processInputParams(t),o=this._def;if(n.parsedType!==we.array)return ye(n,{code:le.invalid_type,expected:we.array,received:n.parsedType}),He;if(o.exactLength!==null){const l=n.data.length>o.exactLength.value,u=n.data.length<o.exactLength.value;(l||u)&&(ye(n,{code:l?le.too_big:le.too_small,minimum:u?o.exactLength.value:void 0,maximum:l?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),a.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(ye(n,{code:le.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),a.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(ye(n,{code:le.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),a.dirty()),n.common.async)return Promise.all([...n.data].map((l,u)=>o.type._parseAsync(new Va(n,l,n.path,u)))).then(l=>wn.mergeArray(a,l));const s=[...n.data].map((l,u)=>o.type._parseSync(new Va(n,l,n.path,u)));return wn.mergeArray(a,s)}get element(){return this._def.type}min(t,n){return new Ba({...this._def,minLength:{value:t,message:Ae.toString(n)}})}max(t,n){return new Ba({...this._def,maxLength:{value:t,message:Ae.toString(n)}})}length(t,n){return new Ba({...this._def,exactLength:{value:t,message:Ae.toString(n)}})}nonempty(t){return this.min(1,t)}}Ba.create=(e,t)=>new Ba({type:e,minLength:null,maxLength:null,exactLength:null,typeName:We.ZodArray,...Ze(t)});function Do(e){if(e instanceof Ut){const t={};for(const n in e.shape){const a=e.shape[n];t[n]=ur.create(Do(a))}return new Ut({...e._def,shape:()=>t})}else return e instanceof Ba?new Ba({...e._def,type:Do(e.element)}):e instanceof ur?ur.create(Do(e.unwrap())):e instanceof Fi?Fi.create(Do(e.unwrap())):e instanceof Ui?Ui.create(e.items.map(t=>Do(t))):e}class Ut extends at{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=lt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==we.object){const f=this._getOrReturnCtx(t);return ye(f,{code:le.invalid_type,expected:we.object,received:f.parsedType}),He}const{status:a,ctx:o}=this._processInputParams(t),{shape:s,keys:l}=this._getCached(),u=[];if(!(this._def.catchall instanceof Qr&&this._def.unknownKeys==="strip"))for(const f in o.data)l.includes(f)||u.push(f);const h=[];for(const f of l){const m=s[f],y=o.data[f];h.push({key:{status:"valid",value:f},value:m._parse(new Va(o,y,o.path,f)),alwaysSet:f in o.data})}if(this._def.catchall instanceof Qr){const f=this._def.unknownKeys;if(f==="passthrough")for(const m of u)h.push({key:{status:"valid",value:m},value:{status:"valid",value:o.data[m]}});else if(f==="strict")u.length>0&&(ye(o,{code:le.unrecognized_keys,keys:u}),a.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const m of u){const y=o.data[m];h.push({key:{status:"valid",value:m},value:f._parse(new Va(o,y,o.path,m)),alwaysSet:m in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const f=[];for(const m of h){const y=await m.key,v=await m.value;f.push({key:y,value:v,alwaysSet:m.alwaysSet})}return f}).then(f=>wn.mergeObjectSync(a,f)):wn.mergeObjectSync(a,h)}get shape(){return this._def.shape()}strict(t){return Ae.errToObj,new Ut({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,a)=>{const o=this._def.errorMap?.(n,a).message??a.defaultError;return n.code==="unrecognized_keys"?{message:Ae.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new Ut({...this._def,unknownKeys:"strip"})}passthrough(){return new Ut({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ut({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ut({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:We.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ut({...this._def,catchall:t})}pick(t){const n={};for(const a of lt.objectKeys(t))t[a]&&this.shape[a]&&(n[a]=this.shape[a]);return new Ut({...this._def,shape:()=>n})}omit(t){const n={};for(const a of lt.objectKeys(this.shape))t[a]||(n[a]=this.shape[a]);return new Ut({...this._def,shape:()=>n})}deepPartial(){return Do(this)}partial(t){const n={};for(const a of lt.objectKeys(this.shape)){const o=this.shape[a];t&&!t[a]?n[a]=o:n[a]=o.optional()}return new Ut({...this._def,shape:()=>n})}required(t){const n={};for(const a of lt.objectKeys(this.shape))if(t&&!t[a])n[a]=this.shape[a];else{let s=this.shape[a];for(;s instanceof ur;)s=s._def.innerType;n[a]=s}return new Ut({...this._def,shape:()=>n})}keyof(){return aw(lt.objectKeys(this.shape))}}Ut.create=(e,t)=>new Ut({shape:()=>e,unknownKeys:"strip",catchall:Qr.create(),typeName:We.ZodObject,...Ze(t)});Ut.strictCreate=(e,t)=>new Ut({shape:()=>e,unknownKeys:"strict",catchall:Qr.create(),typeName:We.ZodObject,...Ze(t)});Ut.lazycreate=(e,t)=>new Ut({shape:e,unknownKeys:"strip",catchall:Qr.create(),typeName:We.ZodObject,...Ze(t)});class Ou extends at{_parse(t){const{ctx:n}=this._processInputParams(t),a=this._def.options;function o(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const l=s.map(u=>new dr(u.ctx.common.issues));return ye(n,{code:le.invalid_union,unionErrors:l}),He}if(n.common.async)return Promise.all(a.map(async s=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(o);{let s;const l=[];for(const h of a){const f={...n,common:{...n.common,issues:[]},parent:null},m=h._parseSync({data:n.data,path:n.path,parent:f});if(m.status==="valid")return m;m.status==="dirty"&&!s&&(s={result:m,ctx:f}),f.common.issues.length&&l.push(f.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const u=l.map(h=>new dr(h));return ye(n,{code:le.invalid_union,unionErrors:u}),He}}get options(){return this._def.options}}Ou.create=(e,t)=>new Ou({options:e,typeName:We.ZodUnion,...Ze(t)});const cr=e=>e instanceof dp?cr(e.schema):e instanceof zi?cr(e.innerType()):e instanceof Bu?[e.value]:e instanceof Bi?e.options:e instanceof hp?lt.objectValues(e.enum):e instanceof Fu?cr(e._def.innerType):e instanceof sp?[void 0]:e instanceof lp?[null]:e instanceof ur?[void 0,...cr(e.unwrap())]:e instanceof Fi?[null,...cr(e.unwrap())]:e instanceof rw||e instanceof $u?cr(e.unwrap()):e instanceof Vu?cr(e._def.innerType):[];class Pm extends at{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==we.object)return ye(n,{code:le.invalid_type,expected:we.object,received:n.parsedType}),He;const a=this.discriminator,o=n.data[a],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(ye(n,{code:le.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),He)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,a){const o=new Map;for(const s of n){const l=cr(s.shape[t]);if(!l.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const u of l){if(o.has(u))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(u)}`);o.set(u,s)}}return new Pm({typeName:We.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Ze(a)})}}function up(e,t){const n=Wr(e),a=Wr(t);if(e===t)return{valid:!0,data:e};if(n===we.object&&a===we.object){const o=lt.objectKeys(t),s=lt.objectKeys(e).filter(u=>o.indexOf(u)!==-1),l={...e,...t};for(const u of s){const h=up(e[u],t[u]);if(!h.valid)return{valid:!1};l[u]=h.data}return{valid:!0,data:l}}else if(n===we.array&&a===we.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s<e.length;s++){const l=e[s],u=t[s],h=up(l,u);if(!h.valid)return{valid:!1};o.push(h.data)}return{valid:!0,data:o}}else return n===we.date&&a===we.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ju extends at{_parse(t){const{status:n,ctx:a}=this._processInputParams(t),o=(s,l)=>{if(Zb(s)||Zb(l))return He;const u=up(s.value,l.value);return u.valid?((Xb(s)||Xb(l))&&n.dirty(),{status:n.value,value:u.data}):(ye(a,{code:le.invalid_intersection_types}),He)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([s,l])=>o(s,l)):o(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}ju.create=(e,t,n)=>new ju({left:e,right:t,typeName:We.ZodIntersection,...Ze(n)});class Ui extends at{_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.parsedType!==we.array)return ye(a,{code:le.invalid_type,expected:we.array,received:a.parsedType}),He;if(a.data.length<this._def.items.length)return ye(a,{code:le.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),He;!this._def.rest&&a.data.length>this._def.items.length&&(ye(a,{code:le.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...a.data].map((l,u)=>{const h=this._def.items[u]||this._def.rest;return h?h._parse(new Va(a,l,a.path,u)):null}).filter(l=>!!l);return a.common.async?Promise.all(s).then(l=>wn.mergeArray(n,l)):wn.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new Ui({...this._def,rest:t})}}Ui.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ui({items:e,typeName:We.ZodTuple,rest:null,...Ze(t)})};class Uu extends at{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.parsedType!==we.object)return ye(a,{code:le.invalid_type,expected:we.object,received:a.parsedType}),He;const o=[],s=this._def.keyType,l=this._def.valueType;for(const u in a.data)o.push({key:s._parse(new Va(a,u,a.path,u)),value:l._parse(new Va(a,a.data[u],a.path,u)),alwaysSet:u in a.data});return a.common.async?wn.mergeObjectAsync(n,o):wn.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,a){return n instanceof at?new Uu({keyType:t,valueType:n,typeName:We.ZodRecord,...Ze(a)}):new Uu({keyType:Ua.create(),valueType:t,typeName:We.ZodRecord,...Ze(n)})}}class nk extends at{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.parsedType!==we.map)return ye(a,{code:le.invalid_type,expected:we.map,received:a.parsedType}),He;const o=this._def.keyType,s=this._def.valueType,l=[...a.data.entries()].map(([u,h],f)=>({key:o._parse(new Va(a,u,a.path,[f,"key"])),value:s._parse(new Va(a,h,a.path,[f,"value"]))}));if(a.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const h of l){const f=await h.key,m=await h.value;if(f.status==="aborted"||m.status==="aborted")return He;(f.status==="dirty"||m.status==="dirty")&&n.dirty(),u.set(f.value,m.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const h of l){const f=h.key,m=h.value;if(f.status==="aborted"||m.status==="aborted")return He;(f.status==="dirty"||m.status==="dirty")&&n.dirty(),u.set(f.value,m.value)}return{status:n.value,value:u}}}}nk.create=(e,t,n)=>new nk({valueType:t,keyType:e,typeName:We.ZodMap,...Ze(n)});class ml extends at{_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.parsedType!==we.set)return ye(a,{code:le.invalid_type,expected:we.set,received:a.parsedType}),He;const o=this._def;o.minSize!==null&&a.data.size<o.minSize.value&&(ye(a,{code:le.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&a.data.size>o.maxSize.value&&(ye(a,{code:le.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const s=this._def.valueType;function l(h){const f=new Set;for(const m of h){if(m.status==="aborted")return He;m.status==="dirty"&&n.dirty(),f.add(m.value)}return{status:n.value,value:f}}const u=[...a.data.values()].map((h,f)=>s._parse(new Va(a,h,a.path,f)));return a.common.async?Promise.all(u).then(h=>l(h)):l(u)}min(t,n){return new ml({...this._def,minSize:{value:t,message:Ae.toString(n)}})}max(t,n){return new ml({...this._def,maxSize:{value:t,message:Ae.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}ml.create=(e,t)=>new ml({valueType:e,minSize:null,maxSize:null,typeName:We.ZodSet,...Ze(t)});class dp extends at{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}dp.create=(e,t)=>new dp({getter:e,typeName:We.ZodLazy,...Ze(t)});class Bu extends at{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ye(n,{received:n.data,code:le.invalid_literal,expected:this._def.value}),He}return{status:"valid",value:t.data}}get value(){return this._def.value}}Bu.create=(e,t)=>new Bu({value:e,typeName:We.ZodLiteral,...Ze(t)});function aw(e,t){return new Bi({values:e,typeName:We.ZodEnum,...Ze(t)})}class Bi extends at{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),a=this._def.values;return ye(n,{expected:lt.joinValues(a),received:n.parsedType,code:le.invalid_type}),He}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),a=this._def.values;return ye(n,{received:n.data,code:le.invalid_enum_value,options:a}),He}return sa(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Bi.create(t,{...this._def,...n})}exclude(t,n=this._def){return Bi.create(this.options.filter(a=>!t.includes(a)),{...this._def,...n})}}Bi.create=aw;class hp extends at{_parse(t){const n=lt.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(t);if(a.parsedType!==we.string&&a.parsedType!==we.number){const o=lt.objectValues(n);return ye(a,{expected:lt.joinValues(o),received:a.parsedType,code:le.invalid_type}),He}if(this._cache||(this._cache=new Set(lt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const o=lt.objectValues(n);return ye(a,{received:a.data,code:le.invalid_enum_value,options:o}),He}return sa(t.data)}get enum(){return this._def.values}}hp.create=(e,t)=>new hp({values:e,typeName:We.ZodNativeEnum,...Ze(t)});class zu extends at{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==we.promise&&n.common.async===!1)return ye(n,{code:le.invalid_type,expected:we.promise,received:n.parsedType}),He;const a=n.parsedType===we.promise?n.data:Promise.resolve(n.data);return sa(a.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}zu.create=(e,t)=>new zu({type:e,typeName:We.ZodPromise,...Ze(t)});class zi extends at{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===We.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:a}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:l=>{ye(a,l),l.fatal?n.abort():n.dirty()},get path(){return a.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const l=o.transform(a.data,s);if(a.common.async)return Promise.resolve(l).then(async u=>{if(n.value==="aborted")return He;const h=await this._def.schema._parseAsync({data:u,path:a.path,parent:a});return h.status==="aborted"?He:h.status==="dirty"||n.value==="dirty"?Zs(h.value):h});{if(n.value==="aborted")return He;const u=this._def.schema._parseSync({data:l,path:a.path,parent:a});return u.status==="aborted"?He:u.status==="dirty"||n.value==="dirty"?Zs(u.value):u}}if(o.type==="refinement"){const l=u=>{const h=o.refinement(u,s);if(a.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(a.common.async===!1){const u=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return u.status==="aborted"?He:(u.status==="dirty"&&n.dirty(),l(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(u=>u.status==="aborted"?He:(u.status==="dirty"&&n.dirty(),l(u.value).then(()=>({status:n.value,value:u.value}))))}if(o.type==="transform")if(a.common.async===!1){const l=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Vo(l))return He;const u=o.transform(l.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(l=>Vo(l)?Promise.resolve(o.transform(l.value,s)).then(u=>({status:n.value,value:u})):He);lt.assertNever(o)}}zi.create=(e,t,n)=>new zi({schema:e,typeName:We.ZodEffects,effect:t,...Ze(n)});zi.createWithPreprocess=(e,t,n)=>new zi({schema:t,effect:{type:"preprocess",transform:e},typeName:We.ZodEffects,...Ze(n)});class ur extends at{_parse(t){return this._getType(t)===we.undefined?sa(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ur.create=(e,t)=>new ur({innerType:e,typeName:We.ZodOptional,...Ze(t)});class Fi extends at{_parse(t){return this._getType(t)===we.null?sa(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Fi.create=(e,t)=>new Fi({innerType:e,typeName:We.ZodNullable,...Ze(t)});class Fu extends at{_parse(t){const{ctx:n}=this._processInputParams(t);let a=n.data;return n.parsedType===we.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Fu.create=(e,t)=>new Fu({innerType:e,typeName:We.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ze(t)});class Vu extends at{_parse(t){const{ctx:n}=this._processInputParams(t),a={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return Mu(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new dr(a.common.issues)},input:a.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new dr(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}Vu.create=(e,t)=>new Vu({innerType:e,typeName:We.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ze(t)});class ak extends at{_parse(t){if(this._getType(t)!==we.nan){const a=this._getOrReturnCtx(t);return ye(a,{code:le.invalid_type,expected:we.nan,received:a.parsedType}),He}return{status:"valid",value:t.data}}}ak.create=e=>new ak({typeName:We.ZodNaN,...Ze(e)});class rw extends at{_parse(t){const{ctx:n}=this._processInputParams(t),a=n.data;return this._def.type._parse({data:a,path:n.path,parent:n})}unwrap(){return this._def.type}}class Sm extends at{_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?He:s.status==="dirty"?(n.dirty(),Zs(s.value)):this._def.out._parseAsync({data:s.value,path:a.path,parent:a})})();{const o=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?He:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:a.path,parent:a})}}static create(t,n){return new Sm({in:t,out:n,typeName:We.ZodPipeline})}}class $u extends at{_parse(t){const n=this._def.innerType._parse(t),a=o=>(Vo(o)&&(o.value=Object.freeze(o.value)),o);return Mu(n)?n.then(o=>a(o)):a(n)}unwrap(){return this._def.innerType}}$u.create=(e,t)=>new $u({innerType:e,typeName:We.ZodReadonly,...Ze(t)});var We;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(We||(We={}));const b=Ua.create,ne=Oi.create;ji.create;const Fe=Nu.create,Cm=$o.create,fn=cp.create;Qr.create;const ce=Ba.create,L=Ut.create,la=Ou.create,iw=Pm.create;ju.create;Ui.create;const Tt=Uu.create,Je=Bu.create,ot=Bi.create;zu.create;ur.create;Fi.create;const fp={string:(e=>Ua.create({...e,coerce:!0})),number:(e=>Oi.create({...e,coerce:!0})),boolean:(e=>Nu.create({...e,coerce:!0})),bigint:(e=>ji.create({...e,coerce:!0})),date:(e=>$o.create({...e,coerce:!0}))};var Na;(function(e){e.STRING="string",e.DATE="date",e.DATETIME="datetime",e.INTEGER="integer",e.FLOAT="float",e.BOOLEAN="boolean",e.UUID="uuid",e.JSON="json"})(Na||(Na={}));const oA=ot(["CASCADE","RESTRICT","NO ACTION"]),sA=ot(["CASCADE","SET NULL","SET DEFAULT","RESTRICT","NO ACTION"]),lA=ot([Na.STRING,Na.DATE,Na.DATETIME,Na.INTEGER,Na.FLOAT,Na.BOOLEAN,Na.UUID,Na.JSON]),ow=L({referenceTable:b().min(1,"Target table cannot be empty"),referenceColumn:b().min(1,"Target column cannot be empty"),onDelete:sA,onUpdate:oA}),sw=L({columnName:b().min(1,"Column name cannot be empty").max(64,"Column name must be less than 64 characters"),type:la([lA,b()]),defaultValue:b().optional(),isPrimaryKey:Fe().optional(),isNullable:Fe(),isUnique:Fe(),foreignKey:ow.optional()}),lw=L({tableName:b().min(1,"Table name cannot be empty").max(64,"Table name must be less than 64 characters"),columns:ce(sw).min(1,"At least one column is required"),recordCount:ne().optional(),createdAt:b().optional(),updatedAt:b().optional()}),cA=L({functionName:b(),functionDef:b(),kind:b()}),uA=L({tableName:b(),indexName:b(),indexDef:b(),isUnique:Fe().nullable(),isPrimary:Fe().nullable()}),dA=L({tableName:b(),policyName:b(),cmd:b(),roles:ce(b()),qual:b().nullable(),withCheck:b().nullable()}),hA=L({tableName:b(),triggerName:b(),actionTiming:b(),eventManipulation:b(),actionOrientation:b(),actionCondition:b().nullable(),actionStatement:b()});lw.pick({tableName:!0,columns:!0}).extend({rlsEnabled:Fe().default(!0)});lw.pick({tableName:!0,columns:!0}).extend({message:b(),autoFields:ce(b()),nextActions:b()});L({addColumns:ce(sw.omit({foreignKey:!0})).optional(),dropColumns:ce(b()).optional(),updateColumns:ce(L({columnName:b(),defaultValue:b().optional(),newColumnName:b().min(1,"New column name cannot be empty").max(64,"New column name must be less than 64 characters").optional()})).optional(),addForeignKeys:ce(L({columnName:b().min(1,"Column name is required for adding foreign key"),foreignKey:ow})).optional(),dropForeignKeys:ce(b()).optional(),renameTable:L({newTableName:b().min(1,"New table name cannot be empty").max(64,"New table name must be less than 64 characters")}).optional()});L({message:b(),tableName:b(),operations:ce(b())});L({message:b(),tableName:b(),nextActions:b()});L({query:b().min(1,"Query is required"),params:ce(fn()).optional()});L({rows:ce(Tt(b(),fn())),rowCount:ne().nullable(),fields:ce(L({name:b(),dataTypeID:ne()})).optional()});L({tables:ce(b()).optional(),format:ot(["sql","json"]).default("sql"),includeData:Fe().default(!0),includeFunctions:Fe().default(!1),includeSequences:Fe().default(!1),includeViews:Fe().default(!1),rowLimit:ne().int().positive().max(1e4).default(1e3)});const fA=L({timestamp:b(),tables:Tt(b(),L({schema:ce(L({columnName:b(),dataType:b(),characterMaximumLength:ne().nullable(),isNullable:b(),columnDefault:b().nullable()})),indexes:ce(L({indexname:b(),indexdef:b(),isUnique:Fe().nullable(),isPrimary:Fe().nullable()})),foreignKeys:ce(L({constraintName:b(),columnName:b(),foreignTableName:b(),foreignColumnName:b(),deleteRule:b().nullable(),updateRule:b().nullable()})),rlsEnabled:Fe().optional(),policies:ce(L({policyname:b(),cmd:b(),roles:ce(b()),qual:b().nullable(),withCheck:b().nullable()})),triggers:ce(L({triggerName:b(),actionTiming:b(),eventManipulation:b(),actionOrientation:b(),actionCondition:b().nullable(),actionStatement:b(),newTable:b().nullable(),oldTable:b().nullable()})),rows:ce(Tt(b(),fn())).optional(),recordCount:ne().optional()})),functions:ce(L({functionName:b(),functionDef:b(),kind:b()})),sequences:ce(L({sequenceName:b(),startValue:b(),increment:b(),minValue:b().nullable(),maxValue:b().nullable(),cycle:b()})),views:ce(L({viewName:b(),definition:b()}))});L({format:ot(["sql","json"]),data:la([b(),fA]),timestamp:b()});L({truncate:la([Fe(),b().transform(e=>{if(e==="true")return!0;if(e==="false")return!1;throw new Error("Invalid boolean string")})]).default(!1)});L({success:Fe(),message:b(),filename:b(),tables:ce(b()),rowsImported:ne(),fileSize:ne()});L({table:b().min(1,"Table name is required"),upsertKey:b().optional()});L({success:Fe(),message:b(),table:b(),rowsAffected:ne(),totalRecords:ne(),filename:b()});L({functions:ce(cA)});L({indexes:ce(uA)});L({policies:ce(dA)});L({triggers:ce(hA)});const pA=L({id:b(),key:b(),isActive:Fe(),isReserved:Fe(),lastUsedAt:b().nullable(),expiresAt:b().nullable(),createdAt:b(),updatedAt:b()});L({secrets:ce(pA)});L({key:b(),value:b()});L({key:b().regex(/^[A-Z0-9_]+$/,"Use uppercase letters, numbers, and underscores only"),value:b().min(1,"Value is required")});L({success:Je(!0),message:b(),id:b()});L({success:Je(!0),message:b()});L({success:Je(!0),message:b()});const mA=L({key:b(),bucket:b(),size:ne(),mimeType:b().optional(),uploadedAt:b(),url:b()}),gA=L({name:b(),public:Fe(),createdAt:b()});L({id:b().uuid(),maxFileSizeMb:ne().int().positive(),createdAt:b(),updatedAt:b()});L({bucketName:b().min(1,"Bucket name cannot be empty"),isPublic:Fe().default(!0)});L({isPublic:Fe()});L({objects:ce(mA),pagination:L({offset:ne(),limit:ne(),total:ne()})});L({filename:b().min(1,"Filename cannot be empty"),contentType:b().optional(),size:ne().optional()});L({method:ot(["presigned","direct"]),uploadUrl:b(),fields:Tt(b()).optional(),key:b(),confirmRequired:Fe(),confirmUrl:b().optional(),expiresAt:Cm().optional()});L({expiresIn:ne().optional().default(3600)});L({method:ot(["presigned","direct"]),url:b(),expiresAt:Cm().optional(),headers:Tt(b()).optional()});L({size:ne(),contentType:b().optional(),etag:b().optional()});L({maxFileSizeMb:ne().int().min(1,"Must be at least 1 MB").max(200,"Must be at most 200 MB")});const yd=b().uuid("Invalid user ID format"),$a=b().email("Invalid email format").toLowerCase().trim(),Tm=b(),yA=b().min(1,"Name is required").max(100,"Name must be less than 100 characters").trim(),vA=ot(["anon","authenticated","project_admin"]),rk=ot(["code","link"]),cw=L({name:b().optional(),avatar_url:b().url().optional()}).passthrough(),Xo=L({id:yd,email:$a,emailVerified:Fe(),providers:ce(b()).optional(),createdAt:b(),updatedAt:b(),profile:cw.nullable(),metadata:Tt(fn()).nullable()}),vd=ot(["google","github","discord","linkedin","facebook","instagram","tiktok","apple","x","spotify","microsoft"]);L({provider:vd,redirectUri:b().url().optional()});const Em=L({id:b().uuid(),provider:vd,clientId:b().optional(),scopes:ce(b()).optional(),redirectUri:b().optional(),useSharedKey:Fe(),createdAt:b(),updatedAt:b()}),bA=/^(?:(?:https?:\/\/)(?:(?:\*\.)?[^\s/:?#]+|\[[0-9A-Fa-f:.]+\])(?::\d+)?(?:\/[^\s]*)?|(?!(?:https?|javascript|data|file|vbscript):)[a-zA-Z][a-zA-Z0-9+.-]*:(?:\/\/[^\s/]+(?:\/[^\s]*)?|\/[^\s]*))$/i,uw=L({id:b().uuid(),requireEmailVerification:Fe(),passwordMinLength:ne().min(4).max(128),requireNumber:Fe(),requireLowercase:Fe(),requireUppercase:Fe(),requireSpecialChar:Fe(),verifyEmailMethod:rk,resetPasswordMethod:rk,allowedRedirectUrls:ce(b().regex(bA,{message:"Invalid URL or wildcard URL"})).optional().nullable(),createdAt:b(),updatedAt:b()});L({sub:yd,email:$a,role:vA,iat:ne().optional(),exp:ne().optional()});const dw=b().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Key must contain only lowercase letters, numbers, hyphens, and underscores"),Am=L({id:b().uuid(),key:dw,name:b().min(1),discoveryEndpoint:b().url(),clientId:b().min(1),createdAt:b(),updatedAt:b()}),kA=L({limit:b().optional(),offset:b().optional()});L({email:$a,password:Tm,name:yA.optional(),redirectTo:b().url().optional()});L({email:$a,password:Tm});L({refreshToken:b().min(1,"refreshToken is required")});L({code:b()});kA.extend({search:b().optional()}).optional();L({userIds:ce(yd).min(1,"At least one user ID is required")});L({profile:Tt(fn())});L({email:$a,redirectTo:b().url().optional()});L({email:$a,otp:b().regex(/^\d{6}$/,"OTP code must be a 6-digit numeric code")});L({email:$a,redirectTo:b().url().optional()});L({email:$a,code:b().regex(/^\d{6}$/,"Reset password code must be a 6-digit numeric code")});L({newPassword:Tm,otp:b().min(1,"OTP/token is required")});L({user:Xo.optional(),accessToken:b().nullable(),requireEmailVerification:Fe().optional(),csrfToken:b().nullable().optional(),refreshToken:b().optional()});L({user:Xo,accessToken:b(),csrfToken:b().nullable().optional(),refreshToken:b().optional()});L({user:Xo,accessToken:b(),csrfToken:b().nullable().optional(),refreshToken:b().optional()});L({accessToken:b(),user:Xo,csrfToken:b().optional(),refreshToken:b().optional()});L({token:b(),expiresAt:b().datetime()});L({message:b()});L({user:Xo});L({id:yd,profile:cw.nullable()});L({data:ce(Xo),pagination:L({offset:ne(),limit:ne(),total:ne()})});L({message:b(),deletedCount:ne().int().nonnegative()});L({authUrl:b().url()});Em.omit({id:!0,createdAt:!0,updatedAt:!0}).extend({clientSecret:b().optional()});Em.omit({id:!0,provider:!0,createdAt:!0,updatedAt:!0}).extend({clientSecret:b().optional()}).partial();const hw=/^[A-Za-z0-9._~-]+$/;L({redirect_uri:b().url().optional(),code_challenge:b().min(43,"Code challenge must be at least 43 characters").max(128,"Code challenge must be at most 128 characters").regex(hw,"Code challenge must be base64url encoded")});L({code:b().min(1,"Exchange code is required"),code_verifier:b().min(43,"Code verifier must be at least 43 characters").max(128,"Code verifier must be at most 128 characters").regex(hw,"Code verifier must be base64url encoded")});L({data:ce(Em),count:ne()});uw.omit({id:!0,createdAt:!0,updatedAt:!0}).partial();const _A=L({oAuthProviders:ce(vd),customOAuthProviders:ce(dw),...uw.omit({id:!0,updatedAt:!0,createdAt:!0,allowedRedirectUrls:!0}).shape});L({error:b(),message:b(),statusCode:ne().int(),nextActions:b().optional()});Am.omit({id:!0,createdAt:!0,updatedAt:!0}).extend({clientSecret:b().min(1,"Client secret is required")});Am.omit({id:!0,key:!0,createdAt:!0,updatedAt:!0}).extend({clientSecret:b().min(1).optional()}).partial();L({data:ce(Am),count:ne()});const fw=ot(["system","user"]),pw=L({id:b().uuid(),pattern:b().min(1),description:b().nullable(),webhookUrls:ce(b().url()).nullable(),enabled:Fe(),createdAt:b().datetime(),updatedAt:b().datetime()}),wA=L({id:b().uuid(),eventName:b().min(1),channelId:b().uuid().nullable(),channelName:b().min(1),payload:Tt(b(),fn()),senderType:fw,senderId:b().uuid().nullable(),wsAudienceCount:ne().int().min(0),whAudienceCount:ne().int().min(0),whDeliveredCount:ne().int().min(0),createdAt:b().datetime()}),xA=L({retentionDays:ne().int().positive().nullable()});L({channel:b().min(1)});L({channel:b().min(1)});L({channel:b().min(1),event:b().min(1),payload:Tt(b(),fn())});iw("ok",[L({ok:Je(!0),channel:b().min(1)}),L({ok:Je(!1),channel:b().min(1),error:L({code:b().min(1),message:b().min(1)})})]);L({channel:b().optional(),code:b().min(1),message:b().min(1)});L({messageId:b().uuid(),channel:b().min(1),eventName:b().min(1),payload:Tt(b(),fn())});const PA=L({channel:b().optional(),messageId:b().uuid(),senderType:fw,senderId:b().uuid().optional(),timestamp:b().datetime()});L({meta:PA}).passthrough();L({pattern:b().min(1,"Channel pattern is required"),description:b().optional(),webhookUrls:ce(b().url()).optional(),enabled:Fe().optional().default(!0)});L({pattern:b().min(1).optional(),description:b().optional(),webhookUrls:ce(b().url()).optional(),enabled:Fe().optional()});ce(pw);L({message:b()});L({channelId:b().uuid().optional(),eventName:b().optional(),limit:fp.number().int().min(1).max(1e3).optional().default(100),offset:fp.number().int().min(0).optional().default(0)});ce(wA);L({channelId:b().uuid().optional(),since:fp.date().optional()});L({totalMessages:ne().int().min(0),whDeliveryRate:ne().min(0).max(1),topEvents:ce(L({eventName:b(),count:ne().int().min(0)})),retentionDays:xA.shape.retentionDays});const ik=L({policyName:b(),tableName:b(),command:b(),roles:ce(b()),using:b().nullable(),withCheck:b().nullable()}),SA=L({subscribe:L({policies:ce(ik)}),publish:L({policies:ce(ik)})}),CA=_A,TA=L({tables:ce(L({tableName:b(),recordCount:ne()})),totalSizeInGB:ne(),hint:b().optional()}),EA=gA.extend({objectCount:ne().optional()}),AA=L({buckets:ce(EA),totalSizeInGB:ne()}),RA=L({slug:b(),name:b(),description:b().nullable(),status:b()}),LA=L({models:ce(L({inputModality:ce(b()),outputModality:ce(b()),modelId:b()}))}),DA=L({channels:ce(pw),permissions:SA});L({auth:CA,database:TA,storage:AA,aiIntegration:LA.optional(),functions:ce(RA),realtime:DA.optional(),version:b().optional()});const IA=L({host:b(),port:ne(),database:b(),user:b(),password:b(),sslmode:b()});L({connectionURL:b(),parameters:IA});L({databasePassword:b()});L({apiKey:b()});L({projectId:b().nullable()});const Ho=ot(["text","image","audio"]),MA=L({inputModality:ce(Ho).min(1),outputModality:ce(Ho).min(1),provider:b(),modelId:b(),systemPrompt:b().optional()}),mw=MA.extend({id:b().uuid()});mw.extend({usageStats:L({totalInputTokens:ne(),totalOutputTokens:ne(),totalTokens:ne(),totalImageCount:ne(),totalRequests:ne()}).optional()});const NA=L({configId:b().uuid(),inputTokens:ne().int().optional(),outputTokens:ne().int().optional(),imageCount:ne().int().optional(),imageResolution:b().optional()}),OA=NA.extend({id:b().uuid(),createdAt:Cm(),modelId:b().nullable().optional(),model:b().nullable(),provider:b().nullable(),inputModality:ce(Ho).nullable(),outputModality:ce(Ho).nullable()});L({totalInputTokens:ne(),totalOutputTokens:ne(),totalTokens:ne(),totalImageCount:ne(),totalRequests:ne()});const jA=L({type:Je("text"),text:b()}),UA=L({type:Je("image_url"),image_url:L({url:b(),detail:ot(["auto","low","high"]).optional()})}),BA=L({type:Je("input_audio"),input_audio:L({data:b(),format:ot(["wav","mp3","aiff","aac","ogg","flac","m4a"])})}),zA=L({type:Je("file"),file:L({filename:b(),file_data:b()})}),FA=la([jA,UA,BA,zA]),VA=L({name:b(),description:b().optional(),parameters:Tt(fn()).optional()}),$A=L({type:Je("function"),function:VA}),HA=la([ot(["auto","none","required"]),L({type:Je("function"),function:L({name:b()})})]),gw=L({id:b(),type:Je("function"),function:L({name:b(),arguments:b()})}),WA=L({role:ot(["user","assistant","system","tool"]),content:la([b(),ce(FA)]).nullable(),images:ce(L({url:b()})).optional(),tool_calls:ce(gw).optional(),tool_call_id:b().optional()}),KA=L({enabled:Fe(),engine:ot(["native","exa"]).optional(),maxResults:ne().min(1).max(10).optional(),searchPrompt:b().optional()}),GA=L({enabled:Fe(),pdf:L({engine:ot(["pdf-text","mistral-ocr","native"]).optional()}).optional()});L({model:b(),messages:ce(WA),temperature:ne().min(0).max(2).optional(),maxTokens:ne().positive().optional(),topP:ne().min(0).max(1).optional(),stream:Fe().optional(),webSearch:KA.optional(),fileParser:GA.optional(),thinking:Fe().optional(),tools:ce($A).optional(),toolChoice:HA.optional(),parallelToolCalls:Fe().optional()});const qA=L({type:Je("url_citation"),urlCitation:L({url:b(),title:b().optional(),content:b().optional(),startIndex:ne().optional(),endIndex:ne().optional()})}),YA=L({type:Je("file"),file:L({filename:b(),parsedContent:b().optional(),metadata:Tt(fn()).optional()})}),ZA=la([qA,YA]);L({text:b(),tool_calls:ce(gw).optional(),annotations:ce(ZA).optional(),metadata:L({model:b(),usage:L({promptTokens:ne().optional(),completionTokens:ne().optional(),totalTokens:ne().optional()}).optional()}).optional()});L({model:b(),input:la([b(),ce(b())]),encoding_format:ot(["float","base64"]).optional(),dimensions:ne().int().min(0).optional()});const XA=L({object:Je("embedding"),embedding:la([ce(ne()),b()]),index:ne()});L({object:Je("list"),data:ce(XA),metadata:L({model:b(),usage:L({promptTokens:ne().optional(),totalTokens:ne().optional()}).optional()}).optional()});L({model:b(),prompt:b(),images:ce(L({url:b()})).optional()});L({text:b().optional(),images:ce(L({type:Je("imageUrl"),imageUrl:b()})),metadata:L({model:b(),usage:L({promptTokens:ne().optional(),completionTokens:ne().optional(),totalTokens:ne().optional()}).optional()}).optional()});L({id:b(),inputModality:ce(Ho).min(1),outputModality:ce(Ho).min(1),provider:b(),modelId:b(),inputPrice:ne().min(0).optional(),outputPrice:ne().min(0).optional()});mw.omit({id:!0});L({systemPrompt:b().nullable()});L({records:ce(OA),total:ne()});L({startDate:b().datetime().optional(),endDate:b().datetime().optional(),limit:b().regex(/^\d+$/).default("50"),offset:b().regex(/^\d+$/).default("0")});L({configId:b().uuid().optional(),startDate:b().datetime().optional(),endDate:b().datetime().optional()});const QA=ot(["byok","cloud","env","unconfigured"]);L({keySource:QA,hasByokKey:Fe(),maskedKey:b().optional()});L({apiKey:b().min(1,"API key is required")});const yw=L({id:b(),actor:b(),action:b(),module:b(),details:Tt(fn()).nullable(),ipAddress:b().nullable(),createdAt:b(),updatedAt:b()});L({id:b(),name:b(),token:b()});const JA=L({id:b(),eventMessage:b(),timestamp:b(),body:Tt(b(),fn()),source:b().optional()});L({source:b(),count:ne(),lastActivity:b()});const eR=L({level:b(),message:b()});L({deploymentId:b(),status:ot(["pending","success","failed"]),logs:ce(eR),createdAt:b()});L({limit:ne().default(100),offset:ne().default(0),actor:b().optional(),action:b().optional(),module:b().optional(),startDate:b().optional(),endDate:b().optional()});L({data:ce(yw),pagination:L({limit:ne(),offset:ne(),total:ne()})});L({days:ne().default(7)});L({totalLogs:ne(),uniqueActors:ne(),uniqueModules:ne(),actionsByModule:Tt(ne()),recentActivity:ce(yw)});L({daysToKeep:ne().default(90)});L({message:b(),deleted:ne()});L({logs:ce(JA),total:ne()});const vw=L({id:b(),slug:b(),name:b(),description:b().nullable(),code:b(),status:ot(["draft","active","error"]),createdAt:b(),updatedAt:b(),deployedAt:b().nullable()});L({name:b().min(1,"Name is required"),slug:b().regex(/^[a-zA-Z0-9_-]+$/,"Invalid slug format - must be alphanumeric with hyphens or underscores only").optional(),code:b().min(1),description:b().optional(),status:ot(["draft","active"]).optional().default("active")});L({name:b().optional(),code:b().optional(),description:b().optional(),status:ot(["draft","active"]).optional()});L({functions:ce(vw),runtime:L({status:ot(["running","unavailable"])}),deploymentUrl:b().nullable().optional()});const tR=L({id:b(),status:ot(["success","failed"]),url:b().nullable(),buildLogs:ce(b()).optional()});L({success:Fe(),function:vw,deployment:tR.nullable().optional()});const nR=L({type:Je("APP_ROUTE_CHANGE"),path:b()}),aR=L({type:Je("AUTH_SUCCESS")}),rR=L({type:Je("AUTH_ERROR"),message:b()}),iR=L({type:Je("MCP_CONNECTION_STATUS"),connected:Fe(),toolName:b(),timestamp:la([ne(),b()])}),oR=L({type:Je("SHOW_ONBOARDING_OVERLAY")}),sR=L({type:Je("SHOW_SETTINGS_OVERLAY")}),lR=L({type:Je("ONBOARDING_SUCCESS")}),cR=L({type:Je("NAVIGATE_TO_USAGE")}),uR=L({type:Je("SHOW_CONTACT_MODAL")}),dR=L({type:Je("SHOW_CONNECT_OVERLAY")}),hR=L({type:Je("SHOW_PLAN_MODAL")}),fR=L({type:Je("AUTHORIZATION_CODE"),code:b()}),pR=L({type:Je("ROUTE_CHANGE"),path:b()}),mR=L({type:Je("REQUEST_PROJECT_INFO")}),gR=L({type:Je("PROJECT_INFO"),name:b(),instanceType:b(),region:b(),latestVersion:b().optional()}),yR=L({type:Je("REQUEST_INSTANCE_INFO")}),vR=L({type:Je("INSTANCE_INFO"),currentInstanceType:b(),planName:b(),computeCredits:ne(),currentOrgComputeCost:ne(),instanceTypes:ce(L({id:b(),name:b(),cpu:b(),ram:b(),pricePerHour:ne(),pricePerMonth:ne()})),projects:ce(L({name:b(),instanceType:b(),monthlyCost:ne(),isCurrent:Fe(),status:b()}))}),bR=L({type:Je("REQUEST_INSTANCE_TYPE_CHANGE"),instanceType:b()}),kR=L({type:Je("INSTANCE_TYPE_CHANGE_RESULT"),success:Fe(),instanceType:b().optional(),error:b().optional()});iw("type",[nR,aR,rR,iR,oR,sR,lR,cR,uR,dR,hR,fR,pR,mR,gR,yR,vR,bR,kR]);ot(["db","storage","functions","auth","ai","realtime"]).describe(`
13
+ SDK feature categories:
14
+
15
+ - "db" - Database operations
16
+ - "storage" - File storage
17
+ - "functions" - Edge functions
18
+ - "auth" - User authentication
19
+ - "ai" - AI features
20
+ - "realtime" - Real-time WebSockets
21
+ `);ot(["typescript","swift","kotlin","rest-api"]).describe(`
22
+ SDK languages:
23
+
24
+ - "typescript" - JavaScript/TypeScript SDK
25
+ - "swift" - Swift SDK
26
+ - "kotlin" - Kotlin SDK
27
+ - "rest-api" - REST API
28
+ `);ot(["instructions","auth-sdk","db-sdk","storage-sdk","functions-sdk","ai-integration-sdk","real-time","deployment"]).describe(`
29
+ Documentation type:
30
+ "instructions" (essential backend setup - use FIRST),
31
+ "db-sdk" (database operations),
32
+ "storage-sdk" (file storage),
33
+ "functions-sdk" (edge functions),
34
+ "auth-sdk" (direct SDK methods for custom auth flows),
35
+ "ai-integration-sdk" (AI features),
36
+ "real-time" (real-time pub/sub through WebSockets),
37
+ "deployment" (deploy frontend applications via MCP tool)
38
+ `);const xf=la([$a,ce($a).min(1,"At least one email is required").max(50,"Maximum 50 recipients allowed")]);L({to:xf,subject:b().trim().min(1,"Subject is required").max(500,"Subject too long"),html:b().trim().min(1,"HTML content is required"),cc:xf.optional(),bcc:xf.optional(),from:b().trim().max(100,"From name too long").optional(),replyTo:b().email("Reply-To must be a valid email").optional()});L({});const _R=ot(["WAITING","UPLOADING","QUEUED","BUILDING","READY","ERROR","CANCELED"]),wR=L({id:b().uuid(),providerDeploymentId:b().nullable(),provider:b(),status:_R,url:b().nullable(),metadata:Tt(fn()).nullable(),createdAt:b().datetime(),updatedAt:b().datetime()}),xR=L({buildCommand:b().nullable().optional(),outputDirectory:b().nullable().optional(),installCommand:b().nullable().optional(),devCommand:b().nullable().optional(),rootDirectory:b().nullable().optional()}),PR=L({key:b(),value:b()});L({id:b().uuid(),uploadUrl:b().url(),uploadFields:Tt(b())});L({projectSettings:xR.optional(),envVars:ce(PR).optional(),meta:Tt(b()).optional()});L({data:ce(wR),pagination:L({limit:ne(),offset:ne(),total:ne()})});const SR=L({id:b(),key:b(),type:ot(["plain","encrypted","secret","sensitive","system"]),updatedAt:ne().optional()}),CR=L({id:b(),key:b(),value:b(),type:ot(["plain","encrypted","secret","sensitive","system"]),updatedAt:ne().optional()});L({envVars:ce(SR)});L({envVar:CR});const TR=L({key:b().trim().min(1,"key is required"),value:b()});L({envVars:ce(TR).min(1)}).superRefine(({envVars:e},t)=>{const n=new Map;e.forEach((a,o)=>{if(n.get(a.key)!==void 0){t.addIssue({code:le.custom,message:"duplicate environment variable key",path:["envVars",o,"key"]});return}n.set(a.key,o)})});L({success:Je(!0),message:b()});L({success:Je(!0),message:b(),count:ne().int().positive()});L({success:Je(!0),message:b()});L({slug:b().trim().min(3,"slug must be at least 3 characters").max(63,"slug must be at most 63 characters").regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,"slug must be lowercase alphanumeric with hyphens, not starting or ending with hyphen").nullable()});L({success:Fe(),slug:b().nullable(),domain:b().nullable()});L({currentDeploymentId:b().uuid().nullable(),defaultDomainUrl:b().nullable(),customDomainUrl:b().nullable()});const ER=L({type:b(),domain:b(),value:b()}),AR=L({domain:b(),apexDomain:b(),verified:Fe(),misconfigured:Fe(),verification:ce(ER),cnameTarget:b().nullable(),aRecordValue:b().nullable()});L({domain:b().trim().min(1,"Domain is required").regex(/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,}$/i,"Invalid domain format (e.g. myapp.com or www.myapp.com)").refine(e=>!e.toLowerCase().endsWith(".insforge.site"),{message:"Domains ending with .insforge.site are reserved by InsForge"})});L({domains:ce(AR)});const RR=L({id:b().uuid(),name:b(),cronSchedule:b(),functionUrl:b().url(),httpMethod:ot(["GET","POST","PUT","PATCH","DELETE"]),headers:Tt(b()).nullable(),body:la([b(),Tt(fn())]).nullable(),cronJobId:b().nullable(),lastExecutedAt:b().datetime().nullable(),isActive:Fe().default(!0),nextRun:b().datetime().nullable(),createdAt:b().datetime(),updatedAt:b().datetime()}),LR=L({id:b().uuid(),scheduleId:b().uuid(),executedAt:b().datetime(),statusCode:ne().int(),success:Fe(),durationMs:ne().int(),message:b().nullable()}),bw=b().refine(e=>{const t=e.split(" ");return t.length===5||t.length===6},{message:'Invalid cron schedule format. Use 5 or 6 parts (e.g., "* * * * *").'});L({name:b().min(3,"Schedule name must be at least 3 characters long"),cronSchedule:bw,functionUrl:b().url("The function URL must be a valid URL."),httpMethod:ot(["GET","POST","PUT","PATCH","DELETE"]),headers:Tt(b()).optional().describe("Header values can reference secrets using ${{secrets.KEY_NAME}} syntax."),body:Tt(fn()).optional().describe("The JSON body to send with the request.")});L({name:b().min(3,"Schedule name must be at least 3 characters long").optional(),cronSchedule:bw.optional(),functionUrl:b().url("The function URL must be a valid URL.").optional(),httpMethod:ot(["GET","POST","PUT","PATCH","DELETE"]).optional(),headers:Tt(b()).optional().describe("Header values can reference secrets using ${{secrets.KEY_NAME}} syntax."),body:Tt(fn()).optional().describe("The JSON body to send with the request."),isActive:Fe().optional().describe("Enable or disable the schedule.")});ce(RR);const DR=LR;L({logs:ce(DR),totalCount:ne().int().nonnegative(),limit:ne().int().positive(),offset:ne().int().nonnegative()});L({id:b().uuid(),cronJobId:b(),message:b()});L({id:b().uuid(),cronJobId:b().optional(),message:b()});L({message:b()});var Xt={},Po={},So={},Co={},To={},Eo={},IR=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Wo=IR();const MR=Wo.fetch,NR=Wo.fetch.bind(Wo),OR=Wo.Headers,jR=Wo.Request,UR=Wo.Response,BR=Object.freeze(Object.defineProperty({__proto__:null,Headers:OR,Request:jR,Response:UR,default:NR,fetch:MR},Symbol.toStringTag,{value:"Module"})),zR=rT(BR);var Zc={},ok;function kw(){if(ok)return Zc;ok=1,Object.defineProperty(Zc,"__esModule",{value:!0});class e extends Error{constructor(n){super(n.message),this.name="PostgrestError",this.details=n.details,this.hint=n.hint,this.code=n.code}}return Zc.default=e,Zc}var sk;function _w(){if(sk)return Eo;sk=1;var e=Eo&&Eo.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Eo,"__esModule",{value:!0});const t=e(zR),n=e(kw());class a{constructor(s){var l,u;this.shouldThrowOnError=!1,this.method=s.method,this.url=s.url,this.headers=new Headers(s.headers),this.schema=s.schema,this.body=s.body,this.shouldThrowOnError=(l=s.shouldThrowOnError)!==null&&l!==void 0?l:!1,this.signal=s.signal,this.isMaybeSingle=(u=s.isMaybeSingle)!==null&&u!==void 0?u:!1,s.fetch?this.fetch=s.fetch:typeof fetch>"u"?this.fetch=t.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(s,l){return this.headers=new Headers(this.headers),this.headers.set(s,l),this}then(s,l){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const u=this.fetch;let h=u(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async f=>{var m,y,v,_;let x=null,C=null,S=null,M=f.status,R=f.statusText;if(f.ok){if(this.method!=="HEAD"){const $=await f.text();$===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((m=this.headers.get("Accept"))===null||m===void 0)&&m.includes("application/vnd.pgrst.plan+text"))?C=$:C=JSON.parse($))}const E=(y=this.headers.get("Prefer"))===null||y===void 0?void 0:y.match(/count=(exact|planned|estimated)/),B=(v=f.headers.get("content-range"))===null||v===void 0?void 0:v.split("/");E&&B&&B.length>1&&(S=parseInt(B[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(C)&&(C.length>1?(x={code:"PGRST116",details:`Results contain ${C.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},C=null,S=null,M=406,R="Not Acceptable"):C.length===1?C=C[0]:C=null)}else{const E=await f.text();try{x=JSON.parse(E),Array.isArray(x)&&f.status===404&&(C=[],x=null,M=200,R="OK")}catch{f.status===404&&E===""?(M=204,R="No Content"):x={message:E}}if(x&&this.isMaybeSingle&&(!((_=x?.details)===null||_===void 0)&&_.includes("0 rows"))&&(x=null,M=200,R="OK"),x&&this.shouldThrowOnError)throw new n.default(x)}return{error:x,data:C,count:S,status:M,statusText:R}});return this.shouldThrowOnError||(h=h.catch(f=>{var m,y,v;return{error:{message:`${(m=f?.name)!==null&&m!==void 0?m:"FetchError"}: ${f?.message}`,details:`${(y=f?.stack)!==null&&y!==void 0?y:""}`,hint:"",code:`${(v=f?.code)!==null&&v!==void 0?v:""}`},data:null,count:null,status:0,statusText:""}})),h.then(s,l)}returns(){return this}overrideTypes(){return this}}return Eo.default=a,Eo}var lk;function ww(){if(lk)return To;lk=1;var e=To&&To.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(To,"__esModule",{value:!0});const t=e(_w());class n extends t.default{select(o){let s=!1;const l=(o??"*").split("").map(u=>/\s/.test(u)&&!s?"":(u==='"'&&(s=!s),u)).join("");return this.url.searchParams.set("select",l),this.headers.append("Prefer","return=representation"),this}order(o,{ascending:s=!0,nullsFirst:l,foreignTable:u,referencedTable:h=u}={}){const f=h?`${h}.order`:"order",m=this.url.searchParams.get(f);return this.url.searchParams.set(f,`${m?`${m},`:""}${o}.${s?"asc":"desc"}${l===void 0?"":l?".nullsfirst":".nullslast"}`),this}limit(o,{foreignTable:s,referencedTable:l=s}={}){const u=typeof l>"u"?"limit":`${l}.limit`;return this.url.searchParams.set(u,`${o}`),this}range(o,s,{foreignTable:l,referencedTable:u=l}={}){const h=typeof u>"u"?"offset":`${u}.offset`,f=typeof u>"u"?"limit":`${u}.limit`;return this.url.searchParams.set(h,`${o}`),this.url.searchParams.set(f,`${s-o+1}`),this}abortSignal(o){return this.signal=o,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:o=!1,verbose:s=!1,settings:l=!1,buffers:u=!1,wal:h=!1,format:f="text"}={}){var m;const y=[o?"analyze":null,s?"verbose":null,l?"settings":null,u?"buffers":null,h?"wal":null].filter(Boolean).join("|"),v=(m=this.headers.get("Accept"))!==null&&m!==void 0?m:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${f}; for="${v}"; options=${y};`),f==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(o){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${o}`),this}}return To.default=n,To}var ck;function Rm(){if(ck)return Co;ck=1;var e=Co&&Co.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Co,"__esModule",{value:!0});const t=e(ww());class n extends t.default{eq(o,s){return this.url.searchParams.append(o,`eq.${s}`),this}neq(o,s){return this.url.searchParams.append(o,`neq.${s}`),this}gt(o,s){return this.url.searchParams.append(o,`gt.${s}`),this}gte(o,s){return this.url.searchParams.append(o,`gte.${s}`),this}lt(o,s){return this.url.searchParams.append(o,`lt.${s}`),this}lte(o,s){return this.url.searchParams.append(o,`lte.${s}`),this}like(o,s){return this.url.searchParams.append(o,`like.${s}`),this}likeAllOf(o,s){return this.url.searchParams.append(o,`like(all).{${s.join(",")}}`),this}likeAnyOf(o,s){return this.url.searchParams.append(o,`like(any).{${s.join(",")}}`),this}ilike(o,s){return this.url.searchParams.append(o,`ilike.${s}`),this}ilikeAllOf(o,s){return this.url.searchParams.append(o,`ilike(all).{${s.join(",")}}`),this}ilikeAnyOf(o,s){return this.url.searchParams.append(o,`ilike(any).{${s.join(",")}}`),this}is(o,s){return this.url.searchParams.append(o,`is.${s}`),this}in(o,s){const l=Array.from(new Set(s)).map(u=>typeof u=="string"&&new RegExp("[,()]").test(u)?`"${u}"`:`${u}`).join(",");return this.url.searchParams.append(o,`in.(${l})`),this}contains(o,s){return typeof s=="string"?this.url.searchParams.append(o,`cs.${s}`):Array.isArray(s)?this.url.searchParams.append(o,`cs.{${s.join(",")}}`):this.url.searchParams.append(o,`cs.${JSON.stringify(s)}`),this}containedBy(o,s){return typeof s=="string"?this.url.searchParams.append(o,`cd.${s}`):Array.isArray(s)?this.url.searchParams.append(o,`cd.{${s.join(",")}}`):this.url.searchParams.append(o,`cd.${JSON.stringify(s)}`),this}rangeGt(o,s){return this.url.searchParams.append(o,`sr.${s}`),this}rangeGte(o,s){return this.url.searchParams.append(o,`nxl.${s}`),this}rangeLt(o,s){return this.url.searchParams.append(o,`sl.${s}`),this}rangeLte(o,s){return this.url.searchParams.append(o,`nxr.${s}`),this}rangeAdjacent(o,s){return this.url.searchParams.append(o,`adj.${s}`),this}overlaps(o,s){return typeof s=="string"?this.url.searchParams.append(o,`ov.${s}`):this.url.searchParams.append(o,`ov.{${s.join(",")}}`),this}textSearch(o,s,{config:l,type:u}={}){let h="";u==="plain"?h="pl":u==="phrase"?h="ph":u==="websearch"&&(h="w");const f=l===void 0?"":`(${l})`;return this.url.searchParams.append(o,`${h}fts${f}.${s}`),this}match(o){return Object.entries(o).forEach(([s,l])=>{this.url.searchParams.append(s,`eq.${l}`)}),this}not(o,s,l){return this.url.searchParams.append(o,`not.${s}.${l}`),this}or(o,{foreignTable:s,referencedTable:l=s}={}){const u=l?`${l}.or`:"or";return this.url.searchParams.append(u,`(${o})`),this}filter(o,s,l){return this.url.searchParams.append(o,`${s}.${l}`),this}}return Co.default=n,Co}var uk;function xw(){if(uk)return So;uk=1;var e=So&&So.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(So,"__esModule",{value:!0});const t=e(Rm());class n{constructor(o,{headers:s={},schema:l,fetch:u}){this.url=o,this.headers=new Headers(s),this.schema=l,this.fetch=u}select(o,{head:s=!1,count:l}={}){const u=s?"HEAD":"GET";let h=!1;const f=(o??"*").split("").map(m=>/\s/.test(m)&&!h?"":(m==='"'&&(h=!h),m)).join("");return this.url.searchParams.set("select",f),l&&this.headers.append("Prefer",`count=${l}`),new t.default({method:u,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(o,{count:s,defaultToNull:l=!0}={}){var u;const h="POST";if(s&&this.headers.append("Prefer",`count=${s}`),l||this.headers.append("Prefer","missing=default"),Array.isArray(o)){const f=o.reduce((m,y)=>m.concat(Object.keys(y)),[]);if(f.length>0){const m=[...new Set(f)].map(y=>`"${y}"`);this.url.searchParams.set("columns",m.join(","))}}return new t.default({method:h,url:this.url,headers:this.headers,schema:this.schema,body:o,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch})}upsert(o,{onConflict:s,ignoreDuplicates:l=!1,count:u,defaultToNull:h=!0}={}){var f;const m="POST";if(this.headers.append("Prefer",`resolution=${l?"ignore":"merge"}-duplicates`),s!==void 0&&this.url.searchParams.set("on_conflict",s),u&&this.headers.append("Prefer",`count=${u}`),h||this.headers.append("Prefer","missing=default"),Array.isArray(o)){const y=o.reduce((v,_)=>v.concat(Object.keys(_)),[]);if(y.length>0){const v=[...new Set(y)].map(_=>`"${_}"`);this.url.searchParams.set("columns",v.join(","))}}return new t.default({method:m,url:this.url,headers:this.headers,schema:this.schema,body:o,fetch:(f=this.fetch)!==null&&f!==void 0?f:fetch})}update(o,{count:s}={}){var l;const u="PATCH";return s&&this.headers.append("Prefer",`count=${s}`),new t.default({method:u,url:this.url,headers:this.headers,schema:this.schema,body:o,fetch:(l=this.fetch)!==null&&l!==void 0?l:fetch})}delete({count:o}={}){var s;const l="DELETE";return o&&this.headers.append("Prefer",`count=${o}`),new t.default({method:l,url:this.url,headers:this.headers,schema:this.schema,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}}return So.default=n,So}var dk;function FR(){if(dk)return Po;dk=1;var e=Po&&Po.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Po,"__esModule",{value:!0});const t=e(xw()),n=e(Rm());class a{constructor(s,{headers:l={},schema:u,fetch:h}={}){this.url=s,this.headers=new Headers(l),this.schemaName=u,this.fetch=h}from(s){const l=new URL(`${this.url}/${s}`);return new t.default(l,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(s){return new a(this.url,{headers:this.headers,schema:s,fetch:this.fetch})}rpc(s,l={},{head:u=!1,get:h=!1,count:f}={}){var m;let y;const v=new URL(`${this.url}/rpc/${s}`);let _;u||h?(y=u?"HEAD":"GET",Object.entries(l).filter(([C,S])=>S!==void 0).map(([C,S])=>[C,Array.isArray(S)?`{${S.join(",")}}`:`${S}`]).forEach(([C,S])=>{v.searchParams.append(C,S)})):(y="POST",_=l);const x=new Headers(this.headers);return f&&x.set("Prefer",`count=${f}`),new n.default({method:y,url:v,headers:x,schema:this.schemaName,body:_,fetch:(m=this.fetch)!==null&&m!==void 0?m:fetch})}}return Po.default=a,Po}var hk;function VR(){if(hk)return Xt;hk=1;var e=Xt&&Xt.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.PostgrestError=Xt.PostgrestBuilder=Xt.PostgrestTransformBuilder=Xt.PostgrestFilterBuilder=Xt.PostgrestQueryBuilder=Xt.PostgrestClient=void 0;const t=e(FR());Xt.PostgrestClient=t.default;const n=e(xw());Xt.PostgrestQueryBuilder=n.default;const a=e(Rm());Xt.PostgrestFilterBuilder=a.default;const o=e(ww());Xt.PostgrestTransformBuilder=o.default;const s=e(_w());Xt.PostgrestBuilder=s.default;const l=e(kw());return Xt.PostgrestError=l.default,Xt.default={PostgrestClient:t.default,PostgrestQueryBuilder:n.default,PostgrestFilterBuilder:a.default,PostgrestTransformBuilder:o.default,PostgrestBuilder:s.default,PostgrestError:l.default},Xt}var $R=VR();const HR=b0($R),{PostgrestClient:WR,PostgrestQueryBuilder:_9,PostgrestFilterBuilder:w9,PostgrestTransformBuilder:x9,PostgrestBuilder:P9,PostgrestError:S9}=HR,Ha=Object.create(null);Ha.open="0";Ha.close="1";Ha.ping="2";Ha.pong="3";Ha.message="4";Ha.upgrade="5";Ha.noop="6";const mu=Object.create(null);Object.keys(Ha).forEach(e=>{mu[Ha[e]]=e});const pp={type:"error",data:"parser error"},Pw=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Sw=typeof ArrayBuffer=="function",Cw=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Lm=({type:e,data:t},n,a)=>Pw&&t instanceof Blob?n?a(t):fk(t,a):Sw&&(t instanceof ArrayBuffer||Cw(t))?n?a(t):fk(new Blob([t]),a):a(Ha[e]+(t||"")),fk=(e,t)=>{const n=new FileReader;return n.onload=function(){const a=n.result.split(",")[1];t("b"+(a||""))},n.readAsDataURL(e)};function pk(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Pf;function KR(e,t){if(Pw&&e.data instanceof Blob)return e.data.arrayBuffer().then(pk).then(t);if(Sw&&(e.data instanceof ArrayBuffer||Cw(e.data)))return t(pk(e.data));Lm(e,!1,n=>{Pf||(Pf=new TextEncoder),t(Pf.encode(n))})}const mk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<mk.length;e++)Xs[mk.charCodeAt(e)]=e;const GR=e=>{let t=e.length*.75,n=e.length,a,o=0,s,l,u,h;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),m=new Uint8Array(f);for(a=0;a<n;a+=4)s=Xs[e.charCodeAt(a)],l=Xs[e.charCodeAt(a+1)],u=Xs[e.charCodeAt(a+2)],h=Xs[e.charCodeAt(a+3)],m[o++]=s<<2|l>>4,m[o++]=(l&15)<<4|u>>2,m[o++]=(u&3)<<6|h&63;return f},qR=typeof ArrayBuffer=="function",Dm=(e,t)=>{if(typeof e!="string")return{type:"message",data:Tw(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:YR(e.substring(1),t)}:mu[n]?e.length>1?{type:mu[n],data:e.substring(1)}:{type:mu[n]}:pp},YR=(e,t)=>{if(qR){const n=GR(e);return Tw(n,t)}else return{base64:!0,data:e}},Tw=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,Ew="",ZR=(e,t)=>{const n=e.length,a=new Array(n);let o=0;e.forEach((s,l)=>{Lm(s,!1,u=>{a[l]=u,++o===n&&t(a.join(Ew))})})},XR=(e,t)=>{const n=e.split(Ew),a=[];for(let o=0;o<n.length;o++){const s=Dm(n[o],t);if(a.push(s),s.type==="error")break}return a};function QR(){return new TransformStream({transform(e,t){KR(e,n=>{const a=n.length;let o;if(a<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,a);else if(a<65536){o=new Uint8Array(3);const s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,a)}else{o=new Uint8Array(9);const s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(a))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Sf;function Xc(e){return e.reduce((t,n)=>t+n.length,0)}function Qc(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let a=0;for(let o=0;o<t;o++)n[o]=e[0][a++],a===e[0].length&&(e.shift(),a=0);return e.length&&a<e[0].length&&(e[0]=e[0].slice(a)),n}function JR(e,t){Sf||(Sf=new TextDecoder);const n=[];let a=0,o=-1,s=!1;return new TransformStream({transform(l,u){for(n.push(l);;){if(a===0){if(Xc(n)<1)break;const h=Qc(n,1);s=(h[0]&128)===128,o=h[0]&127,o<126?a=3:o===126?a=1:a=2}else if(a===1){if(Xc(n)<2)break;const h=Qc(n,2);o=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),a=3}else if(a===2){if(Xc(n)<8)break;const h=Qc(n,8),f=new DataView(h.buffer,h.byteOffset,h.length),m=f.getUint32(0);if(m>Math.pow(2,21)-1){u.enqueue(pp);break}o=m*Math.pow(2,32)+f.getUint32(4),a=3}else{if(Xc(n)<o)break;const h=Qc(n,o);u.enqueue(Dm(s?h:Sf.decode(h),t)),a=0}if(o===0||o>e){u.enqueue(pp);break}}}})}const Aw=4;function zt(e){if(e)return e3(e)}function e3(e){for(var t in zt.prototype)e[t]=zt.prototype[t];return e}zt.prototype.on=zt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};zt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};zt.prototype.off=zt.prototype.removeListener=zt.prototype.removeAllListeners=zt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var a,o=0;o<n.length;o++)if(a=n[o],a===t||a.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};zt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(n){n=n.slice(0);for(var a=0,o=n.length;a<o;++a)n[a].apply(this,t)}return this};zt.prototype.emitReserved=zt.prototype.emit;zt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};zt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const bd=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),ea=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),t3="arraybuffer";function Rw(e,...t){return t.reduce((n,a)=>(e.hasOwnProperty(a)&&(n[a]=e[a]),n),{})}const n3=ea.setTimeout,a3=ea.clearTimeout;function kd(e,t){t.useNativeTimers?(e.setTimeoutFn=n3.bind(ea),e.clearTimeoutFn=a3.bind(ea)):(e.setTimeoutFn=ea.setTimeout.bind(ea),e.clearTimeoutFn=ea.clearTimeout.bind(ea))}const r3=1.33;function i3(e){return typeof e=="string"?o3(e):Math.ceil((e.byteLength||e.size)*r3)}function o3(e){let t=0,n=0;for(let a=0,o=e.length;a<o;a++)t=e.charCodeAt(a),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(a++,n+=4);return n}function Lw(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function s3(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function l3(e){let t={},n=e.split("&");for(let a=0,o=n.length;a<o;a++){let s=n[a].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}class c3 extends Error{constructor(t,n,a){super(t),this.description=n,this.context=a,this.type="TransportError"}}class Im extends zt{constructor(t){super(),this.writable=!1,kd(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,a){return super.emitReserved("error",new c3(t,n,a)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Dm(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=s3(t);return n.length?"?"+n:""}}class u3 extends Im{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let a=0;this._polling&&(a++,this.once("pollComplete",function(){--a||n()})),this.writable||(a++,this.once("drain",function(){--a||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=a=>{if(this.readyState==="opening"&&a.type==="open"&&this.onOpen(),a.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(a)};XR(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,ZR(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Lw()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let Dw=!1;try{Dw=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const d3=Dw;function h3(){}class f3 extends u3{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let a=location.port;a||(a=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||a!==t.port}}doWrite(t,n){const a=this.request({method:"POST",data:t});a.on("success",n),a.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,a)=>{this.onError("xhr poll error",n,a)}),this.pollXhr=t}}let Fo=class gu extends zt{constructor(t,n,a){super(),this.createRequest=t,kd(this,a),this._opts=a,this._method=a.method||"GET",this._uri=n,this._data=a.data!==void 0?a.data:null,this._create()}_create(){var t;const n=Rw(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const a=this._xhr=this.createRequest(n);try{a.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&a.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(a),"withCredentials"in a&&(a.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(a.timeout=this._opts.requestTimeout),a.onreadystatechange=()=>{var o;a.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(a.getResponseHeader("set-cookie"))),a.readyState===4&&(a.status===200||a.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof a.status=="number"?a.status:0)},0))},a.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=gu.requestsCount++,gu.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=h3,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete gu.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Fo.requestsCount=0;Fo.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",gk);else if(typeof addEventListener=="function"){const e="onpagehide"in ea?"pagehide":"unload";addEventListener(e,gk,!1)}}function gk(){for(let e in Fo.requests)Fo.requests.hasOwnProperty(e)&&Fo.requests[e].abort()}const p3=(function(){const e=Iw({xdomain:!1});return e&&e.responseType!==null})();class m3 extends f3{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=p3&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Fo(Iw,this.uri(),t)}}function Iw(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||d3))return new XMLHttpRequest}catch{}if(!t)try{return new ea[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Mw=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class g3 extends Im{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,a=Mw?{}:Rw(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(a.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,a)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const a=t[n],o=n===t.length-1;Lm(a,this.supportsBinary,s=>{try{this.doWrite(a,s)}catch{}o&&bd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Lw()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Cf=ea.WebSocket||ea.MozWebSocket;class y3 extends g3{createSocket(t,n,a){return Mw?new Cf(t,n,a):n?new Cf(t,n):new Cf(t)}doWrite(t,n){this.ws.send(n)}}class v3 extends Im{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=JR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),a=t.readable.pipeThrough(n).getReader(),o=QR();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const s=()=>{a.read().then(({done:u,value:h})=>{u||(this.onPacket(h),s())}).catch(u=>{})};s();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const a=t[n],o=n===t.length-1;this._writer.write(a).then(()=>{o&&bd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const b3={websocket:y3,webtransport:v3,polling:m3},k3=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,_3=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function mp(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),a=e.indexOf("]");n!=-1&&a!=-1&&(e=e.substring(0,n)+e.substring(n,a).replace(/:/g,";")+e.substring(a,e.length));let o=k3.exec(e||""),s={},l=14;for(;l--;)s[_3[l]]=o[l]||"";return n!=-1&&a!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=w3(s,s.path),s.queryKey=x3(s,s.query),s}function w3(e,t){const n=/\/{2,9}/g,a=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&a.splice(0,1),t.slice(-1)=="/"&&a.splice(a.length-1,1),a}function x3(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,o,s){o&&(n[o]=s)}),n}const gp=typeof addEventListener=="function"&&typeof removeEventListener=="function",yu=[];gp&&addEventListener("offline",()=>{yu.forEach(e=>e())},!1);class Xr extends zt{constructor(t,n){if(super(),this.binaryType=t3,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const a=mp(t);n.hostname=a.host,n.secure=a.protocol==="https"||a.protocol==="wss",n.port=a.port,a.query&&(n.query=a.query)}else n.host&&(n.hostname=mp(n.host).host);kd(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(a=>{const o=a.prototype.name;this.transports.push(o),this._transportsByName[o]=a}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=l3(this.opts.query)),gp&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},yu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Aw,n.transport=t,this.id&&(n.sid=this.id);const a=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](a)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Xr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Xr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let a=0;a<this.writeBuffer.length;a++){const o=this.writeBuffer[a].data;if(o&&(n+=i3(o)),a>0&&n>this._maxPayload)return this.writeBuffer.slice(0,a);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,bd(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,a){return this._sendPacket("message",t,n,a),this}send(t,n,a){return this._sendPacket("message",t,n,a),this}_sendPacket(t,n,a,o){if(typeof n=="function"&&(o=n,n=void 0),typeof a=="function"&&(o=a,a=null),this.readyState==="closing"||this.readyState==="closed")return;a=a||{},a.compress=a.compress!==!1;const s={type:t,data:n,options:a};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},a=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?a():t()}):this.upgrading?a():t()),this}_onError(t){if(Xr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),gp&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const a=yu.indexOf(this._offlineEventListener);a!==-1&&yu.splice(a,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Xr.protocol=Aw;class P3 extends Xr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),a=!1;Xr.priorWebsocketSuccess=!1;const o=()=>{a||(n.send([{type:"ping",data:"probe"}]),n.once("packet",y=>{if(!a)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Xr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{a||this.readyState!=="closed"&&(m(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=n.name,this.emitReserved("upgradeError",v)}}))};function s(){a||(a=!0,m(),n.close(),n=null)}const l=y=>{const v=new Error("probe error: "+y);v.transport=n.name,s(),this.emitReserved("upgradeError",v)};function u(){l("transport closed")}function h(){l("socket closed")}function f(y){n&&y.name!==n.name&&s()}const m=()=>{n.removeListener("open",o),n.removeListener("error",l),n.removeListener("close",u),this.off("close",h),this.off("upgrading",f)};n.once("open",o),n.once("error",l),n.once("close",u),this.once("close",h),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{a||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let a=0;a<t.length;a++)~this.transports.indexOf(t[a])&&n.push(t[a]);return n}}let S3=class extends P3{constructor(t,n={}){const a=typeof t=="object"?t:n;(!a.transports||a.transports&&typeof a.transports[0]=="string")&&(a.transports=(a.transports||["polling","websocket","webtransport"]).map(o=>b3[o]).filter(o=>!!o)),super(t,a)}};function C3(e,t="",n){let a=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),a=mp(e)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";const s=a.host.indexOf(":")!==-1?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+s+":"+a.port+t,a.href=a.protocol+"://"+s+(n&&n.port===a.port?"":":"+a.port),a}const T3=typeof ArrayBuffer=="function",E3=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Nw=Object.prototype.toString,A3=typeof Blob=="function"||typeof Blob<"u"&&Nw.call(Blob)==="[object BlobConstructor]",R3=typeof File=="function"||typeof File<"u"&&Nw.call(File)==="[object FileConstructor]";function Mm(e){return T3&&(e instanceof ArrayBuffer||E3(e))||A3&&e instanceof Blob||R3&&e instanceof File}function vu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,a=e.length;n<a;n++)if(vu(e[n]))return!0;return!1}if(Mm(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return vu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&vu(e[n]))return!0;return!1}function L3(e){const t=[],n=e.data,a=e;return a.data=yp(n,t),a.attachments=t.length,{packet:a,buffers:t}}function yp(e,t){if(!e)return e;if(Mm(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let a=0;a<e.length;a++)n[a]=yp(e[a],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=yp(e[a],t));return n}return e}function D3(e,t){return e.data=vp(e.data,t),delete e.attachments,e}function vp(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=vp(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=vp(e[n],t));return e}const I3=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var it;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(it||(it={}));class M3{constructor(t){this.replacer=t}encode(t){return(t.type===it.EVENT||t.type===it.ACK)&&vu(t)?this.encodeAsBinary({type:t.type===it.EVENT?it.BINARY_EVENT:it.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===it.BINARY_EVENT||t.type===it.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=L3(t),a=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(a),o}}class Nm extends zt{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const a=n.type===it.BINARY_EVENT;a||n.type===it.BINARY_ACK?(n.type=a?it.EVENT:it.ACK,this.reconstructor=new N3(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Mm(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const a={type:Number(t.charAt(0))};if(it[a.type]===void 0)throw new Error("unknown packet type "+a.type);if(a.type===it.BINARY_EVENT||a.type===it.BINARY_ACK){const s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(s,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const u=Number(l);if(!O3(u)||u<0)throw new Error("Illegal attachments");if(u>this.opts.maxAttachments)throw new Error("too many attachments");a.attachments=u}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););a.nsp=t.substring(s,n)}else a.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const s=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}a.id=Number(t.substring(s,n+1))}if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(Nm.isPayloadValid(a.type,s))a.data=s;else throw new Error("invalid payload")}return a}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case it.CONNECT:return yk(n);case it.DISCONNECT:return n===void 0;case it.CONNECT_ERROR:return typeof n=="string"||yk(n);case it.EVENT:case it.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&I3.indexOf(n[0])===-1);case it.ACK:case it.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class N3{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=D3(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const O3=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function yk(e){return Object.prototype.toString.call(e)==="[object Object]"}const j3=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Nm,Encoder:M3,get PacketType(){return it}},Symbol.toStringTag,{value:"Module"}));function _a(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const U3=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ow extends zt{constructor(t,n,a){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,a&&a.auth&&(this.auth=a.auth),this._opts=Object.assign({},a),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[_a(t,"open",this.onopen.bind(this)),_a(t,"packet",this.onpacket.bind(this)),_a(t,"error",this.onerror.bind(this)),_a(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var a,o,s;if(U3.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const l={type:it.EVENT,data:n};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const m=this.ids++,y=n.pop();this._registerAckCallback(m,y),l.id=m}const u=(o=(a=this.io.engine)===null||a===void 0?void 0:a.transport)===null||o===void 0?void 0:o.writable,h=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!u||(h?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),this.flags={},this}_registerAckCallback(t,n){var a;const o=(a=this.flags.timeout)!==null&&a!==void 0?a:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let u=0;u<this.sendBuffer.length;u++)this.sendBuffer[u].id===t&&this.sendBuffer.splice(u,1);n.call(this,new Error("operation has timed out"))},o),l=(...u)=>{this.io.clearTimeoutFn(s),n.apply(this,u)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((a,o)=>{const s=(l,u)=>l?o(l):a(u);s.withError=!0,n.push(s),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const a={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...s)=>(this._queue[0],o!==null?a.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...s)),a.pending=!1,this._drainQueue())),this._queue.push(a),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:it.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(a=>String(a.id)===t)){const a=this.acks[t];delete this.acks[t],a.withError&&a.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case it.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case it.EVENT:case it.BINARY_EVENT:this.onevent(t);break;case it.ACK:case it.BINARY_ACK:this.onack(t);break;case it.DISCONNECT:this.ondisconnect();break;case it.CONNECT_ERROR:this.destroy();const a=new Error(t.data.message);a.data=t.data.data,this.emitReserved("connect_error",a);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const a of n)a.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let a=!1;return function(...o){a||(a=!0,n.packet({type:it.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:it.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let a=0;a<n.length;a++)if(t===n[a])return n.splice(a,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let a=0;a<n.length;a++)if(t===n[a])return n.splice(a,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const a of n)a.apply(this,t.data)}}}function Qo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Qo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Qo.prototype.reset=function(){this.attempts=0};Qo.prototype.setMin=function(e){this.ms=e};Qo.prototype.setMax=function(e){this.max=e};Qo.prototype.setJitter=function(e){this.jitter=e};class bp extends zt{constructor(t,n){var a;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,kd(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((a=n.randomizationFactor)!==null&&a!==void 0?a:.5),this.backoff=new Qo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||j3;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new S3(this.uri,this.opts);const n=this.engine,a=this;this._readyState="opening",this.skipReconnect=!1;const o=_a(n,"open",function(){a.onopen(),t&&t()}),s=u=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",u),t?t(u):this.maybeReconnectOnOpen()},l=_a(n,"error",s);if(this._timeout!==!1){const u=this._timeout,h=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),n.close()},u);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(o),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(_a(t,"ping",this.onping.bind(this)),_a(t,"data",this.ondata.bind(this)),_a(t,"error",this.onerror.bind(this)),_a(t,"close",this.onclose.bind(this)),_a(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){bd(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let a=this.nsps[t];return a?this._autoConnect&&!a.active&&a.connect():(a=new Ow(this,t,n),this.nsps[t]=a),a}_destroy(t){const n=Object.keys(this.nsps);for(const a of n)if(this.nsps[a].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let a=0;a<n.length;a++)this.engine.write(n[a],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var a;this.cleanup(),(a=this.engine)===null||a===void 0||a.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const a=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const $s={};function bu(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=C3(e,t.path||"/socket.io"),a=n.source,o=n.id,s=n.path,l=$s[o]&&s in $s[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let h;return u?h=new bp(a,t):($s[o]||($s[o]=new bp(a,t)),h=$s[o]),n.query&&!t.query&&(t.query=n.queryKey),h.socket(n.path,t)}Object.assign(bu,{Manager:bp,Socket:Ow,io:bu,connect:bu});var qe=class jw extends Error{constructor(t,n,a,o){super(t),this.name="InsForgeError",this.statusCode=n,this.error=a,this.nextActions=o}static fromApiError(t){return new jw(t.message,t.statusCode,t.error,t.nextActions)}},B3=["authorization","x-api-key","cookie","set-cookie"],z3=["password","token","accesstoken","refreshtoken","authorization","secret","apikey","api_key","email","ssn","creditcard","credit_card"];function F3(e){const t={};for(const[n,a]of Object.entries(e))B3.includes(n.toLowerCase())?t[n]="***REDACTED***":t[n]=a;return t}function tl(e){if(e==null)return e;if(typeof e=="string")try{const t=JSON.parse(e);return tl(t)}catch{return e}if(Array.isArray(e))return e.map(tl);if(typeof e=="object"){const t={};for(const[n,a]of Object.entries(e))z3.includes(n.toLowerCase().replace(/[-_]/g,""))?t[n]="***REDACTED***":t[n]=tl(a);return t}return e}function vk(e){if(e==null)return"";if(typeof e=="string")try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}if(typeof FormData<"u"&&e instanceof FormData)return"[FormData]";try{return JSON.stringify(e,null,2)}catch{return"[Unserializable body]"}}var Uw=class{constructor(e){typeof e=="function"?(this.enabled=!0,this.customLog=e):(this.enabled=!!e,this.customLog=null)}log(e,...t){if(!this.enabled)return;const n=`[InsForge Debug] ${e}`;this.customLog?this.customLog(n,...t):console.log(n,...t)}warn(e,...t){if(!this.enabled)return;const n=`[InsForge Debug] ${e}`;this.customLog?this.customLog(n,...t):console.warn(n,...t)}error(e,...t){if(!this.enabled)return;const n=`[InsForge Debug] ${e}`;this.customLog?this.customLog(n,...t):console.error(n,...t)}logRequest(e,t,n,a){if(!this.enabled)return;const o=[`→ ${e} ${t}`];n&&Object.keys(n).length>0&&o.push(` Headers: ${JSON.stringify(F3(n))}`);const s=vk(tl(a));if(s){const l=s.length>1e3?s.slice(0,1e3)+"... [truncated]":s;o.push(` Body: ${l}`)}this.log(o.join(`
39
+ `))}logResponse(e,t,n,a,o){if(!this.enabled)return;const s=[`← ${e} ${t} ${n} (${a}ms)`],l=vk(tl(o));if(l){const u=l.length>1e3?l.slice(0,1e3)+"... [truncated]":l;s.push(` Body: ${u}`)}n>=400?this.error(s.join(`
40
+ `)):this.log(s.join(`
41
+ `))}},Om="insforge_csrf_token";function Bw(){if(typeof document>"u")return null;const e=document.cookie.split(";").find(t=>t.trim().startsWith(`${Om}=`));return e&&e.split("=")[1]||null}function zw(e){if(typeof document>"u")return;const t=10080*60,n=typeof window<"u"&&window.location.protocol==="https:"?"; Secure":"";document.cookie=`${Om}=${encodeURIComponent(e)}; path=/; max-age=${t}; SameSite=Lax${n}`}function Fw(){if(typeof document>"u")return;const e=typeof window<"u"&&window.location.protocol==="https:"?"; Secure":"";document.cookie=`${Om}=; path=/; max-age=0; SameSite=Lax${e}`}var Vw=class{constructor(){this.accessToken=null,this.user=null,this.onTokenChange=null}saveSession(e){const t=e.accessToken!==this.accessToken;this.accessToken=e.accessToken,this.user=e.user,t&&this.onTokenChange&&this.onTokenChange()}getSession(){return!this.accessToken||!this.user?null:{accessToken:this.accessToken,user:this.user}}getAccessToken(){return this.accessToken}setAccessToken(e){const t=e!==this.accessToken;this.accessToken=e,t&&this.onTokenChange&&this.onTokenChange()}getUser(){return this.user}setUser(e){this.user=e}clearSession(){const e=this.accessToken!==null;this.accessToken=null,this.user=null,e&&this.onTokenChange&&this.onTokenChange()}},V3=new Set([500,502,503,504]),$3=new Set(["GET","HEAD","PUT","DELETE","OPTIONS"]),H3=class{constructor(e,t,n){if(this.userToken=null,this.autoRefreshToken=!0,this.isRefreshing=!1,this.refreshPromise=null,this.refreshToken=null,this.baseUrl=e.baseUrl||"http://localhost:7130",this.autoRefreshToken=e.autoRefreshToken??!0,this.fetch=e.fetch||(globalThis.fetch?globalThis.fetch.bind(globalThis):void 0),this.anonKey=e.anonKey,this.defaultHeaders={...e.headers},this.tokenManager=t??new Vw,this.logger=n||new Uw(!1),this.timeout=e.timeout??3e4,this.retryCount=e.retryCount??3,this.retryDelay=e.retryDelay??500,!this.fetch)throw new Error("Fetch is not available. Please provide a fetch implementation in the config.")}buildUrl(e,t){const n=new URL(e,this.baseUrl);return t&&Object.entries(t).forEach(([a,o])=>{if(a==="select"){let s=o.replace(/\s+/g," ").trim();s=s.replace(/\s*\(\s*/g,"(").replace(/\s*\)\s*/g,")").replace(/\(\s+/g,"(").replace(/\s+\)/g,")").replace(/,\s+(?=[^()]*\))/g,","),n.searchParams.append(a,s)}else n.searchParams.append(a,o)}),n.toString()}isRetryableStatus(e){return V3.has(e)}computeRetryDelay(e){const n=this.retryDelay*Math.pow(2,e-1)*(.85+Math.random()*.3);return Math.round(n)}async handleRequest(e,t,n={}){const{params:a,headers:o={},body:s,signal:l,...u}=n,h=this.buildUrl(t,a),f=Date.now(),y=$3.has(e.toUpperCase())||n.idempotent===!0?this.retryCount:0,v={...this.defaultHeaders},_=this.userToken||this.anonKey;_&&(v.Authorization=`Bearer ${_}`);let x;s!==void 0&&(typeof FormData<"u"&&s instanceof FormData?x=s:(e!=="GET"&&(v["Content-Type"]="application/json;charset=UTF-8"),x=JSON.stringify(s))),o instanceof Headers?o.forEach((S,M)=>{v[M]=S}):Array.isArray(o)?o.forEach(([S,M])=>{v[S]=M}):Object.assign(v,o),this.logger.logRequest(e,h,v,x);let C;for(let S=0;S<=y;S++){if(S>0){const A=this.computeRetryDelay(S);if(this.logger.warn(`Retry ${S}/${y} for ${e} ${h} in ${A}ms`),l?.aborted)throw l.reason;await new Promise((E,B)=>{const $=()=>{clearTimeout(V),B(l.reason)},V=setTimeout(()=>{l&&l.removeEventListener("abort",$),E()},A);l&&l.addEventListener("abort",$,{once:!0})})}let M,R;if((this.timeout>0||l)&&(M=new AbortController,this.timeout>0&&(R=setTimeout(()=>M.abort(),this.timeout)),l))if(l.aborted)M.abort(l.reason);else{const A=()=>M.abort(l.reason);l.addEventListener("abort",A,{once:!0}),M.signal.addEventListener("abort",()=>{l.removeEventListener("abort",A)},{once:!0})}try{const A=await this.fetch(h,{method:e,headers:v,body:x,...u,...M?{signal:M.signal}:{}});if(this.isRetryableStatus(A.status)&&S<y){R!==void 0&&clearTimeout(R),await A.body?.cancel(),C=new qe(`Server error: ${A.status} ${A.statusText}`,A.status,"SERVER_ERROR");continue}if(A.status===204){R!==void 0&&clearTimeout(R);return}let E;const B=A.headers.get("content-type");try{B?.includes("json")?E=await A.json():E=await A.text()}catch($){throw R!==void 0&&clearTimeout(R),new qe(`Failed to parse response body: ${$?.message||"Unknown error"}`,A.status,A.ok?"PARSE_ERROR":"REQUEST_FAILED")}if(R!==void 0&&clearTimeout(R),!A.ok){if(this.logger.logResponse(e,h,A.status,Date.now()-f,E),E&&typeof E=="object"&&"error"in E){!E.statusCode&&!E.status&&(E.statusCode=A.status);const $=qe.fromApiError(E);throw Object.keys(E).forEach(V=>{V!=="error"&&V!=="message"&&V!=="statusCode"&&($[V]=E[V])}),$}throw new qe(`Request failed: ${A.statusText}`,A.status,"REQUEST_FAILED")}return this.logger.logResponse(e,h,A.status,Date.now()-f,E),E}catch(A){if(R!==void 0&&clearTimeout(R),A?.name==="AbortError")throw M&&M.signal.aborted&&this.timeout>0&&!l?.aborted?new qe(`Request timed out after ${this.timeout}ms`,408,"REQUEST_TIMEOUT"):A;if(A instanceof qe)throw A;if(S<y){C=A;continue}throw new qe(`Network request failed: ${A?.message||"Unknown error"}`,0,"NETWORK_ERROR")}}throw C||new qe("Request failed after all retry attempts",0,"NETWORK_ERROR")}async request(e,t,n={}){try{return await this.handleRequest(e,t,{...n})}catch(a){if(a instanceof qe&&a.statusCode===401&&a.error==="INVALID_TOKEN"&&this.autoRefreshToken)try{const o=await this.handleTokenRefresh();return this.setAuthToken(o.accessToken),this.tokenManager.saveSession(o),o.csrfToken&&zw(o.csrfToken),o.refreshToken&&this.setRefreshToken(o.refreshToken),await this.handleRequest(e,t,{...n})}catch(o){throw this.tokenManager.clearSession(),this.userToken=null,this.refreshToken=null,Fw(),o}throw a}}get(e,t){return this.request("GET",e,t)}post(e,t,n){return this.request("POST",e,{...n,body:t})}put(e,t,n){return this.request("PUT",e,{...n,body:t})}patch(e,t,n){return this.request("PATCH",e,{...n,body:t})}delete(e,t){return this.request("DELETE",e,t)}setAuthToken(e){this.userToken=e}setRefreshToken(e){this.refreshToken=e}getHeaders(){const e={...this.defaultHeaders},t=this.userToken||this.anonKey;return t&&(e.Authorization=`Bearer ${t}`),e}async handleTokenRefresh(){return this.isRefreshing?this.refreshPromise:(this.isRefreshing=!0,this.refreshPromise=(async()=>{try{const e=Bw(),t=this.refreshToken?{refreshToken:this.refreshToken}:void 0;return await this.handleRequest("POST","/api/auth/sessions/current",{body:t,headers:e?{"X-CSRF-Token":e}:{},credentials:"include"})}finally{this.isRefreshing=!1,this.refreshPromise=null}})(),this.refreshPromise)}},kp="insforge_pkce_verifier";function $w(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function W3(){const e=new Uint8Array(32);return crypto.getRandomValues(e),$w(e)}async function K3(e){const n=new TextEncoder().encode(e),a=await crypto.subtle.digest("SHA-256",n);return $w(new Uint8Array(a))}function G3(e){typeof sessionStorage<"u"&&sessionStorage.setItem(kp,e)}function q3(){if(typeof sessionStorage>"u")return null;const e=sessionStorage.getItem(kp);return e&&sessionStorage.removeItem(kp),e}function Vn(e,t){return e instanceof qe?{data:null,error:e}:{data:null,error:new qe(e instanceof Error?e.message:t,500,"UNEXPECTED_ERROR")}}function bk(...e){if(typeof window>"u")return;const t=new URL(window.location.href);e.forEach(n=>t.searchParams.delete(n)),window.history.replaceState({},document.title,t.toString())}var Y3=class{constructor(e,t,n={}){this.http=e,this.tokenManager=t,this.options=n,this.authCallbackHandled=this.detectAuthCallback()}isServerMode(){return!!this.options.isServerMode}saveSessionFromResponse(e){if(!e.accessToken||!e.user)return!1;const t={accessToken:e.accessToken,user:e.user};return!this.isServerMode()&&e.csrfToken&&zw(e.csrfToken),this.isServerMode()||this.tokenManager.saveSession(t),this.http.setAuthToken(e.accessToken),this.http.setRefreshToken(e.refreshToken??null),!0}async detectAuthCallback(){if(!(this.isServerMode()||typeof window>"u"))try{const e=new URLSearchParams(window.location.search),t=e.get("error");if(t){bk("error"),console.debug("OAuth callback error:",t);return}const n=e.get("insforge_code");if(n){bk("insforge_code");const{error:a}=await this.exchangeOAuthCode(n);a&&console.debug("OAuth code exchange failed:",a.message);return}}catch(e){console.debug("OAuth callback detection skipped:",e)}}async signUp(e){try{const t=await this.http.post(this.isServerMode()?"/api/auth/users?client_type=mobile":"/api/auth/users",e,{credentials:"include"});return t.accessToken&&t.user&&this.saveSessionFromResponse(t),t.refreshToken&&this.http.setRefreshToken(t.refreshToken),{data:t,error:null}}catch(t){return Vn(t,"An unexpected error occurred during sign up")}}async signInWithPassword(e){try{const t=await this.http.post(this.isServerMode()?"/api/auth/sessions?client_type=mobile":"/api/auth/sessions",e,{credentials:"include"});return this.saveSessionFromResponse(t),t.refreshToken&&this.http.setRefreshToken(t.refreshToken),{data:t,error:null}}catch(t){return Vn(t,"An unexpected error occurred during sign in")}}async signOut(){try{try{await this.http.post(this.isServerMode()?"/api/auth/logout?client_type=mobile":"/api/auth/logout",void 0,{credentials:"include"})}catch{}return this.tokenManager.clearSession(),this.http.setAuthToken(null),this.http.setRefreshToken(null),this.isServerMode()||Fw(),{error:null}}catch{return{error:new qe("Failed to sign out",500,"SIGNOUT_ERROR")}}}async signInWithOAuth(e){try{const{provider:t,redirectTo:n,skipBrowserRedirect:a}=e,o=encodeURIComponent(t.toLowerCase()),s=W3(),l=await K3(s);G3(s);const u={code_challenge:l};n&&(u.redirect_uri=n);const f=vd.options.includes(o)?`/api/auth/oauth/${o}`:`/api/auth/oauth/custom/${o}`,m=await this.http.get(f,{params:u});return!this.isServerMode()&&typeof window<"u"&&!a?(window.location.href=m.authUrl,{data:{},error:null}):{data:{url:m.authUrl,provider:o,codeVerifier:s},error:null}}catch(t){return t instanceof qe?{data:{},error:t}:{data:{},error:new qe("An unexpected error occurred during OAuth initialization",500,"UNEXPECTED_ERROR")}}}async exchangeOAuthCode(e,t){try{const n=t??q3();if(!n)return{data:null,error:new qe("PKCE code verifier not found. Ensure signInWithOAuth was called in the same browser session.",400,"PKCE_VERIFIER_MISSING")};const a={code:e,code_verifier:n},o=await this.http.post(this.isServerMode()?"/api/auth/oauth/exchange?client_type=mobile":"/api/auth/oauth/exchange",a,{credentials:"include"});return this.saveSessionFromResponse(o),{data:o,error:null}}catch(n){return Vn(n,"An unexpected error occurred during OAuth code exchange")}}async signInWithIdToken(e){try{const{provider:t,token:n}=e,a=await this.http.post("/api/auth/id-token?client_type=mobile",{provider:t,token:n},{credentials:"include"});return this.saveSessionFromResponse(a),a.refreshToken&&this.http.setRefreshToken(a.refreshToken),{data:a,error:null}}catch(t){return Vn(t,"An unexpected error occurred during ID token sign in")}}async refreshSession(e){try{if(this.isServerMode()&&!e?.refreshToken)return{data:null,error:new qe("refreshToken is required when refreshing session in server mode",400,"REFRESH_TOKEN_REQUIRED")};const t=this.isServerMode()?null:Bw(),n=await this.http.post(this.isServerMode()?"/api/auth/refresh?client_type=mobile":"/api/auth/refresh",this.isServerMode()?{refresh_token:e?.refreshToken}:void 0,{headers:t?{"X-CSRF-Token":t}:{},credentials:"include"});return n.accessToken&&this.saveSessionFromResponse(n),{data:n,error:null}}catch(t){return Vn(t,"An unexpected error occurred during session refresh")}}async getCurrentUser(){await this.authCallbackHandled;try{if(this.isServerMode()){const t=this.tokenManager.getAccessToken();return t?(this.http.setAuthToken(t),{data:{user:(await this.http.get("/api/auth/sessions/current")).user??null},error:null}):{data:{user:null},error:null}}const e=this.tokenManager.getSession();if(e)return this.http.setAuthToken(e.accessToken),{data:{user:e.user},error:null};if(typeof window<"u"){const{data:t,error:n}=await this.refreshSession();if(n)return{data:{user:null},error:n};if(t?.accessToken)return{data:{user:t.user??null},error:null}}return{data:{user:null},error:null}}catch(e){return e instanceof qe?{data:{user:null},error:e}:{data:{user:null},error:new qe("An unexpected error occurred while getting user",500,"UNEXPECTED_ERROR")}}}async getProfile(e){try{return{data:await this.http.get(`/api/auth/profiles/${e}`),error:null}}catch(t){return Vn(t,"An unexpected error occurred while fetching user profile")}}async setProfile(e){try{const t=await this.http.patch("/api/auth/profiles/current",{profile:e}),n=this.tokenManager.getUser();return!this.isServerMode()&&n&&t.profile!==void 0&&this.tokenManager.setUser({...n,profile:t.profile}),{data:t,error:null}}catch(t){return Vn(t,"An unexpected error occurred while updating user profile")}}async resendVerificationEmail(e){try{return{data:await this.http.post("/api/auth/email/send-verification",e),error:null}}catch(t){return Vn(t,"An unexpected error occurred while sending verification email")}}async verifyEmail(e){try{const t=await this.http.post(this.isServerMode()?"/api/auth/email/verify?client_type=mobile":"/api/auth/email/verify",e,{credentials:"include"});return this.saveSessionFromResponse(t),t.refreshToken&&this.http.setRefreshToken(t.refreshToken),{data:t,error:null}}catch(t){return Vn(t,"An unexpected error occurred while verifying email")}}async sendResetPasswordEmail(e){try{return{data:await this.http.post("/api/auth/email/send-reset-password",e),error:null}}catch(t){return Vn(t,"An unexpected error occurred while sending password reset email")}}async exchangeResetPasswordToken(e){try{return{data:await this.http.post("/api/auth/email/exchange-reset-password-token",e),error:null}}catch(t){return Vn(t,"An unexpected error occurred while verifying reset code")}}async resetPassword(e){try{return{data:await this.http.post("/api/auth/email/reset-password",e),error:null}}catch(t){return Vn(t,"An unexpected error occurred while resetting password")}}async getPublicAuthConfig(){try{return{data:await this.http.get("/api/auth/public-config"),error:null}}catch(e){return Vn(e,"An unexpected error occurred while fetching auth configuration")}}};function Z3(e,t){return async(n,a)=>{const o=typeof n=="string"?n:n.toString(),s=new URL(o),l=s.pathname.slice(1),u=l.match(/^rpc\/(.+)$/),h=u?`/api/database/rpc/${u[1]}`:`/api/database/records/${l}`,f=`${e.baseUrl}${h}${s.search}`,m=t.getAccessToken(),y=e.getHeaders(),v=m||y.Authorization?.replace("Bearer ",""),_=new Headers(a?.headers);return v&&!_.has("Authorization")&&_.set("Authorization",`Bearer ${v}`),await fetch(f,{...a,headers:_})}}var X3=class{constructor(e,t){this.postgrest=new WR("http://dummy",{fetch:Z3(e,t),headers:{}})}from(e){return this.postgrest.from(e)}rpc(e,t,n){return this.postgrest.rpc(e,t,n)}},Q3=class{constructor(e,t){this.bucketName=e,this.http=t}async upload(e,t){try{const n=await this.http.post(`/api/storage/buckets/${this.bucketName}/upload-strategy`,{filename:e,contentType:t.type||"application/octet-stream",size:t.size});if(n.method==="presigned")return await this.uploadWithPresignedUrl(n,t);if(n.method==="direct"){const a=new FormData;return a.append("file",t),{data:await this.http.request("PUT",`/api/storage/buckets/${this.bucketName}/objects/${encodeURIComponent(e)}`,{body:a,headers:{}}),error:null}}throw new qe(`Unsupported upload method: ${n.method}`,500,"STORAGE_ERROR")}catch(n){return{data:null,error:n instanceof qe?n:new qe("Upload failed",500,"STORAGE_ERROR")}}}async uploadAuto(e){try{const t=e instanceof File?e.name:"file",n=await this.http.post(`/api/storage/buckets/${this.bucketName}/upload-strategy`,{filename:t,contentType:e.type||"application/octet-stream",size:e.size});if(n.method==="presigned")return await this.uploadWithPresignedUrl(n,e);if(n.method==="direct"){const a=new FormData;return a.append("file",e),{data:await this.http.request("POST",`/api/storage/buckets/${this.bucketName}/objects`,{body:a,headers:{}}),error:null}}throw new qe(`Unsupported upload method: ${n.method}`,500,"STORAGE_ERROR")}catch(t){return{data:null,error:t instanceof qe?t:new qe("Upload failed",500,"STORAGE_ERROR")}}}async uploadWithPresignedUrl(e,t){try{const n=new FormData;e.fields&&Object.entries(e.fields).forEach(([o,s])=>{n.append(o,s)}),n.append("file",t);const a=await fetch(e.uploadUrl,{method:"POST",body:n});if(!a.ok)throw new qe(`Upload to storage failed: ${a.statusText}`,a.status,"STORAGE_ERROR");return e.confirmRequired&&e.confirmUrl?{data:await this.http.post(e.confirmUrl,{size:t.size,contentType:t.type||"application/octet-stream"}),error:null}:{data:{key:e.key,bucket:this.bucketName,size:t.size,mimeType:t.type||"application/octet-stream",uploadedAt:new Date().toISOString(),url:this.getPublicUrl(e.key)},error:null}}catch(n){throw n instanceof qe?n:new qe("Presigned upload failed",500,"STORAGE_ERROR")}}async download(e){try{const t=await this.http.post(`/api/storage/buckets/${this.bucketName}/objects/${encodeURIComponent(e)}/download-strategy`,{expiresIn:3600}),n=t.url,a={};t.method==="direct"&&Object.assign(a,this.http.getHeaders());const o=await fetch(n,{method:"GET",headers:a});if(!o.ok)try{const l=await o.json();throw qe.fromApiError(l)}catch{throw new qe(`Download failed: ${o.statusText}`,o.status,"STORAGE_ERROR")}return{data:await o.blob(),error:null}}catch(t){return{data:null,error:t instanceof qe?t:new qe("Download failed",500,"STORAGE_ERROR")}}}getPublicUrl(e){return`${this.http.baseUrl}/api/storage/buckets/${this.bucketName}/objects/${encodeURIComponent(e)}`}async list(e){try{const t={};return e?.prefix&&(t.prefix=e.prefix),e?.search&&(t.search=e.search),e?.limit&&(t.limit=e.limit.toString()),e?.offset&&(t.offset=e.offset.toString()),{data:await this.http.get(`/api/storage/buckets/${this.bucketName}/objects`,{params:t}),error:null}}catch(t){return{data:null,error:t instanceof qe?t:new qe("List failed",500,"STORAGE_ERROR")}}}async remove(e){try{return{data:await this.http.delete(`/api/storage/buckets/${this.bucketName}/objects/${encodeURIComponent(e)}`),error:null}}catch(t){return{data:null,error:t instanceof qe?t:new qe("Delete failed",500,"STORAGE_ERROR")}}}},J3=class{constructor(e){this.http=e}from(e){return new Q3(e,this.http)}},eL=class{constructor(e){this.http=e,this.chat=new tL(e),this.images=new rL(e),this.embeddings=new aL(e)}},tL=class{constructor(e){this.completions=new nL(e)}},nL=class{constructor(e){this.http=e}async create(e){const t={model:e.model,messages:e.messages,temperature:e.temperature,maxTokens:e.maxTokens,topP:e.topP,stream:e.stream,webSearch:e.webSearch,fileParser:e.fileParser,thinking:e.thinking,tools:e.tools,toolChoice:e.toolChoice,parallelToolCalls:e.parallelToolCalls};if(e.stream){const o=this.http.getHeaders();o["Content-Type"]="application/json";const s=await this.http.fetch(`${this.http.baseUrl}/api/ai/chat/completion`,{method:"POST",headers:o,body:JSON.stringify(t)});if(!s.ok){const l=await s.json();throw new Error(l.error||"Stream request failed")}return this.parseSSEStream(s,e.model)}const n=await this.http.post("/api/ai/chat/completion",t),a=n.text||"";return{id:`chatcmpl-${Date.now()}`,object:"chat.completion",created:Math.floor(Date.now()/1e3),model:n.metadata?.model,choices:[{index:0,message:{role:"assistant",content:a,...n.tool_calls?.length&&{tool_calls:n.tool_calls},...n.annotations?.length&&{annotations:n.annotations}},finish_reason:n.tool_calls?.length?"tool_calls":"stop"}],usage:n.metadata?.usage||{prompt_tokens:0,completion_tokens:0,total_tokens:0}}}async*parseSSEStream(e,t){const n=e.body.getReader(),a=new TextDecoder;let o="";try{for(;;){const{done:s,value:l}=await n.read();if(s)break;o+=a.decode(l,{stream:!0});const u=o.split(`
42
+ `);o=u.pop()||"";for(const h of u)if(h.startsWith("data: ")){const f=h.slice(6).trim();if(f)try{const m=JSON.parse(f);if((m.chunk||m.content)&&(yield{id:`chatcmpl-${Date.now()}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:t,choices:[{index:0,delta:{content:m.chunk||m.content},finish_reason:null}]}),m.tool_calls?.length&&(yield{id:`chatcmpl-${Date.now()}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:t,choices:[{index:0,delta:{tool_calls:m.tool_calls},finish_reason:"tool_calls"}]}),m.done){n.releaseLock();return}}catch{console.warn("Failed to parse SSE data:",f)}}}}finally{n.releaseLock()}}},aL=class{constructor(e){this.http=e}async create(e){const t=await this.http.post("/api/ai/embeddings",e);return{object:t.object,data:t.data,model:t.metadata?.model,usage:t.metadata?.usage?{prompt_tokens:t.metadata.usage.promptTokens||0,total_tokens:t.metadata.usage.totalTokens||0}:{prompt_tokens:0,total_tokens:0}}}},rL=class{constructor(e){this.http=e}async generate(e){const t=await this.http.post("/api/ai/image/generation",e);let n=[];return t.images&&t.images.length>0?n=t.images.map(a=>({b64_json:a.imageUrl.replace(/^data:image\/\w+;base64,/,""),content:t.text})):t.text&&(n=[{content:t.text}]),{created:Math.floor(Date.now()/1e3),data:n,...t.metadata?.usage&&{usage:{total_tokens:t.metadata.usage.totalTokens||0,input_tokens:t.metadata.usage.promptTokens||0,output_tokens:t.metadata.usage.completionTokens||0}}}}},iL=class Hw{constructor(t,n){this.http=t,this.functionsUrl=n||Hw.deriveSubhostingUrl(t.baseUrl)}static deriveSubhostingUrl(t){try{const{hostname:n}=new URL(t);return n.endsWith(".insforge.app")?`https://${n.split(".")[0]}.functions.insforge.app`:void 0}catch{return}}async invoke(t,n={}){const{method:a="POST",body:o,headers:s={}}=n;if(this.functionsUrl)try{return{data:await this.http.request(a,`${this.functionsUrl}/${t}`,{body:o,headers:s}),error:null}}catch(l){if(l instanceof Error&&l.name==="AbortError")throw l;if(!(l instanceof qe&&l.statusCode===404))return{data:null,error:l instanceof qe?l:new qe(l instanceof Error?l.message:"Function invocation failed",500,"FUNCTION_ERROR")}}try{const l=`/functions/${t}`;return{data:await this.http.request(a,l,{body:o,headers:s}),error:null}}catch(l){if(l instanceof Error&&l.name==="AbortError")throw l;return{data:null,error:l instanceof qe?l:new qe(l instanceof Error?l.message:"Function invocation failed",500,"FUNCTION_ERROR")}}}},kk=1e4,oL=class{constructor(e,t,n){this.socket=null,this.connectPromise=null,this.subscribedChannels=new Set,this.eventListeners=new Map,this.baseUrl=e,this.tokenManager=t,this.anonKey=n,this.tokenManager.onTokenChange=()=>this.onTokenChange()}notifyListeners(e,t){const n=this.eventListeners.get(e);if(n)for(const a of n)try{a(t)}catch(o){console.error(`Error in ${e} callback:`,o)}}connect(){return this.socket?.connected?Promise.resolve():this.connectPromise?this.connectPromise:(this.connectPromise=new Promise((e,t)=>{const n=this.tokenManager.getAccessToken()??this.anonKey;this.socket=bu(this.baseUrl,{transports:["websocket"],auth:n?{token:n}:void 0});let a=!0,o=null;const s=()=>{o&&(clearTimeout(o),o=null)};o=setTimeout(()=>{a&&(a=!1,this.connectPromise=null,this.socket?.disconnect(),this.socket=null,t(new Error(`Connection timeout after ${kk}ms`)))},kk),this.socket.on("connect",()=>{s();for(const l of this.subscribedChannels)this.socket.emit("realtime:subscribe",{channel:l});this.notifyListeners("connect"),a&&(a=!1,this.connectPromise=null,e())}),this.socket.on("connect_error",l=>{s(),this.notifyListeners("connect_error",l),a&&(a=!1,this.connectPromise=null,t(l))}),this.socket.on("disconnect",l=>{this.notifyListeners("disconnect",l)}),this.socket.on("realtime:error",l=>{this.notifyListeners("error",l)}),this.socket.onAny((l,u)=>{l!=="realtime:error"&&this.notifyListeners(l,u)})}),this.connectPromise)}disconnect(){this.socket&&(this.socket.disconnect(),this.socket=null),this.subscribedChannels.clear()}onTokenChange(){const e=this.tokenManager.getAccessToken()??this.anonKey;this.socket&&(this.socket.auth=e?{token:e}:{}),this.socket&&(this.socket.connected||this.connectPromise)&&(this.socket.disconnect(),this.socket.connect())}get isConnected(){return this.socket?.connected??!1}get connectionState(){return this.socket?this.socket.connected?"connected":"connecting":"disconnected"}get socketId(){return this.socket?.id}async subscribe(e){if(this.subscribedChannels.has(e))return{ok:!0,channel:e};if(!this.socket?.connected)try{await this.connect()}catch(t){const n=t instanceof Error?t.message:"Connection failed";return{ok:!1,channel:e,error:{code:"CONNECTION_FAILED",message:n}}}return new Promise(t=>{this.socket.emit("realtime:subscribe",{channel:e},n=>{n.ok&&this.subscribedChannels.add(e),t(n)})})}unsubscribe(e){this.subscribedChannels.delete(e),this.socket?.connected&&this.socket.emit("realtime:unsubscribe",{channel:e})}async publish(e,t,n){if(!this.socket?.connected)throw new Error("Not connected to realtime server. Call connect() first.");this.socket.emit("realtime:publish",{channel:e,event:t,payload:n})}on(e,t){this.eventListeners.has(e)||this.eventListeners.set(e,new Set),this.eventListeners.get(e).add(t)}off(e,t){const n=this.eventListeners.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners.delete(e))}once(e,t){const n=a=>{this.off(e,n),t(a)};this.on(e,n)}getSubscribedChannels(){return Array.from(this.subscribedChannels)}},sL=class{constructor(e){this.http=e}async send(e){try{return{data:await this.http.post("/api/email/send-raw",e),error:null}}catch(t){if(t instanceof Error&&t.name==="AbortError")throw t;return{data:null,error:t instanceof qe?t:new qe(t instanceof Error?t.message:"Email send failed",500,"EMAIL_ERROR")}}}},lL=class{constructor(e={}){const t=new Uw(e.debug);this.tokenManager=new Vw,this.http=new H3(e,this.tokenManager,t),e.edgeFunctionToken&&(this.http.setAuthToken(e.edgeFunctionToken),this.tokenManager.setAccessToken(e.edgeFunctionToken)),this.auth=new Y3(this.http,this.tokenManager,{isServerMode:e.isServerMode??!1}),this.database=new X3(this.http,this.tokenManager),this.storage=new J3(this.http),this.ai=new eL(this.http),this.functions=new iL(this.http,e.functionsUrl),this.realtime=new oL(this.http.baseUrl,this.tokenManager,e.anonKey),this.emails=new sL(this.http)}getHttpClient(){return this.http}};function cL(e){return new lL(e)}const jm={},Ww="https://srctyff5.us-east.insforge.app",uL="ik_9f35735991b684f7cf57fa00bb4d0487";function hr(){const e=typeof import.meta<"u"?jm:void 0;return(e?.VITE_INSFORGE_BASE_URL||e?.VITE_TOKENTRACKER_BACKEND_BASE_URL||Ww).trim()}function Kw(){if(typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"))return window.location.origin;const t=typeof import.meta<"u"?jm:void 0;return(t?.VITE_INSFORGE_BASE_URL||t?.VITE_TOKENTRACKER_BACKEND_BASE_URL||Ww).trim()}function Al(){const e=typeof import.meta<"u"?jm:void 0;return(e?.VITE_INSFORGE_ANON_KEY||e?.VITE_TOKENTRACKER_BACKEND_ANON_KEY||uL).trim()}function _p(){return!!Kw()}let Tf=null;function dL(){return _p()?(Tf||(Tf=cL({baseUrl:Kw(),anonKey:Al()||void 0,autoRefreshToken:!0})),Tf):null}const Gw="tokentracker_cloud_sync_enabled",hL="tokentracker_cloud_device_session_v1",Um="tokentracker_cloud_last_sync_ts";let Bm=null;function zm(){try{localStorage.removeItem(hL)}catch{}}function fL(){if(typeof window>"u")return!1;const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"}function pL(){try{const e=localStorage.getItem(Gw);return e===null||e===""?!1:e==="1"||e==="true"}catch{return!1}}function T9(e){try{localStorage.setItem(Gw,e?"1":"0")}catch{}}function qw(){return zm(),Bm}function mL(e){Bm=e,zm()}function Yw(){Bm=null;try{localStorage.removeItem(Um)}catch{}zm()}function gL(){try{const e=Number(localStorage.getItem(Um));return Number.isFinite(e)?e:0}catch{return 0}}function Zw(e){try{localStorage.setItem(Um,String(e))}catch{}}function Gr(e){if(typeof e!="string")return null;const t=e.trim();return t.length>0?t:null}function yL(e){const t=Gr(e);if(!t)return null;const n=t.split(".");if(n.length<2)return null;const a=n[1];try{const o=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),s=typeof atob=="function"?atob(o):Buffer.from(o,"base64").toString("utf8"),u=JSON.parse(s)?.exp;return typeof u!="number"||!Number.isFinite(u)||u<=0?null:Math.floor(u*1e3)}catch{return null}}function Xw(e){const t=Gr(e);if(!t)return!1;const n=t.split(".");if(n.length!==3)return!1;try{for(let a=0;a<2;a++){const o=n[a];if(!/^[A-Za-z0-9_-]+$/.test(o))return!1;const s=o.replace(/-/g,"+").replace(/_/g,"/").padEnd(o.length+(4-o.length%4)%4,"="),l=typeof atob=="function"?atob(s):Buffer.from(s,"base64").toString("utf8");a===1&&JSON.parse(l)}return!0}catch{return!1}}function vL(e,t=3e4){const n=yL(e);return n?n<=Date.now()+Math.max(0,Number(t)||0):!1}async function bL(e){if(!e)return null;if(typeof e=="string")return Gr(e);if(typeof e=="function")try{const t=await e();return Gr(t)}catch{return null}if(typeof e=="object"){if(typeof e.getAccessToken=="function"){try{const t=await e.getAccessToken(),n=Gr(t);if(n)return n}catch{}return Gr(e.accessToken)}return null}return Gr(e)}async function E9(e,t={}){const n=Math.max(1,Math.min(12,Math.floor(Number(t.maxAttempts)||8))),a=Math.max(20,Math.floor(Number(t.baseDelayMs)||50));for(let o=0;o<n;o++){const s=await bL(e);if(s)return s;o<n-1&&await new Promise(l=>setTimeout(l,a*(o+1)))}return null}function A9(e){return typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1")||typeof e=="function"||e&&typeof e=="object"&&typeof e.getAccessToken=="function"?!0:!!Gr(e)}function R9(){if(typeof Intl>"u"||!Intl.DateTimeFormat)return null;try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}}function L9(e=new Date){const t=e instanceof Date?e:new Date(e);if(!Number.isFinite(t.getTime()))return 0;const n=t.getTimezoneOffset();return Number.isFinite(n)?-n:0}function Qw(e){if(!Number.isFinite(e)||e===0)return"UTC";const t=e>=0?"+":"-",n=Math.abs(e),a=String(Math.floor(n/60)).padStart(2,"0"),o=String(n%60).padStart(2,"0");return`UTC${t}${a}:${o}`}function D9({timeZone:e,offsetMinutes:t}={}){const n=Qw(t);return e&&e!=="UTC"?`${e} (${n})`:n}function I9({timeZone:e,offsetMinutes:t}={}){return Number.isFinite(t)?Qw(t):e||"UTC"}function M9({timeZone:e,offsetMinutes:t,date:n=new Date}={}){const a=n instanceof Date?n:new Date(n);if(!Number.isFinite(a.getTime()))return"";if(e&&typeof Intl<"u"&&Intl.DateTimeFormat)try{const l=new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(a).reduce((m,y)=>(y.type&&y.value&&(m[y.type]=y.value),m),{}),u=l.year,h=l.month,f=l.day;if(u&&h&&f)return`${u}-${h}-${f}`}catch{}if(typeof t=="number"&&Number.isFinite(t)){const o=new Date(a.getTime()+t*6e4);return _L(o)}return wL(a)}function kL({timeZone:e,offsetMinutes:t,date:n=new Date}={}){const a=n instanceof Date?n:new Date(n);if(!Number.isFinite(a.getTime()))return null;if(e&&typeof Intl<"u"&&Intl.DateTimeFormat)try{const l=new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(a).reduce((m,y)=>(y.type&&y.value&&(m[y.type]=y.value),m),{}),u=Number(l.year),h=Number(l.month),f=Number(l.day);if(Number.isFinite(u)&&Number.isFinite(h)&&Number.isFinite(f))return{year:u,month:h,day:f}}catch{}if(typeof t=="number"&&Number.isFinite(t)){const o=new Date(a.getTime()+t*6e4);return{year:o.getUTCFullYear(),month:o.getUTCMonth()+1,day:o.getUTCDate()}}return{year:a.getFullYear(),month:a.getMonth()+1,day:a.getDate()}}function N9({timeZone:e,offsetMinutes:t}={}){return e?`tz:${e}`:typeof t=="number"&&Number.isFinite(t)?`offset:${Math.trunc(t)}`:"utc"}function _L(e){const t=e.getUTCFullYear(),n=String(e.getUTCMonth()+1).padStart(2,"0"),a=String(e.getUTCDate()).padStart(2,"0");return`${t}-${n}-${a}`}function wL(e){const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${t}-${n}-${a}`}function Ct(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())).toISOString().slice(0,10)}function Ga(e){const t=e instanceof Date?e:new Date(e);if(!Number.isFinite(t.getTime()))return"";const n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${o}`}function xL(e){if(!e)return null;const t=String(e).trim(),n=t.split("-");if(n.length!==3)return null;const a=Number(n[0]),o=Number(n[1])-1,s=Number(n[2]);if(!Number.isFinite(a)||!Number.isFinite(o)||!Number.isFinite(s))return null;const l=new Date(Date.UTC(a,o,s));return Number.isFinite(l.getTime())&&Ct(l)===t?l:null}function PL(e){if(!e)return"";const t=e.year,n=String(e.month).padStart(2,"0"),a=String(e.day).padStart(2,"0");return!t||!n||!a?"":`${t}-${n}-${a}`}function SL(e,{timeZone:t,offsetMinutes:n,now:a}={}){const o=a instanceof Date&&Number.isFinite(a.getTime())?a:new Date,s=kL({timeZone:t,offsetMinutes:n,date:o});if(!s){const h=Ga(new Date);return{from:h,to:h}}const l=PL(s),u=xL(l);if(!u)return{from:l,to:l};if(e==="day")return{from:l,to:l};if(e==="24h"){const h=new Date(u);return h.setUTCDate(h.getUTCDate()-1),{from:Ct(h),to:l}}if(e==="week"){const h=new Date(u);return h.setUTCDate(h.getUTCDate()-6),{from:Ct(h),to:l}}if(e==="month"){const h=new Date(u);return h.setUTCDate(h.getUTCDate()-29),{from:Ct(h),to:l}}if(e==="total"){const h=new Date(Date.UTC(u.getUTCFullYear(),u.getUTCMonth()-23,1));return{from:Ct(h),to:l}}return SL("week")}function Jw(){return typeof window>"u"?null:window.localStorage||null}function ex(){return typeof navigator>"u"?null:navigator.clipboard||null}function CL(){return typeof window>"u"?null:window.ClipboardItem||null}function nl(e,{storage:t}={}){const n=t??Jw();if(!n||typeof n.getItem!="function")return null;try{return n.getItem(e)}catch{return null}}function al(e,t,{storage:n}={}){const a=n??Jw();if(!a||typeof a.setItem!="function")return!1;try{return a.setItem(e,t),!0}catch{return!1}}async function O9(e,{clipboard:t}={}){const n=t??ex();if(!n||typeof n.writeText!="function")return!1;try{return await n.writeText(e),!0}catch{return!1}}async function j9(e,{clipboard:t}={}){const n=t??ex(),a=CL();if(!e||!n||typeof n.write!="function"||!a)return!1;try{const o=e.type||"image/png",s=e.type&&e.type!==o?e.slice(0,e.size,o):e.type?e:e.slice(0,e.size,o),l=new a({[o]:s});return await n.write([l]),!0}catch{return!1}}const gl="USD",Fm=["USD","EUR","GBP","CNY","JPY","HKD"],tx={USD:{symbol:"$",labelKey:"settings.appearance.currency.opt.usd"},EUR:{symbol:"€",labelKey:"settings.appearance.currency.opt.eur"},GBP:{symbol:"£",labelKey:"settings.appearance.currency.opt.gbp"},CNY:{symbol:"¥",labelKey:"settings.appearance.currency.opt.cny"},JPY:{symbol:"¥",labelKey:"settings.appearance.currency.opt.jpy"},HKD:{symbol:"HK$",labelKey:"settings.appearance.currency.opt.hkd"}},Vm={USD:1,EUR:.92,GBP:.79,CNY:7.2,JPY:155,HKD:7.8},nx="tokentracker-currency",ax="tokentracker-exchange-rates",rx="tokentracker-exchange-rate-source",ix="tokentracker-exchange-rate-fetched-at";function Hu(e){return typeof e=="number"&&Number.isFinite(e)&&e>0}function $m(e){if(typeof e!="string")return gl;const t=e.trim().toUpperCase();return Fm.includes(t)?t:gl}function ku(e){const t=typeof e=="string"?e.trim().toUpperCase():gl;return tx[t]?.symbol??"$"}function U9(){return Fm.map(e=>({code:e,...tx[e]}))}function TL(){return $m(nl(nx))}function EL(e){return al(nx,$m(e))}function ox(e){return e==="fetched"?"fetched":"default"}function AL(e){if(e==null)return null;try{const t=JSON.parse(String(e));if(!t||typeof t!="object")return null;const n={};for(const[a,o]of Object.entries(t)){const s=Number(o);Number.isFinite(s)&&s>0&&(n[a.toUpperCase()]=s)}return n}catch{return null}}function RL(){const e=AL(nl(ax)),t=nl(ix),n=t==null?NaN:Number(t),a=Number.isFinite(n)&&n>0?n:null,o=nl(rx),s=ox(o);return e&&Object.keys(e).length>0?{rates:{USD:1,...e},source:s,fetchedAt:a}:{rates:{...Vm},source:"default",fetchedAt:null}}function LL(e){const{rates:t,source:n,fetchedAt:a}=e;if(!t||typeof t!="object")return!1;const o=al(ax,JSON.stringify(t)),s=al(rx,ox(n)),l=a?al(ix,String(a)):!0;return o&&s&&l}function Ef(e,t){if(t===gl)return 1;const n=e?.[t];if(Hu(n))return n;const a=Vm[t];return Hu(a)?a:1}function B9(e){if(e==null)return"-";try{if(typeof e=="bigint")return new Intl.NumberFormat().format(e);if(typeof e=="number")return new Intl.NumberFormat().format(e);const t=String(e).trim();return/^[0-9]+$/.test(t)?new Intl.NumberFormat().format(BigInt(t)):t}catch{return String(e)}}function z9(e,{thousandSuffix:t="K",millionSuffix:n="M",billionSuffix:a="B",decimals:o=1}={}){const s=Number(String(e));if(!Number.isFinite(s))return"-";const l=s<0?"-":"",u=Math.abs(s),h=Math.max(0,Math.min(6,Math.floor(o)));if(u<1e3)return`${l}${String(u)}`;const f=(_,x)=>{const C=_.toFixed(h),S=Number(C).toString();return`${l}${S}${x}`},m=(_,x,C)=>{const S=_.toFixed(h),M=Number(S);return C&&M>=1e3?f(M/1e3,C):`${l}${M.toString()}${x}`};if(u>=1e9)return f(u/1e9,a);if(u>=1e6)return m(u/1e6,n,a);const y=u/1e3,v=Number(y.toFixed(h));return v>=1e3?f(v/1e3,n):f(v,t)}function sx(e){const t=Number(String(e));return Number.isFinite(t)?t:null}function F9(e,t={}){const{decimals:n=2,currency:a="USD",rate:o=1}=t;if(e==null||typeof e=="string"&&e.trim()==="")return"-";let s;if(typeof e=="number")s=e;else if(typeof e=="bigint")s=Number(e);else{const S=String(e).trim(),M=Number(S);if(!Number.isFinite(M))return S;s=M}if(!Number.isFinite(s))return String(e);const l=ku(a);a!=="USD"&&typeof o=="number"&&Number.isFinite(o)&&o>0&&(s=s*o);const h=s.toFixed(6).match(/^(-?\d+)(?:\.(\d+))?$/);if(!h)return`${l}${String(s)}`;const f=h[1],m=h[2]||"";let y=f;try{y=new Intl.NumberFormat().format(BigInt(f))}catch{y=f}const v=Math.max(0,Math.min(6,Math.floor(n))),_=v?m.slice(0,v).padEnd(v,"0"):"",x=f.startsWith("-")?"-":"",C=v?`${y.replace("-","")}.${_}`:y.replace("-","");return`${x}${l}${C}`}function Wu(e){if(typeof e!="string")return null;const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());if(!t)return null;const n=Number(t[1]),a=Number(t[2])-1,o=Number(t[3]),s=new Date(Date.UTC(n,a,o));return Number.isFinite(s.getTime())&&Ct(s)===e.trim()?s:null}function Ri(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()+t))}function DL(e,t){const n=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())-Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate());return Math.floor(n/864e5)}function Af(e,t){if(!Array.isArray(e)||e.length===0)return 0;const n=e.length,a=(n-1)*t,o=Math.floor(a),s=a-o,l=e[o]??e[n-1],u=e[Math.min(n-1,o+1)]??e[n-1];return Math.round(l+(u-l)*s)}function IL(e){return e<=0?0:e>=4?4:e}function lx({weeks:e=52,now:t,weekStartsOn:n="sun"}={}){const a=t instanceof Date&&Number.isFinite(t.getTime())?t:new Date,o=Ga(a),s=Wu(o)||new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())),l=n==="mon"?1:0,u=s.getUTCDay(),h=Ri(s,-((u-l+7)%7)),f=Ri(h,-7*(Math.max(1,e)-1));return{from:Ct(f),to:o}}function ML({dailyRows:e,weeks:t=52,to:n,weekStartsOn:a="sun"}={}){const o=Wu(n)||new Date(Date.UTC(new Date().getFullYear(),new Date().getMonth(),new Date().getDate())),{from:s}=lx({weeks:t,now:o,weekStartsOn:a}),l=Wu(s)||Ri(o,-(t*7-1)),u=(()=>{const E=(l.getUTCDay()-(a==="mon"?1:0)+7)%7;return Ri(l,-E)})(),h=new Map;for(const R of Array.isArray(e)?e:[]){const A=typeof R?.day=="string"?R.day:null;if(!A)continue;const E=sx(R?.billable_total_tokens??R?.total_tokens)??0;h.set(A,{value:Math.max(0,E),models:R?.models||null})}const f=DL(u,o)+1,m=Math.ceil(f/7),y=[];for(let R=0;R<f;R++){const A=Ri(u,R),E=Ct(A),B=h.get(E),$=B?B.value:0;$>0&&y.push($)}y.sort((R,A)=>R-A);const v=Af(y,.5),_=Af(y,.75),x=Af(y,.9);function C(R){return!R||R<=0?0:R<=v?1:R<=_?2:R<=x?3:4}const S=[];for(let R=0;R<m;R++){const A=[];for(let E=0;E<7;E++){const B=R*7+E,$=Ri(u,B);if($.getTime()>o.getTime()){A.push(null);continue}const V=Ct($),P=h.get(V),Z=P?P.value:0,X=P?P.models:null;A.push({day:V,value:Z,level:IL(C(Z)),models:X})}S.push(A)}const M=S.length>t?S.slice(S.length-t):S;return{from:s,to:Ct(o),weeks:M,thresholds:{t1:v,t2:_,t3:x}}}function NL({dailyRows:e,to:t}={}){const n=Wu(t)||new Date(Date.UTC(new Date().getFullYear(),new Date().getMonth(),new Date().getDate())),a=new Map;for(const s of Array.isArray(e)?e:[]){const l=typeof s?.day=="string"?s.day:null;if(!l)continue;const u=sx(s?.billable_total_tokens??s?.total_tokens)??0;a.set(l,Math.max(0,u))}let o=0;for(let s=0;s<370;s++){const l=Ct(Ri(n,-s));if((a.get(l)??0)>0){o+=1;continue}break}return o}const _d={},cx="tokentracker",OL=["tokentracker/tokentracker","spacedriveapp/spacedrive","acme/alpha","acme/beta","neo/nebula","signal/flux","matrix/terminal","orbit/atlas","lumen/core","delta/horizon"],_k=["NEO","TRINITY","MORPHEUS","ORACLE","CYPHER","SWITCH","APOC","TANK","SMITH","SERAPH","NIOBE","MOUSE","DOZER","LINK","BLADE"];function xn(){if(typeof window<"u"){const e=new URLSearchParams(window.location.search),t=String(e.get("mock")||"").toLowerCase();if(t==="0"||t==="false"||t==="off"||t==="no")return!1;if(t==="1"||t==="true"||t==="on"||t==="yes")return!0}if(typeof import.meta<"u"&&_d){const e="".toLowerCase();if(e==="1"||e==="true")return!0}return!1}function jL(){if(typeof import.meta<"u"&&_d){const e="".trim();if(e)return e;const t="".trim();if(t)return t}if(typeof window<"u"){const e=new URLSearchParams(window.location.search),t=String(e.get("mock_now")||"").trim();if(t)return t;const n=String(e.get("mock_today")||"").trim();if(n)return n}return""}function UL(e){if(!e)return null;const t=String(e).trim();if(!t)return null;if(/^\d{4}-\d{2}-\d{2}$/.test(t)){const[a,o,s]=t.split("-").map(Number);if(!Number.isFinite(a)||!Number.isFinite(o)||!Number.isFinite(s))return null;const l=new Date(a,o-1,s,12,0,0);return Number.isFinite(l.getTime())?l:null}const n=new Date(t);return Number.isFinite(n.getTime())?n:null}function V9(){return xn()?UL(jL()):null}function BL(){if(typeof import.meta<"u"&&_d){const e="".trim();if(e)return e}if(typeof window<"u"){const e=new URLSearchParams(window.location.search),t=String(e.get("mock_seed")||"").trim();if(t)return t}return cx}function zL(){if(typeof import.meta<"u"&&_d){const e="".trim(),t=Number(e);if(Number.isFinite(t)&&t>0)return Math.floor(t)}if(typeof window<"u"){const e=new URLSearchParams(window.location.search),t=String(e.get("mock_missing")||"").trim(),n=Number(t);if(Number.isFinite(n)&&n>0)return Math.floor(n)}return 0}function Rl(e){return(e==null?BL():String(e)).trim()||cx}function Ll(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function _n(e){if(typeof e!="string")return null;const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());if(!t)return null;const n=Number(t[1]),a=Number(t[2])-1,o=Number(t[3]),s=new Date(Date.UTC(n,a,o));return Number.isFinite(s.getTime())&&Ct(s)===e.trim()?s:null}function yl(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()+t))}function ux(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))}function FL(e){return`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}`}function Ko({from:e,to:t,seed:n}){const a=_n(Ga(new Date))||new Date,o=_n(e)||a,s=_n(t)||o,l=[],u=Rl(n),h=Math.floor((Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate())-Date.UTC(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()))/864e5)+1;for(let f=0;f<h;f+=1){const m=yl(o,f),y=Ct(m),v=Ll(`${u}:${y}`),_=v%1e3/1e3,x=.6+.4*Math.sin(f/6*Math.PI*.5),C=m.getUTCDay()===0||m.getUTCDay()===6?.65:1,S=18e3+Math.round(12e3*_),M=Math.max(0,Math.round(S*x*C)),R=Math.round(M*.46),A=Math.round(M*.34),E=Math.round(M*.14),B=Math.max(0,M-R-A-E),$={};if(M>0){const V=["gpt-4o","claude-3.5-sonnet","gemini-1.5-pro","deepseek-coder"],P=1+v%3;let Z=M;for(let X=0;X<P;X++){const fe=V[(v+X)%V.length];if(X===P-1)$[fe]=Z;else{const he=Math.round(Z*(.3+.4*((v+X*17)%10)/10));$[fe]=he,Z-=he}}}l.push({day:y,total_tokens:M,billable_total_tokens:M,input_tokens:R,output_tokens:A,cached_input_tokens:E,reasoning_output_tokens:B,conversation_count:1+v%5,models:$})}return l}function VL({day:e,seed:t}){const n=_n(e)||_n(Ga(new Date))||new Date,a=Ct(n),o=Rl(t),s=Array.from({length:48},(u,h)=>{const f=Math.floor(h/2),m=h%2===0?0:30,y=Ll(`${o}:${a}:${f}:${m}`),v=y%1e3/1e3,_=(f+m/60)/24,x=.4+.6*Math.sin(_*Math.PI*2),C=900+Math.round(700*v),S=Math.max(0,Math.round(C*x)),M=Math.round(S*.46),R=Math.round(S*.34),A=Math.round(S*.14),E=Math.max(0,S-M-R-A),B={};if(S>0){const $=["gpt-4o","claude-3.5-sonnet","gemini-1.5-pro","deepseek-coder"],V=1+y%2;let P=S;for(let Z=0;Z<V;Z++){const X=$[(y+Z)%$.length];if(Z===V-1)B[X]=P;else{const fe=Math.round(P*(.3+.4*((y+Z*17)%10)/10));B[X]=fe,P-=fe}}}return{hour:`${a}T${String(f).padStart(2,"0")}:${String(m).padStart(2,"0")}:00`,total_tokens:S,billable_total_tokens:S,input_tokens:M,output_tokens:R,cached_input_tokens:A,reasoning_output_tokens:E,models:B}}),l=Math.max(0,Math.min(48,zL()));if(l>0){const u=Date.now(),h=s.map((y,v)=>{const _=Date.parse(y.hour);return Number.isFinite(_)&&_<=u?{index:v,ts:_}:null}).filter(Boolean),f=Math.max(0,h.length-l),m=h.slice(f);for(const y of m){const v=s[y.index];v&&(s[y.index]={...v,missing:!0})}}return s}function $L({months:e=24,to:t,seed:n}){const a=_n(t)||_n(Ga(new Date))||new Date,o=new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)),s=Rl(n),l=[];for(let u=e-1;u>=0;u-=1){const h=ux(o,-u),f=FL(h),m=Ll(`${s}:${f}`),y=m%1e3/1e3,v=.7+.3*Math.sin(l.length/6*Math.PI*.5),_=36e4+Math.round(2e5*y),x=Math.max(0,Math.round(_*v)),C=Math.round(x*.46),S=Math.round(x*.34),M=Math.round(x*.14),R=Math.max(0,x-C-S-M),A={};if(x>0){const E=["gpt-4o","claude-3.5-sonnet","gemini-1.5-pro","deepseek-coder"],B=1+m%3;let $=x;for(let V=0;V<B;V++){const P=E[(m+V)%E.length];if(V===B-1)A[P]=$;else{const Z=Math.round($*(.3+.4*((m+V*17)%10)/10));A[P]=Z,$-=Z}}}l.push({month:f,total_tokens:x,billable_total_tokens:x,input_tokens:C,output_tokens:S,cached_input_tokens:M,reasoning_output_tokens:R,models:A})}return l}function Hm(e){return e.reduce((t,n)=>(t.total_tokens+=Number(n.total_tokens||0),t.billable_total_tokens+=Number(n.billable_total_tokens||n.total_tokens||0),t.input_tokens+=Number(n.input_tokens||0),t.output_tokens+=Number(n.output_tokens||0),t.cached_input_tokens+=Number(n.cached_input_tokens||0),t.reasoning_output_tokens+=Number(n.reasoning_output_tokens||0),t.conversation_count+=Number(n.conversation_count||0),t),{total_tokens:0,billable_total_tokens:0,input_tokens:0,output_tokens:0,cached_input_tokens:0,reasoning_output_tokens:0,conversation_count:0})}function HL(e,t=1.75){const n=Number(e||0);return!Number.isFinite(n)||n<=0?"0.000000":(n*t/1e6).toFixed(6)}function wk(e,t){const n=Number.isFinite(t)?t:0;return{total_tokens:Math.max(0,Math.round(e.total_tokens*n)),billable_total_tokens:Math.max(0,Math.round((e.billable_total_tokens??e.total_tokens)*n)),input_tokens:Math.max(0,Math.round(e.input_tokens*n)),output_tokens:Math.max(0,Math.round(e.output_tokens*n)),cached_input_tokens:Math.max(0,Math.round(e.cached_input_tokens*n)),reasoning_output_tokens:Math.max(0,Math.round(e.reasoning_output_tokens*n))}}function wp(e){return{...e,total_cost_usd:HL(e.total_tokens)}}function WL({from:e,to:t,seed:n}={}){const a=Ko({from:e,to:t,seed:n});return{from:e,to:t,data:a}}function KL({day:e,seed:t}={}){const n=_n(e)||new Date,a=Ct(n),o=VL({day:a,seed:t});return{day:a,data:o}}function GL({months:e=24,to:t,seed:n}={}){const a=_n(t)||_n(Ga(new Date))||new Date,o=Ct(a),s=$L({months:e,to:o,seed:n}),l=ux(new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)),-(e-1));return{from:Ct(l),to:o,months:e,data:s}}function qL({from:e,to:t,seed:n,rolling:a=!0}={}){const o=Ko({from:e,to:t,seed:n}),s=Hm(o),l=wp(s),u=a?YL({to:t,seed:n}):null;return{from:e,to:t,days:o.length,totals:l,...u?{rolling:u}:{}}}function YL({to:e,seed:t}={}){const n=_n(e)||_n(Ga(new Date))||new Date,a=Ct(n),o=Ct(yl(n,-6)),s=Ct(yl(n,-29)),l=Ko({from:o,to:a,seed:t}),u=Ko({from:s,to:a,seed:t});return{last_7d:xk({rows:l,from:o,to:a}),last_30d:xk({rows:u,from:s,to:a})}}function xk({rows:e,from:t,to:n}={}){const a=Hm(e||[]),o=(e||[]).filter(l=>Number(l.billable_total_tokens??l.total_tokens)>0).length,s=o>0?Math.floor(a.billable_total_tokens/o):0;return{from:t,to:n,totals:{billable_total_tokens:a.billable_total_tokens,conversation_count:a.conversation_count},active_days:o,avg_per_active_day:s}}function ZL({seed:e,limit:t=3}={}){const n=Rl(e),a=OL.map((o,s)=>{const u=12e4+Ll(`${n}:${o}`)%9e5,h=s%4*4200,f=Math.max(0,u+h),m=Math.max(0,Math.round(f*.96));return{project_key:o,project_ref:`https://github.com/${o}`,total_tokens:String(f),billable_total_tokens:String(m)}}).sort((o,s)=>Number(s.billable_total_tokens)-Number(o.billable_total_tokens)).slice(0,Math.max(1,Math.min(10,Math.floor(Number(t)||3))));return{generated_at:new Date().toISOString(),entries:a}}function XL(e){const t=_n(Ga(new Date))||new Date,n=String(e).trim().toLowerCase()||"week";if(n==="total")return{from:"1970-01-01",to:"9999-12-31"};if(n==="month"){const l=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),1)),u=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()+1,0));return{from:Ct(l),to:Ct(u)}}const a=t.getUTCDay(),o=Ct(yl(t,-a)),s=Ct(yl(t,-a+6));return{from:o,to:s}}function dx({seed:e,period:t,metric:n,limit:a=20,offset:o=0}={}){const s=Rl(e),l=Math.max(1,Math.min(100,Math.floor(Number(a)||20))),u=Math.max(0,Math.min(1e4,Math.floor(Number(o)||0))),h=String(n||"all").trim().toLowerCase()||"all",f=String(t||"week").trim().toLowerCase()||"week",m=f==="month"||f==="total"||f==="week"?f:"week",{from:y,to:v}=XL(m),_=250,x=_>0?Math.ceil(_/l):0,C=Math.floor(u/l)+1,S=Array.from({length:_},(V,P)=>{const Z=P+1,X=`00000000-0000-0000-0000-${String(Z).padStart(12,"0")}`,fe=_k[Z%_k.length],J=18e4+Ll(`${s}:${fe}:${Z}`)%9e5,re=Math.max(0,J+Z*1200),ue=Math.floor(re*.28),Q=Math.floor(re*.18),ie=Math.floor(re*.1),F=Math.floor(re*.1),Y=Math.floor(re*.08),z=Math.floor(re*.03),I=Math.floor(re*.02),W=Math.floor(re*.04),ge=Math.floor(re*.03),pe=Math.max(0,re-ue-Q-ie-F-Y-z-I-W-ge),me=Z%7!==0;return{id:Z,user_id:X,is_public:me,is_me:!1,display_name:me?fe:"Anonymous",avatar_url:null,gpt_tokens:ue,claude_tokens:Q,gemini_tokens:ie,cursor_tokens:F,opencode_tokens:Y,openclaw_tokens:pe,hermes_tokens:z,kiro_tokens:I,copilot_tokens:W,kimi_tokens:ge,other_tokens:0,total_tokens:re}}),M=Math.max(0,Math.min(_-1,Math.floor(_*.8)));S[M]&&(S[M].is_me=!0);const R=h==="gpt"||h==="codex"?"gpt_tokens":h==="claude"?"claude_tokens":h==="gemini"?"gemini_tokens":h==="cursor"?"cursor_tokens":h==="opencode"?"opencode_tokens":h==="openclaw"?"openclaw_tokens":h==="hermes"?"hermes_tokens":h==="kiro"?"kiro_tokens":h==="copilot"?"copilot_tokens":h==="kimi"?"kimi_tokens":"total_tokens",A=S.slice().sort((V,P)=>Number(P[R])-Number(V[R])||V.id-P.id).map((V,P)=>({user_id:V.is_public?V.user_id:null,rank:P+1,is_me:!!V.is_me,display_name:V.display_name,avatar_url:V.avatar_url,gpt_tokens:String(V.gpt_tokens),claude_tokens:String(V.claude_tokens),gemini_tokens:String(V.gemini_tokens),cursor_tokens:String(V.cursor_tokens),opencode_tokens:String(V.opencode_tokens),openclaw_tokens:String(V.openclaw_tokens),hermes_tokens:String(V.hermes_tokens??0),kiro_tokens:String(V.kiro_tokens??0),copilot_tokens:String(V.copilot_tokens??0),kimi_tokens:String(V.kimi_tokens??0),other_tokens:String(V.other_tokens??0),total_tokens:String(V.total_tokens),is_public:!!V.is_public})),E=A.find(V=>V?.is_me)||null,B=E?{rank:E.rank,gpt_tokens:E.gpt_tokens,claude_tokens:E.claude_tokens,gemini_tokens:E.gemini_tokens,cursor_tokens:E.cursor_tokens,opencode_tokens:E.opencode_tokens,openclaw_tokens:E.openclaw_tokens,hermes_tokens:E.hermes_tokens,kiro_tokens:E.kiro_tokens,copilot_tokens:E.copilot_tokens,kimi_tokens:E.kimi_tokens,other_tokens:E.other_tokens,total_tokens:E.total_tokens}:{rank:null,gpt_tokens:"0",claude_tokens:"0",gemini_tokens:"0",cursor_tokens:"0",opencode_tokens:"0",openclaw_tokens:"0",hermes_tokens:"0",kiro_tokens:"0",copilot_tokens:"0",kimi_tokens:"0",other_tokens:"0",total_tokens:"0"},$=A.slice(u,u+l);return{period:m,metric:h,from:y,to:v,generated_at:new Date().toISOString(),page:C,limit:l,offset:u,total_entries:_,total_pages:x,entries:$,me:B}}function QL({weeks:e=52,to:t,weekStartsOn:n="sun",seed:a}={}){const o=lx({weeks:e,now:_n(t)||_n(Ga(new Date))||new Date,weekStartsOn:n}),s=Ko({from:o.from,to:o.to,seed:a});return{...ML({dailyRows:s,weeks:e,to:o.to,weekStartsOn:n}),week_starts_on:n,active_days:s.filter(u=>Number(u.billable_total_tokens??u.total_tokens)>0).length,streak_days:NL({dailyRows:s,to:o.to})}}function JL({from:e,to:t,seed:n}={}){const a=Ko({from:e,to:t,seed:n}),o=Hm(a),l=[{source:"codex",weight:.7,models:[{model:"gpt-5.2-codex",model_id:"gpt-5.2-codex",weight:.2},{model:"unknown",model_id:"unknown",weight:.8}]},{source:"claude",weight:.2,models:[{model:"claude-3.5",model_id:"claude-3.5",weight:.3},{model:"unknown",model_id:"unknown",weight:.7}]},{source:"every-code",weight:.1,models:[{model:"unknown",model_id:"unknown",weight:1}]}].map(u=>{const h=wk(o,u.weight),f=u.models.map(m=>{const y=wk(h,m.weight);return{model:m.model,model_id:m.model_id||m.model,totals:wp(y)}});return{source:u.source,totals:wp(h),models:f}});return{from:e,to:t,days:a.length,sources:l,pricing:{model:"mock",pricing_mode:"add",source:"mock",effective_from:Ga(new Date),rates_per_million_usd:{input:"1.750000",cached_input:"0.175000",output:"14.000000",reasoning_output:"14.000000"}}}}function eD({from:e,to:t,source:n="claude"}={}){if(n==="codex")return{from:e,to:t,source:"codex",scope:"supported",totals:{input_tokens:142e4,cached_input_tokens:588e4,cache_creation_input_tokens:92e4,output_tokens:256e4,reasoning_output_tokens:61e4,total_tokens:1078e4},session_count:188,message_count:5436,tool_calls_breakdown:{categories:[{name:"Execution",calls:742,totals:{input_tokens:32e4,cached_input_tokens:104e4,cache_creation_input_tokens:11e4,output_tokens:46e4,reasoning_output_tokens:12e4,total_tokens:193e4},tools:[{name:"exec_command",calls:510,totals:{input_tokens:25e4,cached_input_tokens:82e4,cache_creation_input_tokens:8e4,output_tokens:37e4,reasoning_output_tokens:9e4,total_tokens:152e4}},{name:"write_stdin",calls:232,totals:{input_tokens:7e4,cached_input_tokens:22e4,cache_creation_input_tokens:3e4,output_tokens:9e4,reasoning_output_tokens:3e4,total_tokens:41e4}}]},{name:"Browser",calls:406,totals:{input_tokens:21e4,cached_input_tokens:88e4,cache_creation_input_tokens:9e4,output_tokens:42e4,reasoning_output_tokens:1e5,total_tokens:17e5},tools:[{name:"take_snapshot",calls:180,totals:{input_tokens:1e5,cached_input_tokens:4e5,cache_creation_input_tokens:4e4,output_tokens:18e4,reasoning_output_tokens:4e4,total_tokens:76e4}},{name:"click",calls:126,totals:{input_tokens:6e4,cached_input_tokens:25e4,cache_creation_input_tokens:3e4,output_tokens:12e4,reasoning_output_tokens:35e3,total_tokens:495e3}},{name:"evaluate_script",calls:100,totals:{input_tokens:5e4,cached_input_tokens:23e4,cache_creation_input_tokens:2e4,output_tokens:12e4,reasoning_output_tokens:25e3,total_tokens:445e3}}]}],tools_total:363e4,privacy:{includes_inputs:!1,note:"Aggregated tool names only; no tool arguments or outputs are included."}},exec_command_breakdown:{by_type:[{name:"test",calls:168,failures:14,duration_ms:482e3,max_duration_ms:18400,output_chars:45e4,output_lines:8600,totals:{input_tokens:9e4,cached_input_tokens:32e4,output_tokens:16e4,reasoning_output_tokens:42e3,total_tokens:612e3}},{name:"build",calls:116,failures:9,duration_ms:392e3,max_duration_ms:22100,output_chars:31e4,output_lines:5200,totals:{input_tokens:7e4,cached_input_tokens:24e4,output_tokens:13e4,reasoning_output_tokens:3e4,total_tokens:47e4}}],by_exit:[{name:"completed:0",calls:438,failures:0,duration_ms:104e4,max_duration_ms:22100,output_chars:83e4,output_lines:13100,totals:{input_tokens:22e4,cached_input_tokens:78e4,output_tokens:35e4,reasoning_output_tokens:82e3,total_tokens:1432e3}},{name:"completed:1",calls:72,failures:72,duration_ms:155e3,max_duration_ms:11800,output_chars:12e4,output_lines:2300,totals:{input_tokens:3e4,cached_input_tokens:11e4,output_tokens:55e3,reasoning_output_tokens:8e3,total_tokens:195e3}}]}};if(n!=="claude")return{from:e,to:t,source:n,scope:"unsupported",totals:{input_tokens:0,cached_input_tokens:0,cache_creation_input_tokens:0,output_tokens:0,reasoning_output_tokens:0,total_tokens:0},categories:["system_prefix","conversation_history","user_input","tool_calls","subagents","reasoning","assistant_response"].map(l=>({key:l,totals:{input_tokens:0,cached_input_tokens:0,cache_creation_input_tokens:0,output_tokens:0,reasoning_output_tokens:0,total_tokens:0},percent:0})),session_count:0,message_count:0};const a=[{key:"system_prefix",total:12896539},{key:"conversation_history",total:320207200},{key:"user_input",total:998025},{key:"tool_calls",total:4808739},{key:"subagents",total:1022828},{key:"reasoning",total:11073118},{key:"assistant_response",total:1289174}],o=a.reduce((l,u)=>l+u.total,0),s=a.map(({key:l,total:u})=>({key:l,totals:{input_tokens:l==="user_input"?u:0,cached_input_tokens:l==="conversation_history"?Math.round(u*.95):0,cache_creation_input_tokens:l==="system_prefix"?u:l==="conversation_history"?Math.round(u*.05):0,output_tokens:["tool_calls","subagents","reasoning","assistant_response"].includes(l)?u:0,reasoning_output_tokens:l==="reasoning"?u:0,total_tokens:u},percent:Number((u/o*100).toFixed(2))}));return{from:e,to:t,source:"claude",scope:"supported",totals:{input_tokens:998025,cached_input_tokens:Math.round(320207200*.95),cache_creation_input_tokens:12896539+Math.round(320207200*.05),output_tokens:18193859,reasoning_output_tokens:11073118,total_tokens:o},categories:s,session_count:312,message_count:12046}}let _u=null;function tD(){_u=null}async function nD(e=fetch){if(_u)return _u;const t=await e("/api/local-auth",{method:"GET",headers:{Accept:"application/json"},cache:"no-store"});if(!t.ok)throw new Error(`Local auth request failed with HTTP ${t.status}`);const n=await t.json().catch(()=>null),a=typeof n?.token=="string"?n.token.trim():"";if(!a)throw new Error("Local auth token missing from response");return _u=a,a}async function wd(e=fetch){return{"x-tokentracker-local-auth":await nD(e)}}const Pa={usageSummary:"tokentracker-usage-summary",usageDaily:"tokentracker-usage-daily",usageHourly:"tokentracker-usage-hourly",usageMonthly:"tokentracker-usage-monthly",usageHeatmap:"tokentracker-usage-heatmap",usageModelBreakdown:"tokentracker-usage-model-breakdown",usageCategoryBreakdown:"tokentracker-usage-category-breakdown",projectUsageSummary:"tokentracker-project-usage-summary",userStatus:"tokentracker-user-status",localSync:"tokentracker-local-sync",usageLimits:"tokentracker-usage-limits"},aD={"tokentracker-usage-summary":"tokentracker-account-summary","tokentracker-usage-daily":"tokentracker-account-daily","tokentracker-usage-hourly":"tokentracker-account-hourly","tokentracker-usage-monthly":"tokentracker-account-monthly","tokentracker-usage-heatmap":"tokentracker-account-heatmap","tokentracker-usage-model-breakdown":"tokentracker-account-model-breakdown"};function rD(){return typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1")}async function qa(e,t,n){const a=n?.accessToken,o=aD[e];if(!rD()&&a&&o){const f=hr().replace(/\/$/,""),m=new URL(`${f}/functions/${o}`);if(t)for(const[x,C]of Object.entries(t))C!=null&&C!==""&&m.searchParams.set(x,String(C));const y={Accept:"application/json"},v=Al();v&&(y.apikey=v),Xw(a)&&(y.Authorization=`Bearer ${a}`);const _=await fetch(m.toString(),{headers:y,cache:"no-store"});if(!_.ok){const x=new Error(`Request failed with HTTP ${_.status}`);throw x.status=_.status,x}return _.json()}const s=new URL(`/functions/${e}`,window.location.origin);if(t)for(const[f,m]of Object.entries(t))m!=null&&m!==""&&s.searchParams.set(f,String(m));const{accessToken:l,...u}=n||{},h=await fetch(s.toString(),{headers:{Accept:"application/json"},cache:"no-store",...u});if(!h.ok){const f=new Error(`Request failed with HTTP ${h.status}`);throw f.status=h.status,f}return h.json()}function ni({timeZone:e,tzOffsetMinutes:t}={}){const n={},a=typeof e=="string"?e.trim():"";return a&&(n.tz=a),Number.isFinite(t)&&(n.tz_offset_minutes=String(Math.trunc(t))),n}function Hi({source:e,model:t}={}){const n={},a=typeof e=="string"?e.trim().toLowerCase():"";a&&(n.source=a);const o=typeof t=="string"?t.trim():"";return o&&(n.model=o),n}async function $9({from:e,to:t,source:n,model:a,timeZone:o,tzOffsetMinutes:s,rolling:l=!1,accessToken:u}={}){if(xn())return qL({from:e,to:t,seed:u,rolling:l});const h=ni({timeZone:o,tzOffsetMinutes:s}),f=Hi({source:n,model:a}),m=l?{rolling:"1"}:{};return qa(Pa.usageSummary,{from:e,to:t,...f,...h,...m},{accessToken:u})}async function H9({from:e,to:t,source:n,limit:a,timeZone:o,tzOffsetMinutes:s,accessToken:l}={}){if(xn())return ZL({seed:l,limit:a});const u=ni({timeZone:o,tzOffsetMinutes:s}),f={...Hi({source:n}),...u};return e&&(f.from=e),t&&(f.to=t),a!=null&&(f.limit=String(a)),qa(Pa.projectUsageSummary,f)}async function Wi(e,t={}){const n=hr();if(!n)throw new Error("InsForge base URL not configured");const a=n.replace(/\/$/,""),o=new URL(`${a}/functions/${e}`);if(t.params)for(const[h,f]of Object.entries(t.params))f!=null&&f!==""&&o.searchParams.set(h,String(f));const s={Accept:"application/json","Content-Type":"application/json"},l=Al();l&&(s.apikey=l),t.accessToken&&Xw(t.accessToken)&&(s.Authorization=`Bearer ${t.accessToken}`);const u=await fetch(o.toString(),{method:t.method||"GET",headers:s,...t.body!=null?{body:JSON.stringify(t.body)}:{}});if(!u.ok){const h=new Error(`Request failed with HTTP ${u.status}`);throw h.status=u.status,h}return u.json()}async function iD({accessToken:e,userId:t,period:n,metric:a,limit:o,offset:s}={}){return xn()?dx({seed:e||t,period:n,metric:a,limit:o,offset:s}):Wi("tokentracker-leaderboard",{params:{period:n,limit:o,offset:s,user_id:t}})}async function Pk({accessToken:e}={}){return Wi("tokentracker-public-visibility",{accessToken:e,method:"GET"})}async function W9({accessToken:e,enabled:t,anonymous:n,display_name:a,github_url:o,show_github_url:s}={}){const l={};return t!==void 0&&(l.enabled=!!t),n!==void 0&&(l.anonymous=!!n),a!==void 0&&(l.display_name=String(a)),o!==void 0&&(l.github_url=o===null?null:String(o)),s!==void 0&&(l.show_github_url=!!s),Wi("tokentracker-public-visibility",{accessToken:e,method:"POST",body:l})}async function K9({accessToken:e,period:t,source:n}={}){const a={};return t&&(a.period=t),typeof n=="string"&&n.trim()&&(a.source=n.trim()),Wi("tokentracker-leaderboard-refresh",{accessToken:e,method:"POST",body:a})}async function G9({accessToken:e,userId:t,period:n}={}){if(xn()){const a=dx({seed:e,period:n,metric:"all",limit:250,offset:0}),o=Array.isArray(a?.entries)?a.entries:[],s=o.find(m=>m?.user_id===t)||o[0]||null,l=Number(s?.total_tokens)||0,u=new Date,h=Array.from({length:365}).map((m,y)=>{const v=new Date(u);return v.setUTCDate(v.getUTCDate()-(364-y)),{date:v.toISOString().slice(0,10),total_tokens:y%7===0?Math.floor(l/365):0}}),f=h.slice(-7);return{user:{user_id:t,display_name:s?.display_name||"Mock User",avatar_url:s?.avatar_url||null,github_url:s?.github_url||null,is_anonymous:!1,rank:s?.rank??null},period:{kind:n||"week",from:a?.from??null,to:a?.to??null,generated_at:a?.generated_at??new Date().toISOString()},totals:{total_tokens:l,estimated_cost_usd:Number(s?.estimated_cost_usd)||0,active_days:53,avg_per_day_usd:0},streak:{current_days:3,longest_days:12},best_day:l?{date:u.toISOString().slice(0,10),total_tokens:Math.floor(l/30),estimated_cost_usd:0}:null,models:{count:5,favorite:{model_name:"claude-opus-4-7",total_tokens:Math.floor(l/2)}},by_provider:[],heatmap:h,daily_trend:f}}return Wi("tokentracker-leaderboard-profile",{accessToken:e,params:{user_id:t,period:n}})}function hx(e){if(!e)return 0;let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return Math.abs(t%165)+24}async function q9({userId:e}={}){return xn()?{count:hx(e)}:Wi("tokentracker-profile-likes",{params:{user_id:e}})}async function Y9({userId:e,delta:t,accessToken:n}={}){return xn()?{count:Math.max(0,hx(e)+Number(t||0))}:Wi("tokentracker-profile-likes",{accessToken:n,method:"POST",body:{user_id:e,delta:t}})}async function Z9(e={}){if(xn()){const t=new Date().toISOString();return{user_id:"local-user",created_at:t,pro:{active:!1,sources:[],expires_at:null,partial:!1,as_of:t},subscriptions:{partial:!1,as_of:t,items:[]},install:{partial:!1,as_of:t,has_active_device_token:!1,has_active_device:!1,active_device_tokens:0,active_devices:0,latest_token_activity_at:null,latest_device_seen_at:null}}}return qa(Pa.userStatus)}async function X9({signal:e}={}){const t=await wd(),n=await fetch(`/functions/${Pa.localSync}`,{method:"POST",headers:{Accept:"application/json",...t},cache:"no-store",signal:e}),a=await n.json().catch(()=>({ok:!1,error:`Local sync request failed with HTTP ${n.status}`}));if(!n.ok||a?.ok===!1){const o=a?.error||a?.message||`Local sync request failed with HTTP ${n.status}`,s=new Error(o);throw s.status=n.status,s}return a}async function Q9({from:e,to:t,source:n,timeZone:a,tzOffsetMinutes:o,accessToken:s}={}){if(xn())return JL({from:e,to:t,seed:s});const l=ni({timeZone:a,tzOffsetMinutes:o}),u=Hi({source:n});return qa(Pa.usageModelBreakdown,{from:e,to:t,...u,...l},{accessToken:s})}async function J9({from:e,to:t,source:n="claude",timeZone:a,tzOffsetMinutes:o}={}){if(xn())return eD({from:e,to:t,source:n});const s=ni({timeZone:a,tzOffsetMinutes:o});return qa(Pa.usageCategoryBreakdown,{from:e,to:t,source:n,...s})}async function e7({from:e,to:t,source:n,model:a,timeZone:o,tzOffsetMinutes:s,accessToken:l}={}){if(xn())return WL({from:e,to:t,seed:l});const u=ni({timeZone:o,tzOffsetMinutes:s}),h=Hi({source:n,model:a});return qa(Pa.usageDaily,{from:e,to:t,...h,...u},{accessToken:l})}async function t7({day:e,source:t,model:n,timeZone:a,tzOffsetMinutes:o,accessToken:s}={}){if(xn())return KL({day:e,seed:s});const l=ni({timeZone:a,tzOffsetMinutes:o}),u=Hi({source:t,model:n}),h=e?{day:e,...u,...l}:{...u,...l};return qa(Pa.usageHourly,h,{accessToken:s})}async function n7({months:e,to:t,source:n,model:a,timeZone:o,tzOffsetMinutes:s,accessToken:l}={}){if(xn())return GL({months:e,to:t,seed:l});const u=ni({timeZone:o,tzOffsetMinutes:s}),h=Hi({source:n,model:a});return qa(Pa.usageMonthly,{...e?{months:String(e)}:{},...t?{to:t}:{},...h,...u},{accessToken:l})}async function a7(e={}){const t=e?.refresh?{refresh:"1"}:void 0;return qa(Pa.usageLimits,t)}async function r7({weeks:e,to:t,weekStartsOn:n,source:a,model:o,timeZone:s,tzOffsetMinutes:l,accessToken:u}={}){if(xn())return QL({weeks:e,to:t,weekStartsOn:n,seed:u});const h=ni({timeZone:s,tzOffsetMinutes:l}),f=Hi({source:a,model:o});return qa(Pa.usageHeatmap,{weeks:String(e),to:t,week_starts_on:n,...f,...h},{accessToken:u})}const Sk="tokentracker_native_app";let fx=null;const xp=new Set;typeof window<"u"&&window.addEventListener("native:systemAppearanceChanged",e=>{const t=e?.detail?.isDark;if(typeof t=="boolean"){fx=t;try{const n=document.documentElement;t?n.classList.add("dark"):n.classList.remove("dark")}catch{}xp.forEach(n=>{try{n(t)}catch{}})}});function Ck(){return fx}function oD(e){return xp.add(e),()=>xp.delete(e)}function Wm(){if(typeof window>"u")return!1;try{if(new URLSearchParams(window.location.search).get("app")==="1"){try{window.localStorage.setItem(Sk,"1")}catch{}return!0}return window.localStorage.getItem(Sk)==="1"}catch{return!1}}function wa(){return typeof window>"u"?!1:!!window.webkit?.messageHandlers?.nativeBridge}function Km(){return typeof window>"u"?!1:!!window.chrome?.webview&&Wm()}function px(){return typeof window>"u"?null:window.webkit?.messageHandlers?.nativeBridge??null}function i7(){return!!px()}function Dl(e){const t=px();if(!t)return!1;try{return t.postMessage(e),!0}catch(n){return console.warn("[tokentracker] nativeBridge post failed:",n),!1}}function o7(){return Dl({type:"getSettings"})}function rl(e,t){return Dl({type:"setSetting",key:e,value:t})}function s7(e){return Dl({type:"action",name:e})}function sD(){return Dl({type:"getSystemAppearance"})}function lD(e,t){if(!wa())return;Dl({type:"setChromeAppearance",isDark:e==="dark",theme:t??"system"})}function l7(e){if(typeof window>"u")return()=>{};const t=n=>{n&&n.detail&&typeof n.detail=="object"&&e(n.detail)};return window.addEventListener("native:settings",t),()=>window.removeEventListener("native:settings",t)}const mx=k.createContext(null);function cD(e){if(!e||typeof e!="object")return"";const t=e.user_metadata&&typeof e.user_metadata=="object"?e.user_metadata:{},n=e.profile&&typeof e.profile=="object"?e.profile:{},a=t.full_name||t.name||n.name||t.user_name||t.preferred_username;return typeof a=="string"&&a.trim()?a.trim():typeof e.email=="string"&&e.email.includes("@")?e.email.split("@")[0].trim()||e.email.trim():typeof e.email=="string"?e.email.trim():""}function Tk(e){if(!e||typeof e!="object")return null;const t=e,n=t.session&&typeof t.session=="object"?t.session:null,a=typeof t.accessToken=="string"&&t.accessToken||typeof t.access_token=="string"&&t.access_token||n&&typeof n.accessToken=="string"&&n.accessToken||n&&typeof n.access_token=="string"&&n.access_token||null;return a&&a.length>0?a:null}async function Rf(e,t={}){if(!e)return null;const n=Math.max(0,Math.floor(Number(t.skewMs)||6e4)),a=e.tokenManager,o=()=>a?.getAccessToken?.()??a?.getSession?.()?.accessToken??null;let s=o();if(!s||vL(s,n)){const{data:l}=await e.auth.refreshSession();if(s=o()??Tk(l)??null,!s&&typeof e.auth.getCurrentUser=="function")try{await e.auth.getCurrentUser(),s=o()??Tk(l)??null}catch{}}return s||null}function uD({children:e}){const[t,n]=k.useState(null),[a,o]=k.useState(null),[s,l]=k.useState(!0);k.useEffect(()=>{if(!_p()){n(null),o(null),l(!1);return}n(dL())},[]),k.useEffect(()=>{if(!t)return;let $=!0;return l(!0),(async()=>{try{let{data:V,error:P}=await t.auth.getCurrentUser();if(!$)return;if(!P&&!V?.user){if(await new Promise(X=>setTimeout(X,150)),!$)return;const Z=await t.auth.getCurrentUser();V=Z.data,P=Z.error}if(P){o(null);return}o(V?.user??null)}catch{$&&o(null)}finally{$&&l(!1)}})(),()=>{$=!1}},[t]);const u=k.useCallback(async()=>{if(t)try{let{data:$,error:V}=await t.auth.getCurrentUser();if(!V&&!$?.user){await new Promise(Z=>setTimeout(Z,150));const P=await t.auth.getCurrentUser();$=P.data,V=P.error}if(V){o(null);return}o($?.user??null)}catch{o(null)}},[t]),h=k.useCallback(async($,V)=>{if(!t)return{error:new Error("InsForge client not configured")};const P=typeof window<"u"&&window.webkit?.messageHandlers?.nativeOAuth;if(P){const fe=Km()?`${window.location.origin}/auth/callback`:typeof V=="string"&&V.trim()?V.trim():`${window.location.origin}/auth/callback`,he=await t.auth.signInWithOAuth({provider:$,redirectTo:fe,skipBrowserRedirect:!0});if(he.data?.url){try{const J=await wd();await fetch("/api/auth-bridge/verifier",{method:"PUT",headers:{"Content-Type":"application/json",...J},body:JSON.stringify({native:!0})})}catch{}P.postMessage(he.data.url)}return he}const Z=typeof V=="string"&&V.trim()?V.trim():typeof window<"u"?`${window.location.origin}/dashboard`:void 0;return await t.auth.signInWithOAuth({provider:$,redirectTo:Z})},[t]),f=k.useCallback(async $=>{if(!t)return{data:null,error:new Error("InsForge client not configured")};const{data:V,error:P}=await t.auth.signInWithPassword($);return V?.user&&o(V.user),{data:V,error:P}},[t]),m=k.useCallback(async $=>{if(!t)return{data:null,error:new Error("InsForge client not configured")};const{data:V,error:P}=await t.auth.signUp($);return V?.user&&V?.accessToken&&o(V.user),{data:V,error:P}},[t]),y=k.useCallback(async()=>t?t.auth.getPublicAuthConfig():{data:null,error:new Error("InsForge client not configured")},[t]),v=k.useCallback(async()=>{t&&(await t.auth.signOut(),Yw(),tD(),o(null))},[t]),_=k.useCallback(async()=>Rf(t),[t]),[x,C]=k.useState(null),[S,M]=k.useState(!1),R=k.useMemo(()=>cD(a),[a]);k.useEffect(()=>{if(!a||!t){C(null),M(!1);return}let $=!0;return(async()=>{try{const V=await Rf(t);if(!$||!V){$&&M(!0);return}const P=await Pk({accessToken:V});$&&P?.display_name&&C(P.display_name)}catch{}$&&M(!0)})(),()=>{$=!1}},[a,t]);const A=S?x||R:"",E=k.useCallback(async()=>{if(t)try{const $=await Rf(t);if(!$)return;const V=await Pk({accessToken:$});V?.display_name&&C(V.display_name)}catch{}},[t]),B=k.useMemo(()=>!_p()||!t?{enabled:!1,client:null,user:null,signedIn:!1,loading:!1,displayName:"",refreshUser:async()=>{},refreshDisplayName:async()=>{},signInWithOAuth:async()=>({error:new Error("InsForge not configured")}),signInWithPassword:async()=>({data:null,error:new Error("InsForge not configured")}),signUp:async()=>({data:null,error:new Error("InsForge not configured")}),getPublicAuthConfig:async()=>({data:null,error:new Error("InsForge not configured")}),signOut:async()=>{},getAccessToken:async()=>null}:{enabled:!0,client:t,user:a,signedIn:!!a,loading:s,displayName:A,refreshUser:u,refreshDisplayName:E,signInWithOAuth:h,signInWithPassword:f,signUp:m,getPublicAuthConfig:y,signOut:v,getAccessToken:_},[t,a,s,A,u,E,h,f,m,y,v,_]);return T.jsx(mx.Provider,{value:B,children:e})}function Il(){return k.useContext(mx)}const dD=`key,module,page,component,slot,text,notes,status
43
+ header.auth.sign_in_aria,shared,*,InsforgeUserHeaderControls,sign_in_aria,"Sign in",,active
44
+ login.back_home,shared,LoginPage,LoginPage,back_home,"Back to home",,active
45
+ login.cloud_only,shared,LoginPage,LoginPage,cloud_only,"Cloud sign-in is not configured. Use the local dashboard on localhost.",,active
46
+ login.title,shared,LoginPage,LoginPage,title,"Sign in",,active
47
+ login.subtitle,shared,LoginPage,LoginPage,subtitle,"Choose email or a connected account.",,active
48
+ login.dismiss,shared,LoginPage,LoginPage,dismiss,"Dismiss",,active
49
+ login.verify_email_success,shared,LoginPage,LoginPage,verify_ok,"Email verified. You can sign in below.",,active
50
+ login.verify_email_pending,shared,LoginPage,LoginPage,verify_pending,"Check your email to verify your account, then sign in.",,active
51
+ login.oauth.continue,shared,LoginPage,LoginPage,oauth_continue,"Continue with {{provider}}",,active
52
+ login.divider,shared,LoginPage,LoginPage,divider,"Or",,active
53
+ login.tab.sign_in,shared,LoginPage,LoginPage,tab_sign_in,"Sign in",,active
54
+ login.tab.sign_up,shared,LoginPage,LoginPage,tab_sign_up,"Create account",,active
55
+ login.field.name,shared,LoginPage,LoginPage,field_name,"Display name",,active
56
+ login.field.name_placeholder,shared,LoginPage,LoginPage,name_placeholder,"Optional",,active
57
+ login.field.email,shared,LoginPage,LoginPage,field_email,"Email",,active
58
+ login.field.password,shared,LoginPage,LoginPage,field_password,"Password",,active
59
+ login.password_hint,shared,LoginPage,LoginPage,pw_hint,"At least {{min}} characters.",,active
60
+ login.submit.sign_in,shared,LoginPage,LoginPage,submit_sign_in,"Sign in with email",,active
61
+ login.submit.sign_up,shared,LoginPage,LoginPage,submit_sign_up,"Create account",,active
62
+ login_modal.subtitle,shared,*,LoginModal,subtitle,"Sign in to join the leaderboard",,active
63
+ login_modal.continue_email,shared,*,LoginModal,continue_email,"Continue with Email",,active
64
+ login_modal.divider_email,shared,*,LoginModal,divider_email,"email",,active
65
+ shared.placeholder.short,shared,*,*,placeholder_short,"--",,active
66
+ shared.unit.percent,shared,*,*,unit_percent,"%",,active
67
+ shared.unit.thousand_abbrev,shared,*,*,unit_thousand_abbrev,"K",,active
68
+ shared.unit.million_abbrev,shared,*,*,unit_million_abbrev,"M",,active
69
+ shared.unit.billion_abbrev,shared,*,*,unit_billion_abbrev,"B",,active
70
+ shared.data_source,shared,*,*,label,"Data source: {{source}}",,active
71
+ shared.error.prefix,shared,*,*,label,"Error: {{error}}",,active
72
+ shared.status.unsynced,shared,*,*,status,"—",,active
73
+ error.boundary.title,shared,*,ErrorBoundary,title,"Something went wrong",,active
74
+ error.boundary.subtitle,shared,*,ErrorBoundary,subtitle,"This view failed to render",,active
75
+ error.boundary.hint,shared,*,ErrorBoundary,hint,"Open the console, then reload the page",,active
76
+ error.boundary.no_details,shared,*,ErrorBoundary,details,"No error details",,active
77
+ error.boundary.action.reload,shared,*,ErrorBoundary,action_reload,"Reload",,active
78
+
79
+ landing.handle.default,landing,LandingPage,LandingPage,handle_default,"VIBE_USER",,active
80
+ landing.handle.special,landing,LandingPage,LandingPage,handle_special,"VOLT",,active
81
+ landing.screenshot.alt,landing,LandingPage,LandingPage,screenshot_alt,"TokenTracker dashboard screenshot",,active
82
+ landing.nav.login,landing,LandingPage,LandingPage,nav_login,"LOGIN",,active
83
+ landing.nav.signup,landing,LandingPage,LandingPage,nav_signup,"SIGN UP",,active
84
+ landing.install.command,landing,LandingPage,LandingPage,install_command,"npx --yes @ipv9/tokentracker-cli",,active
85
+ landing.install.action.copy,landing,LandingPage,LandingPage,install_copy,"COPY COMMAND",,active
86
+ landing.install.action.copied,landing,LandingPage,LandingPage,install_copied,"COPIED",,active
87
+ landing.meta.title,landing,LandingPage,Meta,title,"Token Tracker — Token Usage Tracker for AI Agent CLIs",,active
88
+ landing.meta.description,landing,LandingPage,Meta,description,"Automatically monitor token usage across Claude Code, Cursor, Codex, and more. Local-first, privacy-focused, and zero manual configuration.",,active
89
+ landing.meta.og_site_name,landing,LandingPage,Meta,og_site_name,"Token Tracker",,active
90
+ landing.meta.og_type,landing,LandingPage,Meta,og_type,"website",,active
91
+ landing.meta.og_image,landing,LandingPage,Meta,og_image,"https://www.tokentracker.cc/dashboard-dark.png",,active
92
+ landing.meta.og_url,landing,LandingPage,Meta,og_url,"https://www.tokentracker.cc/",,active
93
+ landing.meta.twitter_card,landing,LandingPage,Meta,twitter_card,"summary_large_image",,active
94
+ share.meta.title,share,SharePage,Meta,title,"Token Tracker Share",,active
95
+ share.meta.description,share,SharePage,Meta,description,"Share a Token Tracker dashboard snapshot with token usage insights across models, projects, and time windows.",,active
96
+ share.meta.og_site_name,share,SharePage,Meta,og_site_name,"Token Tracker",,active
97
+ share.meta.og_type,share,SharePage,Meta,og_type,"website",,active
98
+ share.meta.og_image,share,SharePage,Meta,og_image,"https://www.tokentracker.cc/dashboard-dark.png",,active
99
+ share.meta.og_url,share,SharePage,Meta,og_url,"https://www.tokentracker.cc/share",,active
100
+ share.meta.twitter_card,share,SharePage,Meta,twitter_card,"summary_large_image",,active
101
+ landing.handle.placeholder,landing,LandingPage,LandingPage,handle_placeholder,"TRY '{{handle}}'",,active
102
+ landing.rank.expectation,landing,LandingPage,LandingPage,rank_expectation,"RANK_EXPECTATION: {{rank}}",,active
103
+ landing.rank.singularity,landing,LandingPage,LandingPage,rank_singularity,"APEX",,active
104
+ landing.rank.unranked,landing,LandingPage,LandingPage,rank_unranked,"UNRANKED",,active
105
+ landing.cta.primary,landing,LandingPage,LandingPage,cta_primary,"View Dashboard",,active
106
+ landing.cta.secondary,landing,LandingPage,LandingPage,cta_secondary,"GitHub",,active
107
+
108
+
109
+
110
+
111
+
112
+
113
+ landing.v2.hero.title_line1,landing,LandingPage,MarketingLanding,hero_title_1,"TRACK ALL YOUR",,active
114
+ landing.v2.hero.title_line2,landing,LandingPage,MarketingLanding,hero_title_2,"AI TOKENS",,active
115
+ landing.v2.install.mac_cta,landing,LandingPage,MarketingLanding,mac_cta,"Download for macOS",,active
116
+ landing.v2.install.win_cta,landing,LandingPage,MarketingLanding,win_cta,"Download for Windows",,active
117
+ landing.v2.install.desktop_cta,landing,LandingPage,MarketingLanding,desktop_cta,"Download desktop app",,active
118
+ landing.v2.install.os_macos,landing,LandingPage,MarketingLanding,os_macos,"macOS",,active
119
+ landing.v2.install.os_windows,landing,LandingPage,MarketingLanding,os_windows,"Windows",,active
120
+ landing.v2.install.availability,landing,LandingPage,MarketingLanding,availability,"Available for macOS and Windows",,active
121
+ landing.v2.models.title,landing,LandingPage,MarketingLanding,models_title,"SUPPORTED AI CLI TOOLS",,active
122
+ landing.v2.compare.kicker,landing,LandingPage,MarketingLanding,compare_kicker,"SEAMLESS TRACKING",,active
123
+ landing.v2.compare.title,landing,LandingPage,MarketingLanding,compare_title,"Stop guessing your AI usage.",,active
124
+ landing.v2.compare.subtitle,landing,LandingPage,MarketingLanding,compare_subtitle,"AI CLI tools hide raw usage data in obscure local files. TokenTracker consolidates them into a local-first dashboard in real-time.",,active
125
+ landing.v2.distill.body,landing,LandingPage,MarketingLanding,distill_body,"100% local processing. No prompts or code are ever collected.",,active
126
+ landing.v2.compare.with.title,landing,LandingPage,MarketingLanding,with_title,"WITH TOKEN TRACKER",,active
127
+ landing.v2.compare.with.p1,landing,LandingPage,MarketingLanding,with_p1,"Centralized usage dashboard",,active
128
+ landing.v2.compare.with.p2,landing,LandingPage,MarketingLanding,with_p2,"Real-time token metrics",,active
129
+ landing.v2.compare.with.p3,landing,LandingPage,MarketingLanding,with_p3,"100% local, privacy-guaranteed",,active
130
+ landing.v2.compare.with.p4,landing,LandingPage,MarketingLanding,with_p4,"Multi-client terminal audit trail",,active
131
+ landing.v2.compare.without.title,landing,LandingPage,MarketingLanding,without_title,"WITHOUT IT",,active
132
+ landing.v2.compare.without.p1,landing,LandingPage,MarketingLanding,without_p1,"Scattered JSON log files",,active
133
+ landing.v2.compare.without.p2,landing,LandingPage,MarketingLanding,without_p2,"Blind to token consumption",,active
134
+ landing.v2.compare.without.p3,landing,LandingPage,MarketingLanding,without_p3,"Unexpected API bills",,active
135
+ landing.v2.compare.without.p4,landing,LandingPage,MarketingLanding,without_p4,"Zero historical audit logs",,active
136
+ landing.v2.footer.line,landing,LandingPage,MarketingLanding,footer_line,"Token Tracker — Made by developers, for developers.",,active
137
+ landing.v2.nav.status,landing,LandingPage,MarketingLanding,nav_status,"Status",,active
138
+ landing.v2.nav.github,landing,LandingPage,MarketingLanding,nav_github,"GitHub",,active
139
+ landing.v2.models.agent.codex,landing,LandingPage,MarketingLanding,agent_codex,"CODEX",,active
140
+ landing.v2.models.agent.claude_code,landing,LandingPage,MarketingLanding,agent_claude_code,"CLAUDE CODE",,active
141
+ landing.v2.models.agent.cursor,landing,LandingPage,MarketingLanding,agent_cursor,"CURSOR",,active
142
+ landing.v2.models.agent.gemini,landing,LandingPage,MarketingLanding,agent_gemini,"GEMINI",,active
143
+ landing.v2.models.agent.opencode,landing,LandingPage,MarketingLanding,agent_opencode,"OPENCODE",,active
144
+ landing.v2.models.agent.openclaw,landing,LandingPage,MarketingLanding,agent_openclaw,"OPENCLAW",,active
145
+ landing.v2.cta.primary,landing,LandingPage,MarketingLanding,cta_primary,"Dashboard",,active
146
+ landing.v2.hero.subtagline,landing,LandingPage,MarketingLanding,hero_subtagline,"Automatically monitor token usage across Claude Code, Cursor, Codex, and more. Local-first, privacy-focused, and zero manual configuration.",,active
147
+
148
+
149
+
150
+
151
+ identity_card.rank_label,ui,IdentityCard,IdentityCard,rank_label,"Started",,active
152
+ identity_card.streak_label,ui,IdentityCard,IdentityCard,streak_label,"Active days",,active
153
+ identity_card.rank_placeholder,ui,IdentityCard,IdentityCard,rank_placeholder,"—",,active
154
+ identity_card.streak_value,ui,IdentityCard,IdentityCard,streak_value,"{{days}} DAY",,active
155
+
156
+
157
+ dashboard.core_index.collapse_label,dashboard,DashboardPage,UsagePanel,toggle,"▾",,active
158
+ dashboard.core_index.expand_label,dashboard,DashboardPage,UsagePanel,toggle,"▸",,active
159
+ dashboard.core_index.collapse_aria,dashboard,DashboardPage,UsagePanel,toggle_aria,"Collapse model breakdown",,active
160
+ dashboard.core_index.expand_aria,dashboard,DashboardPage,UsagePanel,toggle_aria,"Expand model breakdown",,active
161
+ usage.summary.total,ui,UsagePanel,UsagePanel,summary_label_total,"Total tokens",,active
162
+ usage.summary.updated_at,ui,UsagePanel,UsagePanel,summary_updated_at,"Updated {{timestamp}}",,active
163
+ usage.metric.total,ui,UsagePanel,UsagePanel,metric_total,"Total",,active
164
+ usage.metric.input,ui,UsagePanel,UsagePanel,metric_input,"Input",,active
165
+ usage.metric.output,ui,UsagePanel,UsagePanel,metric_output,"Output",,active
166
+ usage.metric.cached_input,ui,UsagePanel,UsagePanel,metric_cached_input,"Cached input",,active
167
+ usage.metric.reasoning_output,ui,UsagePanel,UsagePanel,metric_reasoning_output,"Reasoning output",,active
168
+ usage.button.refresh,ui,UsagePanel,UsagePanel,button_refresh,"Refresh",,active
169
+
170
+ dashboard.rolling.title,ui,RollingUsagePanel,RollingUsagePanel,title,"Recent Activity",,active
171
+ dashboard.rolling.last_7d,ui,RollingUsagePanel,RollingUsagePanel,label_last_7d,"Last 7 days",,active
172
+ dashboard.rolling.last_30d,ui,RollingUsagePanel,RollingUsagePanel,label_last_30d,"Last 30 days",,active
173
+ dashboard.rolling.avg_active_day,ui,RollingUsagePanel,RollingUsagePanel,label_avg_active_day,"Daily average",,active
174
+
175
+ dashboard.projects.title,ui,ProjectUsagePanel,ProjectUsagePanel,title,"Project Usage",,active
176
+ dashboard.projects.tokens_label,ui,ProjectUsagePanel,ProjectUsagePanel,tokens_label,"Tokens",,active
177
+ dashboard.projects.stars_label,ui,ProjectUsagePanel,ProjectUsagePanel,stars_label,"STAR",,active
178
+ dashboard.projects.limit_label,ui,ProjectUsagePanel,ProjectUsagePanel,limit_label,"Show",,active
179
+ dashboard.projects.limit_aria,ui,ProjectUsagePanel,ProjectUsagePanel,limit_aria,"Select repository limit",,active
180
+ dashboard.projects.limit_top_3,ui,ProjectUsagePanel,ProjectUsagePanel,limit_top_3,"TOP 3",,active
181
+ dashboard.projects.limit_top_6,ui,ProjectUsagePanel,ProjectUsagePanel,limit_top_6,"TOP 6",,active
182
+ dashboard.projects.limit_top_10,ui,ProjectUsagePanel,ProjectUsagePanel,limit_top_10,"TOP 10",,active
183
+ dashboard.projects.empty,ui,ProjectUsagePanel,ProjectUsagePanel,empty,"No public repositories",,active
184
+ dashboard.widgets.title,dashboard,DashboardPage,WidgetOnboardingCard,title,"Desktop Widgets",,active
185
+ dashboard.widgets.hint,dashboard,DashboardPage,WidgetOnboardingCard,hint,"Right-click your desktop → Edit Widgets → search ""TokenTracker""",,active
186
+ dashboard.widgets.dismiss_aria,dashboard,DashboardPage,WidgetOnboardingCard,dismiss_aria,"Dismiss widget intro",,active
187
+ widgets.page.title,dashboard,WidgetsPage,WidgetsPage,title,"Widgets",,active
188
+ widgets.cta.open_gallery,dashboard,WidgetsPage,WidgetsPage,cta_open_gallery,"Open Widget Gallery",,active
189
+ widgets.cta.download,dashboard,WidgetsPage,WidgetsPage,cta_download,"Download Mac App",,active
190
+ widgets.cta.macos_only,dashboard,WidgetsPage,WidgetsPage,cta_macos_only,"macOS only",,active
191
+ widgets.menubar.section.title,dashboard,WidgetsPage,WidgetsPage,menubar_section_title,"Menu Bar",,active
192
+ widgets.gallery.section.title,dashboard,WidgetsPage,WidgetsPage,gallery_section_title,"Desktop Widgets",,active
193
+ widgets.summary.name,dashboard,WidgetsPage,WidgetsPage,summary_name,"Usage Summary",,active
194
+ widgets.summary.description,dashboard,WidgetsPage,WidgetsPage,summary_desc,"Today and seven-day usage with a compact sparkline.",,active
195
+ widgets.heatmap.name,dashboard,WidgetsPage,WidgetsPage,heatmap_name,"Activity Heatmap",,active
196
+ widgets.heatmap.description,dashboard,WidgetsPage,WidgetsPage,heatmap_desc,"GitHub-style daily calendar. Spot streaks and quiet days at a glance.",,active
197
+ widgets.topModels.name,dashboard,WidgetsPage,WidgetsPage,topmodels_name,"Top Models",,active
198
+ widgets.topModels.description,dashboard,WidgetsPage,WidgetsPage,topmodels_desc,"Your heaviest-used models ranked by token share.",,active
199
+ widgets.limits.name,dashboard,WidgetsPage,WidgetsPage,limits_name,"Usage Limits",,active
200
+ widgets.limits.description,dashboard,WidgetsPage,WidgetsPage,limits_desc,"Live rate-limit progress for Claude, Codex, Cursor, Gemini and more.",,active
201
+ dashboard.cost_breakdown.title,ui,CostAnalysisModal,CostAnalysisModal,title,"Cost Breakdown",,active
202
+ dashboard.cost_breakdown.total_label,ui,CostAnalysisModal,CostAnalysisModal,total_label,"Estimated Total Cost",,active
203
+ dashboard.cost_breakdown.close,ui,CostAnalysisModal,CostAnalysisModal,close_label,"Close",,active
204
+
205
+
206
+ trend.monitor.label,ui,TrendMonitor,TrendMonitor,label,"Usage Trend",,active
207
+ trend.zoom.open_aria,ui,TrendMonitor,TrendMonitor,zoom_open_aria,"Expand to full screen",,active
208
+ trend.zoom.close_aria,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_close_aria,"Close",,active
209
+ trend.zoom.badge,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_badge,"Trend Insight",,active
210
+ trend.zoom.desc,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_desc,"Hover any bar to inspect tokens, cost and conversations. Switch granularity to drill from months down to half-hours.",,active
211
+ trend.zoom.insight_badge,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_insight_badge,"Insight",,active
212
+ trend.zoom.tooltip.cost,ui,TrendMonitor,TrendMonitor,zoom_tooltip_cost,"cost",,active
213
+ trend.zoom.tooltip.conversations,ui,TrendMonitor,TrendMonitor,zoom_tooltip_conversations,"conversations",,active
214
+ trend.zoom.stats.tokens,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_stats_tokens,"Total Tokens",,active
215
+ trend.zoom.stats.cost,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_stats_cost,"Total Cost",,active
216
+ trend.zoom.stats.conversations,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_stats_conversations,"Conversations",,active
217
+ trend.zoom.stats.peak,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_stats_peak,"Peak Bucket",,active
218
+ trend.zoom.gran.aria,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_gran_aria,"Granularity",,active
219
+ trend.zoom.gran.30min,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_gran_30min,"30 min",,active
220
+ trend.zoom.gran.day,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_gran_day,"Day",,active
221
+ trend.zoom.gran.month,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_gran_month,"Month",,active
222
+ trend.zoom.prev_day,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_prev_day,"Previous day",,active
223
+ trend.zoom.next_day,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_next_day,"Next day",,active
224
+ trend.zoom.loading,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_loading,"Loading…",,active
225
+ trend.zoom.pick_day,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_pick_day,"Pick a day",,active
226
+ trend.zoom.pick_range,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_pick_range,"Pick a date range",,active
227
+ trend.zoom.insight.empty,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_insight_empty,"A quiet stretch. Not a single token crossed the wire.",,active
228
+ trend.zoom.insight.calm,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_insight_calm,"Light touch. The model mostly sat on standby, waking only when you reached for it.",,active
229
+ trend.zoom.insight.steady,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_insight_steady,"A steady rhythm across {{active}} active stretches, cresting at {{peak}}. The kind of pace that ships things without drama.",,active
230
+ trend.zoom.insight.heavy,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_insight_heavy,"Heavy lifting: {{active}} stretches running hot, peaking at {{peak}}. This is output from someone who manufactures momentum instead of waiting for it.",,active
231
+ trend.zoom.insight.massive,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_insight_massive,"Industrial scale. A {{peak}} peak and throughput that never cools. At this volume you are not using the model, you are running a foundry.",,active
232
+
233
+ heatmap.title,ui,ActivityHeatmap,ActivityHeatmap,title,"Activity Heatmap",,active
234
+ heatmap.empty,ui,ActivityHeatmap,ActivityHeatmap,empty_state,"No activity data yet.",,active
235
+ heatmap.legend.less,ui,ActivityHeatmap,ActivityHeatmap,legend_less,"Less",,active
236
+ heatmap.legend.more,ui,ActivityHeatmap,ActivityHeatmap,legend_more,"More",,active
237
+ heatmap.legend.utc,ui,ActivityHeatmap,ActivityHeatmap,legend_utc,"UTC",,active
238
+ heatmap.tooltip,ui,ActivityHeatmap,ActivityHeatmap,tooltip,"{{day}} • {{value}} {{unit}} • {{tz}}",,active
239
+ heatmap.unit.tokens,ui,ActivityHeatmap,ActivityHeatmap,unit_tokens,"tokens",,active
240
+ heatmap.iso.aria,ui,ActivityHeatmap,ActivityHeatmap3D,iso_aria,"3D isometric activity heatmap",,active
241
+ heatmap.view.2d,ui,ActivityHeatmap,ActivityHeatmap,view_2d,"2D",,active
242
+ heatmap.view.3d,ui,ActivityHeatmap,ActivityHeatmap,view_3d,"3D",,active
243
+ heatmap.month.jan,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Jan",,active
244
+ heatmap.month.feb,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Feb",,active
245
+ heatmap.month.mar,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Mar",,active
246
+ heatmap.month.apr,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Apr",,active
247
+ heatmap.month.may,ui,ActivityHeatmap,ActivityHeatmap,month_label,"May",,active
248
+ heatmap.month.jun,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Jun",,active
249
+ heatmap.month.jul,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Jul",,active
250
+ heatmap.month.aug,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Aug",,active
251
+ heatmap.month.sep,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Sep",,active
252
+ heatmap.month.oct,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Oct",,active
253
+ heatmap.month.nov,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Nov",,active
254
+ heatmap.month.dec,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Dec",,active
255
+ heatmap.day.sun,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Sun",,active
256
+ heatmap.day.mon,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Mon",,active
257
+ heatmap.day.tue,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Tue",,active
258
+ heatmap.day.wed,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Wed",,active
259
+ heatmap.day.thu,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Thu",,active
260
+ heatmap.day.fri,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Fri",,active
261
+ heatmap.day.sat,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Sat",,active
262
+
263
+
264
+
265
+
266
+ daily.sort.date.label,dashboard,DashboardPage,DailyTable,sort_label,"Date",,active
267
+ daily.sort.date.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Date",,active
268
+ daily.sort.total.label,dashboard,DashboardPage,DailyTable,sort_label,"Total",,active
269
+ daily.sort.total.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Total",,active
270
+ daily.sort.input.label,dashboard,DashboardPage,DailyTable,sort_label,"Input",,active
271
+ daily.sort.input.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Input",,active
272
+ daily.sort.output.label,dashboard,DashboardPage,DailyTable,sort_label,"Output",,active
273
+ daily.sort.output.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Output",,active
274
+ daily.sort.cached.label,dashboard,DashboardPage,DailyTable,sort_label,"Cached",,active
275
+ daily.sort.cached.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Cached input",,active
276
+ daily.sort.reasoning.label,dashboard,DashboardPage,DailyTable,sort_label,"Reasoning",,active
277
+ daily.sort.reasoning.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Reasoning output",,active
278
+ daily.sort.conversations.label,dashboard,DashboardPage,DailyTable,sort_label,"Convs",,active
279
+ daily.sort.conversations.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Conversations",,active
280
+ details.pagination.prev,dashboard,DashboardPage,DailyTable,pagination_prev,"Prev",,active
281
+ details.pagination.next,dashboard,DashboardPage,DailyTable,pagination_next,"Next",,active
282
+
283
+
284
+
285
+ leaderboard.profile.nav.back,dashboard,LeaderboardProfilePage,Header,nav_back,"Leaderboard",,active
286
+ leaderboard.profile.hero.rank_label,dashboard,LeaderboardProfilePage,Hero,rank_label,"Rank",,active
287
+ leaderboard.title,dashboard,LeaderboardPage,LeaderboardPage,title,"Leaderboard",,active
288
+ leaderboard.range,dashboard,LeaderboardPage,LeaderboardPage,range,"UTC {{period}} · {{from}} – {{to}}",,active
289
+ leaderboard.range_loading,dashboard,LeaderboardPage,LeaderboardPage,range_loading,"UTC {{period}} · …",,active
290
+ leaderboard.range.total,dashboard,LeaderboardPage,LeaderboardPage,range_total,"All time",,active
291
+ leaderboard.generated_at,dashboard,LeaderboardPage,LeaderboardPage,generated_at,"Updated {{ts}}",,active
292
+ leaderboard.period.week,dashboard,LeaderboardPage,LeaderboardPage,period_week,"Week",,active
293
+ leaderboard.period.month,dashboard,LeaderboardPage,LeaderboardPage,period_month,"Month",,active
294
+ leaderboard.period.total,dashboard,LeaderboardPage,LeaderboardPage,period_total,"All",,active
295
+
296
+ leaderboard.me_label,dashboard,LeaderboardPage,LeaderboardPage,me_label,"You",,active
297
+ leaderboard.anon_label,dashboard,LeaderboardPage,LeaderboardPage,anon_label,"Anonymous",,active
298
+ leaderboard.error.unknown,dashboard,LeaderboardPage,LeaderboardPage,error_unknown,"Unknown error",,active
299
+
300
+
301
+
302
+ leaderboard.loading,dashboard,LeaderboardPage,LeaderboardPage,state_loading,"Loading…",,active
303
+ leaderboard.empty,dashboard,LeaderboardPage,LeaderboardPage,state_empty,"No data",,active
304
+
305
+ leaderboard.column.rank,dashboard,LeaderboardPage,LeaderboardPage,column_rank,"Rank",,active
306
+ leaderboard.column.user,dashboard,LeaderboardPage,LeaderboardPage,column_user,"User",,active
307
+ leaderboard.column.total,dashboard,LeaderboardPage,LeaderboardPage,column_total,"Total",,active
308
+ leaderboard.column.codex,dashboard,LeaderboardPage,LeaderboardPage,column_codex,"Codex",,active
309
+ leaderboard.column.claude,dashboard,LeaderboardPage,LeaderboardPage,column_claude,"Claude",,active
310
+ leaderboard.column.gemini,dashboard,LeaderboardPage,LeaderboardPage,column_gemini,"Gemini",,active
311
+ leaderboard.column.cursor,dashboard,LeaderboardPage,LeaderboardPage,column_cursor,"Cursor",,active
312
+ leaderboard.column.opencode,dashboard,LeaderboardPage,LeaderboardPage,column_opencode,"OpenCode",,active
313
+ leaderboard.column.openclaw,dashboard,LeaderboardPage,LeaderboardPage,column_openclaw,"OpenClaw",,active
314
+ leaderboard.column.hermes,dashboard,LeaderboardPage,LeaderboardPage,column_hermes,"Hermes",,active
315
+ leaderboard.column.kiro,dashboard,LeaderboardPage,LeaderboardPage,column_kiro,"Kiro",,active
316
+ leaderboard.column.copilot,dashboard,LeaderboardPage,LeaderboardPage,column_copilot,"GitHub Copilot",,active
317
+ leaderboard.column.kimi,dashboard,LeaderboardPage,LeaderboardPage,column_kimi,"Kimi Code",,active
318
+ leaderboard.column.kilo-cli,dashboard,LeaderboardPage,LeaderboardPage,column_kilo_cli,"Kilo CLI",,active
319
+ leaderboard.column.kilo-code,dashboard,LeaderboardPage,LeaderboardPage,column_kilo_code,"Kilo Code",,active
320
+ limits.copilot.otelHint.title,dashboard,LimitsPage,LimitsPage,otel_hint_title,"Track Copilot token usage",,active
321
+ limits.copilot.otelHint.body,dashboard,LimitsPage,LimitsPage,otel_hint_body,"Limits load via your GitHub OAuth token. To also record per-token usage, enable Copilot's OpenTelemetry export and add these lines to your shell profile (~/.zshrc or ~/.bashrc):",,active
322
+ limits.copilot.otelHint.copy,dashboard,LimitsPage,LimitsPage,otel_hint_copy,"Copy",,active
323
+ limits.copilot.otelHint.copied,dashboard,LimitsPage,LimitsPage,otel_hint_copied,"Copied",,active
324
+ leaderboard.column.supplemental,dashboard,LeaderboardPage,LeaderboardPage,column_supplemental,"Supplemental",,active
325
+
326
+
327
+ leaderboard.pagination.prev,dashboard,LeaderboardPage,LeaderboardPage,pagination_prev,"Previous",,active
328
+ leaderboard.pagination.next,dashboard,LeaderboardPage,LeaderboardPage,pagination_next,"Next",,active
329
+ leaderboard.pagination.ellipsis,dashboard,LeaderboardPage,LeaderboardPage,pagination_ellipsis,"…",,active
330
+ leaderboard.pagination.page_unknown,dashboard,LeaderboardPage,LeaderboardPage,pagination_unknown,"Page {{page}}",,active
331
+
332
+
333
+
334
+
335
+ dashboard.session_expired.copy_label,dashboard,DashboardPage,AsciiBox,body,"run npx --yes @ipv9/tokentracker-cli init",,active
336
+ dashboard.session_expired.copied,dashboard,DashboardPage,AsciiBox,body,"copied",,active
337
+
338
+
339
+ dashboard.install.prompt,dashboard,DashboardPage,AsciiBox,install_prompt,"Install Node.js 18+ then run:",,active
340
+ dashboard.install.cmd.init,dashboard,DashboardPage,AsciiBox,install_cmd,"npx --yes @ipv9/tokentracker-cli init",,active
341
+ dashboard.install.cmd.init_link_code,dashboard,DashboardPage,AsciiBox,install_cmd,"npx --yes @ipv9/tokentracker-cli init --link-code {{link_code}}",,active
342
+ dashboard.install.copy,dashboard,DashboardPage,AsciiBox,install_copy,"Copy install command",,active
343
+ dashboard.install.copy_base,dashboard,DashboardPage,AsciiBox,install_copy,"Copy init command",,active
344
+ dashboard.install.copied,dashboard,DashboardPage,AsciiBox,install_copy,"Copied to clipboard",,active
345
+ dashboard.install.link_code.loading,dashboard,DashboardPage,AsciiBox,install_status,"Generating private code...",,active
346
+ dashboard.install.link_code.failed,dashboard,DashboardPage,AsciiBox,install_status,"Private code unavailable",,active
347
+ dashboard.install.cmd.sync,dashboard,DashboardPage,AsciiBox,install_cmd,"npx --yes @ipv9/tokentracker-cli sync",,active
348
+
349
+
350
+
351
+ dashboard.daily.title,dashboard,DashboardPage,AsciiBox,title,"Daily Breakdown",,active
352
+ dashboard.daily.empty,dashboard,DashboardPage,AsciiBox,empty_state,"No data yet. Use your AI CLI then run {{cmd}}.",,active
353
+
354
+ dashboard.identity.title,dashboard,DashboardPage,IdentityCard,title,"Your Profile",,active
355
+ dashboard.identity.subtitle,dashboard,DashboardPage,IdentityCard,subtitle,"Track your coding journey",,active
356
+ dashboard.identity.fallback,dashboard,DashboardPage,IdentityCard,handle_fallback,"Anonymous",,active
357
+
358
+
359
+ dashboard.screenshot.title_line1,dashboard,DashboardPage,ScreenshotTitle,title_line,"Coding Agent",,active
360
+ dashboard.screenshot.title_line2,dashboard,DashboardPage,ScreenshotTitle,title_line,"2025 Wrapped",,active
361
+ dashboard.screenshot.twitter_button,dashboard,DashboardPage,ScreenshotShare,button_label,"Share on X",,active
362
+ dashboard.screenshot.twitter_label,dashboard,DashboardPage,ScreenshotShare,aria_label,"Share on X",,active
363
+ dashboard.screenshot.twitter_hint,dashboard,DashboardPage,ScreenshotShare,helper_text,"Auto-copies image to clipboard",,active
364
+ dashboard.screenshot.twitter_text,dashboard,DashboardPage,ScreenshotShare,share_text,"{{total_tokens}} tokens on the record.\\n{{model_name}} led with {{model_percent}}%.\\n\\nMy AI usage, unaudited →\\ntokentracker.cc",,active
365
+
366
+ nav.usage,shared,*,Sidebar,nav_usage,"Tokens",,active
367
+ nav.limits,shared,*,Sidebar,nav_limits,"Limits",,active
368
+ nav.widgets,shared,*,Sidebar,nav_widgets,"macOS Widgets",,active
369
+ nav.leaderboard,shared,*,Sidebar,nav_leaderboard,"Leaderboard",,active
370
+ nav.collapse,shared,*,Sidebar,nav_collapse,"Collapse sidebar",,active
371
+ nav.expand,shared,*,Sidebar,nav_expand,"Expand sidebar",,active
372
+ nav.menu,shared,*,Sidebar,nav_menu,"Open navigation menu",,active
373
+ nav.close_menu,shared,*,Sidebar,nav_close_menu,"Close navigation menu",,active
374
+ nav.aside_label,shared,*,Sidebar,aside_label,"Main navigation",,active
375
+ nav.nav_label,shared,*,Sidebar,nav_label,"Primary",,active
376
+ nav.version,shared,*,Sidebar,version,"Token Tracker version {{version}}",,active
377
+ limits.page.subtitle,ui,LimitsPage,LimitsPage,subtitle,"Rate limits and quota usage across your AI tools.",,active
378
+ limits.settings.toggle_visible,ui,LimitsPage,LimitsSettingsPanel,toggle_visible,"Toggle visibility",,active
379
+ limits.settings.display_mode_label,ui,LimitsPage,LimitsSettingsPanel,display_mode_label,"Usage",,active
380
+ limits.settings.display_mode_used,ui,LimitsPage,LimitsSettingsPanel,display_mode_used,"Used",,active
381
+ limits.settings.display_mode_remaining,ui,LimitsPage,LimitsSettingsPanel,display_mode_remaining,"Remaining",,active
382
+ limits.page.openSettings,ui,LimitsPage,LimitsPage,open_settings,"Display settings",,active
383
+ nav.group.general,shared,*,Sidebar,group_general,"General",,active
384
+ nav.group.tools,shared,*,Sidebar,group_tools,"Tools",,active
385
+ nav.group.account,shared,*,Sidebar,group_account,"Account",,active
386
+ nav.settings,shared,*,Sidebar,nav_settings,"Settings",,active
387
+ header.auth.open_settings,shared,*,InsforgeUserHeaderControls,open_settings,"Open settings",,active
388
+ settings.page.title,ui,SettingsPage,SettingsPage,title,"Settings",,active
389
+ settings.page.subtitle,ui,SettingsPage,SettingsPage,subtitle,"Manage your account, appearance, and display preferences.",,active
390
+ settings.section.appearance,ui,SettingsPage,SettingsPage,sec_appearance,"Appearance",,active
391
+ settings.section.account,ui,SettingsPage,SettingsPage,sec_account,"Account",,active
392
+ settings.section.limits,ui,SettingsPage,SettingsPage,sec_limits,"Limits Display",,active
393
+ settings.appearance.theme.label,ui,SettingsPage,SettingsPage,theme_label,"Theme",,active
394
+ settings.appearance.theme.hint,ui,SettingsPage,SettingsPage,theme_hint,"Choose how Token Tracker looks across the dashboard.",,active
395
+ settings.appearance.theme.light,ui,SettingsPage,SettingsPage,theme_light,"Light",,active
396
+ settings.appearance.theme.dark,ui,SettingsPage,SettingsPage,theme_dark,"Dark",,active
397
+ settings.appearance.theme.system,ui,SettingsPage,SettingsPage,theme_system,"System",,active
398
+ settings.appearance.currency.label,ui,SettingsPage,SettingsPage,currency_label,"Currency",,active
399
+ settings.appearance.currency.hint,ui,SettingsPage,SettingsPage,currency_hint,"Select the display currency for usage costs.",,active
400
+ settings.appearance.currency.opt.usd,ui,SettingsPage,SettingsPage,currency_opt_usd,"USD ($)",,active
401
+ settings.appearance.currency.opt.eur,ui,SettingsPage,SettingsPage,currency_opt_eur,"EUR (€)",,active
402
+ settings.appearance.currency.opt.gbp,ui,SettingsPage,SettingsPage,currency_opt_gbp,"GBP (£)",,active
403
+ settings.appearance.currency.opt.cny,ui,SettingsPage,SettingsPage,currency_opt_cny,"CNY (¥)",,active
404
+ settings.appearance.currency.opt.jpy,ui,SettingsPage,SettingsPage,currency_opt_jpy,"JPY (¥)",,active
405
+ settings.appearance.currency.opt.hkd,ui,SettingsPage,SettingsPage,currency_opt_hkd,"HKD (HK$)",,active
406
+ settings.appearance.currency.rate_source.default,ui,SettingsPage,SettingsPage,rate_source_default,"Bundled default rate",,active
407
+ settings.appearance.currency.rate_source.fetched,ui,SettingsPage,SettingsPage,rate_source_fetched,"Source: open.er-api.com",,active
408
+ settings.appearance.currency.rate_updated,ui,SettingsPage,SettingsPage,rate_updated,"updated {{when}}",,active
409
+ settings.appearance.currency.rate_never,ui,SettingsPage,SettingsPage,rate_never,"awaiting first refresh",,active
410
+ settings.account.displayName,ui,SettingsPage,SettingsPage,display_name,"Display name",,active
411
+ settings.account.edit,ui,SettingsPage,SettingsPage,edit,"Edit",,active
412
+ settings.account.save,ui,SettingsPage,SettingsPage,save,"Save",,active
413
+ settings.account.saving,ui,SettingsPage,SettingsPage,saving,"Saving...",,active
414
+ settings.account.cancel,ui,SettingsPage,SettingsPage,cancel,"Cancel",,active
415
+ settings.account.userId,ui,SettingsPage,SettingsPage,user_id,"User ID",,active
416
+ settings.account.copyUserId,ui,SettingsPage,SettingsPage,copy_user_id,"Copy user ID",,active
417
+ settings.account.copy,ui,SettingsPage,SettingsPage,copy,"Copy",,active
418
+ settings.account.copied,ui,SettingsPage,SettingsPage,copied,"Copied",,active
419
+ settings.account.cloudSync,ui,SettingsPage,SettingsPage,cloud_sync,"Cloud sync",,active
420
+ settings.account.cloudSyncHint,ui,SettingsPage,SettingsPage,cloud_sync_hint,"Upload local usage to your Token Tracker cloud account.",,active
421
+ settings.account.publicProfile,ui,SettingsPage,SettingsPage,public_profile,"Public profile",,active
422
+ settings.account.publicProfileHint,ui,SettingsPage,SettingsPage,public_profile_hint,"Show your usage on the public leaderboard.",,active
423
+ settings.account.displayNameAnonymousHint,ui,SettingsPage,SettingsPage,display_name_anon_hint,"Anonymous — your name and avatar are hidden on the leaderboard",,active
424
+ settings.account.displayNameDisabledWhileAnon,ui,SettingsPage,SettingsPage,display_name_disabled,"Turn on the switch first to edit your name",,active
425
+ settings.account.githubUrl,ui,SettingsPage,SettingsPage,github_url,"GitHub profile",,active
426
+ settings.account.githubUrlHint,ui,SettingsPage,SettingsPage,github_url_hint,"Show a GitHub link next to your name on the leaderboard.",,active
427
+ settings.account.githubUrlPlaceholder,ui,SettingsPage,SettingsPage,github_url_placeholder,"username or https://github.com/username",,active
428
+ settings.account.githubUrlInvalid,ui,SettingsPage,SettingsPage,github_url_invalid,"Use a GitHub username or https://github.com/username URL.",,active
429
+ leaderboard.github.aria,ui,LeaderboardPage,LeaderboardPage,github_aria,"Open GitHub profile",,active
430
+ auth.callback.processing,ui,*,NativeAuthCallbackPage,processing,"Processing…",,active
431
+ auth.callback.success,ui,*,NativeAuthCallbackPage,success,"Signed in successfully",,active
432
+ auth.callback.redirecting,ui,*,NativeAuthCallbackPage,redirecting,"Returning to TokenTracker…",,active
433
+ auth.callback.failed,ui,*,NativeAuthCallbackPage,failed,"Sign-in incomplete. Please try again.",,active
434
+ auth.callback.close,ui,*,NativeAuthCallbackPage,close,"Close this page",,active
435
+ stats.period.today,ui,DashboardPage,StatsPanel,period_today,"today convs",,active
436
+ stats.period.last24h,ui,DashboardPage,StatsPanel,period_last24h,"24h convs",,active
437
+ stats.period.week,ui,DashboardPage,StatsPanel,period_week,"7d convs",,active
438
+ stats.period.month,ui,DashboardPage,StatsPanel,period_month,"30d convs",,active
439
+ stats.period.all,ui,DashboardPage,StatsPanel,period_all,"all convs",,active
440
+ stats.period.convs,ui,DashboardPage,StatsPanel,period_convs,"convs",,active
441
+ leaderboard.column.est_cost,ui,LeaderboardPage,LeaderboardPage,column_est_cost,"Est. Cost",,active
442
+ leaderboard.signin_prompt,ui,LeaderboardPage,LeaderboardPage,signin_prompt,"Sign in to join the leaderboard",,active
443
+ leaderboard.signin_button,ui,LeaderboardPage,LeaderboardPage,signin_button,"Sign In",,active
444
+ leaderboard.sync_prompt,ui,LeaderboardPage,LeaderboardPage,sync_prompt,"Enable Cloud Sync to appear in rankings",,active
445
+ leaderboard.sync_button.idle,ui,LeaderboardPage,LeaderboardPage,sync_button_idle,"Enable & Sync",,active
446
+ leaderboard.sync_button.busy,ui,LeaderboardPage,LeaderboardPage,sync_button_busy,"Syncing...",,active
447
+ leaderboard.pagination.page_size_label,ui,LeaderboardPage,LeaderboardPage,page_size_label,"Rows per page",,active
448
+ leaderboard.github.tooltipAction,ui,LeaderboardPage,LeaderboardPage,github_tooltip_action,"Click to open GitHub profile",,active
449
+ leaderboard.github.tooltipPrefix,ui,LeaderboardPage,LeaderboardPage,github_tooltip_prefix,"Set yours in",,active
450
+ leaderboard.github.tooltipSettingsLink,ui,LeaderboardPage,LeaderboardPage,github_tooltip_link,"Settings",,active
451
+ leaderboard.github.tooltipSuffix,ui,LeaderboardPage,LeaderboardPage,github_tooltip_suffix," to appear here",,active
452
+ leaderboard.summary.percentile,ui,LeaderboardPage,LeaderboardMeChip,summary_percentile,"Top {{p}}%",,active
453
+ leaderboard.summary.jump_to_me,ui,LeaderboardPage,LeaderboardMeChip,summary_jump_to_me,"Jump to my row",,active
454
+ leaderboard.summary.view_profile,ui,LeaderboardPage,LeaderboardMeChip,summary_view_profile,"View your profile",,active
455
+ settings.account.signOut,ui,SettingsPage,SettingsPage,sign_out,"Sign out",,active
456
+ settings.account.signIn,ui,SettingsPage,SettingsPage,sign_in,"Sign in",,active
457
+ settings.account.signedOutHint,ui,SettingsPage,SettingsPage,signed_out_hint,"Sign in to manage cloud sync and leaderboard preferences.",,active
458
+ settings.section.menubar,ui,SettingsPage,SettingsPage,sec_menubar,"Menu Bar App",,active
459
+ settings.menubar.showStats,ui,SettingsPage,SettingsPage,mb_show_stats,"Show stats in menu bar",,active
460
+ settings.menubar.showStatsHint,ui,SettingsPage,SettingsPage,mb_show_stats_hint,"Display today's token count and cost beside the menu bar icon.",,active
461
+ settings.menubar.animatedIcon,ui,SettingsPage,SettingsPage,mb_anim,"Animated icon",,active
462
+ settings.menubar.animatedIconHint,ui,SettingsPage,SettingsPage,mb_anim_hint,"Blink the Clawd character and play the syncing animation in the menu bar.",,active
463
+ settings.menubar.launchAtLogin,ui,SettingsPage,SettingsPage,mb_login,"Launch at login",,active
464
+ settings.menubar.launchAtLoginHint,ui,SettingsPage,SettingsPage,mb_login_hint,"Start TokenTrackerBar automatically when you sign in to macOS.",,active
465
+ settings.menubar.syncNow,ui,SettingsPage,SettingsPage,mb_sync_now,"Sync now",,active
466
+ settings.menubar.syncNowHint,ui,SettingsPage,SettingsPage,mb_sync_now_hint,"Trigger an immediate parse and upload of local AI tool logs.",,active
467
+ settings.menubar.syncing,ui,SettingsPage,SettingsPage,mb_syncing,"Syncing…",,active
468
+ settings.menubar.updates,ui,SettingsPage,SettingsPage,mb_updates,"Updates",,active
469
+ settings.menubar.checkUpdates,ui,SettingsPage,SettingsPage,mb_check_updates,"Check for updates",,active
470
+ settings.footer.statusPage,ui,SettingsPage,NativeAppFooter,status_page,"System status",,active
471
+ menubar.slot.primary,ui,WidgetsPage,MenuBarDisplayCard,slot_primary,"Primary slot",,active
472
+ menubar.slot.secondary,ui,WidgetsPage,MenuBarDisplayCard,slot_secondary,"Secondary slot",,active
473
+ menubar.native_only,ui,WidgetsPage,MenuBarDisplayCard,native_only,"Open TokenTrackerBar for macOS to edit the live menu bar display.",,active
474
+ menubar.metric.today_tokens,ui,WidgetsPage,MenuBarDisplayCard,metric_today_tokens,"Today Tokens",,active
475
+ menubar.metric.today_cost,ui,WidgetsPage,MenuBarDisplayCard,metric_today_cost,"Today Cost",,active
476
+ menubar.metric.last_7d_tokens,ui,WidgetsPage,MenuBarDisplayCard,metric_last_7d,"Last 7 Days",,active
477
+ menubar.metric.total_tokens,ui,WidgetsPage,MenuBarDisplayCard,metric_total_tokens,"Total Tokens",,active
478
+ menubar.metric.total_cost,ui,WidgetsPage,MenuBarDisplayCard,metric_total_cost,"Total Cost",,active
479
+ menubar.metric.claude_5h,ui,WidgetsPage,MenuBarDisplayCard,metric_claude_5h,"Claude 5h Limit",,active
480
+ menubar.metric.claude_7d,ui,WidgetsPage,MenuBarDisplayCard,metric_claude_7d,"Claude 7d Limit",,active
481
+ menubar.metric.codex_5h,ui,WidgetsPage,MenuBarDisplayCard,metric_codex_5h,"Codex 5h Limit",,active
482
+ menubar.metric.codex_7d,ui,WidgetsPage,MenuBarDisplayCard,metric_codex_7d,"Codex 7d Limit",,active
483
+ share.modal.title,share,DashboardPage,ShareModal,title,"Share your stats",,active
484
+ share.modal.subtitle,share,DashboardPage,ShareModal,subtitle,"Generate a poster-style card and share anywhere.",,active
485
+ share.modal.close,share,DashboardPage,ShareModal,close,"Close",,active
486
+ share.modal.action.x,share,DashboardPage,ShareModal,action_x,"Share on X",,active
487
+ share.modal.action.download,share,DashboardPage,ShareModal,action_download,"Download",,active
488
+ share.modal.action.copy,share,DashboardPage,ShareModal,action_copy,"Copy image",,active
489
+ share.modal.hint.x,share,DashboardPage,ShareModal,hint_x,"Paste image in tweet",,active
490
+ share.modal.hint.copy,share,DashboardPage,ShareModal,hint_copy,"to clipboard",,active
491
+ share.modal.name_label,share,DashboardPage,ShareModal,name_label,"Display name",,active
492
+ share.modal.name_placeholder,share,DashboardPage,ShareModal,name_placeholder,"Enter your name",,active
493
+ share.modal.footer,share,DashboardPage,ShareModal,footer,"Your data stays local — images are generated in your browser and never uploaded.",,active
494
+ share.button.label,share,DashboardPage,DashboardHeader,share_button,"Share",,active
495
+ share.button.aria,share,DashboardPage,DashboardHeader,share_button_aria,"Open share card",,active
496
+ share.toast.copied,share,DashboardPage,ShareModal,toast_copied,"Image copied to clipboard",,active
497
+ share.toast.downloaded,share,DashboardPage,ShareModal,toast_downloaded,"Image saved",,active
498
+ share.toast.failed,share,DashboardPage,ShareModal,toast_failed,"Couldn't generate image",,active
499
+ share.toast.working,share,DashboardPage,ShareModal,toast_working,"Generating…",,active
500
+ share.modal.style_label,share,DashboardPage,ShareModal,style_label,"Style",,active
501
+ share.variant.neon,share,DashboardPage,ShareModal,variant_neon,"Neon",,active
502
+ share.variant.broadsheet,share,DashboardPage,ShareModal,variant_broadsheet,"Broadsheet",,active
503
+ share.date.month_year,share,DashboardPage,ShareCard,date_month_year,"{{month}} {{year}}",,active
504
+ share.issue.all_time,share,DashboardPage,ShareCard,issue_all_time,"ALL TIME",,active
505
+ share.month_short.jan,share,DashboardPage,ShareCard,month_short,"JAN",,active
506
+ share.month_short.feb,share,DashboardPage,ShareCard,month_short,"FEB",,active
507
+ share.month_short.mar,share,DashboardPage,ShareCard,month_short,"MAR",,active
508
+ share.month_short.apr,share,DashboardPage,ShareCard,month_short,"APR",,active
509
+ share.month_short.may,share,DashboardPage,ShareCard,month_short,"MAY",,active
510
+ share.month_short.jun,share,DashboardPage,ShareCard,month_short,"JUN",,active
511
+ share.month_short.jul,share,DashboardPage,ShareCard,month_short,"JUL",,active
512
+ share.month_short.aug,share,DashboardPage,ShareCard,month_short,"AUG",,active
513
+ share.month_short.sep,share,DashboardPage,ShareCard,month_short,"SEP",,active
514
+ share.month_short.oct,share,DashboardPage,ShareCard,month_short,"OCT",,active
515
+ share.month_short.nov,share,DashboardPage,ShareCard,month_short,"NOV",,active
516
+ share.month_short.dec,share,DashboardPage,ShareCard,month_short,"DEC",,active
517
+ share.hook.top_loyal,share,DashboardPage,ShareCard,hook_top_loyal,"{{percent}}% loyal to {{name}}.",,active
518
+ share.hook.days_record,share,DashboardPage,ShareCard,hook_days_record,"{{days}} days on the record.",,active
519
+ share.hook.top_led,share,DashboardPage,ShareCard,hook_top_led,"Led by {{name}} ({{percent}}%).",,active
520
+ share.hook.multi_models,share,DashboardPage,ShareCard,hook_multi_models,"Across {{count}} models, {{days}} days.",,active
521
+ share.hook.days_with_model,share,DashboardPage,ShareCard,hook_days_with_model,"{{days}} days with {{name}}.",,active
522
+ share.hook.new_chapter,share,DashboardPage,ShareCard,hook_new_chapter,"The beginning of a new chapter.",,active
523
+ share.card.broadsheet.issue,share,DashboardPage,BroadsheetCard,issue_label,"Issue",,active
524
+ share.card.broadsheet.by,share,DashboardPage,BroadsheetCard,by_label,"By",,active
525
+ share.card.broadsheet.tracked_since,share,DashboardPage,BroadsheetCard,tracked_since,"Tracked since",,active
526
+ share.card.broadsheet.total_tokens,share,DashboardPage,BroadsheetCard,total_tokens,"Total tokens",,active
527
+ share.card.broadsheet.estimated_spend,share,DashboardPage,BroadsheetCard,estimated_spend,"Estimated spend",,active
528
+ share.card.broadsheet.billable_days,share,DashboardPage,BroadsheetCard,billable_days,"{{days}} billable days",,active
529
+ share.card.broadsheet.heatmap_title,share,DashboardPage,BroadsheetCard,heatmap_title,"The Year in Print",,active
530
+ share.card.broadsheet.heatmap_days_on_record,share,DashboardPage,BroadsheetCard,heatmap_days,"{{active}} / {{total}} days on record",,active
531
+ share.card.broadsheet.roster_title,share,DashboardPage,BroadsheetCard,roster_title,"The Roster",,active
532
+ share.card.broadsheet.roster_subtitle,share,DashboardPage,BroadsheetCard,roster_subtitle,"Models in regular rotation",,active
533
+ share.card.broadsheet.empty,share,DashboardPage,BroadsheetCard,empty,"An empty week — the press was quiet.",,active
534
+ share.card.broadsheet.global_rank,share,DashboardPage,BroadsheetCard,global_rank,"Global rank",,active
535
+ share.card.broadsheet.active_days,share,DashboardPage,BroadsheetCard,active_days,"Active",,active
536
+ share.card.broadsheet.days_count,share,DashboardPage,BroadsheetCard,days_count,"{{days}} days",,active
537
+ share.card.broadsheet.track_yours,share,DashboardPage,BroadsheetCard,track_yours,"Track yours",,active
538
+ share.card.annual.report_title,share,DashboardPage,AnnualReportCard,report_title,"Token Report",,active
539
+ share.card.annual.less,share,DashboardPage,AnnualReportCard,legend_less,"Less",,active
540
+ share.card.annual.more,share,DashboardPage,AnnualReportCard,legend_more,"More",,active
541
+ share.card.annual.heatmap_title,share,DashboardPage,AnnualReportCard,heatmap_title,"TOKEN USAGE HEATMAP",,active
542
+ share.card.annual.total_tokens,share,DashboardPage,AnnualReportCard,total_tokens,"Total Tokens",,active
543
+ share.card.annual.estimated_cost,share,DashboardPage,AnnualReportCard,estimated_cost,"Estimated Cost",,active
544
+ share.card.annual.longest_streak,share,DashboardPage,AnnualReportCard,longest_streak,"Longest Streak",,active
545
+ share.card.annual.days_count,share,DashboardPage,AnnualReportCard,days_count,"{{days}} days",,active
546
+ share.card.annual.top_model,share,DashboardPage,AnnualReportCard,top_model,"Top Model",,active
547
+ usage.period.day,ui,DashboardPage,UsageOverview,period_day,"Day",,active
548
+ usage.period.last24h,ui,DashboardPage,UsageOverview,period_last24h,"24h",,active
549
+ usage.period.week,ui,DashboardPage,UsageOverview,period_week,"7d",,active
550
+ usage.period.month,ui,DashboardPage,UsageOverview,period_month,"30d",,active
551
+ usage.period.total,ui,DashboardPage,UsageOverview,period_total,"Total",,active
552
+ usage.period.custom,ui,DashboardPage,UsageOverview,period_custom,"Custom",,active
553
+ usage.overview.tablist_aria,ui,DashboardPage,UsageOverview,tablist_aria,"Time period",,active
554
+ usage.auto_refresh.aria,ui,DashboardPage,UsageOverview,auto_refresh_aria,"Auto refresh interval",,active
555
+ usage.auto_refresh.off,ui,DashboardPage,UsageOverview,auto_refresh_off,"Off",,active
556
+ usage.auto_refresh.30s,ui,DashboardPage,UsageOverview,auto_refresh_30s,"30s",,active
557
+ usage.auto_refresh.60s,ui,DashboardPage,UsageOverview,auto_refresh_60s,"60s",,active
558
+ usage.auto_refresh.120s,ui,DashboardPage,UsageOverview,auto_refresh_120s,"120s",,active
559
+ usage.overview.cost_breakdown_aria,ui,DashboardPage,UsageOverview,cost_breakdown_aria,"View cost breakdown",,active
560
+ usage.overview.distribution_aria,ui,DashboardPage,UsageOverview,distribution_aria,"Provider distribution: {{items}}",,active
561
+ usage.overview.distribution_item,ui,DashboardPage,UsageOverview,distribution_item,"{{label}} {{percent}}%",,active
562
+ usage.overview.provider_card_aria,ui,DashboardPage,UsageOverview,provider_card_aria,"{{provider}}: {{percent}}%, {{tokens}} tokens, {{cost}}. Click to {{action}} details",,active
563
+ usage.overview.expand,ui,DashboardPage,UsageOverview,expand,"expand",,active
564
+ usage.overview.collapse,ui,DashboardPage,UsageOverview,collapse,"collapse",,active
565
+ usage.overview.model_count,ui,DashboardPage,UsageOverview,model_count,"{{count}} models",,active
566
+ usage.overview.model_details_aria,ui,DashboardPage,UsageOverview,model_details_aria,"{{provider}} model details",,active
567
+ usage.overview.antigravity_notice_title,ui,DashboardPage,UsageOverview,antigravity_notice_title,"Estimated tokens",,active
568
+ usage.overview.antigravity_notice_body,ui,DashboardPage,UsageOverview,antigravity_notice_body,"Antigravity transcripts don't record real usage numbers. These counts are estimated from text length (~4 chars/token) and don't reflect Gemini's prompt-cache discount, so treat them as an upper bound, not a billing figure.",,active
569
+ limits.panel.title,ui,LimitsPage,UsageLimitsPanel,title,"Usage Limits",,active
570
+ limits.panel.mode_separator,ui,LimitsPage,UsageLimitsPanel,title_separator," · ",,active
571
+ limits.label.cursor_plan,ui,LimitsPage,UsageLimitsPanel,cursor_plan,"Plan",,active
572
+ limits.label.cursor_auto,ui,LimitsPage,UsageLimitsPanel,cursor_auto,"Auto",,active
573
+ limits.label.cursor_api,ui,LimitsPage,UsageLimitsPanel,cursor_api,"API",,active
574
+ limits.label.kiro_month,ui,LimitsPage,UsageLimitsPanel,kiro_month,"Month",,active
575
+ limits.label.kiro_bonus,ui,LimitsPage,UsageLimitsPanel,kiro_bonus,"Bonus",,active
576
+ limits.label.kimi_weekly,ui,LimitsPage,UsageLimitsPanel,kimi_weekly,"Weekly",,active
577
+ limits.label.kimi_5h,ui,LimitsPage,UsageLimitsPanel,kimi_5h,"5h",,active
578
+ limits.label.kimi_total,ui,LimitsPage,UsageLimitsPanel,kimi_total,"Total",,active
579
+ limits.label.kimi_parallel,ui,LimitsPage,UsageLimitsPanel,kimi_parallel,"Parallel: {{count}}",,active
580
+ limits.label.copilot_premium,ui,LimitsPage,UsageLimitsPanel,copilot_premium,"Premium",,active
581
+ limits.label.copilot_chat,ui,LimitsPage,UsageLimitsPanel,copilot_chat,"Chat",,active
582
+ limits.status.not_connected,ui,LimitsPage,UsageLimitsPanel,status_not_connected,"Not connected",,active
583
+ limits.status.no_data,ui,LimitsPage,UsageLimitsPanel,status_no_data,"No live limit data returned",,active
584
+ limits.status.all_hidden,ui,LimitsPage,UsageLimitsPanel,status_all_hidden,"All limit providers are hidden. Open display settings to show them.",,active
585
+ shared.time.now,shared,*,Shared,time_now,"now",,active
586
+ nav.ip_check,shared,*,Sidebar,nav_ip_check,Claude IP Check,,active
587
+ nav.skills,shared,*,Sidebar,nav_skills,Skills,,active
588
+ skills.page.title,ui,SkillsPage,SkillsPage,title,Skills,,active
589
+ skills.tab.my,ui,SkillsPage,SkillsPage,tab_my,My Skills,,active
590
+ skills.tab.browse,ui,SkillsPage,SkillsPage,tab_browse,Browse,,active
591
+ skills.action.refresh,ui,SkillsPage,SkillsPage,action_refresh,Refresh,,active
592
+ skills.action.install,ui,SkillsPage,SkillCard,action_install,Install,,active
593
+ skills.action.choose_targets,ui,SkillsPage,SkillCard,action_choose_targets,"Choose targets",,active
594
+ skills.target.menu_label,ui,SkillsPage,SkillCard,target_menu_label,"Install to",,active
595
+ skills.target.none,ui,SkillsPage,SkillsPage,target_none,"no targets",,active
596
+ skills.toast.installed,ui,SkillsPage,SkillsPage,toast_installed,"Installed {{name}} to {{targets}}.",,active
597
+ skills.action.remove,ui,SkillsPage,SkillsPage,action_remove,Remove,,active
598
+ skills.action.search,ui,SkillsPage,SkillsPage,action_search,Search,,active
599
+ skills.action.search_aria,ui,SkillsPage,SkillsPage,action_search_aria,"Search skills",,active
600
+ skills.target.synced_summary,ui,SkillsPage,InstalledSkillRow,target_synced_summary,"Synced to {{targets}}",,active
601
+ skills.target.synced_none,ui,SkillsPage,InstalledSkillRow,target_synced_none,"Not synced to any agent",,active
602
+ skills.row.open_details,ui,SkillsPage,InstalledSkillRow,row_open_details,"Open details for {{name}}",,active
603
+ skills.detail.close,ui,SkillsPage,SkillDetailPanel,detail_close,"Close details",,active
604
+ skills.detail.sync_section_title,ui,SkillsPage,SkillDetailPanel,detail_sync_section_title,"Sync to",,active
605
+ skills.detail.remove_button,ui,SkillsPage,SkillDetailPanel,detail_remove_button,"Remove from all agents",,active
606
+ skills.detail.remove_confirm_hint,ui,SkillsPage,SkillDetailPanel,detail_remove_confirm_hint,"This unsyncs the skill from every agent and deletes its local copy.",,active
607
+ skills.filter.agent_label,ui,SkillsPage,SkillsPage,filter_agent_label,"Agent",,active
608
+ skills.filter.agent_all,ui,SkillsPage,SkillsPage,filter_agent_all,"All agents",,active
609
+ skills.filter.clear,ui,SkillsPage,SkillsPage,filter_clear,"Clear filters",,active
610
+ skills.filter.result_count,ui,SkillsPage,SkillsPage,filter_result_count,"{{filtered}} of {{total}} skills",,active
611
+ skills.filter.result_count_browse,ui,SkillsPage,SkillsPage,filter_result_count_browse,"{{count}} results",,active
612
+ skills.empty.no_match,ui,SkillsPage,SkillsPage,empty_no_match,"No skills match the current filters.",,active
613
+ hint.dismiss,ui,shared,DismissibleHint,hint_dismiss,"Dismiss hint",,active
614
+ hint.dismissible_aria,ui,shared,DismissibleHint,hint_dismissible_aria,"Dismissible hint",,active
615
+ skills.card.installed,ui,SkillsPage,SkillCard,card_installed,Installed,,active
616
+ skills.card.manage,ui,SkillsPage,SkillCard,card_manage,Manage,,active
617
+ skills.card.targets_prefix,ui,SkillsPage,SkillCard,card_targets_prefix,"Will install to:",,active
618
+ skills.card.targets_change,ui,SkillsPage,SkillCard,card_targets_change,Change,,active
619
+ skills.card.installs,ui,SkillsPage,SkillCard,installs,"{{count}} installs",,active
620
+ skills.source.label,ui,SkillsPage,SkillsPage,source_label,Source,,active
621
+ skills.source.all,ui,SkillsPage,SkillsPage,source_all,All repositories,,active
622
+ skills.mode.repo,ui,SkillsPage,SkillsPage,mode_repo,Repositories,,active
623
+ skills.mode.skillssh,ui,SkillsPage,SkillsPage,mode_skillssh,skills.sh,,active
624
+ skills.browse.placeholder_all,ui,SkillsPage,SkillsPage,browse_placeholder_all,"Search across enabled repositories…",,active
625
+ skills.browse.placeholder_repo,ui,SkillsPage,SkillsPage,browse_placeholder_repo,"Search in {{repo}}…",,active
626
+ skills.browse.placeholder_skillssh,ui,SkillsPage,SkillsPage,browse_placeholder_skillssh,"Search the skills.sh registry…",,active
627
+ skills.browse.empty_sources,ui,SkillsPage,SkillsPage,browse_empty_sources,"Add a GitHub repository below to start browsing skills.",,active
628
+ skills.browse.add_repo_hint,ui,SkillsPage,SkillsPage,browse_add_repo_hint,"Need more skills? Add a GitHub repository.",,active
629
+ skills.browse.manage_sources,ui,SkillsPage,SkillsPage,browse_manage_sources,Manage sources,,active
630
+ skills.browse.hint_skillssh,ui,SkillsPage,SkillsPage,browse_hint_skillssh,"Type at least 2 characters to search skills.sh.",,active
631
+ skills.browse.loading_hint,ui,SkillsPage,SkillsPage,browse_loading_hint,"Fetching skill metadata from GitHub. First load can take up to a minute; results are cached.",,active
632
+ skills.error.generic,ui,SkillsPage,SkillsPage,error_generic,"Skill operation failed.",,active
633
+ skills.confirm.remove_title,ui,SkillsPage,SkillsPage,confirm_remove_title,"Remove {{name}}?",,active
634
+ skills.confirm.remove_managed,ui,SkillsPage,SkillsPage,confirm_remove_managed,"This skill will be removed from every connected AI tool. You'll have a few seconds to undo.",,active
635
+ skills.confirm.remove_local,ui,SkillsPage,SkillsPage,confirm_remove_local,"This will delete the skill folder on disk from every connected AI tool. This cannot be undone.",,active
636
+ skills.toast.removed,ui,SkillsPage,SkillsPage,toast_removed,"Removed {{name}}.",,active
637
+ shared.action.undo,shared,*,Shared,action_undo,"Undo",,active
638
+ shared.action.dismiss,shared,*,Shared,action_dismiss,"Dismiss",,active
639
+ shared.action.cancel,shared,*,Shared,action_cancel,"Cancel",,active
640
+ shared.action.apply,shared,*,Shared,action_apply,"Apply",,active
641
+ skills.empty.my,ui,SkillsPage,SkillsPage,empty_my,"No skills yet. Open Discover to search and install.",,active
642
+ skills.empty.my_cta,ui,SkillsPage,SkillsPage,empty_my_cta,"Browse",,active
643
+ skills.empty.browse,ui,SkillsPage,SkillsPage,empty_browse,"No skills found for this source.",,active
644
+ skills.empty.search,ui,SkillsPage,SkillsPage,empty_search,"No results. Try a different query.",,active
645
+ skills.repo.placeholder,ui,SkillsPage,SkillsPage,repo_placeholder,"owner/repository",,active
646
+ skills.repo.add,ui,SkillsPage,SkillsPage,repo_add,"Add repository",,active
647
+ skills.repo.invalid,ui,SkillsPage,SkillsPage,repo_invalid,"Use owner/repository or a GitHub repository URL.",,active
648
+ skills.repo.remove,ui,SkillsPage,RepoRow,repo_remove,"Remove repository",,active
649
+ settings.appearance.language.label,ui,SettingsPage,SettingsPage,language_label,Language,,active
650
+ settings.appearance.language.hint,ui,SettingsPage,SettingsPage,language_hint,Use System to follow your computer language by default.,,active
651
+ settings.appearance.language.system,ui,SettingsPage,SettingsPage,language_system,System,,active
652
+ settings.appearance.language.english,ui,SettingsPage,SettingsPage,language_english,English,,active
653
+ settings.appearance.language.chinese,ui,SettingsPage,SettingsPage,language_chinese,Simplified Chinese,,active
654
+ settings.appearance.language.traditional_chinese,ui,SettingsPage,SettingsPage,language_traditional_chinese,Traditional Chinese,,active
655
+ settings.appearance.language.japanese,ui,SettingsPage,SettingsPage,language_japanese,Japanese,,active
656
+ settings.appearance.language.korean,ui,SettingsPage,SettingsPage,language_korean,Korean,,active
657
+ dashboard.context_breakdown.empty,dashboard,DashboardPage,ContextBreakdownPanel,empty,"No Claude Code activity in the selected period.",,active
658
+ dashboard.context_breakdown.empty_codex,dashboard,DashboardPage,ContextBreakdownPanel,empty_codex,"No Codex activity in the selected period.",,active
659
+ dashboard.context_breakdown.error,dashboard,DashboardPage,ContextBreakdownPanel,error,"Couldn't read Claude Code logs for this view.",,active
660
+ dashboard.context_breakdown.error_codex,dashboard,DashboardPage,ContextBreakdownPanel,error_codex,"Couldn't read Codex logs for this view.",,active
661
+ dashboard.context_breakdown.bar_aria,dashboard,DashboardPage,ContextBreakdownPanel,bar_aria,"Token distribution: {{summary}}",,active
662
+ dashboard.context_breakdown.system_prefix_tooltip,dashboard,DashboardPage,ContextBreakdownPanel,tooltip,"System prompt, tools schema, skills, rules, and MCP descriptions are cached together as one prefix and can't be separated from the logs.",,active
663
+ dashboard.context_breakdown.footnote,dashboard,DashboardPage,ContextBreakdownPanel,footnote,"Approximate: cache reads accumulate across turns, so conversation history dominates over time. Only Claude Code logs expose the per-message detail this view requires.",,active
664
+ dashboard.context_breakdown.footnote_codex,dashboard,DashboardPage,ContextBreakdownPanel,footnote_codex,"Codex uses non-overlapping token buckets here. Tool and exec drill-downs are separate heuristic attributions over the same turns.",,active
665
+ dashboard.context_breakdown.category.system_prompt,dashboard,DashboardPage,ContextBreakdownPanel,cat,"System prompt",,active
666
+ dashboard.context_breakdown.category.messages,dashboard,DashboardPage,ContextBreakdownPanel,cat,"Messages",,active
667
+ dashboard.context_breakdown.category.tool_calls,dashboard,DashboardPage,ContextBreakdownPanel,cat,"Tool calls",,active
668
+ dashboard.context_breakdown.category.mcp_servers,dashboard,DashboardPage,ContextBreakdownPanel,cat,"MCP servers",,active
669
+ dashboard.context_breakdown.category.custom_agents,dashboard,DashboardPage,ContextBreakdownPanel,cat,"Custom agents",,active
670
+ dashboard.context_breakdown.category.reasoning,dashboard,DashboardPage,ContextBreakdownPanel,cat,"Reasoning",,active
671
+ dashboard.context_breakdown.category.skills,dashboard,DashboardPage,ContextBreakdownPanel,cat,"Skills",,active
672
+ dashboard.context_breakdown.loading_aria,dashboard,DashboardPage,ContextBreakdownPanel,loading_aria,"Loading context breakdown",,active
673
+ dashboard.context_breakdown.loading_hint,dashboard,DashboardPage,ContextBreakdownPanel,loading_hint,"Scanning session logs…",,active
674
+ dashboard.context_breakdown.tool_details.total_column,dashboard,DashboardPage,ContextBreakdownPanel,tool_details_total_column,"Total",,active
675
+ dashboard.context_breakdown.tool_details.unavailable_codex,dashboard,DashboardPage,ContextBreakdownPanel,tool_details_unavailable_codex,"Tool-level Codex details are unavailable for this period; showing queue totals only.",,active
676
+ dashboard.context_breakdown.message_details.title,dashboard,DashboardPage,ContextBreakdownPanel,message_details_title,"Message details",,active
677
+ dashboard.context_breakdown.message_details.note,dashboard,DashboardPage,ContextBreakdownPanel,message_details_note,"Aggregated only — message text is not stored.",,active
678
+ dashboard.context_breakdown.message_details.category_column,dashboard,DashboardPage,ContextBreakdownPanel,message_details_category_column,"Category",,active
679
+ dashboard.context_breakdown.message_details.user_input,dashboard,DashboardPage,ContextBreakdownPanel,message_details_user_input,"User input",,active
680
+ dashboard.context_breakdown.message_details.conversation_history,dashboard,DashboardPage,ContextBreakdownPanel,message_details_conversation_history,"Conversation history",,active
681
+ dashboard.context_breakdown.message_details.assistant_response,dashboard,DashboardPage,ContextBreakdownPanel,message_details_assistant_response,"Assistant response",,active
682
+ dashboard.context_breakdown.exec_details.title,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_title,"Exec command details",,active
683
+ dashboard.context_breakdown.exec_details.kind_column,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_kind_column,"Type",,active
684
+ dashboard.context_breakdown.exec_details.calls_column,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_calls_column,"Calls",,active
685
+ dashboard.context_breakdown.exec_details.failures_column,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_failures_column,"Fail",,active
686
+ dashboard.context_breakdown.exec_details.duration_column,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_duration_column,"Duration",,active
687
+ dashboard.context_breakdown.exec_details.max_duration_column,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_max_duration_column,"Max",,active
688
+ dashboard.context_breakdown.exec_details.output_column,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_output_column,"Lines",,active
689
+ dashboard.context_breakdown.exec_details.group_by_type,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_group_by_type,"By type",,active
690
+ dashboard.context_breakdown.exec_details.group_by_executable,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_group_by_executable,"Executable",,active
691
+ dashboard.context_breakdown.exec_details.group_by_command,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_group_by_command,"Command",,active
692
+ dashboard.context_breakdown.exec_details.group_by_duration,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_group_by_duration,"Duration",,active
693
+ dashboard.context_breakdown.exec_details.group_by_output,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_group_by_output,"Output",,active
694
+ dashboard.context_breakdown.exec_details.group_by_exit,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_group_by_exit,"By exit",,active
695
+ heatmap.3d.hover_tip,ui,ActivityHeatmap,ActivityHeatmap,hover_tip,"Click to enter 3D fullscreen rotation analysis mode",,active
696
+ heatmap.3d.modal.title,ui,ActivityHeatmap,ActivityHeatmap,title,"Token 3D Perspective",,active
697
+ heatmap.3d.modal.desc,ui,ActivityHeatmap,ActivityHeatmap,desc,"Drag with left mouse button to rotate. Hover to inspect daily activity and multidimensional metrics.",,active
698
+ heatmap.3d.modal.stats.total_tokens,ui,ActivityHeatmap,ActivityHeatmap,stats_total_tokens,"Annual Total Tokens",,active
699
+ heatmap.3d.modal.stats.precision_total_tokens,ui,ActivityHeatmap,ActivityHeatmap,stats_precision_total_tokens,"Precise annual consumption",,active
700
+ heatmap.3d.modal.stats.estimated_cost,ui,ActivityHeatmap,ActivityHeatmap,stats_estimated_cost,"Annual Estimated Cost",,active
701
+ heatmap.3d.modal.stats.active_rate_days,ui,ActivityHeatmap,ActivityHeatmap,stats_active_rate_days,"Active Rate / Days",,active
702
+ heatmap.3d.modal.stats.max_streak,ui,ActivityHeatmap,ActivityHeatmap,stats_max_streak,"Longest Active Streak",,active
703
+ heatmap.3d.modal.stats.days_suffix,ui,ActivityHeatmap,ActivityHeatmap,stats_days_suffix,"Days",,active
704
+ heatmap.3d.modal.stats.peak_day,ui,ActivityHeatmap,ActivityHeatmap,stats_peak_day,"Peak Day Blowout",,active
705
+ heatmap.3d.modal.stats.precision_peak_value,ui,ActivityHeatmap,ActivityHeatmap,stats_precision_peak_value,"Precise daily peak",,active
706
+ heatmap.3d.modal.stats.no_data,ui,ActivityHeatmap,ActivityHeatmap,stats_no_data,"No data",,active
707
+ heatmap.3d.modal.legend.title,ui,ActivityHeatmap,ActivityHeatmap,legend_title,"Activity Levels",,active
708
+ heatmap.3d.modal.palette.emerald,ui,ActivityHeatmap,ActivityHeatmap,palette_emerald,"Emerald City",,active
709
+ heatmap.3d.modal.palette.ocean,ui,ActivityHeatmap,ActivityHeatmap,palette_ocean,"Ocean Abyss",,active
710
+ heatmap.3d.modal.palette.neon,ui,ActivityHeatmap,ActivityHeatmap,palette_neon,"Cyber Neon",,active
711
+ heatmap.3d.modal.palette.amber,ui,ActivityHeatmap,ActivityHeatmap,palette_amber,"Blazing Amber",,active
712
+ heatmap.3d.modal.control.play,ui,ActivityHeatmap,ActivityHeatmap,control_play,"Start slow rotation",,active
713
+ heatmap.3d.modal.control.pause,ui,ActivityHeatmap,ActivityHeatmap,control_pause,"Pause auto-rotation",,active
714
+ heatmap.3d.modal.control.reset,ui,ActivityHeatmap,ActivityHeatmap,control_reset,"Reset 3D view",,active
715
+ heatmap.3d.modal.footer.tip,ui,ActivityHeatmap,ActivityHeatmap,footer_tip,"Pinch to zoom / Scroll to zoom / Drag to rotate 3D chart",,active
716
+ heatmap.3d.modal.ai.title.default,ui,ActivityHeatmap,ActivityHeatmap,ai_title_default,"Persistent Creator",,active
717
+ heatmap.3d.modal.ai.eval.default,ui,ActivityHeatmap,ActivityHeatmap,ai_eval_default,"Persist in the river of technology. Daily coding may not always be majestic, but every tiny active point records your thoughts and exploration. Sparks accumulate, eventually converging into your own digital ocean.",,active
718
+ heatmap.3d.modal.ai.title.peak,ui,ActivityHeatmap,ActivityHeatmap,ai_title_peak,"Peak Contributor",,active
719
+ heatmap.3d.modal.ai.eval.peak,ui,ActivityHeatmap,ActivityHeatmap,ai_eval_peak,"This year, your token output shows extremely high engineering density. This scale of development is equivalent to deeply participating in the refactoring of a medium-to-large system base, with each keystroke converging complex logic into deterministic code. A testament to pure engineering passion.",,active
720
+ heatmap.3d.modal.ai.title.heavy,ui,ActivityHeatmap,ActivityHeatmap,ai_title_heavy,"Heavy Producer",,active
721
+ heatmap.3d.modal.ai.eval.heavy,ui,ActivityHeatmap,ActivityHeatmap,ai_eval_heavy,"Exceptional continuous output. Your accumulated tokens have reached millions, equivalent to the volume of dozens of technical novellas. The highly saturated coding pace demonstrates your great execution in building digital assets.",,active
722
+ heatmap.3d.modal.ai.title.core,ui,ActivityHeatmap,ActivityHeatmap,ai_title_core,"Core Productivity Expert",,active
723
+ heatmap.3d.modal.ai.eval.core,ui,ActivityHeatmap,ActivityHeatmap,ai_eval_core,"Highly resilient long-term commitment. Over the past year, you have steadily maintained a high-intensity development rhythm. With solid code volume and token output, you have silently built the core architecture, a true engineering backbone.",,active
724
+ heatmap.3d.modal.ai.title.steady,ui,ActivityHeatmap,ActivityHeatmap,ai_title_steady,"Steady Developer",,active
725
+ heatmap.3d.modal.ai.eval.steady,ui,ActivityHeatmap,ActivityHeatmap,ai_eval_steady,"Steady and firm accumulation of technology. Every step of token increment is a brick in the foundation of your future. This slow but steady pace is the path for an excellent developer to become an engineering master.",,active
726
+ heatmap.3d.voxel.joke.1,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_joke1,"🔥 Extremely crazy! Produced {{value}} tokens! Are you training a large language model or writing a compiler by hand?",,active
727
+ heatmap.3d.voxel.joke.2,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_joke2,"🚀 Epic output! Total {{value}} tokens. Today's production can circle the earth once, even the AI is amazed by you!",,active
728
+ heatmap.3d.voxel.joke.3,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_joke3,"⚡ Critical Day! {{value}} tokens. Code is gushing out, and the keyboard is starting to smoke!",,active
729
+ heatmap.3d.voxel.level3,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_level3,"⚡ Productivity explosion ({{value}} tokens)! High efficiency and focus, keep up this peak state!",,active
730
+ heatmap.3d.voxel.level2,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_level2,"🌱 Getting into the groove ({{value}} tokens)! Steady output, every keystroke is contributing to the architecture.",,active
731
+ heatmap.3d.voxel.level1,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_level1,"🍃 Every drop counts ({{value}} tokens). Tiny commits are investments in the future, embrace compound interest!",,active
732
+ heatmap.3d.voxel.level0,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_level0,"💤 Recharging. On days without coding, inspiration grows silently.",,active
733
+ ipcheck.page.title,ui,IpCheckPage,IpCheckPage,page_title,"Claude IP Check",,active
734
+ ipcheck.page.subtitle,ui,IpCheckPage,IpCheckPage,page_subtitle,"Inspect the exit IP used to reach Claude, plus reputation, geo, and risk signals that may affect sign-in or trigger rate-limiting.",,active
735
+ ipcheck.mask.toggle,ui,IpCheckPage,IpCheckPage,mask_toggle,"Hide IP",,active
736
+ ipcheck.ipv6.warn,ui,IpCheckPage,IpCheckPage,ipv6_warn,"IPv6 detected. Using IPv6 to reach Claude Code is not recommended; some checks may be incomplete.",,active
737
+ ipcheck.ip.cn,ui,IpCheckPage,IpCheckPage,ip_cn,"China exit IPv4",,active
738
+ ipcheck.ip.cloudflare,ui,IpCheckPage,IpCheckPage,ip_cloudflare,"Cloudflare exit",,active
739
+ ipcheck.ip.claude,ui,IpCheckPage,IpCheckPage,ip_claude,"Claude exit",,active
740
+ ipcheck.ip.failed,ui,IpCheckPage,IpCheckPage,ip_failed,"Unable to fetch",,active
741
+ ipcheck.ip.loading,ui,IpCheckPage,IpCheckPage,ip_loading,"Loading...",,active
742
+ ipcheck.trust.title,ui,IpCheckPage,IpCheckPage,trust_title,"Trust Score",,active
743
+ ipcheck.trust.subtitle,ui,IpCheckPage,IpCheckPage,trust_subtitle,"IP cleanliness from Claude's risk view",,active
744
+ ipcheck.trust.no_data,ui,IpCheckPage,IpCheckPage,trust_no_data,"No data",,active
745
+ ipcheck.trust.no_ip,ui,IpCheckPage,IpCheckPage,trust_no_ip,"Claude exit IP not detected — cannot score",,active
746
+ ipcheck.trust.no_score,ui,IpCheckPage,IpCheckPage,trust_no_score,"No score data for this IP",,active
747
+ ipcheck.trust.gauge.low,ui,IpCheckPage,IpCheckPage,trust_gauge_low,"0 High risk",,active
748
+ ipcheck.trust.gauge.high,ui,IpCheckPage,IpCheckPage,trust_gauge_high,"100 Trusted",,active
749
+ ipcheck.trust.label.pristine,ui,IpCheckPage,IpCheckPage,trust_label_pristine,"Pristine",,active
750
+ ipcheck.trust.label.clean,ui,IpCheckPage,IpCheckPage,trust_label_clean,"Clean",,active
751
+ ipcheck.trust.label.good,ui,IpCheckPage,IpCheckPage,trust_label_good,"Good",,active
752
+ ipcheck.trust.label.neutral,ui,IpCheckPage,IpCheckPage,trust_label_neutral,"Neutral",,active
753
+ ipcheck.trust.label.suspicious,ui,IpCheckPage,IpCheckPage,trust_label_suspicious,"Suspicious",,active
754
+ ipcheck.trust.label.unreachable,ui,IpCheckPage,IpCheckPage,trust_label_unreachable,"Unreachable",,active
755
+ ipcheck.trust.text.excellent,ui,IpCheckPage,IpCheckPage,trust_text_excellent,"Excellent reputation",,active
756
+ ipcheck.trust.text.great,ui,IpCheckPage,IpCheckPage,trust_text_great,"Strong reputation",,active
757
+ ipcheck.trust.text.minor,ui,IpCheckPage,IpCheckPage,trust_text_minor,"Minor risk",,active
758
+ ipcheck.trust.text.moderate,ui,IpCheckPage,IpCheckPage,trust_text_moderate,"Moderate risk",,active
759
+ ipcheck.trust.text.severe,ui,IpCheckPage,IpCheckPage,trust_text_severe,"Severe risk",,active
760
+ ipcheck.trust.text.restricted,ui,IpCheckPage,IpCheckPage,trust_text_restricted,"Restricted region — Claude enforces strict risk controls",,active
761
+ ipcheck.trust.region_warn.title,ui,IpCheckPage,IpCheckPage,region_warn_title,"Claude exit IP is in {{region}}",,active
762
+ ipcheck.trust.region_warn.body,ui,IpCheckPage,IpCheckPage,region_warn_body,"Avoid signing in — high chance of triggering account flagging.",,active
763
+ ipcheck.trust.region_support,ui,IpCheckPage,IpCheckPage,region_support,"Claude support",,active
764
+ ipcheck.trust.region.accessible,ui,IpCheckPage,IpCheckPage,region_accessible,"Accessible",,active
765
+ ipcheck.common.unknown,ui,IpCheckPage,IpCheckPage,common_unknown,"Unknown",,active
766
+ ipcheck.props.title,ui,IpCheckPage,IpCheckPage,props_title,"IP Attributes",,active
767
+ ipcheck.props.region,ui,IpCheckPage,IpCheckPage,props_region,"Region",,active
768
+ ipcheck.props.city,ui,IpCheckPage,IpCheckPage,props_city,"City",,active
769
+ ipcheck.props.type,ui,IpCheckPage,IpCheckPage,props_type,"Type",,active
770
+ ipcheck.props.asn,ui,IpCheckPage,IpCheckPage,props_asn,"ASN",,active
771
+ ipcheck.props.org,ui,IpCheckPage,IpCheckPage,props_org,"ISP",,active
772
+ ipcheck.props.residential,ui,IpCheckPage,IpCheckPage,props_residential,"Residential",,active
773
+ ipcheck.props.datacenter,ui,IpCheckPage,IpCheckPage,props_datacenter,"Datacenter",,active
774
+ ipcheck.security.title,ui,IpCheckPage,IpCheckPage,sec_title,"Security Checks",,active
775
+ ipcheck.security.vpn,ui,IpCheckPage,IpCheckPage,sec_vpn,"VPN",,active
776
+ ipcheck.security.proxy,ui,IpCheckPage,IpCheckPage,sec_proxy,"Proxy",,active
777
+ ipcheck.security.tor,ui,IpCheckPage,IpCheckPage,sec_tor,"Tor",,active
778
+ ipcheck.security.crawler,ui,IpCheckPage,IpCheckPage,sec_crawler,"Crawler",,active
779
+ ipcheck.security.abuser,ui,IpCheckPage,IpCheckPage,sec_abuser,"Abuse history",,active
780
+ ipcheck.security.proxy_flag,ui,IpCheckPage,IpCheckPage,sec_proxy_flag,"Proxy",,active
781
+ ipcheck.security.crawler_yes,ui,IpCheckPage,IpCheckPage,sec_crawler_yes,"Yes",,active
782
+ ipcheck.security.crawler_no,ui,IpCheckPage,IpCheckPage,sec_crawler_no,"No",,active
783
+ ipcheck.security.abuser_yes,ui,IpCheckPage,IpCheckPage,sec_abuser_yes,"Reported",,active
784
+ ipcheck.security.abuser_no,ui,IpCheckPage,IpCheckPage,sec_abuser_no,"Clean",,active
785
+ ipcheck.security.clean,ui,IpCheckPage,IpCheckPage,sec_clean,"Not detected",,active
786
+ ipcheck.avail.title,ui,IpCheckPage,IpCheckPage,avail_title,"Claude Availability",,active
787
+ ipcheck.avail.tooltip,ui,IpCheckPage,IpCheckPage,avail_tooltip,"Claude servers run in the US; latency above 100ms from Asia is normal.",,active
788
+ ipcheck.avail.refresh,ui,IpCheckPage,IpCheckPage,avail_refresh,"Refresh",,active
789
+ ipcheck.avail.svc_row,ui,IpCheckPage,IpCheckPage,avail_svc_row,"Service status",,active
790
+ ipcheck.avail.latency.normal,ui,IpCheckPage,IpCheckPage,avail_lat_normal,"Normal",,active
791
+ ipcheck.avail.latency.good,ui,IpCheckPage,IpCheckPage,avail_lat_good,"Good",,active
792
+ ipcheck.avail.latency.slow,ui,IpCheckPage,IpCheckPage,avail_lat_slow,"Slow",,active
793
+ ipcheck.avail.latency.unreachable,ui,IpCheckPage,IpCheckPage,avail_lat_unreach,"Unreachable",,active
794
+ ipcheck.avail.svc.none,ui,IpCheckPage,IpCheckPage,avail_svc_none,"All systems normal",,active
795
+ ipcheck.avail.svc.minor,ui,IpCheckPage,IpCheckPage,avail_svc_minor,"Minor outage",,active
796
+ ipcheck.avail.svc.major,ui,IpCheckPage,IpCheckPage,avail_svc_major,"Major outage",,active
797
+ ipcheck.avail.svc.critical,ui,IpCheckPage,IpCheckPage,avail_svc_critical,"Critical outage",,active
798
+ ipcheck.avail.svc.maintenance,ui,IpCheckPage,IpCheckPage,avail_svc_maintenance,"Maintenance",,active
799
+ ipcheck.avail.svc.other,ui,IpCheckPage,IpCheckPage,avail_svc_other,"Disrupted",,active
800
+ ipcheck.dns.title,ui,IpCheckPage,IpCheckPage,dns_title,"DNS Leak",,active
801
+ ipcheck.dns.status,ui,IpCheckPage,IpCheckPage,dns_status,"Status",,active
802
+ ipcheck.dns.outlet,ui,IpCheckPage,IpCheckPage,dns_outlet,"DNS exit",,active
803
+ ipcheck.dns.outlet_ip,ui,IpCheckPage,IpCheckPage,dns_outlet_ip,"DNS exit IP",,active
804
+ ipcheck.dns.isp,ui,IpCheckPage,IpCheckPage,dns_isp,"Provider",,active
805
+ ipcheck.dns.leaked,ui,IpCheckPage,IpCheckPage,dns_leaked,"Possible leak",,active
806
+ ipcheck.dns.no_leak,ui,IpCheckPage,IpCheckPage,dns_no_leak,"No leak detected",,active
807
+ ipcheck.dns.encrypted,ui,IpCheckPage,IpCheckPage,dns_encrypted,"DNS encrypted or hidden",,active
808
+ ipcheck.dns.cn_tag,ui,IpCheckPage,IpCheckPage,dns_cn_tag,"China DNS",,active
809
+ ipcheck.udp.title,ui,IpCheckPage,IpCheckPage,udp_title,"WebRTC UDP Leak",,active
810
+ ipcheck.udp.status,ui,IpCheckPage,IpCheckPage,udp_status,"Status",,active
811
+ ipcheck.udp.outlet,ui,IpCheckPage,IpCheckPage,udp_outlet,"UDP exit",,active
812
+ ipcheck.udp.outlet_ip,ui,IpCheckPage,IpCheckPage,udp_outlet_ip,"UDP exit IP",,active
813
+ ipcheck.udp.origin,ui,IpCheckPage,IpCheckPage,udp_origin,"Origin",,active
814
+ ipcheck.udp.disabled,ui,IpCheckPage,IpCheckPage,udp_disabled,"WebRTC disabled",,active
815
+ ipcheck.udp.no_leak,ui,IpCheckPage,IpCheckPage,udp_no_leak,"No leak detected",,active
816
+ ipcheck.udp.leaked,ui,IpCheckPage,IpCheckPage,udp_leaked,"Possible leak",,active
817
+ ipcheck.udp.anomaly,ui,IpCheckPage,IpCheckPage,udp_anomaly,"Anomaly",,active
818
+ ipcheck.device.title,ui,IpCheckPage,IpCheckPage,dev_title,"Device Info",,active
819
+ ipcheck.device.tz,ui,IpCheckPage,IpCheckPage,dev_tz,"Timezone",,active
820
+ ipcheck.device.lang,ui,IpCheckPage,IpCheckPage,dev_lang,"Language",,active
821
+ ipcheck.device.os,ui,IpCheckPage,IpCheckPage,dev_os,"OS / Browser",,active
822
+ ipcheck.device.touch,ui,IpCheckPage,IpCheckPage,dev_touch,"Touch",,active
823
+ ipcheck.device.net,ui,IpCheckPage,IpCheckPage,dev_net,"Network type",,active
824
+ ipcheck.device.dnt,ui,IpCheckPage,IpCheckPage,dev_dnt,"Do Not Track",,active
825
+ ipcheck.device.webgl_render,ui,IpCheckPage,IpCheckPage,dev_webgl_render,"WebGL renderer",,active
826
+ ipcheck.device.canvas_fp,ui,IpCheckPage,IpCheckPage,dev_canvas_fp,"Canvas fingerprint",,active
827
+ ipcheck.device.webgl_fp,ui,IpCheckPage,IpCheckPage,dev_webgl_fp,"WebGL fingerprint",,active
828
+ ipcheck.device.match,ui,IpCheckPage,IpCheckPage,dev_match,"Match",,active
829
+ ipcheck.device.mismatch,ui,IpCheckPage,IpCheckPage,dev_mismatch,"Mismatch",,active
830
+ ipcheck.device.local,ui,IpCheckPage,IpCheckPage,dev_local,"Local",,active
831
+ ipcheck.device.estimate_suffix,ui,IpCheckPage,IpCheckPage,dev_est_suffix,"(est.)",,active
832
+ ipcheck.device.diff_equal,ui,IpCheckPage,IpCheckPage,dev_diff_eq,"Slight offset",,active
833
+ ipcheck.device.diff_ahead,ui,IpCheckPage,IpCheckPage,dev_diff_ahead,"Claude is {{h}}h ahead",,active
834
+ ipcheck.device.diff_behind,ui,IpCheckPage,IpCheckPage,dev_diff_behind,"Claude is {{h}}h behind",,active
835
+ ipcheck.device.lang_expected,ui,IpCheckPage,IpCheckPage,dev_lang_expected,"Claude region usually",,active
836
+ ipcheck.device.touch_yes,ui,IpCheckPage,IpCheckPage,dev_touch_yes,"Yes",,active
837
+ ipcheck.device.touch_no,ui,IpCheckPage,IpCheckPage,dev_touch_no,"No",,active
838
+ ipcheck.device.dnt_on,ui,IpCheckPage,IpCheckPage,dev_dnt_on,"On",,active
839
+ ipcheck.device.dnt_off,ui,IpCheckPage,IpCheckPage,dev_dnt_off,"Off",,active
840
+ ipcheck.device.dnt_unset,ui,IpCheckPage,IpCheckPage,dev_dnt_unset,"Unset",,active
841
+ ipcheck.device.net_unsupported,ui,IpCheckPage,IpCheckPage,dev_net_unsup,"Not detected",,active
842
+ ipcheck.device.unsupported,ui,IpCheckPage,IpCheckPage,dev_unsupported,"Unsupported",,active
843
+ ipcheck.history.title,ui,IpCheckPage,IpCheckPage,hist_title,"Claude exit IP history",,active
844
+ ipcheck.history.subtitle,ui,IpCheckPage,IpCheckPage,hist_subtitle,"Stored only in this browser, up to 6 entries",,active
845
+ ipcheck.history.clear,ui,IpCheckPage,IpCheckPage,hist_clear,"Clear",,active
846
+ ipcheck.history.empty,ui,IpCheckPage,IpCheckPage,hist_empty,"No history yet",,active
847
+ ipcheck.history.current,ui,IpCheckPage,IpCheckPage,hist_current,"Now",,active
848
+ ipcheck.region.CN,ui,IpCheckPage,IpCheckPage,region_cn,"Mainland China",,active
849
+ ipcheck.region.HK,ui,IpCheckPage,IpCheckPage,region_hk,"Hong Kong",,active
850
+ ipcheck.region.MO,ui,IpCheckPage,IpCheckPage,region_mo,"Macao",,active
851
+ ipcheck.region.RU,ui,IpCheckPage,IpCheckPage,region_ru,"Russia",,active
852
+ ipcheck.region.KP,ui,IpCheckPage,IpCheckPage,region_kp,"North Korea",,active
853
+ ipcheck.region.IR,ui,IpCheckPage,IpCheckPage,region_ir,"Iran",,active
854
+ ipcheck.region.SY,ui,IpCheckPage,IpCheckPage,region_sy,"Syria",,active
855
+ ipcheck.region.CU,ui,IpCheckPage,IpCheckPage,region_cu,"Cuba",,active
856
+ ipcheck.region.BY,ui,IpCheckPage,IpCheckPage,region_by,"Belarus",,active
857
+ ipcheck.region.VE,ui,IpCheckPage,IpCheckPage,region_ve,"Venezuela",,active
858
+ leaderboard.profile_modal.close,dashboard,LeaderboardProfileModal,LeaderboardProfileModal,close,"Close",,active
859
+ leaderboard.profile_modal.loading,dashboard,LeaderboardProfileModal,LeaderboardProfileModal,loading,"Loading profile…",,active
860
+ leaderboard.profile_modal.error,dashboard,LeaderboardProfileModal,LeaderboardProfileModal,error,"Failed to load profile.",,active
861
+ leaderboard.profile_modal.empty,dashboard,LeaderboardProfileModal,LeaderboardProfileModal,empty,"This profile is not public.",,active
862
+ leaderboard.profile_modal.row_aria,dashboard,LeaderboardPage,LeaderboardRow,row_aria,"Open profile for {{name}}",,active
863
+ leaderboard.profile_modal.rank,dashboard,LeaderboardProfileModal,Hero,rank,"#{{rank}}",,active
864
+ leaderboard.profile_modal.hero.total_tokens,dashboard,LeaderboardProfileModal,Hero,total_tokens,"Total Tokens",,active
865
+ leaderboard.profile_modal.hero.total_cost,dashboard,LeaderboardProfileModal,Hero,total_cost,"Total Cost",,active
866
+ leaderboard.profile_modal.hero.github,dashboard,LeaderboardProfileModal,Hero,github,"GitHub profile",,active
867
+ leaderboard.profile_modal.stat.total_cost,dashboard,LeaderboardProfileModal,StatCards,total_cost,"Total Cost",,active
868
+ leaderboard.profile_modal.stat.total_tokens,dashboard,LeaderboardProfileModal,StatCards,total_tokens,"Total Tokens",,active
869
+ leaderboard.profile_modal.stat.active_days,dashboard,LeaderboardProfileModal,StatCards,active_days,"Active Days",,active
870
+ leaderboard.profile_modal.stat.avg_per_day,dashboard,LeaderboardProfileModal,StatCards,avg_per_day,"Avg/Day",,active
871
+ leaderboard.profile_modal.streak.current,dashboard,LeaderboardProfileModal,Streak,current,"Current Streak",,active
872
+ leaderboard.profile_modal.streak.longest,dashboard,LeaderboardProfileModal,Streak,longest,"Longest Streak",,active
873
+ leaderboard.profile_modal.streak.days,dashboard,LeaderboardProfileModal,Streak,days,"{{count}} days",,active
874
+ leaderboard.profile_modal.best_day.title,dashboard,LeaderboardProfileModal,BestDay,title,"Best Day",,active
875
+ leaderboard.profile_modal.best_day.none,dashboard,LeaderboardProfileModal,BestDay,none,"—",,active
876
+ leaderboard.profile_modal.models.count,dashboard,LeaderboardProfileModal,Models,count,"{{count}} models used",,active
877
+ leaderboard.profile_modal.models.favorite,dashboard,LeaderboardProfileModal,Models,favorite,"Favorite",,active
878
+ leaderboard.profile_modal.models.none,dashboard,LeaderboardProfileModal,Models,none,"No models tracked",,active
879
+ leaderboard.profile_modal.heatmap.title,dashboard,LeaderboardProfileModal,Heatmap,title,"Activity (last 365 days)",,active
880
+ leaderboard.profile_modal.providers.title,dashboard,LeaderboardProfileModal,Providers,title,"By provider",,active
881
+ leaderboard.profile_modal.providers.none,dashboard,LeaderboardProfileModal,Providers,none,"No usage this period.",,active
882
+ leaderboard.profile_modal.view_full,dashboard,LeaderboardProfileModal,Footer,view_full,"View full profile",,active
883
+ leaderboard.profile_modal.badge.copy_url,dashboard,LeaderboardProfileModal,Badge,copy_url,"Copy profile URL",,active
884
+ leaderboard.profile_modal.badge.copy,dashboard,LeaderboardProfileModal,Badge,copy,"Copy README badge",,active
885
+ leaderboard.profile_modal.badge.copied,dashboard,LeaderboardProfileModal,Badge,copied,"Copied!",,active
886
+ local_only.title,dashboard,LocalOnlyNotice,LocalOnlyNotice,title,"Available in the app",,active
887
+ local_only.body,dashboard,LocalOnlyNotice,LocalOnlyNotice,body,"This page reads data from your own machine, so it only works in the Mac app or the CLI dashboard.",,active
888
+ local_only.open_app,dashboard,LocalOnlyNotice,LocalOnlyNotice,open_app,"Open in Mac app",,active
889
+ local_only.download,dashboard,LocalOnlyNotice,LocalOnlyNotice,download,"Get the Mac app",,active
890
+ leaderboard.profile.like.aria_like,dashboard,LeaderboardProfileModal,LikeButton,aria_like,"Like profile",,active
891
+ leaderboard.profile.like.aria_unlike,dashboard,LeaderboardProfileModal,LikeButton,aria_unlike,"Unlike profile",,active
892
+ dashboard.auth_gate.title,dashboard,DashboardPage,DashboardView,auth_gate_title,"Sign in to Token Tracker",,active
893
+ dashboard.auth_gate.subtitle,dashboard,DashboardPage,DashboardView,auth_gate_subtitle,"Sign in to sync and view your API usage, cost, and token consumption trends in the cloud.",,active
894
+ dashboard.auth_gate.button,dashboard,DashboardPage,DashboardView,auth_gate_button,"Sign In",,active
895
+ dashboard.expired_gate.title,dashboard,DashboardPage,DashboardView,expired_gate_title,"Session Expired",,active
896
+ dashboard.expired_gate.subtitle,dashboard,DashboardPage,DashboardView,expired_gate_subtitle,"Your session has expired. Please sign in again to continue viewing your cloud dashboard.",,active
897
+ dashboard.expired_gate.button,dashboard,DashboardPage,DashboardView,expired_gate_button,"Sign In Again",,active
898
+ shared.app_name,shared,*,*,app_name,"Token Tracker",,active
899
+ dashboard.auth_gate.hero_title,dashboard,DashboardPage,DashboardView,hero_title,"Track every AI agent token seamlessly",,active
900
+ dashboard.auth_gate.hero_subtitle,dashboard,DashboardPage,DashboardView,hero_subtitle,"Clear, transparent, and multi-endpoint control",,active
901
+ dashboard.auth_gate.desc,dashboard,DashboardPage,DashboardView,desc,"Securely sync token quotas, concurrent costs, and latency across Claude Code, Cursor, and Gemini CLI in a beautifully unified real-time dashboard.",,active
902
+ dashboard.auth_gate.feature.sync.title,dashboard,DashboardPage,DashboardView,sync_title,"Real-time Cloud Sync",,active
903
+ dashboard.auth_gate.feature.sync.desc,dashboard,DashboardPage,DashboardView,sync_desc,"Automated pipeline harvesting terminal execution costs into secure cloud records.",,active
904
+ dashboard.auth_gate.feature.anal.title,dashboard,DashboardPage,DashboardView,anal_title,"Multi-dimensional Analytics",,active
905
+ dashboard.auth_gate.feature.anal.desc,dashboard,DashboardPage,DashboardView,anal_desc,"Slice and dice by models or period to isolate high-cost peaks and allocations.",,active
906
+ dashboard.auth_gate.feature.guard.title,dashboard,DashboardPage,DashboardView,guard_title,"Local-first Autonomy",,active
907
+ dashboard.auth_gate.feature.guard.desc,dashboard,DashboardPage,DashboardView,guard_desc,"Skip all auth steps entirely on localhost. Preserves local debug speed.",,active
908
+ dashboard.expired_gate.hero_title,dashboard,DashboardPage,DashboardView,expired_hero_title,"Your cloud session has expired",,active
909
+ dashboard.expired_gate.desc,dashboard,DashboardPage,DashboardView,expired_desc,"For privacy and cloud drive security, active sessions expire automatically after a period. Verify again to restore your dashboard instantly.",,active
910
+ dashboard.expired_gate.feature.sec.title,dashboard,DashboardPage,DashboardView,sec_title,"Secure Protection",,active
911
+ dashboard.expired_gate.feature.sec.desc,dashboard,DashboardPage,DashboardView,sec_desc,"Encrypted tokens automatically rotate, guaranteeing complete assets privacy.",,active
912
+ dashboard.expired_gate.feature.restore.title,dashboard,DashboardPage,DashboardView,restore_title,"Seamless Restore",,active
913
+ dashboard.expired_gate.feature.restore.desc,dashboard,DashboardPage,DashboardView,restore_desc,"Instantly resume telemetry charts without reconfiguring terminal hooks.",,active
914
+ dashboard.expired_gate.feature.cloud.title,dashboard,DashboardPage,DashboardView,cloud_title,"Multi-device Sync",,active
915
+ dashboard.expired_gate.feature.cloud.desc,dashboard,DashboardPage,DashboardView,cloud_desc,"Readily access parsed token logs anywhere through synced dashboard.",,active
916
+ landing.v2.leaderboard.kicker,landing,LandingPage,MarketingLanding,leaderboard_kicker,"GLOBAL TOKEN LEADERBOARD",,active
917
+ landing.v2.leaderboard.title,landing,LandingPage,MarketingLanding,leaderboard_title,"AI Token Efficiency",,active
918
+ landing.v2.leaderboard.subtitle,landing,LandingPage,MarketingLanding,leaderboard_subtitle,"Optionally and anonymously sync your local AI token usage to join the global efficiency leaderboard. Benchmark cost efficiency and model rotations with developers worldwide.",,active
919
+ landing.v2.leaderboard.active_developers,landing,LandingPage,MarketingLanding,active_developers,"1,240+ developers actively syncing",,active
920
+ landing.v2.leaderboard.top_badge,landing,LandingPage,MarketingLanding,top_badge,"EFFICIENCY CHAMP",,active
921
+ landing.v2.leaderboard.rank_first,landing,LandingPage,MarketingLanding,rank_first,"NO. 1 GLOBAL",,active
922
+ landing.v2.leaderboard.rank_second,landing,LandingPage,MarketingLanding,rank_second,"NO. 2",,active
923
+ landing.v2.leaderboard.rank_third,landing,LandingPage,MarketingLanding,rank_third,"NO. 3",,active
924
+ landing.v2.leaderboard.synced_tokens,landing,LandingPage,MarketingLanding,synced_tokens,"{{count}} tokens synced",,active
925
+ landing.v2.leaderboard.efficiency,landing,LandingPage,MarketingLanding,efficiency,"Efficiency: {{value}}",,active
926
+ landing.v2.leaderboard.streak_days,landing,LandingPage,MarketingLanding,streak_days,"{{count}} day streak",,active
927
+ landing.v2.leaderboard.view_more,landing,LandingPage,MarketingLanding,view_more,"View full leaderboard",,active
928
+ cmdk.placeholder,ui,CommandPalette,CommandPalette,placeholder,"Search pages and skills…",,active
929
+ cmdk.empty,ui,CommandPalette,CommandPalette,empty,"No matches",,active
930
+ cmdk.group.pages,ui,CommandPalette,CommandPalette,group_pages,"Pages",,active
931
+ cmdk.group.skills,ui,CommandPalette,CommandPalette,group_skills,"Skills",,active
932
+ cmdk.close,ui,CommandPalette,CommandPalette,close,"Close command menu",,active
933
+ cmdk.open_aria,ui,CommandPalette,CommandPalette,open_aria,"Command menu",,active
934
+ skills.dot.synced_aria,ui,SkillsPage,AgentDots,dot_synced_aria,"{{agent}}: synced. Click to unsync.",,active
935
+ skills.dot.off_aria,ui,SkillsPage,AgentDots,dot_off_aria,"{{agent}}: not synced. Click to sync.",,active
936
+ skills.dot.orphan_aria,ui,SkillsPage,AgentDots,dot_orphan_aria,"{{agent}}: link broken. Click to re-sync.",,active
937
+ skills.update.badge,ui,SkillsPage,InstalledSkillRow,update_badge,"Update",,active
938
+ skills.select.row_aria,ui,SkillsPage,InstalledSkillRow,select_row_aria,"Select {{name}}",,active
939
+ skills.select.toolbar_aria,ui,SkillsPage,BatchToolbar,select_toolbar_aria,"Bulk actions",,active
940
+ skills.select.count,ui,SkillsPage,BatchToolbar,select_count,"{{count}} selected",,active
941
+ skills.select.bulk_sync,ui,SkillsPage,BatchToolbar,select_bulk_sync,"Sync to",,active
942
+ skills.select.bulk_sync_hint,ui,SkillsPage,BatchToolbar,select_bulk_sync_hint,"Add agent to all selected",,active
943
+ skills.select.bulk_remove,ui,SkillsPage,BatchToolbar,select_bulk_remove,"Remove",,active
944
+ skills.select.clear,ui,SkillsPage,BatchToolbar,select_clear,"Clear",,active
945
+ skills.mode.popular,ui,SkillsPage,SkillsPage,mode_popular,"Popular",,active
946
+ skills.browse.placeholder_popular,ui,SkillsPage,SkillsPage,browse_placeholder_popular,"Filter popular skills",,active
947
+ skills.empty.popular,ui,SkillsPage,SkillsPage,empty_popular,"No popular skills right now.",,active
948
+ skills.toast.bulk_synced,ui,SkillsPage,SkillsPage,toast_bulk_synced,"Synced {{count}} skills to {{agent}}.",,active
949
+ skills.toast.bulk_removed,ui,SkillsPage,SkillsPage,toast_bulk_removed,"Removed {{count}} skills.",,active
950
+ skills.toast.synced_one,ui,SkillsPage,SkillsPage,toast_synced_one,"Synced {{name}} to {{agent}}.",,active
951
+ skills.toast.unsynced_one,ui,SkillsPage,SkillsPage,toast_unsynced_one,"Unsynced {{name}} from {{agent}}.",,active
952
+ skills.toast.updated,ui,SkillsPage,SkillsPage,toast_updated,"Updated {{name}}.",,active
953
+ skills.confirm.bulk_remove_title,ui,SkillsPage,SkillsPage,confirm_bulk_remove_title,"Remove {{count}} skills?",,active
954
+ skills.confirm.bulk_remove_desc,ui,SkillsPage,SkillsPage,confirm_bulk_remove_desc,"This unsyncs each skill from every agent and deletes its local copy.",,active
955
+ skills.update.available,ui,SkillsPage,SkillDetailPanel,update_available,"A newer version is available upstream.",,active
956
+ skills.update.action,ui,SkillsPage,SkillDetailPanel,update_action,"Update",,active
957
+ skills.usage.section_title,ui,SkillsPage,SkillDetailPanel,usage_section_title,"Activity",,active
958
+ skills.usage.invocations,ui,SkillsPage,SkillDetailPanel,usage_invocations,"Invocations",,active
959
+ skills.usage.cost,ui,SkillsPage,SkillDetailPanel,usage_cost,"Est. cost",,active
960
+ skills.usage.never,ui,SkillsPage,SkillDetailPanel,usage_never,"Never",,active
961
+ skills.usage.last_used,ui,SkillsPage,SkillDetailPanel,usage_last_used,"Last used",,active
962
+ skills.usage.today,ui,SkillsPage,SkillDetailPanel,usage_today,"Today",,active
963
+ skills.usage.days_ago,ui,SkillsPage,SkillDetailPanel,usage_days_ago,"{{days}}d ago",,active
964
+ skills.usage.months_ago,ui,SkillsPage,SkillDetailPanel,usage_months_ago,"{{months}}mo ago",,active
965
+ skills.usage.unknown,ui,SkillsPage,SkillDetailPanel,usage_unknown,"Unknown",,active
966
+ skills.usage.unused,ui,SkillsPage,SkillDetailPanel,usage_unused,"Not invoked yet. Possible dead weight if you never use it.",,active
967
+ skills.usage.disclaimer,ui,SkillsPage,SkillDetailPanel,usage_disclaimer,"Counts from Claude transcripts. Cost is the approximate spend of turns that invoked this skill.",,active
968
+ `,hD={"header.auth.sign_in_aria":"登录","login.back_home":"返回首页","login.cloud_only":"未配置云端登录。请使用 localhost 上的本地仪表盘。","login.title":"登录","login.subtitle":"选择邮箱或已连接账号。","login.dismiss":"关闭","login.verify_email_success":"邮箱已验证。你现在可以登录。","login.verify_email_pending":"请先在邮箱中完成验证,然后再登录。","login.oauth.continue":"使用 {{provider}} 继续","login.divider":"或","login.tab.sign_in":"登录","login.tab.sign_up":"创建账户","login.field.name":"显示名称","login.field.name_placeholder":"可选","login.field.email":"电子邮件","login.field.password":"密码","login.password_hint":"至少 {{min}} 个字符。","login.submit.sign_in":"使用邮箱登录","login.submit.sign_up":"创建账号","auth.callback.processing":"处理中…","auth.callback.success":"登录成功","auth.callback.redirecting":"正在返回 TokenTracker…","auth.callback.failed":"登录未完成,请重试。","auth.callback.close":"关闭此页","login_modal.subtitle":"登录以加入排行榜","login_modal.continue_email":"使用邮箱继续","login_modal.divider_email":"邮箱","shared.placeholder.short":"--","shared.unit.percent":"%","shared.unit.thousand_abbrev":"K","shared.unit.million_abbrev":"M","shared.unit.billion_abbrev":"B","shared.data_source":"数据来源:{{source}}","shared.error.prefix":"错误:{{error}}","shared.status.unsynced":"—","shared.time.now":"刚刚","error.boundary.title":"出了点问题","error.boundary.subtitle":"这个视图渲染失败了","error.boundary.hint":"打开控制台,然后重新加载页面","error.boundary.no_details":"没有错误详细信息","error.boundary.action.reload":"重新加载","identity_card.rank_label":"排名","identity_card.streak_label":"活跃天数","identity_card.rank_placeholder":"—","identity_card.streak_value":"{{days}} 天","usage.summary.total":"Token 总数","usage.summary.updated_at":"更新于 {{timestamp}}","usage.period.day":"日","usage.period.week":"周","usage.period.month":"月","usage.period.total":"总计","usage.period.custom":"自定义","usage.metric.total":"总计","usage.metric.input":"输入","usage.metric.output":"输出","usage.metric.cached_input":"缓存输入","usage.metric.reasoning_output":"推理输出","usage.button.refresh":"刷新","usage.overview.tablist_aria":"时间范围","usage.auto_refresh.aria":"自动刷新间隔","usage.auto_refresh.off":"关闭","usage.auto_refresh.30s":"30 秒","usage.auto_refresh.60s":"60 秒","usage.auto_refresh.120s":"120 秒","usage.overview.cost_breakdown_aria":"查看成本明细","usage.overview.distribution_aria":"来源占比:{{items}}","usage.overview.distribution_item":"{{label}} {{percent}}%","usage.overview.provider_card_aria":"{{provider}}:{{percent}}%,{{tokens}} Token,{{cost}}。点击{{action}}详情","usage.overview.expand":"展开","usage.overview.collapse":"收起","usage.overview.model_count":"{{count}} 个模型","usage.overview.model_details_aria":"{{provider}} 模型详情","widgets.page.title":"组件","widgets.cta.open_gallery":"打开小组件库","widgets.cta.download":"下载 Mac 应用","widgets.cta.macos_only":"仅限 macOS","widgets.menubar.section.title":"菜单栏","widgets.gallery.section.title":"桌面小组件","widgets.summary.name":"使用概览","widgets.summary.description":"今天和近 7 天的用量,以及紧凑趋势线。","widgets.heatmap.name":"热力图","widgets.heatmap.description":"像 GitHub 一样,一眼看清活跃和空闲的日子。","widgets.topModels.name":"热门模型","widgets.topModels.description":"你最常用的模型,按 Token 占比排序。","widgets.limits.name":"使用限制","widgets.limits.description":"Claude、Codex、Cursor、Gemini 等的实时速率限制进度。","daily.sort.date.label":"日期","daily.sort.date.title":"按日期排序","daily.sort.total.label":"总计","daily.sort.total.title":"按总计排序","daily.sort.input.label":"输入","daily.sort.input.title":"按输入排序","daily.sort.output.label":"输出","daily.sort.output.title":"按输出排序","daily.sort.cached.label":"缓存","daily.sort.cached.title":"按缓存输入排序","daily.sort.reasoning.label":"推理","daily.sort.reasoning.title":"按推理输出排序","daily.sort.conversations.label":"对话数","daily.sort.conversations.title":"按对话排序","details.pagination.prev":"上一页","details.pagination.next":"下一页","limits.copilot.otelHint.title":"跟踪 Copilot Token 使用情况","limits.copilot.otelHint.body":"限额信息通过你的 GitHub OAuth 令牌读取。如果还想记录逐 Token 用量,请启用 Copilot 的 OpenTelemetry 导出,把下面这段加到你的 shell 配置文件(~/.zshrc 或 ~/.bashrc):","limits.copilot.otelHint.copy":"复制","limits.copilot.otelHint.copied":"已复制","limits.panel.title":"使用限制","limits.panel.mode_separator":" · ","limits.label.cursor_plan":"套餐","limits.label.cursor_auto":"自动","limits.label.cursor_api":"API","limits.label.kiro_month":"月度","limits.label.kiro_bonus":"奖励","limits.label.kimi_weekly":"周","limits.label.kimi_5h":"5h","limits.label.kimi_total":"总量","limits.label.kimi_parallel":"并发:{{count}}","limits.label.copilot_premium":"高级","limits.label.copilot_chat":"对话","limits.status.not_connected":"未连接","limits.status.no_data":"未返回实时限额数据","limits.status.all_hidden":"所有限额提供商都已隐藏。请打开显示设置重新显示。","nav.usage":"用量","nav.limits":"限额","nav.widgets":"小组件","nav.skills":"Skills","nav.leaderboard":"排行榜","nav.collapse":"折叠侧边栏","nav.expand":"展开侧边栏","nav.menu":"打开导航菜单","nav.close_menu":"关闭导航菜单","nav.aside_label":"主导航","nav.nav_label":"导航","nav.version":"Token Tracker 版本 {{version}}","limits.page.subtitle":"AI 工具的速率限制和配额使用情况。","limits.settings.toggle_visible":"切换可见性","limits.settings.display_mode_label":"用量","limits.settings.display_mode_used":"已用","limits.settings.display_mode_remaining":"剩余","limits.page.openSettings":"显示设置","nav.group.general":"常规","nav.group.tools":"工具","nav.group.account":"账户","nav.settings":"设置","header.auth.open_settings":"打开设置","settings.page.title":"设置","settings.page.subtitle":"管理你的账户、外观和显示偏好。","settings.section.appearance":"外观","settings.section.account":"账户","settings.section.limits":"限制显示","settings.appearance.theme.label":"主题","settings.appearance.theme.hint":"选择 Token Tracker 在仪表盘中的显示方式。","settings.appearance.theme.light":"浅色","settings.appearance.theme.dark":"深色","settings.appearance.theme.system":"系统","settings.account.displayName":"显示名称","settings.account.edit":"编辑","settings.account.save":"保存","settings.account.saving":"保存...","settings.account.cancel":"取消","settings.account.userId":"用户 ID","settings.account.copyUserId":"复制用户 ID","settings.account.copy":"复制","settings.account.copied":"已复制","settings.account.cloudSync":"云同步","settings.account.cloudSyncHint":"将本地用量上传到你的 Token Tracker 云端账号。","settings.account.publicProfile":"公开主页","settings.account.publicProfileHint":"在公开排行榜中展示你的用量。","settings.account.displayNameAnonymousHint":"匿名状态下,排行榜会隐藏你的名字和头像","settings.account.displayNameDisabledWhileAnon":"请先关闭匿名,再编辑名字","settings.account.githubUrl":"GitHub 主页","settings.account.githubUrlHint":"在排行榜名字旁显示 GitHub 链接。","settings.account.githubUrlPlaceholder":"用户名或 https://github.com/用户名","settings.account.githubUrlInvalid":"请输入 GitHub 用户名,或 https://github.com/用户名","leaderboard.github.aria":"打开 GitHub 主页","leaderboard.github.tooltipAction":"点击查看 GitHub 主页","leaderboard.github.tooltipPrefix":"可在","leaderboard.github.tooltipSettingsLink":"设置","leaderboard.github.tooltipSuffix":"中配置你的主页","settings.account.signOut":"退出登录","settings.account.signIn":"登录","settings.account.signedOutHint":"登录后可管理云同步和排行榜偏好。","settings.section.menubar":"菜单栏应用","settings.menubar.showStats":"在菜单栏中显示统计信息","settings.menubar.showStatsHint":"在菜单栏图标旁边显示今天的Token 数量和成本。","settings.menubar.animatedIcon":"动画图标","settings.menubar.animatedIconHint":"闪烁 Clawd 角色并在菜单栏中播放同步动画。","settings.menubar.launchAtLogin":"登录时启动","settings.menubar.launchAtLoginHint":"登录 macOS 时自动启动 TokenTrackerBar。","settings.menubar.syncNow":"立即同步","settings.menubar.syncNowHint":"触发本地AI工具日志立即解析并上传。","settings.menubar.syncing":"正在同步...","settings.menubar.updates":"更新","settings.menubar.checkUpdates":"检查更新","settings.footer.statusPage":"系统状态","menubar.slot.primary":"第一个位置","menubar.slot.secondary":"第二个位置","menubar.native_only":"打开 macOS 版 TokenTrackerBar 后可编辑菜单栏显示。","menubar.metric.today_tokens":"今日 Token","menubar.metric.today_cost":"今日成本","menubar.metric.last_7d_tokens":"近 7 天 Token","menubar.metric.total_tokens":"总 Token","menubar.metric.total_cost":"总成本","menubar.metric.claude_5h":"Claude 5 小时限额","menubar.metric.claude_7d":"Claude 7 天限额","menubar.metric.codex_5h":"Codex 5 小时限额","menubar.metric.codex_7d":"Codex 7 天限额","nav.ip_check":"Claude IP 检查","skills.page.title":"Skills","skills.tab.my":"我的","skills.tab.browse":"发现","skills.action.refresh":"刷新","skills.action.install":"安装","skills.action.choose_targets":"选择目标","skills.target.menu_label":"安装到","skills.target.none":"未选目标","skills.toast.installed":"已把 {{name}} 安装到 {{targets}}。","skills.action.remove":"移除","skills.action.search":"搜索","skills.action.search_aria":"搜索 skills","skills.target.synced_summary":"已同步到 {{targets}}","skills.target.synced_none":"尚未同步到任何 agent","skills.row.open_details":"查看 {{name}} 详情","skills.detail.close":"关闭详情","skills.detail.sync_section_title":"同步到","skills.detail.remove_button":"从所有 agent 移除","skills.detail.remove_confirm_hint":"这会从每个 agent 取消同步并删除本地副本。","skills.filter.agent_label":"Agent","skills.filter.agent_all":"全部 agent","skills.filter.clear":"清除筛选","skills.filter.result_count":"{{filtered}} / {{total}} 个 skill","skills.filter.result_count_browse":"{{count}} 个结果","skills.empty.no_match":"当前筛选下没有匹配的 skill。","hint.dismiss":"关闭提示","hint.dismissible_aria":"可关闭的提示","skills.card.installed":"已安装","skills.card.targets_prefix":"将安装到:","skills.card.targets_change":"更改","skills.card.installs":"{{count}} 次安装","skills.source.label":"来源","skills.source.all":"全部仓库","skills.mode.repo":"仓库","skills.mode.skillssh":"skills.sh","skills.browse.placeholder_all":"在已启用的仓库里搜索…","skills.browse.placeholder_repo":"在 {{repo}} 中搜索…","skills.browse.placeholder_skillssh":"在 skills.sh 仓库中搜索…","skills.browse.empty_sources":"添加一个 GitHub 仓库以开始浏览技能。","skills.browse.add_repo_hint":"想要更多 skill?添加一个 GitHub 仓库。","skills.browse.manage_sources":"管理来源","skills.browse.hint_skillssh":"至少输入 2 个字符以搜索 skills.sh。","skills.browse.loading_hint":"正在从 GitHub 拉取 skill 信息,首次加载可能需要一分钟,结果会缓存。","skills.error.generic":"Skill 操作失败。","skills.confirm.remove_title":"要移除 {{name}} 吗?","skills.confirm.remove_managed":"这个 skill 将从所有已连接的 AI 工具中移除,几秒内可以撤销。","skills.confirm.remove_local":"将从所有 AI 工具目录中删除该 skill 文件夹。此操作无法撤销。","skills.toast.removed":"已移除 {{name}}。","shared.action.undo":"撤销","shared.action.cancel":"取消","shared.action.apply":"应用","skills.empty.my":"还没有 skill。去「发现」搜索或安装。","skills.empty.my_cta":"去发现","skills.empty.browse":"这个来源下没有找到技能。","skills.empty.search":"没有结果,换个关键词试试。","skills.repo.placeholder":"owner/repository","skills.repo.add":"添加仓库","skills.repo.invalid":"请输入 owner/repository 或 GitHub 仓库 URL。","skills.repo.remove":"移除仓库","settings.appearance.language.label":"语言","settings.appearance.language.hint":"使用“系统”时会默认跟随本机语言。","settings.appearance.language.system":"系统","settings.appearance.language.english":"英语","settings.appearance.language.chinese":"简体中文","settings.appearance.language.traditional_chinese":"繁体中文","settings.appearance.language.japanese":"日语","settings.appearance.language.korean":"韩语","settings.appearance.currency.label":"货币","settings.appearance.currency.hint":"选择用量成本的显示币种。","settings.appearance.currency.opt.usd":"美元 ($)","settings.appearance.currency.opt.eur":"欧元 (€)","settings.appearance.currency.opt.gbp":"英镑 (£)","settings.appearance.currency.opt.cny":"人民币 (¥)","settings.appearance.currency.opt.jpy":"日元 (¥)","settings.appearance.currency.opt.hkd":"港币 (HK$)","settings.appearance.currency.rate_source.default":"内置默认汇率","settings.appearance.currency.rate_source.fetched":"数据源:open.er-api.com","settings.appearance.currency.rate_updated":"更新于 {{when}}","settings.appearance.currency.rate_never":"尚未刷新"},fD={"usage.overview.antigravity_notice_title":"Token 为估算值","usage.overview.antigravity_notice_body":"Antigravity 的本地日志没有真实用量字段,这里的数字是按字符长度(约 4 字符/Token)估算出来的,也没有扣除 Gemini 的 prompt cache 折扣。请把它当作上限估算,不要直接对账账单。","usage.period.last24h":"24h","stats.period.today":"今日","stats.period.last24h":"24h","stats.period.week":"本周","stats.period.month":"本月","stats.period.all":"全部","stats.period.convs":"对话","dashboard.core_index.collapse_label":"▾","dashboard.core_index.expand_label":"▸","dashboard.core_index.collapse_aria":"折叠模型分解","dashboard.core_index.expand_aria":"展开模型细分","dashboard.rolling.title":"最近的活动","dashboard.rolling.last_7d":"过去 7 天","dashboard.rolling.last_30d":"过去 30 天","dashboard.rolling.avg_active_day":"日平均","dashboard.projects.title":"项目用量","dashboard.projects.tokens_label":"Token","dashboard.projects.stars_label":"星标","dashboard.projects.limit_label":"展示","dashboard.projects.limit_aria":"选择仓库显示数量","dashboard.projects.limit_top_3":"前 3 名","dashboard.projects.limit_top_6":"前 6 名","dashboard.projects.limit_top_10":"前 10 名","dashboard.projects.empty":"没有公开仓库","dashboard.widgets.title":"桌面小组件","dashboard.widgets.hint":"右键点按桌面 → 编辑小组件 → 搜索“TokenTracker”","dashboard.widgets.dismiss_aria":"关闭小组件介绍","dashboard.cost_breakdown.title":"成本明细","dashboard.cost_breakdown.total_label":"预计总成本","dashboard.cost_breakdown.close":"关闭","trend.monitor.label":"使用趋势","trend.zoom.open_aria":"展开全屏","trend.zoom.close_aria":"关闭","trend.zoom.badge":"趋势洞察","trend.zoom.desc":"悬停任意柱子查看 token、成本与对话数。切换粒度可从月份下钻到半小时。","trend.zoom.insight_badge":"洞察","trend.zoom.tooltip.cost":"成本","trend.zoom.tooltip.conversations":"对话","trend.zoom.stats.tokens":"Token 总量","trend.zoom.stats.cost":"总成本","trend.zoom.stats.conversations":"对话数","trend.zoom.stats.peak":"峰值时段","trend.zoom.gran.aria":"粒度","trend.zoom.gran.30min":"30 分钟","trend.zoom.gran.day":"天","trend.zoom.gran.month":"月","trend.zoom.prev_day":"前一天","trend.zoom.next_day":"后一天","trend.zoom.loading":"加载中…","trend.zoom.pick_day":"选择日期","trend.zoom.pick_range":"选择日期范围","trend.zoom.insight.empty":"一段安静的时光,没有一个 token 流过。","trend.zoom.insight.calm":"轻描淡写。模型大多在待命,只在你需要时才醒来搭把手。","trend.zoom.insight.steady":"{{active}} 个活跃时段里节奏平稳,峰值 {{peak}}。是那种不声不响就把事情交付掉的节奏。","trend.zoom.insight.heavy":"火力全开:{{active}} 个时段持续高热,峰值冲到 {{peak}}。这是自己制造势能、而非等待灵感的人的产出。","trend.zoom.insight.massive":"工业级别。{{peak}} 的峰值,吞吐从不降温。到这个量级,你已经不是在用模型,而是在运营一座工厂。","heatmap.title":"热力图","heatmap.empty":"尚无活动数据。","heatmap.legend.less":"少","heatmap.legend.more":"多","heatmap.legend.utc":"UTC","heatmap.tooltip":"{{day}} • {{value}} {{unit}} • {{tz}}","heatmap.unit.tokens":"Token","heatmap.month.jan":"1月","heatmap.month.feb":"2月","heatmap.month.mar":"3月","heatmap.month.apr":"4月","heatmap.month.may":"5月","heatmap.month.jun":"6月","heatmap.month.jul":"7月","heatmap.month.aug":"8月","heatmap.month.sep":"9月","heatmap.month.oct":"10月","heatmap.month.nov":"11月","heatmap.month.dec":"12月","heatmap.day.sun":"日","heatmap.day.mon":"一","heatmap.day.tue":"二","heatmap.day.wed":"三","heatmap.day.thu":"四","heatmap.day.fri":"五","heatmap.day.sat":"六","dashboard.session_expired.copy_label":"运行 npx --yes @ipv9/tokentracker-cli init","dashboard.session_expired.copied":"已复制","dashboard.install.prompt":"安装 Node.js 18+ 然后运行:","dashboard.install.cmd.init":"npx --yes @ipv9/tokentracker-cli init","dashboard.install.cmd.init_link_code":"npx --yes @ipv9/tokentracker-cli init --link-code {{link_code}}","dashboard.install.copy":"复制安装命令","dashboard.install.copy_base":"复制初始化命令","dashboard.install.copied":"已复制到剪贴板","dashboard.install.link_code.loading":"正在生成专属代码...","dashboard.install.link_code.failed":"专属代码不可用","dashboard.install.cmd.sync":"npx --yes @ipv9/tokentracker-cli sync","dashboard.daily.title":"每日细目","dashboard.daily.empty":"还没有数据。先使用 AI CLI,再运行 {{cmd}}。","dashboard.identity.title":"你的个人资料","dashboard.identity.subtitle":"记录你的编码之旅","dashboard.identity.fallback":"匿名用户","dashboard.screenshot.title_line1":"AI 编程助手","dashboard.screenshot.title_line2":"2025 年度回顾","dashboard.screenshot.twitter_button":"分享到 X","dashboard.screenshot.twitter_label":"分享到 X","dashboard.screenshot.twitter_hint":"自动将图像复制到剪贴板","dashboard.screenshot.twitter_text":"记录中的 {{total_tokens}} Token。\\n{{model_name}} 以 {{model_percent}}% 领先。\\n\\n我的 AI 使用情况,未经审计 →\\ntokentracker.cc","heatmap.3d.hover_tip":"点击进入 3D 全屏旋转分析模式","heatmap.3d.modal.title":"Token 三维透视","heatmap.3d.modal.desc":"按住左键拖拽可任意旋转,悬浮感知每日活跃数据与多维统计。","heatmap.3d.modal.stats.total_tokens":"年度 Token 总量","heatmap.3d.modal.stats.precision_total_tokens":"精准年消耗量","heatmap.3d.modal.stats.estimated_cost":"年度估算费用","heatmap.3d.modal.stats.active_rate_days":"活跃占比 / 天数","heatmap.3d.modal.stats.max_streak":"最长连续活跃","heatmap.3d.modal.stats.days_suffix":"天","heatmap.3d.modal.stats.peak_day":"单日峰值暴击","heatmap.3d.modal.stats.precision_peak_value":"精确单日峰值","heatmap.3d.modal.stats.no_data":"无数据","heatmap.3d.modal.legend.title":"活跃度层级","heatmap.3d.modal.palette.emerald":"翡翠之城","heatmap.3d.modal.palette.ocean":"深海浩瀚","heatmap.3d.modal.palette.neon":"赛博霓虹","heatmap.3d.modal.palette.amber":"烈焰余晖","heatmap.3d.modal.control.play":"启动慢速自转","heatmap.3d.modal.control.pause":"暂停自动旋转","heatmap.3d.modal.control.reset":"重置 3D 视角","heatmap.3d.modal.footer.tip":"双指缩放 / 滚轮缩放 / 鼠标拖拽旋转 3D 图表","heatmap.3d.modal.ai.title.default":"持之以恒的行者","heatmap.3d.modal.ai.eval.default":"在技术的长河中持之以恒。也许日常的编码并不总是波澜壮阔,但每一个微小的活跃点都在记录着您的思考与探索。星火成留,终将汇聚成属于您的数字海洋。","heatmap.3d.modal.ai.title.peak":"极限活跃级贡献者","heatmap.3d.modal.ai.eval.peak":"这一年中,您的 Token 产出表现出极高的工程密度。如此规模的开发量相当于深度参与了中大型系统底座的重构,每一次击键都在将复杂的逻辑收敛为确定性的代码。这是极度专注与纯粹工程热爱的最好印证。","heatmap.3d.modal.ai.title.heavy":"高频产出级开发者","heatmap.3d.modal.ai.eval.heavy":"卓越的持续输出。您的 Token 累积量已达数百万字,相当于数十部中篇技术巨著的体量。高饱和度的编码节奏表明您正在以极高的执行力构建属于您的数字资产,展现了卓越的创造力。","heatmap.3d.modal.ai.title.core":"核心生产力专家","heatmap.3d.modal.ai.eval.core":"极具韧性的长期投入。在过去的一年中,您在较长周期内稳定保持着高强度的开发节奏。您用扎实的代码行数与 Token 产出,默默筑起了项目的核心架构,是当之无愧的工程支柱。","heatmap.3d.modal.ai.title.steady":"稳健成长型工程师","heatmap.3d.modal.ai.eval.steady":"踏实而坚定的技术积累。每一次 Token 的递增,都是您在坚实地砌下通往未来的代码基石。这种细水长流的稳健节奏,往往是一个优秀开发者通往工程大师的必经之路。","heatmap.3d.voxel.joke.1":"🔥 极度疯狂!产出 {{value}} tokens!你是在疯狂训练大模型,还是手撸了一个编译器?","heatmap.3d.voxel.joke.2":"🚀 史诗级输出!共 {{value}} tokens。今日产出可绕地球一圈,AI 都在为你惊叹!","heatmap.3d.voxel.joke.3":"⚡ 爆击日!{{value}} tokens。代码如泉涌,键盘已经开始冒烟了!","heatmap.3d.voxel.level3":"⚡ 生产力大爆发({{value}} tokens)!高效专注的黄金时刻,继续保持这个巅峰状态!","heatmap.3d.voxel.level2":"🌱 渐入佳境({{value}} tokens)!稳步产出,每一次敲击键盘都是在为大厦添砖加瓦。","heatmap.3d.voxel.level1":"🍃 聚沙成塔({{value}} tokens)。微小的提交也是对未来的投资,保持复利的力量!","heatmap.3d.voxel.level0":"💤 养精蓄锐。在不写代码的日子里,灵感也在悄悄生长。","ipcheck.page.title":"Claude IP 检测","ipcheck.page.subtitle":"查看当前访问 Claude 的出口 IP、纯净度、地理与风险信号,识别可能影响登录或触发风控的因素。","ipcheck.mask.toggle":"隐藏 IP","ipcheck.ipv6.warn":"当前为 IPv6 环境,不建议用 IPv6 访问 Claude Code,部分检测结果可能不完整。","ipcheck.ip.cn":"中国出口 IPv4","ipcheck.ip.cloudflare":"Cloudflare 出口","ipcheck.ip.claude":"Claude 出口","ipcheck.ip.failed":"获取失败","ipcheck.ip.loading":"加载中...","ipcheck.trust.title":"信任评分","ipcheck.trust.subtitle":"Claude 风控视角下的 IP 纯净度","ipcheck.trust.no_data":"无数据","ipcheck.trust.no_ip":"未获取到 Claude 出口 IP,无法评分","ipcheck.trust.no_score":"该 IP 暂无评分数据","ipcheck.trust.gauge.low":"0 高危","ipcheck.trust.gauge.high":"100 可信","ipcheck.trust.label.pristine":"极度纯净","ipcheck.trust.label.clean":"纯净","ipcheck.trust.label.good":"良好","ipcheck.trust.label.neutral":"中性","ipcheck.trust.label.suspicious":"可疑","ipcheck.trust.label.unreachable":"不可访问","ipcheck.trust.text.excellent":"该 IP 信誉极好","ipcheck.trust.text.great":"该 IP 信誉优异","ipcheck.trust.text.minor":"该 IP 存在轻微风险","ipcheck.trust.text.moderate":"该 IP 存在一定风险","ipcheck.trust.text.severe":"该 IP 风险极高","ipcheck.trust.text.restricted":"处于不可访问区域,Claude 会严格风控","ipcheck.trust.region_warn.title":"Claude 出口 IP 位于 {{region}}","ipcheck.trust.region_warn.body":"不建议登录 Claude,容易触发封号风控。","ipcheck.trust.region_support":"Claude 支持地区","ipcheck.trust.region.accessible":"可访问","ipcheck.common.unknown":"未知","ipcheck.props.title":"IP 属性","ipcheck.props.region":"地区","ipcheck.props.city":"城市","ipcheck.props.type":"类型","ipcheck.props.asn":"ASN","ipcheck.props.org":"运营商","ipcheck.props.residential":"家庭住宅","ipcheck.props.datacenter":"机房","ipcheck.security.title":"安全检测","ipcheck.security.vpn":"VPN","ipcheck.security.proxy":"代理 (Proxy)","ipcheck.security.tor":"Tor","ipcheck.security.crawler":"机器人 (Crawler)","ipcheck.security.abuser":"滥用记录","ipcheck.security.proxy_flag":"代理","ipcheck.security.crawler_yes":"是","ipcheck.security.crawler_no":"否","ipcheck.security.abuser_yes":"有记录","ipcheck.security.abuser_no":"无记录","ipcheck.security.clean":"未检测到","ipcheck.avail.title":"Claude 可用性","ipcheck.avail.tooltip":"Claude 服务器在美国,从亚洲访问延迟超过 100ms 属于正常情况。","ipcheck.avail.refresh":"刷新","ipcheck.avail.svc_row":"服务状态","ipcheck.avail.latency.normal":"正常","ipcheck.avail.latency.good":"良好","ipcheck.avail.latency.slow":"较慢","ipcheck.avail.latency.unreachable":"不可访问","ipcheck.avail.svc.none":"全部正常","ipcheck.avail.svc.minor":"轻微故障","ipcheck.avail.svc.major":"重大故障","ipcheck.avail.svc.critical":"严重故障","ipcheck.avail.svc.maintenance":"维护中","ipcheck.avail.svc.other":"服务异常","ipcheck.dns.title":"DNS 泄露检测","ipcheck.dns.status":"状态","ipcheck.dns.outlet":"DNS 出口","ipcheck.dns.outlet_ip":"DNS 出口 IP","ipcheck.dns.isp":"服务商","ipcheck.dns.leaked":"可能泄露","ipcheck.dns.no_leak":"未检测到泄露","ipcheck.dns.encrypted":"DNS 加密或未暴露","ipcheck.dns.cn_tag":"中国 DNS","ipcheck.udp.title":"WebRTC UDP 泄露","ipcheck.udp.status":"状态","ipcheck.udp.outlet":"UDP 出口","ipcheck.udp.outlet_ip":"UDP 出口 IP","ipcheck.udp.origin":"归属地","ipcheck.udp.disabled":"WebRTC 已禁用","ipcheck.udp.no_leak":"未检测到泄露","ipcheck.udp.leaked":"可能泄露","ipcheck.udp.anomaly":"异常","ipcheck.device.title":"设备信息","ipcheck.device.tz":"时区","ipcheck.device.lang":"语言","ipcheck.device.os":"操作系统 / 浏览器","ipcheck.device.touch":"触屏","ipcheck.device.net":"网络类型","ipcheck.device.dnt":"Do Not Track","ipcheck.device.webgl_render":"WebGL 渲染器","ipcheck.device.canvas_fp":"Canvas 指纹","ipcheck.device.webgl_fp":"WebGL 指纹","ipcheck.device.match":"一致","ipcheck.device.mismatch":"不一致","ipcheck.device.local":"本地","ipcheck.device.estimate_suffix":"(估算)","ipcheck.device.diff_equal":"偏移略有差异","ipcheck.device.diff_ahead":"Claude 快 {{h}} 小时","ipcheck.device.diff_behind":"Claude 慢 {{h}} 小时","ipcheck.device.lang_expected":"Claude 出口常用","ipcheck.device.touch_yes":"是","ipcheck.device.touch_no":"否","ipcheck.device.dnt_on":"已开启","ipcheck.device.dnt_off":"已关闭","ipcheck.device.dnt_unset":"未设置","ipcheck.device.net_unsupported":"不支持检测","ipcheck.device.unsupported":"不支持","ipcheck.history.title":"Claude 出口 IP 历史","ipcheck.history.subtitle":"仅本地存储于浏览器,最多保留 6 条","ipcheck.history.clear":"清除","ipcheck.history.empty":"暂无历史记录","ipcheck.history.current":"当前","ipcheck.region.CN":"中国大陆","ipcheck.region.HK":"香港","ipcheck.region.MO":"澳门","ipcheck.region.RU":"俄罗斯","ipcheck.region.KP":"朝鲜","ipcheck.region.IR":"伊朗","ipcheck.region.SY":"叙利亚","ipcheck.region.CU":"古巴","ipcheck.region.BY":"白俄罗斯","ipcheck.region.VE":"委内瑞拉","leaderboard.profile_modal.close":"关闭","leaderboard.profile_modal.loading":"正在加载用户资料…","leaderboard.profile_modal.error":"加载用户资料失败。","leaderboard.profile_modal.empty":"这个用户的资料未公开。","leaderboard.profile_modal.row_aria":"查看 {{name}} 的资料","leaderboard.profile_modal.rank":"#{{rank}}","leaderboard.profile.hero.rank_label":"排名","leaderboard.profile_modal.hero.total_tokens":"总 Token","leaderboard.profile_modal.hero.total_cost":"总花费","leaderboard.profile_modal.hero.github":"GitHub 主页","leaderboard.profile_modal.stat.total_cost":"总花费","leaderboard.profile_modal.stat.total_tokens":"总 Token","leaderboard.profile_modal.stat.active_days":"活跃天数","leaderboard.profile_modal.stat.avg_per_day":"日均花费","leaderboard.profile_modal.streak.current":"当前连续","leaderboard.profile_modal.streak.longest":"最长连续","leaderboard.profile_modal.streak.days":"{{count}} 天","leaderboard.profile_modal.best_day.title":"最佳日","leaderboard.profile_modal.best_day.none":"—","leaderboard.profile_modal.models.count":"使用了 {{count}} 个模型","leaderboard.profile_modal.models.favorite":"最爱模型","leaderboard.profile_modal.models.none":"暂无模型记录","leaderboard.profile_modal.heatmap.title":"活跃度(最近 365 天)","leaderboard.profile_modal.providers.title":"按 Provider 分布","leaderboard.profile_modal.providers.none":"本周期无使用数据。","leaderboard.profile_modal.view_full":"查看完整主页","local_only.title":"请在客户端内使用","local_only.body":"这个页面读取的是你本机上的数据,所以只能在 Mac app 或命令行 dashboard 里查看。","local_only.open_app":"在 Mac app 内打开","local_only.download":"下载 Mac app","dashboard.auth_gate.title":"登录 Token Tracker","dashboard.auth_gate.subtitle":"登录以在云端同步并查看您的 API 使用量、成本和 Token 消耗趋势。","dashboard.auth_gate.button":"立即登录","dashboard.expired_gate.title":"会话已过期","dashboard.expired_gate.subtitle":"您的会话已过期。请重新登录以继续查看您的云端仪表盘。","dashboard.expired_gate.button":"重新登录","shared.app_name":"Token Tracker","dashboard.auth_gate.hero_title":"让 AI 代理的每一笔 Token 消耗","dashboard.auth_gate.hero_subtitle":"清晰透明、多端无缝掌控","dashboard.auth_gate.desc":"为您在纯云端安全同步来自 Claude Code、Cursor、Gemini CLI 等全平台主流代理的 Token 额度、并发费用及耗时统计,提供前所未有的全景可视化数据分析。","dashboard.auth_gate.feature.sync.title":"实时云端同步","dashboard.auth_gate.feature.sync.desc":"全自动采集各端代理的开销,并在您的私人云盘中秒级安全归档。","dashboard.auth_gate.feature.anal.title":"多维看板分析","dashboard.auth_gate.feature.anal.desc":"按模型分类、时间跨度统计 Token 分布,随时追溯开销尖峰及用量结构。","dashboard.auth_gate.feature.guard.title":"本地直连免登","dashboard.auth_gate.feature.guard.desc":"在 Localhost 模式下自动跳过所有登录验证,完美保护本地离线调试体验。","dashboard.expired_gate.hero_title":"您的云端会话已过期","dashboard.expired_gate.desc":"为了您的隐私与云盘数据安全,安全凭证会在一段时间后自动过期。请重新验证以极速同步仪表盘。","dashboard.expired_gate.feature.sec.title":"安全证书保护","dashboard.expired_gate.feature.sec.desc":"加密证书到期自动销毁,严密守护您的 Token 账单资产。","dashboard.expired_gate.feature.restore.title":"无缝数据恢复","dashboard.expired_gate.feature.restore.desc":"重新登入后自动恢复多端实时看板刷新,无需重新绑定。","dashboard.expired_gate.feature.cloud.title":"跨端云端同步","dashboard.expired_gate.feature.cloud.desc":"多端随时离线统计并同步至个人控制台,多地协同掌握开销。"},pD={"landing.handle.default":"VIBE_USER","landing.handle.special":"伏特","landing.screenshot.alt":"TokenTracker 仪表板截图","landing.nav.login":"登录","landing.nav.signup":"注册","landing.install.command":"npx --yes @ipv9/tokentracker-cli","landing.install.action.copy":"复制命令","landing.install.action.copied":"已复制","landing.meta.title":"Token Tracker —— AI Coding CLI 的 Token 用量追踪器","landing.meta.description":"自动监控 Claude Code、Cursor、Codex 等工具的 Token 用量。本地优先、注重隐私、零配置。","landing.meta.og_site_name":"Token Tracker","landing.meta.og_type":"website","landing.meta.og_image":"https://www.tokentracker.cc/og-image.jpg","landing.meta.og_url":"https://www.tokentracker.cc/","landing.meta.twitter_card":"summary_large_image","share.meta.title":"Token Tracker 分享","share.meta.description":"分享你的 Token Tracker 仪表板快照,包含跨模型、项目和时间窗口的用量洞察。","share.meta.og_site_name":"Token Tracker","share.meta.og_type":"website","share.meta.og_image":"https://www.tokentracker.cc/share-dashboard.jpg","share.meta.og_url":"https://www.tokentracker.cc/share","share.meta.twitter_card":"summary_large_image","landing.handle.placeholder":"试试 “{{handle}}”","landing.rank.expectation":"预期排名:{{rank}}","landing.rank.singularity":"登顶","landing.rank.unranked":"未上榜","landing.cta.primary":"进入仪表板","landing.cta.secondary":"GitHub","landing.v2.hero.title_line1":"追踪你所有的","landing.v2.hero.title_line2":"AI Token","landing.v2.install.mac_cta":"下载 macOS 版","landing.v2.install.win_cta":"下载 Windows 版","landing.v2.install.desktop_cta":"下载桌面版","landing.v2.install.os_macos":"macOS","landing.v2.install.os_windows":"Windows","landing.v2.install.availability":"支持 macOS 与 Windows","landing.v2.models.title":"支持的 AI CLI 工具","landing.v2.compare.kicker":"无缝追踪","landing.v2.compare.title":"别再瞎猜你的 AI 用量。","landing.v2.compare.subtitle":"AI CLI 工具常把原始用量数据隐藏在零散的本地文件中。TokenTracker 将它们实时整理为本地优先的仪表板。","landing.v2.distill.body":"100% 本地处理,不上传任何 prompt 或代码。","landing.v2.compare.with.title":"用 Token Tracker","landing.v2.compare.with.p1":"集中式用量仪表板","landing.v2.compare.with.p2":"实时 Token 指标","landing.v2.compare.with.p3":"100% 本地,隐私无忧","landing.v2.compare.with.p4":"多客户端终端审计轨迹","landing.v2.compare.without.title":"不用","landing.v2.compare.without.p1":"散落的 JSON 日志文件","landing.v2.compare.without.p2":"对 Token 消耗一无所知","landing.v2.compare.without.p3":"突如其来的 API 账单","landing.v2.compare.without.p4":"缺失历史审计日志","landing.v2.leaderboard.kicker":"全球 TOKEN 排行榜","landing.v2.leaderboard.title":"AI Token 效率","landing.v2.leaderboard.subtitle":"您可以选择匿名同步本地 AI Token 用量,加入全球效率排行榜。与全球开发者一同评估模型开销效率与调用频次。","landing.v2.leaderboard.view_more":"查看完整排行榜","landing.v2.footer.line":"Token Tracker —— 开发者打造,服务开发者。","landing.v2.nav.status":"状态","landing.v2.nav.github":"GitHub","landing.v2.models.agent.codex":"Codex","landing.v2.models.agent.claude_code":"Claude Code","landing.v2.models.agent.cursor":"Cursor","landing.v2.models.agent.gemini":"Gemini","landing.v2.models.agent.opencode":"OpenCode","landing.v2.models.agent.openclaw":"OpenClaw","landing.v2.cta.primary":"Dashboard","landing.v2.hero.subtagline":"自动监控 Claude Code、Cursor、Codex 等工具的 Token 用量。本地优先、注重隐私、零配置。","leaderboard.profile.nav.back":"排行榜","leaderboard.title":"排行榜","leaderboard.range":"UTC {{period}} · {{from}} – {{to}}","leaderboard.range_loading":"UTC {{period}} · …","leaderboard.range.total":"全部时间","leaderboard.generated_at":"更新于 {{ts}}","leaderboard.period.week":"周","leaderboard.period.month":"月","leaderboard.period.total":"全部","leaderboard.me_label":"你","leaderboard.anon_label":"匿名","leaderboard.error.unknown":"未知错误","leaderboard.loading":"加载中…","leaderboard.empty":"暂无数据","leaderboard.column.rank":"排名","leaderboard.column.user":"用户","leaderboard.column.total":"总计","leaderboard.column.codex":"Codex","leaderboard.column.claude":"Claude","leaderboard.column.gemini":"Gemini","leaderboard.column.cursor":"Cursor","leaderboard.column.opencode":"OpenCode","leaderboard.column.openclaw":"OpenClaw","leaderboard.column.hermes":"Hermes","leaderboard.column.kiro":"Kiro","leaderboard.column.copilot":"Copilot","leaderboard.column.kimi":"Kimi","leaderboard.column.supplemental":"其他","leaderboard.column.est_cost":"预估花费","leaderboard.signin_prompt":"登录后即可上榜","leaderboard.signin_button":"登录","leaderboard.sync_prompt":"开启云同步即可参与排名","leaderboard.sync_button.idle":"开启并同步","leaderboard.sync_button.busy":"同步中…","leaderboard.pagination.page_size_label":"每页显示","leaderboard.pagination.prev":"上一页","leaderboard.pagination.next":"下一页","leaderboard.pagination.ellipsis":"……","leaderboard.pagination.page_unknown":"第 {{page}} 页","share.modal.title":"分享你的数据","share.modal.subtitle":"生成海报卡片,随处分享。","share.modal.close":"关闭","share.modal.action.x":"分享到 X","share.modal.action.download":"下载","share.modal.action.copy":"复制图片","share.modal.hint.x":"把图片粘贴到推文里","share.modal.hint.copy":"到剪贴板","share.modal.name_label":"显示名称","share.modal.name_placeholder":"输入你的名字","share.modal.style_label":"样式","share.modal.footer":"数据始终保留在本地——图片在你的浏览器内生成,绝不上传。","share.button.label":"分享","share.button.aria":"打开分享卡片","share.toast.copied":"图片已复制到剪贴板","share.toast.downloaded":"图片已保存","share.toast.failed":"图片生成失败","share.toast.working":"生成中…","share.variant.neon":"霓虹","share.variant.broadsheet":"特刊","share.date.month_year":"{{year}} 年 {{month}}","share.issue.all_time":"总计","share.month_short.jan":"1 月","share.month_short.feb":"2 月","share.month_short.mar":"3 月","share.month_short.apr":"4 月","share.month_short.may":"5 月","share.month_short.jun":"6 月","share.month_short.jul":"7 月","share.month_short.aug":"8 月","share.month_short.sep":"9 月","share.month_short.oct":"10 月","share.month_short.nov":"11 月","share.month_short.dec":"12 月","share.hook.top_loyal":"{{name}} 占了 {{percent}}% 的用量。","share.hook.days_record":"共记录 {{days}} 天。","share.hook.top_led":"{{name}} 领跑,占比 {{percent}}%。","share.hook.multi_models":"{{days}} 天里用了 {{count}} 个模型。","share.hook.days_with_model":"{{name}} 陪你跑了 {{days}} 天。","share.hook.new_chapter":"新的记录,从这里开始。","share.card.broadsheet.issue":"期号","share.card.broadsheet.by":"分享者","share.card.broadsheet.tracked_since":"追踪起始","share.card.broadsheet.total_tokens":"总 Token 数","share.card.broadsheet.estimated_spend":"预估花费","share.card.broadsheet.billable_days":"{{days}} 个活跃日","share.card.broadsheet.heatmap_title":"年度热图","share.card.broadsheet.heatmap_days_on_record":"{{active}} / {{total}} 天有记录","share.card.broadsheet.roster_title":"模型榜","share.card.broadsheet.roster_subtitle":"常用模型轮换","share.card.broadsheet.empty":"这一周很安静,还没有模型数据。","share.card.broadsheet.global_rank":"全站排名","share.card.broadsheet.active_days":"活跃","share.card.broadsheet.days_count":"{{days}} 天","share.card.broadsheet.track_yours":"追踪你自己的","share.card.annual.report_title":"用量报告","share.card.annual.less":"少","share.card.annual.more":"多","share.card.annual.heatmap_title":"Token 热图","share.card.annual.total_tokens":"总 Token 数","share.card.annual.estimated_cost":"预估成本","share.card.annual.longest_streak":"最长连击","share.card.annual.days_count":"{{days}} 天","share.card.annual.top_model":"热门模型"},mD={"header.auth.sign_in_aria":"登入","login.back_home":"返回首頁","login.cloud_only":"未配置雲端登入。請使用 localhost 上的本地儀表盤。","login.title":"登入","login.subtitle":"選擇郵箱或已連線賬號。","login.dismiss":"關閉","login.verify_email_success":"郵箱已驗證。你現在可以登入。","login.verify_email_pending":"請先在郵箱中完成驗證,然後再登入。","login.oauth.continue":"使用 {{provider}} 繼續","login.divider":"或","login.tab.sign_in":"登入","login.tab.sign_up":"建立賬戶","login.field.name":"顯示名稱","login.field.name_placeholder":"可選","login.field.email":"電子郵件","login.field.password":"密碼","login.password_hint":"至少 {{min}} 個字元。","login.submit.sign_in":"使用郵箱登入","login.submit.sign_up":"建立賬號","auth.callback.processing":"處理中…","auth.callback.success":"登入成功","auth.callback.redirecting":"正在返回 TokenTracker…","auth.callback.failed":"登入未完成,請重試。","auth.callback.close":"關閉此頁","login_modal.subtitle":"登入以加入排行榜","login_modal.continue_email":"使用郵箱繼續","login_modal.divider_email":"郵箱","shared.placeholder.short":"--","shared.unit.percent":"%","shared.unit.thousand_abbrev":"K","shared.unit.million_abbrev":"M","shared.unit.billion_abbrev":"B","shared.data_source":"資料來源:{{source}}","shared.error.prefix":"錯誤:{{error}}","shared.status.unsynced":"—","shared.time.now":"剛剛","error.boundary.title":"出了點問題","error.boundary.subtitle":"這個檢視渲染失敗了","error.boundary.hint":"開啟控制台,然後重新載入頁面","error.boundary.no_details":"沒有錯誤詳細資訊","error.boundary.action.reload":"重新載入","identity_card.rank_label":"排名","identity_card.streak_label":"活躍天數","identity_card.rank_placeholder":"—","identity_card.streak_value":"{{days}} 天","usage.summary.total":"Token 總數","usage.summary.updated_at":"更新於 {{timestamp}}","usage.period.day":"日","usage.period.week":"周","usage.period.month":"月","usage.period.total":"總計","usage.period.custom":"自定義","usage.metric.total":"總計","usage.metric.input":"輸入","usage.metric.output":"輸出","usage.metric.cached_input":"快取輸入","usage.metric.reasoning_output":"推理輸出","usage.button.refresh":"重新整理","usage.overview.tablist_aria":"時間範圍","usage.auto_refresh.aria":"自動重新整理間隔","usage.auto_refresh.off":"關閉","usage.auto_refresh.30s":"30 秒","usage.auto_refresh.60s":"60 秒","usage.auto_refresh.120s":"120 秒","usage.overview.cost_breakdown_aria":"檢視成本明細","usage.overview.distribution_aria":"來源佔比:{{items}}","usage.overview.distribution_item":"{{label}} {{percent}}%","usage.overview.provider_card_aria":"{{provider}}:{{percent}}%,{{tokens}} Token,{{cost}}。點選{{action}}詳情","usage.overview.expand":"展開","usage.overview.collapse":"收起","usage.overview.model_count":"{{count}} 個模型","usage.overview.model_details_aria":"{{provider}} 模型詳情","widgets.page.title":"元件","widgets.cta.open_gallery":"開啟小元件庫","widgets.cta.download":"下載 Mac 應用","widgets.cta.macos_only":"僅限 macOS","widgets.menubar.section.title":"選單欄","widgets.gallery.section.title":"桌面小元件","widgets.summary.name":"使用概覽","widgets.summary.description":"今天和近 7 天的用量,以及緊湊趨勢線。","widgets.heatmap.name":"熱力圖","widgets.heatmap.description":"像 GitHub 一樣,一眼看清活躍和空閒的日子。","widgets.topModels.name":"熱門模型","widgets.topModels.description":"你最常用的模型,按 Token 佔比排序。","widgets.limits.name":"使用限制","widgets.limits.description":"Claude、Codex、Cursor、Gemini 等的即時速率限制進度。","daily.sort.date.label":"日期","daily.sort.date.title":"按日期排序","daily.sort.total.label":"總計","daily.sort.total.title":"按總計排序","daily.sort.input.label":"輸入","daily.sort.input.title":"按輸入排序","daily.sort.output.label":"輸出","daily.sort.output.title":"按輸出排序","daily.sort.cached.label":"快取","daily.sort.cached.title":"按快取輸入排序","daily.sort.reasoning.label":"推理","daily.sort.reasoning.title":"按推理輸出排序","daily.sort.conversations.label":"對話數","daily.sort.conversations.title":"按對話排序","details.pagination.prev":"上一頁","details.pagination.next":"下一頁","limits.copilot.otelHint.title":"跟蹤 Copilot Token 使用情況","limits.copilot.otelHint.body":"限額資訊通過你的 GitHub OAuth 令牌讀取。如果還想記錄逐 Token 用量,請啟用 Copilot 的 OpenTelemetry 匯出,把下面這段加到你的 shell 配置檔案(~/.zshrc 或 ~/.bashrc):","limits.copilot.otelHint.copy":"複製","limits.copilot.otelHint.copied":"已複製","limits.panel.title":"使用限制","limits.panel.mode_separator":" · ","limits.label.cursor_plan":"套餐","limits.label.cursor_auto":"自動","limits.label.cursor_api":"API","limits.label.kiro_month":"月度","limits.label.kiro_bonus":"獎勵","limits.label.kimi_weekly":"周","limits.label.kimi_5h":"5h","limits.label.kimi_total":"總量","limits.label.kimi_parallel":"併發:{{count}}","limits.label.copilot_premium":"高階","limits.label.copilot_chat":"對話","limits.status.not_connected":"未連線","limits.status.no_data":"未返回即時限額資料","limits.status.all_hidden":"所有限額提供商都已隱藏。請開啟顯示設定重新顯示。","nav.usage":"用量","nav.limits":"限額","nav.widgets":"小元件","nav.skills":"Skills","nav.leaderboard":"排行榜","nav.collapse":"摺疊側邊欄","nav.expand":"展開側邊欄","nav.menu":"開啟導航選單","nav.close_menu":"關閉導航選單","nav.aside_label":"主導航","nav.nav_label":"導航","nav.version":"Token Tracker 版本 {{version}}","limits.page.subtitle":"AI 工具的速率限制和配額使用情況。","limits.settings.toggle_visible":"切換可見性","limits.settings.display_mode_label":"用量","limits.settings.display_mode_used":"已用","limits.settings.display_mode_remaining":"剩餘","limits.page.openSettings":"顯示設定","nav.group.general":"常規","nav.group.tools":"工具","nav.group.account":"賬戶","nav.settings":"設定","header.auth.open_settings":"開啟設定","settings.page.title":"設定","settings.page.subtitle":"管理你的賬戶、外觀和顯示偏好。","settings.section.appearance":"外觀","settings.section.account":"賬戶","settings.section.limits":"限制顯示","settings.appearance.theme.label":"主題","settings.appearance.theme.hint":"選擇 Token Tracker 在儀表盤中的顯示方式。","settings.appearance.theme.light":"淺色","settings.appearance.theme.dark":"深色","settings.appearance.theme.system":"系統","settings.account.displayName":"顯示名稱","settings.account.edit":"編輯","settings.account.save":"儲存","settings.account.saving":"儲存...","settings.account.cancel":"取消","settings.account.userId":"使用者 ID","settings.account.copyUserId":"複製使用者 ID","settings.account.copy":"複製","settings.account.copied":"已複製","settings.account.cloudSync":"雲同步","settings.account.cloudSyncHint":"將本地用量上傳到你的 Token Tracker 雲端賬號。","settings.account.publicProfile":"公開主頁","settings.account.publicProfileHint":"在公開排行榜中展示你的用量。","settings.account.displayNameAnonymousHint":"匿名狀態下,排行榜會隱藏你的名字和頭像","settings.account.displayNameDisabledWhileAnon":"請先關閉匿名,再編輯名字","settings.account.githubUrl":"GitHub 主頁","settings.account.githubUrlHint":"在排行榜名字旁顯示 GitHub 連結。","settings.account.githubUrlPlaceholder":"使用者名稱或 https://github.com/使用者名稱","settings.account.githubUrlInvalid":"請輸入 GitHub 使用者名稱,或 https://github.com/使用者名稱","leaderboard.github.aria":"開啟 GitHub 主頁","leaderboard.github.tooltipAction":"點選檢視 GitHub 主頁","leaderboard.github.tooltipPrefix":"可在","leaderboard.github.tooltipSettingsLink":"設定","leaderboard.github.tooltipSuffix":"中配置你的主頁","settings.account.signOut":"退出登入","settings.account.signIn":"登入","settings.account.signedOutHint":"登入後可管理雲同步和排行榜偏好。","settings.section.menubar":"選單欄應用","settings.menubar.showStats":"在選單欄中顯示統計資訊","settings.menubar.showStatsHint":"在選單欄圖示旁邊顯示今天的Token 數量和成本。","settings.menubar.animatedIcon":"動畫圖示","settings.menubar.animatedIconHint":"閃爍 Clawd 角色並在選單欄中播放同步動畫。","settings.menubar.launchAtLogin":"登入時啟動","settings.menubar.launchAtLoginHint":"登入 macOS 時自動啟動 TokenTrackerBar。","settings.menubar.syncNow":"立即同步","settings.menubar.syncNowHint":"觸發本地AI工具日誌立即解析並上傳。","settings.menubar.syncing":"正在同步...","settings.menubar.updates":"更新","settings.menubar.checkUpdates":"檢查更新","settings.footer.statusPage":"系統狀態","menubar.slot.primary":"第一個位置","menubar.slot.secondary":"第二個位置","menubar.native_only":"開啟 macOS 版 TokenTrackerBar 後可編輯選單欄顯示。","menubar.metric.today_tokens":"今日 Token","menubar.metric.today_cost":"今日成本","menubar.metric.last_7d_tokens":"近 7 天 Token","menubar.metric.total_tokens":"總 Token","menubar.metric.total_cost":"總成本","menubar.metric.claude_5h":"Claude 5 小時限額","menubar.metric.claude_7d":"Claude 7 天限額","menubar.metric.codex_5h":"Codex 5 小時限額","menubar.metric.codex_7d":"Codex 7 天限額","nav.ip_check":"Claude IP 檢查","skills.page.title":"Skills","skills.tab.my":"我的","skills.tab.browse":"發現","skills.action.refresh":"重新整理","skills.action.install":"安裝","skills.action.choose_targets":"選擇目標","skills.target.menu_label":"安裝到","skills.target.none":"未選目標","skills.toast.installed":"已把 {{name}} 安裝到 {{targets}}。","skills.action.remove":"移除","skills.action.search":"搜尋","skills.action.search_aria":"搜尋 skills","skills.target.synced_summary":"已同步到 {{targets}}","skills.target.synced_none":"尚未同步到任何 agent","skills.row.open_details":"檢視 {{name}} 詳情","skills.detail.close":"關閉詳情","skills.detail.sync_section_title":"同步到","skills.detail.remove_button":"從所有 agent 移除","skills.detail.remove_confirm_hint":"這會從每個 agent 取消同步並刪除本地副本。","skills.filter.agent_label":"Agent","skills.filter.agent_all":"全部 agent","skills.filter.clear":"清除篩選","skills.filter.result_count":"{{filtered}} / {{total}} 個 skill","skills.filter.result_count_browse":"{{count}} 個結果","skills.empty.no_match":"當前篩選下沒有匹配的 skill。","hint.dismiss":"關閉提示","hint.dismissible_aria":"可關閉的提示","skills.card.installed":"已安裝","skills.card.targets_prefix":"將安裝到:","skills.card.targets_change":"更改","skills.card.installs":"{{count}} 次安裝","skills.source.label":"來源","skills.source.all":"全部倉庫","skills.mode.repo":"倉庫","skills.mode.skillssh":"skills.sh","skills.browse.placeholder_all":"在已啟用的倉庫裡搜尋…","skills.browse.placeholder_repo":"在 {{repo}} 中搜索…","skills.browse.placeholder_skillssh":"在 skills.sh 倉庫中搜索…","skills.browse.empty_sources":"新增一個 GitHub 倉庫以開始瀏覽技能。","skills.browse.add_repo_hint":"想要更多 skill?新增一個 GitHub 倉庫。","skills.browse.manage_sources":"管理來源","skills.browse.hint_skillssh":"至少輸入 2 個字元以搜尋 skills.sh。","skills.browse.loading_hint":"正在從 GitHub 拉取 skill 資訊,首次載入可能需要一分鐘,結果會快取。","skills.error.generic":"Skill 操作失敗。","skills.confirm.remove_title":"要移除 {{name}} 嗎?","skills.confirm.remove_managed":"這個 skill 將從所有已連線的 AI 工具中移除,幾秒內可以撤銷。","skills.confirm.remove_local":"將從所有 AI 工具目錄中刪除該 skill 資料夾。此操作無法撤銷。","skills.toast.removed":"已移除 {{name}}。","shared.action.undo":"撤銷","shared.action.cancel":"取消","shared.action.apply":"套用","skills.empty.my":"還沒有 skill。去「發現」搜尋或安裝。","skills.empty.my_cta":"去發現","skills.empty.browse":"這個來源下沒有找到技能。","skills.empty.search":"沒有結果,換個關鍵詞試試。","skills.repo.placeholder":"owner/repository","skills.repo.add":"新增倉庫","skills.repo.invalid":"請輸入 owner/repository 或 GitHub 倉庫 URL。","skills.repo.remove":"移除倉庫","settings.appearance.language.label":"語言","settings.appearance.language.hint":"使用“系統”時會預設跟隨本機語言。","settings.appearance.language.system":"系統","settings.appearance.language.english":"英語","settings.appearance.language.chinese":"簡體中文","settings.appearance.language.traditional_chinese":"繁體中文","settings.appearance.language.japanese":"日語","settings.appearance.language.korean":"韓語","settings.appearance.currency.label":"貨幣","settings.appearance.currency.hint":"選擇用量成本的顯示幣種。","settings.appearance.currency.opt.usd":"美元 ($)","settings.appearance.currency.opt.eur":"歐元 (€)","settings.appearance.currency.opt.gbp":"英鎊 (£)","settings.appearance.currency.opt.cny":"人民幣 (¥)","settings.appearance.currency.opt.jpy":"日元 (¥)","settings.appearance.currency.opt.hkd":"港幣 (HK$)","settings.appearance.currency.rate_source.default":"內建預設匯率","settings.appearance.currency.rate_source.fetched":"資料來源:open.er-api.com","settings.appearance.currency.rate_updated":"更新於 {{when}}","settings.appearance.currency.rate_never":"尚未重新整理"},gD={"usage.overview.antigravity_notice_title":"Token 為估算值","usage.overview.antigravity_notice_body":"Antigravity 的本地日誌沒有真實用量欄位,這裡的數字是按字元長度(約 4 字元/Token)估算出來的,也沒有扣除 Gemini 的 prompt cache 折扣。請把它當作上限估算,不要直接對賬賬單。","usage.period.last24h":"24h","stats.period.today":"今日","stats.period.last24h":"24h","stats.period.week":"本週","stats.period.month":"本月","stats.period.all":"全部","stats.period.convs":"對話","dashboard.core_index.collapse_label":"▾","dashboard.core_index.expand_label":"▸","dashboard.core_index.collapse_aria":"摺疊模型分解","dashboard.core_index.expand_aria":"展開模型細分","dashboard.rolling.title":"最近的活動","dashboard.rolling.last_7d":"過去 7 天","dashboard.rolling.last_30d":"過去 30 天","dashboard.rolling.avg_active_day":"日平均","dashboard.projects.title":"專案用量","dashboard.projects.tokens_label":"Token","dashboard.projects.stars_label":"星標","dashboard.projects.limit_label":"展示","dashboard.projects.limit_aria":"選擇倉庫顯示數量","dashboard.projects.limit_top_3":"前 3 名","dashboard.projects.limit_top_6":"前 6 名","dashboard.projects.limit_top_10":"前 10 名","dashboard.projects.empty":"沒有公開倉庫","dashboard.widgets.title":"桌面小元件","dashboard.widgets.hint":"右鍵點按桌面 → 編輯小元件 → 搜尋“TokenTracker”","dashboard.widgets.dismiss_aria":"關閉小元件介紹","dashboard.cost_breakdown.title":"成本明細","dashboard.cost_breakdown.total_label":"預計總成本","dashboard.cost_breakdown.close":"關閉","trend.monitor.label":"使用趨勢","trend.zoom.open_aria":"展開全螢幕","trend.zoom.close_aria":"關閉","trend.zoom.badge":"趨勢洞察","trend.zoom.desc":"懸停任一長條查看 token、成本與對話數。切換粒度可從月份下鑽到半小時。","trend.zoom.insight_badge":"洞察","trend.zoom.tooltip.cost":"成本","trend.zoom.tooltip.conversations":"對話","trend.zoom.stats.tokens":"Token 總量","trend.zoom.stats.cost":"總成本","trend.zoom.stats.conversations":"對話數","trend.zoom.stats.peak":"峰值時段","trend.zoom.gran.aria":"粒度","trend.zoom.gran.30min":"30 分鐘","trend.zoom.gran.day":"天","trend.zoom.gran.month":"月","trend.zoom.prev_day":"前一天","trend.zoom.next_day":"後一天","trend.zoom.loading":"載入中…","trend.zoom.pick_day":"選擇日期","trend.zoom.pick_range":"選擇日期範圍","trend.zoom.insight.empty":"一段安靜的時光,沒有一個 token 流過。","trend.zoom.insight.calm":"輕描淡寫。模型大多在待命,只在你需要時才醒來搭把手。","trend.zoom.insight.steady":"{{active}} 個活躍時段裡節奏平穩,峰值 {{peak}}。是那種不聲不響就把事情交付掉的節奏。","trend.zoom.insight.heavy":"火力全開:{{active}} 個時段持續高熱,峰值衝到 {{peak}}。這是自己製造勢能、而非等待靈感的人的產出。","trend.zoom.insight.massive":"工業級別。{{peak}} 的峰值,吞吐從不降溫。到這個量級,你已經不是在用模型,而是在營運一座工廠。","heatmap.title":"熱力圖","heatmap.empty":"尚無活動資料。","heatmap.legend.less":"少","heatmap.legend.more":"多","heatmap.legend.utc":"UTC","heatmap.tooltip":"{{day}} • {{value}} {{unit}} • {{tz}}","heatmap.unit.tokens":"Token","heatmap.month.jan":"1月","heatmap.month.feb":"2月","heatmap.month.mar":"3月","heatmap.month.apr":"4月","heatmap.month.may":"5月","heatmap.month.jun":"6月","heatmap.month.jul":"7月","heatmap.month.aug":"8月","heatmap.month.sep":"9月","heatmap.month.oct":"10月","heatmap.month.nov":"11月","heatmap.month.dec":"12月","heatmap.day.sun":"日","heatmap.day.mon":"一","heatmap.day.tue":"二","heatmap.day.wed":"三","heatmap.day.thu":"四","heatmap.day.fri":"五","heatmap.day.sat":"六","dashboard.session_expired.copy_label":"執行 npx --yes @ipv9/tokentracker-cli init","dashboard.session_expired.copied":"已複製","dashboard.install.prompt":"安裝 Node.js 18+ 然後執行:","dashboard.install.cmd.init":"npx --yes @ipv9/tokentracker-cli init","dashboard.install.cmd.init_link_code":"npx --yes @ipv9/tokentracker-cli init --link-code {{link_code}}","dashboard.install.copy":"複製安裝命令","dashboard.install.copy_base":"複製初始化命令","dashboard.install.copied":"已複製到剪貼簿","dashboard.install.link_code.loading":"正在生成專屬程式碼...","dashboard.install.link_code.failed":"專屬程式碼不可用","dashboard.install.cmd.sync":"npx --yes @ipv9/tokentracker-cli sync","dashboard.daily.title":"每日細目","dashboard.daily.empty":"還沒有資料。先使用 AI CLI,再執行 {{cmd}}。","dashboard.identity.title":"你的個人資料","dashboard.identity.subtitle":"記錄你的編碼之旅","dashboard.identity.fallback":"匿名使用者","dashboard.screenshot.title_line1":"AI 程式設計助手","dashboard.screenshot.title_line2":"2025 年度回顧","dashboard.screenshot.twitter_button":"分享到 X","dashboard.screenshot.twitter_label":"分享到 X","dashboard.screenshot.twitter_hint":"自動將影像複製到剪貼簿","dashboard.screenshot.twitter_text":"記錄中的 {{total_tokens}} Token。\\n{{model_name}} 以 {{model_percent}}% 領先。\\n\\n我的 AI 使用情況,未經審計 →\\ntokentracker.cc","heatmap.3d.hover_tip":"點選進入 3D 全屏旋轉分析模式","heatmap.3d.modal.title":"Token 三維透視","heatmap.3d.modal.desc":"按住左鍵拖拽可任意旋轉,懸浮感知每日活躍資料與多維統計。","heatmap.3d.modal.stats.total_tokens":"年度 Token 總量","heatmap.3d.modal.stats.precision_total_tokens":"精準年消耗量","heatmap.3d.modal.stats.estimated_cost":"年度估算費用","heatmap.3d.modal.stats.active_rate_days":"活躍佔比 / 天數","heatmap.3d.modal.stats.max_streak":"最長連續活躍","heatmap.3d.modal.stats.days_suffix":"天","heatmap.3d.modal.stats.peak_day":"單日峰值暴擊","heatmap.3d.modal.stats.precision_peak_value":"精確單日峰值","heatmap.3d.modal.stats.no_data":"無資料","heatmap.3d.modal.legend.title":"活躍度層級","heatmap.3d.modal.palette.emerald":"翡翠之城","heatmap.3d.modal.palette.ocean":"深海浩瀚","heatmap.3d.modal.palette.neon":"賽博霓虹","heatmap.3d.modal.palette.amber":"烈焰餘暉","heatmap.3d.modal.control.play":"啟動慢速自轉","heatmap.3d.modal.control.pause":"暫停自動旋轉","heatmap.3d.modal.control.reset":"重置 3D 視角","heatmap.3d.modal.footer.tip":"雙指縮放 / 滾輪縮放 / 滑鼠拖拽旋轉 3D 圖表","heatmap.3d.modal.ai.title.default":"持之以恆的行者","heatmap.3d.modal.ai.eval.default":"在技術的長河中持之以恆。也許日常的編碼並不總是波瀾壯闊,但每一個微小的活躍點都在記錄著您的思考與探索。星火成留,終將匯聚成屬於您的數字海洋。","heatmap.3d.modal.ai.title.peak":"極限活躍級貢獻者","heatmap.3d.modal.ai.eval.peak":"這一年中,您的 Token 產出表現出極高的工程密度。如此規模的開發量相當於深度參與了中大型系統底座的重構,每一次擊鍵都在將複雜的邏輯收斂為確定性的程式碼。這是極度專注與純粹工程熱愛的最好印證。","heatmap.3d.modal.ai.title.heavy":"高頻產出級開發者","heatmap.3d.modal.ai.eval.heavy":"卓越的持續輸出。您的 Token 累積量已達數百萬字,相當於數十部中篇技術鉅著的體量。高飽和度的編碼節奏表明您正在以極高的執行力構建屬於您的數字資產,展現了卓越的創造力。","heatmap.3d.modal.ai.title.core":"核心生產力專家","heatmap.3d.modal.ai.eval.core":"極具韌性的長期投入。在過去的一年中,您在較長週期內穩定保持著高強度的開發節奏。您用紮實的程式碼行數與 Token 產出,默默築起了專案的核心架構,是當之無愧的工程支柱。","heatmap.3d.modal.ai.title.steady":"穩健成長型工程師","heatmap.3d.modal.ai.eval.steady":"踏實而堅定的技術積累。每一次 Token 的遞增,都是您在堅實地砌下通往未來的程式碼基石。這種細水長流的穩健節奏,往往是一個優秀開發者通往工程大師的必經之路。","heatmap.3d.voxel.joke.1":"🔥 極度瘋狂!產出 {{value}} tokens!你是在瘋狂訓練大模型,還是手擼了一個編譯器?","heatmap.3d.voxel.joke.2":"🚀 史詩級輸出!共 {{value}} tokens。今日產出可繞地球一圈,AI 都在為你驚歎!","heatmap.3d.voxel.joke.3":"⚡ 爆擊日!{{value}} tokens。程式碼如泉湧,鍵盤已經開始冒煙了!","heatmap.3d.voxel.level3":"⚡ 生產力大爆發({{value}} tokens)!高效專注的黃金時刻,繼續保持這個巔峰狀態!","heatmap.3d.voxel.level2":"🌱 漸入佳境({{value}} tokens)!穩步產出,每一次敲擊鍵盤都是在為大廈添磚加瓦。","heatmap.3d.voxel.level1":"🍃 聚沙成塔({{value}} tokens)。微小的提交也是對未來的投資,保持複利的力量!","heatmap.3d.voxel.level0":"💤 養精蓄銳。在不寫程式碼的日子裡,靈感也在悄悄生長。","ipcheck.page.title":"Claude IP 檢測","ipcheck.page.subtitle":"檢視當前訪問 Claude 的出口 IP、純淨度、地理與風險訊號,識別可能影響登入或觸發風控的因素。","ipcheck.mask.toggle":"隱藏 IP","ipcheck.ipv6.warn":"當前為 IPv6 環境,不建議用 IPv6 訪問 Claude Code,部分檢測結果可能不完整。","ipcheck.ip.cn":"中國出口 IPv4","ipcheck.ip.cloudflare":"Cloudflare 出口","ipcheck.ip.claude":"Claude 出口","ipcheck.ip.failed":"獲取失敗","ipcheck.ip.loading":"載入中...","ipcheck.trust.title":"信任評分","ipcheck.trust.subtitle":"Claude 風控視角下的 IP 純淨度","ipcheck.trust.no_data":"無資料","ipcheck.trust.no_ip":"未獲取到 Claude 出口 IP,無法評分","ipcheck.trust.no_score":"該 IP 暫無評分資料","ipcheck.trust.gauge.low":"0 高危","ipcheck.trust.gauge.high":"100 可信","ipcheck.trust.label.pristine":"極度純淨","ipcheck.trust.label.clean":"純淨","ipcheck.trust.label.good":"良好","ipcheck.trust.label.neutral":"中性","ipcheck.trust.label.suspicious":"可疑","ipcheck.trust.label.unreachable":"不可訪問","ipcheck.trust.text.excellent":"該 IP 信譽極好","ipcheck.trust.text.great":"該 IP 信譽優異","ipcheck.trust.text.minor":"該 IP 存在輕微風險","ipcheck.trust.text.moderate":"該 IP 存在一定風險","ipcheck.trust.text.severe":"該 IP 風險極高","ipcheck.trust.text.restricted":"處於不可訪問區域,Claude 會嚴格風控","ipcheck.trust.region_warn.title":"Claude 出口 IP 位於 {{region}}","ipcheck.trust.region_warn.body":"不建議登入 Claude,容易觸發封號風控。","ipcheck.trust.region_support":"Claude 支援地區","ipcheck.trust.region.accessible":"可訪問","ipcheck.common.unknown":"未知","ipcheck.props.title":"IP 屬性","ipcheck.props.region":"地區","ipcheck.props.city":"城市","ipcheck.props.type":"型別","ipcheck.props.asn":"ASN","ipcheck.props.org":"運營商","ipcheck.props.residential":"家庭住宅","ipcheck.props.datacenter":"機房","ipcheck.security.title":"安全檢測","ipcheck.security.vpn":"VPN","ipcheck.security.proxy":"代理 (Proxy)","ipcheck.security.tor":"Tor","ipcheck.security.crawler":"機器人 (Crawler)","ipcheck.security.abuser":"濫用記錄","ipcheck.security.proxy_flag":"代理","ipcheck.security.crawler_yes":"是","ipcheck.security.crawler_no":"否","ipcheck.security.abuser_yes":"有記錄","ipcheck.security.abuser_no":"無記錄","ipcheck.security.clean":"未檢測到","ipcheck.avail.title":"Claude 可用性","ipcheck.avail.tooltip":"Claude 伺服器在美國,從亞洲訪問延遲超過 100ms 屬於正常情況。","ipcheck.avail.refresh":"重新整理","ipcheck.avail.svc_row":"服務狀態","ipcheck.avail.latency.normal":"正常","ipcheck.avail.latency.good":"良好","ipcheck.avail.latency.slow":"較慢","ipcheck.avail.latency.unreachable":"不可訪問","ipcheck.avail.svc.none":"全部正常","ipcheck.avail.svc.minor":"輕微故障","ipcheck.avail.svc.major":"重大故障","ipcheck.avail.svc.critical":"嚴重故障","ipcheck.avail.svc.maintenance":"維護中","ipcheck.avail.svc.other":"服務異常","ipcheck.dns.title":"DNS 洩露檢測","ipcheck.dns.status":"狀態","ipcheck.dns.outlet":"DNS 出口","ipcheck.dns.outlet_ip":"DNS 出口 IP","ipcheck.dns.isp":"服務商","ipcheck.dns.leaked":"可能洩露","ipcheck.dns.no_leak":"未檢測到洩露","ipcheck.dns.encrypted":"DNS 加密或未暴露","ipcheck.dns.cn_tag":"中國 DNS","ipcheck.udp.title":"WebRTC UDP 洩露","ipcheck.udp.status":"狀態","ipcheck.udp.outlet":"UDP 出口","ipcheck.udp.outlet_ip":"UDP 出口 IP","ipcheck.udp.origin":"歸屬地","ipcheck.udp.disabled":"WebRTC 已停用","ipcheck.udp.no_leak":"未檢測到洩露","ipcheck.udp.leaked":"可能洩露","ipcheck.udp.anomaly":"異常","ipcheck.device.title":"裝置資訊","ipcheck.device.tz":"時區","ipcheck.device.lang":"語言","ipcheck.device.os":"作業系統 / 瀏覽器","ipcheck.device.touch":"觸屏","ipcheck.device.net":"網路型別","ipcheck.device.dnt":"Do Not Track","ipcheck.device.webgl_render":"WebGL 渲染器","ipcheck.device.canvas_fp":"Canvas 指紋","ipcheck.device.webgl_fp":"WebGL 指紋","ipcheck.device.match":"一致","ipcheck.device.mismatch":"不一致","ipcheck.device.local":"本地","ipcheck.device.estimate_suffix":"(估算)","ipcheck.device.diff_equal":"偏移略有差異","ipcheck.device.diff_ahead":"Claude 快 {{h}} 小時","ipcheck.device.diff_behind":"Claude 慢 {{h}} 小時","ipcheck.device.lang_expected":"Claude 出口常用","ipcheck.device.touch_yes":"是","ipcheck.device.touch_no":"否","ipcheck.device.dnt_on":"已開啟","ipcheck.device.dnt_off":"已關閉","ipcheck.device.dnt_unset":"未設定","ipcheck.device.net_unsupported":"不支援檢測","ipcheck.device.unsupported":"不支援","ipcheck.history.title":"Claude 出口 IP 歷史","ipcheck.history.subtitle":"僅本地儲存於瀏覽器,最多保留 6 條","ipcheck.history.clear":"清除","ipcheck.history.empty":"暫無歷史記錄","ipcheck.history.current":"當前","ipcheck.region.CN":"中國大陸","ipcheck.region.HK":"香港","ipcheck.region.MO":"澳門","ipcheck.region.RU":"俄羅斯","ipcheck.region.KP":"朝鮮","ipcheck.region.IR":"伊朗","ipcheck.region.SY":"敘利亞","ipcheck.region.CU":"古巴","ipcheck.region.BY":"白俄羅斯","ipcheck.region.VE":"委內瑞拉","leaderboard.profile_modal.close":"關閉","leaderboard.profile_modal.loading":"正在載入使用者資料…","leaderboard.profile_modal.error":"載入使用者資料失敗。","leaderboard.profile_modal.empty":"這個使用者的資料未公開。","leaderboard.profile_modal.row_aria":"檢視 {{name}} 的資料","leaderboard.profile_modal.rank":"#{{rank}}","leaderboard.profile.hero.rank_label":"排名","leaderboard.profile_modal.hero.total_tokens":"總 Token","leaderboard.profile_modal.hero.total_cost":"總花費","leaderboard.profile_modal.hero.github":"GitHub 主頁","leaderboard.profile_modal.stat.total_cost":"總花費","leaderboard.profile_modal.stat.total_tokens":"總 Token","leaderboard.profile_modal.stat.active_days":"活躍天數","leaderboard.profile_modal.stat.avg_per_day":"日均花費","leaderboard.profile_modal.streak.current":"當前連續","leaderboard.profile_modal.streak.longest":"最長連續","leaderboard.profile_modal.streak.days":"{{count}} 天","leaderboard.profile_modal.best_day.title":"最佳日","leaderboard.profile_modal.best_day.none":"—","leaderboard.profile_modal.models.count":"使用了 {{count}} 個模型","leaderboard.profile_modal.models.favorite":"最愛模型","leaderboard.profile_modal.models.none":"暫無模型記錄","leaderboard.profile_modal.heatmap.title":"活躍度(最近 365 天)","leaderboard.profile_modal.providers.title":"按 Provider 分佈","leaderboard.profile_modal.providers.none":"本週期無使用資料。","leaderboard.profile_modal.view_full":"檢視完整主頁","local_only.title":"請在客戶端內使用","local_only.body":"這個頁面讀取的是你本機上的資料,所以只能在 Mac app 或命令列 dashboard 裡檢視。","local_only.open_app":"在 Mac app 內開啟","local_only.download":"下載 Mac app","dashboard.auth_gate.title":"登入 Token Tracker","dashboard.auth_gate.subtitle":"登入以在雲端同步並檢視您的 API 使用量、成本與 Token 消耗趨勢。","dashboard.auth_gate.button":"立即登入","dashboard.expired_gate.title":"會話已過期","dashboard.expired_gate.subtitle":"您的會話已過期。請重新登入以繼續檢視您的雲端儀表板。","dashboard.expired_gate.button":"重新登入","shared.app_name":"Token Tracker","dashboard.auth_gate.hero_title":"讓 AI 代理的每一筆 Token 消耗","dashboard.auth_gate.hero_subtitle":"清晰透明、多端無縫掌控","dashboard.auth_gate.desc":"為您在純雲端安全同步來自 Claude Code、Cursor、Gemini CLI 等全平台主流代理的 Token 額度、並發費用及耗時統計,提供前所未有的全景可視化數據分析。","dashboard.auth_gate.feature.sync.title":"實時雲端同步","dashboard.auth_gate.feature.sync.desc":"全自動採集各端代理的開銷,並在您的私人雲盤中秒級安全歸檔。","dashboard.auth_gate.feature.anal.title":"多維看板分析","dashboard.auth_gate.feature.anal.desc":"按模型分類、時間跨度統計 Token 分布,隨時追溯開銷尖峰及用量結構。","dashboard.auth_gate.feature.guard.title":"本地直連免登","dashboard.auth_gate.feature.guard.desc":"在 Localhost 模式下自動跳過所有登錄驗證,完美保護本地離線調試體驗。","dashboard.expired_gate.hero_title":"您的雲端會話已過期","dashboard.expired_gate.desc":"為了您的隱私與雲盤數據安全,安全憑證會在一段時間後自動過期。請重新驗證以極速同步儀表盤。","dashboard.expired_gate.feature.sec.title":"安全證書保護","dashboard.expired_gate.feature.sec.desc":"加密證書到期自動銷毀,嚴密守護您的 Token 賬單資產。","dashboard.expired_gate.feature.restore.title":"無縫數據恢復","dashboard.expired_gate.feature.restore.desc":"重新登入後自動恢復多端實時看板刷新,無需重新綁定。","dashboard.expired_gate.feature.cloud.title":"跨端雲端同步","dashboard.expired_gate.feature.cloud.desc":"多端隨時離線統計並同步至個人控制台,多地協同掌握開銷。"},yD={"landing.handle.default":"VIBE_USER","landing.handle.special":"伏特","landing.screenshot.alt":"TokenTracker 儀表板截圖","landing.nav.login":"登入","landing.nav.signup":"註冊","landing.install.command":"npx --yes @ipv9/tokentracker-cli","landing.install.action.copy":"複製命令","landing.install.action.copied":"已複製","landing.meta.title":"Token Tracker —— AI Coding CLI 的 Token 用量追蹤器","landing.meta.description":"自動監控 Claude Code、Cursor、Codex 等工具的 Token 用量。本地優先、注重隱私、零配置。","landing.meta.og_site_name":"Token Tracker","landing.meta.og_type":"website","landing.meta.og_image":"https://www.tokentracker.cc/og-image.jpg","landing.meta.og_url":"https://www.tokentracker.cc/","landing.meta.twitter_card":"summary_large_image","share.meta.title":"Token Tracker 分享","share.meta.description":"分享你的 Token Tracker 儀表板快照,包含跨模型、專案和時間視窗的用量洞察。","share.meta.og_site_name":"Token Tracker","share.meta.og_type":"website","share.meta.og_image":"https://www.tokentracker.cc/share-dashboard.jpg","share.meta.og_url":"https://www.tokentracker.cc/share","share.meta.twitter_card":"summary_large_image","landing.handle.placeholder":"試試 “{{handle}}”","landing.rank.expectation":"預期排名:{{rank}}","landing.rank.singularity":"登頂","landing.rank.unranked":"未上榜","landing.cta.primary":"進入儀表板","landing.cta.secondary":"GitHub","landing.v2.hero.title_line1":"追蹤你所有的","landing.v2.hero.title_line2":"AI Token","landing.v2.install.mac_cta":"下載 macOS 版","landing.v2.install.win_cta":"下載 Windows 版","landing.v2.install.desktop_cta":"下載桌面版","landing.v2.install.os_macos":"macOS","landing.v2.install.os_windows":"Windows","landing.v2.install.availability":"支援 macOS 與 Windows","landing.v2.models.title":"支援的 AI CLI 工具","landing.v2.compare.kicker":"無縫追蹤","landing.v2.compare.title":"別再瞎猜你的 AI 用量。","landing.v2.compare.subtitle":"AI CLI 工具常把原始用量數據隱藏在零散的本地文件中。TokenTracker 將它們即時整理為本地優先的儀表板。","landing.v2.distill.body":"100% 本地處理,不上傳任何 prompt 或程式碼。","landing.v2.compare.with.title":"用 Token Tracker","landing.v2.compare.with.p1":"集中式用量儀表板","landing.v2.compare.with.p2":"即時 Token 指標","landing.v2.compare.with.p3":"100% 本地,隱私無憂","landing.v2.compare.with.p4":"多用戶端終端審計軌跡","landing.v2.compare.without.title":"不用","landing.v2.compare.without.p1":"散落的 JSON 日誌檔案","landing.v2.compare.without.p2":"對 Token 消耗一無所知","landing.v2.compare.without.p3":"突如其來的 API 賬單","landing.v2.compare.without.p4":"缺失歷史審計記錄","landing.v2.leaderboard.kicker":"全球 TOKEN 排行榜","landing.v2.leaderboard.title":"AI Token 效率","landing.v2.leaderboard.subtitle":"您可以選擇匿名同步本地 AI Token 用量,加入全球效率排行榜。與全球開發者一同評估模型開銷效率與調用頻次。","landing.v2.leaderboard.view_more":"檢視完整排行榜","landing.v2.footer.line":"Token Tracker —— 開發者打造,服務開發者。","landing.v2.nav.status":"狀態","landing.v2.nav.github":"GitHub","landing.v2.models.agent.codex":"Codex","landing.v2.models.agent.claude_code":"Claude Code","landing.v2.models.agent.cursor":"Cursor","landing.v2.models.agent.gemini":"Gemini","landing.v2.models.agent.opencode":"OpenCode","landing.v2.models.agent.openclaw":"OpenClaw","landing.v2.cta.primary":"Dashboard","landing.v2.hero.subtagline":"自動監控 Claude Code、Cursor、Codex 等工具的 Token 用量。本地優先、注重隱私、零配置。","leaderboard.profile.nav.back":"排行榜","leaderboard.title":"排行榜","leaderboard.range":"UTC {{period}} · {{from}} – {{to}}","leaderboard.range_loading":"UTC {{period}} · …","leaderboard.range.total":"全部時間","leaderboard.generated_at":"更新於 {{ts}}","leaderboard.period.week":"周","leaderboard.period.month":"月","leaderboard.period.total":"全部","leaderboard.me_label":"你","leaderboard.anon_label":"匿名","leaderboard.error.unknown":"未知錯誤","leaderboard.loading":"載入中…","leaderboard.empty":"暫無資料","leaderboard.column.rank":"排名","leaderboard.column.user":"使用者","leaderboard.column.total":"總計","leaderboard.column.codex":"Codex","leaderboard.column.claude":"Claude","leaderboard.column.gemini":"Gemini","leaderboard.column.cursor":"Cursor","leaderboard.column.opencode":"OpenCode","leaderboard.column.openclaw":"OpenClaw","leaderboard.column.hermes":"Hermes","leaderboard.column.kiro":"Kiro","leaderboard.column.copilot":"Copilot","leaderboard.column.kimi":"Kimi","leaderboard.column.supplemental":"其他","leaderboard.column.est_cost":"預估花費","leaderboard.signin_prompt":"登入後即可上榜","leaderboard.signin_button":"登入","leaderboard.sync_prompt":"開啟雲同步即可參與排名","leaderboard.sync_button.idle":"開啟並同步","leaderboard.sync_button.busy":"同步中…","leaderboard.pagination.page_size_label":"每頁顯示","leaderboard.pagination.prev":"上一頁","leaderboard.pagination.next":"下一頁","leaderboard.pagination.ellipsis":"……","leaderboard.pagination.page_unknown":"第 {{page}} 頁","share.modal.title":"分享你的資料","share.modal.subtitle":"生成海報卡片,隨處分享。","share.modal.close":"關閉","share.modal.action.x":"分享到 X","share.modal.action.download":"下載","share.modal.action.copy":"複製圖片","share.modal.hint.x":"把圖片貼上到推文裡","share.modal.hint.copy":"到剪貼簿","share.modal.name_label":"顯示名稱","share.modal.name_placeholder":"輸入你的名字","share.modal.style_label":"樣式","share.modal.footer":"資料始終保留在本地——圖片在你的瀏覽器內生成,絕不上傳。","share.button.label":"分享","share.button.aria":"開啟分享卡片","share.toast.copied":"圖片已複製到剪貼簿","share.toast.downloaded":"圖片已儲存","share.toast.failed":"圖片生成失敗","share.toast.working":"生成中…","share.variant.neon":"霓虹","share.variant.broadsheet":"特刊","share.date.month_year":"{{year}} 年 {{month}}","share.issue.all_time":"總計","share.month_short.jan":"1 月","share.month_short.feb":"2 月","share.month_short.mar":"3 月","share.month_short.apr":"4 月","share.month_short.may":"5 月","share.month_short.jun":"6 月","share.month_short.jul":"7 月","share.month_short.aug":"8 月","share.month_short.sep":"9 月","share.month_short.oct":"10 月","share.month_short.nov":"11 月","share.month_short.dec":"12 月","share.hook.top_loyal":"{{name}} 佔了 {{percent}}% 的用量。","share.hook.days_record":"共記錄 {{days}} 天。","share.hook.top_led":"{{name}} 領跑,佔比 {{percent}}%。","share.hook.multi_models":"{{days}} 天裡用了 {{count}} 個模型。","share.hook.days_with_model":"{{name}} 陪你跑了 {{days}} 天。","share.hook.new_chapter":"新的記錄,從這裡開始。","share.card.broadsheet.issue":"期號","share.card.broadsheet.by":"分享者","share.card.broadsheet.tracked_since":"追蹤起始","share.card.broadsheet.total_tokens":"總 Token 數","share.card.broadsheet.estimated_spend":"預估花費","share.card.broadsheet.billable_days":"{{days}} 個活躍日","share.card.broadsheet.heatmap_title":"年度熱圖","share.card.broadsheet.heatmap_days_on_record":"{{active}} / {{total}} 天有記錄","share.card.broadsheet.roster_title":"模型榜","share.card.broadsheet.roster_subtitle":"常用模型輪換","share.card.broadsheet.empty":"這一週很安靜,還沒有模型資料。","share.card.broadsheet.global_rank":"全站排名","share.card.broadsheet.active_days":"活躍","share.card.broadsheet.days_count":"{{days}} 天","share.card.broadsheet.track_yours":"追蹤你自己的","share.card.annual.report_title":"用量報告","share.card.annual.less":"少","share.card.annual.more":"多","share.card.annual.heatmap_title":"Token 熱圖","share.card.annual.total_tokens":"總 Token 數","share.card.annual.estimated_cost":"預估成本","share.card.annual.longest_streak":"最長連擊","share.card.annual.days_count":"{{days}} 天","share.card.annual.top_model":"熱門模型"},vD={"header.auth.sign_in_aria":"ログイン","login.back_home":"ホームに戻る","login.cloud_only":"クラウドログインが設定されていません。localhost のローカルダッシュボードをご利用ください。","login.title":"ログイン","login.subtitle":"メールまたは連携済みアカウントを選択してください。","login.dismiss":"閉じる","login.verify_email_success":"メールアドレスが確認されました。ログインできます。","login.verify_email_pending":"ログインの前に、メールでの確認を完了してください。","login.oauth.continue":"{{provider}} で続ける","login.divider":"または","login.tab.sign_in":"ログイン","login.tab.sign_up":"アカウント作成","login.field.name":"表示名","login.field.name_placeholder":"任意","login.field.email":"メールアドレス","login.field.password":"パスワード","login.password_hint":"{{min}} 文字以上。","login.submit.sign_in":"メールでログイン","login.submit.sign_up":"アカウントを作成","auth.callback.processing":"処理中…","auth.callback.success":"ログインに成功しました","auth.callback.redirecting":"TokenTracker に戻っています…","auth.callback.failed":"ログインが完了しませんでした。もう一度お試しください。","auth.callback.close":"このページを閉じる","login_modal.subtitle":"ログインしてリーダーボードに参加","login_modal.continue_email":"メールで続ける","login_modal.divider_email":"メール","shared.placeholder.short":"--","shared.unit.percent":"%","shared.unit.thousand_abbrev":"K","shared.unit.million_abbrev":"M","shared.unit.billion_abbrev":"B","shared.data_source":"データソース:{{source}}","shared.error.prefix":"エラー:{{error}}","shared.status.unsynced":"—","shared.time.now":"たった今","error.boundary.title":"問題が発生しました","error.boundary.subtitle":"このビューのレンダリングに失敗しました","error.boundary.hint":"コンソールを開いてから、ページを再読み込みしてください","error.boundary.no_details":"エラーの詳細はありません","error.boundary.action.reload":"再読み込み","identity_card.rank_label":"ランク","identity_card.streak_label":"アクティブ日数","identity_card.rank_placeholder":"—","identity_card.streak_value":"{{days}} 日","usage.summary.total":"トークン合計","usage.summary.updated_at":"{{timestamp}} 更新","usage.period.day":"日","usage.period.week":"週","usage.period.month":"月","usage.period.total":"合計","usage.period.custom":"カスタム","usage.metric.total":"合計","usage.metric.input":"入力","usage.metric.output":"出力","usage.metric.cached_input":"キャッシュ入力","usage.metric.reasoning_output":"推論出力","usage.button.refresh":"更新","usage.overview.tablist_aria":"期間","usage.auto_refresh.aria":"自動更新間隔","usage.auto_refresh.off":"オフ","usage.auto_refresh.30s":"30秒","usage.auto_refresh.60s":"60秒","usage.auto_refresh.120s":"120秒","usage.overview.cost_breakdown_aria":"コスト内訳を表示","usage.overview.distribution_aria":"ソース別割合:{{items}}","usage.overview.distribution_item":"{{label}} {{percent}}%","usage.overview.provider_card_aria":"{{provider}}:{{percent}}%、{{tokens}} トークン、{{cost}}。クリックして{{action}}詳細","usage.overview.expand":"展開","usage.overview.collapse":"折りたたむ","usage.overview.model_count":"{{count}} 個のモデル","usage.overview.model_details_aria":"{{provider}} のモデル詳細","widgets.page.title":"ウィジェット","widgets.cta.open_gallery":"ウィジェットギャラリーを開く","widgets.cta.download":"Mac アプリをダウンロード","widgets.cta.macos_only":"macOS 限定","widgets.menubar.section.title":"メニューバー","widgets.gallery.section.title":"デスクトップウィジェット","widgets.summary.name":"使用状況の概要","widgets.summary.description":"今日と直近 7 日間の使用状況、コンパクトなトレンドライン付き。","widgets.heatmap.name":"ヒートマップ","widgets.heatmap.description":"GitHub のように、アクティブな日とそうでない日をひと目で把握。","widgets.topModels.name":"人気モデル","widgets.topModels.description":"よく使うモデルを、トークン割合順に表示。","widgets.limits.name":"使用制限","widgets.limits.description":"Claude、Codex、Cursor、Gemini などのリアルタイムなレート制限の進捗。","daily.sort.date.label":"日付","daily.sort.date.title":"日付で並べ替え","daily.sort.total.label":"合計","daily.sort.total.title":"合計で並べ替え","daily.sort.input.label":"入力","daily.sort.input.title":"入力で並べ替え","daily.sort.output.label":"出力","daily.sort.output.title":"出力で並べ替え","daily.sort.cached.label":"キャッシュ","daily.sort.cached.title":"キャッシュ入力で並べ替え","daily.sort.reasoning.label":"推論","daily.sort.reasoning.title":"推論出力で並べ替え","daily.sort.conversations.label":"会話数","daily.sort.conversations.title":"会話数で並べ替え","details.pagination.prev":"前のページ","details.pagination.next":"次のページ","limits.copilot.otelHint.title":"Copilot のトークン使用状況を追跡","limits.copilot.otelHint.body":"制限情報は GitHub OAuth トークン経由で読み取られます。トークン単位の使用量も記録したい場合は、Copilot の OpenTelemetry エクスポートを有効にし、次の内容をシェルの設定ファイル(~/.zshrc または ~/.bashrc)に追加してください:","limits.copilot.otelHint.copy":"コピー","limits.copilot.otelHint.copied":"コピーしました","limits.panel.title":"使用制限","limits.panel.mode_separator":" · ","limits.label.cursor_plan":"プラン","limits.label.cursor_auto":"自動","limits.label.cursor_api":"API","limits.label.kiro_month":"月間","limits.label.kiro_bonus":"ボーナス","limits.label.kimi_weekly":"週","limits.label.kimi_5h":"5h","limits.label.kimi_total":"総量","limits.label.kimi_parallel":"並列:{{count}}","limits.label.copilot_premium":"プレミアム","limits.label.copilot_chat":"チャット","limits.status.not_connected":"未接続","limits.status.no_data":"リアルタイムの制限データが返されませんでした","limits.status.all_hidden":"すべての制限プロバイダーが非表示になっています。表示設定を開いて再表示してください。","nav.usage":"使用状況","nav.limits":"制限","nav.widgets":"ウィジェット","nav.skills":"Skills","nav.leaderboard":"リーダーボード","nav.collapse":"サイドバーを折りたたむ","nav.expand":"サイドバーを展開","nav.menu":"ナビゲーションメニューを開く","nav.close_menu":"ナビゲーションメニューを閉じる","nav.aside_label":"メインナビゲーション","nav.nav_label":"ナビゲーション","nav.version":"Token Tracker バージョン {{version}}","limits.page.subtitle":"AI ツールのレート制限とクォータの使用状況。","limits.settings.toggle_visible":"表示を切り替え","limits.settings.display_mode_label":"使用量","limits.settings.display_mode_used":"使用済み","limits.settings.display_mode_remaining":"残り","limits.page.openSettings":"表示設定","nav.group.general":"一般","nav.group.tools":"ツール","nav.group.account":"アカウント","nav.settings":"設定","header.auth.open_settings":"設定を開く","settings.page.title":"設定","settings.page.subtitle":"アカウント、外観、表示設定を管理します。","settings.section.appearance":"外観","settings.section.account":"アカウント","settings.section.limits":"制限の表示","settings.appearance.theme.label":"テーマ","settings.appearance.theme.hint":"Token Tracker のダッシュボードでの表示方法を選択します。","settings.appearance.theme.light":"ライト","settings.appearance.theme.dark":"ダーク","settings.appearance.theme.system":"システム","settings.account.displayName":"表示名","settings.account.edit":"編集","settings.account.save":"保存","settings.account.saving":"保存中...","settings.account.cancel":"キャンセル","settings.account.userId":"ユーザー ID","settings.account.copyUserId":"ユーザー ID をコピー","settings.account.copy":"コピー","settings.account.copied":"コピーしました","settings.account.cloudSync":"クラウド同期","settings.account.cloudSyncHint":"ローカルの使用状況を Token Tracker のクラウドアカウントにアップロードします。","settings.account.publicProfile":"公開プロフィール","settings.account.publicProfileHint":"公開リーダーボードで使用状況を表示します。","settings.account.displayNameAnonymousHint":"匿名の状態では、リーダーボードであなたの名前とアバターが非表示になります","settings.account.displayNameDisabledWhileAnon":"名前を編集する前に、匿名を解除してください","settings.account.githubUrl":"GitHub プロフィール","settings.account.githubUrlHint":"リーダーボードの名前の横に GitHub リンクを表示します。","settings.account.githubUrlPlaceholder":"ユーザー名または https://github.com/ユーザー名","settings.account.githubUrlInvalid":"GitHub のユーザー名、または https://github.com/ユーザー名 を入力してください","leaderboard.github.aria":"GitHub プロフィールを開く","leaderboard.github.tooltipAction":"クリックして GitHub プロフィールを表示","leaderboard.github.tooltipPrefix":"ここに表示するには","leaderboard.github.tooltipSettingsLink":"設定","leaderboard.github.tooltipSuffix":"で設定してください","settings.account.signOut":"ログアウト","settings.account.signIn":"ログイン","settings.account.signedOutHint":"ログインすると、クラウド同期とリーダーボードの設定を管理できます。","settings.section.menubar":"メニューバーアプリ","settings.menubar.showStats":"メニューバーに統計を表示","settings.menubar.showStatsHint":"メニューバーアイコンの横に、今日のトークン数とコストを表示します。","settings.menubar.animatedIcon":"アニメーションアイコン","settings.menubar.animatedIconHint":"Clawd キャラクターを点滅させ、メニューバーで同期アニメーションを再生します。","settings.menubar.launchAtLogin":"ログイン時に起動","settings.menubar.launchAtLoginHint":"macOS へのログイン時に TokenTrackerBar を自動的に起動します。","settings.menubar.syncNow":"今すぐ同期","settings.menubar.syncNowHint":"ローカルの AI ツールログの解析とアップロードをすぐに実行します。","settings.menubar.syncing":"同期中...","settings.menubar.updates":"更新","settings.menubar.checkUpdates":"更新を確認","settings.footer.statusPage":"システムステータス","menubar.slot.primary":"1 番目の位置","menubar.slot.secondary":"2 番目の位置","menubar.native_only":"macOS 版 TokenTrackerBar を開くと、メニューバーの表示を編集できます。","menubar.metric.today_tokens":"今日のトークン","menubar.metric.today_cost":"今日のコスト","menubar.metric.last_7d_tokens":"直近 7 日間のトークン","menubar.metric.total_tokens":"トークン合計","menubar.metric.total_cost":"コスト合計","menubar.metric.claude_5h":"Claude 5 時間制限","menubar.metric.claude_7d":"Claude 7 日間制限","menubar.metric.codex_5h":"Codex 5 時間制限","menubar.metric.codex_7d":"Codex 7 日間制限","nav.ip_check":"Claude IP チェック","skills.page.title":"Skills","skills.tab.my":"マイ","skills.tab.browse":"探す","skills.action.refresh":"更新","skills.action.install":"インストール","skills.action.choose_targets":"対象を選択","skills.target.menu_label":"インストール先","skills.target.none":"対象が未選択","skills.toast.installed":"{{name}} を {{targets}} にインストールしました。","skills.action.remove":"削除","skills.action.search":"検索","skills.action.search_aria":"skills を検索","skills.target.synced_summary":"{{targets}} に同期済み","skills.target.synced_none":"まだどの agent にも同期されていません","skills.row.open_details":"{{name}} の詳細を表示","skills.detail.close":"詳細を閉じる","skills.detail.sync_section_title":"同期先","skills.detail.remove_button":"すべての agent から削除","skills.detail.remove_confirm_hint":"これにより、各 agent から同期解除され、ローカルのコピーも削除されます。","skills.filter.agent_label":"Agent","skills.filter.agent_all":"すべての agent","skills.filter.clear":"フィルターをクリア","skills.filter.result_count":"{{filtered}} / {{total}} 個の skill","skills.filter.result_count_browse":"{{count}} 件の結果","skills.empty.no_match":"現在のフィルターに一致する skill はありません。","hint.dismiss":"ヒントを閉じる","hint.dismissible_aria":"閉じられるヒント","skills.card.installed":"インストール済み","skills.card.targets_prefix":"インストール先:","skills.card.targets_change":"変更","skills.card.installs":"{{count}} 回インストール","skills.source.label":"ソース","skills.source.all":"すべてのリポジトリ","skills.mode.repo":"リポジトリ","skills.mode.skillssh":"skills.sh","skills.browse.placeholder_all":"有効なリポジトリ内を検索…","skills.browse.placeholder_repo":"{{repo}} 内を検索…","skills.browse.placeholder_skillssh":"skills.sh のリポジトリ内を検索…","skills.browse.empty_sources":"GitHub リポジトリを追加して、スキルの閲覧を始めましょう。","skills.browse.add_repo_hint":"もっと skill がほしいですか?GitHub リポジトリを追加してください。","skills.browse.manage_sources":"ソースを管理","skills.browse.hint_skillssh":"skills.sh を検索するには 2 文字以上入力してください。","skills.browse.loading_hint":"GitHub から skill 情報を取得しています。初回の読み込みには 1 分ほどかかる場合があり、結果はキャッシュされます。","skills.error.generic":"Skill の操作に失敗しました。","skills.confirm.remove_title":"{{name}} を削除しますか?","skills.confirm.remove_managed":"この skill は接続済みのすべての AI ツールから削除されます。数秒以内であれば元に戻せます。","skills.confirm.remove_local":"すべての AI ツールのディレクトリから、この skill フォルダを削除します。この操作は元に戻せません。","skills.toast.removed":"{{name}} を削除しました。","shared.action.undo":"元に戻す","shared.action.cancel":"キャンセル","shared.action.apply":"適用","skills.empty.my":"まだ skill がありません。「探す」で検索またはインストールしましょう。","skills.empty.my_cta":"探しに行く","skills.empty.browse":"このソースにはスキルが見つかりませんでした。","skills.empty.search":"結果がありません。別のキーワードでお試しください。","skills.repo.placeholder":"owner/repository","skills.repo.add":"リポジトリを追加","skills.repo.invalid":"owner/repository または GitHub リポジトリの URL を入力してください。","skills.repo.remove":"リポジトリを削除","settings.appearance.language.label":"言語","settings.appearance.language.hint":"「システム」を使用すると、デフォルトで端末の言語に従います。","settings.appearance.language.system":"システム","settings.appearance.language.english":"英語","settings.appearance.language.chinese":"簡体字中国語","settings.appearance.language.traditional_chinese":"繁体字中国語","settings.appearance.language.japanese":"日本語","settings.appearance.language.korean":"韓国語","settings.appearance.currency.label":"通貨","settings.appearance.currency.hint":"使用コストの表示通貨を選択します。","settings.appearance.currency.opt.usd":"米ドル ($)","settings.appearance.currency.opt.eur":"ユーロ (€)","settings.appearance.currency.opt.gbp":"英ポンド (£)","settings.appearance.currency.opt.cny":"人民元 (¥)","settings.appearance.currency.opt.jpy":"日本円 (¥)","settings.appearance.currency.opt.hkd":"香港ドル (HK$)","settings.appearance.currency.rate_source.default":"組み込みのデフォルト為替レート","settings.appearance.currency.rate_source.fetched":"データソース:open.er-api.com","settings.appearance.currency.rate_updated":"{{when}} に更新","settings.appearance.currency.rate_never":"まだ更新されていません"},bD={"usage.overview.antigravity_notice_title":"トークンは推定値です","usage.overview.antigravity_notice_body":"Antigravity のローカルログには実際の使用量フィールドがないため、ここの数値は文字数(約 4 文字/トークン)から推定したもので、Gemini の prompt cache 割引も差し引かれていません。上限の推定値として扱い、請求書との照合には使わないでください。","usage.period.last24h":"24h","stats.period.today":"今日","stats.period.last24h":"24h","stats.period.week":"今週","stats.period.month":"今月","stats.period.all":"全期間","stats.period.convs":"会話","dashboard.core_index.collapse_label":"▾","dashboard.core_index.expand_label":"▸","dashboard.core_index.collapse_aria":"モデルの内訳を折りたたむ","dashboard.core_index.expand_aria":"モデルの内訳を展開","dashboard.rolling.title":"最近のアクティビティ","dashboard.rolling.last_7d":"過去 7 日間","dashboard.rolling.last_30d":"過去 30 日間","dashboard.rolling.avg_active_day":"1 日平均","dashboard.projects.title":"プロジェクトの使用状況","dashboard.projects.tokens_label":"トークン","dashboard.projects.stars_label":"スター","dashboard.projects.limit_label":"表示","dashboard.projects.limit_aria":"表示するリポジトリ数を選択","dashboard.projects.limit_top_3":"上位 3 件","dashboard.projects.limit_top_6":"上位 6 件","dashboard.projects.limit_top_10":"上位 10 件","dashboard.projects.empty":"公開リポジトリはありません","dashboard.widgets.title":"デスクトップウィジェット","dashboard.widgets.hint":"デスクトップを右クリック → ウィジェットを編集 → 「TokenTracker」を検索","dashboard.widgets.dismiss_aria":"ウィジェットの紹介を閉じる","dashboard.cost_breakdown.title":"コスト内訳","dashboard.cost_breakdown.total_label":"推定総コスト","dashboard.cost_breakdown.close":"閉じる","trend.monitor.label":"使用トレンド","trend.zoom.open_aria":"全画面表示","trend.zoom.close_aria":"閉じる","trend.zoom.badge":"トレンド分析","trend.zoom.desc":"バーにカーソルを合わせるとトークン、コスト、会話数を確認できます。粒度を切り替えて月から30分単位まで掘り下げられます。","trend.zoom.insight_badge":"分析","trend.zoom.tooltip.cost":"コスト","trend.zoom.tooltip.conversations":"会話","trend.zoom.stats.tokens":"総トークン数","trend.zoom.stats.cost":"総コスト","trend.zoom.stats.conversations":"会話数","trend.zoom.stats.peak":"ピーク時間帯","trend.zoom.gran.aria":"粒度","trend.zoom.gran.30min":"30分","trend.zoom.gran.day":"日","trend.zoom.gran.month":"月","trend.zoom.prev_day":"前日","trend.zoom.next_day":"翌日","trend.zoom.loading":"読み込み中…","trend.zoom.pick_day":"日付を選択","trend.zoom.pick_range":"期間を選択","trend.zoom.insight.empty":"静かな期間。トークンは一つも流れませんでした。","trend.zoom.insight.calm":"控えめな使い方。モデルはほとんど待機し、必要なときだけ動きました。","trend.zoom.insight.steady":"{{active}} 個のアクティブな区間で安定したリズム、ピークは {{peak}}。騒がずに物事を仕上げていくペースです。","trend.zoom.insight.heavy":"本気の稼働:{{active}} 区間が高負荷で動き、ピークは {{peak}}。勢いを待つのではなく自ら生み出す人の出力です。","trend.zoom.insight.massive":"工業規模。{{peak}} のピークと冷めることのないスループット。この量になると、もはやモデルを使うのではなく工場を動かしています。","heatmap.title":"ヒートマップ","heatmap.empty":"まだアクティビティデータがありません。","heatmap.legend.less":"少","heatmap.legend.more":"多","heatmap.legend.utc":"UTC","heatmap.tooltip":"{{day}} • {{value}} {{unit}} • {{tz}}","heatmap.unit.tokens":"トークン","heatmap.month.jan":"1月","heatmap.month.feb":"2月","heatmap.month.mar":"3月","heatmap.month.apr":"4月","heatmap.month.may":"5月","heatmap.month.jun":"6月","heatmap.month.jul":"7月","heatmap.month.aug":"8月","heatmap.month.sep":"9月","heatmap.month.oct":"10月","heatmap.month.nov":"11月","heatmap.month.dec":"12月","heatmap.day.sun":"日","heatmap.day.mon":"月","heatmap.day.tue":"火","heatmap.day.wed":"水","heatmap.day.thu":"木","heatmap.day.fri":"金","heatmap.day.sat":"土","dashboard.session_expired.copy_label":"npx --yes @ipv9/tokentracker-cli init を実行","dashboard.session_expired.copied":"コピーしました","dashboard.install.prompt":"Node.js 18+ をインストールしてから実行:","dashboard.install.cmd.init":"npx --yes @ipv9/tokentracker-cli init","dashboard.install.cmd.init_link_code":"npx --yes @ipv9/tokentracker-cli init --link-code {{link_code}}","dashboard.install.copy":"インストールコマンドをコピー","dashboard.install.copy_base":"初期化コマンドをコピー","dashboard.install.copied":"クリップボードにコピーしました","dashboard.install.link_code.loading":"専用コードを生成中...","dashboard.install.link_code.failed":"専用コードを利用できません","dashboard.install.cmd.sync":"npx --yes @ipv9/tokentracker-cli sync","dashboard.daily.title":"日次内訳","dashboard.daily.empty":"まだデータがありません。先に AI CLI を使用してから {{cmd}} を実行してください。","dashboard.identity.title":"あなたのプロフィール","dashboard.identity.subtitle":"あなたのコーディングの軌跡を記録","dashboard.identity.fallback":"匿名ユーザー","dashboard.screenshot.title_line1":"AI コーディングアシスタント","dashboard.screenshot.title_line2":"2025 年振り返り","dashboard.screenshot.twitter_button":"X にシェア","dashboard.screenshot.twitter_label":"X にシェア","dashboard.screenshot.twitter_hint":"画像を自動的にクリップボードにコピーします","dashboard.screenshot.twitter_text":"記録された {{total_tokens}} トークン。\\n{{model_name}} が {{model_percent}}% でリード。\\n\\n私の AI 使用状況、未監査 →\\ntokentracker.cc","heatmap.3d.hover_tip":"クリックして 3D 全画面回転分析モードに入る","heatmap.3d.modal.title":"トークンの 3D ビュー","heatmap.3d.modal.desc":"左ボタンを押しながらドラッグで自由に回転し、ホバーで日々のアクティビティと多次元の統計を確認できます。","heatmap.3d.modal.stats.total_tokens":"年間トークン総量","heatmap.3d.modal.stats.precision_total_tokens":"年間の正確な消費量","heatmap.3d.modal.stats.estimated_cost":"年間推定費用","heatmap.3d.modal.stats.active_rate_days":"アクティブ率 / 日数","heatmap.3d.modal.stats.max_streak":"最長連続アクティブ","heatmap.3d.modal.stats.days_suffix":"日","heatmap.3d.modal.stats.peak_day":"単日ピーク","heatmap.3d.modal.stats.precision_peak_value":"正確な単日ピーク","heatmap.3d.modal.stats.no_data":"データなし","heatmap.3d.modal.legend.title":"アクティビティのレベル","heatmap.3d.modal.palette.emerald":"エメラルドシティ","heatmap.3d.modal.palette.ocean":"ディープオーシャン","heatmap.3d.modal.palette.neon":"サイバーネオン","heatmap.3d.modal.palette.amber":"燃ゆる残照","heatmap.3d.modal.control.play":"ゆっくり自動回転を開始","heatmap.3d.modal.control.pause":"自動回転を一時停止","heatmap.3d.modal.control.reset":"3D 視点をリセット","heatmap.3d.modal.footer.tip":"ピンチでズーム / ホイールでズーム / マウスドラッグで 3D チャートを回転","heatmap.3d.modal.ai.title.default":"たゆまず歩み続ける人","heatmap.3d.modal.ai.eval.default":"技術の大河のなかで、たゆまず歩み続けています。日々のコーディングがいつも華々しいとは限りませんが、小さなアクティビティの一つひとつが、あなたの思考と探求を記録しています。星のような火花がやがて集まり、あなただけのデジタルの海になっていきます。","heatmap.3d.modal.ai.title.peak":"限界突破級コントリビューター","heatmap.3d.modal.ai.eval.peak":"この一年、あなたのトークン産出はきわめて高いエンジニアリング密度を示しました。これほどの開発量は、中規模から大規模なシステム基盤の再構築に深く関わったのに匹敵し、一打鍵ごとに複雑なロジックを確定的なコードへと収束させています。極度の集中と、純粋なエンジニアリングへの情熱の何よりの証です。","heatmap.3d.modal.ai.title.heavy":"高頻度産出級デベロッパー","heatmap.3d.modal.ai.eval.heavy":"卓越した継続的アウトプット。あなたのトークン累積量は数百万語に達し、中編の技術大作を数十冊分に相当します。高い飽和度のコーディングのリズムは、あなたが並外れた実行力で自分だけのデジタル資産を築いていることを示し、卓越した創造力を体現しています。","heatmap.3d.modal.ai.title.core":"中核生産力エキスパート","heatmap.3d.modal.ai.eval.core":"きわめて粘り強い長期的な取り組み。過去一年にわたり、長い期間にわたって安定して高い強度の開発ペースを保ってきました。確かなコード行数とトークン産出によって、あなたは静かにプロジェクトの中核アーキテクチャを築き上げており、まさにエンジニアリングの支柱です。","heatmap.3d.modal.ai.title.steady":"着実成長型エンジニア","heatmap.3d.modal.ai.eval.steady":"堅実で揺るぎない技術の積み重ね。トークンが増えるたびに、あなたは未来へと続くコードの礎を着実に積んでいます。この細く長く続く堅実なリズムは、優れた開発者がエンジニアリングの達人へと至るために必ず通る道です。","heatmap.3d.voxel.joke.1":"🔥 超ヤバい!{{value}} tokens を産出!大規模モデルを猛特訓中?それともコンパイラを手書きで?","heatmap.3d.voxel.joke.2":"🚀 叙事詩級のアウトプット!合計 {{value}} tokens。今日の産出量は地球を一周できるほど、AI もあなたに驚嘆!","heatmap.3d.voxel.joke.3":"⚡ 爆発の日!{{value}} tokens。コードが泉のごとく湧き出て、キーボードが煙を上げ始めた!","heatmap.3d.voxel.level3":"⚡ 生産力の大爆発({{value}} tokens)!高効率で集中したゴールデンタイム、このピークの状態を保ち続けよう!","heatmap.3d.voxel.level2":"🌱 調子が上がってきた({{value}} tokens)!着実なアウトプットで、キーを打つたびに大きな建物に一枚ずつレンガを積み重ねています。","heatmap.3d.voxel.level1":"🍃 塵も積もれば山となる({{value}} tokens)。小さなコミットも未来への投資、複利の力を保とう!","heatmap.3d.voxel.level0":"💤 英気を養う日。コードを書かない日にも、ひらめきはひそかに育っています。","ipcheck.page.title":"Claude IP チェック","ipcheck.page.subtitle":"現在 Claude にアクセスしている出口 IP、クリーン度、地理情報、リスクシグナルを確認し、ログインに影響したりリスク管理を誘発したりしうる要因を把握します。","ipcheck.mask.toggle":"IP を隠す","ipcheck.ipv6.warn":"現在 IPv6 環境です。IPv6 での Claude Code アクセスは推奨されず、一部の検出結果が不完全になる可能性があります。","ipcheck.ip.cn":"中国の出口 IPv4","ipcheck.ip.cloudflare":"Cloudflare 出口","ipcheck.ip.claude":"Claude 出口","ipcheck.ip.failed":"取得に失敗しました","ipcheck.ip.loading":"読み込み中...","ipcheck.trust.title":"信頼スコア","ipcheck.trust.subtitle":"Claude のリスク管理視点での IP クリーン度","ipcheck.trust.no_data":"データなし","ipcheck.trust.no_ip":"Claude の出口 IP を取得できず、スコアを算出できません","ipcheck.trust.no_score":"この IP のスコアデータはまだありません","ipcheck.trust.gauge.low":"0 高リスク","ipcheck.trust.gauge.high":"100 信頼可","ipcheck.trust.label.pristine":"極めてクリーン","ipcheck.trust.label.clean":"クリーン","ipcheck.trust.label.good":"良好","ipcheck.trust.label.neutral":"中立","ipcheck.trust.label.suspicious":"疑わしい","ipcheck.trust.label.unreachable":"アクセス不可","ipcheck.trust.text.excellent":"この IP の評判は非常に良好です","ipcheck.trust.text.great":"この IP の評判は優秀です","ipcheck.trust.text.minor":"この IP には軽微なリスクがあります","ipcheck.trust.text.moderate":"この IP には一定のリスクがあります","ipcheck.trust.text.severe":"この IP は極めて高リスクです","ipcheck.trust.text.restricted":"アクセス不可の地域にあり、Claude は厳格にリスク管理します","ipcheck.trust.region_warn.title":"Claude の出口 IP が {{region}} にあります","ipcheck.trust.region_warn.body":"Claude へのログインは推奨されません。アカウント停止のリスク管理を誘発しやすくなります。","ipcheck.trust.region_support":"Claude 対応地域","ipcheck.trust.region.accessible":"アクセス可","ipcheck.common.unknown":"不明","ipcheck.props.title":"IP の属性","ipcheck.props.region":"地域","ipcheck.props.city":"都市","ipcheck.props.type":"タイプ","ipcheck.props.asn":"ASN","ipcheck.props.org":"プロバイダー","ipcheck.props.residential":"家庭用","ipcheck.props.datacenter":"データセンター","ipcheck.security.title":"セキュリティ検出","ipcheck.security.vpn":"VPN","ipcheck.security.proxy":"プロキシ (Proxy)","ipcheck.security.tor":"Tor","ipcheck.security.crawler":"ボット (Crawler)","ipcheck.security.abuser":"不正利用の記録","ipcheck.security.proxy_flag":"プロキシ","ipcheck.security.crawler_yes":"はい","ipcheck.security.crawler_no":"いいえ","ipcheck.security.abuser_yes":"記録あり","ipcheck.security.abuser_no":"記録なし","ipcheck.security.clean":"検出されませんでした","ipcheck.avail.title":"Claude の可用性","ipcheck.avail.tooltip":"Claude のサーバーは米国にあります。アジアからのアクセスで遅延が 100ms を超えるのは正常な状況です。","ipcheck.avail.refresh":"更新","ipcheck.avail.svc_row":"サービス状態","ipcheck.avail.latency.normal":"正常","ipcheck.avail.latency.good":"良好","ipcheck.avail.latency.slow":"やや遅い","ipcheck.avail.latency.unreachable":"アクセス不可","ipcheck.avail.svc.none":"すべて正常","ipcheck.avail.svc.minor":"軽微な障害","ipcheck.avail.svc.major":"重大な障害","ipcheck.avail.svc.critical":"深刻な障害","ipcheck.avail.svc.maintenance":"メンテナンス中","ipcheck.avail.svc.other":"サービス異常","ipcheck.dns.title":"DNS リーク検出","ipcheck.dns.status":"状態","ipcheck.dns.outlet":"DNS 出口","ipcheck.dns.outlet_ip":"DNS 出口 IP","ipcheck.dns.isp":"プロバイダー","ipcheck.dns.leaked":"リークの可能性あり","ipcheck.dns.no_leak":"リークは検出されませんでした","ipcheck.dns.encrypted":"DNS は暗号化または非公開","ipcheck.dns.cn_tag":"中国 DNS","ipcheck.udp.title":"WebRTC UDP リーク","ipcheck.udp.status":"状態","ipcheck.udp.outlet":"UDP 出口","ipcheck.udp.outlet_ip":"UDP 出口 IP","ipcheck.udp.origin":"所在地","ipcheck.udp.disabled":"WebRTC は無効です","ipcheck.udp.no_leak":"リークは検出されませんでした","ipcheck.udp.leaked":"リークの可能性あり","ipcheck.udp.anomaly":"異常","ipcheck.device.title":"デバイス情報","ipcheck.device.tz":"タイムゾーン","ipcheck.device.lang":"言語","ipcheck.device.os":"OS / ブラウザ","ipcheck.device.touch":"タッチスクリーン","ipcheck.device.net":"ネットワークタイプ","ipcheck.device.dnt":"Do Not Track","ipcheck.device.webgl_render":"WebGL レンダラー","ipcheck.device.canvas_fp":"Canvas フィンガープリント","ipcheck.device.webgl_fp":"WebGL フィンガープリント","ipcheck.device.match":"一致","ipcheck.device.mismatch":"不一致","ipcheck.device.local":"ローカル","ipcheck.device.estimate_suffix":"(推定)","ipcheck.device.diff_equal":"オフセットにわずかな差があります","ipcheck.device.diff_ahead":"Claude が {{h}} 時間進んでいます","ipcheck.device.diff_behind":"Claude が {{h}} 時間遅れています","ipcheck.device.lang_expected":"Claude 出口でよく使われる言語","ipcheck.device.touch_yes":"はい","ipcheck.device.touch_no":"いいえ","ipcheck.device.dnt_on":"オン","ipcheck.device.dnt_off":"オフ","ipcheck.device.dnt_unset":"未設定","ipcheck.device.net_unsupported":"検出に非対応","ipcheck.device.unsupported":"非対応","ipcheck.history.title":"Claude 出口 IP の履歴","ipcheck.history.subtitle":"ブラウザのローカルにのみ保存され、最大 6 件まで保持されます","ipcheck.history.clear":"クリア","ipcheck.history.empty":"履歴はまだありません","ipcheck.history.current":"現在","ipcheck.region.CN":"中国本土","ipcheck.region.HK":"香港","ipcheck.region.MO":"マカオ","ipcheck.region.RU":"ロシア","ipcheck.region.KP":"北朝鮮","ipcheck.region.IR":"イラン","ipcheck.region.SY":"シリア","ipcheck.region.CU":"キューバ","ipcheck.region.BY":"ベラルーシ","ipcheck.region.VE":"ベネズエラ","leaderboard.profile_modal.close":"閉じる","leaderboard.profile_modal.loading":"ユーザープロフィールを読み込み中…","leaderboard.profile_modal.error":"ユーザープロフィールの読み込みに失敗しました。","leaderboard.profile_modal.empty":"このユーザーのプロフィールは公開されていません。","leaderboard.profile_modal.row_aria":"{{name}} のプロフィールを表示","leaderboard.profile_modal.rank":"#{{rank}}","leaderboard.profile.hero.rank_label":"ランク","leaderboard.profile_modal.hero.total_tokens":"トークン合計","leaderboard.profile_modal.hero.total_cost":"支出合計","leaderboard.profile_modal.hero.github":"GitHub プロフィール","leaderboard.profile_modal.stat.total_cost":"支出合計","leaderboard.profile_modal.stat.total_tokens":"トークン合計","leaderboard.profile_modal.stat.active_days":"アクティブ日数","leaderboard.profile_modal.stat.avg_per_day":"1 日平均支出","leaderboard.profile_modal.streak.current":"現在の連続","leaderboard.profile_modal.streak.longest":"最長連続","leaderboard.profile_modal.streak.days":"{{count}} 日","leaderboard.profile_modal.best_day.title":"ベストデー","leaderboard.profile_modal.best_day.none":"—","leaderboard.profile_modal.models.count":"{{count}} 個のモデルを使用","leaderboard.profile_modal.models.favorite":"お気に入りモデル","leaderboard.profile_modal.models.none":"モデルの記録はまだありません","leaderboard.profile_modal.heatmap.title":"アクティビティ(直近 365 日)","leaderboard.profile_modal.providers.title":"プロバイダー別の分布","leaderboard.profile_modal.providers.none":"この期間の使用データはありません。","leaderboard.profile_modal.view_full":"完全なプロフィールを表示","local_only.title":"クライアント内でご利用ください","local_only.body":"このページはお使いの端末上のデータを読み込むため、Mac アプリまたはコマンドラインの dashboard でのみ表示できます。","local_only.open_app":"Mac アプリ内で開く","local_only.download":"Mac アプリをダウンロード","dashboard.auth_gate.title":"Token Tracker にサインイン","dashboard.auth_gate.subtitle":"サインインして、クラウドでの API 使用量、コスト、トークン消費の傾向を同期および表示します。","dashboard.auth_gate.button":"今すぐサインイン","dashboard.expired_gate.title":"セッションの有効期限切れ","dashboard.expired_gate.subtitle":"セッションの有効期限が切れました。クラウドダッシュボードの表示を続けるには、もう一度サインインしてください。","dashboard.expired_gate.button":"再サインイン","shared.app_name":"Token Tracker","dashboard.auth_gate.hero_title":"AIエージェントのすべてのトークン消費","dashboard.auth_gate.hero_subtitle":"明確で透過的、マルチエンドポイント制御","dashboard.auth_gate.desc":"Claude Code、Cursor、Gemini CLIなどのすべての主流エージェントからのトークンクォータ、同時実行コスト、遅延統計をパブリッククラウドで安全に同期し、これまでにない包括的な可視化分析を提供します。","dashboard.auth_gate.feature.sync.title":"リアルタイムクラウド同期","dashboard.auth_gate.feature.sync.desc":"各エンドポイントの実行コストを自動的に収集し、プライベートクラウドに数秒で安全にアーカイブします。","dashboard.auth_gate.feature.anal.title":"多次元ダッシュボード分析","dashboard.auth_gate.feature.anal.desc":"モデル分類、時間枠ごとにトークン分布を統計し、コストの急増と消費構成をいつでも追跡できます。","dashboard.auth_gate.feature.guard.title":"ローカル優先の自律性","dashboard.auth_gate.feature.guard.desc":"Localhostモードではすべてのログイン認証を自動的にスキップし、ローカルのオフラインデバッグエクスペリエンスを完全に保護します。","dashboard.expired_gate.hero_title":"クラウドセッションの有効期限切れ","dashboard.expired_gate.desc":"プライバシーとクラウドドライブのセキュリティのため、有効なセッションは一定期間後に自動的に終了します。ダッシュボードを即座に復元するには、もう一度検証してください。","dashboard.expired_gate.feature.sec.title":"安全な保護","dashboard.expired_gate.feature.sec.desc":"暗号化された資格情報は期限が切れると自動的に破壊され、トークン資産のプライバシーを厳密に保護します。","dashboard.expired_gate.feature.restore.title":"シームレスな復元","dashboard.expired_gate.feature.restore.desc":"再ログイン後、ターミナルフックを再構成することなく、マルチデバイスのリアルタイムダッシュボードが自動的に復元されます。","dashboard.expired_gate.feature.cloud.title":"クロスデバイス同期","dashboard.expired_gate.feature.cloud.desc":"同期されたダッシュボードを介して、どこからでもトークンログを簡単に確認して開消を管理できます。"},kD={"landing.handle.default":"VIBE_USER","landing.handle.special":"ボルト","landing.screenshot.alt":"TokenTracker ダッシュボードのスクリーンショット","landing.nav.login":"ログイン","landing.nav.signup":"登録","landing.install.command":"npx --yes @ipv9/tokentracker-cli","landing.install.action.copy":"コマンドをコピー","landing.install.action.copied":"コピーしました","landing.meta.title":"Token Tracker — AI Coding CLI のトークン使用状況トラッカー","landing.meta.description":"Claude Code、Cursor、Codex などのツールのトークン使用量を自動的に監視。ローカルファースト、プライバシー重視、設定不要。","landing.meta.og_site_name":"Token Tracker","landing.meta.og_type":"website","landing.meta.og_image":"https://www.tokentracker.cc/og-image.jpg","landing.meta.og_url":"https://www.tokentracker.cc/","landing.meta.twitter_card":"summary_large_image","share.meta.title":"Token Tracker シェア","share.meta.description":"Token Tracker ダッシュボードのスナップショットをシェア。モデル、プロジェクト、期間をまたいだ使用状況のインサイトを含みます。","share.meta.og_site_name":"Token Tracker","share.meta.og_type":"website","share.meta.og_image":"https://www.tokentracker.cc/share-dashboard.jpg","share.meta.og_url":"https://www.tokentracker.cc/share","share.meta.twitter_card":"summary_large_image","landing.handle.placeholder":"「{{handle}}」を試す","landing.rank.expectation":"予想ランク:{{rank}}","landing.rank.singularity":"トップ","landing.rank.unranked":"ランク外","landing.cta.primary":"ダッシュボードへ","landing.cta.secondary":"GitHub","landing.v2.hero.title_line1":"あなたのすべての","landing.v2.hero.title_line2":"AI トークンを追跡","landing.v2.install.mac_cta":"macOS 版をダウンロード","landing.v2.install.win_cta":"Windows 版をダウンロード","landing.v2.install.desktop_cta":"デスクトップ版をダウンロード","landing.v2.install.os_macos":"macOS","landing.v2.install.os_windows":"Windows","landing.v2.install.availability":"macOS と Windows に対応","landing.v2.models.title":"対応する AI CLI ツール","landing.v2.compare.kicker":"シームレスな追跡","landing.v2.compare.title":"AI の使用量を当てずっぽうで考えるのはもうやめましょう。","landing.v2.compare.subtitle":"AI CLI ツールは生の履歴データを散らかったローカルファイルに隠しがちです。TokenTracker はそれらをローカルファーストのダッシュボードにリアルタイムで集約します。","landing.v2.distill.body":"100% ローカル処理。prompt やコードは一切アップロードしません。","landing.v2.compare.with.title":"Token Tracker あり","landing.v2.compare.with.p1":"集約された使用状況ダッシュボード","landing.v2.compare.with.p2":"リアルタイムのトークン指標","landing.v2.compare.with.p3":"100% ローカルでプライバシーも安心","landing.v2.compare.with.p4":"マルチクライアントのターミナル監査証跡","landing.v2.compare.without.title":"なし","landing.v2.compare.without.p1":"散らばった JSON ログファイル","landing.v2.compare.without.p2":"トークン消費がまったく見えない","landing.v2.compare.without.p3":"突然の API 請求","landing.v2.compare.without.p4":"過去の監査ログが皆無","landing.v2.leaderboard.kicker":"グローバル TOKEN リーダーボード","landing.v2.leaderboard.title":"AI Token 効率","landing.v2.leaderboard.subtitle":"ローカルの AI Token 使用量を匿名で同期し、グローバル効率リーダーボードに参加できます。世界中の開発者とモデルのコスト効率や呼び出し頻度を比較できます。","landing.v2.leaderboard.view_more":"リーダーボード全体を見る","landing.v2.footer.line":"Token Tracker — 開発者が、開発者のために作りました。","landing.v2.nav.status":"ステータス","landing.v2.nav.github":"GitHub","landing.v2.models.agent.codex":"Codex","landing.v2.models.agent.claude_code":"Claude Code","landing.v2.models.agent.cursor":"Cursor","landing.v2.models.agent.gemini":"Gemini","landing.v2.models.agent.opencode":"OpenCode","landing.v2.models.agent.openclaw":"OpenClaw","landing.v2.cta.primary":"Dashboard","landing.v2.hero.subtagline":"Claude Code、Cursor、Codex などのツールのトークン使用量を自動的に監視。ローカルファースト、プライバシー重視、設定不要。","leaderboard.profile.nav.back":"リーダーボード","leaderboard.title":"リーダーボード","leaderboard.range":"UTC {{period}} · {{from}} – {{to}}","leaderboard.range_loading":"UTC {{period}} · …","leaderboard.range.total":"全期間","leaderboard.generated_at":"{{ts}} に更新","leaderboard.period.week":"週","leaderboard.period.month":"月","leaderboard.period.total":"全期間","leaderboard.me_label":"あなた","leaderboard.anon_label":"匿名","leaderboard.error.unknown":"不明なエラー","leaderboard.loading":"読み込み中…","leaderboard.empty":"データがありません","leaderboard.column.rank":"ランク","leaderboard.column.user":"ユーザー","leaderboard.column.total":"合計","leaderboard.column.codex":"Codex","leaderboard.column.claude":"Claude","leaderboard.column.gemini":"Gemini","leaderboard.column.cursor":"Cursor","leaderboard.column.opencode":"OpenCode","leaderboard.column.openclaw":"OpenClaw","leaderboard.column.hermes":"Hermes","leaderboard.column.kiro":"Kiro","leaderboard.column.copilot":"Copilot","leaderboard.column.kimi":"Kimi","leaderboard.column.supplemental":"その他","leaderboard.column.est_cost":"推定支出","leaderboard.signin_prompt":"ログインするとランキングに参加できます","leaderboard.signin_button":"ログイン","leaderboard.sync_prompt":"クラウド同期を有効にするとランキングに参加できます","leaderboard.sync_button.idle":"有効にして同期","leaderboard.sync_button.busy":"同期中…","leaderboard.pagination.page_size_label":"ページあたりの表示数","leaderboard.pagination.prev":"前のページ","leaderboard.pagination.next":"次のページ","leaderboard.pagination.ellipsis":"……","leaderboard.pagination.page_unknown":"{{page}} ページ目","share.modal.title":"あなたのデータをシェア","share.modal.subtitle":"ポスターカードを生成して、どこでもシェア。","share.modal.close":"閉じる","share.modal.action.x":"X にシェア","share.modal.action.download":"ダウンロード","share.modal.action.copy":"画像をコピー","share.modal.hint.x":"画像をツイートに貼り付け","share.modal.hint.copy":"クリップボードへ","share.modal.name_label":"表示名","share.modal.name_placeholder":"名前を入力","share.modal.style_label":"スタイル","share.modal.footer":"データは常にローカルに保持されます。画像はブラウザ内で生成され、アップロードされることはありません。","share.button.label":"シェア","share.button.aria":"シェアカードを開く","share.toast.copied":"画像をクリップボードにコピーしました","share.toast.downloaded":"画像を保存しました","share.toast.failed":"画像の生成に失敗しました","share.toast.working":"生成中…","share.variant.neon":"ネオン","share.variant.broadsheet":"特集号","share.date.month_year":"{{year}} 年 {{month}}","share.issue.all_time":"全期間","share.month_short.jan":"1 月","share.month_short.feb":"2 月","share.month_short.mar":"3 月","share.month_short.apr":"4 月","share.month_short.may":"5 月","share.month_short.jun":"6 月","share.month_short.jul":"7 月","share.month_short.aug":"8 月","share.month_short.sep":"9 月","share.month_short.oct":"10 月","share.month_short.nov":"11 月","share.month_short.dec":"12 月","share.hook.top_loyal":"{{name}} が使用量の {{percent}}% を占めました。","share.hook.days_record":"合計 {{days}} 日を記録。","share.hook.top_led":"{{name}} がリードし、割合は {{percent}}%。","share.hook.multi_models":"{{days}} 日間で {{count}} 個のモデルを使用。","share.hook.days_with_model":"{{name}} が {{days}} 日間付き合ってくれました。","share.hook.new_chapter":"新しい記録が、ここから始まります。","share.card.broadsheet.issue":"号数","share.card.broadsheet.by":"シェアした人","share.card.broadsheet.tracked_since":"追跡開始","share.card.broadsheet.total_tokens":"トークン総数","share.card.broadsheet.estimated_spend":"推定支出","share.card.broadsheet.billable_days":"{{days}} 日のアクティブ日","share.card.broadsheet.heatmap_title":"年間ヒートマップ","share.card.broadsheet.heatmap_days_on_record":"{{active}} / {{total}} 日に記録あり","share.card.broadsheet.roster_title":"モデルランキング","share.card.broadsheet.roster_subtitle":"よく使うモデルのローテーション","share.card.broadsheet.empty":"今週は静かで、まだモデルのデータがありません。","share.card.broadsheet.global_rank":"全体ランク","share.card.broadsheet.active_days":"アクティブ","share.card.broadsheet.days_count":"{{days}} 日","share.card.broadsheet.track_yours":"あなた自身を追跡する","share.card.annual.report_title":"使用状況レポート","share.card.annual.less":"少","share.card.annual.more":"多","share.card.annual.heatmap_title":"トークンヒートマップ","share.card.annual.total_tokens":"トークン総数","share.card.annual.estimated_cost":"推定コスト","share.card.annual.longest_streak":"最長連続","share.card.annual.days_count":"{{days}} 日","share.card.annual.top_model":"人気モデル"},_D={"header.auth.sign_in_aria":"로그인","login.back_home":"홈으로 돌아가기","login.cloud_only":"클라우드 로그인이 설정되지 않았습니다. localhost의 로컬 대시보드를 사용하세요.","login.title":"로그인","login.subtitle":"이메일 또는 연결된 계정을 선택하세요.","login.dismiss":"닫기","login.verify_email_success":"이메일이 인증되었습니다. 아래에서 로그인할 수 있습니다.","login.verify_email_pending":"이메일에서 계정 인증을 완료한 후 로그인하세요.","login.oauth.continue":"{{provider}}(으)로 계속하기","login.divider":"또는","login.tab.sign_in":"로그인","login.tab.sign_up":"계정 만들기","login.field.name":"표시 이름","login.field.name_placeholder":"선택 사항","login.field.email":"이메일","login.field.password":"비밀번호","login.password_hint":"최소 {{min}}자 이상.","login.submit.sign_in":"이메일로 로그인","login.submit.sign_up":"계정 만들기","auth.callback.processing":"처리 중…","auth.callback.success":"로그인 성공","auth.callback.redirecting":"TokenTracker로 돌아가는 중…","auth.callback.failed":"로그인을 완료하지 못했습니다. 다시 시도해 주세요.","auth.callback.close":"이 페이지 닫기","login_modal.subtitle":"로그인하여 리더보드에 참여하세요","login_modal.continue_email":"이메일로 계속하기","login_modal.divider_email":"이메일","shared.placeholder.short":"--","shared.unit.percent":"%","shared.unit.thousand_abbrev":"K","shared.unit.million_abbrev":"M","shared.unit.billion_abbrev":"B","shared.data_source":"데이터 출처: {{source}}","shared.error.prefix":"오류: {{error}}","shared.status.unsynced":"—","shared.time.now":"방금","error.boundary.title":"문제가 발생했습니다","error.boundary.subtitle":"이 화면을 표시하지 못했습니다","error.boundary.hint":"콘솔을 연 다음 페이지를 새로고침하세요","error.boundary.no_details":"오류 세부 정보 없음","error.boundary.action.reload":"새로고침","identity_card.rank_label":"시작일","identity_card.streak_label":"활동 일수","identity_card.rank_placeholder":"—","identity_card.streak_value":"{{days}}일","usage.summary.total":"총 토큰","usage.summary.updated_at":"{{timestamp}} 업데이트","usage.period.day":"일","usage.period.week":"주","usage.period.month":"월","usage.period.total":"전체","usage.period.custom":"사용자 지정","usage.metric.total":"전체","usage.metric.input":"입력","usage.metric.output":"출력","usage.metric.cached_input":"캐시된 입력","usage.metric.reasoning_output":"추론 출력","usage.button.refresh":"새로고침","usage.overview.tablist_aria":"기간","usage.auto_refresh.aria":"자동 새로고침 간격","usage.auto_refresh.off":"끄기","usage.auto_refresh.30s":"30초","usage.auto_refresh.60s":"60초","usage.auto_refresh.120s":"120초","usage.overview.cost_breakdown_aria":"비용 내역 보기","usage.overview.distribution_aria":"제공자 분포: {{items}}","usage.overview.distribution_item":"{{label}} {{percent}}%","usage.overview.provider_card_aria":"{{provider}}: {{percent}}%, {{tokens}} 토큰, {{cost}}. 클릭하여 세부 정보 {{action}}","usage.overview.expand":"펼치기","usage.overview.collapse":"접기","usage.overview.model_count":"모델 {{count}}개","usage.overview.model_details_aria":"{{provider}} 모델 세부 정보","widgets.page.title":"위젯","widgets.cta.open_gallery":"위젯 갤러리 열기","widgets.cta.download":"Mac 앱 다운로드","widgets.cta.macos_only":"macOS 전용","widgets.menubar.section.title":"메뉴 막대","widgets.gallery.section.title":"데스크톱 위젯","widgets.summary.name":"사용량 요약","widgets.summary.description":"오늘과 7일간의 사용량을 간결한 추세선으로 보여줍니다.","widgets.heatmap.name":"활동 히트맵","widgets.heatmap.description":"GitHub 스타일의 일별 캘린더. 연속 활동일과 쉬는 날을 한눈에 파악하세요.","widgets.topModels.name":"인기 모델","widgets.topModels.description":"토큰 비율로 정렬한 가장 많이 사용한 모델.","widgets.limits.name":"사용 한도","widgets.limits.description":"Claude, Codex, Cursor, Gemini 등의 실시간 사용 한도 진행 상황.","daily.sort.date.label":"날짜","daily.sort.date.title":"날짜순 정렬","daily.sort.total.label":"전체","daily.sort.total.title":"전체순 정렬","daily.sort.input.label":"입력","daily.sort.input.title":"입력순 정렬","daily.sort.output.label":"출력","daily.sort.output.title":"출력순 정렬","daily.sort.cached.label":"캐시","daily.sort.cached.title":"캐시된 입력순 정렬","daily.sort.reasoning.label":"추론","daily.sort.reasoning.title":"추론 출력순 정렬","daily.sort.conversations.label":"대화 수","daily.sort.conversations.title":"대화순 정렬","details.pagination.prev":"이전","details.pagination.next":"다음","limits.copilot.otelHint.title":"Copilot 토큰 사용량 추적","limits.copilot.otelHint.body":"한도 정보는 GitHub OAuth 토큰을 통해 로드됩니다. 토큰별 사용량도 기록하려면 Copilot의 OpenTelemetry 내보내기를 활성화하고 셸 프로필(~/.zshrc 또는 ~/.bashrc)에 다음 줄을 추가하세요:","limits.copilot.otelHint.copy":"복사","limits.copilot.otelHint.copied":"복사됨","limits.panel.title":"사용 한도","limits.panel.mode_separator":" · ","limits.label.cursor_plan":"플랜","limits.label.cursor_auto":"자동","limits.label.cursor_api":"API","limits.label.kiro_month":"월간","limits.label.kiro_bonus":"보너스","limits.label.kimi_weekly":"주간","limits.label.kimi_5h":"5h","limits.label.kimi_total":"전체","limits.label.kimi_parallel":"동시 실행: {{count}}","limits.label.copilot_premium":"프리미엄","limits.label.copilot_chat":"채팅","limits.status.not_connected":"연결되지 않음","limits.status.no_data":"실시간 한도 데이터가 반환되지 않았습니다","limits.status.all_hidden":"모든 한도 제공자가 숨겨져 있습니다. 표시 설정을 열어 다시 표시하세요.","nav.usage":"토큰","nav.limits":"한도","nav.widgets":"macOS 위젯","nav.skills":"Skills","nav.leaderboard":"리더보드","nav.collapse":"사이드바 접기","nav.expand":"사이드바 펼치기","nav.menu":"내비게이션 메뉴 열기","nav.close_menu":"내비게이션 메뉴 닫기","nav.aside_label":"주 내비게이션","nav.nav_label":"기본","nav.version":"Token Tracker 버전 {{version}}","limits.page.subtitle":"AI 도구 전반의 사용 한도와 할당량 사용 현황.","limits.settings.toggle_visible":"표시 여부 전환","limits.settings.display_mode_label":"사용량","limits.settings.display_mode_used":"사용됨","limits.settings.display_mode_remaining":"남음","limits.page.openSettings":"표시 설정","nav.group.general":"일반","nav.group.tools":"도구","nav.group.account":"계정","nav.settings":"설정","header.auth.open_settings":"설정 열기","settings.page.title":"설정","settings.page.subtitle":"계정, 외관 및 표시 환경설정을 관리하세요.","settings.section.appearance":"외관","settings.section.account":"계정","settings.section.limits":"한도 표시","settings.appearance.theme.label":"테마","settings.appearance.theme.hint":"대시보드 전반에서 Token Tracker가 표시되는 방식을 선택하세요.","settings.appearance.theme.light":"라이트","settings.appearance.theme.dark":"다크","settings.appearance.theme.system":"시스템","settings.account.displayName":"표시 이름","settings.account.edit":"편집","settings.account.save":"저장","settings.account.saving":"저장 중...","settings.account.cancel":"취소","settings.account.userId":"사용자 ID","settings.account.copyUserId":"사용자 ID 복사","settings.account.copy":"복사","settings.account.copied":"복사됨","settings.account.cloudSync":"클라우드 동기화","settings.account.cloudSyncHint":"로컬 사용량을 Token Tracker 클라우드 계정에 업로드합니다.","settings.account.publicProfile":"공개 프로필","settings.account.publicProfileHint":"공개 리더보드에 사용량을 표시합니다.","settings.account.displayNameAnonymousHint":"익명 — 리더보드에서 이름과 아바타가 숨겨집니다","settings.account.displayNameDisabledWhileAnon":"이름을 편집하려면 먼저 스위치를 켜세요","settings.account.githubUrl":"GitHub 프로필","settings.account.githubUrlHint":"리더보드에서 이름 옆에 GitHub 링크를 표시합니다.","settings.account.githubUrlPlaceholder":"사용자명 또는 https://github.com/사용자명","settings.account.githubUrlInvalid":"GitHub 사용자명 또는 https://github.com/사용자명 형식의 URL을 입력하세요.","leaderboard.github.aria":"GitHub 프로필 열기","leaderboard.github.tooltipAction":"클릭하여 GitHub 프로필 열기","leaderboard.github.tooltipPrefix":"여기에 표시하려면","leaderboard.github.tooltipSettingsLink":"설정","leaderboard.github.tooltipSuffix":"에서 설정하세요","settings.account.signOut":"로그아웃","settings.account.signIn":"로그인","settings.account.signedOutHint":"로그인하여 클라우드 동기화와 리더보드 환경설정을 관리하세요.","settings.section.menubar":"메뉴 막대 앱","settings.menubar.showStats":"메뉴 막대에 통계 표시","settings.menubar.showStatsHint":"메뉴 막대 아이콘 옆에 오늘의 토큰 수와 비용을 표시합니다.","settings.menubar.animatedIcon":"애니메이션 아이콘","settings.menubar.animatedIconHint":"메뉴 막대에서 Clawd 캐릭터를 깜빡이고 동기화 애니메이션을 재생합니다.","settings.menubar.launchAtLogin":"로그인 시 실행","settings.menubar.launchAtLoginHint":"macOS에 로그인할 때 TokenTrackerBar를 자동으로 시작합니다.","settings.menubar.syncNow":"지금 동기화","settings.menubar.syncNowHint":"로컬 AI 도구 로그를 즉시 파싱하고 업로드합니다.","settings.menubar.syncing":"동기화 중…","settings.menubar.updates":"업데이트","settings.menubar.checkUpdates":"업데이트 확인","settings.footer.statusPage":"시스템 상태","menubar.slot.primary":"첫 번째 위치","menubar.slot.secondary":"두 번째 위치","menubar.native_only":"라이브 메뉴 막대 표시를 편집하려면 macOS용 TokenTrackerBar를 여세요.","menubar.metric.today_tokens":"오늘 토큰","menubar.metric.today_cost":"오늘 비용","menubar.metric.last_7d_tokens":"최근 7일","menubar.metric.total_tokens":"총 토큰","menubar.metric.total_cost":"총 비용","menubar.metric.claude_5h":"Claude 5시간 한도","menubar.metric.claude_7d":"Claude 7일 한도","menubar.metric.codex_5h":"Codex 5시간 한도","menubar.metric.codex_7d":"Codex 7일 한도","nav.ip_check":"Claude IP 확인","skills.page.title":"Skills","skills.tab.my":"내 Skills","skills.tab.browse":"둘러보기","skills.action.refresh":"새로고침","skills.action.install":"설치","skills.action.choose_targets":"대상 선택","skills.target.menu_label":"설치 위치","skills.target.none":"대상 없음","skills.toast.installed":"{{name}}을(를) {{targets}}에 설치했습니다.","skills.action.remove":"제거","skills.action.search":"검색","skills.action.search_aria":"skills 검색","skills.target.synced_summary":"{{targets}}에 동기화됨","skills.target.synced_none":"어떤 agent에도 동기화되지 않음","skills.row.open_details":"{{name}} 세부 정보 열기","skills.detail.close":"세부 정보 닫기","skills.detail.sync_section_title":"동기화 대상","skills.detail.remove_button":"모든 agent에서 제거","skills.detail.remove_confirm_hint":"모든 agent에서 이 skill의 동기화를 해제하고 로컬 복사본을 삭제합니다.","skills.filter.agent_label":"Agent","skills.filter.agent_all":"모든 agent","skills.filter.clear":"필터 지우기","skills.filter.result_count":"skill {{filtered}} / {{total}}개","skills.filter.result_count_browse":"결과 {{count}}개","skills.empty.no_match":"현재 필터에 일치하는 skill이 없습니다.","hint.dismiss":"힌트 닫기","hint.dismissible_aria":"닫을 수 있는 힌트","skills.card.installed":"설치됨","skills.card.targets_prefix":"설치 위치:","skills.card.targets_change":"변경","skills.card.installs":"설치 {{count}}회","skills.source.label":"출처","skills.source.all":"모든 저장소","skills.mode.repo":"저장소","skills.mode.skillssh":"skills.sh","skills.browse.placeholder_all":"활성화된 저장소에서 검색…","skills.browse.placeholder_repo":"{{repo}}에서 검색…","skills.browse.placeholder_skillssh":"skills.sh 레지스트리 검색…","skills.browse.empty_sources":"skill을 둘러보려면 아래에서 GitHub 저장소를 추가하세요.","skills.browse.add_repo_hint":"더 많은 skill이 필요하신가요? GitHub 저장소를 추가하세요.","skills.browse.manage_sources":"출처 관리","skills.browse.hint_skillssh":"skills.sh를 검색하려면 2자 이상 입력하세요.","skills.browse.loading_hint":"GitHub에서 skill 메타데이터를 가져오는 중입니다. 첫 로드는 최대 1분이 걸릴 수 있으며, 결과는 캐시됩니다.","skills.error.generic":"Skill 작업에 실패했습니다.","skills.confirm.remove_title":"{{name}}을(를) 제거할까요?","skills.confirm.remove_managed":"이 skill은 연결된 모든 AI 도구에서 제거됩니다. 몇 초 안에 실행을 취소할 수 있습니다.","skills.confirm.remove_local":"연결된 모든 AI 도구에서 디스크의 skill 폴더를 삭제합니다. 이 작업은 취소할 수 없습니다.","skills.toast.removed":"{{name}}을(를) 제거했습니다.","shared.action.undo":"실행 취소","shared.action.cancel":"취소","shared.action.apply":"적용","skills.empty.my":"아직 skill이 없습니다. 둘러보기를 열어 검색하고 설치하세요.","skills.empty.my_cta":"둘러보기","skills.empty.browse":"이 출처에서 skill을 찾을 수 없습니다.","skills.empty.search":"결과가 없습니다. 다른 검색어를 시도해 보세요.","skills.repo.placeholder":"owner/repository","skills.repo.add":"저장소 추가","skills.repo.invalid":"owner/repository 또는 GitHub 저장소 URL을 입력하세요.","skills.repo.remove":"저장소 제거","settings.appearance.language.label":"언어","settings.appearance.language.hint":"시스템을 선택하면 기본적으로 컴퓨터 언어를 따릅니다.","settings.appearance.language.system":"시스템","settings.appearance.language.english":"영어","settings.appearance.language.chinese":"중국어 간체","settings.appearance.language.traditional_chinese":"중국어 번체","settings.appearance.language.japanese":"일본어","settings.appearance.language.korean":"한국어","settings.appearance.currency.label":"통화","settings.appearance.currency.hint":"사용량 비용에 표시할 통화를 선택하세요.","settings.appearance.currency.opt.usd":"미국 달러 ($)","settings.appearance.currency.opt.eur":"유로 (€)","settings.appearance.currency.opt.gbp":"영국 파운드 (£)","settings.appearance.currency.opt.cny":"중국 위안 (¥)","settings.appearance.currency.opt.jpy":"일본 엔 (¥)","settings.appearance.currency.opt.hkd":"홍콩 달러 (HK$)","settings.appearance.currency.rate_source.default":"내장 기본 환율","settings.appearance.currency.rate_source.fetched":"출처: open.er-api.com","settings.appearance.currency.rate_updated":"{{when}} 업데이트됨","settings.appearance.currency.rate_never":"첫 새로고침 대기 중"},wD={"usage.overview.antigravity_notice_title":"추정 토큰","usage.overview.antigravity_notice_body":"Antigravity 기록에는 실제 사용량 수치가 저장되지 않습니다. 여기 표시된 수치는 텍스트 길이(약 4자/토큰)로 추정한 값이며 Gemini의 프롬프트 캐시 할인은 반영되지 않으므로, 청구 금액이 아니라 상한 추정치로 참고하세요.","usage.period.last24h":"24h","stats.period.today":"오늘","stats.period.last24h":"24h","stats.period.week":"이번 주","stats.period.month":"이번 달","stats.period.all":"전체","stats.period.convs":"대화","dashboard.core_index.collapse_label":"▾","dashboard.core_index.expand_label":"▸","dashboard.core_index.collapse_aria":"모델 분석 접기","dashboard.core_index.expand_aria":"모델 분석 펼치기","dashboard.rolling.title":"최근 활동","dashboard.rolling.last_7d":"최근 7일","dashboard.rolling.last_30d":"최근 30일","dashboard.rolling.avg_active_day":"일 평균","dashboard.projects.title":"프로젝트 사용량","dashboard.projects.tokens_label":"토큰","dashboard.projects.stars_label":"STAR","dashboard.projects.limit_label":"표시","dashboard.projects.limit_aria":"저장소 표시 개수 선택","dashboard.projects.limit_top_3":"TOP 3","dashboard.projects.limit_top_6":"TOP 6","dashboard.projects.limit_top_10":"TOP 10","dashboard.projects.empty":"공개 저장소 없음","dashboard.widgets.title":"데스크톱 위젯","dashboard.widgets.hint":'데스크톱 우클릭 → 위젯 편집 → "TokenTracker" 검색',"dashboard.widgets.dismiss_aria":"위젯 소개 닫기","dashboard.cost_breakdown.title":"비용 내역","dashboard.cost_breakdown.total_label":"예상 총비용","dashboard.cost_breakdown.close":"닫기","trend.monitor.label":"사용 추세","trend.zoom.open_aria":"전체 화면으로 확대","trend.zoom.close_aria":"닫기","trend.zoom.badge":"트렌드 인사이트","trend.zoom.desc":"막대에 마우스를 올리면 토큰, 비용, 대화 수를 확인할 수 있습니다. 단위를 전환해 월에서 30분까지 살펴보세요.","trend.zoom.insight_badge":"인사이트","trend.zoom.tooltip.cost":"비용","trend.zoom.tooltip.conversations":"대화","trend.zoom.stats.tokens":"총 토큰","trend.zoom.stats.cost":"총 비용","trend.zoom.stats.conversations":"대화 수","trend.zoom.stats.peak":"최대 구간","trend.zoom.gran.aria":"단위","trend.zoom.gran.30min":"30분","trend.zoom.gran.day":"일","trend.zoom.gran.month":"월","trend.zoom.prev_day":"이전 날","trend.zoom.next_day":"다음 날","trend.zoom.loading":"불러오는 중…","trend.zoom.pick_day":"날짜 선택","trend.zoom.pick_range":"기간 선택","trend.zoom.insight.empty":"조용한 구간. 토큰이 단 하나도 흐르지 않았습니다.","trend.zoom.insight.calm":"가벼운 사용. 모델은 대부분 대기하다 필요할 때만 깨어났습니다.","trend.zoom.insight.steady":"{{active}}개 활성 구간에서 안정적인 리듬, 최대 {{peak}}. 요란하지 않게 일을 끝내는 페이스입니다.","trend.zoom.insight.heavy":"본격 가동: {{active}}개 구간이 뜨겁게 돌아가고 최대 {{peak}}. 흐름을 기다리지 않고 직접 만들어내는 사람의 출력입니다.","trend.zoom.insight.massive":"산업 규모. {{peak}} 피크와 식지 않는 처리량. 이 정도면 모델을 쓰는 게 아니라 공장을 돌리는 셈입니다.","heatmap.title":"활동 히트맵","heatmap.empty":"아직 활동 데이터가 없습니다.","heatmap.legend.less":"적음","heatmap.legend.more":"많음","heatmap.legend.utc":"UTC","heatmap.tooltip":"{{day}} • {{value}} {{unit}} • {{tz}}","heatmap.unit.tokens":"토큰","heatmap.month.jan":"1월","heatmap.month.feb":"2월","heatmap.month.mar":"3월","heatmap.month.apr":"4월","heatmap.month.may":"5월","heatmap.month.jun":"6월","heatmap.month.jul":"7월","heatmap.month.aug":"8월","heatmap.month.sep":"9월","heatmap.month.oct":"10월","heatmap.month.nov":"11월","heatmap.month.dec":"12월","heatmap.day.sun":"일","heatmap.day.mon":"월","heatmap.day.tue":"화","heatmap.day.wed":"수","heatmap.day.thu":"목","heatmap.day.fri":"금","heatmap.day.sat":"토","dashboard.session_expired.copy_label":"npx --yes @ipv9/tokentracker-cli init 실행","dashboard.session_expired.copied":"복사됨","dashboard.install.prompt":"Node.js 18+ 설치 후 실행:","dashboard.install.cmd.init":"npx --yes @ipv9/tokentracker-cli init","dashboard.install.cmd.init_link_code":"npx --yes @ipv9/tokentracker-cli init --link-code {{link_code}}","dashboard.install.copy":"설치 명령 복사","dashboard.install.copy_base":"init 명령 복사","dashboard.install.copied":"클립보드에 복사됨","dashboard.install.link_code.loading":"전용 코드 생성 중...","dashboard.install.link_code.failed":"전용 코드를 사용할 수 없음","dashboard.install.cmd.sync":"npx --yes @ipv9/tokentracker-cli sync","dashboard.daily.title":"일별 내역","dashboard.daily.empty":"아직 데이터가 없습니다. AI CLI를 사용한 다음 {{cmd}}을(를) 실행하세요.","dashboard.identity.title":"내 프로필","dashboard.identity.subtitle":"코딩 여정을 기록하세요","dashboard.identity.fallback":"익명","dashboard.screenshot.title_line1":"코딩 에이전트","dashboard.screenshot.title_line2":"2025 연말 결산","dashboard.screenshot.twitter_button":"X에 공유","dashboard.screenshot.twitter_label":"X에 공유","dashboard.screenshot.twitter_hint":"이미지를 클립보드에 자동 복사합니다","dashboard.screenshot.twitter_text":"기록된 {{total_tokens}} 토큰.\\n{{model_name}}이(가) {{model_percent}}%로 1위.\\n\\n검증되지 않은 나의 AI 사용량 →\\ntokentracker.cc","heatmap.3d.hover_tip":"클릭하여 3D 전체 화면 회전 분석 모드로 진입","heatmap.3d.modal.title":"토큰 3D 투시","heatmap.3d.modal.desc":"마우스 왼쪽 버튼으로 드래그하여 회전하세요. 마우스를 올리면 일별 활동과 다차원 지표를 확인할 수 있습니다.","heatmap.3d.modal.stats.total_tokens":"연간 총 토큰","heatmap.3d.modal.stats.precision_total_tokens":"정확한 연간 소비량","heatmap.3d.modal.stats.estimated_cost":"연간 예상 비용","heatmap.3d.modal.stats.active_rate_days":"활동 비율 / 일수","heatmap.3d.modal.stats.max_streak":"최장 연속 활동","heatmap.3d.modal.stats.days_suffix":"일","heatmap.3d.modal.stats.peak_day":"단일 최고 폭발","heatmap.3d.modal.stats.precision_peak_value":"정확한 일일 최고치","heatmap.3d.modal.stats.no_data":"데이터 없음","heatmap.3d.modal.legend.title":"활동 단계","heatmap.3d.modal.palette.emerald":"에메랄드 시티","heatmap.3d.modal.palette.ocean":"심해의 심연","heatmap.3d.modal.palette.neon":"사이버 네온","heatmap.3d.modal.palette.amber":"타오르는 호박빛","heatmap.3d.modal.control.play":"느린 자동 회전 시작","heatmap.3d.modal.control.pause":"자동 회전 일시정지","heatmap.3d.modal.control.reset":"3D 시점 초기화","heatmap.3d.modal.footer.tip":"핀치 확대 / 스크롤 확대 / 드래그로 3D 차트 회전","heatmap.3d.modal.ai.title.default":"꾸준한 창작자","heatmap.3d.modal.ai.eval.default":"기술의 강물 속에서 꾸준히 나아가세요. 매일의 코딩이 늘 웅장하지는 않더라도, 작은 활동 하나하나가 당신의 사고와 탐구를 기록합니다. 불꽃이 모여 결국 당신만의 디지털 바다로 수렴합니다.","heatmap.3d.modal.ai.title.peak":"최고 기여자","heatmap.3d.modal.ai.eval.peak":"올 한 해, 당신의 토큰 산출량은 극도로 높은 엔지니어링 밀도를 보여줍니다. 이 정도 규모의 개발은 중대형 시스템 기반의 리팩터링에 깊이 참여한 것과 맞먹으며, 키 입력 하나하나가 복잡한 로직을 결정론적 코드로 수렴시킵니다. 순수한 엔지니어링 열정의 증거입니다.","heatmap.3d.modal.ai.title.heavy":"고생산 개발자","heatmap.3d.modal.ai.eval.heavy":"탁월한 지속적 산출. 누적된 토큰이 수백만 개에 달하며, 이는 수십 편의 기술 중편 소설 분량에 해당합니다. 고도로 밀도 높은 코딩 리듬은 디지털 자산을 구축하는 당신의 뛰어난 실행력을 보여줍니다.","heatmap.3d.modal.ai.title.core":"핵심 생산성 전문가","heatmap.3d.modal.ai.eval.core":"매우 견고한 장기적 헌신. 지난 한 해 동안 당신은 고강도의 개발 리듬을 꾸준히 유지해 왔습니다. 탄탄한 코드 분량과 토큰 산출로 묵묵히 핵심 아키텍처를 쌓아 올린, 진정한 엔지니어링의 기둥입니다.","heatmap.3d.modal.ai.title.steady":"안정적인 개발자","heatmap.3d.modal.ai.eval.steady":"착실하고 굳건한 기술 축적. 토큰이 늘어나는 한 걸음 한 걸음이 미래의 기반을 다지는 벽돌입니다. 이 느리지만 꾸준한 리듬이야말로 뛰어난 개발자가 엔지니어링의 대가로 나아가는 길입니다.","heatmap.3d.voxel.joke.1":"🔥 완전 미쳤어요! {{value}} tokens 산출! 대형 언어 모델을 훈련하는 건가요, 아니면 직접 컴파일러를 만드는 건가요?","heatmap.3d.voxel.joke.2":"🚀 서사시급 산출! 총 {{value}} tokens. 오늘의 산출량이면 지구를 한 바퀴 돌 수 있어요. AI마저 당신에게 놀랐습니다!","heatmap.3d.voxel.joke.3":"⚡ 폭발의 날! {{value}} tokens. 코드가 샘솟아 키보드에서 연기가 나기 시작합니다!","heatmap.3d.voxel.level3":"⚡ 생산성 대폭발 ({{value}} tokens)! 높은 효율과 집중력, 이 최고의 상태를 계속 유지하세요!","heatmap.3d.voxel.level2":"🌱 점점 무르익는 중 ({{value}} tokens)! 꾸준한 산출, 키 입력 하나하나가 아키텍처에 기여하고 있습니다.","heatmap.3d.voxel.level1":"🍃 티끌 모아 태산 ({{value}} tokens). 작은 커밋도 미래에 대한 투자입니다. 복리의 힘을 받아들이세요!","heatmap.3d.voxel.level0":"💤 재충전 중. 코딩하지 않는 날에도 영감은 조용히 자라납니다.","ipcheck.page.title":"Claude IP 확인","ipcheck.page.subtitle":"Claude에 접속하는 출구 IP와 함께 평판, 지리 정보, 로그인에 영향을 주거나 사용 제한을 유발할 수 있는 위험 신호를 점검하세요.","ipcheck.mask.toggle":"IP 숨기기","ipcheck.ipv6.warn":"IPv6가 감지되었습니다. IPv6로 Claude Code에 접속하는 것은 권장하지 않으며, 일부 검사 결과가 불완전할 수 있습니다.","ipcheck.ip.cn":"중국 출구 IPv4","ipcheck.ip.cloudflare":"Cloudflare 출구","ipcheck.ip.claude":"Claude 출구","ipcheck.ip.failed":"가져올 수 없음","ipcheck.ip.loading":"불러오는 중...","ipcheck.trust.title":"신뢰 점수","ipcheck.trust.subtitle":"Claude 위험 관리 관점에서의 IP 청결도","ipcheck.trust.no_data":"데이터 없음","ipcheck.trust.no_ip":"Claude 출구 IP가 감지되지 않아 점수를 매길 수 없습니다","ipcheck.trust.no_score":"이 IP에 대한 점수 데이터가 없습니다","ipcheck.trust.gauge.low":"0 고위험","ipcheck.trust.gauge.high":"100 신뢰됨","ipcheck.trust.label.pristine":"매우 깨끗함","ipcheck.trust.label.clean":"깨끗함","ipcheck.trust.label.good":"양호","ipcheck.trust.label.neutral":"중립","ipcheck.trust.label.suspicious":"의심스러움","ipcheck.trust.label.unreachable":"접근 불가","ipcheck.trust.text.excellent":"평판이 매우 우수함","ipcheck.trust.text.great":"평판이 우수함","ipcheck.trust.text.minor":"경미한 위험","ipcheck.trust.text.moderate":"보통 수준의 위험","ipcheck.trust.text.severe":"심각한 위험","ipcheck.trust.text.restricted":"제한 지역 — Claude가 엄격한 위험 관리를 적용합니다","ipcheck.trust.region_warn.title":"Claude 출구 IP가 {{region}}에 있습니다","ipcheck.trust.region_warn.body":"로그인을 피하세요. 계정 플래그 처리를 유발할 가능성이 높습니다.","ipcheck.trust.region_support":"Claude 지원 지역","ipcheck.trust.region.accessible":"접근 가능","ipcheck.common.unknown":"알 수 없음","ipcheck.props.title":"IP 속성","ipcheck.props.region":"지역","ipcheck.props.city":"도시","ipcheck.props.type":"유형","ipcheck.props.asn":"ASN","ipcheck.props.org":"ISP","ipcheck.props.residential":"가정용","ipcheck.props.datacenter":"데이터센터","ipcheck.security.title":"보안 검사","ipcheck.security.vpn":"VPN","ipcheck.security.proxy":"프록시","ipcheck.security.tor":"Tor","ipcheck.security.crawler":"크롤러","ipcheck.security.abuser":"악용 이력","ipcheck.security.proxy_flag":"프록시","ipcheck.security.crawler_yes":"예","ipcheck.security.crawler_no":"아니요","ipcheck.security.abuser_yes":"기록 있음","ipcheck.security.abuser_no":"기록 없음","ipcheck.security.clean":"감지되지 않음","ipcheck.avail.title":"Claude 가용성","ipcheck.avail.tooltip":"Claude 서버는 미국에 있으므로 아시아에서 100ms를 초과하는 지연은 정상입니다.","ipcheck.avail.refresh":"새로고침","ipcheck.avail.svc_row":"서비스 상태","ipcheck.avail.latency.normal":"정상","ipcheck.avail.latency.good":"양호","ipcheck.avail.latency.slow":"느림","ipcheck.avail.latency.unreachable":"접근 불가","ipcheck.avail.svc.none":"모든 시스템 정상","ipcheck.avail.svc.minor":"경미한 장애","ipcheck.avail.svc.major":"주요 장애","ipcheck.avail.svc.critical":"심각한 장애","ipcheck.avail.svc.maintenance":"점검 중","ipcheck.avail.svc.other":"서비스 이상","ipcheck.dns.title":"DNS 누출","ipcheck.dns.status":"상태","ipcheck.dns.outlet":"DNS 출구","ipcheck.dns.outlet_ip":"DNS 출구 IP","ipcheck.dns.isp":"제공업체","ipcheck.dns.leaked":"누출 가능성 있음","ipcheck.dns.no_leak":"누출이 감지되지 않음","ipcheck.dns.encrypted":"DNS 암호화 또는 비노출","ipcheck.dns.cn_tag":"중국 DNS","ipcheck.udp.title":"WebRTC UDP 누출","ipcheck.udp.status":"상태","ipcheck.udp.outlet":"UDP 출구","ipcheck.udp.outlet_ip":"UDP 출구 IP","ipcheck.udp.origin":"출처","ipcheck.udp.disabled":"WebRTC 비활성화됨","ipcheck.udp.no_leak":"누출이 감지되지 않음","ipcheck.udp.leaked":"누출 가능성 있음","ipcheck.udp.anomaly":"이상","ipcheck.device.title":"기기 정보","ipcheck.device.tz":"시간대","ipcheck.device.lang":"언어","ipcheck.device.os":"OS / 브라우저","ipcheck.device.touch":"터치","ipcheck.device.net":"네트워크 유형","ipcheck.device.dnt":"Do Not Track","ipcheck.device.webgl_render":"WebGL 렌더러","ipcheck.device.canvas_fp":"Canvas 지문","ipcheck.device.webgl_fp":"WebGL 지문","ipcheck.device.match":"일치","ipcheck.device.mismatch":"불일치","ipcheck.device.local":"로컬","ipcheck.device.estimate_suffix":"(추정)","ipcheck.device.diff_equal":"약간의 오차","ipcheck.device.diff_ahead":"Claude가 {{h}}시간 빠름","ipcheck.device.diff_behind":"Claude가 {{h}}시간 느림","ipcheck.device.lang_expected":"Claude 지역 일반적","ipcheck.device.touch_yes":"예","ipcheck.device.touch_no":"아니요","ipcheck.device.dnt_on":"켜짐","ipcheck.device.dnt_off":"꺼짐","ipcheck.device.dnt_unset":"설정 안 됨","ipcheck.device.net_unsupported":"감지되지 않음","ipcheck.device.unsupported":"지원되지 않음","ipcheck.history.title":"Claude 출구 IP 기록","ipcheck.history.subtitle":"이 브라우저에만 저장되며 최대 6개까지 보관됩니다","ipcheck.history.clear":"지우기","ipcheck.history.empty":"아직 기록이 없습니다","ipcheck.history.current":"현재","ipcheck.region.CN":"중국 본토","ipcheck.region.HK":"홍콩","ipcheck.region.MO":"마카오","ipcheck.region.RU":"러시아","ipcheck.region.KP":"북한","ipcheck.region.IR":"이란","ipcheck.region.SY":"시리아","ipcheck.region.CU":"쿠바","ipcheck.region.BY":"벨라루스","ipcheck.region.VE":"베네수엘라","leaderboard.profile_modal.close":"닫기","leaderboard.profile_modal.loading":"프로필 불러오는 중…","leaderboard.profile_modal.error":"프로필을 불러오지 못했습니다.","leaderboard.profile_modal.empty":"이 프로필은 공개되지 않았습니다.","leaderboard.profile_modal.row_aria":"{{name}}의 프로필 열기","leaderboard.profile_modal.rank":"#{{rank}}","leaderboard.profile.hero.rank_label":"순위","leaderboard.profile_modal.hero.total_tokens":"총 토큰","leaderboard.profile_modal.hero.total_cost":"총비용","leaderboard.profile_modal.hero.github":"GitHub 프로필","leaderboard.profile_modal.stat.total_cost":"총비용","leaderboard.profile_modal.stat.total_tokens":"총 토큰","leaderboard.profile_modal.stat.active_days":"활동 일수","leaderboard.profile_modal.stat.avg_per_day":"일 평균","leaderboard.profile_modal.streak.current":"현재 연속","leaderboard.profile_modal.streak.longest":"최장 연속","leaderboard.profile_modal.streak.days":"{{count}}일","leaderboard.profile_modal.best_day.title":"최고의 날","leaderboard.profile_modal.best_day.none":"—","leaderboard.profile_modal.models.count":"{{count}}개 모델 사용","leaderboard.profile_modal.models.favorite":"최애 모델","leaderboard.profile_modal.models.none":"추적된 모델 없음","leaderboard.profile_modal.heatmap.title":"활동 (최근 365일)","leaderboard.profile_modal.providers.title":"제공자별","leaderboard.profile_modal.providers.none":"이 기간에는 사용 데이터가 없습니다.","leaderboard.profile_modal.view_full":"전체 프로필 보기","local_only.title":"앱에서 사용 가능","local_only.body":"이 페이지는 사용자의 컴퓨터에 있는 데이터를 읽으므로 Mac 앱 또는 CLI 대시보드에서만 작동합니다.","local_only.open_app":"Mac 앱에서 열기","local_only.download":"Mac 앱 받기","dashboard.auth_gate.title":"Token Tracker 로그인","dashboard.auth_gate.subtitle":"로그인하여 클라우드에서 API 사용량, 비용 및 토큰 소비 트렌드를 동기화하고 확인하세요.","dashboard.auth_gate.button":"로그인","dashboard.expired_gate.title":"세션 만료됨","dashboard.expired_gate.subtitle":"세션이 만료되었습니다. 클라우드 대시보드를 계속 보려면 다시 로그인하세요.","dashboard.expired_gate.button":"다시 로그인","shared.app_name":"Token Tracker","dashboard.auth_gate.hero_title":"AI 에이전트의 모든 토큰 소비","dashboard.auth_gate.hero_subtitle":"명확하고 투명한 멀티 엔드포인트 제어","dashboard.auth_gate.desc":"Claude Code, Cursor, Gemini CLI 등 모든 주류 에이전트의 토큰 쿼터, 동시 실행 비용 및 대기 시간 통계를 퍼블릭 클라우드에서 안전하게 동기화하여 전례 없는 종합 시각화 분석을 제공합니다.","dashboard.auth_gate.feature.sync.title":"실시간 클라우드 동기화","dashboard.auth_gate.feature.sync.desc":"각 엔드포인트의 실행 비용을 자동으로 수집하고 프라이빗 클라우드에 단 몇 초 만에 안전하게 아카이브합니다.","dashboard.auth_gate.feature.anal.title":"다차원 대시보드 분석","dashboard.auth_gate.feature.anal.desc":"모델 분류, 시간 프레임별로 토큰 분포를 통계하여 비용 급증 및 소비 구성을 언제든지 추적할 수 있습니다.","dashboard.auth_gate.feature.guard.title":"로컬 우선의 자율성","dashboard.auth_gate.feature.guard.desc":"Localhost 모드에서는 모든 로그인 인증을 자동으로 건너뛰어 로컬 오프라인 디버깅 경험을 완벽하게 보호합니다.","dashboard.expired_gate.hero_title":"클라우드 세션 만료됨","dashboard.expired_gate.desc":"개인 정보 및 클라우드 드라이브 보안을 위해 활성 세션은 일정 기간 후 자동으로 종료됩니다. 대시보드를 즉시 복원하려면 다시 인증해 주세요.","dashboard.expired_gate.feature.sec.title":"안전한 보호","dashboard.expired_gate.feature.sec.desc":"암호화된 자격 증명은 만료 시 자동으로 파기되어 토큰 자산의 개인 정보를 철저히 보호합니다.","dashboard.expired_gate.feature.restore.title":"원활한 데이터 복원","dashboard.expired_gate.feature.restore.desc":"다시 로그인하면 터미널 훅을 재구성할 필요 없이 멀티 디바이스 실시간 대시보드가 자동으로 복원됩니다.","dashboard.expired_gate.feature.cloud.title":"교차 장치 동기화","dashboard.expired_gate.feature.cloud.desc":"동기화된 대시보드를 통해 어디서나 토큰 로그를 간편하게 확인하고 지출을 관리할 수 있습니다."},xD={"landing.handle.default":"VIBE_USER","landing.handle.special":"VOLT","landing.screenshot.alt":"TokenTracker 대시보드 스크린샷","landing.nav.login":"로그인","landing.nav.signup":"회원가입","landing.install.command":"npx --yes @ipv9/tokentracker-cli","landing.install.action.copy":"명령 복사","landing.install.action.copied":"복사됨","landing.meta.title":"Token Tracker — AI Agent CLI를 위한 토큰 사용량 추적기","landing.meta.description":"Claude Code, Cursor, Codex 등의 토큰 사용량을 자동으로 모니터링하세요. 로컬 우선, 개인정보 보호 중심, 수동 설정 불필요.","landing.meta.og_site_name":"Token Tracker","landing.meta.og_type":"website","landing.meta.og_image":"https://www.tokentracker.cc/dashboard-dark.png","landing.meta.og_url":"https://www.tokentracker.cc/","landing.meta.twitter_card":"summary_large_image","share.meta.title":"Token Tracker 공유","share.meta.description":"모델, 프로젝트, 기간별 토큰 사용량 인사이트가 담긴 Token Tracker 대시보드 스냅샷을 공유하세요.","share.meta.og_site_name":"Token Tracker","share.meta.og_type":"website","share.meta.og_image":"https://www.tokentracker.cc/dashboard-dark.png","share.meta.og_url":"https://www.tokentracker.cc/share","share.meta.twitter_card":"summary_large_image","landing.handle.placeholder":"'{{handle}}' 입력해 보기","landing.rank.expectation":"예상 순위: {{rank}}","landing.rank.singularity":"정점","landing.rank.unranked":"순위 없음","landing.cta.primary":"대시보드 보기","landing.cta.secondary":"GitHub","landing.v2.hero.title_line1":"당신의 모든","landing.v2.hero.title_line2":"AI 토큰 추적","landing.v2.install.mac_cta":"macOS용 다운로드","landing.v2.install.win_cta":"Windows용 다운로드","landing.v2.install.desktop_cta":"데스크톱 앱 다운로드","landing.v2.install.os_macos":"macOS","landing.v2.install.os_windows":"Windows","landing.v2.install.availability":"macOS 및 Windows 지원","landing.v2.models.title":"지원하는 AI CLI 도구","landing.v2.compare.kicker":"매끄러운 추적","landing.v2.compare.title":"AI 사용량을 더 이상 추측하지 마세요.","landing.v2.compare.subtitle":"AI CLI 도구는 원본 사용량 데이터를 흩어진 로컬 파일에 숨겨둡니다. TokenTracker는 이를 로컬 퍼스트 대시보드로 실시간 정리합니다.","landing.v2.distill.body":"100% 로컬 처리. 프롬프트나 코드는 절대 수집하지 않습니다.","landing.v2.compare.with.title":"TOKEN TRACKER 사용 시","landing.v2.compare.with.p1":"통합된 사용량 대시보드","landing.v2.compare.with.p2":"실시간 토큰 지표","landing.v2.compare.with.p3":"100% 로컬, 개인정보 보장","landing.v2.compare.with.p4":"멀티 클라이언트 터미널 감사 추적","landing.v2.compare.without.title":"사용하지 않을 때","landing.v2.compare.without.p1":"흩어진 JSON 로그 파일","landing.v2.compare.without.p2":"토큰 소비량에 대한 깜깜이","landing.v2.compare.without.p3":"예상치 못한 API 청구서","landing.v2.compare.without.p4":"과거 감사 로그 부재","landing.v2.leaderboard.kicker":"글로벌 TOKEN 리더보드","landing.v2.leaderboard.title":"AI Token 효율성","landing.v2.leaderboard.subtitle":"로컬 AI Token 사용량을 익명으로 동기화하여 글로벌 효율성 리더보드에 참여할 수 있습니다. 전 세계 개발자들과 함께 모델 비용 효율성 및 호출 빈도를 벤치마킹하세요.","landing.v2.leaderboard.view_more":"전체 리더보드 보기","landing.v2.footer.line":"Token Tracker — 개발자가 만든, 개발자를 위한.","landing.v2.nav.status":"상태","landing.v2.nav.github":"GitHub","landing.v2.models.agent.codex":"CODEX","landing.v2.models.agent.claude_code":"CLAUDE CODE","landing.v2.models.agent.cursor":"CURSOR","landing.v2.models.agent.gemini":"GEMINI","landing.v2.models.agent.opencode":"OPENCODE","landing.v2.models.agent.openclaw":"OPENCLAW","landing.v2.cta.primary":"Dashboard","landing.v2.hero.subtagline":"Claude Code, Cursor, Codex 등의 토큰 사용량을 자동으로 모니터링하세요. 로컬 우선, 개인정보 보호 중심, 수동 설정 불필요.","leaderboard.profile.nav.back":"리더보드","leaderboard.title":"리더보드","leaderboard.range":"UTC {{period}} · {{from}} – {{to}}","leaderboard.range_loading":"UTC {{period}} · …","leaderboard.range.total":"전체 기간","leaderboard.generated_at":"{{ts}} 업데이트됨","leaderboard.period.week":"주","leaderboard.period.month":"월","leaderboard.period.total":"전체","leaderboard.me_label":"나","leaderboard.anon_label":"익명","leaderboard.error.unknown":"알 수 없는 오류","leaderboard.loading":"불러오는 중…","leaderboard.empty":"데이터 없음","leaderboard.column.rank":"순위","leaderboard.column.user":"사용자","leaderboard.column.total":"전체","leaderboard.column.codex":"Codex","leaderboard.column.claude":"Claude","leaderboard.column.gemini":"Gemini","leaderboard.column.cursor":"Cursor","leaderboard.column.opencode":"OpenCode","leaderboard.column.openclaw":"OpenClaw","leaderboard.column.hermes":"Hermes","leaderboard.column.kiro":"Kiro","leaderboard.column.copilot":"GitHub Copilot","leaderboard.column.kimi":"Kimi Code","leaderboard.column.supplemental":"기타","leaderboard.column.est_cost":"예상 비용","leaderboard.signin_prompt":"로그인하여 리더보드에 참여하세요","leaderboard.signin_button":"로그인","leaderboard.sync_prompt":"클라우드 동기화를 켜면 순위에 표시됩니다","leaderboard.sync_button.idle":"켜고 동기화","leaderboard.sync_button.busy":"동기화 중...","leaderboard.pagination.page_size_label":"페이지당 행 수","leaderboard.pagination.prev":"이전","leaderboard.pagination.next":"다음","leaderboard.pagination.ellipsis":"…","leaderboard.pagination.page_unknown":"{{page}} 페이지","share.modal.title":"내 통계 공유","share.modal.subtitle":"포스터 스타일 카드를 생성해 어디든 공유하세요.","share.modal.close":"닫기","share.modal.action.x":"X에 공유","share.modal.action.download":"다운로드","share.modal.action.copy":"이미지 복사","share.modal.hint.x":"트윗에 이미지 붙여넣기","share.modal.hint.copy":"클립보드로","share.modal.name_label":"표시 이름","share.modal.name_placeholder":"이름을 입력하세요","share.modal.style_label":"스타일","share.modal.footer":"데이터는 항상 로컬에 보관됩니다 — 이미지는 브라우저에서 생성되며 절대 업로드되지 않습니다.","share.button.label":"공유","share.button.aria":"공유 카드 열기","share.toast.copied":"이미지가 클립보드에 복사되었습니다","share.toast.downloaded":"이미지가 저장되었습니다","share.toast.failed":"이미지를 생성하지 못했습니다","share.toast.working":"생성 중…","share.variant.neon":"네온","share.variant.broadsheet":"특집","share.date.month_year":"{{year}}년 {{month}}","share.issue.all_time":"전체 기간","share.month_short.jan":"1월","share.month_short.feb":"2월","share.month_short.mar":"3월","share.month_short.apr":"4월","share.month_short.may":"5월","share.month_short.jun":"6월","share.month_short.jul":"7월","share.month_short.aug":"8월","share.month_short.sep":"9월","share.month_short.oct":"10월","share.month_short.nov":"11월","share.month_short.dec":"12월","share.hook.top_loyal":"{{percent}}%를 {{name}}에 집중.","share.hook.days_record":"{{days}}일 기록.","share.hook.top_led":"{{name}} 선두 ({{percent}}%).","share.hook.multi_models":"{{count}}개 모델, {{days}}일에 걸쳐.","share.hook.days_with_model":"{{name}}와(과) 함께한 {{days}}일.","share.hook.new_chapter":"새로운 장의 시작.","share.card.broadsheet.issue":"호","share.card.broadsheet.by":"작성자","share.card.broadsheet.tracked_since":"추적 시작","share.card.broadsheet.total_tokens":"총 토큰","share.card.broadsheet.estimated_spend":"예상 지출","share.card.broadsheet.billable_days":"활동 {{days}}일","share.card.broadsheet.heatmap_title":"올해의 인쇄본","share.card.broadsheet.heatmap_days_on_record":"{{active}} / {{total}}일 기록","share.card.broadsheet.roster_title":"모델 명단","share.card.broadsheet.roster_subtitle":"정기적으로 사용하는 모델","share.card.broadsheet.empty":"한산한 한 주 — 윤전기가 조용했습니다.","share.card.broadsheet.global_rank":"전체 순위","share.card.broadsheet.active_days":"활동","share.card.broadsheet.days_count":"{{days}}일","share.card.broadsheet.track_yours":"내 것도 추적하기","share.card.annual.report_title":"토큰 리포트","share.card.annual.less":"적음","share.card.annual.more":"많음","share.card.annual.heatmap_title":"토큰 사용량 히트맵","share.card.annual.total_tokens":"총 토큰","share.card.annual.estimated_cost":"예상 비용","share.card.annual.longest_streak":"최장 연속","share.card.annual.days_count":"{{days}}일","share.card.annual.top_model":"인기 모델"},gx="tokentracker-locale",Go="system",Ku="en",yx="zh-CN",vx="zh-TW",bx="ja",kx="ko",PD=/^zh[-_](hant|tw|hk|mo)\b/i;function _x(e){return/^zh(?:[-_]|$)/i.test(e)?PD.test(e)?vx:yx:/^ja(?:[-_]|$)/i.test(e)?bx:/^ko(?:[-_]|$)/i.test(e)?kx:null}function wx(e){return typeof e!="string"?Ku:_x(e.trim())||Ku}function xd(e){return e===Go?Go:wx(e)}function SD(){return typeof navigator>"u"?[]:Array.isArray(navigator.languages)&&navigator.languages.length?navigator.languages.filter(e=>typeof e=="string"):typeof navigator.language=="string"?[navigator.language]:[]}function Gu(e,t=SD()){const n=xd(e);if(n!==Go)return n;const a=t.map(o=>typeof o=="string"?o.trim():"").find(o=>o.length>0);return a&&_x(a)||Ku}function Gm(){return xd(nl(gx)||Go)}function CD(e){return al(gx,xd(e))}const TD=["key","module","page","component","slot","text"],ED={[yx]:{...hD,...fD,...pD},[vx]:{...mD,...gD,...yD},[bx]:{...vD,...bD,...kD},[kx]:{..._D,...wD,...xD}};let Lf=null,qm=Gu(Gm());function AD(e){const t=[];let n=[],a="",o=!1;for(let s=0;s<e.length;s+=1){const l=e[s];if(o){l==='"'?e[s+1]==='"'?(a+='"',s+=1):o=!1:a+=l;continue}if(l==='"'){o=!0;continue}if(l===","){n.push(a),a="";continue}if(l===`
969
+ `){n.push(a),a="",n.every(u=>u.trim()==="")||t.push(n),n=[];continue}l!=="\r"&&(a+=l)}return n.push(a),n.every(s=>s.trim()==="")||t.push(n),t}function RD(e){const t=AD(e);if(!t.length)return{map:new Map,rows:[]};const n=t[0].map(u=>String(u).trim());if(TD.filter(u=>!n.includes(u)).length)return{map:new Map,rows:[]};const o=Object.fromEntries(n.map((u,h)=>[u,h])),s=[],l=new Map;return t.slice(1).forEach((u,h)=>{const f={key:String(u[o.key]||"").trim(),module:String(u[o.module]||"").trim(),page:String(u[o.page]||"").trim(),component:String(u[o.component]||"").trim(),slot:String(u[o.slot]||"").trim(),text:String(u[o.text]??"").trim()};f.key&&(l.has(f.key),l.set(f.key,f),s.push(f))}),{map:l,rows:s}}function LD(){return Lf||(Lf=RD(dD)),Lf}function DD(){return ED[qm]||{}}function ID(e){const t=DD()[String(e)];return typeof t=="string"&&t.trim()?t:null}function MD(e,t){return t?e.replace(/\{\{(\w+)\}\}/g,(n,a)=>t[a]==null?n:String(t[a])):e}function ND(e){return String(e).replace(/\\n/g,`
970
+ `)}function OD(e,t){return ID(t)||e?.text||t}function jD(e){qm=wx(e)}function c7(){return qm}function Ie(e,t){const a=LD().map.get(e);return MD(ND(OD(a,e)),t)}const xx=k.createContext(null);function UD(){return Gu(Gm())}function BD(e){typeof document>"u"||(document.documentElement.lang=e)}function Ek(e,t){jD(e),t(n=>n===e?n:e)}function zD({children:e}){const[t,n]=k.useState(Gm),[a,o]=k.useState(UD);k.useLayoutEffect(()=>{BD(a)},[a]),k.useLayoutEffect(()=>{wa()&&rl("locale",t)},[t]),k.useLayoutEffect(()=>{if(t!==Go||typeof window>"u")return;const u=()=>Ek(Gu(Go),o);return window.addEventListener("languagechange",u),()=>window.removeEventListener("languagechange",u)},[t]);const s=k.useCallback(u=>{const h=xd(u);Ek(Gu(h),o),n(h),CD(h),wa()&&rl("locale",h)},[]),l=k.useMemo(()=>({locale:t,setLocale:s,resolvedLocale:a}),[t,a,s]);return T.jsx(xx.Provider,{value:l,children:e})}const FD="https://open.er-api.com/v6/latest/USD",VD=1440*60*1e3,$D=5e3;function HD(e,t=VD,n=Date.now()){return!e||!Number.isFinite(e)?!0:n-e>t}async function WD(e={}){const{timeoutMs:t=$D,fetchImpl:n,url:a=FD,codes:o=Fm}=e,s=n??(typeof fetch<"u"?fetch:null);if(!s)throw new Error("fetch is not available");const l=typeof AbortController<"u"?new AbortController:null,u=l?setTimeout(()=>l.abort(),t):null;try{const h=await s(a,l?{signal:l.signal}:void 0);if(!h||!h.ok)throw new Error(`exchange rate fetch failed: ${h?.status??"no-response"}`);const m=(await h.json())?.rates;if(!m||typeof m!="object")throw new Error("exchange rate response missing rates");const y={USD:1};for(const v of o){if(v==="USD")continue;const _=m[v];Hu(_)&&(y[v]=_)}if(Object.keys(y).length<=1)throw new Error("no supported currency rates in response");return{rates:y,fetchedAt:Date.now()}}finally{u&&clearTimeout(u)}}const KD=k.createContext(null);function Ak(e,t,n){wa()&&(rl("currency",e),rl("currencySymbol",n),Hu(t)&&rl("exchangeRate",t))}function GD({children:e}){const[t,n]=k.useState(TL),a=k.useMemo(()=>RL(),[]),[o,s]=k.useState(a.rates),[l,u]=k.useState(a.source),[h,f]=k.useState(a.fetchedAt),m=k.useRef(!1),y=k.useRef(!1),v=k.useCallback((R,A,E)=>{s(R),u(A),f(E),LL({rates:R,source:A,fetchedAt:E})},[]),_=k.useCallback(async()=>{if(!m.current){m.current=!0;try{const{rates:R,fetchedAt:A}=await WD();v({...Vm,...R},"fetched",A)}catch{}finally{m.current=!1}}},[v]),x=k.useCallback(R=>{const A=$m(R);n(A),EL(A);const E=Ef(o,A),B=ku(A);Ak(A,E,B)},[o]);k.useEffect(()=>{y.current||t!==gl&&HD(h)&&(y.current=!0,_())},[t,h,_]),k.useEffect(()=>{const R=Ef(o,t),A=ku(t);Ak(t,R,A)},[t,o]);const C=k.useMemo(()=>Ef(o,t),[o,t]),S=k.useMemo(()=>ku(t),[t]),M=k.useMemo(()=>({currency:t,rate:C,symbol:S,rates:o,rateSource:l,rateFetchedAt:h,setCurrency:x}),[t,C,S,o,l,h,x]);return T.jsx(KD.Provider,{value:M,children:e})}const qD="modulepreload",YD=function(e){return"/"+e},Rk={},In=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){let h=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");o=h(n.map(f=>{if(f=YD(f),f in Rk)return;Rk[f]=!0;const m=f.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${y}`))return;const v=document.createElement("link");if(v.rel=m?"stylesheet":qD,m||(v.as="script"),v.crossOrigin="",v.href=f,u&&v.setAttribute("nonce",u),document.head.appendChild(v),m)return new Promise((_,x)=>{v.addEventListener("load",_),v.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return o.then(l=>{for(const u of l||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};var qu={},ZD=()=>{window.va||(window.va=function(...t){window.vaq||(window.vaq=[]),window.vaq.push(t)})},XD="@vercel/analytics",QD="2.0.1";function Px(){return typeof window<"u"}function Sx(){try{const e="production"}catch{}return"production"}function JD(e="auto"){if(e==="auto"){window.vam=Sx();return}window.vam=e}function eI(){return(Px()?window.vam:Sx())||"production"}function Ym(){return eI()==="development"}function tI(e){return e.scriptSrc?No(e.scriptSrc):Ym()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?No(`${e.basePath}/insights/script.js`):"/_vercel/insights/script.js"}function nI(e,t){var n;let a=e;if(t)try{a={...(n=JSON.parse(t))==null?void 0:n.analytics,...e}}catch{}JD(a.mode);const o={sdkn:XD+(a.framework?`/${a.framework}`:""),sdkv:QD};return a.disableAutoTrack&&(o.disableAutoTrack="1"),a.viewEndpoint&&(o.viewEndpoint=No(a.viewEndpoint)),a.eventEndpoint&&(o.eventEndpoint=No(a.eventEndpoint)),a.sessionEndpoint&&(o.sessionEndpoint=No(a.sessionEndpoint)),Ym()&&a.debug===!1&&(o.debug="false"),a.dsn&&(o.dsn=a.dsn),a.endpoint?o.endpoint=a.endpoint:a.basePath&&(o.endpoint=No(`${a.basePath}/insights`)),{beforeSend:a.beforeSend,src:tI(a),dataset:o}}function No(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function aI(e={debug:!0},t){var n;if(!Px())return;const{beforeSend:a,src:o,dataset:s}=nI(e,t);if(ZD(),a&&((n=window.va)==null||n.call(window,"beforeSend",a)),document.head.querySelector(`script[src*="${o}"]`))return;const l=document.createElement("script");l.src=o;for(const[u,h]of Object.entries(s))l.dataset[u]=h;l.defer=!0,l.onerror=()=>{const u=Ym()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${o}. ${u}`)},document.head.appendChild(l)}function rI({route:e,path:t}){var n;(n=window.va)==null||n.call(window,"pageview",{route:e,path:t})}function iI(){if(!(typeof process>"u"||typeof qu>"u"))return qu.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function oI(){if(!(typeof process>"u"||typeof qu>"u"))return qu.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}function sI(e){return k.useEffect(()=>{var t;e.beforeSend&&((t=window.va)==null||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),k.useEffect(()=>{aI({framework:e.framework||"react",basePath:e.basePath??iI(),...e.route!==void 0&&{disableAutoTrack:!0},...e},e.configString??oI())},[]),k.useEffect(()=>{e.route&&e.path&&rI({route:e.route,path:e.path})},[e.route,e.path]),null}var Yu={},lI=()=>{window.si||(window.si=function(...t){window.siq=window.siq||[],window.siq.push(t)})},cI="@vercel/speed-insights",uI="2.0.0";function dI(){return typeof window<"u"}function hI(){try{const e="production"}catch{}return"production"}function Cx(){return hI()==="development"}function fI(e){return e.scriptSrc?Zu(e.scriptSrc):Cx()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?Zu(`${e.basePath}/speed-insights/script.js`):"/_vercel/speed-insights/script.js"}function pI(e,t){var n;let a=e;if(t)try{a={...(n=JSON.parse(t))==null?void 0:n.speedInsights,...e}}catch{}const o={sdkn:cI+(a.framework?`/${a.framework}`:""),sdkv:uI};return a.sampleRate&&(o.sampleRate=a.sampleRate.toString()),a.route&&(o.route=a.route),Cx()&&a.debug===!1&&(o.debug="false"),a.dsn&&(o.dsn=a.dsn),a.endpoint?o.endpoint=Zu(a.endpoint):a.basePath&&(o.endpoint=Zu(`${a.basePath}/speed-insights/vitals`)),{src:fI(a),beforeSend:a.beforeSend,dataset:o}}function Zu(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function mI(e={},t){var n;if(!dI()||e.route===null)return null;lI();const{beforeSend:a,src:o,dataset:s}=pI(e,t);if(document.head.querySelector(`script[src*="${o}"]`))return null;a&&((n=window.si)==null||n.call(window,"beforeSend",a));const l=document.createElement("script");l.src=o,l.defer=!0;for(const[u,h]of Object.entries(s))l.dataset[u]=h;return l.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${o}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(l),{setRoute:u=>{l.dataset.route=u??void 0}}}function gI(){if(!(typeof process>"u"||typeof Yu>"u"))return Yu.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function yI(){if(!(typeof process>"u"||typeof Yu>"u"))return Yu.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}function vI(e){k.useEffect(()=>{var n;e.beforeSend&&((n=window.si)==null||n.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);const t=k.useRef(null);return k.useEffect(()=>{if(!t.current){const n=mI({framework:e.framework??"react",basePath:e.basePath??gI(),...e},e.configString??yI());n&&(t.current=n.setRoute)}},[e]),k.useEffect(()=>{t.current&&e.route&&t.current(e.route)},[e.route]),null}const Tx=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim();const bI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const kI=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase());const Lk=e=>{const t=kI(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Df={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"};const _I=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},wI=k.createContext({}),xI=()=>k.useContext(wI),PI=k.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:a,className:o="",children:s,iconNode:l,...u},h)=>{const{size:f=24,strokeWidth:m=2,absoluteStrokeWidth:y=!1,color:v="currentColor",className:_=""}=xI()??{},x=a??y?Number(n??m)*24/Number(t??f):n??m;return k.createElement("svg",{ref:h,...Df,width:t??f??Df.width,height:t??f??Df.height,stroke:e??v,strokeWidth:x,className:Tx("lucide",_,o),...!s&&!_I(u)&&{"aria-hidden":"true"},...u},[...l.map(([C,S])=>k.createElement(C,S)),...Array.isArray(s)?s:[s]])});const Kt=(e,t)=>{const n=k.forwardRef(({className:a,...o},s)=>k.createElement(PI,{ref:s,iconNode:t,className:Tx(`lucide-${bI(Lk(e))}`,`lucide-${e}`,a),...o}));return n.displayName=Lk(e),n};const SI=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],CI=Kt("chart-column",SI);const TI=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],EI=Kt("chevron-left",TI);const AI=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],RI=Kt("chevron-right",AI);const LI=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],DI=Kt("corner-down-left",LI);const II=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],MI=Kt("gauge",II);const NI=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],OI=Kt("globe",NI);const jI=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],UI=Kt("layout-grid",jI);const BI=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],zI=Kt("mail",BI);const FI=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],VI=Kt("menu",FI);const $I=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],HI=Kt("monitor",$I);const WI=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Ex=Kt("moon",WI);const KI=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],GI=Kt("puzzle",KI);const qI=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],YI=Kt("refresh-cw",qI);const ZI=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],XI=Kt("search",ZI);const QI=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],JI=Kt("settings",QI);const eM=[["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"}]],Ax=Kt("sun",eM);const tM=[["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"}]],nM=Kt("triangle-alert",tM);const aM=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],rM=Kt("trophy",aM);const iM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Zm=Kt("x",iM);function oM({children:e,variant:t="primary",size:n="md",onClick:a,disabled:o=!1,className:s="",as:l="button",...u}){const h="inline-flex items-center justify-center font-medium transition-all duration-200 rounded-md focus:outline-none focus:ring-2 focus:ring-oai-blue/30 active:scale-[0.98] active:duration-100",f={primary:"bg-oai-black dark:bg-oai-white text-white dark:text-oai-black border border-transparent hover:bg-oai-gray-800 dark:hover:bg-oai-gray-200 active:bg-oai-gray-900 dark:active:bg-oai-gray-300 disabled:bg-oai-gray-300 dark:disabled:bg-oai-gray-700 disabled:text-oai-gray-500 dark:disabled:text-oai-gray-400 focus:ring-oai-brand/30 transition-colors duration-200",secondary:"bg-oai-white dark:bg-oai-gray-900 text-oai-black dark:text-oai-white border border-oai-gray-300 dark:border-oai-gray-700 hover:border-oai-brand hover:text-oai-brand active:bg-oai-gray-50 dark:active:bg-oai-gray-800 active:border-oai-brand-dark disabled:text-oai-gray-400 dark:disabled:text-oai-gray-500 disabled:border-oai-gray-200 dark:disabled:border-oai-gray-700 focus:ring-oai-brand/30 transition-colors duration-200",ghost:"bg-transparent text-oai-gray-600 dark:text-oai-gray-300 border border-transparent hover:text-oai-brand hover:bg-oai-brand-50/50 dark:hover:bg-oai-brand-950/30 active:bg-oai-brand-50 dark:active:bg-oai-brand-900/50 disabled:text-oai-gray-400 dark:disabled:text-oai-gray-500 focus:ring-oai-brand/30 transition-colors duration-200"},m={sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-12 px-6 text-base"},y=o?"cursor-not-allowed opacity-60":"cursor-pointer",v=`${h} ${f[t]} ${m[n]} ${y} ${s}`;return T.jsx(l,{className:v,onClick:a,disabled:o,...u,children:e})}class sM extends lm.Component{constructor(t){super(t),this.state={error:null},this.handleReload=this.handleReload.bind(this)}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){console.error("ErrorBoundary caught an error:",t)}handleReload(){typeof window>"u"||window.location.reload()}render(){const{error:t}=this.state;if(!t)return this.props.children;const n=String(t?.message||t||""),a=n?Ie("shared.error.prefix",{error:n}):Ie("error.boundary.no_details");return T.jsx("div",{className:"flex min-h-screen items-center justify-center bg-oai-white p-6 font-oai text-oai-black antialiased dark:bg-oai-gray-950 dark:text-oai-white",children:T.jsxs("div",{className:"w-full max-w-lg rounded-xl border border-oai-gray-200 bg-white p-6 text-center shadow-sm dark:border-oai-gray-800 dark:bg-oai-gray-900",children:[T.jsx("div",{className:"mx-auto flex h-10 w-10 items-center justify-center rounded-full bg-amber-50 text-amber-600 dark:bg-amber-950/30 dark:text-amber-300",children:T.jsx(nM,{className:"h-5 w-5","aria-hidden":!0})}),T.jsx("div",{className:"mt-4 text-xs font-medium uppercase text-oai-gray-500 dark:text-oai-gray-400",children:Ie("error.boundary.title")}),T.jsx("h1",{className:"mt-2 text-xl font-semibold text-oai-black dark:text-white",children:Ie("error.boundary.subtitle")}),T.jsx("p",{className:"mt-2 text-sm text-oai-gray-500 dark:text-oai-gray-400",children:Ie("error.boundary.hint")}),T.jsx("div",{className:"mt-4 max-h-32 overflow-auto rounded-lg border border-oai-gray-200 bg-oai-gray-50 px-3 py-2 text-left text-xs leading-5 text-oai-gray-600 dark:border-oai-gray-800 dark:bg-oai-gray-950 dark:text-oai-gray-300",children:a}),T.jsxs(oM,{type:"button",size:"md",onClick:this.handleReload,className:"mt-5",children:[T.jsx(YI,{className:"mr-2 h-4 w-4","aria-hidden":!0}),Ie("error.boundary.action.reload")]})]})})}}function Pd(){const e=k.useContext(xx);if(e===null)throw new Error("useLocale must be used within a LocaleProvider");return e}const Pp="tokentracker-theme",Rx=k.createContext(null);function lM(){if(typeof window>"u")return"system";try{const e=localStorage.getItem(Pp);if(e==="light"||e==="dark"||e==="system")return e}catch{}return"system"}function Jc(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function cM(e){if(typeof document>"u")return;const t=document.documentElement;e==="dark"?t.classList.add("dark"):t.classList.remove("dark")}function uM({children:e}){const[t,n]=k.useState(lM),[a,o]=k.useState(()=>{if(t!=="system")return t;if(wa()){const f=Ck();if(typeof f=="boolean")return f?"dark":"light"}return Jc()}),s=k.useRef(t);k.useEffect(()=>{s.current=t},[t]),k.useEffect(()=>{cM(a)},[a]),k.useLayoutEffect(()=>{if(t==="system"){if(wa()){const f=Ck();o(typeof f=="boolean"?f?"dark":"light":Jc()),sD();return}o(Jc())}else o(t)},[t]),k.useEffect(()=>wa()?oD(m=>{s.current==="system"&&o(m?"dark":"light")}):void 0,[]),k.useEffect(()=>{if(typeof window>"u"||t!=="system"||wa())return;const f=window.matchMedia("(prefers-color-scheme: dark)"),m=y=>{const v=y.matches?"dark":"light";o(v)};return f.addEventListener?(f.addEventListener("change",m),()=>f.removeEventListener("change",m)):(f.addListener(m),()=>f.removeListener(m))},[t]),k.useEffect(()=>{const f=t==="system"&&!wa()?Jc():a;lD(f,t)},[a,t]);const l=k.useCallback(f=>{if(n(f),typeof window<"u")try{localStorage.setItem(Pp,f)}catch{}},[]),u=k.useCallback(()=>{l(f=>{const m=f==="dark"?"light":"dark";if(typeof window<"u")try{localStorage.setItem(Pp,m)}catch{}return m})},[]),h=k.useMemo(()=>({theme:t,setTheme:l,toggleTheme:u,resolvedTheme:a}),[t,l,u,a]);return T.jsx(Rx.Provider,{value:h,children:e})}const Lx=k.createContext({isOpen:!1,openLoginModal:()=>{},closeLoginModal:()=>{}});function dM({children:e}){const[t,n]=k.useState(!1),a=k.useCallback(()=>n(!0),[]),o=k.useCallback(()=>n(!1),[]);return T.jsx(Lx.Provider,{value:{isOpen:t,openLoginModal:a,closeLoginModal:o},children:e})}function hM(){return k.useContext(Lx)}const Xm=k.createContext({});function Qm(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const fM=typeof window<"u",Dx=fM?k.useLayoutEffect:k.useEffect,Sd=k.createContext(null);function Jm(e,t){e.indexOf(t)===-1&&e.push(t)}function Xu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Wa=(e,t,n)=>n>t?t:n<e?e:n;let eg=()=>{};const Jr={},Ix=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Mx(e){return typeof e=="object"&&e!==null}const Nx=e=>/^0[^.\s]+$/u.test(e);function Ox(e){let t;return()=>(t===void 0&&(t=e()),t)}const aa=e=>e,pM=(e,t)=>n=>t(e(n)),Ml=(...e)=>e.reduce(pM),vl=(e,t,n)=>{const a=t-e;return a===0?1:(n-e)/a};class tg{constructor(){this.subscriptions=[]}add(t){return Jm(this.subscriptions,t),()=>Xu(this.subscriptions,t)}notify(t,n,a){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,a);else for(let s=0;s<o;s++){const l=this.subscriptions[s];l&&l(t,n,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Hn=e=>e*1e3,ta=e=>e/1e3;function jx(e,t){return t?e*(1e3/t):0}const Ux=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mM=1e-7,gM=12;function yM(e,t,n,a,o){let s,l,u=0;do l=t+(n-t)/2,s=Ux(l,a,o)-e,s>0?n=l:t=l;while(Math.abs(s)>mM&&++u<gM);return l}function Nl(e,t,n,a){if(e===t&&n===a)return aa;const o=s=>yM(s,0,1,e,n);return s=>s===0||s===1?s:Ux(o(s),t,a)}const Bx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zx=e=>t=>1-e(1-t),Fx=Nl(.33,1.53,.69,.99),ng=zx(Fx),Vx=Bx(ng),$x=e=>e>=1?1:(e*=2)<1?.5*ng(e):.5*(2-Math.pow(2,-10*(e-1))),ag=e=>1-Math.sin(Math.acos(e)),Hx=zx(ag),Wx=Bx(ag),vM=Nl(.42,0,1,1),bM=Nl(0,0,.58,1),Kx=Nl(.42,0,.58,1),kM=e=>Array.isArray(e)&&typeof e[0]!="number",Gx=e=>Array.isArray(e)&&typeof e[0]=="number",_M={linear:aa,easeIn:vM,easeInOut:Kx,easeOut:bM,circIn:ag,circInOut:Wx,circOut:Hx,backIn:ng,backInOut:Vx,backOut:Fx,anticipate:$x},wM=e=>typeof e=="string",Dk=e=>{if(Gx(e)){eg(e.length===4);const[t,n,a,o]=e;return Nl(t,n,a,o)}else if(wM(e))return _M[e];return e},eu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function xM(e,t){let n=new Set,a=new Set,o=!1,s=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function h(m){l.has(m)&&(f.schedule(m),e()),m(u)}const f={schedule:(m,y=!1,v=!1)=>{const x=v&&o?n:a;return y&&l.add(m),x.add(m),m},cancel:m=>{a.delete(m),l.delete(m)},process:m=>{if(u=m,o){s=!0;return}o=!0;const y=n;n=a,a=y,n.forEach(h),n.clear(),o=!1,s&&(s=!1,f.process(m))}};return f}const PM=40;function qx(e,t){let n=!1,a=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=eu.reduce((A,E)=>(A[E]=xM(s),A),{}),{setup:u,read:h,resolveKeyframes:f,preUpdate:m,update:y,preRender:v,render:_,postRender:x}=l,C=()=>{const A=Jr.useManualTiming,E=A?o.timestamp:performance.now();n=!1,A||(o.delta=a?1e3/60:Math.max(Math.min(E-o.timestamp,PM),1)),o.timestamp=E,o.isProcessing=!0,u.process(o),h.process(o),f.process(o),m.process(o),y.process(o),v.process(o),_.process(o),x.process(o),o.isProcessing=!1,n&&t&&(a=!1,e(C))},S=()=>{n=!0,a=!0,o.isProcessing||e(C)};return{schedule:eu.reduce((A,E)=>{const B=l[E];return A[E]=($,V=!1,P=!1)=>(n||S(),B.schedule($,V,P)),A},{}),cancel:A=>{for(let E=0;E<eu.length;E++)l[eu[E]].cancel(A)},state:o,steps:l}}const{schedule:gt,cancel:ei,state:nn,steps:If}=qx(typeof requestAnimationFrame<"u"?requestAnimationFrame:aa,!0);let wu;function SM(){wu=void 0}const bn={now:()=>(wu===void 0&&bn.set(nn.isProcessing||Jr.useManualTiming?nn.timestamp:performance.now()),wu),set:e=>{wu=e,queueMicrotask(SM)}},Yx=e=>t=>typeof t=="string"&&t.startsWith(e),Zx=Yx("--"),CM=Yx("var(--"),rg=e=>CM(e)?TM.test(e.split("/*")[0].trim()):!1,TM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ik(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Jo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},bl={...Jo,transform:e=>Wa(0,1,e)},tu={...Jo,default:1},il=e=>Math.round(e*1e5)/1e5,ig=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function EM(e){return e==null}const AM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,og=(e,t)=>n=>!!(typeof n=="string"&&AM.test(n)&&n.startsWith(e)||t&&!EM(n)&&Object.prototype.hasOwnProperty.call(n,t)),Xx=(e,t,n)=>a=>{if(typeof a!="string")return a;const[o,s,l,u]=a.match(ig);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},RM=e=>Wa(0,255,e),Mf={...Jo,transform:e=>Math.round(RM(e))},Li={test:og("rgb","red"),parse:Xx("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:a=1})=>"rgba("+Mf.transform(e)+", "+Mf.transform(t)+", "+Mf.transform(n)+", "+il(bl.transform(a))+")"};function LM(e){let t="",n="",a="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),a=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),a=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,a+=a,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(a,16),alpha:o?parseInt(o,16)/255:1}}const Sp={test:og("#"),parse:LM,transform:Li.transform},Ol=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hr=Ol("deg"),za=Ol("%"),Se=Ol("px"),DM=Ol("vh"),IM=Ol("vw"),Mk={...za,parse:e=>za.parse(e)/100,transform:e=>za.transform(e*100)},Oo={test:og("hsl","hue"),parse:Xx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+za.transform(il(t))+", "+za.transform(il(n))+", "+il(bl.transform(a))+")"},Bt={test:e=>Li.test(e)||Sp.test(e)||Oo.test(e),parse:e=>Li.test(e)?Li.parse(e):Oo.test(e)?Oo.parse(e):Sp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Li.transform(e):Oo.transform(e),getAnimatableNone:e=>{const t=Bt.parse(e);return t.alpha=0,Bt.transform(t)}},MM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function NM(e){return isNaN(e)&&typeof e=="string"&&(e.match(ig)?.length||0)+(e.match(MM)?.length||0)>0}const Qx="number",Jx="color",OM="var",jM="var(",Nk="${}",UM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function qo(e){const t=e.toString(),n=[],a={color:[],number:[],var:[]},o=[];let s=0;const u=t.replace(UM,h=>(Bt.test(h)?(a.color.push(s),o.push(Jx),n.push(Bt.parse(h))):h.startsWith(jM)?(a.var.push(s),o.push(OM),n.push(h)):(a.number.push(s),o.push(Qx),n.push(parseFloat(h))),++s,Nk)).split(Nk);return{values:n,split:u,indexes:a,types:o}}function BM(e){return qo(e).values}function e1({split:e,types:t}){const n=e.length;return a=>{let o="";for(let s=0;s<n;s++)if(o+=e[s],a[s]!==void 0){const l=t[s];l===Qx?o+=il(a[s]):l===Jx?o+=Bt.transform(a[s]):o+=a[s]}return o}}function zM(e){return e1(qo(e))}const FM=e=>typeof e=="number"?0:Bt.test(e)?Bt.getAnimatableNone(e):e,VM=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:FM(e);function $M(e){const t=qo(e);return e1(t)(t.values.map((a,o)=>VM(a,t.split[o])))}const xa={test:NM,parse:BM,createTransformer:zM,getAnimatableNone:$M};function Nf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function HM({hue:e,saturation:t,lightness:n,alpha:a}){e/=360,t/=100,n/=100;let o=0,s=0,l=0;if(!t)o=s=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,h=2*n-u;o=Nf(h,u,e+1/3),s=Nf(h,u,e),l=Nf(h,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:a}}function Qu(e,t){return n=>n>0?t:e}const xt=(e,t,n)=>e+(t-e)*n,Of=(e,t,n)=>{const a=e*e,o=n*(t*t-a)+a;return o<0?0:Math.sqrt(o)},WM=[Sp,Li,Oo],KM=e=>WM.find(t=>t.test(e));function Ok(e){const t=KM(e);if(!t)return!1;let n=t.parse(e);return t===Oo&&(n=HM(n)),n}const jk=(e,t)=>{const n=Ok(e),a=Ok(t);if(!n||!a)return Qu(e,t);const o={...n};return s=>(o.red=Of(n.red,a.red,s),o.green=Of(n.green,a.green,s),o.blue=Of(n.blue,a.blue,s),o.alpha=xt(n.alpha,a.alpha,s),Li.transform(o))},Cp=new Set(["none","hidden"]);function GM(e,t){return Cp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function qM(e,t){return n=>xt(e,t,n)}function sg(e){return typeof e=="number"?qM:typeof e=="string"?rg(e)?Qu:Bt.test(e)?jk:XM:Array.isArray(e)?t1:typeof e=="object"?Bt.test(e)?jk:YM:Qu}function t1(e,t){const n=[...e],a=n.length,o=e.map((s,l)=>sg(s)(s,t[l]));return s=>{for(let l=0;l<a;l++)n[l]=o[l](s);return n}}function YM(e,t){const n={...e,...t},a={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(a[o]=sg(e[o])(e[o],t[o]));return o=>{for(const s in a)n[s]=a[s](o);return n}}function ZM(e,t){const n=[],a={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],l=e.indexes[s][a[s]],u=e.values[l]??0;n[o]=u,a[s]++}return n}const XM=(e,t)=>{const n=xa.createTransformer(t),a=qo(e),o=qo(t);return a.indexes.var.length===o.indexes.var.length&&a.indexes.color.length===o.indexes.color.length&&a.indexes.number.length>=o.indexes.number.length?Cp.has(e)&&!o.values.length||Cp.has(t)&&!a.values.length?GM(e,t):Ml(t1(ZM(a,o),o.values),n):Qu(e,t)};function n1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xt(e,t,n):sg(e)(e,t)}const QM=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>gt.update(t,n),stop:()=>ei(t),now:()=>nn.isProcessing?nn.timestamp:bn.now()}},a1=(e,t,n=10)=>{let a="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)a+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},Ju=2e4;function lg(e){let t=0;const n=50;let a=e.next(t);for(;!a.done&&t<Ju;)t+=n,a=e.next(t);return t>=Ju?1/0:t}function JM(e,t=100,n){const a=n({...e,keyframes:[0,t]}),o=Math.min(lg(a),Ju);return{type:"keyframes",ease:s=>a.next(o*s).value/t,duration:ta(o)}}const Dt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Tp(e,t){return e*Math.sqrt(1-t*t)}const e4=12;function t4(e,t,n){let a=n;for(let o=1;o<e4;o++)a=a-e(a)/t(a);return a}const jf=.001;function n4({duration:e=Dt.duration,bounce:t=Dt.bounce,velocity:n=Dt.velocity,mass:a=Dt.mass}){let o,s,l=1-t;l=Wa(Dt.minDamping,Dt.maxDamping,l),e=Wa(Dt.minDuration,Dt.maxDuration,ta(e)),l<1?(o=f=>{const m=f*l,y=m*e,v=m-n,_=Tp(f,l),x=Math.exp(-y);return jf-v/_*x},s=f=>{const y=f*l*e,v=y*n+n,_=Math.pow(l,2)*Math.pow(f,2)*e,x=Math.exp(-y),C=Tp(Math.pow(f,2),l);return(-o(f)+jf>0?-1:1)*((v-_)*x)/C}):(o=f=>{const m=Math.exp(-f*e),y=(f-n)*e+1;return-jf+m*y},s=f=>{const m=Math.exp(-f*e),y=(n-f)*(e*e);return m*y});const u=5/e,h=t4(o,s,u);if(e=Hn(e),isNaN(h))return{stiffness:Dt.stiffness,damping:Dt.damping,duration:e};{const f=Math.pow(h,2)*a;return{stiffness:f,damping:l*2*Math.sqrt(a*f),duration:e}}}const a4=["duration","bounce"],r4=["stiffness","damping","mass"];function Uk(e,t){return t.some(n=>e[n]!==void 0)}function i4(e){let t={velocity:Dt.velocity,stiffness:Dt.stiffness,damping:Dt.damping,mass:Dt.mass,isResolvedFromDuration:!1,...e};if(!Uk(e,r4)&&Uk(e,a4))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,a=2*Math.PI/(n*1.2),o=a*a,s=2*Wa(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Dt.mass,stiffness:o,damping:s}}else{const n=n4({...e,velocity:0});t={...t,...n,mass:Dt.mass},t.isResolvedFromDuration=!0}return t}function ed(e=Dt.visualDuration,t=Dt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:a,restDelta:o}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:h,damping:f,mass:m,duration:y,velocity:v,isResolvedFromDuration:_}=i4({...n,velocity:-ta(n.velocity||0)}),x=v||0,C=f/(2*Math.sqrt(h*m)),S=l-s,M=ta(Math.sqrt(h/m)),R=Math.abs(S)<5;a||(a=R?Dt.restSpeed.granular:Dt.restSpeed.default),o||(o=R?Dt.restDelta.granular:Dt.restDelta.default);let A,E,B,$,V,P;if(C<1)B=Tp(M,C),$=(x+C*M*S)/B,A=X=>{const fe=Math.exp(-C*M*X);return l-fe*($*Math.sin(B*X)+S*Math.cos(B*X))},V=C*M*$+S*B,P=C*M*S-$*B,E=X=>Math.exp(-C*M*X)*(V*Math.sin(B*X)+P*Math.cos(B*X));else if(C===1){A=fe=>l-Math.exp(-M*fe)*(S+(x+M*S)*fe);const X=x+M*S;E=fe=>Math.exp(-M*fe)*(M*X*fe-x)}else{const X=M*Math.sqrt(C*C-1);A=re=>{const ue=Math.exp(-C*M*re),Q=Math.min(X*re,300);return l-ue*((x+C*M*S)*Math.sinh(Q)+X*S*Math.cosh(Q))/X};const fe=(x+C*M*S)/X,he=C*M*fe-S*X,J=C*M*S-fe*X;E=re=>{const ue=Math.exp(-C*M*re),Q=Math.min(X*re,300);return ue*(he*Math.sinh(Q)+J*Math.cosh(Q))}}const Z={calculatedDuration:_&&y||null,velocity:X=>Hn(E(X)),next:X=>{if(!_&&C<1){const he=Math.exp(-C*M*X),J=Math.sin(B*X),re=Math.cos(B*X),ue=l-he*($*J+S*re),Q=Hn(he*(V*J+P*re));return u.done=Math.abs(Q)<=a&&Math.abs(l-ue)<=o,u.value=u.done?l:ue,u}const fe=A(X);if(_)u.done=X>=y;else{const he=Hn(E(X));u.done=Math.abs(he)<=a&&Math.abs(l-fe)<=o}return u.value=u.done?l:fe,u},toString:()=>{const X=Math.min(lg(Z),Ju),fe=a1(he=>Z.next(X*he).value,X,30);return X+"ms "+fe},toTransition:()=>{}};return Z}ed.applyToOptions=e=>{const t=JM(e,100,ed);return e.ease=t.ease,e.duration=Hn(t.duration),e.type="keyframes",e};const o4=5;function r1(e,t,n){const a=Math.max(t-o4,0);return jx(n-e(a),t-a)}function Ep({keyframes:e,velocity:t=0,power:n=.8,timeConstant:a=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:l,min:u,max:h,restDelta:f=.5,restSpeed:m}){const y=e[0],v={done:!1,value:y},_=P=>u!==void 0&&P<u||h!==void 0&&P>h,x=P=>u===void 0?h:h===void 0||Math.abs(u-P)<Math.abs(h-P)?u:h;let C=n*t;const S=y+C,M=l===void 0?S:l(S);M!==S&&(C=M-y);const R=P=>-C*Math.exp(-P/a),A=P=>M+R(P),E=P=>{const Z=R(P),X=A(P);v.done=Math.abs(Z)<=f,v.value=v.done?M:X};let B,$;const V=P=>{_(v.value)&&(B=P,$=ed({keyframes:[v.value,x(v.value)],velocity:r1(A,P,v.value),damping:o,stiffness:s,restDelta:f,restSpeed:m}))};return V(0),{calculatedDuration:null,next:P=>{let Z=!1;return!$&&B===void 0&&(Z=!0,E(P),V(P)),B!==void 0&&P>=B?$.next(P-B):(!Z&&E(P),v)}}}function s4(e,t,n){const a=[],o=n||Jr.mix||n1,s=e.length-1;for(let l=0;l<s;l++){let u=o(e[l],e[l+1]);if(t){const h=Array.isArray(t)?t[l]||aa:t;u=Ml(h,u)}a.push(u)}return a}function l4(e,t,{clamp:n=!0,ease:a,mixer:o}={}){const s=e.length;if(eg(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=s4(t,a,o),h=u.length,f=m=>{if(l&&m<e[0])return t[0];let y=0;if(h>1)for(;y<e.length-2&&!(m<e[y+1]);y++);const v=vl(e[y],e[y+1],m);return u[y](v)};return n?m=>f(Wa(e[0],e[s-1],m)):f}function c4(e,t){const n=e[e.length-1];for(let a=1;a<=t;a++){const o=vl(0,t,a);e.push(xt(n,1,o))}}function u4(e){const t=[0];return c4(t,e.length-1),t}function d4(e,t){return e.map(n=>n*t)}function h4(e,t){return e.map(()=>t||Kx).splice(0,e.length-1)}function ol({duration:e=300,keyframes:t,times:n,ease:a="easeInOut"}){const o=kM(a)?a.map(Dk):Dk(a),s={done:!1,value:t[0]},l=d4(n&&n.length===t.length?n:u4(t),e),u=l4(l,t,{ease:Array.isArray(o)?o:h4(t,o)});return{calculatedDuration:e,next:h=>(s.value=u(h),s.done=h>=e,s)}}const f4=e=>e!==null;function Cd(e,{repeat:t,repeatType:n="loop"},a,o=1){const s=e.filter(f4),u=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||a===void 0?s[u]:a}const p4={decay:Ep,inertia:Ep,tween:ol,keyframes:ol,spring:ed};function i1(e){typeof e.type=="string"&&(e.type=p4[e.type])}class cg{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const m4=e=>e/100;class td extends cg{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==bn.now()&&this.tick(bn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;i1(t);const{type:n=ol,repeat:a=0,repeatDelay:o=0,repeatType:s,velocity:l=0}=t;let{keyframes:u}=t;const h=n||ol;h!==ol&&typeof u[0]!="number"&&(this.mixKeyframes=Ml(m4,n1(u[0],u[1])),u=[0,100]);const f=h({...t,keyframes:u});s==="mirror"&&(this.mirroredGenerator=h({...t,keyframes:[...u].reverse(),velocity:-l})),f.calculatedDuration===null&&(f.calculatedDuration=lg(f));const{calculatedDuration:m}=f;this.calculatedDuration=m,this.resolvedDuration=m+o,this.totalDuration=this.resolvedDuration*(a+1)-o,this.generator=f}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:a,totalDuration:o,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:h}=this;if(this.startTime===null)return a.next(0);const{delay:f=0,keyframes:m,repeat:y,repeatType:v,repeatDelay:_,type:x,onUpdate:C,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const M=this.currentTime-f*(this.playbackSpeed>=0?1:-1),R=this.playbackSpeed>=0?M<0:M>o;this.currentTime=Math.max(M,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let A=this.currentTime,E=a;if(y){const P=Math.min(this.currentTime,o)/u;let Z=Math.floor(P),X=P%1;!X&&P>=1&&(X=1),X===1&&Z--,Z=Math.min(Z,y+1),Z%2&&(v==="reverse"?(X=1-X,_&&(X-=_/u)):v==="mirror"&&(E=l)),A=Wa(0,1,X)*u}let B;R?(this.delayState.value=m[0],B=this.delayState):B=E.next(A),s&&!R&&(B.value=s(B.value));let{done:$}=B;!R&&h!==null&&($=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return V&&x!==Ep&&(B.value=Cd(m,this.options,S,this.speed)),C&&C(B.value),V&&this.finish(),B}then(t,n){return this.finished.then(t,n)}get duration(){return ta(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ta(t)}get time(){return ta(this.currentTime)}set time(t){t=Hn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return r1(a=>this.generator.next(a).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(bn.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ta(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=QM,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=n??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(bn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function g4(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Di=e=>e*180/Math.PI,Ap=e=>{const t=Di(Math.atan2(e[1],e[0]));return Rp(t)},y4={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ap,rotateZ:Ap,skewX:e=>Di(Math.atan(e[1])),skewY:e=>Di(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Rp=e=>(e=e%360,e<0&&(e+=360),e),Bk=Ap,zk=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Fk=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),v4={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zk,scaleY:Fk,scale:e=>(zk(e)+Fk(e))/2,rotateX:e=>Rp(Di(Math.atan2(e[6],e[5]))),rotateY:e=>Rp(Di(Math.atan2(-e[2],e[0]))),rotateZ:Bk,rotate:Bk,skewX:e=>Di(Math.atan(e[4])),skewY:e=>Di(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Lp(e){return e.includes("scale")?1:0}function Dp(e,t){if(!e||e==="none")return Lp(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,o;if(n)a=v4,o=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=y4,o=u}if(!o)return Lp(t);const s=a[t],l=o[1].split(",").map(k4);return typeof s=="function"?s(l):l[s]}const b4=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Dp(n,t)};function k4(e){return parseFloat(e.trim())}const es=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ts=new Set(es),Vk=e=>e===Jo||e===Se,_4=new Set(["x","y","z"]),w4=es.filter(e=>!_4.has(e));function x4(e){const t=[];return w4.forEach(n=>{const a=e.getValue(n);a!==void 0&&(t.push([n,a.get()]),a.set(n.startsWith("scale")?1:0))}),t}const Zr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:a})=>{const o=e.max-e.min;return a==="border-box"?o:o-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:a})=>{const o=e.max-e.min;return a==="border-box"?o:o-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Dp(t,"x"),y:(e,{transform:t})=>Dp(t,"y")};Zr.translateX=Zr.x;Zr.translateY=Zr.y;const Ii=new Set;let Ip=!1,Mp=!1,Np=!1;function o1(){if(Mp){const e=Array.from(Ii).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),n=new Map;t.forEach(a=>{const o=x4(a);o.length&&(n.set(a,o),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();const o=n.get(a);o&&o.forEach(([s,l])=>{a.getValue(s)?.set(l)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}Mp=!1,Ip=!1,Ii.forEach(e=>e.complete(Np)),Ii.clear()}function s1(){Ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Mp=!0)})}function P4(){Np=!0,s1(),o1(),Np=!1}class ug{constructor(t,n,a,o,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=a,this.motionValue=o,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(Ii.add(this),Ip||(Ip=!0,gt.read(s1),gt.resolveKeyframes(o1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:a,motionValue:o}=this;if(t[0]===null){const s=o?.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(a&&n){const u=a.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),o&&s===void 0&&o.set(t[0])}g4(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ii.delete(this)}cancel(){this.state==="scheduled"&&(Ii.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const S4=e=>e.startsWith("--");function l1(e,t,n){S4(t)?e.style.setProperty(t,n):e.style[t]=n}const C4={};function c1(e,t){const n=Ox(e);return()=>C4[t]??n()}const T4=c1(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),u1=c1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qs=([e,t,n,a])=>`cubic-bezier(${e}, ${t}, ${n}, ${a})`,$k={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qs([0,.65,.55,1]),circOut:Qs([.55,0,1,.45]),backIn:Qs([.31,.01,.66,-.59]),backOut:Qs([.33,1.53,.69,.99])};function d1(e,t){if(e)return typeof e=="function"?u1()?a1(e,t):"ease-out":Gx(e)?Qs(e):Array.isArray(e)?e.map(n=>d1(n,t)||$k.easeOut):$k[e]}function E4(e,t,n,{delay:a=0,duration:o=300,repeat:s=0,repeatType:l="loop",ease:u="easeOut",times:h}={},f=void 0){const m={[t]:n};h&&(m.offset=h);const y=d1(u,o);Array.isArray(y)&&(m.easing=y);const v={delay:a,duration:o,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return f&&(v.pseudoElement=f),e.animate(m,v)}function h1(e){return typeof e=="function"&&"applyToOptions"in e}function A4({type:e,...t}){return h1(e)&&u1()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class f1 extends cg{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:a,keyframes:o,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:u,onComplete:h}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,eg(typeof t.type!="string");const f=A4(t);this.animation=E4(n,a,o,f,s),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const m=Cd(o,this.options,u,this.speed);this.updateMotionValue&&this.updateMotionValue(m),l1(n,a,m),this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ta(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ta(t)}get time(){return ta(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Hn(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:a,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&T4()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),a&&(this.animation.rangeEnd=a),aa):o(this)}}const p1={anticipate:$x,backInOut:Vx,circInOut:Wx};function R4(e){return e in p1}function L4(e){typeof e.ease=="string"&&R4(e.ease)&&(e.ease=p1[e.ease])}const Uf=10;class D4 extends f1{constructor(t){L4(t),i1(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:a,onComplete:o,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new td({...l,autoplay:!1}),h=Math.max(Uf,bn.now()-this.startTime),f=Wa(0,Uf,h-Uf),m=u.sample(h).value,{name:y}=this.options;s&&y&&l1(s,y,m),n.setWithVelocity(u.sample(Math.max(0,h-f)).value,m,f),u.stop()}}const Hk=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xa.test(e)||e==="0")&&!e.startsWith("url("));function I4(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function M4(e,t,n,a){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=Hk(o,t),u=Hk(s,t);return!l||!u?!1:I4(e)||(n==="spring"||h1(n))&&a}function Op(e){e.duration=0,e.type="keyframes"}const m1=new Set(["opacity","clipPath","filter","transform"]),N4=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function O4(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&N4.test(e[t]))return!0;return!1}const j4=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),U4=Ox(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function B4(e){const{motionValue:t,name:n,repeatDelay:a,repeatType:o,damping:s,type:l,keyframes:u}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:m}=t.owner.getProps();return U4()&&n&&(m1.has(n)||j4.has(n)&&O4(u))&&(n!=="transform"||!m)&&!f&&!a&&o!=="mirror"&&s!==0&&l!=="inertia"}const z4=40;class F4 extends cg{constructor({autoplay:t=!0,delay:n=0,type:a="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",keyframes:u,name:h,motionValue:f,element:m,...y}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=bn.now();const v={autoplay:t,delay:n,type:a,repeat:o,repeatDelay:s,repeatType:l,name:h,motionValue:f,element:m,...y},_=m?.KeyframeResolver||ug;this.keyframeResolver=new _(u,(x,C,S)=>this.onKeyframesResolved(x,C,v,!S),h,f,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,a,o){this.keyframeResolver=void 0;const{name:s,type:l,velocity:u,delay:h,isHandoff:f,onUpdate:m}=a;this.resolvedAt=bn.now();let y=!0;M4(t,s,l,u)||(y=!1,(Jr.instantAnimations||!h)&&m?.(Cd(t,a,n)),t[0]=t[t.length-1],Op(a),a.repeat=0);const _={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>z4?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...a,keyframes:t},x=y&&!f&&B4(_),C=_.motionValue?.owner?.current;let S;if(x)try{S=new D4({..._,element:C})}catch{S=new td(_)}else S=new td(_);S.finished.then(()=>{this.notifyFinished()}).catch(aa),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),P4()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function g1(e,t,n,a=0,o=1){const s=Array.from(e).sort((f,m)=>f.sortNodePosition(m)).indexOf(t),l=e.size,u=(l-1)*a;return typeof n=="function"?n(s,l):o===1?s*a:u-s*a}const V4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $4(e){const t=V4.exec(e);if(!t)return[,];const[,n,a,o]=t;return[`--${n??a}`,o]}function y1(e,t,n=1){const[a,o]=$4(e);if(!a)return;const s=window.getComputedStyle(t).getPropertyValue(a);if(s){const l=s.trim();return Ix(l)?parseFloat(l):l}return rg(o)?y1(o,t,n+1):o}const H4={type:"spring",stiffness:500,damping:25,restSpeed:10},W4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),K4={type:"keyframes",duration:.8},G4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},q4=(e,{keyframes:t})=>t.length>2?K4:ts.has(e)?e.startsWith("scale")?W4(t[1]):H4:G4;function v1(e,t){if(e?.inherit&&t){const{inherit:n,...a}=e;return{...t,...a}}return e}function dg(e,t){const n=e?.[t]??e?.default??e;return n!==e?v1(n,e):n}const Y4=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Z4(e){for(const t in e)if(!Y4.has(t))return!0;return!1}const hg=(e,t,n,a={},o,s)=>l=>{const u=dg(a,e)||{},h=u.delay||a.delay||0;let{elapsed:f=0}=a;f=f-Hn(h);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:v=>{t.set(v),u.onUpdate&&u.onUpdate(v)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:o};Z4(u)||Object.assign(m,q4(e,m)),m.duration&&(m.duration=Hn(m.duration)),m.repeatDelay&&(m.repeatDelay=Hn(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Op(m),m.delay===0&&(y=!0)),(Jr.instantAnimations||Jr.skipAnimations||o?.shouldSkipAnimations)&&(y=!0,Op(m),m.delay=0),m.allowFlatten=!u.type&&!u.ease,y&&!s&&t.get()!==void 0){const v=Cd(m.keyframes,u);if(v!==void 0){gt.update(()=>{m.onUpdate(v),m.onComplete()});return}}return u.isSync?new td(m):new F4(m)};function Wk(e){const t=[{},{}];return e?.values.forEach((n,a)=>{t[0][a]=n.get(),t[1][a]=n.getVelocity()}),t}function fg(e,t,n,a){if(typeof t=="function"){const[o,s]=Wk(a);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=Wk(a);t=t(n!==void 0?n:e.custom,o,s)}return t}function Mi(e,t,n){const a=e.getProps();return fg(a,t,n!==void 0?n:a.custom,e)}const b1=new Set(["width","height","top","left","right","bottom",...es]),Kk=30,X4=e=>!isNaN(parseFloat(e)),Gk={current:void 0};class Q4{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{const o=bn.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=bn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=X4(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new tg);const a=this.events[t].add(n);return t==="change"?()=>{a(),gt.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,a){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Gk.current&&Gk.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=bn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Kk)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Kk);return jx(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Yo(e,t){return new Q4(e,t)}const jp=e=>Array.isArray(e);function J4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yo(n))}function eN(e){return jp(e)?e[e.length-1]||0:e}function tN(e,t){const n=Mi(e,t);let{transitionEnd:a={},transition:o={},...s}=n||{};s={...s,...a};for(const l in s){const u=eN(s[l]);J4(e,l,u)}}const an=e=>!!(e&&e.getVelocity);function nN(e){return!!(an(e)&&e.add)}function Up(e,t){const n=e.getValue("willChange");if(nN(n))return n.add(t);if(!n&&Jr.WillChange){const a=new Jr.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function pg(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const aN="framerAppearId",k1="data-"+pg(aN);function _1(e){return e.props[k1]}function rN({protectedKeys:e,needsAnimating:t},n){const a=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,a}function w1(e,t,{delay:n=0,transitionOverride:a,type:o}={}){let{transition:s,transitionEnd:l,...u}=t;const h=e.getDefaultTransition();s=s?v1(s,h):h;const f=s?.reduceMotion;a&&(s=a);const m=[],y=o&&e.animationState&&e.animationState.getState()[o];for(const v in u){const _=e.getValue(v,e.latestValues[v]??null),x=u[v];if(x===void 0||y&&rN(y,v))continue;const C={delay:n,...dg(s||{},v)},S=_.get();if(S!==void 0&&!_.isAnimating()&&!Array.isArray(x)&&x===S&&!C.velocity){gt.update(()=>_.set(x));continue}let M=!1;if(window.MotionHandoffAnimation){const E=_1(e);if(E){const B=window.MotionHandoffAnimation(E,v,gt);B!==null&&(C.startTime=B,M=!0)}}Up(e,v);const R=f??e.shouldReduceMotion;_.start(hg(v,_,x,R&&b1.has(v)?{type:!1}:C,e,M));const A=_.animation;A&&m.push(A)}if(l){const v=()=>gt.update(()=>{l&&tN(e,l)});m.length?Promise.all(m).then(v):v()}return m}function Bp(e,t,n={}){const a=Mi(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(o=n.transitionOverride);const s=a?()=>Promise.all(w1(e,a,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:f=0,staggerChildren:m,staggerDirection:y}=o;return iN(e,t,h,f,m,y,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[h,f]=u==="beforeChildren"?[s,l]:[l,s];return h().then(()=>f())}else return Promise.all([s(),l(n.delay)])}function iN(e,t,n=0,a=0,o=0,s=1,l){const u=[];for(const h of e.variantChildren)h.notify("AnimationStart",t),u.push(Bp(h,t,{...l,delay:n+(typeof a=="function"?0:a)+g1(e.variantChildren,h,a,o,s)}).then(()=>h.notify("AnimationComplete",t)));return Promise.all(u)}function oN(e,t,n={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){const o=t.map(s=>Bp(e,s,n));a=Promise.all(o)}else if(typeof t=="string")a=Bp(e,t,n);else{const o=typeof t=="function"?Mi(e,t,n.custom):t;a=Promise.all(w1(e,o,n))}return a.then(()=>{e.notify("AnimationComplete",t)})}const sN={test:e=>e==="auto",parse:e=>e},x1=e=>t=>t.test(e),P1=[Jo,Se,za,Hr,IM,DM,sN],qk=e=>P1.find(x1(e));function lN(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Nx(e):!0}const cN=new Set(["brightness","contrast","saturate","opacity"]);function uN(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=n.match(ig)||[];if(!a)return e;const o=n.replace(a,"");let s=cN.has(t)?1:0;return a!==n&&(s*=100),t+"("+s+o+")"}const dN=/\b([a-z-]*)\(.*?\)/gu,zp={...xa,getAnimatableNone:e=>{const t=e.match(dN);return t?t.map(uN).join(" "):e}},Fp={...xa,getAnimatableNone:e=>{const t=xa.parse(e);return xa.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}},Yk={...Jo,transform:Math.round},hN={rotate:Hr,rotateX:Hr,rotateY:Hr,rotateZ:Hr,scale:tu,scaleX:tu,scaleY:tu,scaleZ:tu,skew:Hr,skewX:Hr,skewY:Hr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:bl,originX:Mk,originY:Mk,originZ:Se},mg={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,inset:Se,insetBlock:Se,insetBlockStart:Se,insetBlockEnd:Se,insetInline:Se,insetInlineStart:Se,insetInlineEnd:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,paddingBlock:Se,paddingBlockStart:Se,paddingBlockEnd:Se,paddingInline:Se,paddingInlineStart:Se,paddingInlineEnd:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,marginBlock:Se,marginBlockStart:Se,marginBlockEnd:Se,marginInline:Se,marginInlineStart:Se,marginInlineEnd:Se,fontSize:Se,backgroundPositionX:Se,backgroundPositionY:Se,...hN,zIndex:Yk,fillOpacity:bl,strokeOpacity:bl,numOctaves:Yk},fN={...mg,color:Bt,backgroundColor:Bt,outlineColor:Bt,fill:Bt,stroke:Bt,borderColor:Bt,borderTopColor:Bt,borderRightColor:Bt,borderBottomColor:Bt,borderLeftColor:Bt,filter:zp,WebkitFilter:zp,mask:Fp,WebkitMask:Fp},S1=e=>fN[e],pN=new Set([zp,Fp]);function C1(e,t){let n=S1(e);return pN.has(n)||(n=xa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const mN=new Set(["auto","none","0"]);function gN(e,t,n){let a=0,o;for(;a<e.length&&!o;){const s=e[a];typeof s=="string"&&!mN.has(s)&&qo(s).values.length&&(o=e[a]),a++}if(o&&n)for(const s of t)e[s]=C1(n,o)}class yN extends ug{constructor(t,n,a,o,s){super(t,n,a,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:a}=this;if(!n||!n.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let y=t[m];if(typeof y=="string"&&(y=y.trim(),rg(y))){const v=y1(y,n.current);v!==void 0&&(t[m]=v),m===t.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!b1.has(a)||t.length!==2)return;const[o,s]=t,l=qk(o),u=qk(s),h=Ik(o),f=Ik(s);if(h!==f&&Zr[a]){this.needsMeasurement=!0;return}if(l!==u)if(Vk(l)&&Vk(u))for(let m=0;m<t.length;m++){const y=t[m];typeof y=="string"&&(t[m]=parseFloat(y))}else Zr[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,a=[];for(let o=0;o<t.length;o++)(t[o]===null||lN(t[o]))&&a.push(o);a.length&&gN(t,a,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Zr[a](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(a,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:a}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=a.length-1,l=a[s];a[s]=Zr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),this.removedTransforms?.length&&this.removedTransforms.forEach(([u,h])=>{t.getValue(u).set(h)}),this.resolveNoneKeyframes()}}function T1(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;const o=n?.[e]??a.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(a=>a!=null)}const E1=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function xu(e){return Mx(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:gg}=qx(queueMicrotask,!1),ka={x:!1,y:!1};function A1(){return ka.x||ka.y}function vN(e){return e==="x"||e==="y"?ka[e]?null:(ka[e]=!0,()=>{ka[e]=!1}):ka.x||ka.y?null:(ka.x=ka.y=!0,()=>{ka.x=ka.y=!1})}function R1(e,t){const n=T1(e),a=new AbortController,o={passive:!0,...t,signal:a.signal};return[n,o,()=>a.abort()]}function bN(e){return!(e.pointerType==="touch"||A1())}function kN(e,t,n={}){const[a,o,s]=R1(e,n);return a.forEach(l=>{let u=!1,h=!1,f;const m=()=>{l.removeEventListener("pointerleave",x)},y=S=>{f&&(f(S),f=void 0),m()},v=S=>{u=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),h&&(h=!1,y(S))},_=()=>{u=!0,window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",v,o)},x=S=>{if(S.pointerType!=="touch"){if(u){h=!0;return}y(S)}},C=S=>{if(!bN(S))return;h=!1;const M=t(l,S);typeof M=="function"&&(f=M,l.addEventListener("pointerleave",x,o))};l.addEventListener("pointerenter",C,o),l.addEventListener("pointerdown",_,o)}),s}const L1=(e,t)=>t?e===t?!0:L1(e,t.parentElement):!1,yg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_N=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wN(e){return _N.has(e.tagName)||e.isContentEditable===!0}const xN=new Set(["INPUT","SELECT","TEXTAREA"]);function PN(e){return xN.has(e.tagName)||e.isContentEditable===!0}const Pu=new WeakSet;function Zk(e){return t=>{t.key==="Enter"&&e(t)}}function Bf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const SN=(e,t)=>{const n=e.currentTarget;if(!n)return;const a=Zk(()=>{if(Pu.has(n))return;Bf(n,"down");const o=Zk(()=>{Bf(n,"up")}),s=()=>Bf(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",a,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",a),t)};function Xk(e){return yg(e)&&!A1()}const Qk=new WeakSet;function CN(e,t,n={}){const[a,o,s]=R1(e,n),l=u=>{const h=u.currentTarget;if(!Xk(u)||Qk.has(u))return;Pu.add(h),n.stopPropagation&&Qk.add(u);const f=t(h,u),m=(_,x)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",v),Pu.has(h)&&Pu.delete(h),Xk(_)&&typeof f=="function"&&f(_,{success:x})},y=_=>{m(_,h===window||h===document||n.useGlobalTarget||L1(h,_.target))},v=_=>{m(_,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",v,o)};return a.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,o),xu(u)&&(u.addEventListener("focus",f=>SN(f,o)),!wN(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function vg(e){return Mx(e)&&"ownerSVGElement"in e}const Su=new WeakMap;let Cu;const D1=(e,t,n)=>(a,o)=>o&&o[0]?o[0][e+"Size"]:vg(a)&&"getBBox"in a?a.getBBox()[t]:a[n],TN=D1("inline","width","offsetWidth"),EN=D1("block","height","offsetHeight");function AN({target:e,borderBoxSize:t}){Su.get(e)?.forEach(n=>{n(e,{get width(){return TN(e,t)},get height(){return EN(e,t)}})})}function RN(e){e.forEach(AN)}function LN(){typeof ResizeObserver>"u"||(Cu=new ResizeObserver(RN))}function DN(e,t){Cu||LN();const n=T1(e);return n.forEach(a=>{let o=Su.get(a);o||(o=new Set,Su.set(a,o)),o.add(t),Cu?.observe(a)}),()=>{n.forEach(a=>{const o=Su.get(a);o?.delete(t),o?.size||Cu?.unobserve(a)})}}const Tu=new Set;let jo;function IN(){jo=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Tu.forEach(t=>t(e))},window.addEventListener("resize",jo)}function MN(e){return Tu.add(e),jo||IN(),()=>{Tu.delete(e),!Tu.size&&typeof jo=="function"&&(window.removeEventListener("resize",jo),jo=void 0)}}function Jk(e,t){return typeof e=="function"?MN(e):DN(e,t)}function NN(e){return vg(e)&&e.tagName==="svg"}const ON=[...P1,Bt,xa],jN=e=>ON.find(x1(e)),e_=()=>({translate:0,scale:1,origin:0,originPoint:0}),Uo=()=>({x:e_(),y:e_()}),t_=()=>({min:0,max:0}),Wt=()=>({x:t_(),y:t_()}),UN=new WeakMap;function Td(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function kl(e){return typeof e=="string"||Array.isArray(e)}const bg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kg=["initial",...bg];function Ed(e){return Td(e.animate)||kg.some(t=>kl(e[t]))}function I1(e){return!!(Ed(e)||e.variants)}function BN(e,t,n){for(const a in t){const o=t[a],s=n[a];if(an(o))e.addValue(a,o);else if(an(s))e.addValue(a,Yo(o,{owner:e}));else if(s!==o)if(e.hasValue(a)){const l=e.getValue(a);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(a);e.addValue(a,Yo(l!==void 0?l:o,{owner:e}))}}for(const a in n)t[a]===void 0&&e.removeValue(a);return t}const nd={current:null},_g={current:!1},zN=typeof window<"u";function M1(){if(_g.current=!0,!!zN)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>nd.current=e.matches;e.addEventListener("change",t),t()}else nd.current=!1}const n_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ad={};function N1(e){ad=e}function FN(){return ad}class VN{scrapeMotionValuesFromProps(t,n,a){return{}}constructor({parent:t,props:n,presenceContext:a,reducedMotionConfig:o,skipAnimations:s,blockInitialAnimation:l,visualState:u},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ug,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const _=bn.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,gt.render(this.render,!1,!0))};const{latestValues:f,renderState:m}=u;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=s,this.options=h,this.blockInitialAnimation=!!l,this.isControllingVariants=Ed(n),this.isVariantNode=I1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const _ in v){const x=v[_];f[_]!==void 0&&an(x)&&x.set(f[_])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,UN.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,a)=>this.bindToMotionValue(a,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(_g.current||M1(),this.shouldReduceMotion=nd.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ei(this.notifyUpdate),ei(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&m1.has(t)&&this.current instanceof HTMLElement){const{factory:l,keyframes:u,times:h,ease:f,duration:m}=n.accelerate,y=new f1({element:this.current,name:t,keyframes:u,times:h,ease:f,duration:Hn(m)}),v=l(y);this.valueSubscriptions.set(t,()=>{v(),y.cancel()});return}const a=ts.has(t);a&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&gt.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ad){const n=ad[t];if(!n)continue;const{isEnabled:a,Feature:o}=n;if(!this.features[t]&&o&&a(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let a=0;a<n_.length;a++){const o=n_[a];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,l=t[s];l&&(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=BN(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const a=this.values.get(t);n!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&n!==void 0&&(a=Yo(n===null?void 0:n,{owner:this}),this.addValue(t,a)),a}readValue(t,n){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(Ix(a)||Nx(a))?a=parseFloat(a):!jN(a)&&xa.test(n)&&(a=C1(t,n)),this.setBaseTarget(t,an(a)?a.get():a)),an(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let a;if(typeof n=="string"||typeof n=="object"){const s=fg(this.props,n,this.presenceContext?.custom);s&&(a=s[t])}if(n&&a!==void 0)return a;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!an(o)?o:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new tg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){gg.render(this.render)}}class O1 extends VN{constructor(){super(...arguments),this.KeyframeResolver=yN}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const a=t.style;return a?a[n]:void 0}removeValueFromRenderState(t,{vars:n,style:a}){delete n[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;an(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class ai{constructor(t){this.isMounted=!1,this.node=t}update(){}}function j1({top:e,left:t,right:n,bottom:a}){return{x:{min:t,max:n},y:{min:e,max:a}}}function $N({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function HN(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:a.y,right:a.x}}function zf(e){return e===void 0||e===1}function Vp({scale:e,scaleX:t,scaleY:n}){return!zf(e)||!zf(t)||!zf(n)}function Ei(e){return Vp(e)||U1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function U1(e){return a_(e.x)||a_(e.y)}function a_(e){return e&&e!=="0%"}function rd(e,t,n){const a=e-n,o=t*a;return n+o}function r_(e,t,n,a,o){return o!==void 0&&(e=rd(e,o,a)),rd(e,n,a)+t}function $p(e,t=0,n=1,a,o){e.min=r_(e.min,t,n,a,o),e.max=r_(e.max,t,n,a,o)}function B1(e,{x:t,y:n}){$p(e.x,t.translate,t.scale,t.originPoint),$p(e.y,n.translate,n.scale,n.originPoint)}const i_=.999999999999,o_=1.0000000000001;function WN(e,t,n,a=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,l;for(let u=0;u<o;u++){s=n[u],l=s.projectionDelta;const{visualElement:h}=s.options;h&&h.props.style&&h.props.style.display==="contents"||(a&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(ja(e.x,-s.scroll.offset.x),ja(e.y,-s.scroll.offset.y)),l&&(t.x*=l.x.scale,t.y*=l.y.scale,B1(e,l)),a&&Ei(s.latestValues)&&Eu(e,s.latestValues,s.layout?.layoutBox))}t.x<o_&&t.x>i_&&(t.x=1),t.y<o_&&t.y>i_&&(t.y=1)}function ja(e,t){e.min+=t,e.max+=t}function s_(e,t,n,a,o=.5){const s=xt(e.min,e.max,o);$p(e,t,n,s,a)}function l_(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Eu(e,t,n){const a=n??e;s_(e.x,l_(t.x,a.x),t.scaleX,t.scale,t.originX),s_(e.y,l_(t.y,a.y),t.scaleY,t.scale,t.originY)}function z1(e,t){return j1(HN(e.getBoundingClientRect(),t))}function KN(e,t,n){const a=z1(e,n),{scroll:o}=t;return o&&(ja(a.x,o.offset.x),ja(a.y,o.offset.y)),a}const GN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qN=es.length;function YN(e,t,n){let a="",o=!0;for(let s=0;s<qN;s++){const l=es[s],u=e[l];if(u===void 0)continue;let h=!0;if(typeof u=="number")h=u===(l.startsWith("scale")?1:0);else{const f=parseFloat(u);h=l.startsWith("scale")?f===1:f===0}if(!h||n){const f=E1(u,mg[l]);if(!h){o=!1;const m=GN[l]||l;a+=`${m}(${f}) `}n&&(t[l]=f)}}return a=a.trim(),n?a=n(t,o?"":a):o&&(a="none"),a}function wg(e,t,n){const{style:a,vars:o,transformOrigin:s}=e;let l=!1,u=!1;for(const h in t){const f=t[h];if(ts.has(h)){l=!0;continue}else if(Zx(h)){o[h]=f;continue}else{const m=E1(f,mg[h]);h.startsWith("origin")?(u=!0,s[h]=m):a[h]=m}}if(t.transform||(l||n?a.transform=YN(t,e.transform,n):a.transform&&(a.transform="none")),u){const{originX:h="50%",originY:f="50%",originZ:m=0}=s;a.transformOrigin=`${h} ${f} ${m}`}}function F1(e,{style:t,vars:n},a,o){const s=e.style;let l;for(l in t)s[l]=t[l];o?.applyProjectionStyles(s,a);for(l in n)s.setProperty(l,n[l])}function c_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Hs={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=c_(e,t.target.x),a=c_(e,t.target.y);return`${n}% ${a}%`}},ZN={correct:(e,{treeScale:t,projectionDelta:n})=>{const a=e,o=xa.parse(e);if(o.length>5)return a;const s=xa.createTransformer(e),l=typeof o[0]!="number"?1:0,u=n.x.scale*t.x,h=n.y.scale*t.y;o[0+l]/=u,o[1+l]/=h;const f=xt(u,h,.5);return typeof o[2+l]=="number"&&(o[2+l]/=f),typeof o[3+l]=="number"&&(o[3+l]/=f),s(o)}},Hp={borderRadius:{...Hs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hs,borderTopRightRadius:Hs,borderBottomLeftRadius:Hs,borderBottomRightRadius:Hs,boxShadow:ZN};function V1(e,{layout:t,layoutId:n}){return ts.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Hp[e]||e==="opacity")}function xg(e,t,n){const a=e.style,o=t?.style,s={};if(!a)return s;for(const l in a)(an(a[l])||o&&an(o[l])||V1(l,e)||n?.getValue(l)?.liveStyle!==void 0)&&(s[l]=a[l]);return s}function XN(e){return window.getComputedStyle(e)}class QN extends O1{constructor(){super(...arguments),this.type="html",this.renderInstance=F1}readValueFromInstance(t,n){if(ts.has(n))return this.projection?.isProjecting?Lp(n):b4(t,n);{const a=XN(t),o=(Zx(n)?a.getPropertyValue(n):a[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return z1(t,n)}build(t,n,a){wg(t,n,a.transformTemplate)}scrapeMotionValuesFromProps(t,n,a){return xg(t,n,a)}}const JN={offset:"stroke-dashoffset",array:"stroke-dasharray"},e5={offset:"strokeDashoffset",array:"strokeDasharray"};function t5(e,t,n=1,a=0,o=!0){e.pathLength=1;const s=o?JN:e5;e[s.offset]=`${-a}`,e[s.array]=`${t} ${n}`}const n5=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function $1(e,{attrX:t,attrY:n,attrScale:a,pathLength:o,pathSpacing:s=1,pathOffset:l=0,...u},h,f,m){if(wg(e,u,f),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:v}=e;y.transform&&(v.transform=y.transform,delete y.transform),(v.transform||y.transformOrigin)&&(v.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),v.transform&&(v.transformBox=m?.transformBox??"fill-box",delete y.transformBox);for(const _ of n5)y[_]!==void 0&&(v[_]=y[_],delete y[_]);t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),a!==void 0&&(y.scale=a),o!==void 0&&t5(y,o,s,l,!1)}const H1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),W1=e=>typeof e=="string"&&e.toLowerCase()==="svg";function a5(e,t,n,a){F1(e,t,void 0,a);for(const o in t.attrs)e.setAttribute(H1.has(o)?o:pg(o),t.attrs[o])}function K1(e,t,n){const a=xg(e,t,n);for(const o in e)if(an(e[o])||an(t[o])){const s=es.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;a[s]=e[o]}return a}class r5 extends O1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ts.has(n)){const a=S1(n);return a&&a.default||0}return n=H1.has(n)?n:pg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,a){return K1(t,n,a)}build(t,n,a){$1(t,n,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,n,a,o){a5(t,n,a,o)}mount(t){this.isSVGTag=W1(t.tagName),super.mount(t)}}const i5=kg.length;function G1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?G1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<i5;n++){const a=kg[n],o=e.props[a];(kl(o)||o===!1)&&(t[a]=o)}return t}function q1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let a=0;a<n;a++)if(t[a]!==e[a])return!1;return!0}const o5=[...bg].reverse(),s5=bg.length;function l5(e){return t=>Promise.all(t.map(({animation:n,options:a})=>oN(e,n,a)))}function c5(e){let t=l5(e),n=u_(),a=!0,o=!1;const s=f=>(m,y)=>{const v=Mi(e,y,f==="exit"?e.presenceContext?.custom:void 0);if(v){const{transition:_,transitionEnd:x,...C}=v;m={...m,...C,...x}}return m};function l(f){t=f(e)}function u(f){const{props:m}=e,y=G1(e.parent)||{},v=[],_=new Set;let x={},C=1/0;for(let M=0;M<s5;M++){const R=o5[M],A=n[R],E=m[R]!==void 0?m[R]:y[R],B=kl(E),$=R===f?A.isActive:null;$===!1&&(C=M);let V=E===y[R]&&E!==m[R]&&B;if(V&&(a||o)&&e.manuallyAnimateOnMount&&(V=!1),A.protectedKeys={...x},!A.isActive&&$===null||!E&&!A.prevProp||Td(E)||typeof E=="boolean")continue;if(R==="exit"&&A.isActive&&$!==!0){A.prevResolvedValues&&(x={...x,...A.prevResolvedValues});continue}const P=u5(A.prevProp,E);let Z=P||R===f&&A.isActive&&!V&&B||M>C&&B,X=!1;const fe=Array.isArray(E)?E:[E];let he=fe.reduce(s(R),{});$===!1&&(he={});const{prevResolvedValues:J={}}=A,re={...J,...he},ue=F=>{Z=!0,_.has(F)&&(X=!0,_.delete(F)),A.needsAnimating[F]=!0;const Y=e.getValue(F);Y&&(Y.liveStyle=!1)};for(const F in re){const Y=he[F],z=J[F];if(x.hasOwnProperty(F))continue;let I=!1;jp(Y)&&jp(z)?I=!q1(Y,z):I=Y!==z,I?Y!=null?ue(F):_.add(F):Y!==void 0&&_.has(F)?ue(F):A.protectedKeys[F]=!0}A.prevProp=E,A.prevResolvedValues=he,A.isActive&&(x={...x,...he}),(a||o)&&e.blockInitialAnimation&&(Z=!1);const Q=V&&P;Z&&(!Q||X)&&v.push(...fe.map(F=>{const Y={type:R};if(typeof F=="string"&&(a||o)&&!Q&&e.manuallyAnimateOnMount&&e.parent){const{parent:z}=e,I=Mi(z,F);if(z.enteringChildren&&I){const{delayChildren:W}=I.transition||{};Y.delay=g1(z.enteringChildren,e,W)}}return{animation:F,options:Y}}))}if(_.size){const M={};if(typeof m.initial!="boolean"){const R=Mi(e,Array.isArray(m.initial)?m.initial[0]:m.initial);R&&R.transition&&(M.transition=R.transition)}_.forEach(R=>{const A=e.getBaseTarget(R),E=e.getValue(R);E&&(E.liveStyle=!0),M[R]=A??null}),v.push({animation:M})}let S=!!v.length;return a&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(S=!1),a=!1,o=!1,S?t(v):Promise.resolve()}function h(f,m){if(n[f].isActive===m)return Promise.resolve();e.variantChildren?.forEach(v=>v.animationState?.setActive(f,m)),n[f].isActive=m;const y=u(f);for(const v in n)n[v].protectedKeys={};return y}return{animateChanges:u,setActive:h,setAnimateFunction:l,getState:()=>n,reset:()=>{n=u_(),o=!0}}}function u5(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!q1(t,e):!1}function xi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function u_(){return{animate:xi(!0),whileInView:xi(),whileHover:xi(),whileTap:xi(),whileDrag:xi(),whileFocus:xi(),exit:xi()}}function Wp(e,t){e.min=t.min,e.max=t.max}function va(e,t){Wp(e.x,t.x),Wp(e.y,t.y)}function d_(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Y1=1e-4,d5=1-Y1,h5=1+Y1,Z1=.01,f5=0-Z1,p5=0+Z1;function kn(e){return e.max-e.min}function m5(e,t,n){return Math.abs(e-t)<=n}function h_(e,t,n,a=.5){e.origin=a,e.originPoint=xt(t.min,t.max,e.origin),e.scale=kn(n)/kn(t),e.translate=xt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=d5&&e.scale<=h5||isNaN(e.scale))&&(e.scale=1),(e.translate>=f5&&e.translate<=p5||isNaN(e.translate))&&(e.translate=0)}function sl(e,t,n,a){h_(e.x,t.x,n.x,a?a.originX:void 0),h_(e.y,t.y,n.y,a?a.originY:void 0)}function f_(e,t,n,a=0){const o=a?xt(n.min,n.max,a):n.min;e.min=o+t.min,e.max=e.min+kn(t)}function g5(e,t,n,a){f_(e.x,t.x,n.x,a?.x),f_(e.y,t.y,n.y,a?.y)}function p_(e,t,n,a=0){const o=a?xt(n.min,n.max,a):n.min;e.min=t.min-o,e.max=e.min+kn(t)}function id(e,t,n,a){p_(e.x,t.x,n.x,a?.x),p_(e.y,t.y,n.y,a?.y)}function m_(e,t,n,a,o){return e-=t,e=rd(e,1/n,a),o!==void 0&&(e=rd(e,1/o,a)),e}function y5(e,t=0,n=1,a=.5,o,s=e,l=e){if(za.test(t)&&(t=parseFloat(t),t=xt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=xt(s.min,s.max,a);e===s&&(u-=t),e.min=m_(e.min,t,n,u,o),e.max=m_(e.max,t,n,u,o)}function g_(e,t,[n,a,o],s,l){y5(e,t[n],t[a],t[o],t.scale,s,l)}const v5=["x","scaleX","originX"],b5=["y","scaleY","originY"];function y_(e,t,n,a){g_(e.x,t,v5,n?n.x:void 0,a?a.x:void 0),g_(e.y,t,b5,n?n.y:void 0,a?a.y:void 0)}function v_(e){return e.translate===0&&e.scale===1}function X1(e){return v_(e.x)&&v_(e.y)}function b_(e,t){return e.min===t.min&&e.max===t.max}function k5(e,t){return b_(e.x,t.x)&&b_(e.y,t.y)}function k_(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Q1(e,t){return k_(e.x,t.x)&&k_(e.y,t.y)}function __(e){return kn(e.x)/kn(e.y)}function w_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Oa(e){return[e("x"),e("y")]}function _5(e,t,n){let a="";const o=e.x.translate/t.x,s=e.y.translate/t.y,l=n?.z||0;if((o||s||l)&&(a=`translate3d(${o}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:m,rotateX:y,rotateY:v,skewX:_,skewY:x}=n;f&&(a=`perspective(${f}px) ${a}`),m&&(a+=`rotate(${m}deg) `),y&&(a+=`rotateX(${y}deg) `),v&&(a+=`rotateY(${v}deg) `),_&&(a+=`skewX(${_}deg) `),x&&(a+=`skewY(${x}deg) `)}const u=e.x.scale*t.x,h=e.y.scale*t.y;return(u!==1||h!==1)&&(a+=`scale(${u}, ${h})`),a||"none"}const J1=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],w5=J1.length,x_=e=>typeof e=="string"?parseFloat(e):e,P_=e=>typeof e=="number"||Se.test(e);function x5(e,t,n,a,o,s){o?(e.opacity=xt(0,n.opacity??1,P5(a)),e.opacityExit=xt(t.opacity??1,0,S5(a))):s&&(e.opacity=xt(t.opacity??1,n.opacity??1,a));for(let l=0;l<w5;l++){const u=J1[l];let h=S_(t,u),f=S_(n,u);if(h===void 0&&f===void 0)continue;h||(h=0),f||(f=0),h===0||f===0||P_(h)===P_(f)?(e[u]=Math.max(xt(x_(h),x_(f),a),0),(za.test(f)||za.test(h))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=xt(t.rotate||0,n.rotate||0,a))}function S_(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const P5=eP(0,.5,Hx),S5=eP(.5,.95,aa);function eP(e,t,n){return a=>a<e?0:a>t?1:n(vl(e,t,a))}function C5(e,t,n){const a=an(e)?e:Yo(e);return a.start(hg("",a,t,n)),a.animation}function _l(e,t,n,a={passive:!0}){return e.addEventListener(t,n,a),()=>e.removeEventListener(t,n)}const T5=(e,t)=>e.depth-t.depth;class E5{constructor(){this.children=[],this.isDirty=!1}add(t){Jm(this.children,t),this.isDirty=!0}remove(t){Xu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(T5),this.isDirty=!1,this.children.forEach(t)}}function A5(e,t){const n=bn.now(),a=({timestamp:o})=>{const s=o-n;s>=t&&(ei(a),e(s-t))};return gt.setup(a,!0),()=>ei(a)}function Au(e){return an(e)?e.get():e}class R5{constructor(){this.members=[]}add(t){Jm(this.members,t);for(let n=this.members.length-1;n>=0;n--){const a=this.members[n];if(a===t||a===this.lead||a===this.prevLead)continue;const o=a.instance;(!o||o.isConnected===!1)&&!a.snapshot&&(Xu(this.members,a),a.unmount())}t.scheduleRender()}remove(t){if(Xu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const a=this.members[n];if(a.isPresent!==!1&&a.instance?.isConnected!==!1)return this.promote(a),!0}return!1}promote(t,n){const a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=a.options,{layoutDependency:s}=t.options;(o===void 0||o!==s)&&(t.resumeFrom=a,n&&(a.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Ru={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ff=["","X","Y","Z"],L5=1e3;let D5=0;function Vf(e,t,n,a){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),a&&(a[e]=0))}function tP(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",gt,!(o||s))}const{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&tP(a)}function nP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:a,resetTransform:o}){return class{constructor(l={},u=t?.()){this.id=D5++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(N5),this.nodes.forEach(F5),this.nodes.forEach(V5),this.nodes.forEach(O5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new E5)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new tg),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const h=this.eventHandlers.get(l);h&&h.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=vg(l)&&!NN(l),this.instance=l;const{layoutId:u,layout:h,visualElement:f}=this.options;if(f&&!f.current&&f.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(h||u)&&(this.isLayoutDirty=!0),e){let m,y=0;const v=()=>this.root.updateBlockedByResize=!1;gt.read(()=>{y=window.innerWidth}),e(l,()=>{const _=window.innerWidth;_!==y&&(y=_,this.root.updateBlockedByResize=!0,m&&m(),m=A5(v,250),Ru.hasAnimatedSinceResize&&(Ru.hasAnimatedSinceResize=!1,this.nodes.forEach(E_)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||h)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:y,hasRelativeLayoutChanged:v,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||f.getDefaultTransition()||G5,{onLayoutAnimationStart:C,onLayoutAnimationComplete:S}=f.getProps(),M=!this.targetLayout||!Q1(this.targetLayout,_),R=!y&&v;if(this.options.layoutRoot||this.resumeFrom||R||y&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...dg(x,"layout"),onPlay:C,onComplete:S};(f.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(m,R)}else y||E_(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ei(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach($5),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&tP(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const y=this.path[m];y.shouldResetTransform=!0,(typeof y.latestValues.x=="string"||typeof y.latestValues.y=="string")&&(y.isLayoutDirty=!0),y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:u,layout:h}=this.options;if(u===void 0&&!h)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const h=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),h&&this.nodes.forEach(U5),this.nodes.forEach(C_);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(T_);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(B5),this.nodes.forEach(z5),this.nodes.forEach(I5),this.nodes.forEach(M5)):this.nodes.forEach(T_),this.clearAllSnapshots();const u=bn.now();nn.delta=Wa(0,1e3/60,u-nn.timestamp),nn.timestamp=u,nn.isProcessing=!0,If.update.process(nn),If.preRender.process(nn),If.render.process(nn),nn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(j5),this.sharedNodes.forEach(H5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!kn(this.snapshot.measuredBox.x)&&!kn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Wt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u&&this.instance){const h=a(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!X1(this.projectionDelta),h=this.getTransformTemplate(),f=h?h(this.latestValues,""):void 0,m=f!==this.prevTransformTemplateValue;l&&this.instance&&(u||Ei(this.latestValues)||m)&&(o(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let h=this.removeElementScroll(u);return l&&(h=this.removeTransform(h)),q5(h),{animationId:this.root.animationId,measuredBox:u,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return Wt();const u=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Y5))){const{scroll:f}=this.root;f&&(ja(u.x,f.offset.x),ja(u.y,f.offset.y))}return u}removeElementScroll(l){const u=Wt();if(va(u,l),this.scroll?.wasRoot)return u;for(let h=0;h<this.path.length;h++){const f=this.path[h],{scroll:m,options:y}=f;f!==this.root&&m&&y.layoutScroll&&(m.wasRoot&&va(u,l),ja(u.x,m.offset.x),ja(u.y,m.offset.y))}return u}applyTransform(l,u=!1,h){const f=h||Wt();va(f,l);for(let m=0;m<this.path.length;m++){const y=this.path[m];!u&&y.options.layoutScroll&&y.scroll&&y!==y.root&&(ja(f.x,-y.scroll.offset.x),ja(f.y,-y.scroll.offset.y)),Ei(y.latestValues)&&Eu(f,y.latestValues,y.layout?.layoutBox)}return Ei(this.latestValues)&&Eu(f,this.latestValues,this.layout?.layoutBox),f}removeTransform(l){const u=Wt();va(u,l);for(let h=0;h<this.path.length;h++){const f=this.path[h];if(!Ei(f.latestValues))continue;let m;f.instance&&(Vp(f.latestValues)&&f.updateSnapshot(),m=Wt(),va(m,f.measurePageBox())),y_(u,f.latestValues,f.snapshot?.layoutBox,m)}return Ei(this.latestValues)&&y_(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==nn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==u;if(!(l||h&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:y}=this.options;if(!this.layout||!(m||y))return;this.resolvedRelativeTargetAt=nn.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wt(),this.targetWithTransforms=Wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),g5(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):va(this.target,this.layout.layoutBox),B1(this.target,this.targetDelta)):va(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Vp(this.parent.latestValues)||U1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(l,u,h){this.relativeParent=l,this.linkedParentVersion=l.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),id(this.relativeTargetOrigin,u,h,this.options.layoutAnchor||void 0),va(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const l=this.getLead(),u=!!this.resumingFrom||this!==l;let h=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(h=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===nn.timestamp&&(h=!1),h)return;const{layout:f,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||m))return;va(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,v=this.treeScale.y;WN(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Wt());const{target:_}=l;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(d_(this.prevProjectionDelta.x,this.projectionDelta.x),d_(this.prevProjectionDelta.y,this.projectionDelta.y)),sl(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==v||!w_(this.projectionDelta.x,this.prevProjectionDelta.x)||!w_(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.visualElement?.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Uo(),this.projectionDelta=Uo(),this.projectionDeltaWithTransform=Uo()}setAnimationOrigin(l,u=!1){const h=this.snapshot,f=h?h.latestValues:{},m={...this.latestValues},y=Uo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const v=Wt(),_=h?h.source:void 0,x=this.layout?this.layout.source:void 0,C=_!==x,S=this.getStack(),M=!S||S.members.length<=1,R=!!(C&&!M&&this.options.crossfade===!0&&!this.path.some(K5));this.animationProgress=0;let A;this.mixTargetDelta=E=>{const B=E/1e3;A_(y.x,l.x,B),A_(y.y,l.y,B),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(id(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),W5(this.relativeTarget,this.relativeTargetOrigin,v,B),A&&k5(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=Wt()),va(A,this.relativeTarget)),C&&(this.animationValues=m,x5(m,f,this.latestValues,B,R,M)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=B},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ei(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=gt.update(()=>{Ru.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Yo(0)),this.motionValue.jump(0,!1),this.currentAnimation=C5(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(L5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:h,layout:f,latestValues:m}=l;if(!(!u||!h||!f)){if(this!==l&&this.layout&&f&&aP(this.options.animationType,this.layout.layoutBox,f.layoutBox)){h=this.target||Wt();const y=kn(this.layout.layoutBox.x);h.x.min=l.target.x.min,h.x.max=h.x.min+y;const v=kn(this.layout.layoutBox.y);h.y.min=l.target.y.min,h.y.max=h.y.min+v}va(u,h),Eu(u,m),sl(this.projectionDeltaWithTransform,this.layoutCorrected,u,m)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new R5),this.sharedNodes.get(l).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){const{layoutId:l}=this.options;return l?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:l}=this.options;return l?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:h}={}){const f=this.getStack();f&&f.promote(this,h),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:h}=l;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(u=!0),!u)return;const f={};h.z&&Vf("z",l,f,this.animationValues);for(let m=0;m<Ff.length;m++)Vf(`rotate${Ff[m]}`,l,f,this.animationValues),Vf(`skew${Ff[m]}`,l,f,this.animationValues);l.render();for(const m in f)l.setStaticValue(m,f[m]),this.animationValues&&(this.animationValues[m]=f[m]);l.scheduleRender()}applyProjectionStyles(l,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=Au(u?.pointerEvents)||"",l.transform=h?h(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=Au(u?.pointerEvents)||""),this.hasProjected&&!Ei(this.latestValues)&&(l.transform=h?h({},""):"none",this.hasProjected=!1);return}l.visibility="";const m=f.animationValues||f.latestValues;this.applyTransformsToTarget();let y=_5(this.projectionDeltaWithTransform,this.treeScale,m);h&&(y=h(m,y)),l.transform=y;const{x:v,y:_}=this.projectionDelta;l.transformOrigin=`${v.origin*100}% ${_.origin*100}% 0`,f.animationValues?l.opacity=f===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:l.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const x in Hp){if(m[x]===void 0)continue;const{correct:C,applyTo:S,isCSSVariable:M}=Hp[x],R=y==="none"?m[x]:C(m[x],f);if(S){const A=S.length;for(let E=0;E<A;E++)l[S[E]]=R}else M?this.options.visualElement.renderState.vars[x]=R:l[x]=R}this.options.layoutId&&(l.pointerEvents=f===this?Au(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>l.currentAnimation?.stop()),this.root.nodes.forEach(C_),this.root.sharedNodes.clear()}}}function I5(e){e.updateLayout()}function M5(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:a}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;if(o==="size")Oa(m=>{const y=s?t.measuredBox[m]:t.layoutBox[m],v=kn(y);y.min=n[m].min,y.max=y.min+v});else if(o==="x"||o==="y"){const m=o==="x"?"y":"x";Wp(s?t.measuredBox[m]:t.layoutBox[m],n[m])}else aP(o,t.layoutBox,n)&&Oa(m=>{const y=s?t.measuredBox[m]:t.layoutBox[m],v=kn(n[m]);y.max=y.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+v)});const l=Uo();sl(l,n,t.layoutBox);const u=Uo();s?sl(u,e.applyTransform(a,!0),t.measuredBox):sl(u,n,t.layoutBox);const h=!X1(l);let f=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:y,layout:v}=m;if(y&&v){const _=e.options.layoutAnchor||void 0,x=Wt();id(x,t.layoutBox,y.layoutBox,_);const C=Wt();id(C,n,v.layoutBox,_),Q1(x,C)||(f=!0),m.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=x,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function N5(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function O5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function j5(e){e.clearSnapshot()}function C_(e){e.clearMeasurements()}function U5(e){e.isLayoutDirty=!0,e.updateLayout()}function T_(e){e.isLayoutDirty=!1}function B5(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function z5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function E_(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function F5(e){e.resolveTargetDelta()}function V5(e){e.calcProjection()}function $5(e){e.resetSkewAndRotation()}function H5(e){e.removeLeadSnapshot()}function A_(e,t,n){e.translate=xt(t.translate,0,n),e.scale=xt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function R_(e,t,n,a){e.min=xt(t.min,n.min,a),e.max=xt(t.max,n.max,a)}function W5(e,t,n,a){R_(e.x,t.x,n.x,a),R_(e.y,t.y,n.y,a)}function K5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const G5={duration:.45,ease:[.4,0,.1,1]},L_=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),D_=L_("applewebkit/")&&!L_("chrome/")?Math.round:aa;function I_(e){e.min=D_(e.min),e.max=D_(e.max)}function q5(e){I_(e.x),I_(e.y)}function aP(e,t,n){return e==="position"||e==="preserve-aspect"&&!m5(__(t),__(n),.2)}function Y5(e){return e!==e.root&&e.scroll?.wasRoot}const Z5=nP({attachResizeListener:(e,t)=>_l(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),$f={current:void 0},rP=nP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$f.current){const e=new Z5({});e.mount(window),e.setOptions({layoutScroll:!0}),$f.current=e}return $f.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Pg=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function M_(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function X5(...e){return t=>{let n=!1;const a=e.map(o=>{const s=M_(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():M_(e[o],null)}}}}function Q5(...e){return k.useCallback(X5(...e),e)}class J5 extends k.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(xu(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const a=n.offsetParent,o=xu(a)&&a.offsetWidth||0,s=xu(a)&&a.offsetHeight||0,l=getComputedStyle(n),u=this.props.sizeRef.current;u.height=parseFloat(l.height),u.width=parseFloat(l.width),u.top=n.offsetTop,u.left=n.offsetLeft,u.right=o-u.width-u.left,u.bottom=s-u.height-u.top}return null}componentDidUpdate(){}render(){return this.props.children}}function eO({children:e,isPresent:t,anchorX:n,anchorY:a,root:o,pop:s}){const l=k.useId(),u=k.useRef(null),h=k.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:f}=k.useContext(Pg),m=e.props?.ref??e?.ref,y=Q5(u,m);return k.useInsertionEffect(()=>{const{width:v,height:_,top:x,left:C,right:S,bottom:M}=h.current;if(t||s===!1||!u.current||!v||!_)return;const R=n==="left"?`left: ${C}`:`right: ${S}`,A=a==="bottom"?`bottom: ${M}`:`top: ${x}`;u.current.dataset.motionPopId=l;const E=document.createElement("style");f&&(E.nonce=f);const B=o??document.head;return B.appendChild(E),E.sheet&&E.sheet.insertRule(`
971
+ [data-motion-pop-id="${l}"] {
972
+ position: absolute !important;
973
+ width: ${v}px !important;
974
+ height: ${_}px !important;
975
+ ${R}px !important;
976
+ ${A}px !important;
977
+ }
978
+ `),()=>{u.current?.removeAttribute("data-motion-pop-id"),B.contains(E)&&B.removeChild(E)}},[t]),T.jsx(J5,{isPresent:t,childRef:u,sizeRef:h,pop:s,children:s===!1?e:k.cloneElement(e,{ref:y})})}const tO=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:o,presenceAffectsLayout:s,mode:l,anchorX:u,anchorY:h,root:f})=>{const m=Qm(nO),y=k.useId();let v=!0,_=k.useMemo(()=>(v=!1,{id:y,initial:t,isPresent:n,custom:o,onExitComplete:x=>{m.set(x,!0);for(const C of m.values())if(!C)return;a&&a()},register:x=>(m.set(x,!1),()=>m.delete(x))}),[n,m,a]);return s&&v&&(_={..._}),k.useMemo(()=>{m.forEach((x,C)=>m.set(C,!1))},[n]),k.useEffect(()=>{!n&&!m.size&&a&&a()},[n]),e=T.jsx(eO,{pop:l==="popLayout",isPresent:n,anchorX:u,anchorY:h,root:f,children:e}),T.jsx(Sd.Provider,{value:_,children:e})};function nO(){return new Map}function iP(e=!0){const t=k.useContext(Sd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:a,register:o}=t,s=k.useId();k.useEffect(()=>{if(e)return o(s)},[e]);const l=k.useCallback(()=>e&&a&&a(s),[s,a,e]);return!n&&a?[!1,l]:[!0]}const nu=e=>e.key||"";function N_(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const oP=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:s="sync",propagate:l=!1,anchorX:u="left",anchorY:h="top",root:f})=>{const[m,y]=iP(l),v=k.useMemo(()=>N_(e),[e]),_=l&&!m?[]:v.map(nu),x=k.useRef(!0),C=k.useRef(v),S=Qm(()=>new Map),M=k.useRef(new Set),[R,A]=k.useState(v),[E,B]=k.useState(v);Dx(()=>{x.current=!1,C.current=v;for(let P=0;P<E.length;P++){const Z=nu(E[P]);_.includes(Z)?(S.delete(Z),M.current.delete(Z)):S.get(Z)!==!0&&S.set(Z,!1)}},[E,_.length,_.join("-")]);const $=[];if(v!==R){let P=[...v];for(let Z=0;Z<E.length;Z++){const X=E[Z],fe=nu(X);_.includes(fe)||(P.splice(Z,0,X),$.push(X))}return s==="wait"&&$.length&&(P=$),B(N_(P)),A(v),null}const{forceRender:V}=k.useContext(Xm);return T.jsx(T.Fragment,{children:E.map(P=>{const Z=nu(P),X=l&&!m?!1:v===E||_.includes(Z),fe=()=>{if(M.current.has(Z))return;if(S.has(Z))M.current.add(Z),S.set(Z,!0);else return;let he=!0;S.forEach(J=>{J||(he=!1)}),he&&(V?.(),B(C.current),l&&y?.(),a&&a())};return T.jsx(tO,{isPresent:X,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:f,onExitComplete:X?void 0:fe,anchorX:u,anchorY:h,children:P},Z)})})},sP=k.createContext({strict:!1}),O_={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let j_=!1;function aO(){if(j_)return;const e={};for(const t in O_)e[t]={isEnabled:n=>O_[t].some(a=>!!n[a])};N1(e),j_=!0}function lP(){return aO(),FN()}function rO(e){const t=lP();for(const n in e)t[n]={...t[n],...e[n]};N1(t)}const iO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function od(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iO.has(e)}let cP=e=>!od(e);function oO(e){typeof e=="function"&&(cP=t=>t.startsWith("on")?!od(t):e(t))}try{oO(require("@emotion/is-prop-valid").default)}catch{}function sO(e,t,n){const a={};for(const o in e)o==="values"&&typeof e.values=="object"||an(e[o])||(cP(o)||n===!0&&od(o)||!t&&!od(o)||e.draggable&&o.startsWith("onDrag"))&&(a[o]=e[o]);return a}const Ad=k.createContext({});function lO(e,t){if(Ed(e)){const{initial:n,animate:a}=e;return{initial:n===!1||kl(n)?n:void 0,animate:kl(a)?a:void 0}}return e.inherit!==!1?t:{}}function cO(e){const{initial:t,animate:n}=lO(e,k.useContext(Ad));return k.useMemo(()=>({initial:t,animate:n}),[U_(t),U_(n)])}function U_(e){return Array.isArray(e)?e.join(" "):e}const Sg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function uP(e,t,n){for(const a in t)!an(t[a])&&!V1(a,n)&&(e[a]=t[a])}function uO({transformTemplate:e},t){return k.useMemo(()=>{const n=Sg();return wg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function dO(e,t){const n=e.style||{},a={};return uP(a,n,e),Object.assign(a,uO(e,t)),a}function hO(e,t){const n={},a=dO(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=a,n}const dP=()=>({...Sg(),attrs:{}});function fO(e,t,n,a){const o=k.useMemo(()=>{const s=dP();return $1(s,t,W1(a),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};uP(s,e.style,e),o.style={...s,...o.style}}return o}const pO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Cg(e){return typeof e!="string"||e.includes("-")?!1:!!(pO.indexOf(e)>-1||/[A-Z]/u.test(e))}function mO(e,t,n,{latestValues:a},o,s=!1,l){const h=(l??Cg(e)?fO:hO)(t,a,o,e),f=sO(t,typeof e=="string",s),m=e!==k.Fragment?{...f,...h,ref:n}:{},{children:y}=t,v=k.useMemo(()=>an(y)?y.get():y,[y]);return k.createElement(e,{...m,children:v})}function gO({scrapeMotionValuesFromProps:e,createRenderState:t},n,a,o){return{latestValues:yO(n,a,o,e),renderState:t()}}function yO(e,t,n,a){const o={},s=a(e,{});for(const v in s)o[v]=Au(s[v]);let{initial:l,animate:u}=e;const h=Ed(e),f=I1(e);t&&f&&!h&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const y=m?u:l;if(y&&typeof y!="boolean"&&!Td(y)){const v=Array.isArray(y)?y:[y];for(let _=0;_<v.length;_++){const x=fg(e,v[_]);if(x){const{transitionEnd:C,transition:S,...M}=x;for(const R in M){let A=M[R];if(Array.isArray(A)){const E=m?A.length-1:0;A=A[E]}A!==null&&(o[R]=A)}for(const R in C)o[R]=C[R]}}}return o}const hP=e=>(t,n)=>{const a=k.useContext(Ad),o=k.useContext(Sd),s=()=>gO(e,t,a,o);return n?s():Qm(s)},vO=hP({scrapeMotionValuesFromProps:xg,createRenderState:Sg}),bO=hP({scrapeMotionValuesFromProps:K1,createRenderState:dP}),kO=Symbol.for("motionComponentSymbol");function _O(e,t,n){const a=k.useRef(n);k.useInsertionEffect(()=>{a.current=n});const o=k.useRef(null);return k.useCallback(s=>{s&&e.onMount?.(s);const l=a.current;if(typeof l=="function")if(s){const u=l(s);typeof u=="function"&&(o.current=u)}else o.current?(o.current(),o.current=null):l(s);else l&&(l.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const fP=k.createContext({});function Io(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wO(e,t,n,a,o,s){const{visualElement:l}=k.useContext(Ad),u=k.useContext(sP),h=k.useContext(Sd),f=k.useContext(Pg),m=f.reducedMotion,y=f.skipAnimations,v=k.useRef(null),_=k.useRef(!1);a=a||u.renderer,!v.current&&a&&(v.current=a(e,{visualState:t,parent:l,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m,skipAnimations:y,isSVG:s}),_.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const x=v.current,C=k.useContext(fP);x&&!x.projection&&o&&(x.type==="html"||x.type==="svg")&&xO(v.current,n,o,C);const S=k.useRef(!1);k.useInsertionEffect(()=>{x&&S.current&&x.update(n,h)});const M=n[k1],R=k.useRef(!!M&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(M)&&window.MotionHasOptimisedAnimation?.(M));return Dx(()=>{_.current=!0,x&&(S.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),R.current&&x.animationState&&x.animationState.animateChanges())}),k.useEffect(()=>{x&&(!R.current&&x.animationState&&x.animationState.animateChanges(),R.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(M)}),R.current=!1),x.enteringChildren=void 0)}),x}function xO(e,t,n,a){const{layoutId:o,layout:s,drag:l,dragConstraints:u,layoutScroll:h,layoutRoot:f,layoutAnchor:m,layoutCrossfade:y}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:pP(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!l||u&&Io(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:a,crossfade:y,layoutScroll:h,layoutRoot:f,layoutAnchor:m})}function pP(e){if(e)return e.options.allowProjection!==!1?e.projection:pP(e.parent)}function Hf(e,{forwardMotionProps:t=!1,type:n}={},a,o){a&&rO(a);const s=n?n==="svg":Cg(e),l=s?bO:vO;function u(f,m){let y;const v={...k.useContext(Pg),...f,layoutId:PO(f)},{isStatic:_}=v,x=cO(f),C=l(f,_);if(!_&&typeof window<"u"){SO();const S=CO(v);y=S.MeasureLayout,x.visualElement=wO(e,C,v,o,S.ProjectionNode,s)}return T.jsxs(Ad.Provider,{value:x,children:[y&&x.visualElement?T.jsx(y,{visualElement:x.visualElement,...v}):null,mO(e,f,_O(C,x.visualElement,m),C,_,t,s)]})}u.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const h=k.forwardRef(u);return h[kO]=e,h}function PO({layoutId:e}){const t=k.useContext(Xm).id;return t&&e!==void 0?t+"-"+e:e}function SO(e,t){k.useContext(sP).strict}function CO(e){const t=lP(),{drag:n,layout:a}=t;if(!n&&!a)return{};const o={...n,...a};return{MeasureLayout:n?.isEnabled(e)||a?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function TO(e,t){if(typeof Proxy>"u")return Hf;const n=new Map,a=(s,l)=>Hf(s,l,e,t),o=(s,l)=>a(s,l);return new Proxy(o,{get:(s,l)=>l==="create"?a:(n.has(l)||n.set(l,Hf(l,void 0,e,t)),n.get(l))})}const EO=(e,t)=>t.isSVG??Cg(e)?new r5(t):new QN(t,{allowProjection:e!==k.Fragment});class AO extends ai{constructor(t){super(t),t.animationState||(t.animationState=c5(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Td(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let RO=0;class LO extends ai{constructor(){super(...arguments),this.id=RO++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;if(t&&a===!1){if(this.isExitComplete){const{initial:s,custom:l}=this.node.getProps();if(typeof s=="string"){const u=Mi(this.node,s,l);if(u){const{transition:h,transitionEnd:f,...m}=u;for(const y in m)this.node.getValue(y)?.jump(m[y])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const DO={animation:{Feature:AO},exit:{Feature:LO}};function jl(e){return{point:{x:e.pageX,y:e.pageY}}}const IO=e=>t=>yg(t)&&e(t,jl(t));function ll(e,t,n,a){return _l(e,t,IO(n),a)}const mP=({current:e})=>e?e.ownerDocument.defaultView:null,B_=(e,t)=>Math.abs(e-t);function MO(e,t){const n=B_(e.x,t.x),a=B_(e.y,t.y);return Math.sqrt(n**2+a**2)}const z_=new Set(["auto","scroll"]);class gP{constructor(t,n,{transformPagePoint:a,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3,element:u}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=_=>{this.handleScroll(_.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=au(this.lastRawMoveEventInfo,this.transformPagePoint));const _=Wf(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,C=MO(_.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!C)return;const{point:S}=_,{timestamp:M}=nn;this.history.push({...S,timestamp:M});const{onStart:R,onMove:A}=this.handlers;x||(R&&R(this.lastMoveEvent,_),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,_)},this.handlePointerMove=(_,x)=>{this.lastMoveEvent=_,this.lastRawMoveEventInfo=x,this.lastMoveEventInfo=au(x,this.transformPagePoint),gt.update(this.updatePoint,!0)},this.handlePointerUp=(_,x)=>{this.end();const{onEnd:C,onSessionEnd:S,resumeAnimation:M}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&M&&M(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const R=Wf(_.type==="pointercancel"?this.lastMoveEventInfo:au(x,this.transformPagePoint),this.history);this.startEvent&&C&&C(_,R),S&&S(_,R)},!yg(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=a,this.distanceThreshold=l,this.contextWindow=o||window;const h=jl(t),f=au(h,this.transformPagePoint),{point:m}=f,{timestamp:y}=nn;this.history=[{...m,timestamp:y}];const{onSessionStart:v}=n;v&&v(t,Wf(f,this.history)),this.removeListeners=Ml(ll(this.contextWindow,"pointermove",this.handlePointerMove),ll(this.contextWindow,"pointerup",this.handlePointerUp),ll(this.contextWindow,"pointercancel",this.handlePointerUp)),u&&this.startScrollTracking(u)}startScrollTracking(t){let n=t.parentElement;for(;n;){const a=getComputedStyle(n);(z_.has(a.overflowX)||z_.has(a.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const a=t===window,o=a?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:o.x-n.x,y:o.y-n.y};s.x===0&&s.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,o),gt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ei(this.updatePoint)}}function au(e,t){return t?{point:t(e.point)}:e}function F_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Wf({point:e},t){return{point:e,delta:F_(e,yP(t)),offset:F_(e,NO(t)),velocity:OO(t,.1)}}function NO(e){return e[0]}function yP(e){return e[e.length-1]}function OO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,a=null;const o=yP(e);for(;n>=0&&(a=e[n],!(o.timestamp-a.timestamp>Hn(t)));)n--;if(!a)return{x:0,y:0};a===e[0]&&e.length>2&&o.timestamp-a.timestamp>Hn(t)*2&&(a=e[1]);const s=ta(o.timestamp-a.timestamp);if(s===0)return{x:0,y:0};const l={x:(o.x-a.x)/s,y:(o.y-a.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function jO(e,{min:t,max:n},a){return t!==void 0&&e<t?e=a?xt(t,e,a.min):Math.max(e,t):n!==void 0&&e>n&&(e=a?xt(n,e,a.max):Math.min(e,n)),e}function V_(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function UO(e,{top:t,left:n,bottom:a,right:o}){return{x:V_(e.x,n,o),y:V_(e.y,t,a)}}function $_(e,t){let n=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,a]=[a,n]),{min:n,max:a}}function BO(e,t){return{x:$_(e.x,t.x),y:$_(e.y,t.y)}}function zO(e,t){let n=.5;const a=kn(e),o=kn(t);return o>a?n=vl(t.min,t.max-a,e.min):a>o&&(n=vl(e.min,e.max-o,t.min)),Wa(0,1,n)}function FO(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Kp=.35;function VO(e=Kp){return e===!1?e=0:e===!0&&(e=Kp),{x:H_(e,"left","right"),y:H_(e,"top","bottom")}}function H_(e,t,n){return{min:W_(e,t),max:W_(e,n)}}function W_(e,t){return typeof e=="number"?e:e[t]||0}const $O=new WeakMap;class HO{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:a}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=y=>{n&&this.snapToCursor(jl(y).point),this.stopAnimation()},l=(y,v)=>{const{drag:_,dragPropagation:x,onDragStart:C}=this.getProps();if(_&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vN(_),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Oa(M=>{let R=this.getAxisMotionValue(M).get()||0;if(za.test(R)){const{projection:A}=this.visualElement;if(A&&A.layout){const E=A.layout.layoutBox[M];E&&(R=kn(E)*(parseFloat(R)/100))}}this.originPoint[M]=R}),C&&gt.update(()=>C(y,v),!1,!0),Up(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},u=(y,v)=>{this.latestPointerEvent=y,this.latestPanInfo=v;const{dragPropagation:_,dragDirectionLock:x,onDirectionLock:C,onDrag:S}=this.getProps();if(!_&&!this.openDragLock)return;const{offset:M}=v;if(x&&this.currentDirection===null){this.currentDirection=KO(M),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",v.point,M),this.updateAxis("y",v.point,M),this.visualElement.render(),S&&gt.update(()=>S(y,v),!1,!0)},h=(y,v)=>{this.latestPointerEvent=y,this.latestPanInfo=v,this.stop(y,v),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>{const{dragSnapToOrigin:y}=this.getProps();(y||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new gP(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:h,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:a,contextWindow:mP(this.visualElement),element:this.visualElement.current})}stop(t,n){const a=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!a)return;const{velocity:l}=o;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&gt.postRender(()=>u(a,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,a){const{drag:o}=this.getProps();if(!a||!ru(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(l=jO(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Io(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=UO(a.layoutBox,t):this.constraints=!1,this.elastic=VO(n),o!==this.constraints&&!Io(t)&&a&&this.constraints&&!this.hasMutatedConstraints&&Oa(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=FO(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Io(t))return!1;const a=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=KN(a,o.root,this.visualElement.getTransformPagePoint());let l=BO(o.layout.layoutBox,s);if(n){const u=n($N(l));this.hasMutatedConstraints=!!u,u&&(l=j1(u))}return l}startAnimation(t){const{drag:n,dragMomentum:a,dragElastic:o,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),h=this.constraints||{},f=Oa(m=>{if(!ru(m,n,this.currentDirection))return;let y=h&&h[m]||{};(l===!0||l===m)&&(y={min:0,max:0});const v=o?200:1e6,_=o?40:1e7,x={type:"inertia",velocity:a?t[m]:0,bounceStiffness:v,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...s,...y};return this.startAxisValueAnimation(m,x)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const a=this.getAxisMotionValue(t);return Up(this.visualElement,t),a.start(hg(t,a,0,n,this.visualElement,!1))}stopAnimation(){Oa(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),o=a[n];return o||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){Oa(n=>{const{drag:a}=this.getProps();if(!ru(n,a,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:u}=o.layout.layoutBox[n],h=s.get()||0;s.set(t[n]-xt(l,u,.5)+h)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:a}=this.visualElement;if(!Io(n)||!a||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Oa(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const h=u.get();o[l]=zO({min:h,max:h},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.constraints=!1,this.resolveConstraints(),Oa(l=>{if(!ru(l,t,null))return;const u=this.getAxisMotionValue(l),{min:h,max:f}=this.constraints[l];u.set(xt(h,f,o[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;$O.set(this.visualElement,this);const t=this.visualElement.current,n=ll(t,"pointerdown",f=>{const{drag:m,dragListener:y=!0}=this.getProps(),v=f.target,_=v!==t&&PN(v);m&&y&&!_&&this.start(f)});let a;const o=()=>{const{dragConstraints:f}=this.getProps();Io(f)&&f.current&&(this.constraints=this.resolveRefConstraints(),a||(a=WO(t,f.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,l=s.addEventListener("measure",o);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),gt.read(o);const u=_l(window,"resize",()=>this.scalePositionWithinConstraints()),h=s.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:m})=>{this.isDragging&&m&&(Oa(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=f[y].translate,v.set(v.get()+f[y].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),h&&h(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:a=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:l=Kp,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:a,dragPropagation:o,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function K_(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function WO(e,t,n){const a=Jk(e,K_(n)),o=Jk(t,K_(n));return()=>{a(),o()}}function ru(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function KO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class GO extends ai{constructor(t){super(t),this.removeGroupControls=aa,this.removeListeners=aa,this.controls=new HO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||aa}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Kf=e=>(t,n)=>{e&&gt.update(()=>e(t,n),!1,!0)};class qO extends ai{constructor(){super(...arguments),this.removePointerDownListener=aa}onPointerDown(t){this.session=new gP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:a,onPanEnd:o}=this.node.getProps();return{onSessionStart:Kf(t),onStart:Kf(n),onMove:Kf(a),onEnd:(s,l)=>{delete this.session,o&&gt.postRender(()=>o(s,l))}}}mount(){this.removePointerDownListener=ll(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Gf=!1;class YO extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a,layoutId:o}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),a&&a.register&&o&&a.register(s),Gf&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ru.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:a,drag:o,isPresent:s}=this.props,{projection:l}=a;return l&&(l.isPresent=s,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),Gf=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||gt.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:a}=t;a&&(a.options.layoutAnchor=n,a.root.didUpdate(),gg.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a}=this.props,{projection:o}=t;Gf=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),a&&a.deregister&&a.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function vP(e){const[t,n]=iP(),a=k.useContext(Xm);return T.jsx(YO,{...e,layoutGroup:a,switchLayoutGroup:k.useContext(fP),isPresent:t,safeToRemove:n})}const ZO={pan:{Feature:qO},drag:{Feature:GO,ProjectionNode:rP,MeasureLayout:vP}};function G_(e,t,n){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=a[o];s&&gt.postRender(()=>s(t,jl(t)))}class XO extends ai{mount(){const{current:t}=this.node;t&&(this.unmount=kN(t,(n,a)=>(G_(this.node,a,"Start"),o=>G_(this.node,o,"End"))))}unmount(){}}class QO extends ai{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ml(_l(this.node.current,"focus",()=>this.onFocus()),_l(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function q_(e,t,n){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=a[o];s&&gt.postRender(()=>s(t,jl(t)))}class JO extends ai{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:a}=this.node.props;this.unmount=CN(t,(o,s)=>(q_(this.node,s,"Start"),(l,{success:u})=>q_(this.node,l,u?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:a?.tap===!1})}unmount(){}}const Gp=new WeakMap,qf=new WeakMap,e6=e=>{const t=Gp.get(e.target);t&&t(e)},t6=e=>{e.forEach(e6)};function n6({root:e,...t}){const n=e||document;qf.has(n)||qf.set(n,{});const a=qf.get(n),o=JSON.stringify(t);return a[o]||(a[o]=new IntersectionObserver(t6,{root:e,...t})),a[o]}function a6(e,t,n){const a=n6(t);return Gp.set(e,n),a.observe(e),()=>{Gp.delete(e),a.unobserve(e)}}const r6={some:0,all:1};class i6 extends ai{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:a,amount:o="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:a,threshold:typeof o=="number"?o:r6[o]},u=h=>{const{isIntersecting:f}=h;if(this.isInView===f||(this.isInView=f,s&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:m,onViewportLeave:y}=this.node.getProps(),v=f?m:y;v&&v(h)};this.stopObserver=a6(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(o6(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function o6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const s6={inView:{Feature:i6},tap:{Feature:JO},focus:{Feature:QO},hover:{Feature:XO}},l6={layout:{ProjectionNode:rP,MeasureLayout:vP}},c6={...DO,...s6,...ZO,...l6},cl=TO(c6,EO);function u6(){!_g.current&&M1();const[e]=k.useState(nd.current);return e}function bP(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=bP(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function d6(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=bP(e))&&(a&&(a+=" "),a+=t);return a}const h6=(e,t)=>{const n=new Array(e.length+t.length);for(let a=0;a<e.length;a++)n[a]=e[a];for(let a=0;a<t.length;a++)n[e.length+a]=t[a];return n},f6=(e,t)=>({classGroupId:e,validator:t}),kP=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),sd="-",Y_=[],p6="arbitrary..",m6=e=>{const t=y6(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return g6(l);const u=l.split(sd),h=u[0]===""&&u.length>1?1:0;return _P(u,h,t)},getConflictingClassGroupIds:(l,u)=>{if(u){const h=a[l],f=n[l];return h?f?h6(f,h):h:f||Y_}return n[l]||Y_}}},_P=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const f=_P(e,t+1,s);if(f)return f}const l=n.validators;if(l===null)return;const u=t===0?e.join(sd):e.slice(t).join(sd),h=l.length;for(let f=0;f<h;f++){const m=l[f];if(m.validator(u))return m.classGroupId}},g6=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),a=t.slice(0,n);return a?p6+a:void 0})(),y6=e=>{const{theme:t,classGroups:n}=e;return v6(n,t)},v6=(e,t)=>{const n=kP();for(const a in e){const o=e[a];Tg(o,n,a,t)}return n},Tg=(e,t,n,a)=>{const o=e.length;for(let s=0;s<o;s++){const l=e[s];b6(l,t,n,a)}},b6=(e,t,n,a)=>{if(typeof e=="string"){k6(e,t,n);return}if(typeof e=="function"){_6(e,t,n,a);return}w6(e,t,n,a)},k6=(e,t,n)=>{const a=e===""?t:wP(t,e);a.classGroupId=n},_6=(e,t,n,a)=>{if(x6(e)){Tg(e(a),t,n,a);return}t.validators===null&&(t.validators=[]),t.validators.push(f6(n,e))},w6=(e,t,n,a)=>{const o=Object.entries(e),s=o.length;for(let l=0;l<s;l++){const[u,h]=o[l];Tg(h,wP(t,u),n,a)}},wP=(e,t)=>{let n=e;const a=t.split(sd),o=a.length;for(let s=0;s<o;s++){const l=a[s];let u=n.nextPart.get(l);u||(u=kP(),n.nextPart.set(l,u)),n=u}return n},x6=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,P6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),a=Object.create(null);const o=(s,l)=>{n[s]=l,t++,t>e&&(t=0,a=n,n=Object.create(null))};return{get(s){let l=n[s];if(l!==void 0)return l;if((l=a[s])!==void 0)return o(s,l),l},set(s,l){s in n?n[s]=l:o(s,l)}}},qp="!",Z_=":",S6=[],X_=(e,t,n,a,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:a,isExternal:o}),C6=e=>{const{prefix:t,experimentalParseClassName:n}=e;let a=o=>{const s=[];let l=0,u=0,h=0,f;const m=o.length;for(let C=0;C<m;C++){const S=o[C];if(l===0&&u===0){if(S===Z_){s.push(o.slice(h,C)),h=C+1;continue}if(S==="/"){f=C;continue}}S==="["?l++:S==="]"?l--:S==="("?u++:S===")"&&u--}const y=s.length===0?o:o.slice(h);let v=y,_=!1;y.endsWith(qp)?(v=y.slice(0,-1),_=!0):y.startsWith(qp)&&(v=y.slice(1),_=!0);const x=f&&f>h?f-h:void 0;return X_(s,_,v,x)};if(t){const o=t+Z_,s=a;a=l=>l.startsWith(o)?s(l.slice(o.length)):X_(S6,!1,l,void 0,!0)}if(n){const o=a;a=s=>n({className:s,parseClassName:o})}return a},T6=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,a)=>{t.set(n,1e6+a)}),n=>{const a=[];let o=[];for(let s=0;s<n.length;s++){const l=n[s],u=l[0]==="[",h=t.has(l);u||h?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(l)):o.push(l)}return o.length>0&&(o.sort(),a.push(...o)),a}},E6=e=>({cache:P6(e.cacheSize),parseClassName:C6(e),sortModifiers:T6(e),...m6(e)}),A6=/\s+/,R6=(e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:s}=t,l=[],u=e.trim().split(A6);let h="";for(let f=u.length-1;f>=0;f-=1){const m=u[f],{isExternal:y,modifiers:v,hasImportantModifier:_,baseClassName:x,maybePostfixModifierPosition:C}=n(m);if(y){h=m+(h.length>0?" "+h:h);continue}let S=!!C,M=a(S?x.substring(0,C):x);if(!M){if(!S){h=m+(h.length>0?" "+h:h);continue}if(M=a(x),!M){h=m+(h.length>0?" "+h:h);continue}S=!1}const R=v.length===0?"":v.length===1?v[0]:s(v).join(":"),A=_?R+qp:R,E=A+M;if(l.indexOf(E)>-1)continue;l.push(E);const B=o(M,S);for(let $=0;$<B.length;++$){const V=B[$];l.push(A+V)}h=m+(h.length>0?" "+h:h)}return h},L6=(...e)=>{let t=0,n,a,o="";for(;t<e.length;)(n=e[t++])&&(a=xP(n))&&(o&&(o+=" "),o+=a);return o},xP=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=xP(e[a]))&&(n&&(n+=" "),n+=t);return n},D6=(e,...t)=>{let n,a,o,s;const l=h=>{const f=t.reduce((m,y)=>y(m),e());return n=E6(f),a=n.cache.get,o=n.cache.set,s=u,u(h)},u=h=>{const f=a(h);if(f)return f;const m=R6(h,n);return o(h,m),m};return s=l,(...h)=>s(L6(...h))},I6=[],Ht=e=>{const t=n=>n[e]||I6;return t.isThemeGetter=!0,t},PP=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,SP=/^\((?:(\w[\w-]*):)?(.+)\)$/i,M6=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,N6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,O6=/\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$/,j6=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,U6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,B6=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zr=e=>M6.test(e),Xe=e=>!!e&&!Number.isNaN(Number(e)),Fr=e=>!!e&&Number.isInteger(Number(e)),Yf=e=>e.endsWith("%")&&Xe(e.slice(0,-1)),lr=e=>N6.test(e),CP=()=>!0,z6=e=>O6.test(e)&&!j6.test(e),Eg=()=>!1,F6=e=>U6.test(e),V6=e=>B6.test(e),$6=e=>!Pe(e)&&!Ce(e),H6=e=>ri(e,AP,Eg),Pe=e=>PP.test(e),Pi=e=>ri(e,RP,z6),Q_=e=>ri(e,Q6,Xe),W6=e=>ri(e,DP,CP),K6=e=>ri(e,LP,Eg),J_=e=>ri(e,TP,Eg),G6=e=>ri(e,EP,V6),iu=e=>ri(e,IP,F6),Ce=e=>SP.test(e),Ws=e=>Ki(e,RP),q6=e=>Ki(e,LP),e0=e=>Ki(e,TP),Y6=e=>Ki(e,AP),Z6=e=>Ki(e,EP),ou=e=>Ki(e,IP,!0),X6=e=>Ki(e,DP,!0),ri=(e,t,n)=>{const a=PP.exec(e);return a?a[1]?t(a[1]):n(a[2]):!1},Ki=(e,t,n=!1)=>{const a=SP.exec(e);return a?a[1]?t(a[1]):n:!1},TP=e=>e==="position"||e==="percentage",EP=e=>e==="image"||e==="url",AP=e=>e==="length"||e==="size"||e==="bg-size",RP=e=>e==="length",Q6=e=>e==="number",LP=e=>e==="family-name",DP=e=>e==="number"||e==="weight",IP=e=>e==="shadow",J6=()=>{const e=Ht("color"),t=Ht("font"),n=Ht("text"),a=Ht("font-weight"),o=Ht("tracking"),s=Ht("leading"),l=Ht("breakpoint"),u=Ht("container"),h=Ht("spacing"),f=Ht("radius"),m=Ht("shadow"),y=Ht("inset-shadow"),v=Ht("text-shadow"),_=Ht("drop-shadow"),x=Ht("blur"),C=Ht("perspective"),S=Ht("aspect"),M=Ht("ease"),R=Ht("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...E(),Ce,Pe],$=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],P=()=>[Ce,Pe,h],Z=()=>[zr,"full","auto",...P()],X=()=>[Fr,"none","subgrid",Ce,Pe],fe=()=>["auto",{span:["full",Fr,Ce,Pe]},Fr,Ce,Pe],he=()=>[Fr,"auto",Ce,Pe],J=()=>["auto","min","max","fr",Ce,Pe],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...P()],ie=()=>[zr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],F=()=>[zr,"screen","full","dvw","lvw","svw","min","max","fit",...P()],Y=()=>[zr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],z=()=>[e,Ce,Pe],I=()=>[...E(),e0,J_,{position:[Ce,Pe]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ge=()=>["auto","cover","contain",Y6,H6,{size:[Ce,Pe]}],pe=()=>[Yf,Ws,Pi],me=()=>["","none","full",f,Ce,Pe],be=()=>["",Xe,Ws,Pi],Be=()=>["solid","dashed","dotted","double"],Ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ne=()=>[Xe,Yf,e0,J_],Rt=()=>["","none",x,Ce,Pe],Mn=()=>["none",Xe,Ce,Pe],Pn=()=>["none",Xe,Ce,Pe],mt=()=>[Xe,Ce,Pe],Jt=()=>[zr,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[lr],breakpoint:[lr],color:[CP],container:[lr],"drop-shadow":[lr],ease:["in","out","in-out"],font:[$6],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[lr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[lr],shadow:[lr],spacing:["px",Xe],text:[lr],"text-shadow":[lr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zr,Pe,Ce,S]}],container:["container"],columns:[{columns:[Xe,Pe,Ce,u]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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"],sr:["sr-only","not-sr-only"],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:B()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Fr,"auto",Ce,Pe]}],basis:[{basis:[zr,"full","auto",u,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Xe,zr,"auto","initial","none",Pe]}],grow:[{grow:["",Xe,Ce,Pe]}],shrink:[{shrink:["",Xe,Ce,Pe]}],order:[{order:[Fr,"first","last","none",Ce,Pe]}],"grid-cols":[{"grid-cols":X()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":X()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mbs:[{mbs:Q()}],mbe:[{mbe:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:ie()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...Y()]}],"min-block-size":[{"min-block":["auto",...Y()]}],"max-block-size":[{"max-block":["none",...Y()]}],w:[{w:[u,"screen",...ie()]}],"min-w":[{"min-w":[u,"screen","none",...ie()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...ie()]}],h:[{h:["screen","lh",...ie()]}],"min-h":[{"min-h":["screen","lh","none",...ie()]}],"max-h":[{"max-h":["screen","lh",...ie()]}],"font-size":[{text:["base",n,Ws,Pi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,X6,W6]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yf,Pe]}],"font-family":[{font:[q6,K6,t]}],"font-features":[{"font-features":[Pe]}],"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:[o,Ce,Pe]}],"line-clamp":[{"line-clamp":[Xe,"none",Ce,Q_]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",Ce,Pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ce,Pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Be(),"wavy"]}],"text-decoration-thickness":[{decoration:[Xe,"from-font","auto",Ce,Pi]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[Xe,"auto",Ce,Pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce,Pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce,Pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fr,Ce,Pe],radial:["",Ce,Pe],conic:[Fr,Ce,Pe]},Z6,G6]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:pe()}],"gradient-via-pos":[{via:pe()}],"gradient-to-pos":[{to:pe()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:be()}],"border-w-x":[{"border-x":be()}],"border-w-y":[{"border-y":be()}],"border-w-s":[{"border-s":be()}],"border-w-e":[{"border-e":be()}],"border-w-bs":[{"border-bs":be()}],"border-w-be":[{"border-be":be()}],"border-w-t":[{"border-t":be()}],"border-w-r":[{"border-r":be()}],"border-w-b":[{"border-b":be()}],"border-w-l":[{"border-l":be()}],"divide-x":[{"divide-x":be()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":be()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Be(),"hidden","none"]}],"divide-style":[{divide:[...Be(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-bs":[{"border-bs":z()}],"border-color-be":[{"border-be":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...Be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Xe,Ce,Pe]}],"outline-w":[{outline:["",Xe,Ws,Pi]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",m,ou,iu]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",y,ou,iu]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:be()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[Xe,Pi]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":be()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",v,ou,iu]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[Xe,Ce,Pe]}],"mix-blend":[{"mix-blend":[...Ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ne()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":Ne()}],"mask-image-t-to-pos":[{"mask-t-to":Ne()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":Ne()}],"mask-image-r-to-pos":[{"mask-r-to":Ne()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":Ne()}],"mask-image-b-to-pos":[{"mask-b-to":Ne()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":Ne()}],"mask-image-l-to-pos":[{"mask-l-to":Ne()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":Ne()}],"mask-image-x-to-pos":[{"mask-x-to":Ne()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":Ne()}],"mask-image-y-to-pos":[{"mask-y-to":Ne()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[Ce,Pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ne()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[Xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ne()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ce,Pe]}],filter:[{filter:["","none",Ce,Pe]}],blur:[{blur:Rt()}],brightness:[{brightness:[Xe,Ce,Pe]}],contrast:[{contrast:[Xe,Ce,Pe]}],"drop-shadow":[{"drop-shadow":["","none",_,ou,iu]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",Xe,Ce,Pe]}],"hue-rotate":[{"hue-rotate":[Xe,Ce,Pe]}],invert:[{invert:["",Xe,Ce,Pe]}],saturate:[{saturate:[Xe,Ce,Pe]}],sepia:[{sepia:["",Xe,Ce,Pe]}],"backdrop-filter":[{"backdrop-filter":["","none",Ce,Pe]}],"backdrop-blur":[{"backdrop-blur":Rt()}],"backdrop-brightness":[{"backdrop-brightness":[Xe,Ce,Pe]}],"backdrop-contrast":[{"backdrop-contrast":[Xe,Ce,Pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Xe,Ce,Pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Xe,Ce,Pe]}],"backdrop-invert":[{"backdrop-invert":["",Xe,Ce,Pe]}],"backdrop-opacity":[{"backdrop-opacity":[Xe,Ce,Pe]}],"backdrop-saturate":[{"backdrop-saturate":[Xe,Ce,Pe]}],"backdrop-sepia":[{"backdrop-sepia":["",Xe,Ce,Pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ce,Pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Xe,"initial",Ce,Pe]}],ease:[{ease:["linear","initial",M,Ce,Pe]}],delay:[{delay:[Xe,Ce,Pe]}],animate:[{animate:["none",R,Ce,Pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,Ce,Pe]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:Mn()}],"rotate-x":[{"rotate-x":Mn()}],"rotate-y":[{"rotate-y":Mn()}],"rotate-z":[{"rotate-z":Mn()}],scale:[{scale:Pn()}],"scale-x":[{"scale-x":Pn()}],"scale-y":[{"scale-y":Pn()}],"scale-z":[{"scale-z":Pn()}],"scale-3d":["scale-3d"],skew:[{skew:mt()}],"skew-x":[{"skew-x":mt()}],"skew-y":[{"skew-y":mt()}],transform:[{transform:[Ce,Pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Jt()}],"translate-x":[{"translate-x":Jt()}],"translate-y":[{"translate-y":Jt()}],"translate-z":[{"translate-z":Jt()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Ce,Pe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",Ce,Pe]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[Xe,Ws,Pi,Q_]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ej=D6(J6);function Qt(...e){return ej(d6(e))}const tj=T.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:[T.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1Z",fill:"#4285F4"}),T.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23Z",fill:"#34A853"}),T.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A10.96 10.96 0 0 0 1 12c0 1.77.42 3.44 1.18 4.93l3.66-2.84Z",fill:"#FBBC05"}),T.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53Z",fill:"#EA4335"})]}),nj=T.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:T.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12Z"})}),aj={google:tj,github:nj},rj={google:"Google",github:"GitHub",microsoft:"Microsoft",discord:"Discord",apple:"Apple"};function ij(e){return rj[e]||String(e||"").replace(/-/g," ")}function oj({title:e,subtitle:t,className:n="",onSuccess:a,hideLogo:o=!1}){Pd();const{enabled:s,signedIn:l,refreshUser:u,signInWithPassword:h,signUp:f,signInWithOAuth:m,getPublicAuthConfig:y}=Il(),[v,_]=k.useState("signin"),[x,C]=k.useState(""),[S,M]=k.useState(""),[R,A]=k.useState(""),[E,B]=k.useState(!1),[$,V]=k.useState(null),[P,Z]=k.useState(null),[X,fe]=k.useState(!1),[he,J]=k.useState(!0),[re,ue]=k.useState([]),[Q,ie]=k.useState(8);k.useEffect(()=>{if(!s)return;let I=!0;return J(!0),(async()=>{const{data:W,error:ge}=await y();if(I){if(ge||!W)ue(["google","github"]);else{const pe=Array.isArray(W.oAuthProviders)?W.oAuthProviders:[],me=Array.isArray(W.customOAuthProviders)?W.customOAuthProviders:[];ue([...pe,...me]),typeof W.passwordMinLength=="number"&&W.passwordMinLength>0&&ie(W.passwordMinLength)}J(!1)}})(),()=>{I=!1}},[s,y]),k.useEffect(()=>{l&&a&&a()},[l,a]);const F=k.useMemo(()=>typeof window>"u"?"":!!window.webkit?.messageHandlers?.nativeOAuth?`${window.location.origin}/auth/callback`:`${window.location.origin}/`,[]),Y=k.useCallback(async I=>{V(null),B(!0);try{const{error:W}=await m(I,F);W&&V(W.message||String(W))}finally{B(!1)}},[m,F]),z=k.useCallback(async I=>{I.preventDefault(),V(null),B(!0);try{if(v==="signup"){const{data:ge,error:pe}=await f({email:x.trim(),password:S,name:R.trim()||void 0});if(pe){V(pe.message||String(pe));return}if(ge?.requireEmailVerification){Z(Ie("login.verify_email_pending")),_("signin");return}await u();return}const{error:W}=await h({email:x.trim(),password:S});if(W){V(W.message||String(W));return}await u()}finally{B(!1)}},[v,x,S,R,f,h,u]);return s?T.jsxs("div",{className:Qt("w-full bg-white dark:bg-oai-gray-950 p-6 transition-colors duration-200",n),children:[T.jsxs("div",{className:"text-center mb-6",children:[!o&&T.jsxs("div",{className:"flex items-center justify-center gap-2 mb-2",children:[T.jsx("img",{src:"/app-icon.png",alt:"",width:28,height:28,className:"rounded-md"}),T.jsx("span",{className:"text-lg font-semibold text-oai-black dark:text-white font-oai tracking-tight",children:Ie("shared.app_name")})]}),T.jsx("h2",{className:Qt("text-sm font-semibold text-oai-black dark:text-white tracking-tight mb-1",o&&"text-base font-bold md:text-lg"),children:e||Ie("login_modal.subtitle")}),t&&T.jsx("p",{className:"text-xs text-oai-gray-500 dark:text-oai-gray-400 mt-1.5 leading-relaxed max-w-[320px] mx-auto",children:t})]}),P&&T.jsx("div",{className:"mb-4 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900/50 px-3 py-2 text-xs text-oai-gray-700 dark:text-oai-gray-300",children:P}),$&&T.jsx("p",{className:"mb-4 text-sm text-red-500 dark:text-red-400 text-center",role:"alert",children:$}),T.jsx("div",{className:"space-y-2.5 mb-5",children:he?T.jsxs("div",{className:"space-y-2.5",children:[T.jsx("div",{className:"h-10 rounded-lg bg-oai-gray-100 dark:bg-oai-gray-900/50 animate-pulse"}),T.jsx("div",{className:"h-10 rounded-lg bg-oai-gray-100 dark:bg-oai-gray-900/50 animate-pulse"})]}):re.map(I=>T.jsxs("button",{type:"button",disabled:E,onClick:()=>Y(I),className:Qt("w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-700 bg-oai-gray-50 dark:bg-oai-gray-900 text-sm font-medium text-oai-black dark:text-white","hover:bg-oai-gray-100 dark:hover:bg-oai-gray-800 hover:border-oai-gray-300 dark:hover:border-oai-gray-600 transition-colors disabled:opacity-50","flex items-center justify-center gap-2.5"),children:[aj[I]||null,Ie("login.oauth.continue",{provider:ij(I)})]},I))}),X?T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"relative mb-5",children:[T.jsx("div",{className:"absolute inset-0 flex items-center",children:T.jsx("span",{className:"w-full border-t border-oai-gray-200 dark:border-oai-gray-800"})}),T.jsx("div",{className:"relative flex justify-center text-xs uppercase tracking-wider",children:T.jsx("span",{className:"bg-white dark:bg-oai-gray-950 px-3 text-oai-gray-400 dark:text-oai-gray-600",children:Ie("login_modal.divider_email")})})]}),T.jsxs("div",{className:"flex rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 p-0.5 bg-oai-gray-50 dark:bg-oai-gray-900/50 mb-4",children:[T.jsx("button",{type:"button",className:Qt("flex-1 py-1.5 text-xs font-medium rounded-md transition-colors",v==="signin"?"bg-white dark:bg-oai-gray-800 text-oai-black dark:text-white shadow-sm":"text-oai-gray-500 hover:text-oai-gray-700 dark:hover:text-oai-gray-300"),onClick:()=>{_("signin"),V(null)},children:Ie("login.tab.sign_in")}),T.jsx("button",{type:"button",className:Qt("flex-1 py-1.5 text-xs font-medium rounded-md transition-colors",v==="signup"?"bg-white dark:bg-oai-gray-800 text-oai-black dark:text-white shadow-sm":"text-oai-gray-500 hover:text-oai-gray-700 dark:hover:text-oai-gray-300"),onClick:()=>{_("signup"),V(null)},children:Ie("login.tab.sign_up")})]}),T.jsxs("form",{onSubmit:z,className:"space-y-3",children:[v==="signup"&&T.jsxs("div",{children:[T.jsx("label",{htmlFor:"card-name",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:Ie("login.field.name")}),T.jsx("input",{id:"card-name",type:"text",autoComplete:"name",value:R,onChange:I=>A(I.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500",placeholder:Ie("login.field.name_placeholder")})]}),T.jsxs("div",{children:[T.jsx("label",{htmlFor:"card-email",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:Ie("login.field.email")}),T.jsx("input",{id:"card-email",type:"email",autoComplete:"email",required:!0,value:x,onChange:I=>C(I.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]}),T.jsxs("div",{children:[T.jsx("label",{htmlFor:"card-password",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:Ie("login.field.password")}),T.jsx("input",{id:"card-password",type:"password",autoComplete:v==="signup"?"new-password":"current-password",required:!0,minLength:v==="signup"?Q:void 0,value:S,onChange:I=>M(I.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"}),v==="signup"&&T.jsx("p",{className:"mt-1 text-xs text-oai-gray-400 dark:text-oai-gray-600",children:Ie("login.password_hint",{min:String(Q)})})]}),T.jsx("button",{type:"submit",disabled:E,className:"w-full h-10 rounded-lg bg-oai-gray-900 dark:bg-white text-white dark:text-oai-gray-950 text-sm font-semibold hover:bg-oai-gray-800 dark:hover:bg-oai-gray-100 transition-colors disabled:opacity-50",children:Ie(v==="signup"?"login.submit.sign_up":"login.submit.sign_in")})]})]}):T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"relative mb-5",children:[T.jsx("div",{className:"absolute inset-0 flex items-center",children:T.jsx("span",{className:"w-full border-t border-oai-gray-200 dark:border-oai-gray-800"})}),T.jsx("div",{className:"relative flex justify-center text-xs uppercase tracking-wider",children:T.jsx("span",{className:"bg-white dark:bg-oai-gray-950 px-3 text-oai-gray-400 dark:text-oai-gray-600",children:Ie("login.divider")})})]}),T.jsxs("button",{type:"button",onClick:()=>fe(!0),className:Qt("w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-700 bg-oai-gray-50 dark:bg-oai-gray-900 text-sm font-medium text-oai-black dark:text-white","hover:bg-oai-gray-100 dark:hover:bg-oai-gray-800 hover:border-oai-gray-300 dark:hover:border-oai-gray-600 transition-colors","flex items-center justify-center gap-2.5"),children:[T.jsx(zI,{className:"h-[18px] w-[18px] text-oai-gray-500 dark:text-oai-gray-400",strokeWidth:1.75}),Ie("login_modal.continue_email")]})]})]}):null}function sj(){const{isOpen:e,closeLoginModal:t}=hM(),{enabled:n}=Il();return k.useEffect(()=>{if(!e)return;const a=o=>{o.key==="Escape"&&t()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,t]),n?T.jsx(oP,{children:e&&T.jsxs(cl.div,{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[T.jsx(cl.div,{className:"absolute inset-0 bg-black/40 dark:bg-black/60",onClick:t,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),T.jsxs(cl.div,{className:"relative w-full max-w-[420px] rounded-2xl border border-oai-gray-200 dark:border-oai-gray-800 bg-white dark:bg-oai-gray-950 shadow-2xl overflow-hidden",initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.2},onClick:a=>a.stopPropagation(),children:[T.jsx("button",{type:"button",onClick:t,className:"absolute right-4 top-4 z-10 text-oai-gray-400 dark:text-oai-gray-500 hover:text-oai-black dark:hover:text-white transition-colors",children:T.jsx(Zm,{className:"h-5 w-5"})}),T.jsx(oj,{onSuccess:t,className:"p-6 bg-transparent"})]})]})}):null}const lj={},d7="https://tokentracker.statuspage.io/";function cj(){if(typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"))return"";const t=typeof import.meta<"u"?lj:void 0;return(t?.VITE_TOKENTRACKER_BACKEND_BASE_URL||t?.VITE_INSFORGE_BASE_URL||hr()).trim()}function uj(){return hr()}function dj(e=""){if(typeof e!="string"||e.length===0)return!1;const t=new URLSearchParams(e),n=String(t.get("screenshot")||"").toLowerCase();return n==="1"||n==="true"}const hj=300*1e3,fj=720*60*1e3;function Ag(e){return typeof e=="string"&&/^https?:\/\//i.test(e.trim())}function pj(e,t=Date.now()){if(!e?.token||!e?.deviceId||!e?.issuedAt)return!0;const n=Date.parse(e.issuedAt);return Number.isFinite(n)?n+fj<=t:!0}async function MP(e,t){const n=hr();if(!Ag(n)||!e)return;const a=n.replace(/\/$/,""),o=Al(),s={Accept:"application/json","Content-Type":"application/json",Authorization:`Bearer ${e}`};o&&(s.apikey=o);try{await fetch(`${a}/functions/tokentracker-leaderboard-refresh`,{method:"POST",headers:s,body:JSON.stringify({period:"week",source:t})})}catch{}}async function mj(e){const t=hr();if(!Ag(t)||!e)return null;const n=t.replace(/\/$/,""),a=Al(),o={Accept:"application/json","Content-Type":"application/json",Authorization:`Bearer ${e}`};a&&(o.apikey=a);const s=typeof navigator<"u"&&typeof navigator.platform=="string"?navigator.platform:"web",l=await fetch(`${n}/functions/tokentracker-device-token-issue`,{method:"POST",headers:o,body:JSON.stringify({device_name:"Token Tracker (dashboard)",platform:s})});if(!l.ok)return null;const u=await l.json().catch(()=>null),h=typeof u?.token=="string"?u.token:null,f=typeof u?.device_id=="string"?u.device_id:null;return!h||!f?null:{token:h,deviceId:f,issuedAt:typeof u?.created_at=="string"?u.created_at:new Date().toISOString()}}async function t0(e){const{deviceToken:t,insforgeBaseUrl:n}=e,a={deviceToken:t},o=n||hr();Ag(o)&&(a.insforgeBaseUrl=o.trim());const s=await wd(),l=await fetch("/functions/tokentracker-local-sync",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",...s},body:JSON.stringify(a)}),u=await l.json().catch(()=>({}));if(!l.ok){const h=typeof u.error=="string"?u.error:`HTTP ${l.status}`;throw new Error(h)}return u}async function n0(e){const t=await e();if(!t)return null;const n=qw();if(n&&!pj(n))return n;const a=await mj(t);return a?(mL(a),a):null}async function NP(e){let t=await e();if(!t)return null;let n=await n0(async()=>t);if(!n)return t;try{return await t0({deviceToken:n.token,insforgeBaseUrl:hr()}),t}catch(a){if(!qw()||(Yw(),t=await e(),!t)||(n=await n0(async()=>t),!n))throw a;return await t0({deviceToken:n.token,insforgeBaseUrl:hr()}),t}}async function gj(e){const t=gL();if(Date.now()-t<hj)return;const n=await NP(e);n&&(Zw(Date.now()),await MP(n,"cloud-sync-auto"))}async function h7(e){const t=await NP(e);t&&(Zw(Date.now()),await MP(t,"cloud-sync-now"))}function yj(e){const t=e.replace(/\/+$/,"")||"/";return t==="/share"||t==="/share.html"||t.startsWith("/share/")}function vj(e){const t=e.replace(/\/+$/,"")||"/";return t==="/login"||t==="/landing"||yj(t)?!1:t==="/"||t==="/dashboard"||t.startsWith("/leaderboard")}function bj(){const e=Wn(),t=Il(),n=k.useRef(!1);k.useEffect(()=>{if(!fL()||!vj(e.pathname||"/")||!t.enabled||!t.signedIn||t.loading||!pL())return;let a=!1;const o=window.setTimeout(()=>{(async()=>{if(!(a||n.current)){n.current=!0;try{await gj(()=>t.getAccessToken())}catch(s){console.warn("[tokentracker] cloud usage sync:",s)}finally{n.current=!1}}})()},2500);return()=>{a=!0,window.clearTimeout(o)}},[e.pathname,t.enabled,t.signedIn,t.loading,t.getAccessToken])}function kj(){const e=k.useContext(Rx);if(e===null)throw new Error("useTheme must be used within a ThemeProvider");return e}const Yp="tt.sidebarCollapsed",Zf="0.39.3".trim();function _j(){if(typeof window>"u")return!1;const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e==="::1"}function OP({includeLeaderboard:e=!_j()}={}){const t=[{id:"usage",to:"/dashboard",icon:CI,label:Ie("nav.usage")},{id:"limits",to:"/limits",icon:MI,label:Ie("nav.limits")}];return e&&t.push({id:"leaderboard",to:"/leaderboard",icon:rM,label:Ie("nav.leaderboard")}),[{id:"general",label:Ie("nav.group.general"),items:t},{id:"tools",label:Ie("nav.group.tools"),items:[{id:"widgets",to:"/widgets",icon:UI,label:Ie("nav.widgets")},{id:"skills",to:"/skills",icon:GI,label:Ie("nav.skills")},{id:"ip-check",to:"/ip-check",icon:OI,label:Ie("nav.ip_check")}]},{id:"account",label:Ie("nav.group.account"),items:[{id:"settings",to:"/settings",icon:JI,label:Ie("nav.settings")}]}]}function wj(){if(typeof window>"u")return!0;try{const e=window.localStorage.getItem(Yp);return e!=="0"}catch{return!0}}function xj(){const[e,t]=k.useState(wj),n=k.useCallback(()=>{t(a=>{const o=!a;try{typeof window<"u"&&window.localStorage.setItem(Yp,o?"1":"0")}catch{}return o})},[]);return k.useEffect(()=>{if(typeof window>"u")return;const a=o=>{o.key===Yp&&t(o.newValue!=="0")};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)},[]),{collapsed:e,toggle:n}}function Pj(e,t){const n=e.replace(/\/+$/,"")||"/";return t==="/dashboard"?n==="/dashboard"||n==="/":t==="/leaderboard"?n==="/leaderboard"||n.startsWith("/leaderboard/"):n===t}function Sj({label:e,collapsed:t,first:n}){return t?n?null:T.jsx("div",{className:"mx-2 my-2 h-px bg-oai-gray-200/70 dark:bg-oai-gray-800/70","aria-hidden":!0}):T.jsx("div",{className:Qt("px-3 pb-1 text-[10px] uppercase tracking-wider text-oai-gray-500 dark:text-oai-gray-500",n?"pt-2":"pt-4"),children:e})}function Cj({item:e,collapsed:t,active:n,onClick:a}){const o=e.icon;return T.jsxs(gd,{to:e.to,onClick:a,title:t?e.label:void 0,"aria-current":n?"page":void 0,className:Qt("flex items-center gap-2 rounded-md px-2 py-1.5 text-[13px] no-underline transition-colors",t&&"justify-center px-0 py-2",n?"bg-oai-gray-200/70 text-oai-black font-medium dark:bg-oai-gray-800 dark:text-white":"text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/50 hover:text-oai-black dark:hover:bg-oai-gray-800/60 dark:hover:text-white"),children:[T.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:T.jsx(o,{className:"h-[15px] w-[15px]","aria-hidden":!0})}),!t&&T.jsx("span",{className:"truncate",children:e.label})]})}function Tj({collapsed:e}){if(!Zf)return null;const t=Ie("nav.version",{version:Zf});return T.jsx("div",{className:Qt("px-2 text-[10px] font-medium tabular-nums text-oai-gray-400 dark:text-oai-gray-600",e?"text-center":"truncate"),title:t,"aria-label":t,children:`v${Zf}`})}function Ej({as:e="button",title:t,onClick:n,href:a,children:o,className:s,...l}){const u=Qt("flex h-10 w-10 items-center justify-center rounded-lg text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white transition-colors no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",s);return e==="a"?T.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",title:t,"aria-label":t,className:u,...l,children:o}):T.jsx("button",{type:"button",title:t,"aria-label":t,onClick:n,className:u,...l,children:o})}const Aj=[{value:"light",label:"Light",Icon:Ax},{value:"dark",label:"Dark",Icon:Ex},{value:"system",label:"System",Icon:HI}];function Rj({theme:e,resolvedTheme:t,onSetTheme:n,glassChrome:a=!1}){const[o,s]=k.useState(!1),l=k.useRef(null),u=t==="dark"?Ex:Ax;return k.useEffect(()=>{if(!o)return;const h=m=>{l.current&&!l.current.contains(m.target)&&s(!1)},f=m=>{m.key==="Escape"&&s(!1)};return document.addEventListener("mousedown",h),document.addEventListener("keydown",f),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("keydown",f)}},[o]),T.jsxs("div",{ref:l,className:"relative",children:[T.jsx("button",{type:"button","aria-label":"Theme","aria-expanded":o,"aria-haspopup":"menu",title:"Theme",onClick:()=>s(h=>!h),className:Qt("inline-flex h-7 w-7 items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",a?"border border-gray-500/20 dark:border-gray-500/30 bg-gray-500/[0.04] dark:bg-gray-500/[0.06] backdrop-blur-[2px] text-oai-gray-700 dark:text-oai-gray-300 hover:bg-gray-500/10 dark:hover:bg-gray-500/12 hover:border-gray-500/30 dark:hover:border-gray-500/40 hover:text-oai-black dark:hover:text-white":"border border-oai-gray-200 dark:border-oai-gray-700 text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white hover:border-oai-gray-300 dark:hover:border-oai-gray-600"),children:T.jsx(u,{className:"h-3.5 w-3.5","aria-hidden":!0})}),o&&T.jsx("div",{role:"menu",className:"absolute bottom-full left-0 mb-2 z-50 min-w-[140px] py-1 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-white dark:bg-oai-gray-900 shadow-lg",children:Aj.map(({value:h,label:f,Icon:m})=>{const y=e===h;return T.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{n(h),s(!1)},className:Qt("flex w-full items-center gap-2.5 px-3 py-1.5 text-[13px] transition-colors",y?"text-oai-black dark:text-white bg-oai-gray-100 dark:bg-oai-gray-800":"text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-50 dark:hover:bg-oai-gray-800/60 hover:text-oai-black dark:hover:text-white"),children:[T.jsx(m,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}),T.jsx("span",{children:f})]},h)})})]})}function jP({collapsed:e,onToggleCollapsed:t,onItemClick:n,showCloseButton:a=!1,onClose:o,glassChrome:s=!1}){const u=Wn()?.pathname||"/",{theme:h,resolvedTheme:f,setTheme:m}=kj(),{resolvedLocale:y}=Pd(),v=k.useMemo(()=>OP(),[y]);return T.jsxs(T.Fragment,{children:[a?T.jsx("div",{className:"flex justify-end px-2 pt-2 pb-2",children:T.jsx("button",{type:"button",onClick:o,"aria-label":Ie("nav.close_menu"),title:Ie("nav.close_menu"),className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-oai-gray-500 dark:text-oai-gray-500 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-gray-900 dark:hover:text-oai-gray-200 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",children:T.jsx(Zm,{className:"h-4 w-4",strokeWidth:1.75,"aria-hidden":!0})})}):null,T.jsx("nav",{"aria-label":Ie("nav.nav_label"),className:"flex-1 px-2 pb-2 flex flex-col overflow-y-auto",children:v.map((_,x)=>T.jsxs("div",{className:"flex flex-col",children:[T.jsx(Sj,{label:_.label,collapsed:e,first:x===0}),T.jsx("div",{className:"flex flex-col gap-0.5",children:_.items.filter(C=>!(C.to==="/widgets"&&Km())).map(C=>T.jsx(Cj,{item:C,collapsed:e,active:Pj(u,C.to),onClick:n},C.id))})]},_.id))}),T.jsxs("div",{className:"px-2 py-3 space-y-2",children:[T.jsx(Tj,{collapsed:e}),T.jsxs("div",{className:Qt("flex items-center",e?"flex-col justify-center gap-2":"justify-between gap-2"),children:[T.jsx(Rj,{theme:h,resolvedTheme:f,onSetTheme:m,glassChrome:s}),T.jsx("div",{className:"flex items-center gap-1.5",children:!a&&T.jsx("button",{type:"button",onClick:t,"aria-label":Ie(e?"nav.expand":"nav.collapse"),title:Ie(e?"nav.expand":"nav.collapse"),className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-oai-gray-500 dark:text-oai-gray-500 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-gray-900 dark:hover:text-oai-gray-200 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",children:e?T.jsx(RI,{className:"h-4 w-4",strokeWidth:1.75,"aria-hidden":!0}):T.jsx(EI,{className:"h-4 w-4",strokeWidth:1.75,"aria-hidden":!0})})})]})]})]})}function Lj({collapsed:e,onToggleCollapsed:t}){const n=k.useMemo(()=>typeof window>"u"?!1:wa()||Wm(),[]);return T.jsx("aside",{"aria-label":Ie("nav.aside_label"),className:Qt("hidden lg:flex flex-col shrink-0 h-full min-h-0 transition-[width] duration-200",e?"w-[72px]":"w-[220px]"),children:T.jsx(jP,{collapsed:e,onToggleCollapsed:t,glassChrome:n})})}function Dj({open:e,onClose:t}){return k.useEffect(()=>{if(!e)return;const n=a=>{a.key==="Escape"&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t]),k.useEffect(()=>{if(!e)return;const n=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=n}},[e]),e?T.jsxs("div",{className:"lg:hidden fixed inset-0 z-[80] flex",children:[T.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:t,"aria-hidden":!0}),T.jsx("aside",{"aria-label":Ie("nav.aside_label"),className:"relative w-[260px] max-w-[80vw] flex flex-col bg-oai-white dark:bg-oai-gray-900 border-r border-oai-gray-200 dark:border-oai-gray-800 shadow-2xl",children:T.jsx(jP,{collapsed:!1,showCloseButton:!0,onClose:t,onItemClick:t})})]}):null}function Ij({onOpenDrawer:e}){return T.jsxs("div",{className:"lg:hidden flex items-center justify-between gap-2 px-3 h-14 border-b border-oai-gray-200 dark:border-oai-gray-800",children:[T.jsx(Ej,{title:Ie("nav.menu"),onClick:e,children:T.jsx(VI,{className:"h-5 w-5","aria-hidden":!0})}),T.jsxs(gd,{to:"/landing",className:"flex items-center gap-2 no-underline hover:opacity-80 transition-opacity","aria-label":"Token Tracker",children:[T.jsx("img",{src:"/app-icon.png",alt:"",width:24,height:24,className:"rounded-md"}),T.jsx("span",{className:"text-sm font-semibold text-oai-black dark:text-oai-white",children:"Token Tracker"})]}),T.jsx("div",{className:"w-10 shrink-0","aria-hidden":!0})]})}function Mj({children:e}){const{collapsed:t,toggle:n}=xj(),[a,o]=k.useState(!1),s=k.useCallback(()=>o(!0),[]),l=k.useCallback(()=>o(!1),[]),u=k.useMemo(()=>typeof window>"u"?!1:wa()||Wm(),[]);return T.jsxs("div",{className:Qt("fixed inset-0 flex flex-col text-oai-black dark:text-oai-white font-sans overflow-hidden",Km()&&"tt-native-glass-shell",u?"bg-transparent":"bg-oai-gray-100 dark:bg-oai-gray-950"),children:[u&&T.jsx("div",{className:"h-7 shrink-0",style:{WebkitAppRegion:"drag"},"aria-hidden":!0}),T.jsxs("div",{className:"flex-1 min-h-0 flex",children:[T.jsx(Lj,{collapsed:t,onToggleCollapsed:n}),T.jsx(Dj,{open:a,onClose:l}),T.jsx("div",{className:"flex-1 min-w-0 min-h-0 p-2 lg:pl-0 lg:pr-3 lg:pb-3 flex flex-col",children:T.jsxs("div",{className:Qt("flex-1 min-h-0 flex flex-col bg-oai-white dark:bg-oai-gray-900 border border-oai-gray-200 dark:border-oai-gray-800 overflow-hidden",u?"tt-native-main-card":"rounded-2xl",!u&&"shadow-sm"),children:[T.jsx(Ij,{onOpenDrawer:s}),T.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:e})]})})]})]})}function Nj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:T.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})})}function Oj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:t,children:T.jsx("path",{d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"})})}function jj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:T.jsx("path",{d:"M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"})})}function Uj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:T.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z"})})}function Bj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:T.jsx("path",{d:"M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815"})})}function zj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 -1 22 28",fill:"currentColor",fillRule:"evenodd",className:t,children:T.jsx("path",{d:"M4.125 20.149c-2.69 5.959 3.036 7.453 7.26 3.966 1.24 3.91 5.898.993 7.569-2.036 3.682-6.678 2.195-13.49 1.813-14.895-2.617-9.582-15.699-9.592-17.95.049-.526 1.687-.535 3.606-.833 5.598-.15 1.005-.256 1.646-.645 2.703-.223.607-.53 1.147-1.014 2.056-.75 1.412-.434 4.138 3.434 2.724v.001ZM11.895 11.332c-1.073 0-1.234-1.283-1.234-2.048 0-.69.124-1.239.358-1.586a1 1 0 0 1 .876-.462c.375 0 .697.158.924.47.259.354.395.9.395 1.578 0 1.283-.493 2.048-1.319 2.048Zm4.416 0c-1.073 0-1.234-1.283-1.234-2.048 0-.69.124-1.239.358-1.586a1 1 0 0 1 .876-.462c.375 0 .697.158.924.47.259.354.396.9.396 1.578 0 1.283-.494 2.048-1.32 2.048Z"})})}function Fj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:T.jsx("path",{d:"M16 6H8v12h8V6zm4 16H4V2h16v20z"})})}function Vj({size:e=16,className:t=""}){return T.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:[T.jsx("path",{d:"M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z"}),T.jsx("path",{d:"M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z"})]})}function $j({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:T.jsx("path",{d:"M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"})})}function Hj({size:e=16,className:t=""}){return T.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 60",fill:"none",className:t,"aria-hidden":"true",children:[T.jsx("path",{fill:"currentColor",d:"M37.2114 3.75318C37.6821 3.33106 37.7106 3.31457 38.0558 3.29385C38.6149 3.2531 39.1272 3.52199 39.9989 4.31564C42.0356 6.16652 44.8714 9.97183 46.6346 13.2212L47.3163 14.4819L48.2782 14.9605C49.2072 15.4299 50.7308 16.3923 51.3672 16.9085C51.655 17.1464 51.6956 17.1508 51.9947 17.0344C53.3454 16.5084 55.2803 17.206 56.9869 18.8432C58.5231 20.3155 59.9943 22.8312 60.558 24.9308C60.6403 25.2687 60.7493 25.9952 60.7891 26.5362C60.9177 28.4358 60.3092 29.9532 59.1362 30.64C58.8965 30.7784 58.8801 30.8158 58.8868 31.4132C58.9409 34.2583 58.1741 37.0985 56.6335 39.8679C54.8946 42.9773 51.7981 46.1938 47.6074 49.2243C45.357 50.8619 40.0323 53.964 37.6248 55.0532C31.8578 57.6496 27.2346 58.646 23.2188 58.154C20.8236 57.8638 18.1124 56.9287 16.5082 55.8433C16.086 55.5515 16.0191 55.5329 15.6966 55.6251C13.9793 56.1185 11.73 55.1053 9.81931 52.9844C9.05725 52.1366 7.82714 50.0548 7.42839 48.9409C6.50606 46.3339 6.68976 43.9816 7.91836 42.5767C8.23573 42.2149 8.2453 42.1995 8.17598 41.5912C8.06148 40.5951 8.00971 39.1206 8.06202 38.1692L8.10361 37.2803L6.76977 34.9212C4.70378 31.2451 3.3912 28.1582 2.88489 25.7998C2.61762 24.5066 2.63385 23.9324 2.96214 23.5078C3.16198 23.2515 3.81796 22.9866 4.60785 22.8407C6.59665 22.4917 10.9334 22.8076 15.7581 23.6595L16.259 23.7458L17.3608 22.7713C19.1891 21.1519 20.4038 20.244 22.6429 18.8478C24.9768 17.3876 27.6108 16.1858 30.577 15.2346L31.5295 14.9294L32.0526 13.5561C33.9257 8.61146 35.8437 4.96584 37.2114 3.75318ZM21.5208 29.0919C19.404 30.314 18.3453 30.9251 17.5676 31.6099C14.4179 34.3835 13.2414 38.777 14.5823 42.7537C14.9135 43.7357 15.5247 44.7942 16.7469 46.9111C17.9691 49.0279 18.5801 50.0865 19.2649 50.8643C22.0385 54.014 26.4316 55.1918 30.4084 53.8509C31.3904 53.5198 32.4489 52.9085 34.5657 51.6863L46.7442 44.6551C48.8613 43.4328 49.9205 42.8214 50.6983 42.1365C53.8479 39.363 55.0245 34.9695 53.6835 30.9927C53.3524 30.0107 52.7412 28.9522 51.519 26.8354C50.2968 24.7185 49.6858 23.66 49.0009 22.8822C46.2274 19.7325 41.8342 18.5547 37.8575 19.8956C36.8754 20.2267 35.8163 20.8383 33.6993 22.0606L21.5208 29.0919Z"}),T.jsx("g",{transform:"rotate(-30 22.6953 37.6011)",children:T.jsx("rect",{x:"22.6953",y:"37.6011",width:"4.81084",height:"9.99175",rx:"2.40542",fill:"currentColor"})}),T.jsx("g",{transform:"rotate(-30 35.6748 30.1074)",children:T.jsx("rect",{x:"35.6748",y:"30.1074",width:"4.81084",height:"9.99175",rx:"2.40542",fill:"currentColor"})})]})}function Wj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:t,children:T.jsx("path",{d:"M7 2h10a5 5 0 015 5v10a5 5 0 01-5 5H7a5 5 0 01-5-5V7a5 5 0 015-5zm0 4.5v11h2.35v-4.55h5.3V17.5H17v-11h-2.35v4.1h-5.3V6.5H7z"})})}function Kj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"currentColor",className:t,children:T.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"})})}function Gj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-hidden":"true",children:T.jsx("g",{transform:"translate(3.4502, 3)",fill:"#9570BE",children:T.jsx("path",{d:"M3.17890888,3.6 L3.17890888,0 L16,0 L16,3.6 L3.17890888,3.6 Z M9.642,7.2 L9.64218223,10.8 L0,10.8 L0,3.6 L16,3.6 L16,7.2 L9.642,7.2 Z M3.17890888,18 L3.178,14.4 L0,14.4 L0,10.8 L16,10.8 L16,18 L3.17890888,18 Z",fillRule:"nonzero"})})})}function qj({size:e=16,className:t=""}){return T.jsxs("svg",{width:e,height:e,viewBox:"0 0 120 90",fill:"currentColor",className:t,children:[T.jsx("rect",{x:"10",y:"8",width:"100",height:"12",rx:"2"}),T.jsx("rect",{x:"25",y:"20",width:"12",height:"62",rx:"2"}),T.jsx("rect",{x:"75",y:"20",width:"12",height:"45",rx:"2"}),T.jsx("rect",{x:"71",y:"55",width:"20",height:"16",rx:"3"}),T.jsx("rect",{x:"76",y:"71",width:"3",height:"8",rx:"1"}),T.jsx("rect",{x:"82",y:"71",width:"3",height:"8",rx:"1"})]})}function Yj({size:e=16,className:t=""}){return T.jsxs("svg",{width:e,height:e,viewBox:"0 0 120 90",fill:"currentColor",className:t,children:[T.jsx("rect",{x:"10",y:"8",width:"100",height:"12",rx:"2"}),T.jsx("rect",{x:"25",y:"20",width:"12",height:"62",rx:"2"}),T.jsx("rect",{x:"83",y:"20",width:"12",height:"62",rx:"2"})]})}function Zj({size:e=16,className:t=""}){return T.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[T.jsx("path",{d:"M9 3v2"}),T.jsx("path",{d:"M15 3v2"}),T.jsx("rect",{x:"4",y:"6",width:"16",height:"13",rx:"3"}),T.jsx("circle",{cx:"9",cy:"13",r:"1.4",fill:"currentColor",stroke:"none"}),T.jsx("circle",{cx:"15",cy:"13",r:"1.4",fill:"currentColor",stroke:"none"}),T.jsx("path",{d:"M9 16h6"})]})}const Xj={CLAUDE:Nj,CODEBUDDY:Hj,CODEX:Oj,COPILOT:$j,CRAFT:Gj,CURSOR:jj,DROID:Zj,GEMINI:Uj,GITHUB:Kj,GROK:Bj,HERMES:Wj,KIMI:Vj,KIRO:zj,OPENCODE:Fj,OMP:qj,PI:Yj},Qj={ANTIGRAVITY:"/brand-logos/antigravity.svg",CLAUDE:"/brand-logos/claude-code.svg",CODEX:"/brand-logos/codex.svg",GEMINI:"/brand-logos/gemini.svg",HERMES:"/brand-logos/hermes.svg","KILO-CLI":"/brand-logos/kilo.svg","KILO-CODE":"/brand-logos/kilo.svg",OPENCLAW:"/brand-logos/openclaw.svg",OPENCODE:"/brand-logos/opencode.svg"};function Jj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:T.jsx("circle",{cx:"12",cy:"12",r:"7.5",strokeDasharray:"3 3"})})}function e8({provider:e,size:t=16,color:n,className:a=""}){const o=e?.toUpperCase?.()||"",s=Qj[o];if(s)return T.jsx("img",{src:s,alt:"",width:t,height:t,className:a,style:{width:t,height:t,objectFit:"contain"},"aria-hidden":!0});const l=Xj[o];return l?T.jsx(l,{size:t,className:a}):T.jsx(Jj,{size:t,className:`text-oai-gray-400 dark:text-oai-gray-500 shrink-0 ${a}`})}const UP="tokentracker-skills";async function Gi(e){const t=new URL(`/functions/${UP}`,window.location.origin);if(e)for(const[o,s]of Object.entries(e))s!=null&&s!==""&&t.searchParams.set(o,String(s));const n=await fetch(t.toString(),{headers:{Accept:"application/json"},cache:"no-store"}),a=await n.json().catch(()=>null);if(!n.ok)throw new Error(a?.error||`Request failed with HTTP ${n.status}`);return a}async function ii(e){const t=await wd(),n=await fetch(`/functions/${UP}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",...t},cache:"no-store",body:JSON.stringify(e)}),a=await n.json().catch(()=>null);if(!n.ok||a?.ok===!1)throw new Error(a?.error||`Request failed with HTTP ${n.status}`);return a}function t8(){return Gi({mode:"installed"})}function f7(e={}){return Gi({mode:"discover",...e.force?{force:1}:{}})}function p7(e,t=0,n=20){return Gi({mode:"search",q:e,offset:t,limit:n})}function m7(){return Gi({mode:"repos"})}function g7(e,t){return ii({action:"install",skill:e,targets:t})}function y7(e){return ii({action:"uninstall",id:e})}function v7(e){return ii({action:"restore",id:e})}function b7(e,t){return ii({action:"set_targets",id:e,targets:t})}function k7(e,t){return ii({action:"import_local",directory:e,targets:t})}function _7(e,t){return ii({action:"delete_local",directory:e,targets:t||[]})}function w7(e){return ii({action:"add_repo",repo:e})}function x7(e,t){return ii({action:"remove_repo",owner:e,name:t})}function P7(e={}){return Gi({mode:"popular",...e.force?{force:1}:{}})}function S7(e={}){return Gi({mode:"updates",...e.force?{force:1}:{}})}function C7(e={}){return Gi({mode:"skill_usage",...e.force?{force:1}:{}})}const n8=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1");function a8(){const e=pd(),t=u6(),[n,a]=k.useState(!1),[o,s]=k.useState(""),[l,u]=k.useState(0),[h,f]=k.useState([]),m=k.useRef(null),y=k.useRef(null);k.useEffect(()=>{const A=E=>{(E.metaKey||E.ctrlKey)&&(E.key==="k"||E.key==="K")&&(E.preventDefault(),a($=>!$))};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[]),k.useEffect(()=>{if(!n)return;s(""),u(0);const A=requestAnimationFrame(()=>m.current?.focus());return n8&&!h.length&&t8().then(E=>f(E?.skills||[])).catch(()=>f([])),()=>cancelAnimationFrame(A)},[n,h.length]);const v=k.useMemo(()=>{const A=OP().flatMap(B=>B.items.map($=>({kind:"page",id:`page:${$.id}`,label:$.label,sub:Ie("cmdk.group.pages"),Icon:$.icon,run:()=>e($.to)}))),E=(h||[]).map(B=>({kind:"skill",id:`skill:${B.id||B.directory}`,label:B.name||B.directory,sub:B.repoOwner&&B.repoName?`${B.repoOwner}/${B.repoName}`:Ie("cmdk.group.skills"),provider:(B.targets||[])[0]||"claude",run:()=>e(`/skills?skill=${encodeURIComponent(B.directory||B.id)}`)}));return[...A,...E]},[e,h]),_=k.useMemo(()=>{const A=o.trim().toLowerCase();return A?v.filter(E=>E.label.toLowerCase().includes(A)||String(E.sub||"").toLowerCase().includes(A)):v},[v,o]);k.useEffect(()=>{l>=_.length&&u(_.length?_.length-1:0)},[l,_.length]),k.useEffect(()=>{if(!n)return;y.current?.querySelector(`[data-cmdk-index="${l}"]`)?.scrollIntoView({block:"nearest"})},[l,n]);const x=k.useCallback(()=>a(!1),[]),C=k.useCallback(A=>{A&&(x(),A.run())},[x]),S=A=>{A.key==="ArrowDown"?(A.preventDefault(),u(E=>Math.min(E+1,Math.max(0,_.length-1)))):A.key==="ArrowUp"?(A.preventDefault(),u(E=>Math.max(E-1,0))):A.key==="Enter"?(A.preventDefault(),C(_[l])):A.key==="Escape"&&(A.preventDefault(),x())},M={duration:t?0:.12},R=t?{duration:0}:{type:"spring",stiffness:460,damping:34,mass:.6};return T.jsx(oP,{children:n?T.jsxs(cl.div,{className:"fixed inset-0 z-[120] flex items-start justify-center px-4 pt-[16vh]",initial:t?!1:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:M,children:[T.jsx("button",{type:"button","aria-label":Ie("cmdk.close"),onClick:x,className:"absolute inset-0 cursor-default bg-oai-black/40"}),T.jsxs(cl.div,{role:"dialog","aria-modal":"true","aria-label":Ie("cmdk.open_aria"),initial:t?!1:{opacity:0,y:-8,scale:.985},animate:{opacity:1,y:0,scale:1},exit:t?{opacity:0}:{opacity:0,y:-8,scale:.985},transition:R,className:"relative w-full max-w-xl overflow-hidden rounded-2xl border border-oai-gray-200 bg-oai-white shadow-2xl dark:border-oai-gray-800 dark:bg-oai-gray-950",children:[T.jsxs("div",{className:"flex items-center gap-2.5 border-b border-oai-gray-200 px-4 dark:border-oai-gray-800",children:[T.jsx(XI,{className:"h-4 w-4 shrink-0 text-oai-gray-400","aria-hidden":!0}),T.jsx("input",{ref:m,type:"text",value:o,onChange:A=>{s(A.target.value),u(0)},onKeyDown:S,"aria-label":Ie("cmdk.placeholder"),"aria-controls":"cmdk-listbox","aria-activedescendant":_[l]?`cmdk-opt-${l}`:void 0,role:"combobox","aria-expanded":"true",placeholder:Ie("cmdk.placeholder"),className:"h-12 w-full bg-transparent text-sm text-oai-black placeholder:text-oai-gray-400 focus:outline-none dark:text-white"})]}),T.jsx("div",{ref:y,id:"cmdk-listbox",role:"listbox",className:"max-h-[min(56vh,22rem)] overflow-y-auto p-1.5",children:_.length===0?T.jsx("div",{className:"px-3 py-8 text-center text-sm text-oai-gray-500 dark:text-oai-gray-400",children:Ie("cmdk.empty")}):_.map((A,E)=>{const B=E===l;return T.jsxs("button",{type:"button",role:"option",id:`cmdk-opt-${E}`,"data-cmdk-index":E,"aria-selected":B,onMouseMove:()=>u(E),onClick:()=>C(A),className:Qt("flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-sm transition-colors",B?"bg-oai-gray-100 text-oai-black dark:bg-oai-gray-800/70 dark:text-white":"text-oai-gray-700 dark:text-oai-gray-200"),children:[T.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center text-oai-gray-500 dark:text-oai-gray-400",children:A.kind==="skill"?T.jsx(e8,{provider:A.provider,size:16}):T.jsx(A.Icon,{className:"h-4 w-4","aria-hidden":!0})}),T.jsx("span",{className:"min-w-0 flex-1 truncate font-medium",children:A.label}),T.jsx("span",{className:"shrink-0 truncate text-xs text-oai-gray-400 dark:text-oai-gray-500",children:A.sub}),B?T.jsx(DI,{className:"h-3.5 w-3.5 shrink-0 text-oai-gray-400","aria-hidden":!0}):null]},A.id)})})]})]}):null})}function Rd(){return typeof window<"u"}function Rg(e){return Lg(e)?(e.nodeName||"").toLowerCase():"#document"}function ti(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function r8(e){var t;return(t=(Lg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Lg(e){return Rd()?e instanceof Node||e instanceof ti(e).Node:!1}function BP(e){return Rd()?e instanceof Element||e instanceof ti(e).Element:!1}function Ld(e){return Rd()?e instanceof HTMLElement||e instanceof ti(e).HTMLElement:!1}function Zp(e){return!Rd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ti(e).ShadowRoot}function zP(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=VP(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&o!=="inline"&&o!=="contents"}function T7(e){return/^(table|td|th)$/.test(Rg(e))}function i8(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const o8=/transform|translate|scale|rotate|perspective|filter/,s8=/paint|layout|strict|content/,Si=e=>!!e&&e!=="none";let Xf;function l8(e){const t=BP(e)?VP(e):e;return Si(t.transform)||Si(t.translate)||Si(t.scale)||Si(t.rotate)||Si(t.perspective)||!c8()&&(Si(t.backdropFilter)||Si(t.filter))||o8.test(t.willChange||"")||s8.test(t.contain||"")}function E7(e){let t=Xp(e);for(;Ld(t)&&!FP(t);){if(l8(t))return t;if(i8(t))return null;t=Xp(t)}return null}function c8(){return Xf==null&&(Xf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Xf}function FP(e){return/^(html|body|#document)$/.test(Rg(e))}function VP(e){return ti(e).getComputedStyle(e)}function A7(e){return BP(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xp(e){if(Rg(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zp(e)&&e.host||r8(e);return Zp(t)?t.host:t}function $P(e){const t=Xp(e);return FP(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ld(t)&&zP(t)?t:$P(t)}function a0(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=$P(e),s=o===((a=e.ownerDocument)==null?void 0:a.body),l=ti(o);if(s){const u=u8(l);return t.concat(l,l.visualViewport||[],zP(o)?o:[],u&&n?a0(u):[])}else return t.concat(o,a0(o,[],n))}function u8(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bo(e){return e?.ownerDocument||document}const r0={};function Ul(e,t){const n=k.useRef(r0);return n.current===r0&&(n.current=e(t)),n}const Qf=cm[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],d8=Qf&&Qf!==k.useLayoutEffect?Qf:e=>e();function Dn(e){const t=Ul(h8).current;return t.next=e,d8(t.effect),t.trampoline}function h8(){const e={next:void 0,callback:f8,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function f8(){}let i0=0;function HP(e){return i0+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${i0}`}const p8=[];function WP(e){k.useEffect(e,p8)}const Ks=0;class wl{static create(){return new wl}currentId=Ks;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ks,n()},t)}isStarted(){return this.currentId!==Ks}clear=()=>{this.currentId!==Ks&&(clearTimeout(this.currentId),this.currentId=Ks)};disposeEffect=()=>this.clear}function R7(){const e=Ul(wl.create).current;return WP(e.disposeEffect),e}const ns=typeof navigator<"u",Jf=y8(),KP=b8(),GP=v8(),L7=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),D7=Jf.platform==="MacIntel"&&Jf.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Jf.platform),m8=ns&&/apple/i.test(navigator.vendor),I7=ns&&/android/i.test(KP)||/android/i.test(GP);ns&&KP.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const g8=GP.includes("jsdom/");function y8(){if(!ns)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function v8(){if(!ns)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function b8(){if(!ns)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const o0="data-base-ui-focusable",M7="active",N7="selected",k8="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",O7="ArrowLeft",j7="ArrowRight",U7="ArrowUp",B7="ArrowDown";function xl(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Ni(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Zp(n)){let a=t;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function Qp(e){return"composedPath"in e?e.composedPath()[0]:e.target}function z7(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function F7(e){return e.matches("html,body")}function Dd(e){return e?.ownerDocument||document}function _8(e){return Ld(e)&&e.matches(k8)}function V7(e){return e?e.getAttribute("role")==="combobox"&&_8(e):!1}function Jp(e){if(!e||g8)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function $7(e){return e?e.hasAttribute(o0)?e:e.querySelector(`[${o0}]`)||e:null}function Bl(e,...t){const n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(a=>n.searchParams.append("args[]",a)),`Base UI error #${e}; visit ${n} for the full message.`}var w8=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ld=w8.join(","),qP=typeof Element>"u",Zo=qP?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,cd=!qP&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},ud=function(t,n){var a;n===void 0&&(n=!0);var o=t==null||(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"inert"),s=o===""||o==="true",l=s||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):ud(t.parentNode));return l},x8=function(t){var n,a=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return a===""||a==="true"},YP=function(t,n,a){if(ud(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(ld));return n&&Zo.call(t,ld)&&o.unshift(t),o=o.filter(a),o},dd=function(t,n,a){for(var o=[],s=Array.from(t);s.length;){var l=s.shift();if(!ud(l,!1))if(l.tagName==="SLOT"){var u=l.assignedElements(),h=u.length?u:l.children,f=dd(h,!0,a);a.flatten?o.push.apply(o,f):o.push({scopeParent:l,candidates:f})}else{var m=Zo.call(l,ld);m&&a.filter(l)&&(n||!t.includes(l))&&o.push(l);var y=l.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(l),v=!ud(y,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(l));if(y&&v){var _=dd(y===!0?l.children:y.children,!0,a);a.flatten?o.push.apply(o,_):o.push({scopeParent:l,candidates:_})}else s.unshift.apply(s,l.children)}}return o},ZP=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},XP=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||x8(t))&&!ZP(t)?0:t.tabIndex},P8=function(t,n){var a=XP(t);return a<0&&n&&!ZP(t)?0:a},S8=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},QP=function(t){return t.tagName==="INPUT"},C8=function(t){return QP(t)&&t.type==="hidden"},T8=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(a){return a.tagName==="SUMMARY"});return n},E8=function(t,n){for(var a=0;a<t.length;a++)if(t[a].checked&&t[a].form===n)return t[a]},A8=function(t){if(!t.name)return!0;var n=t.form||cd(t),a=function(u){return n.querySelectorAll('input[type="radio"][name="'+u+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=a(window.CSS.escape(t.name));else try{o=a(t.name)}catch(l){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",l.message),!1}var s=E8(o,t.form);return!s||s===t},R8=function(t){return QP(t)&&t.type==="radio"},L8=function(t){return R8(t)&&!A8(t)},D8=function(t){var n,a=t&&cd(t),o=(n=a)===null||n===void 0?void 0:n.host,s=!1;if(a&&a!==t){var l,u,h;for(s=!!((l=o)!==null&&l!==void 0&&(u=l.ownerDocument)!==null&&u!==void 0&&u.contains(o)||t!=null&&(h=t.ownerDocument)!==null&&h!==void 0&&h.contains(t));!s&&o;){var f,m,y;a=cd(o),o=(f=a)===null||f===void 0?void 0:f.host,s=!!((m=o)!==null&&m!==void 0&&(y=m.ownerDocument)!==null&&y!==void 0&&y.contains(o))}}return s},s0=function(t){var n=t.getBoundingClientRect(),a=n.width,o=n.height;return a===0&&o===0},I8=function(t,n){var a=n.displayCheck,o=n.getShadowRoot;if(a==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var l=Zo.call(t,"details>summary:first-of-type"),u=l?t.parentElement:t;if(Zo.call(u,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="full-native"||a==="legacy-full"){if(typeof o=="function"){for(var h=t;t;){var f=t.parentElement,m=cd(t);if(f&&!f.shadowRoot&&o(f)===!0)return s0(t);t.assignedSlot?t=t.assignedSlot:!f&&m!==t.ownerDocument?t=m.host:t=f}t=h}if(D8(t))return!t.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return s0(t);return!1},M8=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var a=0;a<n.children.length;a++){var o=n.children.item(a);if(o.tagName==="LEGEND")return Zo.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},em=function(t,n){return!(n.disabled||C8(n)||I8(n,t)||T8(n)||M8(n))},tm=function(t,n){return!(L8(n)||XP(n)<0||!em(t,n))},N8=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},JP=function(t){var n=[],a=[];return t.forEach(function(o,s){var l=!!o.scopeParent,u=l?o.scopeParent:o,h=P8(u,l),f=l?JP(o.candidates):u;h===0?l?n.push.apply(n,f):n.push(u):a.push({documentOrder:s,tabIndex:h,item:o,isScope:l,content:f})}),a.sort(S8).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},Dg=function(t,n){n=n||{};var a;return n.getShadowRoot?a=dd([t],n.includeContainer,{filter:tm.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:N8}):a=YP(t,n.includeContainer,tm.bind(null,n)),JP(a)},H7=function(t,n){n=n||{};var a;return n.getShadowRoot?a=dd([t],n.includeContainer,{filter:em.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):a=YP(t,n.includeContainer,em.bind(null,n)),a},W7=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Zo.call(t,ld)===!1?!1:tm(n,t)};const Ig=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function eS(e,t){const n=Dg(e,Ig()),a=n.length;if(a===0)return;const o=xl(Dd(e)),s=n.indexOf(o),l=s===-1?t===1?0:a-1:s+t;return n[l]}function O8(e){return eS(Dd(e).body,1)||e}function j8(e){return eS(Dd(e).body,-1)||e}function tS(e,t){if(!e)return null;const n=Dg(Dd(e).body,Ig()),a=n.length;if(a===0)return null;const o=n.indexOf(e);if(o===-1)return null;const s=(o+t+a)%a;return n[s]}function K7(e){return tS(e,1)}function G7(e){return tS(e,-1)}function ep(e,t){const n=t||e.currentTarget,a=e.relatedTarget;return!a||!Ni(n,a)}function U8(e){Dg(e,Ig()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function l0(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const a=n.dataset.tabindex;delete n.dataset.tabindex,a?n.setAttribute("tabindex",a):n.removeAttribute("tabindex")})}const Mg=k.createContext(void 0);function Ng(){const e=k.useContext(Mg);if(!e)throw new Error(Bl(73));return e}function tp(e,t){if(typeof e=="string")return{description:e};if(typeof e=="function"){const n=e(t);return typeof n=="string"?{description:n}:n}return e}const B8=function(t){const{children:n,timeout:a=5e3,limit:o=3,toastManager:s}=t,[l,u]=k.useState([]),[h,f]=k.useState(!1),[m,y]=k.useState(!1),[v,_]=k.useState(null);l.length===0&&(h&&f(!1),m&&y(!1));const x=h||m,C=k.useRef(new Map),S=k.useRef(null),M=k.useRef(!0),R=k.useRef(!1);function A(J){const re=xl(Bo(S.current));if(!S.current||!Ni(S.current,re)||!Jp(re))return;const ue=l.findIndex(F=>F.id===J);let Q=null,ie=ue+1;for(;ie<l.length;){if(l[ie].transitionStatus!=="ending"){Q=l[ie];break}ie+=1}if(!Q)for(ie=ue-1;ie>=0;){if(l[ie].transitionStatus!=="ending"){Q=l[ie];break}ie-=1}Q?Q.ref?.current?.focus():v?.focus({preventScroll:!0})}const E=Dn(()=>{R.current||(R.current=!0,C.current.forEach(J=>{if(J.timeout){J.timeout.clear();const re=Date.now()-J.start,ue=J.delay-re;J.remaining=ue>0?ue:0}}))}),B=Dn(()=>{R.current&&(R.current=!1,C.current.forEach((J,re)=>{J.remaining=J.remaining>0?J.remaining:J.delay,J.timeout??=wl.create(),J.timeout.start(J.remaining,()=>{C.current.delete(re),J.callback()}),J.start=Date.now()}))}),$=Dn(J=>{u(Q=>{const ie=Q.map(Y=>Y.id===J?{...Y,transitionStatus:"ending",height:0}:Y),F=ie.filter(Y=>Y.transitionStatus!=="ending");return ie.map(Y=>{if(Y.transitionStatus==="ending")return Y;const z=F.indexOf(Y)>=o;return{...Y,limited:z}})});const re=C.current.get(J);re&&re.timeout&&(re.timeout.clear(),C.current.delete(J)),l.find(Q=>Q.id===J)?.onClose?.(),A(J),l.length===1&&(f(!1),y(!1))}),V=Dn(J=>{u(ue=>ue.filter(Q=>Q.id!==J)),l.find(ue=>ue.id===J)?.onRemove?.()}),P=Dn((J,re,ue)=>{const Q=Date.now(),ie=M.current&&!h&&!m,F=ie?wl.create():void 0;F?.start(re,()=>{C.current.delete(J),ue()}),C.current.set(J,{timeout:F,start:ie?Q:0,delay:re,remaining:re,callback:ue})}),Z=Dn(J=>{const re=J.id||HP("toast"),ue={...J,id:re,transitionStatus:"starting"};u(ie=>{const F=[ue,...ie],Y=F.filter(z=>z.transitionStatus!=="ending");if(Y.length>o){const z=Y.length-o,I=Y.slice(-z);return F.map(W=>I.some(ge=>ge.id===W.id)?{...W,limited:!0}:{...W,limited:!1})}return F.map(z=>({...z,limited:!1}))});const Q=ue.timeout??a;return ue.type!=="loading"&&Q>0&&P(re,Q,()=>$(re)),(h||m||!M.current)&&E(),re}),X=Dn((J,re)=>{const ue=l.find(pe=>pe.id===J)??null,Q=ue?{...ue,...re}:null;if($i.flushSync(()=>{u(pe=>pe.map(me=>me.id===J?{...me,...re}:me))}),!Q)return;const ie=Q.timeout??a,F=ue?.timeout??a,Y=Object.hasOwn(re,"timeout"),z=Q.transitionStatus!=="ending"&&Q.type!=="loading"&&ie>0,I=C.current.has(J),W=F!==ie,ge=ue?.type==="loading";if(!z&&I){C.current.get(J)?.timeout?.clear(),C.current.delete(J);return}if(z&&(!I||W||Y||ge)){const pe=C.current.get(J);pe&&(pe.timeout?.clear(),C.current.delete(J)),P(J,ie,()=>$(J)),(h||m||!M.current)&&E()}}),fe=Dn((J,re)=>{const ue=tp(re.loading),Q=Z({...ue,type:"loading"}),ie=J.then(F=>{const Y=tp(re.success,F);return X(Q,{...Y,type:"success",timeout:Y.timeout}),F}).catch(F=>{const Y=tp(re.error,F);return X(Q,{...Y,type:"error",timeout:Y.timeout}),Promise.reject(F)});return{}.hasOwnProperty.call(re,"setPromise")&&re.setPromise(ie),ie});k.useEffect(function(){return s?s[" subscribe"](({action:ue,options:Q})=>{const ie=Q.id;ue==="promise"&&Q.promise?fe(Q.promise,Q):ue==="update"&&ie?X(ie,Q):ue==="close"&&ie?$(ie):Z(Q)}):void 0},[Z,X,P,a,s,fe,$]);const he=k.useMemo(()=>({toasts:l,setToasts:u,hovering:h,setHovering:f,focused:m,setFocused:y,expanded:x,add:Z,close:$,remove:V,update:X,promise:fe,pauseTimers:E,resumeTimers:B,prevFocusElement:v,setPrevFocusElement:_,viewportRef:S,scheduleTimer:P,windowFocusedRef:M}),[Z,$,m,h,x,E,v,fe,V,B,P,l,X]);return T.jsx(Mg.Provider,{value:he,children:n})},nS={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},aS={...nS,position:"fixed",top:0,left:0},q7={...nS,position:"absolute"},z8=()=>{},zl=typeof document<"u"?k.useLayoutEffect:z8,ul=k.forwardRef(function(t,n){const[a,o]=k.useState();zl(()=>{m8&&o("button")},[]);const s={tabIndex:0,role:a};return T.jsx("span",{...t,ref:n,style:aS,"aria-hidden":a?void 0:!0,...s,"data-base-ui-focus-guard":""})}),F8=k.createContext(void 0);function c0(e,t,n,a){const o=Ul(rS).current;return $8(o,e,t,n,a)&&iS(o,[e,t,n,a]),o.callback}function V8(e){const t=Ul(rS).current;return H8(t,e)&&iS(t,e),t.callback}function rS(){return{callback:null,cleanup:null,refs:[]}}function $8(e,t,n,a,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==a||e.refs[3]!==o}function H8(e,t){return e.refs.length!==t.length||e.refs.some((n,a)=>n!==t[a])}function iS(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const a=Array(t.length).fill(null);for(let o=0;o<t.length;o+=1){const s=t[o];if(s!=null)switch(typeof s){case"function":{const l=s(n);typeof l=="function"&&(a[o]=l);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){const s=t[o];if(s!=null)switch(typeof s){case"function":{const l=a[o];typeof l=="function"?l():s(null);break}case"object":{s.current=null;break}}}}}}}const W8=parseInt(k.version,10);function oS(e){return W8>=e}function u0(e){if(!k.isValidElement(e))return null;const t=e,n=t.props;return(oS(19)?n?.ref:t.ref)??null}function nm(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function K8(e,t){const n={};for(const a in e){const o=e[a];if(t?.hasOwnProperty(a)){const s=t[a](o);s!=null&&Object.assign(n,s);continue}o===!0?n[`data-${a.toLowerCase()}`]="":o&&(n[`data-${a.toLowerCase()}`]=o.toString())}return n}function G8(e,t){return typeof e=="function"?e(t):e}function q8(e,t){return typeof e=="function"?e(t):e}const dl={};function sS(e,t,n,a,o){let s={...am(e,dl)};return t&&(s=Js(s,t)),n&&(s=Js(s,n)),a&&(s=Js(s,a)),o&&(s=Js(s,o)),s}function Y8(e){if(e.length===0)return dl;if(e.length===1)return am(e[0],dl);let t={...am(e[0],dl)};for(let n=1;n<e.length;n+=1)t=Js(t,e[n]);return t}function Js(e,t){return lS(t)?t(e):Z8(e,t)}function Z8(e,t){if(!t)return e;for(const n in t){const a=t[n];switch(n){case"style":{e[n]=nm(e.style,a);break}case"className":{e[n]=cS(e.className,a);break}default:X8(n,a)?e[n]=Q8(e[n],a):e[n]=a}}return e}function X8(e,t){const n=e.charCodeAt(0),a=e.charCodeAt(1),o=e.charCodeAt(2);return n===111&&a===110&&o>=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function lS(e){return typeof e=="function"}function am(e,t){return lS(e)?e(t):e??dl}function Q8(e,t){return t?e?n=>{if(J8(n)){const o=n;rm(o);const s=t(o);return o.baseUIHandlerPrevented||e?.(o),s}const a=t(n);return e?.(n),a}:t:e}function rm(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function cS(e,t){return t?e?t+" "+e:t:e}function J8(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Y7(){}const Z7=Object.freeze([]),qr=Object.freeze({}),X7=500,Q7={style:{transition:"none"}},J7="data-base-ui-click-trigger",eB={fallbackAxisSide:"none"},tB={fallbackAxisSide:"end"},eU={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function Fl(e,t,n={}){const a=t.render,o=tU(t,n);if(n.enabled===!1)return null;const s=n.state??qr;return nU(e,a,o,s)}function tU(e,t={}){const{className:n,style:a,render:o}=e,{state:s=qr,ref:l,props:u,stateAttributesMapping:h,enabled:f=!0}=t,m=f?G8(n,s):void 0,y=f?q8(a,s):void 0,v=f?K8(s,h):qr,_=f?nm(v,Array.isArray(u)?Y8(u):u)??qr:qr;return typeof document<"u"&&(f?Array.isArray(l)?_.ref=V8([_.ref,u0(o),...l]):_.ref=c0(_.ref,u0(o),l):c0(null,null)),f?(m!==void 0&&(_.className=cS(_.className,m)),y!==void 0&&(_.style=nm(_.style,y)),_):qr}function nU(e,t,n,a){if(t){if(typeof t=="function")return t(n,a);const o=sS(n,t.props);return o.ref=n.ref,k.cloneElement(t,o)}if(e&&typeof e=="string")return aU(e,n);throw new Error(Bl(8))}function aU(e,t){return e==="button"?k.createElement("button",{type:"button",...t,key:t.key}):e==="img"?k.createElement("img",{alt:"",...t,key:t.key}):k.createElement(e,t)}let rU=(function(e){return e.frontmostHeight="--toast-frontmost-height",e})({});const iU=k.forwardRef(function(t,n){const{render:a,className:o,children:s,...l}=t,{toasts:u,pauseTimers:h,resumeTimers:f,setHovering:m,setFocused:y,viewportRef:v,windowFocusedRef:_,prevFocusElement:x,setPrevFocusElement:C,expanded:S,focused:M}=Ng(),R=k.useRef(!1),A=k.useRef(!1),E=u.length,B=u[0]?.height??0,$=k.useMemo(()=>u.some(F=>F.transitionStatus==="ending"),[u]);k.useEffect(()=>{if(!v.current)return;function F(z){E!==0&&z.key==="F6"&&z.target!==v.current&&(z.preventDefault(),C(xl(Bo(v.current))),v.current?.focus({preventScroll:!0}),h(),y(!0))}const Y=ti(v.current);return Y.addEventListener("keydown",F),()=>{Y.removeEventListener("keydown",F)}},[h,y,C,E,v]),k.useEffect(()=>{if(!v.current||!E)return;const F=ti(v.current);function Y(I){I.target===F&&(_.current=!1,h())}function z(I){if(I.relatedTarget||I.target===F)return;const W=Qp(I),ge=xl(Bo(v.current));(!Ni(v.current,W)||!Jp(ge))&&f(),setTimeout(()=>{_.current=!0})}return F.addEventListener("blur",Y,!0),F.addEventListener("focus",z,!0),()=>{F.removeEventListener("blur",Y,!0),F.removeEventListener("focus",z,!0)}},[h,f,v,_,y,E]),k.useEffect(()=>{const F=v.current;if(!F||E===0)return;const Y=Bo(F);function z(I){if(I.pointerType!=="touch")return;const W=Qp(I);Ni(F,W)||(f(),m(!1),y(!1))}return Y.addEventListener("pointerdown",z,!0),()=>{Y.removeEventListener("pointerdown",z,!0)}},[E,f,y,m,v]);function V(F){v.current&&(R.current=!0,F.relatedTarget===v.current?u[0]?.ref?.current?.focus():x?.focus({preventScroll:!0}))}function P(F){F.key==="Tab"&&F.shiftKey&&F.target===v.current&&(F.preventDefault(),x?.focus({preventScroll:!0}),f())}k.useEffect(()=>{!_.current||$||!A.current||(f(),m(!1),A.current=!1)},[$,f,m,_]);function Z(){h(),m(!0),A.current=!1}function X(){u.some(F=>F.transitionStatus==="ending")?A.current=!0:(f(),m(!1))}function fe(){if(R.current){R.current=!1;return}M||Jp(Bo(v.current).activeElement)&&(y(!0),h())}function he(F){!M||Ni(v.current,F.relatedTarget)||(y(!1),f())}const J={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:Z,onMouseMove:Z,onMouseLeave:X,onFocus:fe,onBlur:he,onKeyDown:P,onClick:fe},re=k.useMemo(()=>({expanded:S}),[S]),ue=Fl("div",t,{ref:[n,v],state:re,props:[J,{style:{[rU.frontmostHeight]:B?`${B}px`:void 0}},l,{children:T.jsxs(k.Fragment,{children:[E>0&&x&&T.jsx(ul,{onFocus:V}),s,E>0&&x&&T.jsx(ul,{onFocus:V})]})}]}),Q=k.useMemo(()=>({viewportRef:v}),[v]),ie=k.useMemo(()=>u.filter(F=>F.priority==="high"),[u]);return T.jsxs(F8.Provider,{value:Q,children:[E>0&&x&&T.jsx(ul,{onFocus:V}),ue,!M&&ie.length>0&&T.jsx("div",{style:aS,children:ie.map(F=>T.jsxs("div",{role:"alert","aria-atomic":!0,children:[T.jsx("div",{children:F.title}),T.jsx("div",{children:F.description})]},F.id))})]})});function oU(e){return oS(19)?e:e?"true":void 0}const uS=k.createContext(void 0);function im(){const e=k.useContext(uS);if(!e)throw new Error(Bl(66));return e}let Og=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const sU={[Og.startingStyle]:""},lU={[Og.endingStyle]:""},cU={transitionStatus(e){return e==="starting"?sU:e==="ending"?lU:null}},su=null;class uU{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,a=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,a>0)for(let o=0;o<n.length;o+=1)n[o]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const lu=new uU;class jg{static create(){return new jg}static request(t){return lu.request(t)}static cancel(t){return lu.cancel(t)}currentId=su;request(t){this.cancel(),this.currentId=lu.request(()=>{this.currentId=su,t()})}cancel=()=>{this.currentId!==su&&(lu.cancel(this.currentId),this.currentId=su)};disposeEffect=()=>this.cancel}function dU(){const e=Ul(jg.create).current;return WP(e.disposeEffect),e}function hU(e){return e==null?e:"current"in e?e.current:e}function fU(e,t=!1,n=!0){const a=dU();return Dn((o,s=null)=>{a.cancel();function l(){$i.flushSync(o)}const u=hU(e);if(u==null)return;const h=u;if(typeof h.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)o();else{let f=function(){const y=Og.startingStyle;if(!h.hasAttribute(y)){a.request(m);return}const v=new MutationObserver(()=>{h.hasAttribute(y)||(v.disconnect(),m())});v.observe(h,{attributes:!0,attributeFilter:[y]}),s?.addEventListener("abort",()=>v.disconnect(),{once:!0})},m=function(){Promise.all(h.getAnimations().map(y=>y.finished)).then(()=>{s?.aborted||l()}).catch(()=>{const y=h.getAnimations();if(n){if(s?.aborted)return;l()}else y.length>0&&y.some(v=>v.pending||v.playState!=="finished")&&m()})};if(t){f();return}a.request(m)}})}function pU(e){const{enabled:t=!0,open:n,ref:a,onComplete:o}=e,s=Dn(o),l=fU(a,n,!1);k.useEffect(()=>{if(!t)return;const u=new AbortController;return l(s,u.signal),()=>{u.abort()}},[t,n,s,l])}let Ci=(function(e){return e.index="--toast-index",e.offsetY="--toast-offset-y",e.height="--toast-height",e.swipeMovementX="--toast-swipe-movement-x",e.swipeMovementY="--toast-swipe-movement-y",e})({});const mU={...cU,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},Gs=40,gU=10,Vr=.5,yU=1;function d0(e,t,n){switch(e){case"up":return-n;case"down":return n;case"left":return-t;case"right":return t;default:return 0}}function vU(e){const n=window.getComputedStyle(e).transform;let a=0,o=0,s=1;if(n&&n!=="none"){const l=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(l){const u=l[1].split(", ").map(parseFloat);u.length===6?(a=u[4],o=u[5],s=Math.sqrt(u[0]*u[0]+u[1]*u[1])):u.length===16&&(a=u[12],o=u[13],s=u[0])}}return{x:a,y:o,scale:s}}const bU=k.forwardRef(function(t,n){const{toast:a,render:o,className:s,swipeDirection:l=["down","right"],...u}=t,h=a.positionerProps?.anchor!==void 0;let f=[];h||(f=Array.isArray(l)?l:[l]);const m=f.length>0,{toasts:y,focused:v,close:_,remove:x,setToasts:C,pauseTimers:S,expanded:M,setHovering:R}=Ng(),[A,E]=k.useState(void 0),[B,$]=k.useState(!1),[V,P]=k.useState(!1),[Z,X]=k.useState(!1),[fe,he]=k.useState({x:0,y:0}),[J,re]=k.useState({x:0,y:0,scale:1}),[ue,Q]=k.useState(),[ie,F]=k.useState(),[Y,z]=k.useState(null),I=k.useRef(null),W=k.useRef({x:0,y:0}),ge=k.useRef({x:0,y:0,scale:1}),pe=k.useRef(void 0),me=k.useRef(0),be=k.useRef(!1),Be=k.useRef({x:0,y:0}),Ye=k.useRef(!1),Ne=k.useMemo(()=>y.indexOf(a),[a,y]),Rt=k.useMemo(()=>y.filter(Ke=>Ke.transitionStatus!=="ending").indexOf(a),[a,y]),Mn=k.useMemo(()=>y.slice(0,y.indexOf(a)).reduce((Ke,Ve)=>Ke+(Ve.height||0),0),[y,a]);pU({open:a.transitionStatus!=="ending",ref:I,onComplete(){a.transitionStatus==="ending"&&x(a.id)}});const Pn=Dn((Ke=!1)=>{const Ve=I.current;if(!Ve)return;const pt=Ve.style.height;Ve.style.height="auto";const Pt=Ve.offsetHeight;Ve.style.height=pt;function Ot(){C(yt=>yt.map(dt=>dt.id===a.id?{...dt,ref:I,height:Pt,transitionStatus:void 0}:dt))}Ke?$i.flushSync(Ot):Ot()});zl(Pn,[Pn]);function mt(Ke,Ve){let pt=Ke,Pt=Ve;return!f.includes("left")&&!f.includes("right")?pt=Ke>0?Ke**Vr:-(Math.abs(Ke)**Vr):(!f.includes("right")&&Ke>0&&(pt=Ke**Vr),!f.includes("left")&&Ke<0&&(pt=-(Math.abs(Ke)**Vr))),!f.includes("up")&&!f.includes("down")?Pt=Ve>0?Ve**Vr:-(Math.abs(Ve)**Vr):(!f.includes("down")&&Ve>0&&(Pt=Ve**Vr),!f.includes("up")&&Ve<0&&(Pt=-(Math.abs(Ve)**Vr))),{x:pt,y:Pt}}function Jt(Ke){if(Ke.button!==0)return;Ke.pointerType==="touch"&&S();const Ve=Qp(Ke.nativeEvent);if(!(Ve&&Ve.closest('button,a,input,textarea,[role="button"],[data-swipe-ignore]'))){if(be.current=!1,pe.current=void 0,me.current=0,W.current={x:Ke.clientX,y:Ke.clientY},Be.current=W.current,I.current){const Pt=vU(I.current);ge.current=Pt,re(Pt),he({x:Pt.x,y:Pt.y})}R(!0),$(!0),P(!1),z(null),Ye.current=!0,I.current?.setPointerCapture(Ke.pointerId)}}function oi(Ke){if(!B)return;Ke.preventDefault(),Ye.current&&(W.current={x:Ke.clientX,y:Ke.clientY},Ye.current=!1);const{clientY:Ve,clientX:pt,movementX:Pt,movementY:Ot}=Ke;(Ot<0&&Ve>Be.current.y||Ot>0&&Ve<Be.current.y)&&(Be.current={x:Be.current.x,y:Ve}),(Pt<0&&pt>Be.current.x||Pt>0&&pt<Be.current.x)&&(Be.current={x:pt,y:Be.current.y});const yt=pt-W.current.x,dt=Ve-W.current.y,Ya=Ve-Be.current.y,as=pt-Be.current.x;if(!V&&Math.sqrt(yt*yt+dt*dt)>=yU&&(P(!0),Y===null)){const ca=f.includes("left")||f.includes("right"),li=f.includes("up")||f.includes("down");if(ca&&li){const mr=Math.abs(yt),On=Math.abs(dt);z(mr>On?"horizontal":"vertical")}}let Gt;if(!pe.current)Y==="vertical"?dt>0?Gt="down":dt<0&&(Gt="up"):Y==="horizontal"?yt>0?Gt="right":yt<0&&(Gt="left"):Math.abs(yt)>=Math.abs(dt)?Gt=yt>0?"right":"left":Gt=dt>0?"down":"up",Gt&&f.includes(Gt)&&(pe.current=Gt,me.current=d0(Gt,yt,dt),E(Gt));else{const Ta=pe.current,ca=d0(Ta,as,Ya);ca>Gs?(be.current=!1,E(Ta)):!(f.includes("left")&&f.includes("right"))&&!(f.includes("up")&&f.includes("down"))&&me.current-ca>=gU&&(be.current=!0)}const Za=mt(yt,dt);let mn=ge.current.x,Ca=ge.current.y;Y==="horizontal"?(f.includes("left")||f.includes("right"))&&(mn+=Za.x):(Y==="vertical"||(f.includes("left")||f.includes("right"))&&(mn+=Za.x),(f.includes("up")||f.includes("down"))&&(Ca+=Za.y)),he({x:mn,y:Ca})}function qi(Ke){if(!B)return;if($(!1),P(!1),z(null),I.current?.releasePointerCapture(Ke.pointerId),be.current){he({x:J.x,y:J.y}),E(void 0);return}let Ve=!1;const pt=fe.x-J.x,Pt=fe.y-J.y;let Ot;for(const yt of f){switch(yt){case"right":pt>Gs&&(Ve=!0,Ot="right");break;case"left":pt<-Gs&&(Ve=!0,Ot="left");break;case"down":Pt>Gs&&(Ve=!0,Ot="down");break;case"up":Pt<-Gs&&(Ve=!0,Ot="up");break}if(Ve)break}Ve?(E(Ot),X(!0),_(a.id)):(he({x:J.x,y:J.y}),E(void 0))}function Nn(Ke){if(Ke.key==="Escape"){if(!I.current||!Ni(I.current,xl(Bo(I.current))))return;_(a.id)}}k.useEffect(()=>{if(!m)return;const Ke=I.current;if(!Ke)return;function Ve(pt){Ni(Ke,pt.target)&&pt.preventDefault()}return Ke.addEventListener("touchmove",Ve,{passive:!1}),()=>{Ke.removeEventListener("touchmove",Ve)}},[m]);function Yi(){if(!B&&fe.x===J.x&&fe.y===J.y&&!Z)return{[Ci.swipeMovementX]:"0px",[Ci.swipeMovementY]:"0px"};const Ke=fe.x-J.x,Ve=fe.y-J.y;return{transition:B?"none":void 0,transform:B?`translateX(${fe.x}px) translateY(${fe.y}px) scale(${J.scale})`:void 0,[Ci.swipeMovementX]:`${Ke}px`,[Ci.swipeMovementY]:`${Ve}px`}}const pr=a.priority==="high",Sa={role:pr?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":ue,"aria-describedby":ie,"aria-hidden":pr&&!v?!0:void 0,onPointerDown:m?Jt:void 0,onPointerMove:m?oi:void 0,onPointerUp:m?qi:void 0,onKeyDown:Nn,inert:oU(a.limited),style:{...Yi(),[Ci.index]:a.transitionStatus==="ending"?Ne:Rt,[Ci.offsetY]:`${Mn}px`,[Ci.height]:a.height?`${a.height}px`:void 0}},pn=k.useMemo(()=>({rootRef:I,toast:a,titleId:ue,setTitleId:Q,descriptionId:ie,setDescriptionId:F,swiping:B,swipeDirection:A,recalculateHeight:Pn,index:Ne,visibleIndex:Rt,expanded:M}),[a,ue,ie,B,A,Pn,Ne,Rt,M]),si=k.useMemo(()=>({transitionStatus:a.transitionStatus,expanded:M,limited:a.limited||!1,type:a.type,swiping:pn.swiping,swipeDirection:pn.swipeDirection}),[M,a.transitionStatus,a.limited,a.type,pn.swiping,pn.swipeDirection]),Zi=Fl("div",t,{ref:[n,pn.rootRef],state:si,stateAttributesMapping:mU,props:[Sa,u]});return T.jsx(uS.Provider,{value:pn,children:Zi})}),kU={...cm};let h0=0;function _U(e,t="mui"){const[n,a]=k.useState(e),o=e||n;return k.useEffect(()=>{n==null&&(h0+=1,a(`${t}-${h0}`))},[n,t]),o}const f0=kU.useId;function dS(e,t){if(f0!==void 0){const n=f0();return e??(t?`${t}-${n}`:n)}return _U(e,t)}const wU=k.forwardRef(function(t,n){const{render:a,className:o,id:s,children:l,...u}=t,{toast:h}=im(),f=l??h.title,m=!!f,y=dS(s),{setTitleId:v}=im();zl(()=>{if(m)return v(y),()=>{v(void 0)}},[m,y,v]);const _=k.useMemo(()=>({type:h.type}),[h.type]),x=Fl("h2",t,{ref:n,state:_,props:{...u,id:y,children:f}});return m?x:null}),xU=k.createContext(void 0);function PU(e=!1){const t=k.useContext(xU);if(t===void 0&&!e)throw new Error(Bl(16));return t}function SU(e){const{focusableWhenDisabled:t,disabled:n,composite:a=!1,tabIndex:o=0,isNativeButton:s}=e,l=a&&t!==!1,u=a&&t===!1;return{props:k.useMemo(()=>{const f={onKeyDown(m){n&&t&&m.key!=="Tab"&&m.preventDefault()}};return a||(f.tabIndex=o,!s&&n&&(f.tabIndex=t?o:-1)),(s&&(t||l)||!s&&n)&&(f["aria-disabled"]=n),s&&(!t||u)&&(f.disabled=n),f},[a,n,t,l,u,s,o])}}function CU(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:a=0,native:o=!0}=e,s=k.useRef(null),l=PU(!0)!==void 0,u=Dn(()=>{const v=s.current;return!!(v?.tagName==="A"&&v?.href)}),{props:h}=SU({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:a,isNativeButton:o}),f=k.useCallback(()=>{const v=s.current;TU(v)&&l&&t&&h.disabled===void 0&&v.disabled&&(v.disabled=!1)},[t,h.disabled,l]);zl(f,[f]);const m=k.useCallback((v={})=>{const{onClick:_,onMouseDown:x,onKeyUp:C,onKeyDown:S,onPointerDown:M,...R}=v;return sS({type:o?"button":void 0,onClick(E){if(t){E.preventDefault();return}_?.(E)},onMouseDown(E){t||x?.(E)},onKeyDown(E){if(t||(rm(E),S?.(E)),E.baseUIHandlerPrevented)return;const B=E.target===E.currentTarget&&!o&&!u()&&!t,$=E.key==="Enter",V=E.key===" ";B&&((V||$)&&E.preventDefault(),$&&_?.(E))},onKeyUp(E){t||(rm(E),C?.(E)),!E.baseUIHandlerPrevented&&E.target===E.currentTarget&&!o&&!t&&E.key===" "&&_?.(E)},onPointerDown(E){if(t){E.preventDefault();return}M?.(E)}},o?void 0:{role:"button"},h,R)},[t,h,o,u]),y=Dn(v=>{s.current=v,f()});return{getButtonProps:m,buttonRef:y}}function TU(e){return Ld(e)&&e.tagName==="BUTTON"}const EU=k.forwardRef(function(t,n){const{render:a,className:o,disabled:s,nativeButton:l=!0,...u}=t,{close:h,expanded:f}=Ng(),{toast:m}=im(),[y,v]=k.useState(!1),{getButtonProps:_,buttonRef:x}=CU({disabled:s,native:l}),C=k.useMemo(()=>({type:m.type}),[m.type]);return Fl("button",t,{ref:[n,x],state:C,props:[{"aria-hidden":!f&&!y,onClick(){h(m.id)},onFocus(){v(!0)},onBlur(){v(!1)}},u,_]})}),nB="none",aB="trigger-press",rB="trigger-hover",iB="outside-press",oB="item-press",sB="close-press",AU="focus-out",lB="escape-key",cB="list-navigation",uB="cancel-open",dB="imperative-action",hB="window-resize";function RU(e,t,n,a){let o=!1,s=!1;const l=qr;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){s=!0},get isCanceled(){return o},get isPropagationAllowed(){return s},trigger:n,...l}}function LU(e){return`data-base-ui-${e}`}const hS=k.createContext(null),DU=()=>k.useContext(hS),IU=LU("portal");function fS(e={}){const{ref:t,container:n,componentProps:a=qr,elementProps:o,elementState:s}=e,l=dS(),h=DU()?.portalNode,[f,m]=k.useState(null),[y,v]=k.useState(null),_=Dn(M=>{M!==null&&v(M)}),x=k.useRef(null);zl(()=>{if(n===null){x.current&&(x.current=null,v(null),m(null));return}if(l==null)return;const M=(n&&(Lg(n)?n:n.current))??h??document.body;if(M==null){x.current&&(x.current=null,v(null),m(null));return}x.current!==M&&(x.current=M,v(null),m(M))},[n,h,l]);const C=Fl("div",a,{ref:[t,_],state:s,props:[{id:l,[IU]:""},o]});return{portalNode:y,portalSubtree:f&&C?$i.createPortal(C,f):null}}const fB=k.forwardRef(function(t,n){const{children:a,container:o,className:s,render:l,renderGuards:u,...h}=t,{portalNode:f,portalSubtree:m}=fS({container:o,ref:n,componentProps:t,elementProps:h}),y=k.useRef(null),v=k.useRef(null),_=k.useRef(null),x=k.useRef(null),[C,S]=k.useState(null),M=C?.modal,R=C?.open,A=typeof u=="boolean"?u:!!C&&!C.modal&&C.open&&!!f;k.useEffect(()=>{if(!f||M)return;function B($){f&&$.relatedTarget&&ep($)&&($.type==="focusin"?l0:U8)(f)}return f.addEventListener("focusin",B,!0),f.addEventListener("focusout",B,!0),()=>{f.removeEventListener("focusin",B,!0),f.removeEventListener("focusout",B,!0)}},[f,M]),k.useEffect(()=>{!f||R||l0(f)},[R,f]);const E=k.useMemo(()=>({beforeOutsideRef:y,afterOutsideRef:v,beforeInsideRef:_,afterInsideRef:x,portalNode:f,setFocusManagerState:S}),[f]);return T.jsxs(k.Fragment,{children:[m,T.jsxs(hS.Provider,{value:E,children:[A&&f&&T.jsx(ul,{"data-type":"outside",ref:y,onFocus:B=>{if(ep(B,f))_.current?.focus();else{const $=C?C.domReference:null;j8($)?.focus()}}}),A&&f&&T.jsx("span",{"aria-owns":f.id,style:eU}),f&&$i.createPortal(a,f),A&&f&&T.jsx(ul,{"data-type":"outside",ref:v,onFocus:B=>{if(ep(B,f))x.current?.focus();else{const $=C?C.domReference:null;O8($)?.focus(),C?.closeOnFocusOut&&C?.onOpenChange(!1,RU(AU,B.nativeEvent))}}})]})]})}),MU=k.forwardRef(function(t,n){const{children:a,container:o,className:s,render:l,...u}=t,{portalNode:h,portalSubtree:f}=fS({container:o,ref:n,componentProps:t,elementProps:u});return!f&&!h?null:T.jsxs(k.Fragment,{children:[f,h&&$i.createPortal(a,h)]})}),NU=MU;function OU(){const e=k.useContext(Mg);if(!e)throw new Error(Bl(73));const{toasts:t,add:n,close:a,update:o,promise:s}=e;return k.useMemo(()=>({toasts:t,add:n,close:a,update:o,promise:s}),[t,n,a,o,s])}function jU(){const e=[];function t(n){e.forEach(a=>a(n))}return{" subscribe":function(a){return e.push(a),()=>{const o=e.indexOf(a);o!==-1&&e.splice(o,1)}},add(n){const a=n.id||HP("toast"),o={...n,id:a,transitionStatus:"starting"};return t({action:"add",options:o}),a},close(n){t({action:"close",options:{id:n}})},update(n,a){t({action:"update",options:{...a,id:n}})},promise(n,a){let o=n;return t({action:"promise",options:{...a,promise:n,setPromise(s){o=s}}}),o}}}const Ug=jU();function pB(e){return Ug.add(e)}function UU({children:e}){return T.jsxs(B8,{toastManager:Ug,children:[e,T.jsx(NU,{children:T.jsx(iU,{className:"fixed inset-x-0 top-6 z-[100] mx-auto flex w-full max-w-sm flex-col items-center gap-2 px-4 outline-none",children:T.jsx(BU,{})})})]})}function BU(){const{toasts:e}=OU();return e.map(t=>{const n=t.data?.onUndo;return T.jsxs(bU,{toast:t,className:Qt("pointer-events-auto flex w-full items-center gap-3 rounded-xl border border-oai-gray-200 bg-oai-white px-4 py-3 shadow-xl transition-all duration-200 ease-out","data-[starting-style]:-translate-y-3 data-[starting-style]:opacity-0","data-[ending-style]:-translate-y-3 data-[ending-style]:opacity-0","dark:border-oai-gray-800 dark:bg-oai-gray-900"),children:[T.jsx(wU,{className:"min-w-0 flex-1 text-sm font-medium text-oai-black dark:text-white"}),n?T.jsx("button",{type:"button",onClick:()=>{n(),Ug.close(t.id)},className:"shrink-0 rounded-md px-2 py-1 text-xs font-semibold text-oai-gray-600 transition-colors hover:bg-oai-gray-100 hover:text-oai-black focus:outline-none focus:ring-2 focus:ring-oai-gray-400/30 dark:text-oai-gray-300 dark:hover:bg-oai-gray-800 dark:hover:text-white",children:Ie("shared.action.undo")}):null,T.jsx(EU,{"aria-label":Ie("shared.action.dismiss"),className:"-mr-1 inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-oai-gray-400 transition-colors hover:bg-oai-gray-100 hover:text-oai-black focus:outline-none focus:ring-2 focus:ring-oai-gray-400/30 dark:hover:bg-oai-gray-800 dark:hover:text-white",children:T.jsx(Zm,{className:"h-3.5 w-3.5","aria-hidden":!0})})]},t.id)})}const Bg=Object.freeze(["limits","leaderboard"]),zU=Object.freeze({limits:"/limits",leaderboard:"/leaderboard"}),FU=Object.freeze({limits:()=>In(()=>import("./LimitsPage-CSMrR78h.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),leaderboard:()=>In(()=>import("./LeaderboardPage-Do8q6zE0.js"),__vite__mapDeps([8,9,10,11,12,13]))}),pS="total",mS=0,p0=20,VU=Object.freeze([10,20,50,100]),$U="tokentracker:leaderboard:pageSize",HU=20,WU=Object.freeze(["dashboard-existing","silent-preload","page-load","manual-refresh"]);let m0=0,ra;class KU{constructor(t={}){this.limits=null,this.leaderboard=new Map,this.leaderboardMaxEntries=YU(t.leaderboardMaxEntries)}read(t,n){return Vl(t),t==="limits"?!this.limits||this.limits.contextKey!==n?null:Lu(this.limits):n?Lu(this.leaderboard.get(n)):null}write(t,n={}){if(t.targetKey==="limits"){this.limits=t;return}this.leaderboard.has(t.contextKey)&&this.leaderboard.delete(t.contextKey),this.leaderboard.set(t.contextKey,t),this.evictLeaderboardEntries(n.activeContextKey||t.contextKey)}evictLeaderboardEntries(t=null){for(;this.leaderboard.size>this.leaderboardMaxEntries;){const n=Array.from(this.leaderboard.keys()).find(a=>a!==t)||this.leaderboard.keys().next().value;this.leaderboard.delete(n)}}snapshot(){return{limits:Lu(this.limits),leaderboard:{maxEntries:this.leaderboardMaxEntries,size:this.leaderboard.size,keys:Array.from(this.leaderboard.keys())}}}}class GU{constructor(t={}){m0+=1,this.sessionId=`dashboard-preload-${m0}`,this.createdAt=Date.now(),this.completedAt=null,this.startedAfterMainContentVisible=!1,this.cache=new KU(t),this.targets={limits:g0("limits"),leaderboard:g0("leaderboard")}}}function g0(e){return{key:e,route:zU[e],resourceStatus:"idle",stateStatus:"idle",error:null,resourcePromise:null,resourceModule:null,resourceRequestId:0,statePromise:null,stateRequestId:0,pendingStateContextKey:null}}function qU(e={}){return new GU(e)}function YU(e){const t=Number(e);return!Number.isInteger(t)||t<1?HU:t}ra=qU();function Vl(e){if(!Bg.includes(e))throw new Error(`Unknown dashboard preload target: ${e}`)}function gS(e){return e?typeof e=="string"?e:e.message||String(e):null}function ZU(e,t){return WU.includes(e)?e:t}function XU(e){const t=Number(e);return Number.isFinite(t)?t:Date.now()}function Lu(e){return e?{...e}:null}function y0(){const e=Bg.every(t=>{const n=ra.targets[t];return n.resourceStatus==="fulfilled"||n.resourceStatus==="rejected"});ra.completedAt=e?Date.now():null}function QU(){ra.startedAfterMainContentVisible=!0}function zg(e,t={}){Vl(e);const n=Object.entries(t).filter(([,a])=>a!==void 0).sort(([a],[o])=>a.localeCompare(o)).map(([a,o])=>`${a}=${o===null?"null":String(o)}`);return`${e}:${n.join("|")}`}function yS(e,t={}){Vl(e);const n=ra.targets[e];if(n.resourceStatus==="fulfilled")return Promise.resolve(n.resourceModule);if(n.resourceStatus==="pending"&&n.resourcePromise)return n.resourcePromise;const a=t.loader||FU[e],o=n.resourceRequestId+1;n.resourceRequestId=o,n.resourceStatus="pending",n.error=null;const s=Promise.resolve().then(()=>a()).then(l=>n.resourceRequestId!==o||n.resourcePromise!==s?null:(n.resourceStatus="fulfilled",n.resourceModule=l,n.error=null,y0(),l)).catch(l=>(n.resourceRequestId!==o||n.resourcePromise!==s||(n.resourceStatus="rejected",n.error=gS(l),y0()),null));return n.resourcePromise=s,s}function JU(e={}){const t=e.loaders||{};return Promise.all(Bg.map(n=>yS(n,{loader:t[n]})))}function vS(e,t){Vl(e);const n=ra.targets[e],a=t?.status||"fulfilled",o={targetKey:e,status:a,data:t?.data??null,error:gS(t?.error),source:ZU(t?.source,"silent-preload"),generatedAt:XU(t?.generatedAt),updatedAt:Date.now(),contextKey:t?.contextKey||zg(e,t?.context||{})};return n.stateStatus=a,a==="rejected"||a==="skipped"?n.error=o.error:a==="fulfilled"&&(n.error=null,ra.cache.write(o,{activeContextKey:t?.activeContextKey})),Lu(o)}function bS(e,t){return Vl(e),ra.cache.read(e,t)}function mB(e,t={}){return vS("limits",{data:e,source:t.source||"dashboard-existing",contextKey:t.contextKey||kS(t.context||{}),generatedAt:t.generatedAt,status:t.status||"fulfilled",error:t.error})}function kS(e={}){return zg("limits",{state:"current",...e})}function gB(e=kS()){return bS("limits",e)}function om(e,t={}){return vS("leaderboard",{activeContextKey:t.activeContextKey,data:e,source:t.source||"silent-preload",contextKey:t.contextKey||Fg(t.context||{}),generatedAt:t.generatedAt,status:t.status||"fulfilled",error:t.error})}function e9(e){return bS("leaderboard",e)}function _S(){if(typeof window>"u")return p0;try{const e=window.localStorage.getItem($U),t=Number(e);if(VU.includes(t))return t}catch{}return p0}function wS(e={}){const t=e.userId;return t!==void 0?t||null:e.cloudUser?.id||null}function xS(e={}){return typeof e.accessMode=="string"&&e.accessMode.trim()?e.accessMode.trim():e.mockEnabled?"mock":e.baseUrl?"cloud":"unavailable"}function Fg(e={}){const t=!!e.mockEnabled,n=e.baseUrl??"";return zg("leaderboard",{accessMode:xS({...e,baseUrl:n,mockEnabled:t}),baseUrl:n,mockEnabled:t,offset:e.offset??mS,pageSize:e.pageSize??_S(),period:e.period||pS,userId:wS(e)})}function cu(e,t){const n=ra.targets.leaderboard;return n.stateRequestId+=1,n.statePromise=null,n.pendingStateContextKey=null,om(null,{contextKey:t,status:"skipped",error:e})}function t9(e={}){const t=ra,n=!!e.mockEnabled,a=e.baseUrl??"",o=xS({...e,baseUrl:a,mockEnabled:n}),s=e.period||pS,l=e.pageSize??_S(),u=e.offset??mS,h=wS(e),f=Fg({accessMode:o,baseUrl:a,mockEnabled:n,offset:u,pageSize:l,period:s,userId:h});if(!n&&e.authLoading)return Promise.resolve(cu("auth-loading",f));if(!n&&!e.signedIn&&o!=="public")return Promise.resolve(cu("not-signed-in",f));if(!n&&!a)return Promise.resolve(cu("missing-base-url",f));if(!n&&o==="unavailable")return Promise.resolve(cu("access-unavailable",f));const m=t.targets.leaderboard,y=e9(f);if(y)return Promise.resolve(y);if(m.stateStatus==="pending"&&m.statePromise&&m.pendingStateContextKey===f)return m.statePromise;const v=m.stateRequestId+1;m.stateRequestId=v,m.stateStatus="pending",m.pendingStateContextKey=f,m.error=null;const _=Promise.resolve().then(()=>iD({userId:h,period:s,limit:l,offset:u})).then(x=>ra!==t||m.stateRequestId!==v||m.statePromise!==_?null:(m.pendingStateContextKey=null,om(x,{contextKey:f}))).catch(x=>(ra!==t||m.stateRequestId!==v||m.statePromise!==_||(m.pendingStateContextKey=null,om(null,{contextKey:f,status:"rejected",error:x})),null));return m.statePromise=_,_}const n9=typeof window<"u"?window.location.search:"",v0=new URLSearchParams(n9),uu=v0.get("insforge_code")||v0.get("code")||null,a9=typeof window<"u"&&!!window.webkit?.messageHandlers?.nativeOAuth;function r9(){Pd();const{loading:e,signedIn:t}=Il(),n=pd(),[a,o]=k.useState("processing"),[s,l]=k.useState(null),u=k.useRef(!1);k.useEffect(()=>{if(!(!uu||u.current)){if(u.current=!0,a9){l(!1);return}(async()=>{try{const m=await(await fetch("/api/auth-bridge/verifier")).json();l(!!m?.native)}catch{l(!1)}})()}},[]),k.useEffect(()=>{if(s!==!0||!uu)return;o("redirecting");const f=setTimeout(()=>{window.location.href=`tokentracker://auth/callback?insforge_code=${encodeURIComponent(uu)}`},200);return()=>clearTimeout(f)},[s]),k.useEffect(()=>{if(s!==!1||e)return;if(t){n("/dashboard",{replace:!0});return}const f=setTimeout(()=>{t||o("failed")},12e3);return()=>clearTimeout(f)},[s,e,t,n]),k.useEffect(()=>{if(!uu&&s===null){const f=setTimeout(()=>o("failed"),3e3);return()=>clearTimeout(f)}},[s]);const h=()=>{n("/dashboard",{replace:!0})};return a==="processing"&&s!==!0&&(s===null||s===!1&&e)?T.jsx("div",{className:"min-h-screen bg-oai-gray-950"}):T.jsx("div",{className:"min-h-screen bg-oai-gray-950 text-white font-oai antialiased dark flex items-center justify-center",children:T.jsxs("div",{className:"text-center space-y-4 max-w-sm px-4",children:[a==="processing"&&T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"w-8 h-8 border-2 border-oai-gray-600 border-t-white rounded-full animate-spin mx-auto"}),T.jsx("p",{className:"text-oai-gray-400 text-sm",children:Ie("auth.callback.processing")})]}),a==="redirecting"&&T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"w-12 h-12 mx-auto rounded-full bg-green-500/15 flex items-center justify-center",children:T.jsx("svg",{className:"w-6 h-6 text-green-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:T.jsx("path",{d:"M20 6 9 17l-5-5"})})}),T.jsx("p",{className:"text-white text-sm font-medium",children:Ie("auth.callback.success")}),T.jsx("p",{className:"text-oai-gray-500 text-xs",children:Ie("auth.callback.redirecting")})]}),a==="failed"&&T.jsxs("div",{className:"space-y-3",children:[T.jsx("p",{className:"text-oai-gray-300 text-sm",children:Ie("auth.callback.failed")}),T.jsx("button",{type:"button",onClick:h,className:"px-4 py-2 rounded-lg bg-oai-gray-800 text-sm text-white hover:bg-oai-gray-700 transition-colors",children:Ie("auth.callback.close")})]})]})})}const i9=k.lazy(()=>In(()=>import("./DashboardPage-DgfB74ho.js"),__vite__mapDeps([14,1,12,15,16,17,11,3,9,10,18,19,4])).then(e=>({default:e.DashboardPage}))),o9=k.lazy(()=>In(()=>import("./IpCheckPage-BTRIIrgJ.js"),[])),s9=k.lazy(()=>In(()=>import("./LandingPage-8megwe50.js"),__vite__mapDeps([20,21,18])).then(e=>({default:e.LandingPage}))),l9=k.lazy(()=>In(()=>import("./LeaderboardPage-Do8q6zE0.js"),__vite__mapDeps([8,9,10,11,12,13])).then(e=>({default:e.LeaderboardPage}))),c9=k.lazy(()=>In(()=>import("./LeaderboardProfilePage-BwRQXm7S.js"),__vite__mapDeps([22,12,21,23,13,15,16,6,11,17])).then(e=>({default:e.LeaderboardProfilePage}))),u9=k.lazy(()=>In(()=>import("./LimitsPage-CSMrR78h.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(e=>({default:e.LimitsPage}))),d9=k.lazy(()=>In(()=>import("./LoginPage-X3dGB5KJ.js"),[]).then(e=>({default:e.LoginPage}))),h9=k.lazy(()=>In(()=>import("./DevicePage-tEOIlH-F.js"),[])),f9=k.lazy(()=>In(()=>import("./WrappedPage-BxCUoD83.js"),[])),p9=k.lazy(()=>In(()=>import("./SettingsPage-BaFEjcYg.js"),__vite__mapDeps([24,2,25,3,11,12,9,10,16,7])).then(e=>({default:e.SettingsPage}))),m9=k.lazy(()=>In(()=>import("./SkillsPage-B3eZ7Xoi.js"),__vite__mapDeps([26,5,6,7,3,17,11,16,12,19,10])).then(e=>({default:e.SkillsPage}))),g9=k.lazy(()=>In(()=>import("./WidgetsPage-BJG30H3H.js"),__vite__mapDeps([27,9,10,11,25,3,4,6,7])).then(e=>({default:e.WidgetsPage})));function y9(){if(typeof window>"u")return!1;const e=window.location.hostname;return e!=="localhost"&&e!=="127.0.0.1"&&e!=="::1"}function v9(){const{resolvedLocale:e}=Pd(),t=Wn(),n=Il();bj();const a=k.useRef(!1),o=k.useRef(!1),s=k.useRef(new Set),l=xn(),u=y9(),h=k.useMemo(()=>typeof window>"u"?!1:dj(window.location.search),[]),f=t?.pathname||"/",m=new URL(window.location.href),y=m.pathname.replace(/\/+$/,"")||"/",_=y.match(/^\/share\/([^/?#]+)$/i)?.[1]||null,x=m.searchParams.get("token")||null,C=_||x,S=y==="/share"||y==="/share.html"||y.startsWith("/share/"),M=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"),R=f.replace(/\/+$/,"")||"/",A=R==="/"||R==="/dashboard",E=R==="/leaderboard",B=R.match(/^\/u\/([^/]+)$/i),$=B?B[1]:null,V=!!(n.enabled&&n.signedIn),P=M||V,Z=!1,X=cj(),fe=!P&&!l&&!M,he=l?"mock":n.loading?"unavailable":V?"cloud":P?"local":"unavailable",J=k.useCallback(()=>{if(M||!a.current||!l&&n.loading||!l&&!P)return;const me={accessMode:he,baseUrl:uj(),mockEnabled:l,signedIn:P,authLoading:!!n.loading,userId:V&&n.user?.id||null},be=Fg(me);s.current.has(be)||(s.current.add(be),t9(me))},[V,n.loading,n.user?.id,M,he,l,P]),re=k.useCallback(()=>{A&&(a.current||(a.current=!0,QU()),o.current||(o.current=!0,M?yS("limits"):JU()),J())},[A,M,J]);k.useEffect(()=>{J()},[J]);const ue=k.useMemo(()=>!n.enabled||!V?null:{getAccessToken:()=>n.getAccessToken(),name:n.displayName||"",userId:n.user?.id||null},[V,n]);let Q=M||l||h?"dashboard":"landing";R==="/landing"&&(Q="landing"),R==="/dashboard"&&(Q="dashboard"),E&&(Q="dashboard"),$&&(Q="dashboard");const ie=R==="/limits",F=R==="/settings",Y=R==="/skills",z=R==="/widgets",I=R==="/ip-check";(ie||F||Y||z||I)&&(Q="dashboard");let W=i9;$?W=c9:R==="/leaderboard"?W=l9:ie?W=u9:F?W=p9:Y?W=m9:z?W=g9:I&&(W=o9);const ge=!S&&!fe&&(R==="/dashboard"||R==="/"||E||ie||F||Y||z||I);let pe=null;if(R==="/auth/callback"||R==="/auth/native-callback")pe=T.jsx(r9,{});else if(R==="/login")pe=T.jsx(d9,{});else if(R==="/device")pe=T.jsx(h9,{});else if(R==="/wrapped")pe=T.jsx(f9,{});else if(Q==="landing")pe=T.jsx(s9,{signInUrl:"/login",signUpUrl:"/login"});else{const me=T.jsx(W,{baseUrl:X,auth:ue,signedIn:P,sessionSoftExpired:Z,signOut:()=>n.enabled?n.signOut():Promise.resolve(),publicMode:S,publicToken:C,userId:$,signInUrl:"/login",signUpUrl:"/login",onMainContentVisible:re},e);ge?pe=T.jsx(Mj,{children:me}):pe=me}return T.jsx(sM,{children:T.jsx(uM,{children:T.jsx(UU,{children:T.jsxs(dM,{children:[T.jsx(k.Suspense,{fallback:null,children:pe}),ge?T.jsx(a8,{}):null,T.jsx(sj,{}),u?T.jsx(sI,{}):null,u?T.jsx(vI,{}):null]})})})})}const b9=wE([{path:"*",element:T.jsx(v9,{})}]);hT.createRoot(document.getElementById("root")).render(T.jsx(lm.StrictMode,{children:T.jsx(zD,{children:T.jsx(GD,{children:T.jsx(uD,{children:T.jsx(ME,{router:b9})})})})}));export{Z9 as $,Ie as A,ku as B,F9 as C,z9 as D,gl as E,oM as F,c7 as G,J9 as H,L9 as I,R9 as J,RI as K,gd as L,oP as M,kj as N,Qt as O,e8 as P,EI as Q,lm as R,Km as S,Il as T,j9 as U,iD as V,Pd as W,Zm as X,dj as Y,Gr as Z,In as _,Fl as a,sS as a$,V9 as a0,SL as a1,D9 as a2,I9 as a3,mB as a4,X9 as a5,B9 as a6,hM as a7,d7 as a8,O9 as a9,JI as aA,a7 as aB,k9 as aC,dL as aD,Xm as aE,Pk as aF,W9 as aG,Ax as aH,Ex as aI,HI as aJ,U9 as aK,Go as aL,Ku as aM,yx as aN,vx as aO,bx as aP,kx as aQ,YI as aR,wa as aS,rl as aT,l7 as aU,o7 as aV,Bl as aW,Dn as aX,zl as aY,Y7 as aZ,c0 as a_,l4 as aa,gt as ab,an as ac,td as ad,Qm as ae,Yo as af,Pg as ag,Dx as ah,ei as ai,Gk as aj,$i as ak,Wn as al,pd as am,uj as an,pL as ao,Fg as ap,e9 as aq,om as ar,fL as as,T9 as at,h7 as au,E9 as av,K9 as aw,rM as ax,Wm as ay,gB as az,RU as b,u8 as b$,qr as b0,q7 as b1,aS as b2,nB as b3,pU as b4,cU as b5,t8 as b6,m7 as b7,f7 as b8,P7 as b9,Ul as bA,WP as bB,dB as bC,J7 as bD,ul as bE,G7 as bF,ep as bG,K7 as bH,O8 as bI,fB as bJ,tB as bK,fU as bL,oU as bM,Ld as bN,KD as bO,Vm as bP,s7 as bQ,i7 as bR,U7 as bS,B7 as bT,O7 as bU,j7 as bV,dU as bW,_8 as bX,a0 as bY,r8 as bZ,ti as b_,S7 as ba,C7 as bb,XI as bc,p7 as bd,g7 as be,pB as bf,y7 as bg,_7 as bh,v7 as bi,b7 as bj,k7 as bk,x7 as bl,w7 as bm,R7 as bn,LU as bo,k8 as bp,rB as bq,Dd as br,Qp as bs,BP as bt,Ni as bu,wl as bv,aB as bw,lB as bx,X7 as by,AU as bz,Kt as c,VP as c0,c8 as c1,i8 as c2,Xp as c3,FP as c4,T7 as c5,l8 as c6,E7 as c7,Rg as c8,zP as c9,sm as cA,oS as cB,jg as cC,o0 as cD,M7 as cE,N7 as cF,Og as cG,D7 as cH,q9 as cI,Y9 as cJ,G9 as cK,hr as cL,A7 as ca,dS as cb,$7 as cc,V7 as cd,xl as ce,cB as cf,Z7 as cg,Bo as ch,iB as ci,uB as cj,eB as ck,Q7 as cl,L7 as cm,hB as cn,oB as co,I7 as cp,g8 as cq,DU as cr,Dg as cs,Ig as ct,hU as cu,j8 as cv,W7 as cw,H7 as cx,F7 as cy,z7 as cz,sB as d,u6 as e,A9 as f,lx as g,bL as h,xn as i,T as j,r7 as k,ML as l,cl as m,NL as n,e7 as o,N9 as p,H9 as q,k as r,n7 as s,t7 as t,CU as u,M9 as v,Ct as w,$9 as x,Q9 as y,sx as z};