autoglm-gui 1.4.0__py3-none-any.whl → 1.5.0__py3-none-any.whl

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 (120) hide show
  1. AutoGLM_GUI/__init__.py +11 -0
  2. AutoGLM_GUI/__main__.py +26 -8
  3. AutoGLM_GUI/actions/__init__.py +6 -0
  4. AutoGLM_GUI/actions/handler.py +196 -0
  5. AutoGLM_GUI/actions/types.py +15 -0
  6. AutoGLM_GUI/adb/__init__.py +53 -0
  7. AutoGLM_GUI/adb/apps.py +227 -0
  8. AutoGLM_GUI/adb/connection.py +323 -0
  9. AutoGLM_GUI/adb/device.py +171 -0
  10. AutoGLM_GUI/adb/input.py +67 -0
  11. AutoGLM_GUI/adb/screenshot.py +11 -0
  12. AutoGLM_GUI/adb/timing.py +167 -0
  13. AutoGLM_GUI/adb_plus/keyboard_installer.py +4 -2
  14. AutoGLM_GUI/adb_plus/qr_pair.py +8 -8
  15. AutoGLM_GUI/adb_plus/screenshot.py +22 -1
  16. AutoGLM_GUI/adb_plus/serial.py +38 -20
  17. AutoGLM_GUI/adb_plus/touch.py +4 -9
  18. AutoGLM_GUI/agents/__init__.py +51 -0
  19. AutoGLM_GUI/agents/events.py +19 -0
  20. AutoGLM_GUI/agents/factory.py +153 -0
  21. AutoGLM_GUI/agents/glm/__init__.py +7 -0
  22. AutoGLM_GUI/agents/glm/agent.py +292 -0
  23. AutoGLM_GUI/agents/glm/message_builder.py +81 -0
  24. AutoGLM_GUI/agents/glm/parser.py +110 -0
  25. AutoGLM_GUI/agents/glm/prompts_en.py +77 -0
  26. AutoGLM_GUI/agents/glm/prompts_zh.py +75 -0
  27. AutoGLM_GUI/agents/mai/__init__.py +28 -0
  28. AutoGLM_GUI/agents/mai/agent.py +405 -0
  29. AutoGLM_GUI/agents/mai/parser.py +254 -0
  30. AutoGLM_GUI/agents/mai/prompts.py +103 -0
  31. AutoGLM_GUI/agents/mai/traj_memory.py +91 -0
  32. AutoGLM_GUI/agents/protocols.py +27 -0
  33. AutoGLM_GUI/agents/stream_runner.py +188 -0
  34. AutoGLM_GUI/api/__init__.py +71 -11
  35. AutoGLM_GUI/api/agents.py +190 -229
  36. AutoGLM_GUI/api/control.py +9 -6
  37. AutoGLM_GUI/api/devices.py +112 -28
  38. AutoGLM_GUI/api/health.py +13 -0
  39. AutoGLM_GUI/api/history.py +78 -0
  40. AutoGLM_GUI/api/layered_agent.py +306 -181
  41. AutoGLM_GUI/api/mcp.py +11 -10
  42. AutoGLM_GUI/api/media.py +64 -1
  43. AutoGLM_GUI/api/scheduled_tasks.py +98 -0
  44. AutoGLM_GUI/api/version.py +23 -10
  45. AutoGLM_GUI/api/workflows.py +2 -1
  46. AutoGLM_GUI/config.py +72 -14
  47. AutoGLM_GUI/config_manager.py +98 -27
  48. AutoGLM_GUI/device_adapter.py +263 -0
  49. AutoGLM_GUI/device_manager.py +248 -29
  50. AutoGLM_GUI/device_protocol.py +266 -0
  51. AutoGLM_GUI/devices/__init__.py +49 -0
  52. AutoGLM_GUI/devices/adb_device.py +200 -0
  53. AutoGLM_GUI/devices/mock_device.py +185 -0
  54. AutoGLM_GUI/devices/remote_device.py +177 -0
  55. AutoGLM_GUI/exceptions.py +3 -3
  56. AutoGLM_GUI/history_manager.py +164 -0
  57. AutoGLM_GUI/i18n.py +81 -0
  58. AutoGLM_GUI/metrics.py +13 -20
  59. AutoGLM_GUI/model/__init__.py +5 -0
  60. AutoGLM_GUI/model/message_builder.py +69 -0
  61. AutoGLM_GUI/model/types.py +24 -0
  62. AutoGLM_GUI/models/__init__.py +10 -0
  63. AutoGLM_GUI/models/history.py +96 -0
  64. AutoGLM_GUI/models/scheduled_task.py +71 -0
  65. AutoGLM_GUI/parsers/__init__.py +22 -0
  66. AutoGLM_GUI/parsers/base.py +50 -0
  67. AutoGLM_GUI/parsers/phone_parser.py +58 -0
  68. AutoGLM_GUI/phone_agent_manager.py +118 -367
  69. AutoGLM_GUI/platform_utils.py +31 -2
  70. AutoGLM_GUI/prompt_config.py +15 -0
  71. AutoGLM_GUI/prompts/__init__.py +32 -0
  72. AutoGLM_GUI/scheduler_manager.py +304 -0
  73. AutoGLM_GUI/schemas.py +272 -63
  74. AutoGLM_GUI/scrcpy_stream.py +159 -37
  75. AutoGLM_GUI/server.py +3 -1
  76. AutoGLM_GUI/socketio_server.py +114 -29
  77. AutoGLM_GUI/state.py +10 -30
  78. AutoGLM_GUI/static/assets/{about-DeclntHg.js → about-BQm96DAl.js} +1 -1
  79. AutoGLM_GUI/static/assets/alert-dialog-B42XxGPR.js +1 -0
  80. AutoGLM_GUI/static/assets/chat-C0L2gQYG.js +129 -0
  81. AutoGLM_GUI/static/assets/circle-alert-D4rSJh37.js +1 -0
  82. AutoGLM_GUI/static/assets/dialog-DZ78cEcj.js +45 -0
  83. AutoGLM_GUI/static/assets/history-DFBv7TGc.js +1 -0
  84. AutoGLM_GUI/static/assets/index-Bzyv2yQ2.css +1 -0
  85. AutoGLM_GUI/static/assets/{index-zQ4KKDHt.js → index-CmZSnDqc.js} +1 -1
  86. AutoGLM_GUI/static/assets/index-CssG-3TH.js +11 -0
  87. AutoGLM_GUI/static/assets/label-BCUzE_nm.js +1 -0
  88. AutoGLM_GUI/static/assets/logs-eoFxn5of.js +1 -0
  89. AutoGLM_GUI/static/assets/popover-DLsuV5Sx.js +1 -0
  90. AutoGLM_GUI/static/assets/scheduled-tasks-MyqGJvy_.js +1 -0
  91. AutoGLM_GUI/static/assets/square-pen-zGWYrdfj.js +1 -0
  92. AutoGLM_GUI/static/assets/textarea-BX6y7uM5.js +1 -0
  93. AutoGLM_GUI/static/assets/workflows-CYFs6ssC.js +1 -0
  94. AutoGLM_GUI/static/index.html +2 -2
  95. AutoGLM_GUI/types.py +142 -0
  96. {autoglm_gui-1.4.0.dist-info → autoglm_gui-1.5.0.dist-info}/METADATA +178 -92
  97. autoglm_gui-1.5.0.dist-info/RECORD +157 -0
  98. mai_agent/base.py +137 -0
  99. mai_agent/mai_grounding_agent.py +263 -0
  100. mai_agent/mai_naivigation_agent.py +526 -0
  101. mai_agent/prompt.py +148 -0
  102. mai_agent/unified_memory.py +67 -0
  103. mai_agent/utils.py +73 -0
  104. AutoGLM_GUI/api/dual_model.py +0 -311
  105. AutoGLM_GUI/dual_model/__init__.py +0 -53
  106. AutoGLM_GUI/dual_model/decision_model.py +0 -664
  107. AutoGLM_GUI/dual_model/dual_agent.py +0 -917
  108. AutoGLM_GUI/dual_model/protocols.py +0 -354
  109. AutoGLM_GUI/dual_model/vision_model.py +0 -442
  110. AutoGLM_GUI/mai_ui_adapter/agent_wrapper.py +0 -291
  111. AutoGLM_GUI/phone_agent_patches.py +0 -146
  112. AutoGLM_GUI/static/assets/chat-Iut2yhSw.js +0 -125
  113. AutoGLM_GUI/static/assets/dialog-BfdcBs1x.js +0 -45
  114. AutoGLM_GUI/static/assets/index-5hCCwHA7.css +0 -1
  115. AutoGLM_GUI/static/assets/index-DHF1NZh0.js +0 -12
  116. AutoGLM_GUI/static/assets/workflows-xiplap-r.js +0 -1
  117. autoglm_gui-1.4.0.dist-info/RECORD +0 -100
  118. {autoglm_gui-1.4.0.dist-info → autoglm_gui-1.5.0.dist-info}/WHEEL +0 -0
  119. {autoglm_gui-1.4.0.dist-info → autoglm_gui-1.5.0.dist-info}/entry_points.txt +0 -0
  120. {autoglm_gui-1.4.0.dist-info → autoglm_gui-1.5.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,11 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/workflows-CYFs6ssC.js","assets/label-BCUzE_nm.js","assets/textarea-BX6y7uM5.js","assets/dialog-DZ78cEcj.js","assets/square-pen-zGWYrdfj.js","assets/scheduled-tasks-MyqGJvy_.js","assets/alert-dialog-B42XxGPR.js","assets/popover-DLsuV5Sx.js","assets/logs-eoFxn5of.js","assets/circle-alert-D4rSJh37.js","assets/history-DFBv7TGc.js","assets/chat-C0L2gQYG.js"])))=>i.map(i=>d[i]);
2
+ function Eb(a,o){for(var l=0;l<o.length;l++){const s=o[l];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in a)){const f=Object.getOwnPropertyDescriptor(s,c);f&&Object.defineProperty(a,c,f.get?f:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function l(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();var $C=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lf(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var wu={exports:{}},jl={};var Mp;function Tb(){if(Mp)return jl;Mp=1;var a=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function l(s,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:a,type:s,key:d,ref:c!==void 0?c:null,props:f}}return jl.Fragment=o,jl.jsx=l,jl.jsxs=l,jl}var Op;function Ab(){return Op||(Op=1,wu.exports=Tb()),wu.exports}var k=Ab(),_u={exports:{}},Bl={},Ru={exports:{}},Cu={};var Dp;function Mb(){return Dp||(Dp=1,(function(a){function o(D,W){var G=D.length;D.push(W);e:for(;0<G;){var fe=G-1>>>1,ge=D[fe];if(0<c(ge,W))D[fe]=W,D[G]=ge,G=fe;else break e}}function l(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var W=D[0],G=D.pop();if(G!==W){D[0]=G;e:for(var fe=0,ge=D.length,E=ge>>>1;fe<E;){var X=2*(fe+1)-1,F=D[X],$=X+1,oe=D[$];if(0>c(F,G))$<ge&&0>c(oe,F)?(D[fe]=oe,D[$]=G,fe=$):(D[fe]=F,D[X]=G,fe=X);else if($<ge&&0>c(oe,G))D[fe]=oe,D[$]=G,fe=$;else break e}}return W}function c(D,W){var G=D.sortIndex-W.sortIndex;return G!==0?G:D.id-W.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();a.unstable_now=function(){return d.now()-g}}var h=[],m=[],v=1,y=null,b=3,x=!1,w=!1,A=!1,T=!1,M=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function P(D){for(var W=l(m);W!==null;){if(W.callback===null)s(m);else if(W.startTime<=D)s(m),W.sortIndex=W.expirationTime,o(h,W);else break;W=l(m)}}function Z(D){if(A=!1,P(D),!w)if(l(h)!==null)w=!0,V||(V=!0,ce());else{var W=l(m);W!==null&&me(Z,W.startTime-D)}}var V=!1,L=-1,j=5,J=-1;function I(){return T?!0:!(a.unstable_now()-J<j)}function ee(){if(T=!1,V){var D=a.unstable_now();J=D;var W=!0;try{e:{w=!1,A&&(A=!1,H(L),L=-1),x=!0;var G=b;try{t:{for(P(D),y=l(h);y!==null&&!(y.expirationTime>D&&I());){var fe=y.callback;if(typeof fe=="function"){y.callback=null,b=y.priorityLevel;var ge=fe(y.expirationTime<=D);if(D=a.unstable_now(),typeof ge=="function"){y.callback=ge,P(D),W=!0;break t}y===l(h)&&s(h),P(D)}else s(h);y=l(h)}if(y!==null)W=!0;else{var E=l(m);E!==null&&me(Z,E.startTime-D),W=!1}}break e}finally{y=null,b=G,x=!1}W=void 0}}finally{W?ce():V=!1}}}var ce;if(typeof B=="function")ce=function(){B(ee)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,de=he.port2;he.port1.onmessage=ee,ce=function(){de.postMessage(null)}}else ce=function(){M(ee,0)};function me(D,W){L=M(function(){D(a.unstable_now())},W)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(D){D.callback=null},a.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<D?Math.floor(1e3/D):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(D){switch(b){case 1:case 2:case 3:var W=3;break;default:W=b}var G=b;b=W;try{return D()}finally{b=G}},a.unstable_requestPaint=function(){T=!0},a.unstable_runWithPriority=function(D,W){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var G=b;b=D;try{return W()}finally{b=G}},a.unstable_scheduleCallback=function(D,W,G){var fe=a.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?fe+G:fe):G=fe,D){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=G+ge,D={id:v++,callback:W,priorityLevel:D,startTime:G,expirationTime:ge,sortIndex:-1},G>fe?(D.sortIndex=G,o(m,D),l(h)===null&&D===l(m)&&(A?(H(L),L=-1):A=!0,me(Z,G-fe))):(D.sortIndex=ge,o(h,D),w||x||(w=!0,V||(V=!0,ce()))),D},a.unstable_shouldYield=I,a.unstable_wrapCallback=function(D){var W=b;return function(){var G=b;b=W;try{return D.apply(this,arguments)}finally{b=G}}}})(Cu)),Cu}var zp;function Ob(){return zp||(zp=1,Ru.exports=Mb()),Ru.exports}var Eu={exports:{}},pe={};var Lp;function Db(){if(Lp)return pe;Lp=1;var a=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function x(E){return E===null||typeof E!="object"?null:(E=b&&E[b]||E["@@iterator"],typeof E=="function"?E:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,T={};function M(E,X,F){this.props=E,this.context=X,this.refs=T,this.updater=F||w}M.prototype.isReactComponent={},M.prototype.setState=function(E,X){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,X,"setState")},M.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function H(){}H.prototype=M.prototype;function B(E,X,F){this.props=E,this.context=X,this.refs=T,this.updater=F||w}var P=B.prototype=new H;P.constructor=B,A(P,M.prototype),P.isPureReactComponent=!0;var Z=Array.isArray;function V(){}var L={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function J(E,X,F){var $=F.ref;return{$$typeof:a,type:E,key:X,ref:$!==void 0?$:null,props:F}}function I(E,X){return J(E.type,X,E.props)}function ee(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function ce(E){var X={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(F){return X[F]})}var he=/\/+/g;function de(E,X){return typeof E=="object"&&E!==null&&E.key!=null?ce(""+E.key):X.toString(36)}function me(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(X){E.status==="pending"&&(E.status="fulfilled",E.value=X)},function(X){E.status==="pending"&&(E.status="rejected",E.reason=X)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function D(E,X,F,$,oe){var re=typeof E;(re==="undefined"||re==="boolean")&&(E=null);var le=!1;if(E===null)le=!0;else switch(re){case"bigint":case"string":case"number":le=!0;break;case"object":switch(E.$$typeof){case a:case o:le=!0;break;case v:return le=E._init,D(le(E._payload),X,F,$,oe)}}if(le)return oe=oe(E),le=$===""?"."+de(E,0):$,Z(oe)?(F="",le!=null&&(F=le.replace(he,"$&/")+"/"),D(oe,X,F,"",function(ot){return ot})):oe!=null&&(ee(oe)&&(oe=I(oe,F+(oe.key==null||E&&E.key===oe.key?"":(""+oe.key).replace(he,"$&/")+"/")+le)),X.push(oe)),1;le=0;var Be=$===""?".":$+":";if(Z(E))for(var Ce=0;Ce<E.length;Ce++)$=E[Ce],re=Be+de($,Ce),le+=D($,X,F,re,oe);else if(Ce=x(E),typeof Ce=="function")for(E=Ce.call(E),Ce=0;!($=E.next()).done;)$=$.value,re=Be+de($,Ce++),le+=D($,X,F,re,oe);else if(re==="object"){if(typeof E.then=="function")return D(me(E),X,F,$,oe);throw X=String(E),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return le}function W(E,X,F){if(E==null)return E;var $=[],oe=0;return D(E,$,"","",function(re){return X.call(F,re,oe++)}),$}function G(E){if(E._status===-1){var X=E._result;X=X(),X.then(function(F){(E._status===0||E._status===-1)&&(E._status=1,E._result=F)},function(F){(E._status===0||E._status===-1)&&(E._status=2,E._result=F)}),E._status===-1&&(E._status=0,E._result=X)}if(E._status===1)return E._result.default;throw E._result}var fe=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ge={map:W,forEach:function(E,X,F){W(E,function(){X.apply(this,arguments)},F)},count:function(E){var X=0;return W(E,function(){X++}),X},toArray:function(E){return W(E,function(X){return X})||[]},only:function(E){if(!ee(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return pe.Activity=y,pe.Children=ge,pe.Component=M,pe.Fragment=l,pe.Profiler=c,pe.PureComponent=B,pe.StrictMode=s,pe.Suspense=h,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,pe.__COMPILER_RUNTIME={__proto__:null,c:function(E){return L.H.useMemoCache(E)}},pe.cache=function(E){return function(){return E.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(E,X,F){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var $=A({},E.props),oe=E.key;if(X!=null)for(re in X.key!==void 0&&(oe=""+X.key),X)!j.call(X,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&X.ref===void 0||($[re]=X[re]);var re=arguments.length-2;if(re===1)$.children=F;else if(1<re){for(var le=Array(re),Be=0;Be<re;Be++)le[Be]=arguments[Be+2];$.children=le}return J(E.type,oe,$)},pe.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},pe.createElement=function(E,X,F){var $,oe={},re=null;if(X!=null)for($ in X.key!==void 0&&(re=""+X.key),X)j.call(X,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(oe[$]=X[$]);var le=arguments.length-2;if(le===1)oe.children=F;else if(1<le){for(var Be=Array(le),Ce=0;Ce<le;Ce++)Be[Ce]=arguments[Ce+2];oe.children=Be}if(E&&E.defaultProps)for($ in le=E.defaultProps,le)oe[$]===void 0&&(oe[$]=le[$]);return J(E,re,oe)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(E){return{$$typeof:g,render:E}},pe.isValidElement=ee,pe.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:G}},pe.memo=function(E,X){return{$$typeof:m,type:E,compare:X===void 0?null:X}},pe.startTransition=function(E){var X=L.T,F={};L.T=F;try{var $=E(),oe=L.S;oe!==null&&oe(F,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(V,fe)}catch(re){fe(re)}finally{X!==null&&F.types!==null&&(X.types=F.types),L.T=X}},pe.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},pe.use=function(E){return L.H.use(E)},pe.useActionState=function(E,X,F){return L.H.useActionState(E,X,F)},pe.useCallback=function(E,X){return L.H.useCallback(E,X)},pe.useContext=function(E){return L.H.useContext(E)},pe.useDebugValue=function(){},pe.useDeferredValue=function(E,X){return L.H.useDeferredValue(E,X)},pe.useEffect=function(E,X){return L.H.useEffect(E,X)},pe.useEffectEvent=function(E){return L.H.useEffectEvent(E)},pe.useId=function(){return L.H.useId()},pe.useImperativeHandle=function(E,X,F){return L.H.useImperativeHandle(E,X,F)},pe.useInsertionEffect=function(E,X){return L.H.useInsertionEffect(E,X)},pe.useLayoutEffect=function(E,X){return L.H.useLayoutEffect(E,X)},pe.useMemo=function(E,X){return L.H.useMemo(E,X)},pe.useOptimistic=function(E,X){return L.H.useOptimistic(E,X)},pe.useReducer=function(E,X,F){return L.H.useReducer(E,X,F)},pe.useRef=function(E){return L.H.useRef(E)},pe.useState=function(E){return L.H.useState(E)},pe.useSyncExternalStore=function(E,X,F){return L.H.useSyncExternalStore(E,X,F)},pe.useTransition=function(){return L.H.useTransition()},pe.version="19.2.1",pe}var Np;function $l(){return Np||(Np=1,Eu.exports=Db()),Eu.exports}var Tu={exports:{}},st={};var kp;function zb(){if(kp)return st;kp=1;var a=$l();function o(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var s={d:{f:l,r:function(){throw Error(o(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(h,m,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:h,containerInfo:m,implementation:v}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return st.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,st.createPortal=function(h,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(o(299));return f(h,m,null,v)},st.flushSync=function(h){var m=d.T,v=s.p;try{if(d.T=null,s.p=2,h)return h()}finally{d.T=m,s.p=v,s.d.f()}},st.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(h,m))},st.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},st.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var v=m.as,y=g(v,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?s.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:x}):v==="script"&&s.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},st.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=g(m.as,m.crossOrigin);s.d.M(h,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(h)},st.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,y=g(v,m.crossOrigin);s.d.L(h,v,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},st.preloadModule=function(h,m){if(typeof h=="string")if(m){var v=g(m.as,m.crossOrigin);s.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(h)},st.requestFormReset=function(h){s.d.r(h)},st.unstable_batchedUpdates=function(h,m){return h(m)},st.useFormState=function(h,m,v){return d.H.useFormState(h,m,v)},st.useFormStatus=function(){return d.H.useHostTransitionStatus()},st.version="19.2.1",st}var Up;function Lg(){if(Up)return Tu.exports;Up=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(o){console.error(o)}}return a(),Tu.exports=zb(),Tu.exports}var jp;function Lb(){if(jp)return Bl;jp=1;var a=Ob(),o=$l(),l=Lg();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var u=r.alternate;if(u===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===u.child){for(u=r.child;u;){if(u===n)return h(r),e;if(u===i)return h(r),t;u=u.sibling}throw Error(s(188))}if(n.return!==i.return)n=r,i=u;else{for(var p=!1,S=r.child;S;){if(S===n){p=!0,n=r,i=u;break}if(S===i){p=!0,i=r,n=u;break}S=S.sibling}if(!p){for(S=u.child;S;){if(S===n){p=!0,n=u,i=r;break}if(S===i){p=!0,i=u,n=r;break}S=S.sibling}if(!p)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),B=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case M:return"Profiler";case T:return"StrictMode";case Z:return"Suspense";case V:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case B:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case P:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case L:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var me=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},fe=[],ge=-1;function E(e){return{current:e}}function X(e){0>ge||(e.current=fe[ge],fe[ge]=null,ge--)}function F(e,t){ge++,fe[ge]=e.current,e.current=t}var $=E(null),oe=E(null),re=E(null),le=E(null);function Be(e,t){switch(F(re,t),F(oe,e),F($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?$m(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=$m(t),e=Im(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X($),F($,e)}function Ce(){X($),X(oe),X(re)}function ot(e){e.memoizedState!==null&&F(le,e);var t=$.current,n=Im(t,e.type);t!==n&&(F(oe,e),F($,n))}function ut(e){oe.current===e&&(X($),X(oe)),le.current===e&&(X(le),Ll._currentValue=G)}var $e,on;function sn(e){if($e===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$e=t&&t[1]||"",on=-1<n.stack.indexOf(`
3
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
4
+ `+$e+e+on}var Xa=!1;function Yi(e,t){if(!e||Xa)return"";Xa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(q){var U=q}Reflect.construct(e,[],K)}else{try{K.call()}catch(q){U=q}e.call(K.prototype)}}else{try{throw Error()}catch(q){U=q}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(q){if(q&&U&&typeof q.stack=="string")return[q.stack,U.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),p=u[0],S=u[1];if(p&&S){var _=p.split(`
5
+ `),N=S.split(`
6
+ `);for(r=i=0;i<_.length&&!_[i].includes("DetermineComponentFrameRoot");)i++;for(;r<N.length&&!N[r].includes("DetermineComponentFrameRoot");)r++;if(i===_.length||r===N.length)for(i=_.length-1,r=N.length-1;1<=i&&0<=r&&_[i]!==N[r];)r--;for(;1<=i&&0<=r;i--,r--)if(_[i]!==N[r]){if(i!==1||r!==1)do if(i--,r--,0>r||_[i]!==N[r]){var Y=`
7
+ `+_[i].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=i&&0<=r);break}}}finally{Xa=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?sn(n):""}function cr(e,t){switch(e.tag){case 26:case 27:case 5:return sn(e.type);case 16:return sn("Lazy");case 13:return e.child!==t&&t!==null?sn("Suspense Fallback"):sn("Suspense");case 19:return sn("SuspenseList");case 0:case 15:return Yi(e.type,!1);case 11:return Yi(e.type.render,!1);case 1:return Yi(e.type,!0);case 31:return sn("Activity");default:return""}}function to(e){try{var t="",n=null;do t+=cr(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
8
+ Error generating stack: `+i.message+`
9
+ `+i.stack}}var Ln=Object.prototype.hasOwnProperty,Nn=a.unstable_scheduleCallback,Qa=a.unstable_cancelCallback,no=a.unstable_shouldYield,Le=a.unstable_requestPaint,Me=a.unstable_now,bt=a.unstable_getCurrentPriorityLevel,Pi=a.unstable_ImmediatePriority,Df=a.unstable_UserBlockingPriority,ao=a.unstable_NormalPriority,sv=a.unstable_LowPriority,zf=a.unstable_IdlePriority,rv=a.log,cv=a.unstable_setDisableYieldValue,Xi=null,St=null;function kn(e){if(typeof rv=="function"&&cv(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(Xi,e)}catch{}}var xt=Math.clz32?Math.clz32:dv,uv=Math.log,fv=Math.LN2;function dv(e){return e>>>=0,e===0?32:31-(uv(e)/fv|0)|0}var io=256,lo=262144,oo=4194304;function ga(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function so(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var r=0,u=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var S=i&134217727;return S!==0?(i=S&~u,i!==0?r=ga(i):(p&=S,p!==0?r=ga(p):n||(n=S&~e,n!==0&&(r=ga(n))))):(S=i&~u,S!==0?r=ga(S):p!==0?r=ga(p):n||(n=i&~e,n!==0&&(r=ga(n)))),r===0?0:t!==0&&t!==r&&(t&u)===0&&(u=r&-r,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:r}function Qi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function hv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lf(){var e=oo;return oo<<=1,(oo&62914560)===0&&(oo=4194304),e}function ur(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function mv(e,t,n,i,r,u){var p=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var S=e.entanglements,_=e.expirationTimes,N=e.hiddenUpdates;for(n=p&~n;0<n;){var Y=31-xt(n),K=1<<Y;S[Y]=0,_[Y]=-1;var U=N[Y];if(U!==null)for(N[Y]=null,Y=0;Y<U.length;Y++){var q=U[Y];q!==null&&(q.lane&=-536870913)}n&=~K}i!==0&&Nf(e,i,0),u!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=u&~(p&~t))}function Nf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-xt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function kf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-xt(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}function Uf(e,t){var n=t&-t;return n=(n&42)!==0?1:fr(n),(n&(e.suspendedLanes|t))!==0?0:n}function fr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function dr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function jf(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:wp(e.type))}function Bf(e,t){var n=W.p;try{return W.p=e,t()}finally{W.p=n}}var Un=Math.random().toString(36).slice(2),tt="__reactFiber$"+Un,ft="__reactProps$"+Un,Za="__reactContainer$"+Un,hr="__reactEvents$"+Un,pv="__reactListeners$"+Un,gv="__reactHandles$"+Un,Hf="__reactResources$"+Un,Ki="__reactMarker$"+Un;function mr(e){delete e[tt],delete e[ft],delete e[hr],delete e[pv],delete e[gv]}function Ka(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Za]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=op(e);e!==null;){if(n=e[tt])return n;e=op(e)}return t}e=n,n=e.parentNode}return null}function Wa(e){if(e=e[tt]||e[Za]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Fa(e){var t=e[Hf];return t||(t=e[Hf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Ki]=!0}var qf=new Set,Vf={};function ya(e,t){Ja(e,t),Ja(e+"Capture",t)}function Ja(e,t){for(Vf[e]=t,e=0;e<t.length;e++)qf.add(t[e])}var yv=RegExp("^[: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]*$"),Gf={},Yf={};function vv(e){return Ln.call(Yf,e)?!0:Ln.call(Gf,e)?!1:yv.test(e)?Yf[e]=!0:(Gf[e]=!0,!1)}function ro(e,t,n){if(vv(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function co(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function rn(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bv(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,u=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(p){n=""+p,u.call(this,p)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pr(e){if(!e._valueTracker){var t=Pf(e)?"checked":"value";e._valueTracker=bv(e,t,""+e[t])}}function Xf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Pf(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function uo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Sv=/[\n"\\]/g;function Lt(e){return e.replace(Sv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function gr(e,t,n,i,r,u,p,S){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+zt(t)):e.value!==""+zt(t)&&(e.value=""+zt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?yr(e,p,zt(t)):n!=null?yr(e,p,zt(n)):i!=null&&e.removeAttribute("value"),r==null&&u!=null&&(e.defaultChecked=!!u),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+zt(S):e.removeAttribute("name")}function Qf(e,t,n,i,r,u,p,S){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){pr(e);return}n=n!=null?""+zt(n):"",t=t!=null?""+zt(t):n,S||t===e.value||(e.value=t),e.defaultValue=t}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=S?e.checked:!!i,e.defaultChecked=!!i,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),pr(e)}function yr(e,t,n){t==="number"&&uo(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function $a(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+zt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Zf(e,t,n){if(t!=null&&(t=""+zt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+zt(n):""}function Kf(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(s(92));if(me(i)){if(1<i.length)throw Error(s(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=zt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),pr(e)}function Ia(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Wf(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||xv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ff(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&n[r]!==i&&Wf(e,r,i)}else for(var u in t)t.hasOwnProperty(u)&&Wf(e,u,t[u])}function vr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_v=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function fo(e){return _v.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function cn(){}var br=null;function Sr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ei=null,ti=null;function Jf(e){var t=Wa(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;e:switch(e=t.stateNode,t.type){case"input":if(gr(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Lt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=i[ft]||null;if(!r)throw Error(s(90));gr(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Xf(i)}break e;case"textarea":Zf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&$a(e,!!n.multiple,t,!1)}}}var xr=!1;function $f(e,t,n){if(xr)return e(t,n);xr=!0;try{var i=e(t);return i}finally{if(xr=!1,(ei!==null||ti!==null)&&(Io(),ei&&(t=ei,e=ti,ti=ei=null,Jf(t),e)))for(t=0;t<e.length;t++)Jf(e[t])}}function Fi(e,t){var n=e.stateNode;if(n===null)return null;var i=n[ft]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wr=!1;if(un)try{var Ji={};Object.defineProperty(Ji,"passive",{get:function(){wr=!0}}),window.addEventListener("test",Ji,Ji),window.removeEventListener("test",Ji,Ji)}catch{wr=!1}var jn=null,_r=null,ho=null;function If(){if(ho)return ho;var e,t=_r,n=t.length,i,r="value"in jn?jn.value:jn.textContent,u=r.length;for(e=0;e<n&&t[e]===r[e];e++);var p=n-e;for(i=1;i<=p&&t[n-i]===r[u-i];i++);return ho=r.slice(e,1<i?1-i:void 0)}function mo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function po(){return!0}function ed(){return!1}function dt(e){function t(n,i,r,u,p){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=u,this.target=p,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(n=e[S],this[S]=n?n(u):u[S]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?po:ed,this.isPropagationStopped=ed,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=po)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=po)},persist:function(){},isPersistent:po}),t}var va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},go=dt(va),$i=y({},va,{view:0,detail:0}),Rv=dt($i),Rr,Cr,Ii,yo=y({},$i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ii&&(Ii&&e.type==="mousemove"?(Rr=e.screenX-Ii.screenX,Cr=e.screenY-Ii.screenY):Cr=Rr=0,Ii=e),Rr)},movementY:function(e){return"movementY"in e?e.movementY:Cr}}),td=dt(yo),Cv=y({},yo,{dataTransfer:0}),Ev=dt(Cv),Tv=y({},$i,{relatedTarget:0}),Er=dt(Tv),Av=y({},va,{animationName:0,elapsedTime:0,pseudoElement:0}),Mv=dt(Av),Ov=y({},va,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dv=dt(Ov),zv=y({},va,{data:0}),nd=dt(zv),Lv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nv={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"},kv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=kv[e])?!!t[e]:!1}function Tr(){return Uv}var jv=y({},$i,{key:function(e){if(e.key){var t=Lv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=mo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tr,charCode:function(e){return e.type==="keypress"?mo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Bv=dt(jv),Hv=y({},yo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ad=dt(Hv),qv=y({},$i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tr}),Vv=dt(qv),Gv=y({},va,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yv=dt(Gv),Pv=y({},yo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Xv=dt(Pv),Qv=y({},va,{newState:0,oldState:0}),Zv=dt(Qv),Kv=[9,13,27,32],Ar=un&&"CompositionEvent"in window,el=null;un&&"documentMode"in document&&(el=document.documentMode);var Wv=un&&"TextEvent"in window&&!el,id=un&&(!Ar||el&&8<el&&11>=el),ld=" ",od=!1;function sd(e,t){switch(e){case"keyup":return Kv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ni=!1;function Fv(e,t){switch(e){case"compositionend":return rd(t);case"keypress":return t.which!==32?null:(od=!0,ld);case"textInput":return e=t.data,e===ld&&od?null:e;default:return null}}function Jv(e,t){if(ni)return e==="compositionend"||!Ar&&sd(e,t)?(e=If(),ho=_r=jn=null,ni=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return id&&t.locale!=="ko"?null:t.data;default:return null}}var $v={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 cd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$v[e.type]:t==="textarea"}function ud(e,t,n,i){ei?ti?ti.push(i):ti=[i]:ei=i,t=os(t,"onChange"),0<t.length&&(n=new go("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var tl=null,nl=null;function Iv(e){Qm(e,0)}function vo(e){var t=Wi(e);if(Xf(t))return e}function fd(e,t){if(e==="change")return t}var dd=!1;if(un){var Mr;if(un){var Or="oninput"in document;if(!Or){var hd=document.createElement("div");hd.setAttribute("oninput","return;"),Or=typeof hd.oninput=="function"}Mr=Or}else Mr=!1;dd=Mr&&(!document.documentMode||9<document.documentMode)}function md(){tl&&(tl.detachEvent("onpropertychange",pd),nl=tl=null)}function pd(e){if(e.propertyName==="value"&&vo(nl)){var t=[];ud(t,nl,e,Sr(e)),$f(Iv,t)}}function e0(e,t,n){e==="focusin"?(md(),tl=t,nl=n,tl.attachEvent("onpropertychange",pd)):e==="focusout"&&md()}function t0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vo(nl)}function n0(e,t){if(e==="click")return vo(t)}function a0(e,t){if(e==="input"||e==="change")return vo(t)}function i0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:i0;function al(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!Ln.call(t,r)||!wt(e[r],t[r]))return!1}return!0}function gd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yd(e,t){var n=gd(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gd(n)}}function vd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=uo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=uo(e.document)}return t}function Dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var l0=un&&"documentMode"in document&&11>=document.documentMode,ai=null,zr=null,il=null,Lr=!1;function Sd(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lr||ai==null||ai!==uo(i)||(i=ai,"selectionStart"in i&&Dr(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),il&&al(il,i)||(il=i,i=os(zr,"onSelect"),0<i.length&&(t=new go("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=ai)))}function ba(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ii={animationend:ba("Animation","AnimationEnd"),animationiteration:ba("Animation","AnimationIteration"),animationstart:ba("Animation","AnimationStart"),transitionrun:ba("Transition","TransitionRun"),transitionstart:ba("Transition","TransitionStart"),transitioncancel:ba("Transition","TransitionCancel"),transitionend:ba("Transition","TransitionEnd")},Nr={},xd={};un&&(xd=document.createElement("div").style,"AnimationEvent"in window||(delete ii.animationend.animation,delete ii.animationiteration.animation,delete ii.animationstart.animation),"TransitionEvent"in window||delete ii.transitionend.transition);function Sa(e){if(Nr[e])return Nr[e];if(!ii[e])return e;var t=ii[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xd)return Nr[e]=t[n];return e}var wd=Sa("animationend"),_d=Sa("animationiteration"),Rd=Sa("animationstart"),o0=Sa("transitionrun"),s0=Sa("transitionstart"),r0=Sa("transitioncancel"),Cd=Sa("transitionend"),Ed=new Map,kr="abort auxClick beforeToggle 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(" ");kr.push("scrollEnd");function Pt(e,t){Ed.set(e,t),ya(t,[e])}var bo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Nt=[],li=0,Ur=0;function So(){for(var e=li,t=Ur=li=0;t<e;){var n=Nt[t];Nt[t++]=null;var i=Nt[t];Nt[t++]=null;var r=Nt[t];Nt[t++]=null;var u=Nt[t];if(Nt[t++]=null,i!==null&&r!==null){var p=i.pending;p===null?r.next=r:(r.next=p.next,p.next=r),i.pending=r}u!==0&&Td(n,r,u)}}function xo(e,t,n,i){Nt[li++]=e,Nt[li++]=t,Nt[li++]=n,Nt[li++]=i,Ur|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function jr(e,t,n,i){return xo(e,t,n,i),wo(e)}function xa(e,t){return xo(e,null,null,t),wo(e)}function Td(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var r=!1,u=e.return;u!==null;)u.childLanes|=n,i=u.alternate,i!==null&&(i.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(r=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,r&&t!==null&&(r=31-xt(n),e=u.hiddenUpdates,i=e[r],i===null?e[r]=[t]:i.push(t),t.lane=n|536870912),u):null}function wo(e){if(50<El)throw El=0,Qc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oi={};function c0(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,i){return new c0(e,t,n,i)}function Br(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fn(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ad(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function _o(e,t,n,i,r,u){var p=0;if(i=e,typeof e=="function")Br(e)&&(p=1);else if(typeof e=="string")p=mb(e,n,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=_t(31,n,t,r),e.elementType=J,e.lanes=u,e;case A:return wa(n.children,r,u,t);case T:p=8,r|=24;break;case M:return e=_t(12,n,t,r|2),e.elementType=M,e.lanes=u,e;case Z:return e=_t(13,n,t,r),e.elementType=Z,e.lanes=u,e;case V:return e=_t(19,n,t,r),e.elementType=V,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:p=10;break e;case H:p=9;break e;case P:p=11;break e;case L:p=14;break e;case j:p=16,i=null;break e}p=29,n=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=_t(p,n,t,r),t.elementType=e,t.type=i,t.lanes=u,t}function wa(e,t,n,i){return e=_t(7,e,i,t),e.lanes=n,e}function Hr(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function Md(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function qr(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Od=new WeakMap;function kt(e,t){if(typeof e=="object"&&e!==null){var n=Od.get(e);return n!==void 0?n:(t={value:e,source:t,stack:to(t)},Od.set(e,t),t)}return{value:e,source:t,stack:to(t)}}var si=[],ri=0,Ro=null,ll=0,Ut=[],jt=0,Bn=null,Ft=1,Jt="";function dn(e,t){si[ri++]=ll,si[ri++]=Ro,Ro=e,ll=t}function Dd(e,t,n){Ut[jt++]=Ft,Ut[jt++]=Jt,Ut[jt++]=Bn,Bn=e;var i=Ft;e=Jt;var r=32-xt(i)-1;i&=~(1<<r),n+=1;var u=32-xt(t)+r;if(30<u){var p=r-r%5;u=(i&(1<<p)-1).toString(32),i>>=p,r-=p,Ft=1<<32-xt(t)+r|n<<r|i,Jt=u+e}else Ft=1<<u|n<<r|i,Jt=e}function Vr(e){e.return!==null&&(dn(e,1),Dd(e,1,0))}function Gr(e){for(;e===Ro;)Ro=si[--ri],si[ri]=null,ll=si[--ri],si[ri]=null;for(;e===Bn;)Bn=Ut[--jt],Ut[jt]=null,Jt=Ut[--jt],Ut[jt]=null,Ft=Ut[--jt],Ut[jt]=null}function zd(e,t){Ut[jt++]=Ft,Ut[jt++]=Jt,Ut[jt++]=Bn,Ft=t.id,Jt=t.overflow,Bn=e}var nt=null,He=null,Ee=!1,Hn=null,Bt=!1,Yr=Error(s(519));function qn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ol(kt(t,e)),Yr}function Ld(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[tt]=e,t[ft]=i,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<Al.length;n++)we(Al[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),Qf(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Kf(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Fm(t.textContent,n)?(i.popover!=null&&(we("beforetoggle",t),we("toggle",t)),i.onScroll!=null&&we("scroll",t),i.onScrollEnd!=null&&we("scrollend",t),i.onClick!=null&&(t.onclick=cn),t=!0):t=!1,t||qn(e,!0)}function Nd(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:nt=nt.return}}function ci(e){if(e!==nt)return!1;if(!Ee)return Nd(e),Ee=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||su(e.type,e.memoizedProps)),n=!n),n&&He&&qn(e),Nd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));He=lp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));He=lp(e)}else t===27?(t=He,ea(e.type)?(e=du,du=null,He=e):He=t):He=nt?qt(e.stateNode.nextSibling):null;return!0}function _a(){He=nt=null,Ee=!1}function Pr(){var e=Hn;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),Hn=null),e}function ol(e){Hn===null?Hn=[e]:Hn.push(e)}var Xr=E(null),Ra=null,hn=null;function Vn(e,t,n){F(Xr,t._currentValue),t._currentValue=n}function mn(e){e._currentValue=Xr.current,X(Xr)}function Qr(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Zr(e,t,n,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var u=r.dependencies;if(u!==null){var p=r.child;u=u.firstContext;e:for(;u!==null;){var S=u;u=r;for(var _=0;_<t.length;_++)if(S.context===t[_]){u.lanes|=n,S=u.alternate,S!==null&&(S.lanes|=n),Qr(u.return,n,e),i||(p=null);break e}u=S.next}}else if(r.tag===18){if(p=r.return,p===null)throw Error(s(341));p.lanes|=n,u=p.alternate,u!==null&&(u.lanes|=n),Qr(p,n,e),p=null}else p=r.child;if(p!==null)p.return=r;else for(p=r;p!==null;){if(p===e){p=null;break}if(r=p.sibling,r!==null){r.return=p.return,p=r;break}p=p.return}r=p}}function ui(e,t,n,i){e=null;for(var r=t,u=!1;r!==null;){if(!u){if((r.flags&524288)!==0)u=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var p=r.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var S=r.type;wt(r.pendingProps.value,p.value)||(e!==null?e.push(S):e=[S])}}else if(r===le.current){if(p=r.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Ll):e=[Ll])}r=r.return}e!==null&&Zr(t,e,n,i),t.flags|=262144}function Co(e){for(e=e.firstContext;e!==null;){if(!wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ca(e){Ra=e,hn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return kd(Ra,e)}function Eo(e,t){return Ra===null&&Ca(e),kd(e,t)}function kd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},hn===null){if(e===null)throw Error(s(308));hn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hn=hn.next=t;return n}var u0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},f0=a.unstable_scheduleCallback,d0=a.unstable_NormalPriority,Qe={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kr(){return{controller:new u0,data:new Map,refCount:0}}function sl(e){e.refCount--,e.refCount===0&&f0(d0,function(){e.controller.abort()})}var rl=null,Wr=0,fi=0,di=null;function h0(e,t){if(rl===null){var n=rl=[];Wr=0,fi=$c(),di={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Wr++,t.then(Ud,Ud),t}function Ud(){if(--Wr===0&&rl!==null){di!==null&&(di.status="fulfilled");var e=rl;rl=null,fi=0,di=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function m0(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),i}var jd=D.S;D.S=function(e,t){Sm=Me(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&h0(e,t),jd!==null&&jd(e,t)};var Ea=E(null);function Fr(){var e=Ea.current;return e!==null?e:je.pooledCache}function To(e,t){t===null?F(Ea,Ea.current):F(Ea,t.pool)}function Bd(){var e=Fr();return e===null?null:{parent:Qe._currentValue,pool:e}}var hi=Error(s(460)),Jr=Error(s(474)),Ao=Error(s(542)),Mo={then:function(){}};function Hd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(cn,cn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gd(e),e;default:if(typeof t.status=="string")t.then(cn,cn);else{if(e=je,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gd(e),e}throw Aa=t,hi}}function Ta(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Aa=n,hi):n}}var Aa=null;function Vd(){if(Aa===null)throw Error(s(459));var e=Aa;return Aa=null,e}function Gd(e){if(e===hi||e===Ao)throw Error(s(483))}var mi=null,cl=0;function Oo(e){var t=cl;return cl+=1,mi===null&&(mi=[]),qd(mi,e,t)}function ul(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Do(e,t){throw t.$$typeof===b?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Yd(e){function t(O,C){if(e){var z=O.deletions;z===null?(O.deletions=[C],O.flags|=16):z.push(C)}}function n(O,C){if(!e)return null;for(;C!==null;)t(O,C),C=C.sibling;return null}function i(O){for(var C=new Map;O!==null;)O.key!==null?C.set(O.key,O):C.set(O.index,O),O=O.sibling;return C}function r(O,C){return O=fn(O,C),O.index=0,O.sibling=null,O}function u(O,C,z){return O.index=z,e?(z=O.alternate,z!==null?(z=z.index,z<C?(O.flags|=67108866,C):z):(O.flags|=67108866,C)):(O.flags|=1048576,C)}function p(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function S(O,C,z,Q){return C===null||C.tag!==6?(C=Hr(z,O.mode,Q),C.return=O,C):(C=r(C,z),C.return=O,C)}function _(O,C,z,Q){var se=z.type;return se===A?Y(O,C,z.props.children,Q,z.key):C!==null&&(C.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===j&&Ta(se)===C.type)?(C=r(C,z.props),ul(C,z),C.return=O,C):(C=_o(z.type,z.key,z.props,null,O.mode,Q),ul(C,z),C.return=O,C)}function N(O,C,z,Q){return C===null||C.tag!==4||C.stateNode.containerInfo!==z.containerInfo||C.stateNode.implementation!==z.implementation?(C=qr(z,O.mode,Q),C.return=O,C):(C=r(C,z.children||[]),C.return=O,C)}function Y(O,C,z,Q,se){return C===null||C.tag!==7?(C=wa(z,O.mode,Q,se),C.return=O,C):(C=r(C,z),C.return=O,C)}function K(O,C,z){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Hr(""+C,O.mode,z),C.return=O,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case x:return z=_o(C.type,C.key,C.props,null,O.mode,z),ul(z,C),z.return=O,z;case w:return C=qr(C,O.mode,z),C.return=O,C;case j:return C=Ta(C),K(O,C,z)}if(me(C)||ce(C))return C=wa(C,O.mode,z,null),C.return=O,C;if(typeof C.then=="function")return K(O,Oo(C),z);if(C.$$typeof===B)return K(O,Eo(O,C),z);Do(O,C)}return null}function U(O,C,z,Q){var se=C!==null?C.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return se!==null?null:S(O,C,""+z,Q);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case x:return z.key===se?_(O,C,z,Q):null;case w:return z.key===se?N(O,C,z,Q):null;case j:return z=Ta(z),U(O,C,z,Q)}if(me(z)||ce(z))return se!==null?null:Y(O,C,z,Q,null);if(typeof z.then=="function")return U(O,C,Oo(z),Q);if(z.$$typeof===B)return U(O,C,Eo(O,z),Q);Do(O,z)}return null}function q(O,C,z,Q,se){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return O=O.get(z)||null,S(C,O,""+Q,se);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case x:return O=O.get(Q.key===null?z:Q.key)||null,_(C,O,Q,se);case w:return O=O.get(Q.key===null?z:Q.key)||null,N(C,O,Q,se);case j:return Q=Ta(Q),q(O,C,z,Q,se)}if(me(Q)||ce(Q))return O=O.get(z)||null,Y(C,O,Q,se,null);if(typeof Q.then=="function")return q(O,C,z,Oo(Q),se);if(Q.$$typeof===B)return q(O,C,z,Eo(C,Q),se);Do(C,Q)}return null}function te(O,C,z,Q){for(var se=null,Te=null,ie=C,ve=C=0,Re=null;ie!==null&&ve<z.length;ve++){ie.index>ve?(Re=ie,ie=null):Re=ie.sibling;var Ae=U(O,ie,z[ve],Q);if(Ae===null){ie===null&&(ie=Re);break}e&&ie&&Ae.alternate===null&&t(O,ie),C=u(Ae,C,ve),Te===null?se=Ae:Te.sibling=Ae,Te=Ae,ie=Re}if(ve===z.length)return n(O,ie),Ee&&dn(O,ve),se;if(ie===null){for(;ve<z.length;ve++)ie=K(O,z[ve],Q),ie!==null&&(C=u(ie,C,ve),Te===null?se=ie:Te.sibling=ie,Te=ie);return Ee&&dn(O,ve),se}for(ie=i(ie);ve<z.length;ve++)Re=q(ie,O,ve,z[ve],Q),Re!==null&&(e&&Re.alternate!==null&&ie.delete(Re.key===null?ve:Re.key),C=u(Re,C,ve),Te===null?se=Re:Te.sibling=Re,Te=Re);return e&&ie.forEach(function(la){return t(O,la)}),Ee&&dn(O,ve),se}function ue(O,C,z,Q){if(z==null)throw Error(s(151));for(var se=null,Te=null,ie=C,ve=C=0,Re=null,Ae=z.next();ie!==null&&!Ae.done;ve++,Ae=z.next()){ie.index>ve?(Re=ie,ie=null):Re=ie.sibling;var la=U(O,ie,Ae.value,Q);if(la===null){ie===null&&(ie=Re);break}e&&ie&&la.alternate===null&&t(O,ie),C=u(la,C,ve),Te===null?se=la:Te.sibling=la,Te=la,ie=Re}if(Ae.done)return n(O,ie),Ee&&dn(O,ve),se;if(ie===null){for(;!Ae.done;ve++,Ae=z.next())Ae=K(O,Ae.value,Q),Ae!==null&&(C=u(Ae,C,ve),Te===null?se=Ae:Te.sibling=Ae,Te=Ae);return Ee&&dn(O,ve),se}for(ie=i(ie);!Ae.done;ve++,Ae=z.next())Ae=q(ie,O,ve,Ae.value,Q),Ae!==null&&(e&&Ae.alternate!==null&&ie.delete(Ae.key===null?ve:Ae.key),C=u(Ae,C,ve),Te===null?se=Ae:Te.sibling=Ae,Te=Ae);return e&&ie.forEach(function(Cb){return t(O,Cb)}),Ee&&dn(O,ve),se}function Ue(O,C,z,Q){if(typeof z=="object"&&z!==null&&z.type===A&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case x:e:{for(var se=z.key;C!==null;){if(C.key===se){if(se=z.type,se===A){if(C.tag===7){n(O,C.sibling),Q=r(C,z.props.children),Q.return=O,O=Q;break e}}else if(C.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===j&&Ta(se)===C.type){n(O,C.sibling),Q=r(C,z.props),ul(Q,z),Q.return=O,O=Q;break e}n(O,C);break}else t(O,C);C=C.sibling}z.type===A?(Q=wa(z.props.children,O.mode,Q,z.key),Q.return=O,O=Q):(Q=_o(z.type,z.key,z.props,null,O.mode,Q),ul(Q,z),Q.return=O,O=Q)}return p(O);case w:e:{for(se=z.key;C!==null;){if(C.key===se)if(C.tag===4&&C.stateNode.containerInfo===z.containerInfo&&C.stateNode.implementation===z.implementation){n(O,C.sibling),Q=r(C,z.children||[]),Q.return=O,O=Q;break e}else{n(O,C);break}else t(O,C);C=C.sibling}Q=qr(z,O.mode,Q),Q.return=O,O=Q}return p(O);case j:return z=Ta(z),Ue(O,C,z,Q)}if(me(z))return te(O,C,z,Q);if(ce(z)){if(se=ce(z),typeof se!="function")throw Error(s(150));return z=se.call(z),ue(O,C,z,Q)}if(typeof z.then=="function")return Ue(O,C,Oo(z),Q);if(z.$$typeof===B)return Ue(O,C,Eo(O,z),Q);Do(O,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,C!==null&&C.tag===6?(n(O,C.sibling),Q=r(C,z),Q.return=O,O=Q):(n(O,C),Q=Hr(z,O.mode,Q),Q.return=O,O=Q),p(O)):n(O,C)}return function(O,C,z,Q){try{cl=0;var se=Ue(O,C,z,Q);return mi=null,se}catch(ie){if(ie===hi||ie===Ao)throw ie;var Te=_t(29,ie,null,O.mode);return Te.lanes=Q,Te.return=O,Te}finally{}}}var Ma=Yd(!0),Pd=Yd(!1),Gn=!1;function $r(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ir(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Yn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Oe&2)!==0){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=wo(e),Td(e,null,n),t}return xo(e,i,t,n),wo(e)}function fl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,kf(e,n)}}function ec(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?r=u=p:u=u.next=p,n=n.next}while(n!==null);u===null?r=u=t:u=u.next=t}else r=u=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:u,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var tc=!1;function dl(){if(tc){var e=di;if(e!==null)throw e}}function hl(e,t,n,i){tc=!1;var r=e.updateQueue;Gn=!1;var u=r.firstBaseUpdate,p=r.lastBaseUpdate,S=r.shared.pending;if(S!==null){r.shared.pending=null;var _=S,N=_.next;_.next=null,p===null?u=N:p.next=N,p=_;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,S=Y.lastBaseUpdate,S!==p&&(S===null?Y.firstBaseUpdate=N:S.next=N,Y.lastBaseUpdate=_))}if(u!==null){var K=r.baseState;p=0,Y=N=_=null,S=u;do{var U=S.lane&-536870913,q=U!==S.lane;if(q?(_e&U)===U:(i&U)===U){U!==0&&U===fi&&(tc=!0),Y!==null&&(Y=Y.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var te=e,ue=S;U=t;var Ue=n;switch(ue.tag){case 1:if(te=ue.payload,typeof te=="function"){K=te.call(Ue,K,U);break e}K=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=ue.payload,U=typeof te=="function"?te.call(Ue,K,U):te,U==null)break e;K=y({},K,U);break e;case 2:Gn=!0}}U=S.callback,U!==null&&(e.flags|=64,q&&(e.flags|=8192),q=r.callbacks,q===null?r.callbacks=[U]:q.push(U))}else q={lane:U,tag:S.tag,payload:S.payload,callback:S.callback,next:null},Y===null?(N=Y=q,_=K):Y=Y.next=q,p|=U;if(S=S.next,S===null){if(S=r.shared.pending,S===null)break;q=S,S=q.next,q.next=null,r.lastBaseUpdate=q,r.shared.pending=null}}while(!0);Y===null&&(_=K),r.baseState=_,r.firstBaseUpdate=N,r.lastBaseUpdate=Y,u===null&&(r.shared.lanes=0),Wn|=p,e.lanes=p,e.memoizedState=K}}function Xd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Qd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Xd(n[e],t)}var pi=E(null),zo=E(0);function Zd(e,t){e=_n,F(zo,e),F(pi,t),_n=e|t.baseLanes}function nc(){F(zo,_n),F(pi,pi.current)}function ac(){_n=zo.current,X(pi),X(zo)}var Rt=E(null),Ht=null;function Xn(e){var t=e.alternate;F(Pe,Pe.current&1),F(Rt,e),Ht===null&&(t===null||pi.current!==null||t.memoizedState!==null)&&(Ht=e)}function ic(e){F(Pe,Pe.current),F(Rt,e),Ht===null&&(Ht=e)}function Kd(e){e.tag===22?(F(Pe,Pe.current),F(Rt,e),Ht===null&&(Ht=e)):Qn()}function Qn(){F(Pe,Pe.current),F(Rt,Rt.current)}function Ct(e){X(Rt),Ht===e&&(Ht=null),X(Pe)}var Pe=E(0);function Lo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||uu(n)||fu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pn=0,ye=null,Ne=null,Ze=null,No=!1,gi=!1,Oa=!1,ko=0,ml=0,yi=null,p0=0;function Ge(){throw Error(s(321))}function lc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wt(e[n],t[n]))return!1;return!0}function oc(e,t,n,i,r,u){return pn=u,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Dh:xc,Oa=!1,u=n(i,r),Oa=!1,gi&&(u=Fd(t,n,i,r)),Wd(e),u}function Wd(e){D.H=yl;var t=Ne!==null&&Ne.next!==null;if(pn=0,Ze=Ne=ye=null,No=!1,ml=0,yi=null,t)throw Error(s(300));e===null||Ke||(e=e.dependencies,e!==null&&Co(e)&&(Ke=!0))}function Fd(e,t,n,i){ye=e;var r=0;do{if(gi&&(yi=null),ml=0,gi=!1,25<=r)throw Error(s(301));if(r+=1,Ze=Ne=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=zh,u=t(n,i)}while(gi);return u}function g0(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?pl(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(ye.flags|=1024),t}function sc(){var e=ko!==0;return ko=0,e}function rc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function cc(e){if(No){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}No=!1}pn=0,Ze=Ne=ye=null,gi=!1,ml=ko=0,yi=null}function rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ye.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(Ne===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Ze===null?ye.memoizedState:Ze.next;if(t!==null)Ze=t,Ne=e;else{if(e===null)throw ye.alternate===null?Error(s(467)):Error(s(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Ze===null?ye.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Uo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pl(e){var t=ml;return ml+=1,yi===null&&(yi=[]),e=qd(yi,e,t),t=ye,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Dh:xc),e}function jo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pl(e);if(e.$$typeof===B)return at(e)}throw Error(s(438,String(e)))}function uc(e){var t=null,n=ye.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=ye.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Uo(),ye.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=I;return t.index++,n}function gn(e,t){return typeof t=="function"?t(e):t}function Bo(e){var t=Xe();return fc(t,Ne,e)}function fc(e,t,n){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;var r=e.baseQueue,u=i.pending;if(u!==null){if(r!==null){var p=r.next;r.next=u.next,u.next=p}t.baseQueue=r=u,i.pending=null}if(u=e.baseState,r===null)e.memoizedState=u;else{t=r.next;var S=p=null,_=null,N=t,Y=!1;do{var K=N.lane&-536870913;if(K!==N.lane?(_e&K)===K:(pn&K)===K){var U=N.revertLane;if(U===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),K===fi&&(Y=!0);else if((pn&U)===U){N=N.next,U===fi&&(Y=!0);continue}else K={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},_===null?(S=_=K,p=u):_=_.next=K,ye.lanes|=U,Wn|=U;K=N.action,Oa&&n(u,K),u=N.hasEagerState?N.eagerState:n(u,K)}else U={lane:K,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},_===null?(S=_=U,p=u):_=_.next=U,ye.lanes|=K,Wn|=K;N=N.next}while(N!==null&&N!==t);if(_===null?p=u:_.next=S,!wt(u,e.memoizedState)&&(Ke=!0,Y&&(n=di,n!==null)))throw n;e.memoizedState=u,e.baseState=p,e.baseQueue=_,i.lastRenderedState=u}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function dc(e){var t=Xe(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,u=t.memoizedState;if(r!==null){n.pending=null;var p=r=r.next;do u=e(u,p.action),p=p.next;while(p!==r);wt(u,t.memoizedState)||(Ke=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,i]}function Jd(e,t,n){var i=ye,r=Xe(),u=Ee;if(u){if(n===void 0)throw Error(s(407));n=n()}else n=t();var p=!wt((Ne||r).memoizedState,n);if(p&&(r.memoizedState=n,Ke=!0),r=r.queue,pc(eh.bind(null,i,r,e),[e]),r.getSnapshot!==t||p||Ze!==null&&Ze.memoizedState.tag&1){if(i.flags|=2048,vi(9,{destroy:void 0},Id.bind(null,i,r,n,t),null),je===null)throw Error(s(349));u||(pn&127)!==0||$d(i,t,n)}return n}function $d(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t=Uo(),ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Id(e,t,n,i){t.value=n,t.getSnapshot=i,th(t)&&nh(e)}function eh(e,t,n){return n(function(){th(t)&&nh(e)})}function th(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wt(e,n)}catch{return!0}}function nh(e){var t=xa(e,2);t!==null&&yt(t,e,2)}function hc(e){var t=rt();if(typeof e=="function"){var n=e;if(e=n(),Oa){kn(!0);try{n()}finally{kn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:e},t}function ah(e,t,n,i){return e.baseState=n,fc(e,Ne,typeof i=="function"?i:gn)}function y0(e,t,n,i,r){if(Vo(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){u.listeners.push(p)}};D.T!==null?n(!0):u.isTransition=!1,i(u),n=t.pending,n===null?(u.next=t.pending=u,ih(t,u)):(u.next=n.next,t.pending=n.next=u)}}function ih(e,t){var n=t.action,i=t.payload,r=e.state;if(t.isTransition){var u=D.T,p={};D.T=p;try{var S=n(r,i),_=D.S;_!==null&&_(p,S),lh(e,t,S)}catch(N){mc(e,t,N)}finally{u!==null&&p.types!==null&&(u.types=p.types),D.T=u}}else try{u=n(r,i),lh(e,t,u)}catch(N){mc(e,t,N)}}function lh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){oh(e,t,i)},function(i){return mc(e,t,i)}):oh(e,t,n)}function oh(e,t,n){t.status="fulfilled",t.value=n,sh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ih(e,n)))}function mc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,sh(t),t=t.next;while(t!==i)}e.action=null}function sh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function rh(e,t){return t}function ch(e,t){if(Ee){var n=je.formState;if(n!==null){e:{var i=ye;if(Ee){if(He){t:{for(var r=He,u=Bt;r.nodeType!==8;){if(!u){r=null;break t}if(r=qt(r.nextSibling),r===null){r=null;break t}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){He=qt(r.nextSibling),i=r.data==="F!";break e}}qn(i)}i=!1}i&&(t=n[0])}}return n=rt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rh,lastRenderedState:t},n.queue=i,n=Ah.bind(null,ye,i),i.dispatch=n,i=hc(!1),u=Sc.bind(null,ye,!1,i.queue),i=rt(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,n=y0.bind(null,ye,r,u,n),r.dispatch=n,i.memoizedState=e,[t,n,!1]}function uh(e){var t=Xe();return fh(t,Ne,e)}function fh(e,t,n){if(t=fc(e,t,rh)[0],e=Bo(gn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=pl(t)}catch(p){throw p===hi?Ao:p}else i=t;t=Xe();var r=t.queue,u=r.dispatch;return n!==t.memoizedState&&(ye.flags|=2048,vi(9,{destroy:void 0},v0.bind(null,r,n),null)),[i,u,e]}function v0(e,t){e.action=t}function dh(e){var t=Xe(),n=Ne;if(n!==null)return fh(t,n,e);Xe(),t=t.memoizedState,n=Xe();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function vi(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=ye.updateQueue,t===null&&(t=Uo(),ye.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function hh(){return Xe().memoizedState}function Ho(e,t,n,i){var r=rt();ye.flags|=e,r.memoizedState=vi(1|t,{destroy:void 0},n,i===void 0?null:i)}function qo(e,t,n,i){var r=Xe();i=i===void 0?null:i;var u=r.memoizedState.inst;Ne!==null&&i!==null&&lc(i,Ne.memoizedState.deps)?r.memoizedState=vi(t,u,n,i):(ye.flags|=e,r.memoizedState=vi(1|t,u,n,i))}function mh(e,t){Ho(8390656,8,e,t)}function pc(e,t){qo(2048,8,e,t)}function b0(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=Uo(),ye.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ph(e){var t=Xe().memoizedState;return b0({ref:t,nextImpl:e}),function(){if((Oe&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function gh(e,t){return qo(4,2,e,t)}function yh(e,t){return qo(4,4,e,t)}function vh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bh(e,t,n){n=n!=null?n.concat([e]):null,qo(4,4,vh.bind(null,t,e),n)}function gc(){}function Sh(e,t){var n=Xe();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&lc(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function xh(e,t){var n=Xe();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&lc(t,i[1]))return i[0];if(i=e(),Oa){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[i,t],i}function yc(e,t,n){return n===void 0||(pn&1073741824)!==0&&(_e&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=wm(),ye.lanes|=e,Wn|=e,n)}function wh(e,t,n,i){return wt(n,t)?n:pi.current!==null?(e=yc(e,n,i),wt(e,t)||(Ke=!0),e):(pn&42)===0||(pn&1073741824)!==0&&(_e&261930)===0?(Ke=!0,e.memoizedState=n):(e=wm(),ye.lanes|=e,Wn|=e,t)}function _h(e,t,n,i,r){var u=W.p;W.p=u!==0&&8>u?u:8;var p=D.T,S={};D.T=S,Sc(e,!1,t,n);try{var _=r(),N=D.S;if(N!==null&&N(S,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var Y=m0(_,i);gl(e,t,Y,At(e))}else gl(e,t,i,At(e))}catch(K){gl(e,t,{then:function(){},status:"rejected",reason:K},At())}finally{W.p=u,p!==null&&S.types!==null&&(p.types=S.types),D.T=p}}function S0(){}function vc(e,t,n,i){if(e.tag!==5)throw Error(s(476));var r=Rh(e).queue;_h(e,r,t,G,n===null?S0:function(){return Ch(e),n(i)})}function Rh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:G},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ch(e){var t=Rh(e);t.next===null&&(t=e.alternate.memoizedState),gl(e,t.next.queue,{},At())}function bc(){return at(Ll)}function Eh(){return Xe().memoizedState}function Th(){return Xe().memoizedState}function x0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=At();e=Yn(n);var i=Pn(t,e,n);i!==null&&(yt(i,t,n),fl(i,t,n)),t={cache:Kr()},e.payload=t;return}t=t.return}}function w0(e,t,n){var i=At();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Vo(e)?Mh(t,n):(n=jr(e,t,n,i),n!==null&&(yt(n,e,i),Oh(n,t,i)))}function Ah(e,t,n){var i=At();gl(e,t,n,i)}function gl(e,t,n,i){var r={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vo(e))Mh(t,r);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var p=t.lastRenderedState,S=u(p,n);if(r.hasEagerState=!0,r.eagerState=S,wt(S,p))return xo(e,t,r,0),je===null&&So(),!1}catch{}finally{}if(n=jr(e,t,r,i),n!==null)return yt(n,e,i),Oh(n,t,i),!0}return!1}function Sc(e,t,n,i){if(i={lane:2,revertLane:$c(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Vo(e)){if(t)throw Error(s(479))}else t=jr(e,n,i,2),t!==null&&yt(t,e,2)}function Vo(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Mh(e,t){gi=No=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Oh(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,kf(e,n)}}var yl={readContext:at,use:jo,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge};yl.useEffectEvent=Ge;var Dh={readContext:at,use:jo,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:mh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ho(4194308,4,vh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ho(4194308,4,e,t)},useInsertionEffect:function(e,t){Ho(4,2,e,t)},useMemo:function(e,t){var n=rt();t=t===void 0?null:t;var i=e();if(Oa){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=rt();if(n!==void 0){var r=n(t);if(Oa){kn(!0);try{n(t)}finally{kn(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=w0.bind(null,ye,e),[i.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:function(e){e=hc(e);var t=e.queue,n=Ah.bind(null,ye,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gc,useDeferredValue:function(e,t){var n=rt();return yc(n,e,t)},useTransition:function(){var e=hc(!1);return e=_h.bind(null,ye,e.queue,!0,!1),rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=ye,r=rt();if(Ee){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),je===null)throw Error(s(349));(_e&127)!==0||$d(i,t,n)}r.memoizedState=n;var u={value:n,getSnapshot:t};return r.queue=u,mh(eh.bind(null,i,u,e),[e]),i.flags|=2048,vi(9,{destroy:void 0},Id.bind(null,i,u,n,t),null),n},useId:function(){var e=rt(),t=je.identifierPrefix;if(Ee){var n=Jt,i=Ft;n=(i&~(1<<32-xt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ko++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=p0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bc,useFormState:ch,useActionState:ch,useOptimistic:function(e){var t=rt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Sc.bind(null,ye,!0,n),n.dispatch=t,[e,t]},useMemoCache:uc,useCacheRefresh:function(){return rt().memoizedState=x0.bind(null,ye)},useEffectEvent:function(e){var t=rt(),n={impl:e};return t.memoizedState=n,function(){if((Oe&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},xc={readContext:at,use:jo,useCallback:Sh,useContext:at,useEffect:pc,useImperativeHandle:bh,useInsertionEffect:gh,useLayoutEffect:yh,useMemo:xh,useReducer:Bo,useRef:hh,useState:function(){return Bo(gn)},useDebugValue:gc,useDeferredValue:function(e,t){var n=Xe();return wh(n,Ne.memoizedState,e,t)},useTransition:function(){var e=Bo(gn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:pl(e),t]},useSyncExternalStore:Jd,useId:Eh,useHostTransitionStatus:bc,useFormState:uh,useActionState:uh,useOptimistic:function(e,t){var n=Xe();return ah(n,Ne,e,t)},useMemoCache:uc,useCacheRefresh:Th};xc.useEffectEvent=ph;var zh={readContext:at,use:jo,useCallback:Sh,useContext:at,useEffect:pc,useImperativeHandle:bh,useInsertionEffect:gh,useLayoutEffect:yh,useMemo:xh,useReducer:dc,useRef:hh,useState:function(){return dc(gn)},useDebugValue:gc,useDeferredValue:function(e,t){var n=Xe();return Ne===null?yc(n,e,t):wh(n,Ne.memoizedState,e,t)},useTransition:function(){var e=dc(gn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:pl(e),t]},useSyncExternalStore:Jd,useId:Eh,useHostTransitionStatus:bc,useFormState:dh,useActionState:dh,useOptimistic:function(e,t){var n=Xe();return Ne!==null?ah(n,Ne,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:uc,useCacheRefresh:Th};zh.useEffectEvent=ph;function wc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _c={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=At(),r=Yn(i);r.payload=t,n!=null&&(r.callback=n),t=Pn(e,r,i),t!==null&&(yt(t,e,i),fl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=At(),r=Yn(i);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Pn(e,r,i),t!==null&&(yt(t,e,i),fl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=At(),i=Yn(n);i.tag=2,t!=null&&(i.callback=t),t=Pn(e,i,n),t!==null&&(yt(t,e,n),fl(t,e,n))}};function Lh(e,t,n,i,r,u,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,u,p):t.prototype&&t.prototype.isPureReactComponent?!al(n,i)||!al(r,u):!0}function Nh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function Da(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function kh(e){bo(e)}function Uh(e){console.error(e)}function jh(e){bo(e)}function Go(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Bh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Rc(e,t,n){return n=Yn(n),n.tag=3,n.payload={element:null},n.callback=function(){Go(e,t)},n}function Hh(e){return e=Yn(e),e.tag=3,e}function qh(e,t,n,i){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var u=i.value;e.payload=function(){return r(u)},e.callback=function(){Bh(t,n,i)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Bh(t,n,i),typeof r!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this));var S=i.stack;this.componentDidCatch(i.value,{componentStack:S!==null?S:""})})}function _0(e,t,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&ui(t,n,r,!0),n=Rt.current,n!==null){switch(n.tag){case 31:case 13:return Ht===null?es():n.alternate===null&&Ye===0&&(Ye=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===Mo?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Wc(e,i,r)),!1;case 22:return n.flags|=65536,i===Mo?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Wc(e,i,r)),!1}throw Error(s(435,n.tag))}return Wc(e,i,r),es(),!1}if(Ee)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==Yr&&(e=Error(s(422),{cause:i}),ol(kt(e,n)))):(i!==Yr&&(t=Error(s(423),{cause:i}),ol(kt(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=kt(i,n),r=Rc(e.stateNode,i,r),ec(e,r),Ye!==4&&(Ye=2)),!1;var u=Error(s(520),{cause:i});if(u=kt(u,n),Cl===null?Cl=[u]:Cl.push(u),Ye!==4&&(Ye=2),t===null)return!0;i=kt(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=Rc(n.stateNode,i,e),ec(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Fn===null||!Fn.has(u))))return n.flags|=65536,r&=-r,n.lanes|=r,r=Hh(r),qh(r,e,n,i),ec(n,r),!1}n=n.return}while(n!==null);return!1}var Cc=Error(s(461)),Ke=!1;function it(e,t,n,i){t.child=e===null?Pd(t,null,n,i):Ma(t,e.child,n,i)}function Vh(e,t,n,i,r){n=n.render;var u=t.ref;if("ref"in i){var p={};for(var S in i)S!=="ref"&&(p[S]=i[S])}else p=i;return Ca(t),i=oc(e,t,n,p,u,r),S=sc(),e!==null&&!Ke?(rc(e,t,r),yn(e,t,r)):(Ee&&S&&Vr(t),t.flags|=1,it(e,t,i,r),t.child)}function Gh(e,t,n,i,r){if(e===null){var u=n.type;return typeof u=="function"&&!Br(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,Yh(e,t,u,i,r)):(e=_o(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Lc(e,r)){var p=u.memoizedProps;if(n=n.compare,n=n!==null?n:al,n(p,i)&&e.ref===t.ref)return yn(e,t,r)}return t.flags|=1,e=fn(u,i),e.ref=t.ref,e.return=t,t.child=e}function Yh(e,t,n,i,r){if(e!==null){var u=e.memoizedProps;if(al(u,i)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=i=u,Lc(e,r))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,yn(e,t,r)}return Ec(e,t,n,i,r)}function Ph(e,t,n,i){var r=i.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(i=t.child=e.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;i=r&~u}else i=0,t.child=null;return Xh(e,t,u,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&To(t,u!==null?u.cachePool:null),u!==null?Zd(t,u):nc(),Kd(t);else return i=t.lanes=536870912,Xh(e,t,u!==null?u.baseLanes|n:n,n,i)}else u!==null?(To(t,u.cachePool),Zd(t,u),Qn(),t.memoizedState=null):(e!==null&&To(t,null),nc(),Qn());return it(e,t,r,n),t.child}function vl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Xh(e,t,n,i,r){var u=Fr();return u=u===null?null:{parent:Qe._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&To(t,null),nc(),Kd(t),e!==null&&ui(e,t,i,!0),t.childLanes=r,null}function Yo(e,t){return t=Xo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Qh(e,t,n){return Ma(t,e.child,null,n),e=Yo(t,t.pendingProps),e.flags|=2,Ct(t),t.memoizedState=null,e}function R0(e,t,n){var i=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(i.mode==="hidden")return e=Yo(t,i),t.lanes=536870912,vl(null,e);if(ic(t),(e=He)?(e=ip(e,Bt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bn!==null?{id:Ft,overflow:Jt}:null,retryLane:536870912,hydrationErrors:null},n=Md(e),n.return=t,t.child=n,nt=t,He=null)):e=null,e===null)throw qn(t);return t.lanes=536870912,null}return Yo(t,i)}var u=e.memoizedState;if(u!==null){var p=u.dehydrated;if(ic(t),r)if(t.flags&256)t.flags&=-257,t=Qh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ke||ui(e,t,n,!1),r=(n&e.childLanes)!==0,Ke||r){if(i=je,i!==null&&(p=Uf(i,n),p!==0&&p!==u.retryLane))throw u.retryLane=p,xa(e,p),yt(i,e,p),Cc;es(),t=Qh(e,t,n)}else e=u.treeContext,He=qt(p.nextSibling),nt=t,Ee=!0,Hn=null,Bt=!1,e!==null&&zd(t,e),t=Yo(t,i),t.flags|=4096;return t}return e=fn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Po(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ec(e,t,n,i,r){return Ca(t),n=oc(e,t,n,i,void 0,r),i=sc(),e!==null&&!Ke?(rc(e,t,r),yn(e,t,r)):(Ee&&i&&Vr(t),t.flags|=1,it(e,t,n,r),t.child)}function Zh(e,t,n,i,r,u){return Ca(t),t.updateQueue=null,n=Fd(t,i,n,r),Wd(e),i=sc(),e!==null&&!Ke?(rc(e,t,u),yn(e,t,u)):(Ee&&i&&Vr(t),t.flags|=1,it(e,t,n,u),t.child)}function Kh(e,t,n,i,r){if(Ca(t),t.stateNode===null){var u=oi,p=n.contextType;typeof p=="object"&&p!==null&&(u=at(p)),u=new n(i,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=_c,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=i,u.state=t.memoizedState,u.refs={},$r(t),p=n.contextType,u.context=typeof p=="object"&&p!==null?at(p):oi,u.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(wc(t,n,p,i),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(p=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),p!==u.state&&_c.enqueueReplaceState(u,u.state,null),hl(t,i,u,r),dl(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){u=t.stateNode;var S=t.memoizedProps,_=Da(n,S);u.props=_;var N=u.context,Y=n.contextType;p=oi,typeof Y=="object"&&Y!==null&&(p=at(Y));var K=n.getDerivedStateFromProps;Y=typeof K=="function"||typeof u.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,Y||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(S||N!==p)&&Nh(t,u,i,p),Gn=!1;var U=t.memoizedState;u.state=U,hl(t,i,u,r),dl(),N=t.memoizedState,S||U!==N||Gn?(typeof K=="function"&&(wc(t,n,K,i),N=t.memoizedState),(_=Gn||Lh(t,n,_,i,U,N,p))?(Y||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=N),u.props=i,u.state=N,u.context=p,i=_):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{u=t.stateNode,Ir(e,t),p=t.memoizedProps,Y=Da(n,p),u.props=Y,K=t.pendingProps,U=u.context,N=n.contextType,_=oi,typeof N=="object"&&N!==null&&(_=at(N)),S=n.getDerivedStateFromProps,(N=typeof S=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p!==K||U!==_)&&Nh(t,u,i,_),Gn=!1,U=t.memoizedState,u.state=U,hl(t,i,u,r),dl();var q=t.memoizedState;p!==K||U!==q||Gn||e!==null&&e.dependencies!==null&&Co(e.dependencies)?(typeof S=="function"&&(wc(t,n,S,i),q=t.memoizedState),(Y=Gn||Lh(t,n,Y,i,U,q,_)||e!==null&&e.dependencies!==null&&Co(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,q,_),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,q,_)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=q),u.props=i,u.state=q,u.context=_,i=Y):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),i=!1)}return u=i,Po(e,t),i=(t.flags&128)!==0,u||i?(u=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&i?(t.child=Ma(t,e.child,null,r),t.child=Ma(t,null,n,r)):it(e,t,n,r),t.memoizedState=u.state,e=t.child):e=yn(e,t,r),e}function Wh(e,t,n,i){return _a(),t.flags|=256,it(e,t,n,i),t.child}var Tc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ac(e){return{baseLanes:e,cachePool:Bd()}}function Mc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Tt),e}function Fh(e,t,n){var i=t.pendingProps,r=!1,u=(t.flags&128)!==0,p;if((p=u)||(p=e!==null&&e.memoizedState===null?!1:(Pe.current&2)!==0),p&&(r=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(r?Xn(t):Qn(),(e=He)?(e=ip(e,Bt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bn!==null?{id:Ft,overflow:Jt}:null,retryLane:536870912,hydrationErrors:null},n=Md(e),n.return=t,t.child=n,nt=t,He=null)):e=null,e===null)throw qn(t);return fu(e)?t.lanes=32:t.lanes=536870912,null}var S=i.children;return i=i.fallback,r?(Qn(),r=t.mode,S=Xo({mode:"hidden",children:S},r),i=wa(i,r,n,null),S.return=t,i.return=t,S.sibling=i,t.child=S,i=t.child,i.memoizedState=Ac(n),i.childLanes=Mc(e,p,n),t.memoizedState=Tc,vl(null,i)):(Xn(t),Oc(t,S))}var _=e.memoizedState;if(_!==null&&(S=_.dehydrated,S!==null)){if(u)t.flags&256?(Xn(t),t.flags&=-257,t=Dc(e,t,n)):t.memoizedState!==null?(Qn(),t.child=e.child,t.flags|=128,t=null):(Qn(),S=i.fallback,r=t.mode,i=Xo({mode:"visible",children:i.children},r),S=wa(S,r,n,null),S.flags|=2,i.return=t,S.return=t,i.sibling=S,t.child=i,Ma(t,e.child,null,n),i=t.child,i.memoizedState=Ac(n),i.childLanes=Mc(e,p,n),t.memoizedState=Tc,t=vl(null,i));else if(Xn(t),fu(S)){if(p=S.nextSibling&&S.nextSibling.dataset,p)var N=p.dgst;p=N,i=Error(s(419)),i.stack="",i.digest=p,ol({value:i,source:null,stack:null}),t=Dc(e,t,n)}else if(Ke||ui(e,t,n,!1),p=(n&e.childLanes)!==0,Ke||p){if(p=je,p!==null&&(i=Uf(p,n),i!==0&&i!==_.retryLane))throw _.retryLane=i,xa(e,i),yt(p,e,i),Cc;uu(S)||es(),t=Dc(e,t,n)}else uu(S)?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,He=qt(S.nextSibling),nt=t,Ee=!0,Hn=null,Bt=!1,e!==null&&zd(t,e),t=Oc(t,i.children),t.flags|=4096);return t}return r?(Qn(),S=i.fallback,r=t.mode,_=e.child,N=_.sibling,i=fn(_,{mode:"hidden",children:i.children}),i.subtreeFlags=_.subtreeFlags&65011712,N!==null?S=fn(N,S):(S=wa(S,r,n,null),S.flags|=2),S.return=t,i.return=t,i.sibling=S,t.child=i,vl(null,i),i=t.child,S=e.child.memoizedState,S===null?S=Ac(n):(r=S.cachePool,r!==null?(_=Qe._currentValue,r=r.parent!==_?{parent:_,pool:_}:r):r=Bd(),S={baseLanes:S.baseLanes|n,cachePool:r}),i.memoizedState=S,i.childLanes=Mc(e,p,n),t.memoizedState=Tc,vl(e.child,i)):(Xn(t),n=e.child,e=n.sibling,n=fn(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function Oc(e,t){return t=Xo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Xo(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function Dc(e,t,n){return Ma(t,e.child,null,n),e=Oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jh(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Qr(e.return,t,n)}function zc(e,t,n,i,r,u){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r,treeForkCount:u}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=i,p.tail=n,p.tailMode=r,p.treeForkCount=u)}function $h(e,t,n){var i=t.pendingProps,r=i.revealOrder,u=i.tail;i=i.children;var p=Pe.current,S=(p&2)!==0;if(S?(p=p&1|2,t.flags|=128):p&=1,F(Pe,p),it(e,t,i,n),i=Ee?ll:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jh(e,n,t);else if(e.tag===19)Jh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Lo(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),zc(t,!1,r,n,u,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Lo(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}zc(t,!0,n,null,u,i);break;case"together":zc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function yn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ui(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Lc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Co(e)))}function C0(e,t,n){switch(t.tag){case 3:Be(t,t.stateNode.containerInfo),Vn(t,Qe,e.memoizedState.cache),_a();break;case 27:case 5:ot(t);break;case 4:Be(t,t.stateNode.containerInfo);break;case 10:Vn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ic(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Xn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Fh(e,t,n):(Xn(t),e=yn(e,t,n),e!==null?e.sibling:null);Xn(t);break;case 19:var r=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(ui(e,t,n,!1),i=(n&t.childLanes)!==0),r){if(i)return $h(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),F(Pe,Pe.current),i)break;return null;case 22:return t.lanes=0,Ph(e,t,n,t.pendingProps);case 24:Vn(t,Qe,e.memoizedState.cache)}return yn(e,t,n)}function Ih(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!Lc(e,n)&&(t.flags&128)===0)return Ke=!1,C0(e,t,n);Ke=(e.flags&131072)!==0}else Ke=!1,Ee&&(t.flags&1048576)!==0&&Dd(t,ll,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ta(t.elementType),t.type=e,typeof e=="function")Br(e)?(i=Da(e,i),t.tag=1,t=Kh(null,t,e,i,n)):(t.tag=0,t=Ec(null,t,e,i,n));else{if(e!=null){var r=e.$$typeof;if(r===P){t.tag=11,t=Vh(null,t,e,i,n);break e}else if(r===L){t.tag=14,t=Gh(null,t,e,i,n);break e}}throw t=de(e)||e,Error(s(306,t,""))}}return t;case 0:return Ec(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,r=Da(i,t.pendingProps),Kh(e,t,i,r,n);case 3:e:{if(Be(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var u=t.memoizedState;r=u.element,Ir(e,t),hl(t,i,null,n);var p=t.memoizedState;if(i=p.cache,Vn(t,Qe,i),i!==u.cache&&Zr(t,[Qe],n,!0),dl(),i=p.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Wh(e,t,i,n);break e}else if(i!==r){r=kt(Error(s(424)),t),ol(r),t=Wh(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=qt(e.firstChild),nt=t,Ee=!0,Hn=null,Bt=!0,n=Pd(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(_a(),i===r){t=yn(e,t,n);break e}it(e,t,i,n)}t=t.child}return t;case 26:return Po(e,t),e===null?(n=up(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ee||(n=t.type,e=t.pendingProps,i=ss(re.current).createElement(n),i[tt]=t,i[ft]=e,lt(i,n,e),Ie(i),t.stateNode=i):t.memoizedState=up(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ot(t),e===null&&Ee&&(i=t.stateNode=sp(t.type,t.pendingProps,re.current),nt=t,Bt=!0,r=He,ea(t.type)?(du=r,He=qt(i.firstChild)):He=r),it(e,t,t.pendingProps.children,n),Po(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((r=i=He)&&(i=tb(i,t.type,t.pendingProps,Bt),i!==null?(t.stateNode=i,nt=t,He=qt(i.firstChild),Bt=!1,r=!0):r=!1),r||qn(t)),ot(t),r=t.type,u=t.pendingProps,p=e!==null?e.memoizedProps:null,i=u.children,su(r,u)?i=null:p!==null&&su(r,p)&&(t.flags|=32),t.memoizedState!==null&&(r=oc(e,t,g0,null,null,n),Ll._currentValue=r),Po(e,t),it(e,t,i,n),t.child;case 6:return e===null&&Ee&&((e=n=He)&&(n=nb(n,t.pendingProps,Bt),n!==null?(t.stateNode=n,nt=t,He=null,e=!0):e=!1),e||qn(t)),null;case 13:return Fh(e,t,n);case 4:return Be(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ma(t,null,i,n):it(e,t,i,n),t.child;case 11:return Vh(e,t,t.type,t.pendingProps,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,Vn(t,t.type,i.value),it(e,t,i.children,n),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,Ca(t),r=at(r),i=i(r),t.flags|=1,it(e,t,i,n),t.child;case 14:return Gh(e,t,t.type,t.pendingProps,n);case 15:return Yh(e,t,t.type,t.pendingProps,n);case 19:return $h(e,t,n);case 31:return R0(e,t,n);case 22:return Ph(e,t,n,t.pendingProps);case 24:return Ca(t),i=at(Qe),e===null?(r=Fr(),r===null&&(r=je,u=Kr(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=n),r=u),t.memoizedState={parent:i,cache:r},$r(t),Vn(t,Qe,r)):((e.lanes&n)!==0&&(Ir(e,t),hl(t,null,null,n),dl()),r=e.memoizedState,u=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Vn(t,Qe,i)):(i=u.cache,Vn(t,Qe,i),i!==r.cache&&Zr(t,[Qe],n,!0))),it(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function vn(e){e.flags|=4}function Nc(e,t,n,i,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Em())e.flags|=8192;else throw Aa=Mo,Jr}else e.flags&=-16777217}function em(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!pp(t))if(Em())e.flags|=8192;else throw Aa=Mo,Jr}function Qo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Lf():536870912,e.lanes|=t,wi|=t)}function bl(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&65011712,i|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function E0(e,t,n){var i=t.pendingProps;switch(Gr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),mn(Qe),Ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ci(t)?vn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pr())),qe(t),null;case 26:var r=t.type,u=t.memoizedState;return e===null?(vn(t),u!==null?(qe(t),em(t,u)):(qe(t),Nc(t,r,null,i,n))):u?u!==e.memoizedState?(vn(t),qe(t),em(t,u)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&vn(t),qe(t),Nc(t,r,e,i,n)),null;case 27:if(ut(t),n=re.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&vn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return qe(t),null}e=$.current,ci(t)?Ld(t):(e=sp(r,i,n),t.stateNode=e,vn(t))}return qe(t),null;case 5:if(ut(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&vn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return qe(t),null}if(u=$.current,ci(t))Ld(t);else{var p=ss(re.current);switch(u){case 1:u=p.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:u=p.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":u=p.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":u=p.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":u=p.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof i.is=="string"?p.createElement("select",{is:i.is}):p.createElement("select"),i.multiple?u.multiple=!0:i.size&&(u.size=i.size);break;default:u=typeof i.is=="string"?p.createElement(r,{is:i.is}):p.createElement(r)}}u[tt]=t,u[ft]=i;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)u.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=u;e:switch(lt(u,r,i),r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&vn(t)}}return qe(t),Nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&vn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=re.current,ci(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,r=nt,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Fm(e.nodeValue,n)),e||qn(t,!0)}else e=ss(e).createTextNode(i),e[tt]=t,t.stateNode=e}return qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=ci(t),n!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[tt]=t}else _a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else n=Pr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ct(t),t):(Ct(t),null);if((t.flags&128)!==0)throw Error(s(558))}return qe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=ci(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(s(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[tt]=t}else _a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),r=!1}else r=Pr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Ct(t),t):(Ct(t),null)}return Ct(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==r&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Qo(t,t.updateQueue),qe(t),null);case 4:return Ce(),e===null&&nu(t.stateNode.containerInfo),qe(t),null;case 10:return mn(t.type),qe(t),null;case 19:if(X(Pe),i=t.memoizedState,i===null)return qe(t),null;if(r=(t.flags&128)!==0,u=i.rendering,u===null)if(r)bl(i,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Lo(e),u!==null){for(t.flags|=128,bl(i,!1),e=u.updateQueue,t.updateQueue=e,Qo(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ad(n,e),n=n.sibling;return F(Pe,Pe.current&1|2),Ee&&dn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Me()>Jo&&(t.flags|=128,r=!0,bl(i,!1),t.lanes=4194304)}else{if(!r)if(e=Lo(u),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Qo(t,e),bl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Ee)return qe(t),null}else 2*Me()-i.renderingStartTime>Jo&&n!==536870912&&(t.flags|=128,r=!0,bl(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(e=i.last,e!==null?e.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Me(),e.sibling=null,n=Pe.current,F(Pe,r?n&1|2:n&1),Ee&&dn(t,i.treeForkCount),e):(qe(t),null);case 22:case 23:return Ct(t),ac(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),n=t.updateQueue,n!==null&&Qo(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&X(Ea),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),mn(Qe),qe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function T0(e,t){switch(Gr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mn(Qe),Ce(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ut(t),null;case 31:if(t.memoizedState!==null){if(Ct(t),t.alternate===null)throw Error(s(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ct(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Pe),null;case 4:return Ce(),null;case 10:return mn(t.type),null;case 22:case 23:return Ct(t),ac(),e!==null&&X(Ea),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return mn(Qe),null;case 25:return null;default:return null}}function tm(e,t){switch(Gr(t),t.tag){case 3:mn(Qe),Ce();break;case 26:case 27:case 5:ut(t);break;case 4:Ce();break;case 31:t.memoizedState!==null&&Ct(t);break;case 13:Ct(t);break;case 19:X(Pe);break;case 10:mn(t.type);break;case 22:case 23:Ct(t),ac(),e!==null&&X(Ea);break;case 24:mn(Qe)}}function Sl(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){i=void 0;var u=n.create,p=n.inst;i=u(),p.destroy=i}n=n.next}while(n!==r)}}catch(S){ze(t,t.return,S)}}function Zn(e,t,n){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var u=r.next;i=u;do{if((i.tag&e)===e){var p=i.inst,S=p.destroy;if(S!==void 0){p.destroy=void 0,r=t;var _=n,N=S;try{N()}catch(Y){ze(r,_,Y)}}}i=i.next}while(i!==u)}}catch(Y){ze(t,t.return,Y)}}function nm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Qd(t,n)}catch(i){ze(e,e.return,i)}}}function am(e,t,n){n.props=Da(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){ze(e,t,i)}}function xl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){ze(e,t,r)}}function $t(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){ze(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function im(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(r){ze(e,e.return,r)}}function kc(e,t,n){try{var i=e.stateNode;W0(i,e.type,n,t),i[ft]=t}catch(r){ze(e,e.return,r)}}function lm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ea(e.type)||e.tag===4}function Uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ea(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jc(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cn));else if(i!==4&&(i===27&&ea(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(jc(e,t,n),e=e.sibling;e!==null;)jc(e,t,n),e=e.sibling}function Zo(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&ea(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zo(e,t,n),e=e.sibling;e!==null;)Zo(e,t,n),e=e.sibling}function om(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);lt(t,i,n),t[tt]=e,t[ft]=n}catch(u){ze(e,e.return,u)}}var bn=!1,We=!1,Bc=!1,sm=typeof WeakSet=="function"?WeakSet:Set,et=null;function A0(e,t){if(e=e.containerInfo,lu=ms,e=bd(e),Dr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var p=0,S=-1,_=-1,N=0,Y=0,K=e,U=null;t:for(;;){for(var q;K!==n||r!==0&&K.nodeType!==3||(S=p+r),K!==u||i!==0&&K.nodeType!==3||(_=p+i),K.nodeType===3&&(p+=K.nodeValue.length),(q=K.firstChild)!==null;)U=K,K=q;for(;;){if(K===e)break t;if(U===n&&++N===r&&(S=p),U===u&&++Y===i&&(_=p),(q=K.nextSibling)!==null)break;K=U,U=K.parentNode}K=q}n=S===-1||_===-1?null:{start:S,end:_}}else n=null}n=n||{start:0,end:0}}else n=null;for(ou={focusedElem:e,selectionRange:n},ms=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,r=u.memoizedProps,u=u.memoizedState,i=n.stateNode;try{var te=Da(n.type,r);e=i.getSnapshotBeforeUpdate(te,u),i.__reactInternalSnapshotBeforeUpdate=e}catch(ue){ze(n,n.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)cu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function rm(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:xn(e,n),i&4&&Sl(5,n);break;case 1:if(xn(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){ze(n,n.return,p)}else{var r=Da(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){ze(n,n.return,p)}}i&64&&nm(n),i&512&&xl(n,n.return);break;case 3:if(xn(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Qd(e,t)}catch(p){ze(n,n.return,p)}}break;case 27:t===null&&i&4&&om(n);case 26:case 5:xn(e,n),t===null&&i&4&&im(n),i&512&&xl(n,n.return);break;case 12:xn(e,n);break;case 31:xn(e,n),i&4&&fm(e,n);break;case 13:xn(e,n),i&4&&dm(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=j0.bind(null,n),ab(e,n))));break;case 22:if(i=n.memoizedState!==null||bn,!i){t=t!==null&&t.memoizedState!==null||We,r=bn;var u=We;bn=i,(We=t)&&!u?wn(e,n,(n.subtreeFlags&8772)!==0):xn(e,n),bn=r,We=u}break;case 30:break;default:xn(e,n)}}function cm(e){var t=e.alternate;t!==null&&(e.alternate=null,cm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ve=null,ht=!1;function Sn(e,t,n){for(n=n.child;n!==null;)um(e,t,n),n=n.sibling}function um(e,t,n){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(Xi,n)}catch{}switch(n.tag){case 26:We||$t(n,t),Sn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:We||$t(n,t);var i=Ve,r=ht;ea(n.type)&&(Ve=n.stateNode,ht=!1),Sn(e,t,n),Ol(n.stateNode),Ve=i,ht=r;break;case 5:We||$t(n,t);case 6:if(i=Ve,r=ht,Ve=null,Sn(e,t,n),Ve=i,ht=r,Ve!==null)if(ht)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(n.stateNode)}catch(u){ze(n,t,u)}else try{Ve.removeChild(n.stateNode)}catch(u){ze(n,t,u)}break;case 18:Ve!==null&&(ht?(e=Ve,np(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Oi(e)):np(Ve,n.stateNode));break;case 4:i=Ve,r=ht,Ve=n.stateNode.containerInfo,ht=!0,Sn(e,t,n),Ve=i,ht=r;break;case 0:case 11:case 14:case 15:Zn(2,n,t),We||Zn(4,n,t),Sn(e,t,n);break;case 1:We||($t(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&am(n,t,i)),Sn(e,t,n);break;case 21:Sn(e,t,n);break;case 22:We=(i=We)||n.memoizedState!==null,Sn(e,t,n),We=i;break;default:Sn(e,t,n)}}function fm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oi(e)}catch(n){ze(t,t.return,n)}}}function dm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oi(e)}catch(n){ze(t,t.return,n)}}function M0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sm),t;default:throw Error(s(435,e.tag))}}function Ko(e,t){var n=M0(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var r=B0.bind(null,e,i);i.then(r,r)}})}function mt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i],u=e,p=t,S=p;e:for(;S!==null;){switch(S.tag){case 27:if(ea(S.type)){Ve=S.stateNode,ht=!1;break e}break;case 5:Ve=S.stateNode,ht=!1;break e;case 3:case 4:Ve=S.stateNode.containerInfo,ht=!0;break e}S=S.return}if(Ve===null)throw Error(s(160));um(u,p,r),Ve=null,ht=!1,u=r.alternate,u!==null&&(u.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)hm(t,e),t=t.sibling}var Xt=null;function hm(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:mt(t,e),pt(e),i&4&&(Zn(3,e,e.return),Sl(3,e),Zn(5,e,e.return));break;case 1:mt(t,e),pt(e),i&512&&(We||n===null||$t(n,n.return)),i&64&&bn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var r=Xt;if(mt(t,e),pt(e),i&512&&(We||n===null||$t(n,n.return)),i&4){var u=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":u=r.getElementsByTagName("title")[0],(!u||u[Ki]||u[tt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=r.createElement(i),r.head.insertBefore(u,r.querySelector("head > title"))),lt(u,i,n),u[tt]=e,Ie(u),i=u;break e;case"link":var p=hp("link","href",r).get(i+(n.href||""));if(p){for(var S=0;S<p.length;S++)if(u=p[S],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){p.splice(S,1);break t}}u=r.createElement(i),lt(u,i,n),r.head.appendChild(u);break;case"meta":if(p=hp("meta","content",r).get(i+(n.content||""))){for(S=0;S<p.length;S++)if(u=p[S],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){p.splice(S,1);break t}}u=r.createElement(i),lt(u,i,n),r.head.appendChild(u);break;default:throw Error(s(468,i))}u[tt]=e,Ie(u),i=u}e.stateNode=i}else mp(r,e.type,e.stateNode);else e.stateNode=dp(r,i,e.memoizedProps);else u!==i?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,i===null?mp(r,e.type,e.stateNode):dp(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&kc(e,e.memoizedProps,n.memoizedProps)}break;case 27:mt(t,e),pt(e),i&512&&(We||n===null||$t(n,n.return)),n!==null&&i&4&&kc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(mt(t,e),pt(e),i&512&&(We||n===null||$t(n,n.return)),e.flags&32){r=e.stateNode;try{Ia(r,"")}catch(te){ze(e,e.return,te)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,kc(e,r,n!==null?n.memoizedProps:r)),i&1024&&(Bc=!0);break;case 6:if(mt(t,e),pt(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(te){ze(e,e.return,te)}}break;case 3:if(us=null,r=Xt,Xt=rs(t.containerInfo),mt(t,e),Xt=r,pt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Oi(t.containerInfo)}catch(te){ze(e,e.return,te)}Bc&&(Bc=!1,mm(e));break;case 4:i=Xt,Xt=rs(e.stateNode.containerInfo),mt(t,e),pt(e),Xt=i;break;case 12:mt(t,e),pt(e);break;case 31:mt(t,e),pt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ko(e,i)));break;case 13:mt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Fo=Me()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ko(e,i)));break;case 22:r=e.memoizedState!==null;var _=n!==null&&n.memoizedState!==null,N=bn,Y=We;if(bn=N||r,We=Y||_,mt(t,e),We=Y,bn=N,pt(e),i&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||_||bn||We||za(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){_=n=t;try{if(u=_.stateNode,r)p=u.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{S=_.stateNode;var K=_.memoizedProps.style,U=K!=null&&K.hasOwnProperty("display")?K.display:null;S.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(te){ze(_,_.return,te)}}}else if(t.tag===6){if(n===null){_=t;try{_.stateNode.nodeValue=r?"":_.memoizedProps}catch(te){ze(_,_.return,te)}}}else if(t.tag===18){if(n===null){_=t;try{var q=_.stateNode;r?ap(q,!0):ap(_.stateNode,!1)}catch(te){ze(_,_.return,te)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Ko(e,n))));break;case 19:mt(t,e),pt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ko(e,i)));break;case 30:break;case 21:break;default:mt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(lm(i)){n=i;break}i=i.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var r=n.stateNode,u=Uc(e);Zo(e,u,r);break;case 5:var p=n.stateNode;n.flags&32&&(Ia(p,""),n.flags&=-33);var S=Uc(e);Zo(e,S,p);break;case 3:case 4:var _=n.stateNode.containerInfo,N=Uc(e);jc(e,N,_);break;default:throw Error(s(161))}}catch(Y){ze(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function mm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;mm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rm(e,t.alternate,t),t=t.sibling}function za(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Zn(4,t,t.return),za(t);break;case 1:$t(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&am(t,t.return,n),za(t);break;case 27:Ol(t.stateNode);case 26:case 5:$t(t,t.return),za(t);break;case 22:t.memoizedState===null&&za(t);break;case 30:za(t);break;default:za(t)}e=e.sibling}}function wn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,u=t,p=u.flags;switch(u.tag){case 0:case 11:case 15:wn(r,u,n),Sl(4,u);break;case 1:if(wn(r,u,n),i=u,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(N){ze(i,i.return,N)}if(i=u,r=i.updateQueue,r!==null){var S=i.stateNode;try{var _=r.shared.hiddenCallbacks;if(_!==null)for(r.shared.hiddenCallbacks=null,r=0;r<_.length;r++)Xd(_[r],S)}catch(N){ze(i,i.return,N)}}n&&p&64&&nm(u),xl(u,u.return);break;case 27:om(u);case 26:case 5:wn(r,u,n),n&&i===null&&p&4&&im(u),xl(u,u.return);break;case 12:wn(r,u,n);break;case 31:wn(r,u,n),n&&p&4&&fm(r,u);break;case 13:wn(r,u,n),n&&p&4&&dm(r,u);break;case 22:u.memoizedState===null&&wn(r,u,n),xl(u,u.return);break;case 30:break;default:wn(r,u,n)}t=t.sibling}}function Hc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&sl(n))}function qc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sl(e))}function Qt(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pm(e,t,n,i),t=t.sibling}function pm(e,t,n,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,n,i),r&2048&&Sl(9,t);break;case 1:Qt(e,t,n,i);break;case 3:Qt(e,t,n,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sl(e)));break;case 12:if(r&2048){Qt(e,t,n,i),e=t.stateNode;try{var u=t.memoizedProps,p=u.id,S=u.onPostCommit;typeof S=="function"&&S(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){ze(t,t.return,_)}}else Qt(e,t,n,i);break;case 31:Qt(e,t,n,i);break;case 13:Qt(e,t,n,i);break;case 23:break;case 22:u=t.stateNode,p=t.alternate,t.memoizedState!==null?u._visibility&2?Qt(e,t,n,i):wl(e,t):u._visibility&2?Qt(e,t,n,i):(u._visibility|=2,bi(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Hc(p,t);break;case 24:Qt(e,t,n,i),r&2048&&qc(t.alternate,t);break;default:Qt(e,t,n,i)}}function bi(e,t,n,i,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,p=t,S=n,_=i,N=p.flags;switch(p.tag){case 0:case 11:case 15:bi(u,p,S,_,r),Sl(8,p);break;case 23:break;case 22:var Y=p.stateNode;p.memoizedState!==null?Y._visibility&2?bi(u,p,S,_,r):wl(u,p):(Y._visibility|=2,bi(u,p,S,_,r)),r&&N&2048&&Hc(p.alternate,p);break;case 24:bi(u,p,S,_,r),r&&N&2048&&qc(p.alternate,p);break;default:bi(u,p,S,_,r)}t=t.sibling}}function wl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,r=i.flags;switch(i.tag){case 22:wl(n,i),r&2048&&Hc(i.alternate,i);break;case 24:wl(n,i),r&2048&&qc(i.alternate,i);break;default:wl(n,i)}t=t.sibling}}var _l=8192;function Si(e,t,n){if(e.subtreeFlags&_l)for(e=e.child;e!==null;)gm(e,t,n),e=e.sibling}function gm(e,t,n){switch(e.tag){case 26:Si(e,t,n),e.flags&_l&&e.memoizedState!==null&&pb(n,Xt,e.memoizedState,e.memoizedProps);break;case 5:Si(e,t,n);break;case 3:case 4:var i=Xt;Xt=rs(e.stateNode.containerInfo),Si(e,t,n),Xt=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=_l,_l=16777216,Si(e,t,n),_l=i):Si(e,t,n));break;default:Si(e,t,n)}}function ym(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Rl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];et=i,bm(i,e)}ym(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vm(e),e=e.sibling}function vm(e){switch(e.tag){case 0:case 11:case 15:Rl(e),e.flags&2048&&Zn(9,e,e.return);break;case 3:Rl(e);break;case 12:Rl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Wo(e)):Rl(e);break;default:Rl(e)}}function Wo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];et=i,bm(i,e)}ym(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Zn(8,t,t.return),Wo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Wo(t));break;default:Wo(t)}e=e.sibling}}function bm(e,t){for(;et!==null;){var n=et;switch(n.tag){case 0:case 11:case 15:Zn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:sl(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,et=i;else e:for(n=e;et!==null;){i=et;var r=i.sibling,u=i.return;if(cm(i),i===n){et=null;break e}if(r!==null){r.return=u,et=r;break e}et=u}}}var O0={getCacheForType:function(e){var t=at(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return at(Qe).controller.signal}},D0=typeof WeakMap=="function"?WeakMap:Map,Oe=0,je=null,xe=null,_e=0,De=0,Et=null,Kn=!1,xi=!1,Vc=!1,_n=0,Ye=0,Wn=0,La=0,Gc=0,Tt=0,wi=0,Cl=null,gt=null,Yc=!1,Fo=0,Sm=0,Jo=1/0,$o=null,Fn=null,Fe=0,Jn=null,_i=null,Rn=0,Pc=0,Xc=null,xm=null,El=0,Qc=null;function At(){return(Oe&2)!==0&&_e!==0?_e&-_e:D.T!==null?$c():jf()}function wm(){if(Tt===0)if((_e&536870912)===0||Ee){var e=lo;lo<<=1,(lo&3932160)===0&&(lo=262144),Tt=e}else Tt=536870912;return e=Rt.current,e!==null&&(e.flags|=32),Tt}function yt(e,t,n){(e===je&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(Ri(e,0),$n(e,_e,Tt,!1)),Zi(e,n),((Oe&2)===0||e!==je)&&(e===je&&((Oe&2)===0&&(La|=n),Ye===4&&$n(e,_e,Tt,!1)),It(e))}function _m(e,t,n){if((Oe&6)!==0)throw Error(s(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Qi(e,t),r=i?N0(e,t):Kc(e,t,!0),u=i;do{if(r===0){xi&&!i&&$n(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!z0(n)){r=Kc(e,t,!1),u=!1;continue}if(r===2){if(u=t,e.errorRecoveryDisabledLanes&u)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var S=e;r=Cl;var _=S.current.memoizedState.isDehydrated;if(_&&(Ri(S,p).flags|=256),p=Kc(S,p,!1),p!==2){if(Vc&&!_){S.errorRecoveryDisabledLanes|=u,La|=u,r=4;break e}u=gt,gt=r,u!==null&&(gt===null?gt=u:gt.push.apply(gt,u))}r=p}if(u=!1,r!==2)continue}}if(r===1){Ri(e,0),$n(e,t,0,!0);break}e:{switch(i=e,u=r,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:$n(i,t,Tt,!Kn);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(r=Fo+300-Me(),10<r)){if($n(i,t,Tt,!Kn),so(i,0,!0)!==0)break e;Rn=t,i.timeoutHandle=ep(Rm.bind(null,i,n,gt,$o,Yc,t,Tt,La,wi,Kn,u,"Throttled",-0,0),r);break e}Rm(i,n,gt,$o,Yc,t,Tt,La,wi,Kn,u,null,-0,0)}}break}while(!0);It(e)}function Rm(e,t,n,i,r,u,p,S,_,N,Y,K,U,q){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cn},gm(t,u,K);var te=(u&62914560)===u?Fo-Me():(u&4194048)===u?Sm-Me():0;if(te=gb(K,te),te!==null){Rn=u,e.cancelPendingCommit=te(zm.bind(null,e,t,u,n,i,r,p,S,_,Y,K,null,U,q)),$n(e,u,p,!N);return}}zm(e,t,u,n,i,r,p,S,_)}function z0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var r=n[i],u=r.getSnapshot;r=r.value;try{if(!wt(u(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $n(e,t,n,i){t&=~Gc,t&=~La,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var u=31-xt(r),p=1<<u;i[u]=-1,r&=~p}n!==0&&Nf(e,n,t)}function Io(){return(Oe&6)===0?(Tl(0),!1):!0}function Zc(){if(xe!==null){if(De===0)var e=xe.return;else e=xe,hn=Ra=null,cc(e),mi=null,cl=0,e=xe;for(;e!==null;)tm(e.alternate,e),e=e.return;xe=null}}function Ri(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,$0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Rn=0,Zc(),je=e,xe=n=fn(e.current,null),_e=t,De=0,Et=null,Kn=!1,xi=Qi(e,t),Vc=!1,wi=Tt=Gc=La=Wn=Ye=0,gt=Cl=null,Yc=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-xt(i),u=1<<r;t|=e[r],i&=~u}return _n=t,So(),n}function Cm(e,t){ye=null,D.H=yl,t===hi||t===Ao?(t=Vd(),De=3):t===Jr?(t=Vd(),De=4):De=t===Cc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,xe===null&&(Ye=1,Go(e,kt(t,e.current)))}function Em(){var e=Rt.current;return e===null?!0:(_e&4194048)===_e?Ht===null:(_e&62914560)===_e||(_e&536870912)!==0?e===Ht:!1}function Tm(){var e=D.H;return D.H=yl,e===null?yl:e}function Am(){var e=D.A;return D.A=O0,e}function es(){Ye=4,Kn||(_e&4194048)!==_e&&Rt.current!==null||(xi=!0),(Wn&134217727)===0&&(La&134217727)===0||je===null||$n(je,_e,Tt,!1)}function Kc(e,t,n){var i=Oe;Oe|=2;var r=Tm(),u=Am();(je!==e||_e!==t)&&($o=null,Ri(e,t)),t=!1;var p=Ye;e:do try{if(De!==0&&xe!==null){var S=xe,_=Et;switch(De){case 8:Zc(),p=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var N=De;if(De=0,Et=null,Ci(e,S,_,N),n&&xi){p=0;break e}break;default:N=De,De=0,Et=null,Ci(e,S,_,N)}}L0(),p=Ye;break}catch(Y){Cm(e,Y)}while(!0);return t&&e.shellSuspendCounter++,hn=Ra=null,Oe=i,D.H=r,D.A=u,xe===null&&(je=null,_e=0,So()),p}function L0(){for(;xe!==null;)Mm(xe)}function N0(e,t){var n=Oe;Oe|=2;var i=Tm(),r=Am();je!==e||_e!==t?($o=null,Jo=Me()+500,Ri(e,t)):xi=Qi(e,t);e:do try{if(De!==0&&xe!==null){t=xe;var u=Et;t:switch(De){case 1:De=0,Et=null,Ci(e,t,u,1);break;case 2:case 9:if(Hd(u)){De=0,Et=null,Om(t);break}t=function(){De!==2&&De!==9||je!==e||(De=7),It(e)},u.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:Hd(u)?(De=0,Et=null,Om(t)):(De=0,Et=null,Ci(e,t,u,7));break;case 5:var p=null;switch(xe.tag){case 26:p=xe.memoizedState;case 5:case 27:var S=xe;if(p?pp(p):S.stateNode.complete){De=0,Et=null;var _=S.sibling;if(_!==null)xe=_;else{var N=S.return;N!==null?(xe=N,ts(N)):xe=null}break t}}De=0,Et=null,Ci(e,t,u,5);break;case 6:De=0,Et=null,Ci(e,t,u,6);break;case 8:Zc(),Ye=6;break e;default:throw Error(s(462))}}k0();break}catch(Y){Cm(e,Y)}while(!0);return hn=Ra=null,D.H=i,D.A=r,Oe=n,xe!==null?0:(je=null,_e=0,So(),Ye)}function k0(){for(;xe!==null&&!no();)Mm(xe)}function Mm(e){var t=Ih(e.alternate,e,_n);e.memoizedProps=e.pendingProps,t===null?ts(e):xe=t}function Om(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Zh(n,t,t.pendingProps,t.type,void 0,_e);break;case 11:t=Zh(n,t,t.pendingProps,t.type.render,t.ref,_e);break;case 5:cc(t);default:tm(n,t),t=xe=Ad(t,_n),t=Ih(n,t,_n)}e.memoizedProps=e.pendingProps,t===null?ts(e):xe=t}function Ci(e,t,n,i){hn=Ra=null,cc(t),mi=null,cl=0;var r=t.return;try{if(_0(e,r,t,n,_e)){Ye=1,Go(e,kt(n,e.current)),xe=null;return}}catch(u){if(r!==null)throw xe=r,u;Ye=1,Go(e,kt(n,e.current)),xe=null;return}t.flags&32768?(Ee||i===1?e=!0:xi||(_e&536870912)!==0?e=!1:(Kn=e=!0,(i===2||i===9||i===3||i===6)&&(i=Rt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Dm(t,e)):ts(t)}function ts(e){var t=e;do{if((t.flags&32768)!==0){Dm(t,Kn);return}e=t.return;var n=E0(t.alternate,t,_n);if(n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Ye===0&&(Ye=5)}function Dm(e,t){do{var n=T0(e.alternate,e);if(n!==null){n.flags&=32767,xe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=n}while(e!==null);Ye=6,xe=null}function zm(e,t,n,i,r,u,p,S,_){e.cancelPendingCommit=null;do ns();while(Fe!==0);if((Oe&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=Ur,mv(e,n,u,p,S,_),e===je&&(xe=je=null,_e=0),_i=t,Jn=e,Rn=n,Pc=u,Xc=r,xm=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,H0(ao,function(){return jm(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=D.T,D.T=null,r=W.p,W.p=2,p=Oe,Oe|=4;try{A0(e,t,n)}finally{Oe=p,W.p=r,D.T=i}}Fe=1,Lm(),Nm(),km()}}function Lm(){if(Fe===1){Fe=0;var e=Jn,t=_i,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var i=W.p;W.p=2;var r=Oe;Oe|=4;try{hm(t,e);var u=ou,p=bd(e.containerInfo),S=u.focusedElem,_=u.selectionRange;if(p!==S&&S&&S.ownerDocument&&vd(S.ownerDocument.documentElement,S)){if(_!==null&&Dr(S)){var N=_.start,Y=_.end;if(Y===void 0&&(Y=N),"selectionStart"in S)S.selectionStart=N,S.selectionEnd=Math.min(Y,S.value.length);else{var K=S.ownerDocument||document,U=K&&K.defaultView||window;if(U.getSelection){var q=U.getSelection(),te=S.textContent.length,ue=Math.min(_.start,te),Ue=_.end===void 0?ue:Math.min(_.end,te);!q.extend&&ue>Ue&&(p=Ue,Ue=ue,ue=p);var O=yd(S,ue),C=yd(S,Ue);if(O&&C&&(q.rangeCount!==1||q.anchorNode!==O.node||q.anchorOffset!==O.offset||q.focusNode!==C.node||q.focusOffset!==C.offset)){var z=K.createRange();z.setStart(O.node,O.offset),q.removeAllRanges(),ue>Ue?(q.addRange(z),q.extend(C.node,C.offset)):(z.setEnd(C.node,C.offset),q.addRange(z))}}}}for(K=[],q=S;q=q.parentNode;)q.nodeType===1&&K.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<K.length;S++){var Q=K[S];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}ms=!!lu,ou=lu=null}finally{Oe=r,W.p=i,D.T=n}}e.current=t,Fe=2}}function Nm(){if(Fe===2){Fe=0;var e=Jn,t=_i,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var i=W.p;W.p=2;var r=Oe;Oe|=4;try{rm(e,t.alternate,t)}finally{Oe=r,W.p=i,D.T=n}}Fe=3}}function km(){if(Fe===4||Fe===3){Fe=0,Le();var e=Jn,t=_i,n=Rn,i=xm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,_i=Jn=null,Um(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Fn=null),dr(n),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(Xi,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=D.T,r=W.p,W.p=2,D.T=null;try{for(var u=e.onRecoverableError,p=0;p<i.length;p++){var S=i[p];u(S.value,{componentStack:S.stack})}}finally{D.T=t,W.p=r}}(Rn&3)!==0&&ns(),It(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===Qc?El++:(El=0,Qc=e):El=0,Tl(0)}}function Um(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sl(t)))}function ns(){return Lm(),Nm(),km(),jm()}function jm(){if(Fe!==5)return!1;var e=Jn,t=Pc;Pc=0;var n=dr(Rn),i=D.T,r=W.p;try{W.p=32>n?32:n,D.T=null,n=Xc,Xc=null;var u=Jn,p=Rn;if(Fe=0,_i=Jn=null,Rn=0,(Oe&6)!==0)throw Error(s(331));var S=Oe;if(Oe|=4,vm(u.current),pm(u,u.current,p,n),Oe=S,Tl(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(Xi,u)}catch{}return!0}finally{W.p=r,D.T=i,Um(e,t)}}function Bm(e,t,n){t=kt(n,t),t=Rc(e.stateNode,t,2),e=Pn(e,t,2),e!==null&&(Zi(e,2),It(e))}function ze(e,t,n){if(e.tag===3)Bm(e,e,n);else for(;t!==null;){if(t.tag===3){Bm(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Fn===null||!Fn.has(i))){e=kt(n,e),n=Hh(2),i=Pn(t,n,2),i!==null&&(qh(n,i,t,e),Zi(i,2),It(i));break}}t=t.return}}function Wc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new D0;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(n)||(Vc=!0,r.add(n),e=U0.bind(null,e,t,n),t.then(e,e))}function U0(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,je===e&&(_e&n)===n&&(Ye===4||Ye===3&&(_e&62914560)===_e&&300>Me()-Fo?(Oe&2)===0&&Ri(e,0):Gc|=n,wi===_e&&(wi=0)),It(e)}function Hm(e,t){t===0&&(t=Lf()),e=xa(e,t),e!==null&&(Zi(e,t),It(e))}function j0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hm(e,n)}function B0(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),Hm(e,n)}function H0(e,t){return Nn(e,t)}var as=null,Ei=null,Fc=!1,is=!1,Jc=!1,In=0;function It(e){e!==Ei&&e.next===null&&(Ei===null?as=Ei=e:Ei=Ei.next=e),is=!0,Fc||(Fc=!0,V0())}function Tl(e,t){if(!Jc&&is){Jc=!0;do for(var n=!1,i=as;i!==null;){if(e!==0){var r=i.pendingLanes;if(r===0)var u=0;else{var p=i.suspendedLanes,S=i.pingedLanes;u=(1<<31-xt(42|e)+1)-1,u&=r&~(p&~S),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Ym(i,u))}else u=_e,u=so(i,i===je?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||Qi(i,u)||(n=!0,Ym(i,u));i=i.next}while(n);Jc=!1}}function q0(){qm()}function qm(){is=Fc=!1;var e=0;In!==0&&J0()&&(e=In);for(var t=Me(),n=null,i=as;i!==null;){var r=i.next,u=Vm(i,t);u===0?(i.next=null,n===null?as=r:n.next=r,r===null&&(Ei=n)):(n=i,(e!==0||(u&3)!==0)&&(is=!0)),i=r}Fe!==0&&Fe!==5||Tl(e),In!==0&&(In=0)}function Vm(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var p=31-xt(u),S=1<<p,_=r[p];_===-1?((S&n)===0||(S&i)!==0)&&(r[p]=hv(S,t)):_<=t&&(e.expiredLanes|=S),u&=~S}if(t=je,n=_e,n=so(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Qa(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Qi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Qa(i),dr(n)){case 2:case 8:n=Df;break;case 32:n=ao;break;case 268435456:n=zf;break;default:n=ao}return i=Gm.bind(null,e),n=Nn(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Qa(i),e.callbackPriority=2,e.callbackNode=null,2}function Gm(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ns()&&e.callbackNode!==n)return null;var i=_e;return i=so(e,e===je?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(_m(e,i,t),Vm(e,Me()),e.callbackNode!=null&&e.callbackNode===n?Gm.bind(null,e):null)}function Ym(e,t){if(ns())return null;_m(e,t,!0)}function V0(){I0(function(){(Oe&6)!==0?Nn(Pi,q0):qm()})}function $c(){if(In===0){var e=fi;e===0&&(e=io,io<<=1,(io&261888)===0&&(io=256)),In=e}return In}function Pm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fo(""+e)}function Xm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function G0(e,t,n,i,r){if(t==="submit"&&n&&n.stateNode===r){var u=Pm((r[ft]||null).action),p=i.submitter;p&&(t=(t=p[ft]||null)?Pm(t.formAction):p.getAttribute("formAction"),t!==null&&(u=t,p=null));var S=new go("action","action",null,i,r);e.push({event:S,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(In!==0){var _=p?Xm(r,p):new FormData(r);vc(n,{pending:!0,data:_,method:r.method,action:u},null,_)}}else typeof u=="function"&&(S.preventDefault(),_=p?Xm(r,p):new FormData(r),vc(n,{pending:!0,data:_,method:r.method,action:u},u,_))},currentTarget:r}]})}}for(var Ic=0;Ic<kr.length;Ic++){var eu=kr[Ic],Y0=eu.toLowerCase(),P0=eu[0].toUpperCase()+eu.slice(1);Pt(Y0,"on"+P0)}Pt(wd,"onAnimationEnd"),Pt(_d,"onAnimationIteration"),Pt(Rd,"onAnimationStart"),Pt("dblclick","onDoubleClick"),Pt("focusin","onFocus"),Pt("focusout","onBlur"),Pt(o0,"onTransitionRun"),Pt(s0,"onTransitionStart"),Pt(r0,"onTransitionCancel"),Pt(Cd,"onTransitionEnd"),Ja("onMouseEnter",["mouseout","mouseover"]),Ja("onMouseLeave",["mouseout","mouseover"]),Ja("onPointerEnter",["pointerout","pointerover"]),Ja("onPointerLeave",["pointerout","pointerover"]),ya("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ya("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ya("onBeforeInput",["compositionend","keypress","textInput","paste"]),ya("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Al="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(" "),X0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Al));function Qm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var u=void 0;if(t)for(var p=i.length-1;0<=p;p--){var S=i[p],_=S.instance,N=S.currentTarget;if(S=S.listener,_!==u&&r.isPropagationStopped())break e;u=S,r.currentTarget=N;try{u(r)}catch(Y){bo(Y)}r.currentTarget=null,u=_}else for(p=0;p<i.length;p++){if(S=i[p],_=S.instance,N=S.currentTarget,S=S.listener,_!==u&&r.isPropagationStopped())break e;u=S,r.currentTarget=N;try{u(r)}catch(Y){bo(Y)}r.currentTarget=null,u=_}}}}function we(e,t){var n=t[hr];n===void 0&&(n=t[hr]=new Set);var i=e+"__bubble";n.has(i)||(Zm(t,e,2,!1),n.add(i))}function tu(e,t,n){var i=0;t&&(i|=4),Zm(n,e,i,t)}var ls="_reactListening"+Math.random().toString(36).slice(2);function nu(e){if(!e[ls]){e[ls]=!0,qf.forEach(function(n){n!=="selectionchange"&&(X0.has(n)||tu(n,!1,e),tu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ls]||(t[ls]=!0,tu("selectionchange",!1,t))}}function Zm(e,t,n,i){switch(wp(t)){case 2:var r=bb;break;case 8:r=Sb;break;default:r=yu}n=r.bind(null,t,n,e),r=void 0,!wr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function au(e,t,n,i,r){var u=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var p=i.tag;if(p===3||p===4){var S=i.stateNode.containerInfo;if(S===r)break;if(p===4)for(p=i.return;p!==null;){var _=p.tag;if((_===3||_===4)&&p.stateNode.containerInfo===r)return;p=p.return}for(;S!==null;){if(p=Ka(S),p===null)return;if(_=p.tag,_===5||_===6||_===26||_===27){i=u=p;continue e}S=S.parentNode}}i=i.return}$f(function(){var N=u,Y=Sr(n),K=[];e:{var U=Ed.get(e);if(U!==void 0){var q=go,te=e;switch(e){case"keypress":if(mo(n)===0)break e;case"keydown":case"keyup":q=Bv;break;case"focusin":te="focus",q=Er;break;case"focusout":te="blur",q=Er;break;case"beforeblur":case"afterblur":q=Er;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=td;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=Ev;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Vv;break;case wd:case _d:case Rd:q=Mv;break;case Cd:q=Yv;break;case"scroll":case"scrollend":q=Rv;break;case"wheel":q=Xv;break;case"copy":case"cut":case"paste":q=Dv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=ad;break;case"toggle":case"beforetoggle":q=Zv}var ue=(t&4)!==0,Ue=!ue&&(e==="scroll"||e==="scrollend"),O=ue?U!==null?U+"Capture":null:U;ue=[];for(var C=N,z;C!==null;){var Q=C;if(z=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||z===null||O===null||(Q=Fi(C,O),Q!=null&&ue.push(Ml(C,Q,z))),Ue)break;C=C.return}0<ue.length&&(U=new q(U,te,null,n,Y),K.push({event:U,listeners:ue}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",U&&n!==br&&(te=n.relatedTarget||n.fromElement)&&(Ka(te)||te[Za]))break e;if((q||U)&&(U=Y.window===Y?Y:(U=Y.ownerDocument)?U.defaultView||U.parentWindow:window,q?(te=n.relatedTarget||n.toElement,q=N,te=te?Ka(te):null,te!==null&&(Ue=f(te),ue=te.tag,te!==Ue||ue!==5&&ue!==27&&ue!==6)&&(te=null)):(q=null,te=N),q!==te)){if(ue=td,Q="onMouseLeave",O="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(ue=ad,Q="onPointerLeave",O="onPointerEnter",C="pointer"),Ue=q==null?U:Wi(q),z=te==null?U:Wi(te),U=new ue(Q,C+"leave",q,n,Y),U.target=Ue,U.relatedTarget=z,Q=null,Ka(Y)===N&&(ue=new ue(O,C+"enter",te,n,Y),ue.target=z,ue.relatedTarget=Ue,Q=ue),Ue=Q,q&&te)t:{for(ue=Q0,O=q,C=te,z=0,Q=O;Q;Q=ue(Q))z++;Q=0;for(var se=C;se;se=ue(se))Q++;for(;0<z-Q;)O=ue(O),z--;for(;0<Q-z;)C=ue(C),Q--;for(;z--;){if(O===C||C!==null&&O===C.alternate){ue=O;break t}O=ue(O),C=ue(C)}ue=null}else ue=null;q!==null&&Km(K,U,q,ue,!1),te!==null&&Ue!==null&&Km(K,Ue,te,ue,!0)}}e:{if(U=N?Wi(N):window,q=U.nodeName&&U.nodeName.toLowerCase(),q==="select"||q==="input"&&U.type==="file")var Te=fd;else if(cd(U))if(dd)Te=a0;else{Te=t0;var ie=e0}else q=U.nodeName,!q||q.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?N&&vr(N.elementType)&&(Te=fd):Te=n0;if(Te&&(Te=Te(e,N))){ud(K,Te,n,Y);break e}ie&&ie(e,U,N),e==="focusout"&&N&&U.type==="number"&&N.memoizedProps.value!=null&&yr(U,"number",U.value)}switch(ie=N?Wi(N):window,e){case"focusin":(cd(ie)||ie.contentEditable==="true")&&(ai=ie,zr=N,il=null);break;case"focusout":il=zr=ai=null;break;case"mousedown":Lr=!0;break;case"contextmenu":case"mouseup":case"dragend":Lr=!1,Sd(K,n,Y);break;case"selectionchange":if(l0)break;case"keydown":case"keyup":Sd(K,n,Y)}var ve;if(Ar)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else ni?sd(e,n)&&(Re="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Re="onCompositionStart");Re&&(id&&n.locale!=="ko"&&(ni||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&ni&&(ve=If()):(jn=Y,_r="value"in jn?jn.value:jn.textContent,ni=!0)),ie=os(N,Re),0<ie.length&&(Re=new nd(Re,e,null,n,Y),K.push({event:Re,listeners:ie}),ve?Re.data=ve:(ve=rd(n),ve!==null&&(Re.data=ve)))),(ve=Wv?Fv(e,n):Jv(e,n))&&(Re=os(N,"onBeforeInput"),0<Re.length&&(ie=new nd("onBeforeInput","beforeinput",null,n,Y),K.push({event:ie,listeners:Re}),ie.data=ve)),G0(K,e,N,n,Y)}Qm(K,t)})}function Ml(e,t,n){return{instance:e,listener:t,currentTarget:n}}function os(e,t){for(var n=t+"Capture",i=[];e!==null;){var r=e,u=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||u===null||(r=Fi(e,n),r!=null&&i.unshift(Ml(e,r,u)),r=Fi(e,t),r!=null&&i.push(Ml(e,r,u))),e.tag===3)return i;e=e.return}return[]}function Q0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Km(e,t,n,i,r){for(var u=t._reactName,p=[];n!==null&&n!==i;){var S=n,_=S.alternate,N=S.stateNode;if(S=S.tag,_!==null&&_===i)break;S!==5&&S!==26&&S!==27||N===null||(_=N,r?(N=Fi(n,u),N!=null&&p.unshift(Ml(n,N,_))):r||(N=Fi(n,u),N!=null&&p.push(Ml(n,N,_)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var Z0=/\r\n?/g,K0=/\u0000|\uFFFD/g;function Wm(e){return(typeof e=="string"?e:""+e).replace(Z0,`
10
+ `).replace(K0,"")}function Fm(e,t){return t=Wm(t),Wm(e)===t}function ke(e,t,n,i,r,u){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Ia(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Ia(e,""+i);break;case"className":co(e,"class",i);break;case"tabIndex":co(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":co(e,n,i);break;case"style":Ff(e,i,u);break;case"data":if(t!=="object"){co(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=fo(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&ke(e,t,"name",r.name,r,null),ke(e,t,"formEncType",r.formEncType,r,null),ke(e,t,"formMethod",r.formMethod,r,null),ke(e,t,"formTarget",r.formTarget,r,null)):(ke(e,t,"encType",r.encType,r,null),ke(e,t,"method",r.method,r,null),ke(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=fo(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=cn);break;case"onScroll":i!=null&&we("scroll",e);break;case"onScrollEnd":i!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=fo(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":we("beforetoggle",e),we("toggle",e),ro(e,"popover",i);break;case"xlinkActuate":rn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":rn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":rn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":rn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":rn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":rn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":rn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":rn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":rn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":ro(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=wv.get(n)||n,ro(e,n,i))}}function iu(e,t,n,i,r,u){switch(n){case"style":Ff(e,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Ia(e,i):(typeof i=="number"||typeof i=="bigint")&&Ia(e,""+i);break;case"onScroll":i!=null&&we("scroll",e);break;case"onScrollEnd":i!=null&&we("scrollend",e);break;case"onClick":i!=null&&(e.onclick=cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Vf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),u=e[ft]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,r),typeof i=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,r);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):ro(e,n,i)}}}function lt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var i=!1,r=!1,u;for(u in n)if(n.hasOwnProperty(u)){var p=n[u];if(p!=null)switch(u){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ke(e,t,u,p,n,null)}}r&&ke(e,t,"srcSet",n.srcSet,n,null),i&&ke(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var S=u=p=r=null,_=null,N=null;for(i in n)if(n.hasOwnProperty(i)){var Y=n[i];if(Y!=null)switch(i){case"name":r=Y;break;case"type":p=Y;break;case"checked":_=Y;break;case"defaultChecked":N=Y;break;case"value":u=Y;break;case"defaultValue":S=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(s(137,t));break;default:ke(e,t,i,Y,n,null)}}Qf(e,u,S,_,N,p,r,!1);return;case"select":we("invalid",e),i=p=u=null;for(r in n)if(n.hasOwnProperty(r)&&(S=n[r],S!=null))switch(r){case"value":u=S;break;case"defaultValue":p=S;break;case"multiple":i=S;default:ke(e,t,r,S,n,null)}t=u,n=p,e.multiple=!!i,t!=null?$a(e,!!i,t,!1):n!=null&&$a(e,!!i,n,!0);return;case"textarea":we("invalid",e),u=r=i=null;for(p in n)if(n.hasOwnProperty(p)&&(S=n[p],S!=null))switch(p){case"value":i=S;break;case"defaultValue":r=S;break;case"children":u=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(91));break;default:ke(e,t,p,S,n,null)}Kf(e,i,r,u);return;case"option":for(_ in n)if(n.hasOwnProperty(_)&&(i=n[_],i!=null))switch(_){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:ke(e,t,_,i,n,null)}return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(i=0;i<Al.length;i++)we(Al[i],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in n)if(n.hasOwnProperty(N)&&(i=n[N],i!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ke(e,t,N,i,n,null)}return;default:if(vr(t)){for(Y in n)n.hasOwnProperty(Y)&&(i=n[Y],i!==void 0&&iu(e,t,Y,i,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(i=n[S],i!=null&&ke(e,t,S,i,n,null))}function W0(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,u=null,p=null,S=null,_=null,N=null,Y=null;for(q in n){var K=n[q];if(n.hasOwnProperty(q)&&K!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":_=K;default:i.hasOwnProperty(q)||ke(e,t,q,null,i,K)}}for(var U in i){var q=i[U];if(K=n[U],i.hasOwnProperty(U)&&(q!=null||K!=null))switch(U){case"type":u=q;break;case"name":r=q;break;case"checked":N=q;break;case"defaultChecked":Y=q;break;case"value":p=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,t));break;default:q!==K&&ke(e,t,U,q,i,K)}}gr(e,p,S,_,N,Y,u,r);return;case"select":q=p=S=U=null;for(u in n)if(_=n[u],n.hasOwnProperty(u)&&_!=null)switch(u){case"value":break;case"multiple":q=_;default:i.hasOwnProperty(u)||ke(e,t,u,null,i,_)}for(r in i)if(u=i[r],_=n[r],i.hasOwnProperty(r)&&(u!=null||_!=null))switch(r){case"value":U=u;break;case"defaultValue":S=u;break;case"multiple":p=u;default:u!==_&&ke(e,t,r,u,i,_)}t=S,n=p,i=q,U!=null?$a(e,!!n,U,!1):!!i!=!!n&&(t!=null?$a(e,!!n,t,!0):$a(e,!!n,n?[]:"",!1));return;case"textarea":q=U=null;for(S in n)if(r=n[S],n.hasOwnProperty(S)&&r!=null&&!i.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:ke(e,t,S,null,i,r)}for(p in i)if(r=i[p],u=n[p],i.hasOwnProperty(p)&&(r!=null||u!=null))switch(p){case"value":U=r;break;case"defaultValue":q=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==u&&ke(e,t,p,r,i,u)}Zf(e,U,q);return;case"option":for(var te in n)if(U=n[te],n.hasOwnProperty(te)&&U!=null&&!i.hasOwnProperty(te))switch(te){case"selected":e.selected=!1;break;default:ke(e,t,te,null,i,U)}for(_ in i)if(U=i[_],q=n[_],i.hasOwnProperty(_)&&U!==q&&(U!=null||q!=null))switch(_){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:ke(e,t,_,U,i,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ue in n)U=n[ue],n.hasOwnProperty(ue)&&U!=null&&!i.hasOwnProperty(ue)&&ke(e,t,ue,null,i,U);for(N in i)if(U=i[N],q=n[N],i.hasOwnProperty(N)&&U!==q&&(U!=null||q!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:ke(e,t,N,U,i,q)}return;default:if(vr(t)){for(var Ue in n)U=n[Ue],n.hasOwnProperty(Ue)&&U!==void 0&&!i.hasOwnProperty(Ue)&&iu(e,t,Ue,void 0,i,U);for(Y in i)U=i[Y],q=n[Y],!i.hasOwnProperty(Y)||U===q||U===void 0&&q===void 0||iu(e,t,Y,U,i,q);return}}for(var O in n)U=n[O],n.hasOwnProperty(O)&&U!=null&&!i.hasOwnProperty(O)&&ke(e,t,O,null,i,U);for(K in i)U=i[K],q=n[K],!i.hasOwnProperty(K)||U===q||U==null&&q==null||ke(e,t,K,U,i,q)}function Jm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function F0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var r=n[i],u=r.transferSize,p=r.initiatorType,S=r.duration;if(u&&S&&Jm(p)){for(p=0,S=r.responseEnd,i+=1;i<n.length;i++){var _=n[i],N=_.startTime;if(N>S)break;var Y=_.transferSize,K=_.initiatorType;Y&&Jm(K)&&(_=_.responseEnd,p+=Y*(_<S?1:(S-N)/(_-N)))}if(--i,t+=8*(u+p)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var lu=null,ou=null;function ss(e){return e.nodeType===9?e:e.ownerDocument}function $m(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Im(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function su(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ru=null;function J0(){var e=window.event;return e&&e.type==="popstate"?e===ru?!1:(ru=e,!0):(ru=null,!1)}var ep=typeof setTimeout=="function"?setTimeout:void 0,$0=typeof clearTimeout=="function"?clearTimeout:void 0,tp=typeof Promise=="function"?Promise:void 0,I0=typeof queueMicrotask=="function"?queueMicrotask:typeof tp<"u"?function(e){return tp.resolve(null).then(e).catch(eb)}:ep;function eb(e){setTimeout(function(){throw e})}function ea(e){return e==="head"}function np(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(r),Oi(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ol(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ol(n);for(var u=n.firstChild;u;){var p=u.nextSibling,S=u.nodeName;u[Ki]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=p}}else n==="body"&&Ol(e.ownerDocument.body);n=r}while(n);Oi(t)}function ap(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function cu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":cu(n),mr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function tb(e,t,n,i){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ki])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=qt(e.nextSibling),e===null)break}return null}function nb(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=qt(e.nextSibling),e===null))return null;return e}function ip(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=qt(e.nextSibling),e===null))return null;return e}function uu(e){return e.data==="$?"||e.data==="$~"}function fu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ab(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var du=null;function lp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return qt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function op(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function sp(e,t,n){switch(t=ss(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Ol(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mr(e)}var Vt=new Map,rp=new Set;function rs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Cn=W.d;W.d={f:ib,r:lb,D:ob,C:sb,L:rb,m:cb,X:fb,S:ub,M:db};function ib(){var e=Cn.f(),t=Io();return e||t}function lb(e){var t=Wa(e);t!==null&&t.tag===5&&t.type==="form"?Ch(t):Cn.r(e)}var Ti=typeof document>"u"?null:document;function cp(e,t,n){var i=Ti;if(i&&typeof t=="string"&&t){var r=Lt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),rp.has(r)||(rp.add(r),e={rel:e,crossOrigin:n,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),lt(t,"link",e),Ie(t),i.head.appendChild(t)))}}function ob(e){Cn.D(e),cp("dns-prefetch",e,null)}function sb(e,t){Cn.C(e,t),cp("preconnect",e,t)}function rb(e,t,n){Cn.L(e,t,n);var i=Ti;if(i&&e&&t){var r='link[rel="preload"][as="'+Lt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Lt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Lt(n.imageSizes)+'"]')):r+='[href="'+Lt(e)+'"]';var u=r;switch(t){case"style":u=Ai(e);break;case"script":u=Mi(e)}Vt.has(u)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Vt.set(u,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(Dl(u))||t==="script"&&i.querySelector(zl(u))||(t=i.createElement("link"),lt(t,"link",e),Ie(t),i.head.appendChild(t)))}}function cb(e,t){Cn.m(e,t);var n=Ti;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Lt(i)+'"][href="'+Lt(e)+'"]',u=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Mi(e)}if(!Vt.has(u)&&(e=y({rel:"modulepreload",href:e},t),Vt.set(u,e),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(zl(u)))return}i=n.createElement("link"),lt(i,"link",e),Ie(i),n.head.appendChild(i)}}}function ub(e,t,n){Cn.S(e,t,n);var i=Ti;if(i&&e){var r=Fa(i).hoistableStyles,u=Ai(e);t=t||"default";var p=r.get(u);if(!p){var S={loading:0,preload:null};if(p=i.querySelector(Dl(u)))S.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Vt.get(u))&&hu(e,n);var _=p=i.createElement("link");Ie(_),lt(_,"link",e),_._p=new Promise(function(N,Y){_.onload=N,_.onerror=Y}),_.addEventListener("load",function(){S.loading|=1}),_.addEventListener("error",function(){S.loading|=2}),S.loading|=4,cs(p,t,i)}p={type:"stylesheet",instance:p,count:1,state:S},r.set(u,p)}}}function fb(e,t){Cn.X(e,t);var n=Ti;if(n&&e){var i=Fa(n).hoistableScripts,r=Mi(e),u=i.get(r);u||(u=n.querySelector(zl(r)),u||(e=y({src:e,async:!0},t),(t=Vt.get(r))&&mu(e,t),u=n.createElement("script"),Ie(u),lt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(r,u))}}function db(e,t){Cn.M(e,t);var n=Ti;if(n&&e){var i=Fa(n).hoistableScripts,r=Mi(e),u=i.get(r);u||(u=n.querySelector(zl(r)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Vt.get(r))&&mu(e,t),u=n.createElement("script"),Ie(u),lt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(r,u))}}function up(e,t,n,i){var r=(r=re.current)?rs(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ai(n.href),n=Fa(r).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ai(n.href);var u=Fa(r).hoistableStyles,p=u.get(e);if(p||(r=r.ownerDocument||r,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,p),(u=r.querySelector(Dl(e)))&&!u._p&&(p.instance=u,p.state.loading=5),Vt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Vt.set(e,n),u||hb(r,e,n,p.state))),t&&i===null)throw Error(s(528,""));return p}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Mi(n),n=Fa(r).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ai(e){return'href="'+Lt(e)+'"'}function Dl(e){return'link[rel="stylesheet"]['+e+"]"}function fp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function hb(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),lt(t,"link",n),Ie(t),e.head.appendChild(t))}function Mi(e){return'[src="'+Lt(e)+'"]'}function zl(e){return"script[async]"+e}function dp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Lt(n.href)+'"]');if(i)return t.instance=i,Ie(i),i;var r=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ie(i),lt(i,"style",r),cs(i,n.precedence,e),t.instance=i;case"stylesheet":r=Ai(n.href);var u=e.querySelector(Dl(r));if(u)return t.state.loading|=4,t.instance=u,Ie(u),u;i=fp(n),(r=Vt.get(r))&&hu(i,r),u=(e.ownerDocument||e).createElement("link"),Ie(u);var p=u;return p._p=new Promise(function(S,_){p.onload=S,p.onerror=_}),lt(u,"link",i),t.state.loading|=4,cs(u,n.precedence,e),t.instance=u;case"script":return u=Mi(n.src),(r=e.querySelector(zl(u)))?(t.instance=r,Ie(r),r):(i=n,(r=Vt.get(u))&&(i=y({},n),mu(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),Ie(r),lt(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,cs(i,n.precedence,e));return t.instance}function cs(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,u=r,p=0;p<i.length;p++){var S=i[p];if(S.dataset.precedence===t)u=S;else if(u!==r)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function hu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function mu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var us=null;function hp(e,t,n){if(us===null){var i=new Map,r=us=new Map;r.set(n,i)}else r=us,i=r.get(n),i||(i=new Map,r.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var u=n[r];if(!(u[Ki]||u[tt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var p=u.getAttribute(t)||"";p=e+p;var S=i.get(p);S?S.push(u):i.set(p,[u])}}return i}function mp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function mb(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function pp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function pb(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Ai(i.href),u=t.querySelector(Dl(r));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=fs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,Ie(u);return}u=t.ownerDocument||t,i=fp(i),(r=Vt.get(r))&&hu(i,r),u=u.createElement("link"),Ie(u);var p=u;p._p=new Promise(function(S,_){p.onload=S,p.onerror=_}),lt(u,"link",i),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=fs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var pu=0;function gb(e,t){return e.stylesheets&&e.count===0&&hs(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&hs(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&pu===0&&(pu=62500*F0());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&hs(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>pu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(r)}}:null}function fs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ds=null;function hs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ds=new Map,t.forEach(yb,e),ds=null,fs.call(e))}function yb(e,t){if(!(t.state.loading&4)){var n=ds.get(e);if(n)var i=n.get(null);else{n=new Map,ds.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<r.length;u++){var p=r[u];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),i=p)}i&&n.set(null,i)}r=t.instance,p=r.getAttribute("data-precedence"),u=n.get(p)||i,u===i&&n.set(null,r),n.set(p,r),this.count++,i=fs.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),u?u.parentNode.insertBefore(r,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Ll={$$typeof:B,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function vb(e,t,n,i,r,u,p,S,_){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ur(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ur(0),this.hiddenUpdates=ur(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=u,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function gp(e,t,n,i,r,u,p,S,_,N,Y,K){return e=new vb(e,t,n,p,_,N,Y,K,S),t=1,u===!0&&(t|=24),u=_t(3,null,null,t),e.current=u,u.stateNode=e,t=Kr(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:i,isDehydrated:n,cache:t},$r(u),e}function yp(e){return e?(e=oi,e):oi}function vp(e,t,n,i,r,u){r=yp(r),i.context===null?i.context=r:i.pendingContext=r,i=Yn(t),i.payload={element:n},u=u===void 0?null:u,u!==null&&(i.callback=u),n=Pn(e,i,t),n!==null&&(yt(n,e,t),fl(n,e,t))}function bp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gu(e,t){bp(e,t),(e=e.alternate)&&bp(e,t)}function Sp(e){if(e.tag===13||e.tag===31){var t=xa(e,67108864);t!==null&&yt(t,e,67108864),gu(e,67108864)}}function xp(e){if(e.tag===13||e.tag===31){var t=At();t=fr(t);var n=xa(e,t);n!==null&&yt(n,e,t),gu(e,t)}}var ms=!0;function bb(e,t,n,i){var r=D.T;D.T=null;var u=W.p;try{W.p=2,yu(e,t,n,i)}finally{W.p=u,D.T=r}}function Sb(e,t,n,i){var r=D.T;D.T=null;var u=W.p;try{W.p=8,yu(e,t,n,i)}finally{W.p=u,D.T=r}}function yu(e,t,n,i){if(ms){var r=vu(i);if(r===null)au(e,t,i,ps,n),_p(e,i);else if(wb(r,e,t,n,i))i.stopPropagation();else if(_p(e,i),t&4&&-1<xb.indexOf(e)){for(;r!==null;){var u=Wa(r);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var p=ga(u.pendingLanes);if(p!==0){var S=u;for(S.pendingLanes|=2,S.entangledLanes|=2;p;){var _=1<<31-xt(p);S.entanglements[1]|=_,p&=~_}It(u),(Oe&6)===0&&(Jo=Me()+500,Tl(0))}}break;case 31:case 13:S=xa(u,2),S!==null&&yt(S,u,2),Io(),gu(u,2)}if(u=vu(i),u===null&&au(e,t,i,ps,n),u===r)break;r=u}r!==null&&i.stopPropagation()}else au(e,t,i,null,n)}}function vu(e){return e=Sr(e),bu(e)}var ps=null;function bu(e){if(ps=null,e=Ka(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ps=e,null}function wp(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(bt()){case Pi:return 2;case Df:return 8;case ao:case sv:return 32;case zf:return 268435456;default:return 32}default:return 32}}var Su=!1,ta=null,na=null,aa=null,Nl=new Map,kl=new Map,ia=[],xb="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".split(" ");function _p(e,t){switch(e){case"focusin":case"focusout":ta=null;break;case"dragenter":case"dragleave":na=null;break;case"mouseover":case"mouseout":aa=null;break;case"pointerover":case"pointerout":Nl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kl.delete(t.pointerId)}}function Ul(e,t,n,i,r,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:u,targetContainers:[r]},t!==null&&(t=Wa(t),t!==null&&Sp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function wb(e,t,n,i,r){switch(t){case"focusin":return ta=Ul(ta,e,t,n,i,r),!0;case"dragenter":return na=Ul(na,e,t,n,i,r),!0;case"mouseover":return aa=Ul(aa,e,t,n,i,r),!0;case"pointerover":var u=r.pointerId;return Nl.set(u,Ul(Nl.get(u)||null,e,t,n,i,r)),!0;case"gotpointercapture":return u=r.pointerId,kl.set(u,Ul(kl.get(u)||null,e,t,n,i,r)),!0}return!1}function Rp(e){var t=Ka(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Bf(e.priority,function(){xp(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,Bf(e.priority,function(){xp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function gs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vu(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);br=i,n.target.dispatchEvent(i),br=null}else return t=Wa(n),t!==null&&Sp(t),e.blockedOn=n,!1;t.shift()}return!0}function Cp(e,t,n){gs(e)&&n.delete(t)}function _b(){Su=!1,ta!==null&&gs(ta)&&(ta=null),na!==null&&gs(na)&&(na=null),aa!==null&&gs(aa)&&(aa=null),Nl.forEach(Cp),kl.forEach(Cp)}function ys(e,t){e.blockedOn===t&&(e.blockedOn=null,Su||(Su=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,_b)))}var vs=null;function Ep(e){vs!==e&&(vs=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){vs===e&&(vs=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(bu(i||n)===null)continue;break}var u=Wa(n);u!==null&&(e.splice(t,3),t-=3,vc(u,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function Oi(e){function t(_){return ys(_,e)}ta!==null&&ys(ta,e),na!==null&&ys(na,e),aa!==null&&ys(aa,e),Nl.forEach(t),kl.forEach(t);for(var n=0;n<ia.length;n++){var i=ia[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<ia.length&&(n=ia[0],n.blockedOn===null);)Rp(n),n.blockedOn===null&&ia.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var r=n[i],u=n[i+1],p=r[ft]||null;if(typeof u=="function")p||Ep(n);else if(p){var S=null;if(u&&u.hasAttribute("formAction")){if(r=u,p=u[ft]||null)S=p.formAction;else if(bu(r)!==null)continue}else S=p.action;typeof S=="function"?n[i+1]=S:(n.splice(i,3),i-=3),Ep(n)}}}function Tp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(p){return r=p})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function xu(e){this._internalRoot=e}bs.prototype.render=xu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,i=At();vp(n,i,e,t,null,null)},bs.prototype.unmount=xu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vp(e.current,2,null,e,null,null),Io(),t[Za]=null}};function bs(e){this._internalRoot=e}bs.prototype.unstable_scheduleHydration=function(e){if(e){var t=jf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ia.length&&t!==0&&t<ia[n].priority;n++);ia.splice(n,0,e),n===0&&Rp(e)}};var Ap=o.version;if(Ap!=="19.2.1")throw Error(s(527,Ap,"19.2.1"));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Rb={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ss.isDisabled&&Ss.supportsFiber)try{Xi=Ss.inject(Rb),St=Ss}catch{}}return Bl.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,i="",r=kh,u=Uh,p=jh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=gp(e,1,!1,null,null,n,i,null,r,u,p,Tp),e[Za]=t.current,nu(e),new xu(t)},Bl.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var i=!1,r="",u=kh,p=Uh,S=jh,_=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(_=n.formState)),t=gp(e,1,!0,t,n??null,i,r,_,u,p,S,Tp),t.context=yp(null),n=t.current,i=At(),i=fr(i),r=Yn(i),r.callback=null,Pn(n,r,i),n=i,t.current.lanes=n,Zi(t,n),It(t),e[Za]=t.current,nu(e),new bs(t)},Bl.version="19.2.1",Bl}var Bp;function Nb(){if(Bp)return _u.exports;Bp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(o){console.error(o)}}return a(),_u.exports=Lb(),_u.exports}var kb=Nb();const Ub=lf(kb),Ku=new WeakMap,jb=new WeakMap,Ns={current:[]};let Au=!1,Pl=0;const Yl=new Set,xs=new Map;function Ng(a){for(const o of a){if(Ns.current.includes(o))continue;Ns.current.push(o),o.recompute();const l=jb.get(o);if(l)for(const s of l){const c=Ku.get(s);c?.length&&Ng(c)}}}function Bb(a){const o={prevVal:a.prevState,currentVal:a.state};for(const l of a.listeners)l(o)}function Hb(a){const o={prevVal:a.prevState,currentVal:a.state};for(const l of a.listeners)l(o)}function kg(a){if(Pl>0&&!xs.has(a)&&xs.set(a,a.prevState),Yl.add(a),!(Pl>0)&&!Au)try{for(Au=!0;Yl.size>0;){const o=Array.from(Yl);Yl.clear();for(const l of o){const s=xs.get(l)??l.prevState;l.prevState=s,Bb(l)}for(const l of o){const s=Ku.get(l);s&&(Ns.current.push(l),Ng(s))}for(const l of o){const s=Ku.get(l);if(s)for(const c of s)Hb(c)}}}finally{Au=!1,Ns.current=[],xs.clear()}}function Xl(a){Pl++;try{a()}finally{if(Pl--,Pl===0){const o=Yl.values().next().value;o&&kg(o)}}}function qb(a){return typeof a=="function"}class Vb{constructor(o,l){this.listeners=new Set,this.subscribe=s=>{var c,f;this.listeners.add(s);const d=(f=(c=this.options)==null?void 0:c.onSubscribe)==null?void 0:f.call(c,s,this);return()=>{this.listeners.delete(s),d?.()}},this.prevState=o,this.state=o,this.options=l}setState(o){var l,s,c;this.prevState=this.state,(l=this.options)!=null&&l.updateFn?this.state=this.options.updateFn(this.prevState)(o):qb(o)?this.state=o(this.prevState):this.state=o,(c=(s=this.options)==null?void 0:s.onUpdate)==null||c.call(s),kg(this)}}const ca="__TSR_index",Hp="popstate",qp="beforeunload";function Gb(a){let o=a.getLocation();const l=new Set,s=d=>{o=a.getLocation(),l.forEach(g=>g({location:o,action:d}))},c=d=>{a.notifyOnIndexChange??!0?s(d):o=a.getLocation()},f=async({task:d,navigateOpts:g,...h})=>{if(g?.ignoreBlocker??!1){d();return}const v=a.getBlockers?.()??[],y=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&v.length&&y)for(const b of v){const x=ks(h.path,h.state);if(await b.blockerFn({currentLocation:o,nextLocation:x,action:h.type})){a.onBlocked?.();return}}d()};return{get location(){return o},get length(){return a.getLength()},subscribers:l,subscribe:d=>(l.add(d),()=>{l.delete(d)}),push:(d,g,h)=>{const m=o.state[ca];g=Vp(m+1,g),f({task:()=>{a.pushState(d,g),s({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:d,state:g})},replace:(d,g,h)=>{const m=o.state[ca];g=Vp(m,g),f({task:()=>{a.replaceState(d,g),s({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:d,state:g})},go:(d,g)=>{f({task:()=>{a.go(d),c({type:"GO",index:d})},navigateOpts:g,type:"GO"})},back:d=>{f({task:()=>{a.back(d?.ignoreBlocker??!1),c({type:"BACK"})},navigateOpts:d,type:"BACK"})},forward:d=>{f({task:()=>{a.forward(d?.ignoreBlocker??!1),c({type:"FORWARD"})},navigateOpts:d,type:"FORWARD"})},canGoBack:()=>o.state[ca]!==0,createHref:d=>a.createHref(d),block:d=>{if(!a.setBlockers)return()=>{};const g=a.getBlockers?.()??[];return a.setBlockers([...g,d]),()=>{const h=a.getBlockers?.()??[];a.setBlockers?.(h.filter(m=>m!==d))}},flush:()=>a.flush?.(),destroy:()=>a.destroy?.(),notify:s}}function Vp(a,o){o||(o={});const l=of();return{...o,key:l,__TSR_key:l,[ca]:a}}function Yb(a){const o=typeof document<"u"?window:void 0,l=o.history.pushState,s=o.history.replaceState;let c=[];const f=()=>c,d=j=>c=j,g=(j=>j),h=(()=>ks(`${o.location.pathname}${o.location.search}${o.location.hash}`,o.history.state));if(!o.history.state?.__TSR_key&&!o.history.state?.key){const j=of();o.history.replaceState({[ca]:0,key:j,__TSR_key:j},"")}let m=h(),v,y=!1,b=!1,x=!1,w=!1;const A=()=>m;let T,M;const H=()=>{T&&(L._ignoreSubscribers=!0,(T.isPush?o.history.pushState:o.history.replaceState)(T.state,"",T.href),L._ignoreSubscribers=!1,T=void 0,M=void 0,v=void 0)},B=(j,J,I)=>{const ee=g(J);M||(v=m),m=ks(J,I),T={href:ee,state:I,isPush:T?.isPush||j==="push"},M||(M=Promise.resolve().then(()=>H()))},P=j=>{m=h(),L.notify({type:j})},Z=async()=>{if(b){b=!1;return}const j=h(),J=j.state[ca]-m.state[ca],I=J===1,ee=J===-1,ce=!I&&!ee||y;y=!1;const he=ce?"GO":ee?"BACK":"FORWARD",de=ce?{type:"GO",index:J}:{type:ee?"BACK":"FORWARD"};if(x)x=!1;else{const me=f();if(typeof document<"u"&&me.length){for(const D of me)if(await D.blockerFn({currentLocation:m,nextLocation:j,action:he})){b=!0,o.history.go(1),L.notify(de);return}}}m=h(),L.notify(de)},V=j=>{if(w){w=!1;return}let J=!1;const I=f();if(typeof document<"u"&&I.length)for(const ee of I){const ce=ee.enableBeforeUnload??!0;if(ce===!0){J=!0;break}if(typeof ce=="function"&&ce()===!0){J=!0;break}}if(J)return j.preventDefault(),j.returnValue=""},L=Gb({getLocation:A,getLength:()=>o.history.length,pushState:(j,J)=>B("push",j,J),replaceState:(j,J)=>B("replace",j,J),back:j=>(j&&(x=!0),w=!0,o.history.back()),forward:j=>{j&&(x=!0),w=!0,o.history.forward()},go:j=>{y=!0,o.history.go(j)},createHref:j=>g(j),flush:H,destroy:()=>{o.history.pushState=l,o.history.replaceState=s,o.removeEventListener(qp,V,{capture:!0}),o.removeEventListener(Hp,Z)},onBlocked:()=>{v&&m!==v&&(m=v)},getBlockers:f,setBlockers:d,notifyOnIndexChange:!1});return o.addEventListener(qp,V,{capture:!0}),o.addEventListener(Hp,Z),o.history.pushState=function(...j){const J=l.apply(o.history,j);return L._ignoreSubscribers||P("PUSH"),J},o.history.replaceState=function(...j){const J=s.apply(o.history,j);return L._ignoreSubscribers||P("REPLACE"),J},L}function ks(a,o){const l=a.indexOf("#"),s=a.indexOf("?"),c=of();return{href:a,pathname:a.substring(0,l>0?s>0?Math.min(l,s):l:s>0?s:a.length),hash:l>-1?a.substring(l):"",search:s>-1?a.slice(s,l===-1?void 0:l):"",state:o||{[ca]:0,key:c,__TSR_key:c}}}function of(){return(Math.random()+1).toString(36).substring(7)}function Us(a){return a[a.length-1]}function Pb(a){return typeof a=="function"}function sa(a,o){return Pb(a)?a(o):a}const Xb=Object.prototype.hasOwnProperty;function Gt(a,o){if(a===o)return a;const l=o,s=Pp(a)&&Pp(l);if(!s&&!(js(a)&&js(l)))return l;const c=s?a:Gp(a);if(!c)return l;const f=s?l:Gp(l);if(!f)return l;const d=c.length,g=f.length,h=s?new Array(g):{};let m=0;for(let v=0;v<g;v++){const y=s?v:f[v],b=a[y],x=l[y];if(b===x){h[y]=b,(s?v<d:Xb.call(a,y))&&m++;continue}if(b===null||x===null||typeof b!="object"||typeof x!="object"){h[y]=x;continue}const w=Gt(b,x);h[y]=w,w===b&&m++}return d===g&&m===d?a:h}function Gp(a){const o=[],l=Object.getOwnPropertyNames(a);for(const c of l){if(!Object.prototype.propertyIsEnumerable.call(a,c))return!1;o.push(c)}const s=Object.getOwnPropertySymbols(a);for(const c of s){if(!Object.prototype.propertyIsEnumerable.call(a,c))return!1;o.push(c)}return o}function js(a){if(!Yp(a))return!1;const o=a.constructor;if(typeof o>"u")return!0;const l=o.prototype;return!(!Yp(l)||!l.hasOwnProperty("isPrototypeOf"))}function Yp(a){return Object.prototype.toString.call(a)==="[object Object]"}function Pp(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Ua(a,o,l){if(a===o)return!0;if(typeof a!=typeof o)return!1;if(Array.isArray(a)&&Array.isArray(o)){if(a.length!==o.length)return!1;for(let s=0,c=a.length;s<c;s++)if(!Ua(a[s],o[s],l))return!1;return!0}if(js(a)&&js(o)){const s=l?.ignoreUndefined??!0;if(l?.partial){for(const d in o)if((!s||o[d]!==void 0)&&!Ua(a[d],o[d],l))return!1;return!0}let c=0;if(!s)c=Object.keys(a).length;else for(const d in a)a[d]!==void 0&&c++;let f=0;for(const d in o)if((!s||o[d]!==void 0)&&(f++,f>c||!Ua(a[d],o[d],l)))return!1;return c===f}return!1}function Ni(a){let o,l;const s=new Promise((c,f)=>{o=c,l=f});return s.status="pending",s.resolve=c=>{s.status="resolved",s.value=c,o(c),a?.(c)},s.reject=c=>{s.status="rejected",l(c)},s}function Qb(a){return typeof a?.message!="string"?!1:a.message.startsWith("Failed to fetch dynamically imported module")||a.message.startsWith("error loading dynamically imported module")||a.message.startsWith("Importing a module script failed")}function ua(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}function Xp(a){try{return decodeURI(a)}catch{return a.replaceAll(/%[0-9A-F]{2}/gi,o=>{try{return decodeURI(o)}catch{return o}})}}function Qp(a,o){if(!a)return a;const l=/%25|%5C/gi;let s=0,c="",f;for(;(f=l.exec(a))!==null;)c+=Xp(a.slice(s,f.index))+f[0],s=l.lastIndex;return c+Xp(s?a.slice(s):a)}var Zb="Invariant failed";function An(a,o){if(!a)throw new Error(Zb)}function Bs(a){const o=new Map;let l,s;const c=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,s&&(s.next=f,f.prev=s)):(f.next.prev=void 0,l=f.next,f.next=void 0,s&&(f.prev=s,s.next=f)),s=f)};return{get(f){const d=o.get(f);if(d)return c(d),d.value},set(f,d){if(o.size>=a&&l){const h=l;o.delete(h.key),h.next&&(l=h.next,h.next.prev=void 0),h===s&&(s=void 0)}const g=o.get(f);if(g)g.value=d,c(g);else{const h={key:f,value:d,prev:s};s&&(s.next=h),s=h,l||(l=h),o.set(f,h)}},clear(){o.clear(),l=void 0,s=void 0}}}const ki=0,Ha=1,qa=2,Zl=3,Kb=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Wb=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Fb=/^([^{]*)\{\$\}([^}]*)$/;function sf(a,o,l=new Uint16Array(6)){const s=a.indexOf("/",o),c=s===-1?a.length:s,f=a.substring(o,c);if(!f||!f.includes("$"))return l[0]=ki,l[1]=o,l[2]=o,l[3]=c,l[4]=c,l[5]=c,l;if(f==="$"){const m=a.length;return l[0]=qa,l[1]=o,l[2]=o,l[3]=m,l[4]=m,l[5]=m,l}if(f.charCodeAt(0)===36)return l[0]=Ha,l[1]=o,l[2]=o+1,l[3]=c,l[4]=c,l[5]=c,l;const d=f.match(Fb);if(d){const v=d[1].length;return l[0]=qa,l[1]=o+v,l[2]=o+v+1,l[3]=o+v+2,l[4]=o+v+3,l[5]=a.length,l}const g=f.match(Wb);if(g){const m=g[1],v=g[2],y=g[3],b=m.length;return l[0]=Zl,l[1]=o+b,l[2]=o+b+3,l[3]=o+b+3+v.length,l[4]=c-y.length,l[5]=c,l}const h=f.match(Kb);if(h){const m=h[1],v=h[2],y=h[3],b=m.length;return l[0]=Ha,l[1]=o+b,l[2]=o+b+2,l[3]=o+b+2+v.length,l[4]=c-y.length,l[5]=c,l}return l[0]=ki,l[1]=o,l[2]=o,l[3]=c,l[4]=c,l[5]=c,l}function Fs(a,o,l,s,c,f,d){d?.(l);let g=s;{const h=l.fullPath??l.from,m=h.length,v=l.options?.caseSensitive??a;for(;g<m;){const y=sf(h,g,o);let b;const x=g,w=y[5];switch(g=w+1,f++,y[0]){case ki:{const T=h.substring(y[2],y[3]);if(v){const M=c.static?.get(T);if(M)b=M;else{c.static??=new Map;const H=Kl(l.fullPath??l.from);H.parent=c,H.depth=f,b=H,c.static.set(T,H)}}else{const M=T.toLowerCase(),H=c.staticInsensitive?.get(M);if(H)b=H;else{c.staticInsensitive??=new Map;const B=Kl(l.fullPath??l.from);B.parent=c,B.depth=f,b=B,c.staticInsensitive.set(M,B)}}break}case Ha:{const T=h.substring(x,y[1]),M=h.substring(y[4],w),H=v&&!!(T||M),B=T?H?T:T.toLowerCase():void 0,P=M?H?M:M.toLowerCase():void 0,Z=c.dynamic?.find(V=>V.caseSensitive===H&&V.prefix===B&&V.suffix===P);if(Z)b=Z;else{const V=Ou(Ha,l.fullPath??l.from,H,B,P);b=V,V.depth=f,V.parent=c,c.dynamic??=[],c.dynamic.push(V)}break}case Zl:{const T=h.substring(x,y[1]),M=h.substring(y[4],w),H=v&&!!(T||M),B=T?H?T:T.toLowerCase():void 0,P=M?H?M:M.toLowerCase():void 0,Z=c.optional?.find(V=>V.caseSensitive===H&&V.prefix===B&&V.suffix===P);if(Z)b=Z;else{const V=Ou(Zl,l.fullPath??l.from,H,B,P);b=V,V.parent=c,V.depth=f,c.optional??=[],c.optional.push(V)}break}case qa:{const T=h.substring(x,y[1]),M=h.substring(y[4],w),H=v&&!!(T||M),B=T?H?T:T.toLowerCase():void 0,P=M?H?M:M.toLowerCase():void 0,Z=Ou(qa,l.fullPath??l.from,H,B,P);b=Z,Z.parent=c,Z.depth=f,c.wildcard??=[],c.wildcard.push(Z)}}c=b}if((l.path||!l.children)&&!l.isRoot){const y=h.endsWith("/");y||(c.notFound=l),(!c.route||!c.isIndex&&y)&&(c.route=l,c.fullPath=l.fullPath??l.from),c.isIndex||=y}}if(l.children)for(const h of l.children)Fs(a,o,h,g,c,f,d)}function Mu(a,o){if(a.prefix&&o.prefix&&a.prefix!==o.prefix){if(a.prefix.startsWith(o.prefix))return-1;if(o.prefix.startsWith(a.prefix))return 1}if(a.suffix&&o.suffix&&a.suffix!==o.suffix){if(a.suffix.endsWith(o.suffix))return-1;if(o.suffix.endsWith(a.suffix))return 1}return a.prefix&&!o.prefix?-1:!a.prefix&&o.prefix?1:a.suffix&&!o.suffix?-1:!a.suffix&&o.suffix?1:a.caseSensitive&&!o.caseSensitive?-1:!a.caseSensitive&&o.caseSensitive?1:0}function ka(a){if(a.static)for(const o of a.static.values())ka(o);if(a.staticInsensitive)for(const o of a.staticInsensitive.values())ka(o);if(a.dynamic?.length){a.dynamic.sort(Mu);for(const o of a.dynamic)ka(o)}if(a.optional?.length){a.optional.sort(Mu);for(const o of a.optional)ka(o)}if(a.wildcard?.length){a.wildcard.sort(Mu);for(const o of a.wildcard)ka(o)}}function Kl(a){return{kind:ki,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,isIndex:!1,notFound:null}}function Ou(a,o,l,s,c){return{kind:a,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:o,parent:null,isIndex:!1,notFound:null,caseSensitive:l,prefix:s,suffix:c}}function Jb(a,o){const l=Kl("/"),s=new Uint16Array(6);for(const c of a)Fs(!1,s,c,1,l,0);ka(l),o.masksTree=l,o.flatCache=Bs(1e3)}function $b(a,o){a||="/";const l=o.flatCache.get(a);if(l)return l;const s=rf(a,o.masksTree);return o.flatCache.set(a,s),s}function Ib(a,o,l,s,c){a||="/",s||="/";const f=o?`case\0${a}`:a;let d=c.singleCache.get(f);if(!d){d=Kl("/");const g=new Uint16Array(6);Fs(o,g,{from:a},1,d,0),c.singleCache.set(f,d)}return rf(s,d,l)}function eS(a,o,l=!1){const s=l?a:`nofuzz\0${a}`,c=o.matchCache.get(s);if(c!==void 0)return c;a||="/";const f=rf(a,o.segmentTree,l);return f&&(f.branch=iS(f.route)),o.matchCache.set(s,f),f}function tS(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function nS(a,o=!1,l){const s=Kl(a.fullPath),c=new Uint16Array(6),f={},d={};let g=0;return Fs(o,c,a,1,s,0,m=>{if(l?.(m,g),An(!(m.id in f),`Duplicate routes found with id: ${String(m.id)}`),f[m.id]=m,g!==0&&m.path){const v=tS(m.fullPath);(!d[v]||m.fullPath.endsWith("/"))&&(d[v]=m)}g++}),ka(s),{processedTree:{segmentTree:s,singleCache:Bs(1e3),matchCache:Bs(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:d}}function rf(a,o,l=!1){const s=a.split("/"),c=oS(a,s,o,l);if(!c)return null;const f=aS(a,s,c),d="**"in c;return d&&(f["**"]=c["**"]),{route:d?c.node.notFound??c.node.route:c.node.route,params:f}}function aS(a,o,l){const s=lS(l.node);let c=null;const f={};for(let d=0,g=0,h=0;g<s.length;d++,g++,h++){const m=s[g],v=o[d],y=h;if(v&&(h+=v.length),m.kind===Ha){c??=l.node.fullPath.split("/");const b=c[g],x=m.prefix?.length??0;if(b.charCodeAt(x)===123){const A=m.suffix?.length??0,T=b.substring(x+2,b.length-A-1),M=v.substring(x,v.length-A);f[T]=decodeURIComponent(M)}else{const A=b.substring(1);f[A]=decodeURIComponent(v)}}else if(m.kind===Zl){if(l.skipped&1<<g){d--;continue}c??=l.node.fullPath.split("/");const b=c[g],x=m.prefix?.length??0,w=m.suffix?.length??0,A=b.substring(x+3,b.length-w-1),T=m.suffix||m.prefix?v.substring(x,v.length-w):v;T&&(f[A]=decodeURIComponent(T))}else if(m.kind===qa){const b=m,x=a.substring(y+(b.prefix?.length??0),a.length-(b.suffix?.length??0)),w=decodeURIComponent(x);f["*"]=w,f._splat=w;break}}return f}function iS(a){const o=[a];for(;a.parentRoute;)a=a.parentRoute,o.push(a);return o.reverse(),o}function lS(a){const o=Array(a.depth+1);do o[a.depth]=a,a=a.parent;while(a);return o}function oS(a,o,l,s){const c=!Us(o),f=c&&a!=="/",d=o.length-(c?1:0),g=[{node:l,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let h=null,m=null,v=null;for(;g.length;){const y=g.pop();let{node:b,index:x,skipped:w,depth:A,statics:T,dynamics:M,optionals:H}=y;s&&b.notFound&&ws(m,y)&&(m=y);const B=x===d;if(B){if(b.route&&(!f||b.isIndex)&&(ws(v,y)&&(v=y),T===d&&b.isIndex))return v;if(!b.optional&&!b.wildcard)continue}const P=B?void 0:o[x];let Z;if(b.wildcard&&ws(h,y))for(const V of b.wildcard){const{prefix:L,suffix:j}=V;if(!(L&&(B||!(V.caseSensitive?P:Z??=P.toLowerCase()).startsWith(L)))){if(j){if(B)continue;const J=o.slice(x).join("/").slice(-j.length);if((V.caseSensitive?J:J.toLowerCase())!==j)continue}h={node:V,index:x,skipped:w,depth:A,statics:T,dynamics:M,optionals:H};break}}if(b.optional){const V=w|1<<A,L=A+1;for(let j=b.optional.length-1;j>=0;j--){const J=b.optional[j];g.push({node:J,index:x,skipped:V,depth:L,statics:T,dynamics:M,optionals:H})}if(!B)for(let j=b.optional.length-1;j>=0;j--){const J=b.optional[j],{prefix:I,suffix:ee}=J;if(I||ee){const ce=J.caseSensitive?P:Z??=P.toLowerCase();if(I&&!ce.startsWith(I)||ee&&!ce.endsWith(ee))continue}g.push({node:J,index:x+1,skipped:w,depth:L,statics:T,dynamics:M,optionals:H+1})}}if(!B&&b.dynamic&&P)for(let V=b.dynamic.length-1;V>=0;V--){const L=b.dynamic[V],{prefix:j,suffix:J}=L;if(j||J){const I=L.caseSensitive?P:Z??=P.toLowerCase();if(j&&!I.startsWith(j)||J&&!I.endsWith(J))continue}g.push({node:L,index:x+1,skipped:w,depth:A+1,statics:T,dynamics:M+1,optionals:H})}if(!B&&b.staticInsensitive){const V=b.staticInsensitive.get(Z??=P.toLowerCase());V&&g.push({node:V,index:x+1,skipped:w,depth:A+1,statics:T+1,dynamics:M,optionals:H})}if(!B&&b.static){const V=b.static.get(P);V&&g.push({node:V,index:x+1,skipped:w,depth:A+1,statics:T+1,dynamics:M,optionals:H})}}if(v&&h)return ws(h,v)?v:h;if(v)return v;if(h)return h;if(s&&m){let y=m.index;for(let x=0;x<m.index;x++)y+=o[x].length;const b=y===a.length?"/":a.slice(y);return{node:m.node,skipped:m.skipped,"**":decodeURIComponent(b)}}return null}function ws(a,o){return a?o.statics>a.statics||o.statics===a.statics&&(o.dynamics>a.dynamics||o.dynamics===a.dynamics&&(o.optionals>a.optionals||o.optionals===a.optionals&&(o.node.isIndex>a.node.isIndex||o.node.isIndex===a.node.isIndex&&o.depth>a.depth))):!0}function Os(a){return cf(a.filter(o=>o!==void 0).join("/"))}function cf(a){return a.replace(/\/{2,}/g,"/")}function Ug(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function ja(a){const o=a.length;return o>1&&a[o-1]==="/"?a.replace(/\/{1,}$/,""):a}function Ds(a){return ja(Ug(a))}function Hs(a,o){return a?.endsWith("/")&&a!=="/"&&a!==`${o}/`?a.slice(0,-1):a}function sS(a,o,l){return Hs(a,l)===Hs(o,l)}function rS({base:a,to:o,trailingSlash:l="never",cache:s}){const c=o.startsWith("/"),f=!c&&o===".";let d;if(s){d=c?o:f?a:a+"\0"+o;const y=s.get(d);if(y)return y}let g;if(f)g=a.split("/");else if(c)g=o.split("/");else{for(g=a.split("/");g.length>1&&Us(g)==="";)g.pop();const y=o.split("/");for(let b=0,x=y.length;b<x;b++){const w=y[b];w===""?b?b===x-1&&g.push(w):g=[w]:w===".."?g.pop():w==="."||g.push(w)}}g.length>1&&(Us(g)===""?l==="never"&&g.pop():l==="always"&&g.push(""));let h,m="";for(let y=0;y<g.length;y++){y>0&&(m+="/");const b=g[y];if(!b)continue;h=sf(b,0,h);const x=h[0];if(x===ki){m+=b;continue}const w=h[5],A=b.substring(0,h[1]),T=b.substring(h[4],w),M=b.substring(h[2],h[3]);x===Ha?m+=A||T?`${A}{$${M}}${T}`:`$${M}`:x===qa?m+=A||T?`${A}{$}${T}`:"$":m+=`${A}{-$${M}}${T}`}m=cf(m);const v=m||"/";return d&&s&&s.set(d,v),v}function Du(a,o,l){const s=o[a];return typeof s!="string"?s:a==="_splat"?encodeURI(s):cS(s,l)}function zu({path:a,params:o,decodeCharMap:l}){let s=!1;const c={};if(!a||a==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:s};if(!a.includes("$"))return{interpolatedPath:a,usedParams:c,isMissingParams:s};const f=a.length;let d=0,g,h="";for(;d<f;){const v=d;g=sf(a,v,g);const y=g[5];if(d=y+1,v===y)continue;const b=g[0];if(b===ki){h+="/"+a.substring(v,y);continue}if(b===qa){const x=o._splat;c._splat=x,c["*"]=x;const w=a.substring(v,g[1]),A=a.substring(g[4],y);if(!x){s=!0,(w||A)&&(h+="/"+w+A);continue}const T=Du("_splat",o,l);h+="/"+w+T+A;continue}if(b===Ha){const x=a.substring(g[2],g[3]);!s&&!(x in o)&&(s=!0),c[x]=o[x];const w=a.substring(v,g[1]),A=a.substring(g[4],y),T=Du(x,o,l)??"undefined";h+="/"+w+T+A;continue}if(b===Zl){const x=a.substring(g[2],g[3]),w=o[x];if(w==null)continue;c[x]=w;const A=a.substring(v,g[1]),T=a.substring(g[4],y),M=Du(x,o,l)??"";h+="/"+A+M+T;continue}}return a.endsWith("/")&&(h+="/"),{usedParams:c,interpolatedPath:h||"/",isMissingParams:s}}function cS(a,o){let l=encodeURIComponent(a);if(o)for(const[s,c]of o)l=l.replaceAll(s,c);return l}function Yt(a){return!!a?.isNotFound}function uS(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const qs="tsr-scroll-restoration-v1_3",fS=(a,o)=>{let l;return(...s)=>{l||(l=setTimeout(()=>{a(...s),l=null},o))}};function dS(){const a=uS();if(!a)return null;const o=a.getItem(qs);let l=o?JSON.parse(o):{};return{state:l,set:s=>(l=sa(s,l)||l,a.setItem(qs,JSON.stringify(l)))}}const _s=dS(),Wu=a=>a.state.__TSR_key||a.href;function hS(a){const o=[];let l;for(;l=a.parentNode;)o.push(`${a.tagName}:nth-child(${Array.prototype.indexOf.call(l.children,a)+1})`),a=l;return`${o.reverse().join(" > ")}`.toLowerCase()}let Vs=!1;function jg({storageKey:a,key:o,behavior:l,shouldScrollRestoration:s,scrollToTopSelectors:c,location:f}){let d;try{d=JSON.parse(sessionStorage.getItem(a)||"{}")}catch(m){console.error(m);return}const g=o||window.history.state?.__TSR_key,h=d[g];Vs=!0;e:{if(s&&h&&Object.keys(h).length>0){for(const y in h){const b=h[y];if(y==="window")window.scrollTo({top:b.scrollY,left:b.scrollX,behavior:l});else if(y){const x=document.querySelector(y);x&&(x.scrollLeft=b.scrollX,x.scrollTop=b.scrollY)}}break e}const m=(f??window.location).hash.split("#",2)[1];if(m){const y=window.history.state?.__hashScrollIntoViewOptions??!0;if(y){const b=document.getElementById(m);b&&b.scrollIntoView(y)}break e}const v={top:0,left:0,behavior:l};if(window.scrollTo(v),c)for(const y of c){if(y==="window")continue;const b=typeof y=="function"?y():document.querySelector(y);b&&b.scrollTo(v)}}Vs=!1}function mS(a,o){if(!_s&&!a.isServer||((a.options.scrollRestoration??!1)&&(a.isScrollRestoring=!0),a.isServer||a.isScrollRestorationSetup||!_s))return;a.isScrollRestorationSetup=!0,Vs=!1;const s=a.options.getScrollRestorationKey||Wu;window.history.scrollRestoration="manual";const c=f=>{if(Vs||!a.isScrollRestoring)return;let d="";if(f.target===document||f.target===window)d="window";else{const h=f.target.getAttribute("data-scroll-restoration-id");h?d=`[data-scroll-restoration-id="${h}"]`:d=hS(f.target)}const g=s(a.state.location);_s.set(h=>{const m=h[g]||={},v=m[d]||={};if(d==="window")v.scrollX=window.scrollX||0,v.scrollY=window.scrollY||0;else if(d){const y=document.querySelector(d);y&&(v.scrollX=y.scrollLeft||0,v.scrollY=y.scrollTop||0)}return h})};typeof document<"u"&&document.addEventListener("scroll",fS(c,100),!0),a.subscribe("onRendered",f=>{const d=s(f.toLocation);if(!a.resetNextScroll){a.resetNextScroll=!0;return}typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation})||(jg({storageKey:qs,key:d,behavior:a.options.scrollRestorationBehavior,shouldScrollRestoration:a.isScrollRestoring,scrollToTopSelectors:a.options.scrollToTopSelectors,location:a.history.location}),a.isScrollRestoring&&_s.set(g=>(g[d]||={},g)))})}function pS(a){if(typeof document<"u"&&document.querySelector){const o=a.state.location.state.__hashScrollIntoViewOptions??!0;if(o&&a.state.location.hash!==""){const l=document.getElementById(a.state.location.hash);l&&l.scrollIntoView(o)}}}function gS(a,o=String){const l=new URLSearchParams;for(const s in a){const c=a[s];c!==void 0&&l.set(s,o(c))}return l.toString()}function Lu(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function yS(a){const o=new URLSearchParams(a),l={};for(const[s,c]of o.entries()){const f=l[s];f==null?l[s]=Lu(c):Array.isArray(f)?f.push(Lu(c)):l[s]=[f,Lu(c)]}return l}const vS=SS(JSON.parse),bS=xS(JSON.stringify,JSON.parse);function SS(a){return o=>{o[0]==="?"&&(o=o.substring(1));const l=yS(o);for(const s in l){const c=l[s];if(typeof c=="string")try{l[s]=a(c)}catch{}}return l}}function xS(a,o){const l=typeof o=="function";function s(c){if(typeof c=="object"&&c!==null)try{return a(c)}catch{}else if(l&&typeof c=="string")try{return o(c),a(c)}catch{}return c}return c=>{const f=gS(c,s);return f?`?${f}`:""}}const Mt="__root__";function wS(a){if(a.statusCode=a.statusCode||a.code||307,!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const o=new Headers(a.headers);a.href&&o.get("Location")===null&&o.set("Location",a.href);const l=new Response(null,{status:a.statusCode,headers:o});if(l.options=a,a.throw)throw l;return l}function Zt(a){return a instanceof Response&&!!a.options}const zs=a=>{if(!a.rendered)return a.rendered=!0,a.onReady?.()},Js=(a,o)=>!!(a.preload&&!a.router.state.matches.some(l=>l.id===o)),Bg=(a,o)=>{const l=a.router.routesById[o.routeId??""]??a.router.routeTree;!l.options.notFoundComponent&&a.router.options?.defaultNotFoundComponent&&(l.options.notFoundComponent=a.router.options.defaultNotFoundComponent),An(l.options.notFoundComponent);const s=a.matches.find(c=>c.routeId===l.id);An(s,"Could not find match for route: "+l.id),a.updateMatch(s.id,c=>({...c,status:"notFound",error:o,isFetching:!1})),o.routerCode==="BEFORE_LOAD"&&l.parentRoute&&(o.routeId=l.parentRoute.id,Bg(a,o))},ra=(a,o,l)=>{if(!(!Zt(l)&&!Yt(l))){if(Zt(l)&&l.redirectHandled&&!l.options.reloadDocument)throw l;if(o){o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.loaderPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,o._nonReactive.loaderPromise=void 0;const s=Zt(l)?"redirected":"notFound";o._nonReactive.error=l,a.updateMatch(o.id,c=>({...c,status:s,isFetching:!1,error:l})),Yt(l)&&!l.routeId&&(l.routeId=o.routeId),o._nonReactive.loadPromise?.resolve()}throw Zt(l)?(a.rendered=!0,l.options._fromLocation=a.location,l.redirectHandled=!0,l=a.router.resolveRedirect(l),l):(Bg(a,l),l)}},Hg=(a,o)=>{const l=a.router.getMatch(o);return!!(!a.router.isServer&&l._nonReactive.dehydrated||a.router.isServer&&l.ssr===!1)},Hl=(a,o,l,s)=>{const{id:c,routeId:f}=a.matches[o],d=a.router.looseRoutesById[f];if(l instanceof Promise)throw l;l.routerCode=s,a.firstBadMatchIndex??=o,ra(a,a.router.getMatch(c),l);try{d.options.onError?.(l)}catch(g){l=g,ra(a,a.router.getMatch(c),l)}a.updateMatch(c,g=>(g._nonReactive.beforeLoadPromise?.resolve(),g._nonReactive.beforeLoadPromise=void 0,g._nonReactive.loadPromise?.resolve(),{...g,error:l,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},_S=(a,o,l,s)=>{const c=a.router.getMatch(o),f=a.matches[l-1]?.id,d=f?a.router.getMatch(f):void 0;if(a.router.isShell()){c.ssr=s.id===Mt;return}if(d?.ssr===!1){c.ssr=!1;return}const g=x=>x===!0&&d?.ssr==="data-only"?"data-only":x,h=a.router.options.defaultSsr??!0;if(s.options.ssr===void 0){c.ssr=g(h);return}if(typeof s.options.ssr!="function"){c.ssr=g(s.options.ssr);return}const{search:m,params:v}=c,y={search:Rs(m,c.searchError),params:Rs(v,c.paramsError),location:a.location,matches:a.matches.map(x=>({index:x.index,pathname:x.pathname,fullPath:x.fullPath,staticData:x.staticData,id:x.id,routeId:x.routeId,search:Rs(x.search,x.searchError),params:Rs(x.params,x.paramsError),ssr:x.ssr}))},b=s.options.ssr(y);if(ua(b))return b.then(x=>{c.ssr=g(x??h)});c.ssr=g(b??h)},qg=(a,o,l,s)=>{if(s._nonReactive.pendingTimeout!==void 0)return;const c=l.options.pendingMs??a.router.options.defaultPendingMs;if(!!(a.onReady&&!a.router.isServer&&!Js(a,o)&&(l.options.loader||l.options.beforeLoad||Yg(l))&&typeof c=="number"&&c!==1/0&&(l.options.pendingComponent??a.router.options?.defaultPendingComponent))){const d=setTimeout(()=>{zs(a)},c);s._nonReactive.pendingTimeout=d}},RS=(a,o,l)=>{const s=a.router.getMatch(o);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;qg(a,o,l,s);const c=()=>{const f=a.router.getMatch(o);f.preload&&(f.status==="redirected"||f.status==="notFound")&&ra(a,f,f.error)};return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(c):c()},CS=(a,o,l,s)=>{const c=a.router.getMatch(o),f=c._nonReactive.loadPromise;c._nonReactive.loadPromise=Ni(()=>{f?.resolve()});const{paramsError:d,searchError:g}=c;d&&Hl(a,l,d,"PARSE_PARAMS"),g&&Hl(a,l,g,"VALIDATE_SEARCH"),qg(a,o,s,c);const h=new AbortController,m=a.matches[l-1]?.id,b={...(m?a.router.getMatch(m):void 0)?.context??a.router.options.context??void 0,...c.__routeContext};let x=!1;const w=()=>{x||(x=!0,a.updateMatch(o,L=>({...L,isFetching:"beforeLoad",fetchCount:L.fetchCount+1,abortController:h,context:b})))},A=()=>{c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,a.updateMatch(o,L=>({...L,isFetching:!1}))};if(!s.options.beforeLoad){Xl(()=>{w(),A()});return}c._nonReactive.beforeLoadPromise=Ni();const{search:T,params:M,cause:H}=c,B=Js(a,o),P={search:T,abortController:h,params:M,preload:B,context:b,location:a.location,navigate:L=>a.router.navigate({...L,_fromLocation:a.location}),buildLocation:a.router.buildLocation,cause:B?"preload":H,matches:a.matches,...a.router.options.additionalContext},Z=L=>{if(L===void 0){Xl(()=>{w(),A()});return}(Zt(L)||Yt(L))&&(w(),Hl(a,l,L,"BEFORE_LOAD")),Xl(()=>{w(),a.updateMatch(o,j=>({...j,__beforeLoadContext:L,context:{...j.context,...L}})),A()})};let V;try{if(V=s.options.beforeLoad(P),ua(V))return w(),V.catch(L=>{Hl(a,l,L,"BEFORE_LOAD")}).then(Z)}catch(L){w(),Hl(a,l,L,"BEFORE_LOAD")}Z(V)},ES=(a,o)=>{const{id:l,routeId:s}=a.matches[o],c=a.router.looseRoutesById[s],f=()=>{if(a.router.isServer){const h=_S(a,l,o,c);if(ua(h))return h.then(g)}return g()},d=()=>CS(a,l,o,c),g=()=>{if(Hg(a,l))return;const h=RS(a,l,c);return ua(h)?h.then(d):d()};return f()},Ql=(a,o,l)=>{const s=a.router.getMatch(o);if(!s||!l.options.head&&!l.options.scripts&&!l.options.headers)return;const c={matches:a.matches,match:s,params:s.params,loaderData:s.loaderData};return Promise.all([l.options.head?.(c),l.options.scripts?.(c),l.options.headers?.(c)]).then(([f,d,g])=>{const h=f?.meta,m=f?.links,v=f?.scripts,y=f?.styles;return{meta:h,links:m,headScripts:v,headers:g,scripts:d,styles:y}})},Vg=(a,o,l,s)=>{const c=a.matchPromises[l-1],{params:f,loaderDeps:d,abortController:g,cause:h}=a.router.getMatch(o);let m=a.router.options.context??{};for(let y=0;y<=l;y++){const b=a.matches[y];if(!b)continue;const x=a.router.getMatch(b.id);x&&(m={...m,...x.__routeContext??{},...x.__beforeLoadContext??{}})}const v=Js(a,o);return{params:f,deps:d,preload:!!v,parentMatchPromise:c,abortController:g,context:m,location:a.location,navigate:y=>a.router.navigate({...y,_fromLocation:a.location}),cause:v?"preload":h,route:s,...a.router.options.additionalContext}},Zp=async(a,o,l,s)=>{try{const c=a.router.getMatch(o);try{(!a.router.isServer||c.ssr===!0)&&Gg(s);const f=s.options.loader?.(Vg(a,o,l,s)),d=s.options.loader&&ua(f);if(!!(d||s._lazyPromise||s._componentsPromise||s.options.head||s.options.scripts||s.options.headers||c._nonReactive.minPendingPromise)&&a.updateMatch(o,y=>({...y,isFetching:"loader"})),s.options.loader){const y=d?await f:f;ra(a,a.router.getMatch(o),y),y!==void 0&&a.updateMatch(o,b=>({...b,loaderData:y}))}s._lazyPromise&&await s._lazyPromise;const h=Ql(a,o,s),m=h?await h:void 0,v=c._nonReactive.minPendingPromise;v&&await v,s._componentsPromise&&await s._componentsPromise,a.updateMatch(o,y=>({...y,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...m}))}catch(f){let d=f;const g=c._nonReactive.minPendingPromise;g&&await g,Yt(f)&&await s.options.notFoundComponent?.preload?.(),ra(a,a.router.getMatch(o),f);try{s.options.onError?.(f)}catch(v){d=v,ra(a,a.router.getMatch(o),v)}const h=Ql(a,o,s),m=h?await h:void 0;a.updateMatch(o,v=>({...v,error:d,status:"error",isFetching:!1,...m}))}}catch(c){const f=a.router.getMatch(o);if(f){const d=Ql(a,o,s);if(d){const g=await d;a.updateMatch(o,h=>({...h,...g}))}f._nonReactive.loaderPromise=void 0}ra(a,f,c)}},TS=async(a,o)=>{const{id:l,routeId:s}=a.matches[o];let c=!1,f=!1;const d=a.router.looseRoutesById[s];if(Hg(a,l)){if(a.router.isServer){const m=Ql(a,l,d);if(m){const v=await m;a.updateMatch(l,y=>({...y,...v}))}return a.router.getMatch(l)}}else{const m=a.router.getMatch(l);if(m._nonReactive.loaderPromise){if(m.status==="success"&&!a.sync&&!m.preload)return m;await m._nonReactive.loaderPromise;const v=a.router.getMatch(l),y=v._nonReactive.error||v.error;y&&ra(a,v,y)}else{const v=Date.now()-m.updatedAt,y=Js(a,l),b=y?d.options.preloadStaleTime??a.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??a.router.options.defaultStaleTime??0,x=d.options.shouldReload,w=typeof x=="function"?x(Vg(a,l,o,d)):x,A=!!y&&!a.router.state.matches.some(B=>B.id===l),T=a.router.getMatch(l);T._nonReactive.loaderPromise=Ni(),A!==T.preload&&a.updateMatch(l,B=>({...B,preload:A}));const{status:M,invalid:H}=T;if(c=M==="success"&&(H||(w??v>b)),!(y&&d.options.preload===!1))if(c&&!a.sync)f=!0,(async()=>{try{await Zp(a,l,o,d);const B=a.router.getMatch(l);B._nonReactive.loaderPromise?.resolve(),B._nonReactive.loadPromise?.resolve(),B._nonReactive.loaderPromise=void 0}catch(B){Zt(B)&&await a.router.navigate(B.options)}})();else if(M!=="success"||c&&a.sync)await Zp(a,l,o,d);else{const B=Ql(a,l,d);if(B){const P=await B;a.updateMatch(l,Z=>({...Z,...P}))}}}}const g=a.router.getMatch(l);f||(g._nonReactive.loaderPromise?.resolve(),g._nonReactive.loadPromise?.resolve()),clearTimeout(g._nonReactive.pendingTimeout),g._nonReactive.pendingTimeout=void 0,f||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const h=f?g.isFetching:!1;return h!==g.isFetching||g.invalid!==!1?(a.updateMatch(l,m=>({...m,isFetching:h,invalid:!1})),a.router.getMatch(l)):g};async function Kp(a){const o=Object.assign(a,{matchPromises:[]});!o.router.isServer&&o.router.state.matches.some(l=>l._forcePending)&&zs(o);try{for(let c=0;c<o.matches.length;c++){const f=ES(o,c);ua(f)&&await f}const l=o.firstBadMatchIndex??o.matches.length;for(let c=0;c<l;c++)o.matchPromises.push(TS(o,c));await Promise.all(o.matchPromises);const s=zs(o);ua(s)&&await s}catch(l){if(Yt(l)&&!o.preload){const s=zs(o);throw ua(s)&&await s,l}if(Zt(l))throw l}return o.matches}async function Gg(a){if(!a._lazyLoaded&&a._lazyPromise===void 0&&(a.lazyFn?a._lazyPromise=a.lazyFn().then(o=>{const{id:l,...s}=o.options;Object.assign(a.options,s),a._lazyLoaded=!0,a._lazyPromise=void 0}):a._lazyLoaded=!0),!a._componentsLoaded&&a._componentsPromise===void 0){const o=()=>{const l=[];for(const s of Pg){const c=a.options[s]?.preload;c&&l.push(c())}if(l.length)return Promise.all(l).then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0});a._componentsLoaded=!0,a._componentsPromise=void 0};a._componentsPromise=a._lazyPromise?a._lazyPromise.then(o):o()}return a._componentsPromise}function Rs(a,o){return o?{status:"error",error:o}:{status:"success",value:a}}function Yg(a){for(const o of Pg)if(a.options[o]?.preload)return!0;return!1}const Pg=["component","errorComponent","pendingComponent","notFoundComponent"];function AS(a){return{input:({url:o})=>{for(const l of a)o=Xg(l,o);return o},output:({url:o})=>{for(let l=a.length-1;l>=0;l--)o=Qg(a[l],o);return o}}}function MS(a){const o=Ds(a.basepath),l=`/${o}`,s=`${l}/`,c=a.caseSensitive?l:l.toLowerCase(),f=a.caseSensitive?s:s.toLowerCase();return{input:({url:d})=>{const g=a.caseSensitive?d.pathname:d.pathname.toLowerCase();return g===c?d.pathname="/":g.startsWith(f)&&(d.pathname=d.pathname.slice(l.length)),d},output:({url:d})=>(d.pathname=Os(["/",o,d.pathname]),d)}}function Xg(a,o){const l=a?.input?.({url:o});if(l){if(typeof l=="string")return new URL(l);if(l instanceof URL)return l}return o}function Qg(a,o){const l=a?.output?.({url:o});if(l){if(typeof l=="string")return new URL(l);if(l instanceof URL)return l}return o}function Ba(a){const o=a.resolvedLocation,l=a.location,s=o?.pathname!==l.pathname,c=o?.href!==l.href,f=o?.hash!==l.hash;return{fromLocation:o,toLocation:l,pathChanged:s,hrefChanged:c,hashChanged:f}}class OS{constructor(o){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=l=>l(),this.update=l=>{l.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const s=this.options,c=this.basepath??s?.basepath??"/",f=this.basepath===void 0,d=s?.rewrite;this.options={...s,...l},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(b=>[encodeURIComponent(b),b])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=Yb())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new Vb(zS(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(b=>!["redirected"].includes(b.status))}}}),mS(this));let g=!1;const h=this.options.basepath??"/",m=this.options.rewrite;if(f||c!==h||d!==m){this.basepath=h;const b=[];Ds(h)!==""&&b.push(MS({basepath:h})),m&&b.push(m),this.rewrite=b.length===0?void 0:b.length===1?b[0]:AS(b),this.history&&this.updateLatestLocation(),g=!0}g&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:l,routesByPath:s,processedTree:c}=nS(this.routeTree,this.options.caseSensitive,(d,g)=>{d.init({originalIndex:g})});this.options.routeMasks&&Jb(this.options.routeMasks,c),this.routesById=l,this.routesByPath=s,this.processedTree=c;const f=this.options.notFoundRoute;f&&(f.init({originalIndex:99999999999}),this.routesById[f.id]=f)},this.subscribe=(l,s)=>{const c={eventType:l,fn:s};return this.subscribers.add(c),()=>{this.subscribers.delete(c)}},this.emit=l=>{this.subscribers.forEach(s=>{s.eventType===l.type&&s.fn(l)})},this.parseLocation=(l,s)=>{const c=({href:h,state:m})=>{const v=new URL(h,this.origin),y=Xg(this.rewrite,v),b=this.options.parseSearch(y.search),x=this.options.stringifySearch(b);y.search=x;const w=y.href.replace(y.origin,""),{pathname:A,hash:T}=y;return{href:w,publicHref:h,url:y.href,pathname:Qp(A),searchStr:x,search:Gt(s?.search,b),hash:T.split("#").reverse()[0]??"",state:Gt(s?.state,m)}},f=c(l),{__tempLocation:d,__tempKey:g}=f.state;if(d&&(!g||g===this.tempLocationKey)){const h=c(d);return h.state.key=f.state.key,h.state.__TSR_key=f.state.__TSR_key,delete h.state.__tempLocation,{...h,maskedLocation:f}}return f},this.resolvePathCache=Bs(1e3),this.resolvePathWithBase=(l,s)=>rS({base:l,to:cf(s),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(l,s,c)=>typeof l=="string"?this.matchRoutesInternal({pathname:l,search:s},c):this.matchRoutesInternal(l,s),this.getMatchedRoutes=l=>LS({pathname:l,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=l=>{const s=this.getMatch(l);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const l=this.state.matches.filter(f=>f.status==="pending"),s=this.state.matches.filter(f=>f.isFetching==="loader");new Set([...this.state.pendingMatches??[],...l,...s]).forEach(f=>{this.cancelMatch(f.id)})},this.buildLocation=l=>{const s=(f={})=>{const d=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,g=this.matchRoutes(d,{_buildLocation:!0}),h=Us(g);f.from;const m=f.unsafeRelative==="path"?d.pathname:f.from??h.fullPath,v=this.resolvePathWithBase(m,"."),y=h.search,b={...h.params},x=f.to?this.resolvePathWithBase(v,`${f.to}`):this.resolvePathWithBase(v,"."),w=f.params===!1||f.params===null?{}:(f.params??!0)===!0?b:Object.assign(b,sa(f.params,b)),A=zu({path:x,params:w}).interpolatedPath,T=this.matchRoutes(A,void 0,{_buildLocation:!0}).map(I=>this.looseRoutesById[I.routeId]);if(Object.keys(w).length>0)for(const I of T){const ee=I.options.params?.stringify??I.options.stringifyParams;ee&&Object.assign(w,ee(w))}const M=l.leaveParams?x:Qp(zu({path:x,params:w,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let H=y;if(l._includeValidateSearch&&this.options.search?.strict){const I={};T.forEach(ee=>{if(ee.options.validateSearch)try{Object.assign(I,Fu(ee.options.validateSearch,{...I,...H}))}catch{}}),H=I}H=NS({search:H,dest:f,destRoutes:T,_includeValidateSearch:l._includeValidateSearch}),H=Gt(y,H);const B=this.options.stringifySearch(H),P=f.hash===!0?d.hash:f.hash?sa(f.hash,d.hash):void 0,Z=P?`#${P}`:"";let V=f.state===!0?d.state:f.state?sa(f.state,d.state):{};V=Gt(d.state,V);const L=`${M}${B}${Z}`,j=new URL(L,this.origin),J=Qg(this.rewrite,j);return{publicHref:J.pathname+J.search+J.hash,href:L,url:J.href,pathname:M,search:H,searchStr:B,state:V,hash:P??"",unmaskOnReload:f.unmaskOnReload}},c=(f={},d)=>{const g=s(f);let h=d?s(d):void 0;if(!h){const m={};if(this.options.routeMasks){const v=$b(g.pathname,this.processedTree);if(v){Object.assign(m,v.params);const{from:y,params:b,...x}=v.route,w=b===!1||b===null?{}:(b??!0)===!0?m:Object.assign(m,sa(b,m));d={from:l.from,...x,params:w},h=s(d)}}}return h&&(g.maskedLocation=h),g};return l.mask?c(l,{from:l.from,...l.mask}):c(l)},this.commitLocation=({viewTransition:l,ignoreBlocker:s,...c})=>{const f=()=>{const h=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];h.forEach(v=>{c.state[v]=this.latestLocation.state[v]});const m=Ua(c.state,this.latestLocation.state);return h.forEach(v=>{delete c.state[v]}),m},d=ja(this.latestLocation.href)===ja(c.href),g=this.commitLocationPromise;if(this.commitLocationPromise=Ni(()=>{g?.resolve()}),d&&f())this.load();else{let{maskedLocation:h,hashScrollIntoView:m,...v}=c;h&&(v={...h,state:{...h.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=m??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=l,this.history[c.replace?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:s})}return this.resetNextScroll=c.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:l,resetScroll:s,hashScrollIntoView:c,viewTransition:f,ignoreBlocker:d,href:g,...h}={})=>{if(g){const y=this.history.location.state.__TSR_index,b=ks(g,{__TSR_index:l?y:y+1});h.to=b.pathname,h.search=this.options.parseSearch(b.search),h.hash=b.hash.slice(1)}const m=this.buildLocation({...h,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const v=this.commitLocation({...m,viewTransition:f,replace:l,resetScroll:s,hashScrollIntoView:c,ignoreBlocker:d});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:l,reloadDocument:s,href:c,...f})=>{if(!s&&c)try{new URL(`${c}`),s=!0}catch{}if(s){if(c||(c=this.buildLocation({to:l,...f}).url),!f.ignoreBlocker){const g=this.history.getBlockers?.()??[];for(const h of g)if(h?.blockerFn&&await h.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return f.replace?window.location.replace(c):window.location.href=c,Promise.resolve()}return this.buildAndCommitLocation({...f,href:c,to:l,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const s=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),c=f=>{try{return encodeURI(decodeURI(f))}catch{return f}};if(Ds(c(this.latestLocation.href))!==Ds(c(s.href))){let f=s.url;throw this.origin&&f.startsWith(this.origin)&&(f=f.replace(this.origin,"")||"/"),wS({href:f})}}const l=this.matchRoutes(this.latestLocation);this.__store.setState(s=>({...s,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:l,cachedMatches:s.cachedMatches.filter(c=>!l.some(f=>f.id===c.id))}))},this.load=async l=>{let s,c,f;for(f=new Promise(g=>{this.startTransition(async()=>{try{this.beforeLoad();const h=this.latestLocation,m=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ba({resolvedLocation:m,location:h})}),this.emit({type:"onBeforeLoad",...Ba({resolvedLocation:m,location:h})}),await Kp({router:this,sync:l?.sync,matches:this.state.pendingMatches,location:h,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let v=[],y=[],b=[];Xl(()=>{this.__store.setState(x=>{const w=x.matches,A=x.pendingMatches||x.matches;return v=w.filter(T=>!A.some(M=>M.id===T.id)),y=A.filter(T=>!w.some(M=>M.id===T.id)),b=A.filter(T=>w.some(M=>M.id===T.id)),{...x,isLoading:!1,loadedAt:Date.now(),matches:A,pendingMatches:void 0,cachedMatches:[...x.cachedMatches,...v.filter(T=>T.status!=="error"&&T.status!=="notFound")]}}),this.clearExpiredCache()}),[[v,"onLeave"],[y,"onEnter"],[b,"onStay"]].forEach(([x,w])=>{x.forEach(A=>{this.looseRoutesById[A.routeId].options[w]?.(A)})})})})}})}catch(h){Zt(h)?(s=h,this.isServer||this.navigate({...s.options,replace:!0,ignoreBlocker:!0})):Yt(h)&&(c=h),this.__store.setState(m=>({...m,statusCode:s?s.status:c?404:m.matches.some(v=>v.status==="error")?500:200,redirect:s}))}this.latestLoadPromise===f&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),g()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let d;this.hasNotFoundMatch()?d=404:this.__store.state.matches.some(g=>g.status==="error")&&(d=500),d!==void 0&&this.__store.setState(g=>({...g,statusCode:d}))},this.startViewTransition=l=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let c;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,d=this.state.resolvedLocation,g=typeof s.types=="function"?s.types(Ba({resolvedLocation:d,location:f})):s.types;if(g===!1){l();return}c={update:l,types:g}}else c=l;document.startViewTransition(c)}else l()},this.updateMatch=(l,s)=>{this.startTransition(()=>{const c=this.state.pendingMatches?.some(f=>f.id===l)?"pendingMatches":this.state.matches.some(f=>f.id===l)?"matches":this.state.cachedMatches.some(f=>f.id===l)?"cachedMatches":"";c&&this.__store.setState(f=>({...f,[c]:f[c]?.map(d=>d.id===l?s(d):d)}))})},this.getMatch=l=>{const s=c=>c.id===l;return this.state.cachedMatches.find(s)??this.state.pendingMatches?.find(s)??this.state.matches.find(s)},this.invalidate=l=>{const s=c=>l?.filter?.(c)??!0?{...c,invalid:!0,...l?.forcePending||c.status==="error"||c.status==="notFound"?{status:"pending",error:void 0}:void 0}:c;return this.__store.setState(c=>({...c,matches:c.matches.map(s),cachedMatches:c.cachedMatches.map(s),pendingMatches:c.pendingMatches?.map(s)})),this.shouldViewTransition=!1,this.load({sync:l?.sync})},this.resolveRedirect=l=>{if(!l.options.href){const s=this.buildLocation(l.options);let c=s.url;this.origin&&c.startsWith(this.origin)&&(c=c.replace(this.origin,"")||"/"),l.options.href=s.href,l.headers.set("Location",c)}return l.headers.get("Location")||l.headers.set("Location",l.options.href),l},this.clearCache=l=>{const s=l?.filter;s!==void 0?this.__store.setState(c=>({...c,cachedMatches:c.cachedMatches.filter(f=>!s(f))})):this.__store.setState(c=>({...c,cachedMatches:[]}))},this.clearExpiredCache=()=>{const l=s=>{const c=this.looseRoutesById[s.routeId];if(!c.options.loader)return!0;const f=(s.preload?c.options.preloadGcTime??this.options.defaultPreloadGcTime:c.options.gcTime??this.options.defaultGcTime)??300*1e3;return s.status==="error"?!0:Date.now()-s.updatedAt>=f};this.clearCache({filter:l})},this.loadRouteChunk=Gg,this.preloadRoute=async l=>{const s=this.buildLocation(l);let c=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:l});const f=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(g=>g.id)),d=new Set([...f,...this.state.cachedMatches.map(g=>g.id)]);Xl(()=>{c.forEach(g=>{d.has(g.id)||this.__store.setState(h=>({...h,cachedMatches:[...h.cachedMatches,g]}))})});try{return c=await Kp({router:this,matches:c,location:s,preload:!0,updateMatch:(g,h)=>{f.has(g)?c=c.map(m=>m.id===g?h(m):m):this.updateMatch(g,h)}}),c}catch(g){if(Zt(g))return g.options.reloadDocument?void 0:await this.preloadRoute({...g.options,_fromLocation:s});Yt(g)||console.error(g);return}},this.matchRoute=(l,s)=>{const c={...l,to:l.to?this.resolvePathWithBase(l.from||"",l.to):void 0,params:l.params||{},leaveParams:!0},f=this.buildLocation(c);if(s?.pending&&this.state.status!=="pending")return!1;const g=(s?.pending===void 0?!this.state.isLoading:s.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,h=Ib(f.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,g.pathname,this.processedTree);return!h||l.params&&!Ua(h.params,l.params,{partial:!0})?!1:s?.includeSearch??!0?Ua(g.search,f.search,{partial:!0})?h.params:!1:h.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(l=>l.status==="notFound"||l.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...o,caseSensitive:o.caseSensitive??!1,notFoundMode:o.notFoundMode??"fuzzy",stringifySearch:o.stringifySearch??bS,parseSearch:o.parseSearch??vS}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(o,l){const s=this.getMatchedRoutes(o.pathname),{foundRoute:c,routeParams:f}=s;let{matchedRoutes:d}=s,g=!1;(c?c.path!=="/"&&f["**"]:ja(o.pathname))&&(this.options.notFoundRoute?d=[...d,this.options.notFoundRoute]:g=!0);const h=(()=>{if(g){if(this.options.notFoundMode!=="root")for(let y=d.length-1;y>=0;y--){const b=d[y];if(b.children)return b.id}return Mt}})(),m=[],v=y=>y?.id?y.context??this.options.context??void 0:this.options.context??void 0;return d.forEach((y,b)=>{const x=m[b-1],[w,A,T]=(()=>{const he=x?.search??o.search,de=x?._strictSearch??void 0;try{const me=Fu(y.options.validateSearch,{...he})??void 0;return[{...he,...me},{...de,...me},void 0]}catch(me){let D=me;if(me instanceof Gs||(D=new Gs(me.message,{cause:me})),l?.throwOnError)throw D;return[he,{},D]}})(),M=y.options.loaderDeps?.({search:w})??"",H=M?JSON.stringify(M):"",{interpolatedPath:B,usedParams:P}=zu({path:y.fullPath,params:f,decodeCharMap:this.pathParamsDecodeCharMap}),Z=y.id+B+H,V=this.getMatch(Z),L=this.state.matches.find(he=>he.routeId===y.id),j=V?._strictParams??P;let J;if(!V){const he=y.options.params?.parse??y.options.parseParams;if(he)try{Object.assign(j,he(j))}catch(de){if(Yt(de)||Zt(de)?J=de:J=new DS(de.message,{cause:de}),l?.throwOnError)throw J}}Object.assign(f,j);const I=L?"stay":"enter";let ee;if(V)ee={...V,cause:I,params:L?Gt(L.params,f):f,_strictParams:j,search:Gt(L?L.search:V.search,w),_strictSearch:A};else{const he=y.options.loader||y.options.beforeLoad||y.lazyFn||Yg(y)?"pending":"success";ee={id:Z,ssr:this.isServer?void 0:y.options.ssr,index:b,routeId:y.id,params:L?Gt(L.params,f):f,_strictParams:j,pathname:B,updatedAt:Date.now(),search:L?Gt(L.search,w):w,_strictSearch:A,searchError:void 0,status:he,isFetching:!1,error:void 0,paramsError:J,__routeContext:void 0,_nonReactive:{loadPromise:Ni()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:I,loaderDeps:L?Gt(L.loaderDeps,M):M,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:y.options.staticData||{},fullPath:y.fullPath}}l?.preload||(ee.globalNotFound=h===y.id),ee.searchError=T;const ce=v(x);ee.context={...ce,...ee.__routeContext,...ee.__beforeLoadContext},m.push(ee)}),m.forEach((y,b)=>{const x=this.looseRoutesById[y.routeId];if(!this.getMatch(y.id)&&l?._buildLocation!==!0){const A=m[b-1],T=v(A);if(x.options.context){const M={deps:y.loaderDeps,params:y.params,context:T??{},location:o,navigate:H=>this.navigate({...H,_fromLocation:o}),buildLocation:this.buildLocation,cause:y.cause,abortController:y.abortController,preload:!!y.preload,matches:m};y.__routeContext=x.options.context(M)??void 0}y.context={...T,...y.__routeContext,...y.__beforeLoadContext}}}),m}}class Gs extends Error{}class DS extends Error{}function zS(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Fu(a,o){if(a==null)return{};if("~standard"in a){const l=a["~standard"].validate(o);if(l instanceof Promise)throw new Gs("Async validation not supported");if(l.issues)throw new Gs(JSON.stringify(l.issues,void 0,2),{cause:l});return l.value}return"parse"in a?a.parse(o):typeof a=="function"?a(o):{}}function LS({pathname:a,routesById:o,processedTree:l}){const s={},c=ja(a);let f;const d=eS(c,l,!0);return d&&(f=d.route,Object.assign(s,d.params)),{matchedRoutes:d?.branch||[o[Mt]],routeParams:s,foundRoute:f}}function NS({search:a,dest:o,destRoutes:l,_includeValidateSearch:s}){const c=l.reduce((g,h)=>{const m=[];if("search"in h.options)h.options.search?.middlewares&&m.push(...h.options.search.middlewares);else if(h.options.preSearchFilters||h.options.postSearchFilters){const v=({search:y,next:b})=>{let x=y;"preSearchFilters"in h.options&&h.options.preSearchFilters&&(x=h.options.preSearchFilters.reduce((A,T)=>T(A),y));const w=b(x);return"postSearchFilters"in h.options&&h.options.postSearchFilters?h.options.postSearchFilters.reduce((A,T)=>T(A),w):w};m.push(v)}if(s&&h.options.validateSearch){const v=({search:y,next:b})=>{const x=b(y);try{return{...x,...Fu(h.options.validateSearch,x)??void 0}}catch{return x}};m.push(v)}return g.concat(m)},[])??[],f=({search:g})=>o.search?o.search===!0?g:sa(o.search,g):{};c.push(f);const d=(g,h)=>{if(g>=c.length)return h;const m=c[g];return m({search:h,next:y=>d(g+1,y)})};return d(0,a)}const kS="Error preloading route! ☝️";class Zg{constructor(o){if(this.init=l=>{this.originalIndex=l.originalIndex;const s=this.options,c=!s?.path&&!s?.id;this.parentRoute=this.options.getParentRoute?.(),c?this._path=Mt:this.parentRoute||An(!1);let f=c?Mt:s?.path;f&&f!=="/"&&(f=Ug(f));const d=s?.id||f;let g=c?Mt:Os([this.parentRoute.id===Mt?"":this.parentRoute.id,d]);f===Mt&&(f="/"),g!==Mt&&(g=Os(["/",g]));const h=g===Mt?"/":Os([this.parentRoute.fullPath,f]);this._path=f,this._id=g,this._fullPath=h,this._to=h},this.addChildren=l=>this._addFileChildren(l),this._addFileChildren=l=>(Array.isArray(l)&&(this.children=l),typeof l=="object"&&l!==null&&(this.children=Object.values(l)),this),this._addFileTypes=()=>this,this.updateLoader=l=>(Object.assign(this.options,l),this),this.update=l=>(Object.assign(this.options,l),this),this.lazy=l=>(this.lazyFn=l,this),this.options=o||{},this.isRoot=!o?.getParentRoute,o?.id&&o?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class US extends Zg{constructor(o){super(o)}}var R=$l();const Ui=lf(R),uf=Eb({__proto__:null,default:Ui},[R]);function ff(a){const o=a.errorComponent??$s;return k.jsx(jS,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:l,reset:s})=>l?R.createElement(o,{error:l,reset:s}):a.children})}class jS extends R.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(o){return{resetKey:o.getResetKey()}}static getDerivedStateFromError(o){return{error:o}}reset(){this.setState({error:null})}componentDidUpdate(o,l){l.error&&l.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(o,l){this.props.onCatch&&this.props.onCatch(o,l)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function $s({error:a}){const[o,l]=R.useState(!1);return k.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[k.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[k.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),k.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>l(s=>!s),children:o?"Hide Error":"Show Error"})]}),k.jsx("div",{style:{height:".25rem"}}),o?k.jsx("div",{children:k.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?k.jsx("code",{children:a.message}):null})}):null]})}function BS({children:a,fallback:o=null}){return HS()?k.jsx(Ui.Fragment,{children:a}):k.jsx(Ui.Fragment,{children:o})}function HS(){return Ui.useSyncExternalStore(qS,()=>!0,()=>!1)}function qS(){return()=>{}}var Nu={exports:{}},ku={},Uu={exports:{}},ju={};var Wp;function VS(){if(Wp)return ju;Wp=1;var a=$l();function o(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var l=typeof Object.is=="function"?Object.is:o,s=a.useState,c=a.useEffect,f=a.useLayoutEffect,d=a.useDebugValue;function g(y,b){var x=b(),w=s({inst:{value:x,getSnapshot:b}}),A=w[0].inst,T=w[1];return f(function(){A.value=x,A.getSnapshot=b,h(A)&&T({inst:A})},[y,x,b]),c(function(){return h(A)&&T({inst:A}),y(function(){h(A)&&T({inst:A})})},[y]),d(x),x}function h(y){var b=y.getSnapshot;y=y.value;try{var x=b();return!l(y,x)}catch{return!0}}function m(y,b){return b()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:g;return ju.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:v,ju}var Fp;function GS(){return Fp||(Fp=1,Uu.exports=VS()),Uu.exports}var Jp;function YS(){if(Jp)return ku;Jp=1;var a=$l(),o=GS();function l(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var s=typeof Object.is=="function"?Object.is:l,c=o.useSyncExternalStore,f=a.useRef,d=a.useEffect,g=a.useMemo,h=a.useDebugValue;return ku.useSyncExternalStoreWithSelector=function(m,v,y,b,x){var w=f(null);if(w.current===null){var A={hasValue:!1,value:null};w.current=A}else A=w.current;w=g(function(){function M(V){if(!H){if(H=!0,B=V,V=b(V),x!==void 0&&A.hasValue){var L=A.value;if(x(L,V))return P=L}return P=V}if(L=P,s(B,V))return L;var j=b(V);return x!==void 0&&x(L,j)?(B=V,L):(B=V,P=j)}var H=!1,B,P,Z=y===void 0?null:y;return[function(){return M(v())},Z===null?void 0:function(){return M(Z())}]},[v,y,b,x]);var T=c(m,w[0],w[1]);return d(function(){A.hasValue=!0,A.value=T},[T]),h(T),T},ku}var $p;function PS(){return $p||($p=1,Nu.exports=YS()),Nu.exports}var XS=PS();function QS(a,o=s=>s,l={}){const s=l.equal??ZS;return XS.useSyncExternalStoreWithSelector(a.subscribe,()=>a.state,()=>a.state,o,s)}function ZS(a,o){if(Object.is(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;if(a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(const[s,c]of a)if(!o.has(s)||!Object.is(c,o.get(s)))return!1;return!0}if(a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(const s of a)if(!o.has(s))return!1;return!0}if(a instanceof Date&&o instanceof Date)return a.getTime()===o.getTime();const l=Ip(a);if(l.length!==Ip(o).length)return!1;for(let s=0;s<l.length;s++)if(!Object.prototype.hasOwnProperty.call(o,l[s])||!Object.is(a[l[s]],o[l[s]]))return!1;return!0}function Ip(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}const Bu=R.createContext(null);function Kg(){return typeof document>"u"?Bu:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Bu,Bu)}function vt(a){const o=R.useContext(Kg());return a?.warn,o}function ct(a){const o=vt({warn:a?.router===void 0}),l=a?.router||o,s=R.useRef(void 0);return QS(l.__store,c=>{if(a?.select){if(a.structuralSharing??l.options.defaultStructuralSharing){const f=Gt(s.current,a.select(c));return s.current=f,f}return a.select(c)}return c})}const Is=R.createContext(void 0),KS=R.createContext(void 0);function nn(a){const o=R.useContext(a.from?KS:Is);return ct({select:s=>{const c=s.matches.find(f=>a.from?a.from===f.routeId:f.id===o);if(An(!((a.shouldThrow??!0)&&!c),`Could not find ${a.from?`an active match from "${a.from}"`:"a nearest match!"}`),c!==void 0)return a.select?a.select(c):c},structuralSharing:a.structuralSharing})}function df(a){return nn({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:o=>a.select?a.select(o.loaderData):o.loaderData})}function hf(a){const{select:o,...l}=a;return nn({...l,select:s=>o?o(s.loaderDeps):s.loaderDeps})}function mf(a){return nn({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:o=>{const l=a.strict===!1?o.params:o._strictParams;return a.select?a.select(l):l}})}function pf(a){return nn({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:o=>a.select?a.select(o.search):o.search})}const Cs=typeof window<"u"?R.useLayoutEffect:R.useEffect;function Hu(a){const o=R.useRef({value:a,prev:null}),l=o.current.value;return a!==l&&(o.current={value:a,prev:l}),o.current.prev}function WS(a,o,l={},s={}){R.useEffect(()=>{if(!a.current||s.disabled||typeof IntersectionObserver!="function")return;const c=new IntersectionObserver(([f])=>{o(f)},l);return c.observe(a.current),()=>{c.disconnect()}},[o,l,s.disabled,a])}function FS(a){const o=R.useRef(null);return R.useImperativeHandle(a,()=>o.current,[]),o}function gf(a){const o=vt();return R.useCallback(l=>o.navigate({...l,from:l.from??a?.from}),[a?.from,o])}var er=Lg();const JS=lf(er);function $S(a,o){const l=vt(),[s,c]=R.useState(!1),f=R.useRef(!1),d=FS(o),{activeProps:g,inactiveProps:h,activeOptions:m,to:v,preload:y,preloadDelay:b,hashScrollIntoView:x,replace:w,startTransition:A,resetScroll:T,viewTransition:M,children:H,target:B,disabled:P,style:Z,className:V,onClick:L,onFocus:j,onMouseEnter:J,onMouseLeave:I,onTouchStart:ee,ignoreBlocker:ce,params:he,search:de,hash:me,state:D,mask:W,reloadDocument:G,unsafeRelative:fe,from:ge,_fromLocation:E,...X}=a,F=ct({select:Le=>Le.location.search,structuralSharing:!0}),$=a.from,oe=R.useMemo(()=>({...a,from:$}),[l,F,$,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),re=R.useMemo(()=>l.buildLocation({...oe}),[l,oe]),le=R.useMemo(()=>{if(P)return;let Le=re.maskedLocation?re.maskedLocation.url:re.url,Me=!1;return l.origin&&(Le.startsWith(l.origin)?Le=l.history.createHref(Le.replace(l.origin,""))||"/":Me=!0),{href:Le,external:Me}},[P,re.maskedLocation,re.url,l.origin,l.history]),Be=R.useMemo(()=>{if(le?.external)return le.href;try{return new URL(v),v}catch{}},[v,le]),Ce=a.reloadDocument||Be?!1:y??l.options.defaultPreload,ot=b??l.options.defaultPreloadDelay??0,ut=ct({select:Le=>{if(Be)return!1;if(m?.exact){if(!sS(Le.location.pathname,re.pathname,l.basepath))return!1}else{const Me=Hs(Le.location.pathname,l.basepath),bt=Hs(re.pathname,l.basepath);if(!(Me.startsWith(bt)&&(Me.length===bt.length||Me[bt.length]==="/")))return!1}return(m?.includeSearch??!0)&&!Ua(Le.location.search,re.search,{partial:!m?.exact,ignoreUndefined:!m?.explicitUndefined})?!1:m?.includeHash?Le.location.hash===re.hash:!0}}),$e=R.useCallback(()=>{l.preloadRoute({...oe}).catch(Le=>{console.warn(Le),console.warn(kS)})},[l,oe]),on=R.useCallback(Le=>{Le?.isIntersecting&&$e()},[$e]);WS(d,on,a1,{disabled:!!P||Ce!=="viewport"}),R.useEffect(()=>{f.current||!P&&Ce==="render"&&($e(),f.current=!0)},[P,$e,Ce]);const sn=Le=>{const Me=Le.currentTarget.getAttribute("target"),bt=B!==void 0?B:Me;if(!P&&!i1(Le)&&!Le.defaultPrevented&&(!bt||bt==="_self")&&Le.button===0){Le.preventDefault(),er.flushSync(()=>{c(!0)});const Pi=l.subscribe("onResolved",()=>{Pi(),c(!1)});l.navigate({...oe,replace:w,resetScroll:T,hashScrollIntoView:x,startTransition:A,viewTransition:M,ignoreBlocker:ce})}};if(Be)return{...X,ref:d,href:Be,...H&&{children:H},...B&&{target:B},...P&&{disabled:P},...Z&&{style:Z},...V&&{className:V},...L&&{onClick:L},...j&&{onFocus:j},...J&&{onMouseEnter:J},...I&&{onMouseLeave:I},...ee&&{onTouchStart:ee}};const Xa=Le=>{P||Ce&&$e()},Yi=Xa,cr=Le=>{if(!(P||!Ce))if(!ot)$e();else{const Me=Le.target;if(ql.has(Me))return;const bt=setTimeout(()=>{ql.delete(Me),$e()},ot);ql.set(Me,bt)}},to=Le=>{if(P||!Ce||!ot)return;const Me=Le.target,bt=ql.get(Me);bt&&(clearTimeout(bt),ql.delete(Me))},Ln=ut?sa(g,{})??IS:qu,Nn=ut?qu:sa(h,{})??qu,Qa=[V,Ln.className,Nn.className].filter(Boolean).join(" "),no=(Z||Ln.style||Nn.style)&&{...Z,...Ln.style,...Nn.style};return{...X,...Ln,...Nn,href:le?.href,ref:d,onClick:Vl([L,sn]),onFocus:Vl([j,Xa]),onMouseEnter:Vl([J,cr]),onMouseLeave:Vl([I,to]),onTouchStart:Vl([ee,Yi]),disabled:!!P,target:B,...no&&{style:no},...Qa&&{className:Qa},...P&&e1,...ut&&t1,...s&&n1}}const qu={},IS={className:"active"},e1={role:"link","aria-disabled":!0},t1={"data-status":"active","aria-current":"page"},n1={"data-transitioning":"transitioning"},ql=new WeakMap,a1={rootMargin:"100px"},Vl=a=>o=>{for(const l of a)if(l){if(o.defaultPrevented)return;l(o)}},Ys=R.forwardRef((a,o)=>{const{_asChild:l,...s}=a,{type:c,ref:f,...d}=$S(s,o),g=typeof s.children=="function"?s.children({isActive:d["data-status"]==="active"}):s.children;return l===void 0&&delete d.disabled,R.createElement(l||"a",{...d,ref:f},g)});function i1(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}let l1=class extends Zg{constructor(o){super(o),this.useMatch=l=>nn({select:l?.select,from:this.id,structuralSharing:l?.structuralSharing}),this.useRouteContext=l=>nn({...l,from:this.id,select:s=>l?.select?l.select(s.context):s.context}),this.useSearch=l=>pf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.id}),this.useParams=l=>mf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.id}),this.useLoaderDeps=l=>hf({...l,from:this.id}),this.useLoaderData=l=>df({...l,from:this.id}),this.useNavigate=()=>gf({from:this.fullPath}),this.Link=Ui.forwardRef((l,s)=>k.jsx(Ys,{ref:s,from:this.fullPath,...l})),this.$$typeof=Symbol.for("react.memo")}};function o1(a){return new l1(a)}class s1 extends US{constructor(o){super(o),this.useMatch=l=>nn({select:l?.select,from:this.id,structuralSharing:l?.structuralSharing}),this.useRouteContext=l=>nn({...l,from:this.id,select:s=>l?.select?l.select(s.context):s.context}),this.useSearch=l=>pf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.id}),this.useParams=l=>mf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.id}),this.useLoaderDeps=l=>hf({...l,from:this.id}),this.useLoaderData=l=>df({...l,from:this.id}),this.useNavigate=()=>gf({from:this.fullPath}),this.Link=Ui.forwardRef((l,s)=>k.jsx(Ys,{ref:s,from:this.fullPath,...l})),this.$$typeof=Symbol.for("react.memo")}}function r1(a){return new s1(a)}function Mn(a){return typeof a=="object"?new eg(a,{silent:!0}).createRoute(a):new eg(a,{silent:!0}).createRoute}class eg{constructor(o,l){this.path=o,this.createRoute=s=>{this.silent;const c=o1(s);return c.isRoot=!1,c},this.silent=l?.silent}}class tg{constructor(o){this.useMatch=l=>nn({select:l?.select,from:this.options.id,structuralSharing:l?.structuralSharing}),this.useRouteContext=l=>nn({from:this.options.id,select:s=>l?.select?l.select(s.context):s.context}),this.useSearch=l=>pf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.options.id}),this.useParams=l=>mf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.options.id}),this.useLoaderDeps=l=>hf({...l,from:this.options.id}),this.useLoaderData=l=>df({...l,from:this.options.id}),this.useNavigate=()=>{const l=vt();return gf({from:l.routesById[this.options.id].fullPath})},this.options=o,this.$$typeof=Symbol.for("react.memo")}}function ng(a){return typeof a=="object"?new tg(a):o=>new tg({id:a,...o})}function Ga(a,o){let l,s,c,f;const d=()=>(l||(l=a().then(h=>{l=void 0,s=h[o]}).catch(h=>{if(c=h,Qb(c)&&c instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const m=`tanstack_router_reload:${c.message}`;sessionStorage.getItem(m)||(sessionStorage.setItem(m,"1"),f=!0)}})),l),g=function(m){if(f)throw window.location.reload(),new Promise(()=>{});if(c)throw c;if(!s)throw d();return R.createElement(s,m)};return g.preload=d,g}function c1(){const a=vt(),o=R.useRef({router:a,mounted:!1}),[l,s]=R.useState(!1),{hasPendingMatches:c,isLoading:f}=ct({select:y=>({isLoading:y.isLoading,hasPendingMatches:y.matches.some(b=>b.status==="pending")}),structuralSharing:!0}),d=Hu(f),g=f||l||c,h=Hu(g),m=f||c,v=Hu(m);return a.startTransition=y=>{s(!0),R.startTransition(()=>{y(),s(!1)})},R.useEffect(()=>{const y=a.history.subscribe(a.load),b=a.buildLocation({to:a.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ja(a.latestLocation.href)!==ja(b.href)&&a.commitLocation({...b,replace:!0}),()=>{y()}},[a,a.history]),Cs(()=>{if(typeof window<"u"&&a.ssr||o.current.router===a&&o.current.mounted)return;o.current={router:a,mounted:!0},(async()=>{try{await a.load()}catch(b){console.error(b)}})()},[a]),Cs(()=>{d&&!f&&a.emit({type:"onLoad",...Ba(a.state)})},[d,a,f]),Cs(()=>{v&&!m&&a.emit({type:"onBeforeRouteMount",...Ba(a.state)})},[m,v,a]),Cs(()=>{if(h&&!g){const y=Ba(a.state);a.emit({type:"onResolved",...y}),a.__store.setState(b=>({...b,status:"idle",resolvedLocation:b.location})),y.hrefChanged&&pS(a)}},[g,h,a]),null}function u1(a){const o=ct({select:l=>`not-found-${l.location.pathname}-${l.status}`});return k.jsx(ff,{getResetKey:()=>o,onCatch:(l,s)=>{if(Yt(l))a.onCatch?.(l,s);else throw l},errorComponent:({error:l})=>{if(Yt(l))return a.fallback?.(l);throw l},children:a.children})}function f1(){return k.jsx("p",{children:"Not Found"})}function zi(a){return k.jsx(k.Fragment,{children:a.children})}function Wg(a,o,l){return o.options.notFoundComponent?k.jsx(o.options.notFoundComponent,{...l}):a.options.defaultNotFoundComponent?k.jsx(a.options.defaultNotFoundComponent,{...l}):k.jsx(f1,{})}function d1({children:a}){const o=vt();return o.isServer?k.jsx("script",{nonce:o.options.ssr?.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:a+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function h1(){const a=vt();if(!a.isScrollRestoring||!a.isServer||typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation}))return null;const l=(a.options.getScrollRestorationKey||Wu)(a.latestLocation),s=l!==Wu(a.latestLocation)?l:void 0,c={storageKey:qs,shouldScrollRestoration:!0};return s&&(c.key=s),k.jsx(d1,{children:`(${jg.toString()})(${JSON.stringify(c)})`})}const Fg=R.memo(function({matchId:o}){const l=vt(),s=ct({select:M=>{const H=M.matches.find(B=>B.id===o);return An(H),{routeId:H.routeId,ssr:H.ssr,_displayPending:H._displayPending}},structuralSharing:!0}),c=l.routesById[s.routeId],f=c.options.pendingComponent??l.options.defaultPendingComponent,d=f?k.jsx(f,{}):null,g=c.options.errorComponent??l.options.defaultErrorComponent,h=c.options.onCatch??l.options.defaultOnCatch,m=c.isRoot?c.options.notFoundComponent??l.options.notFoundRoute?.options.component:c.options.notFoundComponent,v=s.ssr===!1||s.ssr==="data-only",y=(!c.isRoot||c.options.wrapInSuspense||v)&&(c.options.wrapInSuspense??f??(c.options.errorComponent?.preload||v))?R.Suspense:zi,b=g?ff:zi,x=m?u1:zi,w=ct({select:M=>M.loadedAt}),A=ct({select:M=>{const H=M.matches.findIndex(B=>B.id===o);return M.matches[H-1]?.routeId}}),T=c.isRoot?c.options.shellComponent??zi:zi;return k.jsxs(T,{children:[k.jsx(Is.Provider,{value:o,children:k.jsx(y,{fallback:d,children:k.jsx(b,{getResetKey:()=>w,errorComponent:g||$s,onCatch:(M,H)=>{if(Yt(M))throw M;h?.(M,H)},children:k.jsx(x,{fallback:M=>{if(!m||M.routeId&&M.routeId!==s.routeId||!M.routeId&&!c.isRoot)throw M;return R.createElement(m,M)},children:v||s._displayPending?k.jsx(BS,{fallback:d,children:k.jsx(ag,{matchId:o})}):k.jsx(ag,{matchId:o})})})})}),A===Mt&&l.options.scrollRestoration?k.jsxs(k.Fragment,{children:[k.jsx(m1,{}),k.jsx(h1,{})]}):null]})});function m1(){const a=vt(),o=R.useRef(void 0);return k.jsx("script",{suppressHydrationWarning:!0,ref:l=>{l&&(o.current===void 0||o.current.href!==a.latestLocation.href)&&(a.emit({type:"onRendered",...Ba(a.state)}),o.current=a.latestLocation)}},a.latestLocation.state.__TSR_key)}const ag=R.memo(function({matchId:o}){const l=vt(),{match:s,key:c,routeId:f}=ct({select:h=>{const m=h.matches.find(w=>w.id===o),v=m.routeId,b=(l.routesById[v].options.remountDeps??l.options.defaultRemountDeps)?.({routeId:v,loaderDeps:m.loaderDeps,params:m._strictParams,search:m._strictSearch});return{key:b?JSON.stringify(b):void 0,routeId:v,match:{id:m.id,status:m.status,error:m.error,_forcePending:m._forcePending,_displayPending:m._displayPending}}},structuralSharing:!0}),d=l.routesById[f],g=R.useMemo(()=>{const h=d.options.component??l.options.defaultComponent;return h?k.jsx(h,{},c):k.jsx(Jg,{})},[c,d.options.component,l.options.defaultComponent]);if(s._displayPending)throw l.getMatch(s.id)?._nonReactive.displayPendingPromise;if(s._forcePending)throw l.getMatch(s.id)?._nonReactive.minPendingPromise;if(s.status==="pending"){const h=d.options.pendingMinMs??l.options.defaultPendingMinMs;if(h){const m=l.getMatch(s.id);if(m&&!m._nonReactive.minPendingPromise&&!l.isServer){const v=Ni();m._nonReactive.minPendingPromise=v,setTimeout(()=>{v.resolve(),m._nonReactive.minPendingPromise=void 0},h)}}throw l.getMatch(s.id)?._nonReactive.loadPromise}if(s.status==="notFound")return An(Yt(s.error)),Wg(l,d,s.error);if(s.status==="redirected")throw An(Zt(s.error)),l.getMatch(s.id)?._nonReactive.loadPromise;if(s.status==="error"){if(l.isServer){const h=(d.options.errorComponent??l.options.defaultErrorComponent)||$s;return k.jsx(h,{error:s.error,reset:void 0,info:{componentStack:""}})}throw s.error}return g}),Jg=R.memo(function(){const o=vt(),l=R.useContext(Is),s=ct({select:m=>m.matches.find(v=>v.id===l)?.routeId}),c=o.routesById[s],f=ct({select:m=>{const y=m.matches.find(b=>b.id===l);return An(y),y.globalNotFound}}),d=ct({select:m=>{const v=m.matches,y=v.findIndex(b=>b.id===l);return v[y+1]?.id}}),g=o.options.defaultPendingComponent?k.jsx(o.options.defaultPendingComponent,{}):null;if(f)return Wg(o,c,void 0);if(!d)return null;const h=k.jsx(Fg,{matchId:d});return s===Mt?k.jsx(R.Suspense,{fallback:g,children:h}):h});function p1(){const a=vt(),l=a.routesById[Mt].options.pendingComponent??a.options.defaultPendingComponent,s=l?k.jsx(l,{}):null,c=a.isServer||typeof document<"u"&&a.ssr?zi:R.Suspense,f=k.jsxs(c,{fallback:s,children:[!a.isServer&&k.jsx(c1,{}),k.jsx(g1,{})]});return a.options.InnerWrap?k.jsx(a.options.InnerWrap,{children:f}):f}function g1(){const a=vt(),o=ct({select:c=>c.matches[0]?.id}),l=ct({select:c=>c.loadedAt}),s=o?k.jsx(Fg,{matchId:o}):null;return k.jsx(Is.Provider,{value:o,children:a.options.disableGlobalCatchBoundary?s:k.jsx(ff,{getResetKey:()=>l,errorComponent:$s,onCatch:c=>{c.message||c.toString()},children:s})})}function y1(){const a=vt();return ct({select:o=>[o.location.href,o.resolvedLocation?.href,o.status],structuralSharing:!0}),R.useCallback(o=>{const{pending:l,caseSensitive:s,fuzzy:c,includeSearch:f,...d}=o;return a.matchRoute(d,{pending:l,caseSensitive:s,fuzzy:c,includeSearch:f})},[a])}const v1=a=>new b1(a);class b1 extends OS{constructor(o){super(o)}}typeof globalThis<"u"?(globalThis.createFileRoute=Mn,globalThis.createLazyFileRoute=ng):typeof window<"u"&&(window.createFileRoute=Mn,window.createLazyFileRoute=ng);function S1({router:a,children:o,...l}){Object.keys(l).length>0&&a.update({...a.options,...l,context:{...a.options.context,...l.context}});const s=Kg(),c=k.jsx(s.Provider,{value:a,children:o});return a.options.Wrap?k.jsx(a.options.Wrap,{children:c}):c}function x1({router:a,...o}){return k.jsx(S1,{router:a,...o,children:k.jsx(p1,{})})}const w1="modulepreload",_1=function(a){return"/"+a},ig={},Ya=function(o,l,s){let c=Promise.resolve();if(l&&l.length>0){let h=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),g=d?.nonce||d?.getAttribute("nonce");c=h(l.map(m=>{if(m=_1(m),m in ig)return;ig[m]=!0;const v=m.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${y}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":w1,v||(b.as="script"),b.crossOrigin="",b.href=m,g&&b.setAttribute("nonce",g),document.head.appendChild(b),v)return new Promise((x,w)=>{b.addEventListener("load",x),b.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(d){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=d,window.dispatchEvent(g),!g.defaultPrevented)throw d}return c.then(d=>{for(const g of d||[])g.status==="rejected"&&f(g.reason);return o().catch(f)})},R1=function(){return null},Se=(function a(o){function l(c,f,d){var g,h={};if(Array.isArray(c))return c.concat(f);for(g in c)h[d?g.toLowerCase():g]=c[g];for(g in f){var m=d?g.toLowerCase():g,v=f[g];h[m]=m in h&&typeof v=="object"?l(h[m],v,m=="headers"):v}return h}function s(c,f,d,g,h){var m=typeof c!="string"?(f=c).url:c,v={config:f},y=l(o,f),b={};g=g||y.data,(y.transformRequest||[]).map(function(x){g=x(g,y.headers)||g}),y.auth&&(b.authorization=y.auth),g&&typeof g=="object"&&typeof g.append!="function"&&typeof g.text!="function"&&(g=JSON.stringify(g),b["content-type"]="application/json");try{b[y.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp("(^|; )"+y.xsrfCookieName+"=([^;]*)"))[2])}catch{}return y.baseURL&&(m=m.replace(/^(?!.*\/\/)\/?/,y.baseURL+"/")),y.params&&(m+=(~m.indexOf("?")?"&":"?")+(y.paramsSerializer?y.paramsSerializer(y.params):new URLSearchParams(y.params))),(y.fetch||fetch)(m,{method:(d||y.method||"get").toUpperCase(),body:g,headers:l(y.headers,b,!0),credentials:y.withCredentials?"include":h}).then(function(x){for(var w in x)typeof x[w]!="function"&&(v[w]=x[w]);return y.responseType=="stream"?(v.data=x.body,v):x[y.responseType||"text"]().then(function(A){v.data=A,v.data=JSON.parse(A)}).catch(Object).then(function(){return(y.validateStatus?y.validateStatus(x.status):x.ok)?v:Promise.reject(v)})})}return o=o||{},s.request=s,s.get=function(c,f){return s(c,f,"get")},s.delete=function(c,f){return s(c,f,"delete")},s.head=function(c,f){return s(c,f,"head")},s.options=function(c,f){return s(c,f,"options")},s.post=function(c,f,d){return s(c,d,"post",f)},s.put=function(c,f,d){return s(c,d,"put",f)},s.patch=function(c,f,d){return s(c,d,"patch",f)},s.all=Promise.all.bind(Promise),s.spread=function(c){return c.apply.bind(c,c)},s.CancelToken=typeof AbortController=="function"?AbortController:Object,s.defaults=o,s.create=a,s})();function C1(a){if(a&&typeof a=="object"){const o=a;if(o.data?.detail)return o.data.detail;if(o.message)return o.message;if(o.status)return`HTTP error! status: ${o.status}`}return a instanceof Error?a.message:"Unknown error"}async function E1(){return(await Se.get("/api/devices")).data}async function T1(){return(await Se.get("/api/devices")).data.devices}async function A1(a){return(await Se.post("/api/devices/connect_wifi",a)).data}async function M1(a){return(await Se.post("/api/devices/disconnect_wifi",{device_id:a})).data}async function O1(a){return(await Se.post("/api/devices/connect_wifi_manual",a)).data}async function D1(a){return(await Se.post("/api/devices/pair_wifi",a)).data}async function z1(a){return(await Se.post("/api/devices/discover_remote",a)).data}async function L1(a){return(await Se.post("/api/devices/add_remote",a)).data}async function N1(a){return(await Se.post("/api/devices/remove_remote",{serial:a})).data}function k1(a,o,l,s,c,f,d){const g=new AbortController;return fetch("/api/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:a,device_id:o}),signal:g.signal}).then(async h=>{if(!h.ok){let x=`HTTP error! status: ${h.status}`;try{const w=await h.json();w.detail&&(x=w.detail)}catch{}throw new Error(x)}if(!h.body)throw new Error("Response body is null");const m=h.body.getReader(),v=new TextDecoder;let y="",b="message";for(;;){const{done:x,value:w}=await m.read();if(x)break;y+=v.decode(w,{stream:!0});const A=y.split(`
11
+ `);y=A.pop()||"";for(const T of A)if(T.startsWith("event: "))b=T.slice(7).trim();else if(T.startsWith("data: "))try{const M=JSON.parse(T.slice(6));b==="thinking_chunk"?(console.log("[SSE] Received thinking_chunk event:",M),l(M)):b==="step"?(console.log("[SSE] Received step event:",M),s(M)):b==="done"?(console.log("[SSE] Received done event:",M),c(M)):b==="aborted"?(console.log("[SSE] Received aborted event:",M),d&&d(M)):b==="error"&&(console.log("[SSE] Received error event:",M),f(M))}catch(M){console.error("Failed to parse SSE data:",T,M)}}}).catch(h=>{h.name==="AbortError"?d&&d({type:"aborted",role:"assistant",message:"Connection aborted by user"}):f({type:"error",role:"assistant",message:h.message})}),{close:()=>g.abort()}}async function $g(){return(await Se.get("/api/status")).data}async function U1(a){return(await Se.post("/api/reset",{device_id:a})).data}async function j1(a){return(await Se.post("/api/chat/abort",{device_id:a})).data}async function B1(a){return(await Se.post("/api/screenshot",{device_id:a??null},{})).data}async function H1(a,o,l,s,c,f,d=0){const g={start_x:Math.round(a),start_y:Math.round(o),end_x:Math.round(l),end_y:Math.round(s),duration_ms:Math.round(c),device_id:f??null,delay:Math.round(d*1e3)/1e3};try{return(await Se.post("/api/control/swipe",g)).data}catch(h){throw console.error("[API] Swipe request failed:",h),h}}async function q1(a,o,l,s=0){return(await Se.post("/api/control/touch/down",{x:Math.round(a),y:Math.round(o),device_id:l??null,delay:s})).data}async function V1(a,o,l,s=0){return(await Se.post("/api/control/touch/move",{x:Math.round(a),y:Math.round(o),device_id:l??null,delay:s})).data}async function G1(a,o,l,s=0){return(await Se.post("/api/control/touch/up",{x:Math.round(a),y:Math.round(o),device_id:l??null,delay:s})).data}async function Y1(){return(await Se.get("/api/config")).data}async function P1(a){return(await Se.post("/api/config",a)).data}async function X1(){return(await Se.post("/api/agents/reinit-all")).data}async function Ig(){return(await Se.get("/api/version/latest")).data}async function Q1(){return(await Se.get("/api/devices/discover_mdns")).data}async function Z1(a=90){return(await Se.post("/api/devices/qr_pair/generate",{timeout:a})).data}async function K1(a){return(await Se.get(`/api/devices/qr_pair/status/${a}`)).data}async function W1(a){return(await Se.delete(`/api/devices/qr_pair/${a}`)).data}async function F1(){return(await Se.get("/api/workflows")).data}async function J1(a){return(await Se.post("/api/workflows",a)).data}async function $1(a,o){return(await Se.put(`/api/workflows/${a}`,o)).data}async function I1(a){await Se.delete(`/api/workflows/${a}`)}async function ex(a){return(await Se.post("/api/layered-agent/abort",{session_id:a})).data}async function tx(a,o=50,l=0){return(await Se.get(`/api/history/${a}`,{params:{limit:o,offset:l}})).data}async function nx(a,o){await Se.delete(`/api/history/${a}/${o}`)}async function ax(a){await Se.delete(`/api/history/${a}`)}async function ix(){return(await Se.get("/api/scheduled-tasks")).data}async function lx(a){return(await Se.post("/api/scheduled-tasks",a)).data}async function ox(a,o){return(await Se.put(`/api/scheduled-tasks/${a}`,o)).data}async function sx(a){await Se.delete(`/api/scheduled-tasks/${a}`)}async function rx(a){return(await Se.post(`/api/scheduled-tasks/${a}/enable`)).data}async function cx(a){return(await Se.post(`/api/scheduled-tasks/${a}/disable`)).data}const eE=Object.freeze(Object.defineProperty({__proto__:null,abortChat:j1,abortLayeredAgentChat:ex,addRemoteDevice:L1,cancelQRPairing:W1,checkVersion:Ig,clearHistory:ax,connectWifi:A1,connectWifiManual:O1,createScheduledTask:lx,createWorkflow:J1,deleteHistoryRecord:nx,deleteScheduledTask:sx,deleteWorkflow:I1,disableScheduledTask:cx,disconnectWifi:M1,discoverMdnsDevices:Q1,discoverRemoteDevices:z1,enableScheduledTask:rx,generateQRPairing:Z1,getConfig:Y1,getDevices:T1,getErrorMessage:C1,getQRPairingStatus:K1,getScreenshot:B1,getStatus:$g,listDevices:E1,listHistory:tx,listScheduledTasks:ix,listWorkflows:F1,pairWifi:D1,reinitAllAgents:X1,removeRemoteDevice:N1,resetChat:U1,saveConfig:P1,sendMessageStream:k1,sendSwipe:H1,sendTouchDown:q1,sendTouchMove:V1,sendTouchUp:G1,updateScheduledTask:ox,updateWorkflow:$1},Symbol.toStringTag,{value:"Module"}));function lg(a,o){if(typeof a=="function")return a(o);a!=null&&(a.current=o)}function yf(...a){return o=>{let l=!1;const s=a.map(c=>{const f=lg(c,o);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<s.length;c++){const f=s[c];typeof f=="function"?f():lg(a[c],null)}}}}function Pa(...a){return R.useCallback(yf(...a),a)}var ux=Symbol.for("react.lazy"),Ps=uf[" use ".trim().toString()];function fx(a){return typeof a=="object"&&a!==null&&"then"in a}function ey(a){return a!=null&&typeof a=="object"&&"$$typeof"in a&&a.$$typeof===ux&&"_payload"in a&&fx(a._payload)}function ty(a){const o=hx(a),l=R.forwardRef((s,c)=>{let{children:f,...d}=s;ey(f)&&typeof Ps=="function"&&(f=Ps(f._payload));const g=R.Children.toArray(f),h=g.find(px);if(h){const m=h.props.children,v=g.map(y=>y===h?R.Children.count(m)>1?R.Children.only(null):R.isValidElement(m)?m.props.children:null:y);return k.jsx(o,{...d,ref:c,children:R.isValidElement(m)?R.cloneElement(m,void 0,v):null})}return k.jsx(o,{...d,ref:c,children:f})});return l.displayName=`${a}.Slot`,l}var dx=ty("Slot");function hx(a){const o=R.forwardRef((l,s)=>{let{children:c,...f}=l;if(ey(c)&&typeof Ps=="function"&&(c=Ps(c._payload)),R.isValidElement(c)){const d=yx(c),g=gx(f,c.props);return c.type!==R.Fragment&&(g.ref=s?yf(s,d):d),R.cloneElement(c,g)}return R.Children.count(c)>1?R.Children.only(null):null});return o.displayName=`${a}.SlotClone`,o}var mx=Symbol("radix.slottable");function px(a){return R.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===mx}function gx(a,o){const l={...o};for(const s in o){const c=a[s],f=o[s];/^on[A-Z]/.test(s)?c&&f?l[s]=(...g)=>{const h=f(...g);return c(...g),h}:c&&(l[s]=c):s==="style"?l[s]={...c,...f}:s==="className"&&(l[s]=[c,f].filter(Boolean).join(" "))}return{...a,...l}}function yx(a){let o=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,l=o&&"isReactWarning"in o&&o.isReactWarning;return l?a.ref:(o=Object.getOwnPropertyDescriptor(a,"ref")?.get,l=o&&"isReactWarning"in o&&o.isReactWarning,l?a.props.ref:a.props.ref||a.ref)}var vx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],bx=vx.reduce((a,o)=>{const l=ty(`Primitive.${o}`),s=R.forwardRef((c,f)=>{const{asChild:d,...g}=c,h=d?l:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(h,{...g,ref:f})});return s.displayName=`Primitive.${o}`,{...a,[o]:s}},{}),Sx="Separator",og="horizontal",xx=["horizontal","vertical"],ny=R.forwardRef((a,o)=>{const{decorative:l,orientation:s=og,...c}=a,f=wx(s)?s:og,g=l?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return k.jsx(bx.div,{"data-orientation":f,...g,...c,ref:o})});ny.displayName=Sx;function wx(a){return xx.includes(a)}var _x=ny;function ay(a){var o,l,s="";if(typeof a=="string"||typeof a=="number")s+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(o=0;o<c;o++)a[o]&&(l=ay(a[o]))&&(s&&(s+=" "),s+=l)}else for(l in a)a[l]&&(s&&(s+=" "),s+=l);return s}function iy(){for(var a,o,l=0,s="",c=arguments.length;l<c;l++)(a=arguments[l])&&(o=ay(a))&&(s&&(s+=" "),s+=o);return s}const Rx=(a,o)=>{const l=new Array(a.length+o.length);for(let s=0;s<a.length;s++)l[s]=a[s];for(let s=0;s<o.length;s++)l[a.length+s]=o[s];return l},Cx=(a,o)=>({classGroupId:a,validator:o}),ly=(a=new Map,o=null,l)=>({nextPart:a,validators:o,classGroupId:l}),Xs="-",sg=[],Ex="arbitrary..",Tx=a=>{const o=Mx(a),{conflictingClassGroups:l,conflictingClassGroupModifiers:s}=a;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return Ax(d);const g=d.split(Xs),h=g[0]===""&&g.length>1?1:0;return oy(g,h,o)},getConflictingClassGroupIds:(d,g)=>{if(g){const h=s[d],m=l[d];return h?m?Rx(m,h):h:m||sg}return l[d]||sg}}},oy=(a,o,l)=>{if(a.length-o===0)return l.classGroupId;const c=a[o],f=l.nextPart.get(c);if(f){const m=oy(a,o+1,f);if(m)return m}const d=l.validators;if(d===null)return;const g=o===0?a.join(Xs):a.slice(o).join(Xs),h=d.length;for(let m=0;m<h;m++){const v=d[m];if(v.validator(g))return v.classGroupId}},Ax=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=a.slice(1,-1),l=o.indexOf(":"),s=o.slice(0,l);return s?Ex+s:void 0})(),Mx=a=>{const{theme:o,classGroups:l}=a;return Ox(l,o)},Ox=(a,o)=>{const l=ly();for(const s in a){const c=a[s];vf(c,l,s,o)}return l},vf=(a,o,l,s)=>{const c=a.length;for(let f=0;f<c;f++){const d=a[f];Dx(d,o,l,s)}},Dx=(a,o,l,s)=>{if(typeof a=="string"){zx(a,o,l);return}if(typeof a=="function"){Lx(a,o,l,s);return}Nx(a,o,l,s)},zx=(a,o,l)=>{const s=a===""?o:sy(o,a);s.classGroupId=l},Lx=(a,o,l,s)=>{if(kx(a)){vf(a(s),o,l,s);return}o.validators===null&&(o.validators=[]),o.validators.push(Cx(l,a))},Nx=(a,o,l,s)=>{const c=Object.entries(a),f=c.length;for(let d=0;d<f;d++){const[g,h]=c[d];vf(h,sy(o,g),l,s)}},sy=(a,o)=>{let l=a;const s=o.split(Xs),c=s.length;for(let f=0;f<c;f++){const d=s[f];let g=l.nextPart.get(d);g||(g=ly(),l.nextPart.set(d,g)),l=g}return l},kx=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,Ux=a=>{if(a<1)return{get:()=>{},set:()=>{}};let o=0,l=Object.create(null),s=Object.create(null);const c=(f,d)=>{l[f]=d,o++,o>a&&(o=0,s=l,l=Object.create(null))};return{get(f){let d=l[f];if(d!==void 0)return d;if((d=s[f])!==void 0)return c(f,d),d},set(f,d){f in l?l[f]=d:c(f,d)}}},Ju="!",rg=":",jx=[],cg=(a,o,l,s,c)=>({modifiers:a,hasImportantModifier:o,baseClassName:l,maybePostfixModifierPosition:s,isExternal:c}),Bx=a=>{const{prefix:o,experimentalParseClassName:l}=a;let s=c=>{const f=[];let d=0,g=0,h=0,m;const v=c.length;for(let A=0;A<v;A++){const T=c[A];if(d===0&&g===0){if(T===rg){f.push(c.slice(h,A)),h=A+1;continue}if(T==="/"){m=A;continue}}T==="["?d++:T==="]"?d--:T==="("?g++:T===")"&&g--}const y=f.length===0?c:c.slice(h);let b=y,x=!1;y.endsWith(Ju)?(b=y.slice(0,-1),x=!0):y.startsWith(Ju)&&(b=y.slice(1),x=!0);const w=m&&m>h?m-h:void 0;return cg(f,x,b,w)};if(o){const c=o+rg,f=s;s=d=>d.startsWith(c)?f(d.slice(c.length)):cg(jx,!1,d,void 0,!0)}if(l){const c=s;s=f=>l({className:f,parseClassName:c})}return s},Hx=a=>{const o=new Map;return a.orderSensitiveModifiers.forEach((l,s)=>{o.set(l,1e6+s)}),l=>{const s=[];let c=[];for(let f=0;f<l.length;f++){const d=l[f],g=d[0]==="[",h=o.has(d);g||h?(c.length>0&&(c.sort(),s.push(...c),c=[]),s.push(d)):c.push(d)}return c.length>0&&(c.sort(),s.push(...c)),s}},qx=a=>({cache:Ux(a.cacheSize),parseClassName:Bx(a),sortModifiers:Hx(a),...Tx(a)}),Vx=/\s+/,Gx=(a,o)=>{const{parseClassName:l,getClassGroupId:s,getConflictingClassGroupIds:c,sortModifiers:f}=o,d=[],g=a.trim().split(Vx);let h="";for(let m=g.length-1;m>=0;m-=1){const v=g[m],{isExternal:y,modifiers:b,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:A}=l(v);if(y){h=v+(h.length>0?" "+h:h);continue}let T=!!A,M=s(T?w.substring(0,A):w);if(!M){if(!T){h=v+(h.length>0?" "+h:h);continue}if(M=s(w),!M){h=v+(h.length>0?" "+h:h);continue}T=!1}const H=b.length===0?"":b.length===1?b[0]:f(b).join(":"),B=x?H+Ju:H,P=B+M;if(d.indexOf(P)>-1)continue;d.push(P);const Z=c(M,T);for(let V=0;V<Z.length;++V){const L=Z[V];d.push(B+L)}h=v+(h.length>0?" "+h:h)}return h},Yx=(...a)=>{let o=0,l,s,c="";for(;o<a.length;)(l=a[o++])&&(s=ry(l))&&(c&&(c+=" "),c+=s);return c},ry=a=>{if(typeof a=="string")return a;let o,l="";for(let s=0;s<a.length;s++)a[s]&&(o=ry(a[s]))&&(l&&(l+=" "),l+=o);return l},Px=(a,...o)=>{let l,s,c,f;const d=h=>{const m=o.reduce((v,y)=>y(v),a());return l=qx(m),s=l.cache.get,c=l.cache.set,f=g,g(h)},g=h=>{const m=s(h);if(m)return m;const v=Gx(h,l);return c(h,v),v};return f=d,(...h)=>f(Yx(...h))},Xx=[],Je=a=>{const o=l=>l[a]||Xx;return o.isThemeGetter=!0,o},cy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,uy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qx=/^\d+\/\d+$/,Zx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kx=/\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$/,Wx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Di=a=>Qx.test(a),be=a=>!!a&&!Number.isNaN(Number(a)),oa=a=>!!a&&Number.isInteger(Number(a)),Vu=a=>a.endsWith("%")&&be(a.slice(0,-1)),En=a=>Zx.test(a),$x=()=>!0,Ix=a=>Kx.test(a)&&!Wx.test(a),fy=()=>!1,ew=a=>Fx.test(a),tw=a=>Jx.test(a),nw=a=>!ne(a)&&!ae(a),aw=a=>Hi(a,my,fy),ne=a=>cy.test(a),Na=a=>Hi(a,py,Ix),Gu=a=>Hi(a,rw,be),ug=a=>Hi(a,dy,fy),iw=a=>Hi(a,hy,tw),Es=a=>Hi(a,gy,ew),ae=a=>uy.test(a),Gl=a=>qi(a,py),lw=a=>qi(a,cw),fg=a=>qi(a,dy),ow=a=>qi(a,my),sw=a=>qi(a,hy),Ts=a=>qi(a,gy,!0),Hi=(a,o,l)=>{const s=cy.exec(a);return s?s[1]?o(s[1]):l(s[2]):!1},qi=(a,o,l=!1)=>{const s=uy.exec(a);return s?s[1]?o(s[1]):l:!1},dy=a=>a==="position"||a==="percentage",hy=a=>a==="image"||a==="url",my=a=>a==="length"||a==="size"||a==="bg-size",py=a=>a==="length",rw=a=>a==="number",cw=a=>a==="family-name",gy=a=>a==="shadow",uw=()=>{const a=Je("color"),o=Je("font"),l=Je("text"),s=Je("font-weight"),c=Je("tracking"),f=Je("leading"),d=Je("breakpoint"),g=Je("container"),h=Je("spacing"),m=Je("radius"),v=Je("shadow"),y=Je("inset-shadow"),b=Je("text-shadow"),x=Je("drop-shadow"),w=Je("blur"),A=Je("perspective"),T=Je("aspect"),M=Je("ease"),H=Je("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...P(),ae,ne],V=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],j=()=>[ae,ne,h],J=()=>[Di,"full","auto",...j()],I=()=>[oa,"none","subgrid",ae,ne],ee=()=>["auto",{span:["full",oa,ae,ne]},oa,ae,ne],ce=()=>[oa,"auto",ae,ne],he=()=>["auto","min","max","fr",ae,ne],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...j()],W=()=>[Di,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],G=()=>[a,ae,ne],fe=()=>[...P(),fg,ug,{position:[ae,ne]}],ge=()=>["no-repeat",{repeat:["","x","y","space","round"]}],E=()=>["auto","cover","contain",ow,aw,{size:[ae,ne]}],X=()=>[Vu,Gl,Na],F=()=>["","none","full",m,ae,ne],$=()=>["",be,Gl,Na],oe=()=>["solid","dashed","dotted","double"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[be,Vu,fg,ug],Be=()=>["","none",w,ae,ne],Ce=()=>["none",be,ae,ne],ot=()=>["none",be,ae,ne],ut=()=>[be,ae,ne],$e=()=>[Di,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[En],breakpoint:[En],color:[$x],container:[En],"drop-shadow":[En],ease:["in","out","in-out"],font:[nw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[En],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[En],shadow:[En],spacing:["px",be],text:[En],"text-shadow":[En],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Di,ne,ae,T]}],container:["container"],columns:[{columns:[be,ne,ae,g]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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:Z()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[oa,"auto",ae,ne]}],basis:[{basis:[Di,"full","auto",g,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[be,Di,"auto","initial","none",ne]}],grow:[{grow:["",be,ae,ne]}],shrink:[{shrink:["",be,ae,ne]}],order:[{order:[oa,"first","last","none",ae,ne]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[g,"screen",...W()]}],"min-w":[{"min-w":[g,"screen","none",...W()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[d]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",l,Gl,Na]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,ae,Gu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Vu,ne]}],"font-family":[{font:[lw,ne,o]}],"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:[c,ae,ne]}],"line-clamp":[{"line-clamp":[be,"none",ae,Gu]}],leading:[{leading:[f,...j()]}],"list-image":[{"list-image":["none",ae,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[be,"from-font","auto",ae,Na]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[be,"auto",ae,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,ne]}],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",ae,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:ge()}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oa,ae,ne],radial:["",ae,ne],conic:[oa,ae,ne]},sw,iw]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[be,ae,ne]}],"outline-w":[{outline:["",be,Gl,Na]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",v,Ts,Es]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",y,Ts,Es]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[be,Na]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",b,Ts,Es]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[be,ae,ne]}],"mix-blend":[{"mix-blend":[...re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":re()}],"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":[be]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[ae,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[be]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:ge()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,ne]}],filter:[{filter:["","none",ae,ne]}],blur:[{blur:Be()}],brightness:[{brightness:[be,ae,ne]}],contrast:[{contrast:[be,ae,ne]}],"drop-shadow":[{"drop-shadow":["","none",x,Ts,Es]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",be,ae,ne]}],"hue-rotate":[{"hue-rotate":[be,ae,ne]}],invert:[{invert:["",be,ae,ne]}],saturate:[{saturate:[be,ae,ne]}],sepia:[{sepia:["",be,ae,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,ne]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[be,ae,ne]}],"backdrop-contrast":[{"backdrop-contrast":[be,ae,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",be,ae,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[be,ae,ne]}],"backdrop-invert":[{"backdrop-invert":["",be,ae,ne]}],"backdrop-opacity":[{"backdrop-opacity":[be,ae,ne]}],"backdrop-saturate":[{"backdrop-saturate":[be,ae,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",be,ae,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[be,"initial",ae,ne]}],ease:[{ease:["linear","initial",M,ae,ne]}],delay:[{delay:[be,ae,ne]}],animate:[{animate:["none",H,ae,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,ae,ne]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:Ce()}],"rotate-x":[{"rotate-x":Ce()}],"rotate-y":[{"rotate-y":Ce()}],"rotate-z":[{"rotate-z":Ce()}],scale:[{scale:ot()}],"scale-x":[{"scale-x":ot()}],"scale-y":[{"scale-y":ot()}],"scale-z":[{"scale-z":ot()}],"scale-3d":["scale-3d"],skew:[{skew:ut()}],"skew-x":[{"skew-x":ut()}],"skew-y":[{"skew-y":ut()}],transform:[{transform:[ae,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$e()}],"translate-x":[{"translate-x":$e()}],"translate-y":[{"translate-y":$e()}],"translate-z":[{"translate-z":$e()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"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",ae,ne]}],"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":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",ae,ne]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[be,Gl,Na,Gu]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},fw=Px(uw);function tr(...a){return fw(iy(a))}function Yu({className:a,orientation:o="horizontal",decorative:l=!0,...s}){return k.jsx(_x,{"data-slot":"separator",decorative:l,orientation:o,className:tr("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",a),...s})}const dg=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,hg=iy,yy=(a,o)=>l=>{var s;if(o?.variants==null)return hg(a,l?.class,l?.className);const{variants:c,defaultVariants:f}=o,d=Object.keys(c).map(m=>{const v=l?.[m],y=f?.[m];if(v===null)return null;const b=dg(v)||dg(y);return c[m][b]}),g=l&&Object.entries(l).reduce((m,v)=>{let[y,b]=v;return b===void 0||(m[y]=b),m},{}),h=o==null||(s=o.compoundVariants)===null||s===void 0?void 0:s.reduce((m,v)=>{let{class:y,className:b,...x}=v;return Object.entries(x).every(w=>{let[A,T]=w;return Array.isArray(T)?T.includes({...f,...g}[A]):{...f,...g}[A]===T})?[...m,y,b]:m},[]);return hg(a,d,h,l?.class,l?.className)},dw=yy("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-[#1d9bf0] text-white dark:bg-[#1d9bf0] dark:text-white",secondary:"border-transparent bg-slate-100 text-slate-900 dark:bg-slate-800 dark:text-slate-50",destructive:"border-transparent bg-red-500 text-white dark:bg-red-900 dark:text-slate-50",outline:"text-slate-950 dark:text-slate-50",success:"border-transparent bg-green-500 text-white dark:bg-green-900 dark:text-slate-50",warning:"border-transparent bg-yellow-500 text-white dark:bg-yellow-900 dark:text-slate-50"}},defaultVariants:{variant:"default"}});function mg({className:a,variant:o,...l}){return k.jsx("div",{className:tr(dw({variant:o}),a),...l})}const hw=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mw=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,l,s)=>s?s.toUpperCase():l.toLowerCase()),pg=a=>{const o=mw(a);return o.charAt(0).toUpperCase()+o.slice(1)},vy=(...a)=>a.filter((o,l,s)=>!!o&&o.trim()!==""&&s.indexOf(o)===l).join(" ").trim(),pw=a=>{for(const o in a)if(o.startsWith("aria-")||o==="role"||o==="title")return!0};var gw={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 yw=R.forwardRef(({color:a="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:c="",children:f,iconNode:d,...g},h)=>R.createElement("svg",{ref:h,...gw,width:o,height:o,stroke:a,strokeWidth:s?Number(l)*24/Number(o):l,className:vy("lucide",c),...!f&&!pw(g)&&{"aria-hidden":"true"},...g},[...d.map(([m,v])=>R.createElement(m,v)),...Array.isArray(f)?f:[f]]));const zn=(a,o)=>{const l=R.forwardRef(({className:s,...c},f)=>R.createElement(yw,{ref:f,iconNode:o,className:vy(`lucide-${hw(pg(a))}`,`lucide-${a}`,s),...c}));return l.displayName=pg(a),l};const vw=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],bw=zn("clock",vw);const Sw=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],xw=zn("file-text",Sw);const ww=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],_w=zn("github",ww);const Rw=[["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"}]],Cw=zn("globe",Rw);const Ew=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Tw=zn("history",Ew);const Aw=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],Mw=zn("list-checks",Aw);const Ow=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Dw=zn("message-square",Ow);const zw=[["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"}]],Lw=zn("moon",zw);const Nw=[["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"}]],kw=zn("sun",Nw),Uw={common:{save:"Save",cancel:"Cancel",confirm:"Confirm",loading:"Loading...",error:"Error",success:"Success",edit:"Edit",delete:"Delete"},footer:{starOnGitHub:"Star on GitHub",newVersion:"New!",updateAvailable:"Update available: v{version}",buildVersion:"Build: v{version}",versionMismatch:"Version mismatch",versionMismatchDetail:"Frontend: v{frontend}, Backend: v{backend}"},chat:{welcomeTitle:"Welcome to AutoGLM",connectDevice:"Connect an ADB device to get started",configuration:"Configuration",configureApi:"Configure your API settings to get started",selectPreset:"Select a preset configuration",baseUrlRequired:"Base URL is required",baseUrl:"Base URL",apiKey:"API Key",modelName:"Model Name",cancel:"Cancel",saveConfig:"Save Configuration",noDevices:"No devices found",getApiKey:"Get API Key",aborted:"Chat aborted",abortFailed:"Failed to abort chat",abortChat:"Abort Chat",thinkingMode:"Thinking Mode",fastMode:"Fast",fastModeDesc:"Quick response, suitable for simple tasks",deepMode:"Deep",deepModeDesc:"Deep thinking, suitable for complex tasks",agentType:"Agent Type",selectAgentType:"Select Agent Type",history_n:"History Count",history_n_hint:"Number of historical screenshots (1-10)",maxSteps:"Max Execution Steps",maxStepsHint:"Maximum steps per task (1-1000)",visionModelTab:"Vision Model",decisionModelTab:"Decision Model",selectDecisionPreset:"Select Decision Model Preset",decisionBaseUrl:"Decision Model Base URL",decisionApiKey:"Decision Model API Key",decisionModelName:"Decision Model Name",decisionModelHint:"Decision model is used for planning in layered agent mode. You must configure the decision model when using layered agent mode."},deviceSidebar:{devices:"Devices",settings:"Settings",history:"History",addDevice:"Add Wireless Device",addDeviceTooltip:"USB cable pairing is required before first use. Pure wireless pairing is not supported yet. Please submit an issue at the project homepage if you need this feature.",connectWifi:"Connect WiFi",disconnectWifi:"Disconnect WiFi",noDevicesConnected:"No devices connected",clickToRefresh:"Click refresh to scan devices",manualConnectTitle:"Connect to WiFi Device",manualConnectDescription:"Choose connection method",ipAddress:"IP Address",port:"Port",invalidIpError:"Invalid IP address format",invalidPortError:"Port must be between 1 and 65535",directConnectTab:"Direct Connect",directConnectNote:'Note: First-time connection requires wireless pairing in the "Pair Device" tab',emulatorPreset:"Quick Connect (Emulator)",emulatorMumu:"MuMu",emulatorNox:"NoxPlayer",emulatorLdplayer:"LDPlayer",emulatorBluestacks:"BlueStacks",emulatorCustom:"Custom",emulatorNote:"Select preset above to auto-fill IP and port (for emulators), or manually enter IP and port for physical devices. Make sure ADB debugging is enabled in device settings.",pairTab:"Pair Device",pairingCode:"Pairing Code",pairingPort:"Pairing Port",connectionPort:"Connection Port",invalidPairingCodeError:"Pairing code must be 6 digits",pairingInstructions:"How to get pairing code:",pairingStep1:"1. Open Settings → Developer Options on your device",pairingStep2:'2. Enable "Wireless Debugging"',pairingStep3:'3. Tap "Pair device with pairing code"',pairingStep4:"4. Enter the IP address, pairing port, and 6-digit code shown",pairingNote:"Note: Pairing port and connection port are different. After pairing, the system will automatically connect using the connection port (default 5555).",discoveredDevices:"Discovered Devices",scanning:"Scanning...",scanAgain:"Scan Again",noDevicesFound:"No wireless devices found",noDirectDevices:"No directly connectable devices found",noPairingDevices:"No devices requiring pairing found",scanError:"Scan failed: {error}",pairingRequired:"Pairing may be required",manualConnection:"Manual Connection",orManualConnect:"Or connect manually",orManualPair:"Or pair manually",connect:"Connect",pairAndConnect:"Pair and Connect",orQrPair:"or QR Code Pairing",qrPairingTitle:"QR Code Auto Pairing:",qrStep1:"1. Open Settings → Developer Options on your device",qrStep2:'2. Enable "Wireless debugging"',qrStep3:'3. Tap "Pair device with QR code" and scan the code below',qrGenerate:"Generate Pairing QR Code",qrRegenerate:"Regenerate",qrWaitingForScan:"Waiting for QR scan...",qrPairing:"Pairing device...",qrConnected:"Paired successfully!",qrTimeout:"Timeout: No scan detected",qrError:"Pairing failed",qrGenerateError:"Failed to generate QR code",remoteTab:"Remote Device",remoteUrl:"Remote Server URL",remoteUrlHint:"e.g., http://192.168.1.100:8000",remoteDeviceId:"Device ID",remoteDeviceIdHint:"The device ID on the remote server",remoteLabel:"Display Name",remoteLabelPlaceholder:"e.g., My Remote Phone",remoteLabelHint:"Optional: Custom name for this device",connectRemote:"Connect",remoteUrlRequired:"Remote server URL is required",remoteUrlInvalid:"URL must start with http:// or https://",remoteIdRequired:"Device ID is required"},devicePanel:{noConfig:"Please configure your API settings first",configureNow:"Configure Now",connectDevice:"Please connect a device first",connectAdb:"Connect via ADB",startChat:"Start Chat",sendMessage:"Send a message...",running:"Running",waiting:"Waiting for input",readyToHelp:"Ready to help",describeTask:"Describe what you want to do on your phone",deviceNotReady:"Device is not ready",connectionError:"Connection error",screenshotError:"Screenshot error",actionError:"Action execution failed",initError:"Initialization failed",initializing:"Initialize",ready:"Ready",chatHistory:"Chat History",clearHistory:"Clear History",clearHistoryConfirm:"Are you sure you want to clear the chat history?",configureFirst:"Please configure first",initDeviceFirst:"Initialize device first",whatToDo:"What would you like to do? (Cmd+Enter to send)",stepsCompleted:"steps completed",processing:"Processing...",screenshotFailed:"Screenshot failed",loading:"Loading...",sensitiveContent:"Sensitive content",auto:"Auto",video:"Video",image:"Image",imageRefresh:"Image (0.5s refresh)",tapped:"Tapped",tapError:"Error: {error}",swiped:"Swiped",swipeError:"Swipe error: {error}",newMessages:"New messages. Click to view latest",tooltips:{workflowButton:"Quick Workflow",workflowButtonDesc:"Select and execute preset workflow tasks"}},deviceMonitor:{compact:"Compact",standard:"Standard",wide:"Wide",auto:"Auto",decreaseWidth:"Decrease width",increaseWidth:"Increase width",showWidthControls:"Show width controls",hideWidthControls:"Hide width controls"},deviceCard:{unknownDevice:"Unknown Device",connectViaWifi:"Connect via WiFi",disconnectWifi:"Disconnect WiFi",disconnectAll:"Disconnect All",deleteDevice:"Delete Device",ready:"Ready",agentIdle:"Idle",agentBusy:"Busy",agentError:"Error",agentInitializing:"Initializing",remote:"Remote",wifi:"WiFi",removeRemote:"Remove Remote Device",connectWifiTitle:"Connect via WiFi",connectWifiContent:"Switch to WiFi connection? Ensure your device and computer are on the same network.",disconnectWifiTitle:"Disconnect WiFi",disconnectWifiContent:"Are you sure you want to disconnect WiFi?",disconnectAllTitle:"Disconnect All",disconnectAllContent:"Are you sure you want to disconnect all connections? This will disconnect both USB and WiFi.",deleteDeviceTitle:"Delete Device",deleteDeviceContent:"Are you sure you want to delete this device? This will disconnect the device.",statusTooltip:{title:"Current status: ",idle:"Idle",busy:"Busy",error:"Error",initializing:"Initializing",none:"Not initialized",legend:{green:"🟢 Green - Idle, ready for tasks",yellow:"🟡 Yellow - Busy, executing task",red:"🔴 Red - Error, encountered issue",gray:"⚪ Gray - Not initialized / Initializing"}}},presetConfigs:{bigmodel:{name:"Zhipu BigModel",description:"API service provided by Zhipu AI"},modelscope:{name:"ModelScope",description:"API service provided by ModelScope community"},custom:{name:"Custom Service",description:"Self-hosted vLLM / SGLang services"}},toasts:{configSaved:"Configuration saved",wifiConnected:"WiFi connected",wifiDisconnected:"WiFi disconnected",connectionFailed:"Connection failed",disconnectFailed:"Disconnect failed",wifiConnectionError:"WiFi connection error",wifiDisconnectError:"WiFi disconnect error",wifiManualConnected:"WiFi device connected",wifiManualConnectError:"Failed to connect to WiFi device",wifiPaired:"WiFi device paired and connected",wifiPairError:"WiFi pairing failed",remoteDeviceAddError:"Failed to add remote device"},history:{title:"Task History",description:"Viewing history for {deviceName}",today:"Today",yesterday:"Yesterday",earlier:"Earlier",noHistory:"No history yet",noHistoryDescription:"Completed tasks will appear here",success:"Success",failed:"Failed",clearAll:"Clear All",clearAllConfirm:"Clear all history for this device?",deleteItem:"Delete",deleteConfirm:"Delete this history item?",step:"Step {number}",viewAction:"View action",finalResult:"Final Result"},navigation:{chat:"Chat",workflows:"Workflows",history:"History",scheduledTasks:"Scheduled Tasks",logs:"Logs"},logs:{title:"Log Files",refresh:"Refresh",openFolder:"Open Log Folder",noLogs:"No log files yet",selectLog:"Select a log file to view its content",loading:"Loading...",webVersionNotice:"You are using the Web version. The log viewer feature is only available in the desktop app.<br />Please check the backend console or server log files.",compressedFileNote:"Compressed file, please view in file manager",loadFailed:"Failed to load log list: {error}",readFailed:"Failed to read log: {error}",openFolderFailed:"Failed to open log folder: {error}"},workflows:{title:"Workflow Management",createNew:"New Workflow",create:"Create Workflow",edit:"Edit Workflow",name:"Name",text:"Task Content",namePlaceholder:"e.g., Order Milk Tea",textPlaceholder:"e.g., Go to Meituan and order a milk tea...",empty:"No workflows yet, click the button above to create",deleteConfirm:"Are you sure to delete this workflow?",quickRun:"Quick Run",selectWorkflow:"Select Workflow"},chatkit:{title:"AI Assistant",layeredAgent:"Layered Agent Mode",layeredAgentDesc:"Planner decomposes tasks into subtasks, executor handles each independently. You can see detailed tool calls.",modeLabel:"Mode:",classicMode:"Classic",layeredMode:"Layered Agent",classicModeDesc:"Vision model executes tasks directly",layeredModeDesc:"Planner decomposes tasks, executor handles subtasks independently",maiUIModeDesc:"Alibaba Cloud MAI-UI model, open-source high-performance GUI Agent"},historyPage:{title:"Conversation History",selectDevice:"Select Device",noDevices:"No devices available",noRecords:"No records yet",noRecordsDesc:"Completed tasks will appear here",clearAll:"Clear All",clearAllConfirm:"Clear all history for this device?",success:"Success",failed:"Failed",steps:"{count} steps",duration:"{time}",source:{chat:"Chat",layered:"Layered Agent",scheduled:"Scheduled Task"},loadMore:"Load More",loading:"Loading...",deleteConfirm:"Delete this record?"},scheduledTasks:{title:"Scheduled Tasks",create:"New Task",edit:"Edit Task",noTasks:"No scheduled tasks",noTasksDesc:"Create a scheduled task to automate workflows",taskName:"Task Name",taskNamePlaceholder:"e.g., Daily Check-in",workflow:"Workflow",selectWorkflow:"Select Workflow",device:"Device",selectDevice:"Select Device",cronExpression:"Cron Expression",cronPlaceholder:"0 8 * * *",cronHelp:"Format: minute hour day month weekday",presets:"Quick Presets",preset:{everyHour:"Every Hour",daily8am:"Daily 8:00 AM",daily12pm:"Daily 12:00 PM",daily6pm:"Daily 6:00 PM",weeklyMonday:"Weekly Monday 9:00 AM"},enabled:"Enabled",disabled:"Disabled",lastRun:"Last Run",nextRun:"Next Run",never:"Never",deleteConfirm:"Delete this scheduled task?",noWorkflows:"No workflows available. Please create a workflow first.",noDevicesOnline:"No devices online"}},jw={common:{save:"保存",cancel:"取消",confirm:"确认",loading:"加载中...",error:"错误",success:"成功",edit:"编辑",delete:"删除"},footer:{starOnGitHub:"在 GitHub 上Star",newVersion:"新版本!",updateAvailable:"可用更新: v{version}",buildVersion:"构建版本: v{version}",versionMismatch:"版本不匹配",versionMismatchDetail:"前端: v{frontend},后端: v{backend}"},chat:{welcomeTitle:"欢迎使用 AutoGLM",connectDevice:"连接 ADB 设备开始使用",configuration:"配置",configureApi:"配置您的 API 设置以开始使用",selectPreset:"选择预设配置",baseUrlRequired:"Base URL 为必填项",baseUrl:"Base URL",apiKey:"API Key",modelName:"模型名称",cancel:"取消",saveConfig:"保存配置",noDevices:"未找到设备",getApiKey:"获取 API Key",aborted:"对话已中止",abortFailed:"中止对话失败",abortChat:"中止对话",thinkingMode:"思考模式",fastMode:"快速",fastModeDesc:"快速响应,适合简单任务",deepMode:"深度",deepModeDesc:"深度思考,适合复杂任务",agentType:"Agent 类型",selectAgentType:"选择 Agent 类型",history_n:"历史记录数量",history_n_hint:"包含的历史截图数量(1-10)",maxSteps:"最大执行步数",maxStepsHint:"单次任务最大执行步数(1-1000)",visionModelTab:"视觉模型",decisionModelTab:"决策模型",selectDecisionPreset:"选择决策模型预设",decisionBaseUrl:"决策模型 Base URL",decisionApiKey:"决策模型 API Key",decisionModelName:"决策模型名称",decisionModelHint:"决策模型用于分层代理的规划层。使用分层代理模式时必须配置决策模型。"},deviceSidebar:{devices:"设备",settings:"设置",history:"历史记录",addDevice:"添加无线设备",addDeviceTooltip:"使用前需先通过 USB 线连接设备完成配对。纯无线配对暂不支持,如有需求请前往项目主页提 issue。",connectWifi:"连接 WiFi",disconnectWifi:"断开 WiFi",noDevicesConnected:"未连接设备",clickToRefresh:"点击刷新扫描设备",manualConnectTitle:"连接 WiFi 设备",manualConnectDescription:"选择连接方式",ipAddress:"IP 地址",port:"端口",invalidIpError:"IP 地址格式无效",invalidPortError:"端口必须在 1-65535 之间",directConnectTab:"直接连接",directConnectNote:"注意:首次连接需要先在「配对设备」选项卡中完成无线配对",emulatorPreset:"快速连接(模拟器)",emulatorMumu:"MuMu",emulatorNox:"夜神",emulatorLdplayer:"雷电",emulatorBluestacks:"BlueStacks",emulatorCustom:"自定义",emulatorNote:"选择上方预设可自动填充 IP 和端口(模拟器),或手动输入真机的 IP 和端口。请确保在设备设置中开启了 ADB 调试。",pairTab:"配对设备",pairingCode:"配对码",pairingPort:"配对端口",connectionPort:"连接端口",invalidPairingCodeError:"配对码必须是 6 位数字",pairingInstructions:"如何获取配对码:",pairingStep1:"1. 在设备上打开 设置 → 开发者选项",pairingStep2:'2. 启用"无线调试"',pairingStep3:'3. 点击"使用配对码配对设备"',pairingStep4:"4. 输入显示的 IP 地址、配对端口和 6 位配对码",pairingNote:"注意:配对端口和连接端口不同。配对成功后,系统将自动使用连接端口(默认 5555)进行连接。",discoveredDevices:"发现的设备",scanning:"扫描中...",scanAgain:"重新扫描",noDevicesFound:"未发现无线设备",noDirectDevices:"未发现可直接连接的设备",noPairingDevices:"未发现需要配对的设备",scanError:"扫描失败: {error}",pairingRequired:"可能需要配对",manualConnection:"手动连接",orManualConnect:"或手动连接",orManualPair:"或手动配对",connect:"连接",pairAndConnect:"配对并连接",orQrPair:"或使用二维码配对",qrPairingTitle:"二维码自动配对:",qrStep1:"1. 在设备上打开 设置 → 开发者选项",qrStep2:'2. 启用"无线调试"',qrStep3:'3. 点击"使用二维码配对设备"并扫描下方二维码',qrGenerate:"生成配对二维码",qrRegenerate:"重新生成",qrWaitingForScan:"等待扫描二维码...",qrPairing:"正在配对设备...",qrConnected:"配对成功!",qrTimeout:"超时:未检测到扫码",qrError:"配对失败",qrGenerateError:"生成二维码失败",remoteTab:"远程设备",remoteUrl:"远程服务器 URL",remoteUrlHint:"例如:http://192.168.1.100:8000",remoteDeviceId:"设备 ID",remoteDeviceIdHint:"远程服务器上的设备 ID",remoteLabel:"显示名称",remoteLabelPlaceholder:"例如:我的远程手机",remoteLabelHint:"可选:为此设备自定义名称",connectRemote:"连接",remoteUrlRequired:"远程服务器 URL 为必填项",remoteUrlInvalid:"URL 必须以 http:// 或 https:// 开头",remoteIdRequired:"设备 ID 为必填项"},devicePanel:{noConfig:"请先配置您的 API 设置",configureNow:"立即配置",connectDevice:"请先连接设备",connectAdb:"通过 ADB 连接",startChat:"开始对话",sendMessage:"发送消息...",running:"运行中",waiting:"等待输入",readyToHelp:"准备就绪",describeTask:"描述您想在手机上完成的任务",deviceNotReady:"设备未就绪",connectionError:"连接错误",screenshotError:"截图错误",actionError:"操作执行失败",initError:"初始化失败",initializing:"初始化",ready:"就绪",chatHistory:"聊天记录",clearHistory:"清除历史",clearHistoryConfirm:"确定要清除聊天记录吗?",configureFirst:"请先配置",initDeviceFirst:"请先初始化设备",whatToDo:"您想做什么?(Cmd+Enter 发送)",stepsCompleted:"步已完成",processing:"处理中...",screenshotFailed:"截图失败",loading:"加载中...",sensitiveContent:"敏感内容",auto:"自动",video:"视频",image:"图像",imageRefresh:"图像 (0.5秒刷新)",tapped:"已点击",tapError:"错误: {error}",swiped:"已滑动",swipeError:"滑动错误: {error}",newMessages:"有新消息,点击查看最新",tooltips:{workflowButton:"快速执行工作流",workflowButtonDesc:"选择并快速执行预设的工作流任务"}},deviceMonitor:{compact:"紧凑",standard:"标准",wide:"宽屏",auto:"自动",decreaseWidth:"减小宽度",increaseWidth:"增大宽度",showWidthControls:"显示宽度控制",hideWidthControls:"隐藏宽度控制"},deviceCard:{unknownDevice:"未知设备",connectViaWifi:"连接 WiFi",disconnectWifi:"断开 WiFi",disconnectAll:"断开所有连接",deleteDevice:"删除设备",ready:"就绪",agentIdle:"空闲",agentBusy:"运行中",agentError:"错误",agentInitializing:"初始化中",remote:"远程",wifi:"WiFi",removeRemote:"移除远程设备",connectWifiTitle:"连接 WiFi",connectWifiContent:"切换到 WiFi 连接?请确保您的设备和电脑在同一网络。",disconnectWifiTitle:"断开 WiFi",disconnectWifiContent:"确定要断开 WiFi 连接吗?",disconnectAllTitle:"断开所有连接",disconnectAllContent:"确定要断开此设备的所有连接吗?这将断开 USB 和 WiFi 连接。",deleteDeviceTitle:"删除设备",deleteDeviceContent:"确定要删除此设备吗?这将断开连接。",statusTooltip:{title:"当前状态:",idle:"空闲",busy:"忙碌",error:"错误",initializing:"初始化中",none:"未初始化",legend:{green:"🟢 绿色 - 空闲,可接收任务",yellow:"🟡 黄色 - 忙碌,正在执行任务",red:"🔴 红色 - 错误,遇到问题",gray:"⚪ 灰色 - 未初始化/初始化中"}}},presetConfigs:{bigmodel:{name:"智谱 BigModel",description:"智谱 AI 提供的 API 服务"},modelscope:{name:"ModelScope",description:"魔搭社区提供的 API 服务"},custom:{name:"自建服务",description:"vLLM / SGLang 等自建服务"}},toasts:{configSaved:"配置已保存",wifiConnected:"WiFi 已连接",wifiDisconnected:"WiFi 已断开",connectionFailed:"连接失败",disconnectFailed:"断开连接失败",wifiConnectionError:"WiFi 连接错误",wifiDisconnectError:"WiFi 断开连接错误",wifiManualConnected:"WiFi 设备已连接",wifiManualConnectError:"连接 WiFi 设备失败",wifiPaired:"WiFi 设备已配对并连接",wifiPairError:"WiFi 配对失败",remoteDeviceAddError:"添加远程设备失败"},history:{title:"任务历史",description:"查看 {deviceName} 的执行历史",today:"今天",yesterday:"昨天",earlier:"更早",noHistory:"暂无历史记录",noHistoryDescription:"完成的任务将显示在这里",success:"成功",failed:"失败",clearAll:"清空全部",clearAllConfirm:"确认清空该设备的所有历史记录?",deleteItem:"删除",deleteConfirm:"确认删除这条历史记录?",step:"第 {number} 步",viewAction:"查看动作",finalResult:"最终结果"},navigation:{chat:"对话",workflows:"Workflows",history:"历史记录",scheduledTasks:"定时任务",logs:"日志"},logs:{title:"日志文件",refresh:"刷新列表",openFolder:"打开日志目录",noLogs:"暂无日志文件",selectLog:"选择一个日志文件查看内容",loading:"加载中...",webVersionNotice:"您正在使用 Web 版本,日志查看功能仅在桌面版中可用。<br />请查看后端控制台或服务器日志文件。",compressedFileNote:"压缩文件,请在文件管理器中查看",loadFailed:"加载日志列表失败: {error}",readFailed:"读取日志失败: {error}",openFolderFailed:"打开日志目录失败: {error}"},workflows:{title:"Workflow 管理",createNew:"新建 Workflow",create:"创建 Workflow",edit:"编辑 Workflow",name:"名称",text:"任务内容",namePlaceholder:"例如:订购霸王茶姬",textPlaceholder:"例如:去美团点一杯霸王茶姬的伯牙绝弦,要去冰,加珍珠",empty:"暂无 Workflow,点击右上角创建",deleteConfirm:"确认删除此 Workflow?",quickRun:"快速执行",selectWorkflow:"选择 Workflow"},chatkit:{title:"AI 助手",layeredAgent:"分层代理模式",layeredAgentDesc:"规划层将任务分解为子任务,执行层独立完成每个子任务。你可以看到工具调用的详细过程。",modeLabel:"模式:",classicMode:"经典模式",layeredMode:"分层代理",classicModeDesc:"视觉模型直接执行任务",layeredModeDesc:"规划层分解任务,执行层独立完成子任务",maiUIModeDesc:"阿里云 MAI-UI 模型,开源高性能 GUI Agent"},historyPage:{title:"对话历史",selectDevice:"选择设备",noDevices:"没有可用设备",noRecords:"暂无记录",noRecordsDesc:"完成的任务将显示在这里",clearAll:"清空全部",clearAllConfirm:"确定清空该设备的所有历史记录?",success:"成功",failed:"失败",steps:"{count} 步",duration:"{time}",source:{chat:"对话",layered:"分层代理",scheduled:"定时任务"},loadMore:"加载更多",loading:"加载中...",deleteConfirm:"确定删除这条记录?"},scheduledTasks:{title:"定时任务",create:"新建任务",edit:"编辑任务",noTasks:"暂无定时任务",noTasksDesc:"创建定时任务来自动执行工作流",taskName:"任务名称",taskNamePlaceholder:"例如:每日签到",workflow:"工作流",selectWorkflow:"选择工作流",device:"设备",selectDevice:"选择设备",cronExpression:"Cron 表达式",cronPlaceholder:"0 8 * * *",cronHelp:"格式:分 时 日 月 周",presets:"快捷预设",preset:{everyHour:"每小时",daily8am:"每天 8:00",daily12pm:"每天 12:00",daily6pm:"每天 18:00",weeklyMonday:"每周一 9:00"},enabled:"已启用",disabled:"已禁用",lastRun:"上次执行",nextRun:"下次执行",never:"从未",deleteConfirm:"确定删除这个定时任务?",noWorkflows:"没有可用的工作流,请先创建工作流。",noDevicesOnline:"没有在线设备"}},Bw={en:Uw,zh:jw},Hw={en:"EN",zh:"中文"},by=R.createContext(void 0);function qw({children:a}){const[o,l]=R.useState("en");R.useEffect(()=>{const f=localStorage.getItem("locale");let d;f&&(f==="en"||f==="zh")?d=f:d=navigator.language.split("-")[0]==="zh"?"zh":"en",l(d)},[]);const s=f=>{l(f),localStorage.setItem("locale",f),document.documentElement.lang=f},c=R.useMemo(()=>({locale:o,setLocale:s,t:Bw[o],isRtl:!1}),[o]);return k.jsx(by.Provider,{value:c,children:a})}function Sy(){const a=R.useContext(by);if(!a)throw new Error("useI18n must be used within an I18nProvider");return a}function Vw(){const{locale:a,setLocale:o}=Sy();return{locale:a,setLocale:o,localeName:Hw[a]}}function xy(){const{t:a}=Sy();return a}var Gw=(a,o,l,s,c,f,d,g)=>{let h=document.documentElement,m=["light","dark"];function v(x){(Array.isArray(a)?a:[a]).forEach(w=>{let A=w==="class",T=A&&f?c.map(M=>f[M]||M):c;A?(h.classList.remove(...T),h.classList.add(f&&f[x]?f[x]:x)):h.setAttribute(w,x)}),y(x)}function y(x){g&&m.includes(x)&&(h.style.colorScheme=x)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)v(s);else try{let x=localStorage.getItem(o)||l,w=d&&x==="system"?b():x;v(w)}catch{}},gg=["light","dark"],wy="(prefers-color-scheme: dark)",Yw=typeof window>"u",bf=R.createContext(void 0),Pw={setTheme:a=>{},themes:[]},Xw=()=>{var a;return(a=R.useContext(bf))!=null?a:Pw},Qw=a=>R.useContext(bf)?R.createElement(R.Fragment,null,a.children):R.createElement(Kw,{...a}),Zw=["light","dark"],Kw=({forcedTheme:a,disableTransitionOnChange:o=!1,enableSystem:l=!0,enableColorScheme:s=!0,storageKey:c="theme",themes:f=Zw,defaultTheme:d=l?"system":"light",attribute:g="data-theme",value:h,children:m,nonce:v,scriptProps:y})=>{let[b,x]=R.useState(()=>Fw(c,d)),[w,A]=R.useState(()=>b==="system"?Pu():b),T=h?Object.values(h):f,M=R.useCallback(Z=>{let V=Z;if(!V)return;Z==="system"&&l&&(V=Pu());let L=h?h[V]:V,j=o?Jw(v):null,J=document.documentElement,I=ee=>{ee==="class"?(J.classList.remove(...T),L&&J.classList.add(L)):ee.startsWith("data-")&&(L?J.setAttribute(ee,L):J.removeAttribute(ee))};if(Array.isArray(g)?g.forEach(I):I(g),s){let ee=gg.includes(d)?d:null,ce=gg.includes(V)?V:ee;J.style.colorScheme=ce}j?.()},[v]),H=R.useCallback(Z=>{let V=typeof Z=="function"?Z(b):Z;x(V);try{localStorage.setItem(c,V)}catch{}},[b]),B=R.useCallback(Z=>{let V=Pu(Z);A(V),b==="system"&&l&&!a&&M("system")},[b,a]);R.useEffect(()=>{let Z=window.matchMedia(wy);return Z.addListener(B),B(Z),()=>Z.removeListener(B)},[B]),R.useEffect(()=>{let Z=V=>{V.key===c&&(V.newValue?x(V.newValue):H(d))};return window.addEventListener("storage",Z),()=>window.removeEventListener("storage",Z)},[H]),R.useEffect(()=>{M(a??b)},[a,b]);let P=R.useMemo(()=>({theme:b,setTheme:H,forcedTheme:a,resolvedTheme:b==="system"?w:b,themes:l?[...f,"system"]:f,systemTheme:l?w:void 0}),[b,H,a,w,l,f]);return R.createElement(bf.Provider,{value:P},R.createElement(Ww,{forcedTheme:a,storageKey:c,attribute:g,enableSystem:l,enableColorScheme:s,defaultTheme:d,value:h,themes:f,nonce:v,scriptProps:y}),m)},Ww=R.memo(({forcedTheme:a,storageKey:o,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:f,value:d,themes:g,nonce:h,scriptProps:m})=>{let v=JSON.stringify([l,o,f,a,g,d,s,c]).slice(1,-1);return R.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(${Gw.toString()})(${v})`}})}),Fw=(a,o)=>{if(Yw)return;let l;try{l=localStorage.getItem(a)||void 0}catch{}return l||o},Jw=a=>{let o=document.createElement("style");return a&&o.setAttribute("nonce",a),o.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(o)},1)}},Pu=a=>(a||(a=window.matchMedia(wy)),a.matches?"dark":"light");const $w=yy("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",twitter:"bg-[#1d9bf0] text-white hover:bg-[#1d9bf0]/90 focus-visible:ring-[#1d9bf0]/20 dark:focus-visible:ring-[#1d9bf0]/40"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Iw({className:a,variant:o="default",size:l="default",asChild:s=!1,...c}){const f=s?dx:"button";return k.jsx(f,{"data-slot":"button","data-variant":o,"data-size":l,className:tr($w({variant:o,size:l,className:a})),...c})}function e_(){const{theme:a,setTheme:o}=Xw(),l=()=>{o(a==="dark"?"light":"dark")};return k.jsxs(Iw,{variant:"ghost",size:"icon",onClick:l,className:"h-8 w-8 rounded-full",children:[k.jsx(kw,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),k.jsx(Lw,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),k.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}function Tn(a,o,{checkForDefaultPrevented:l=!0}={}){return function(c){if(a?.(c),l===!1||!c.defaultPrevented)return o?.(c)}}function tE(a,o){const l=R.createContext(o),s=f=>{const{children:d,...g}=f,h=R.useMemo(()=>g,Object.values(g));return k.jsx(l.Provider,{value:h,children:d})};s.displayName=a+"Provider";function c(f){const d=R.useContext(l);if(d)return d;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[s,c]}function _y(a,o=[]){let l=[];function s(f,d){const g=R.createContext(d),h=l.length;l=[...l,d];const m=y=>{const{scope:b,children:x,...w}=y,A=b?.[a]?.[h]||g,T=R.useMemo(()=>w,Object.values(w));return k.jsx(A.Provider,{value:T,children:x})};m.displayName=f+"Provider";function v(y,b){const x=b?.[a]?.[h]||g,w=R.useContext(x);if(w)return w;if(d!==void 0)return d;throw new Error(`\`${y}\` must be used within \`${f}\``)}return[m,v]}const c=()=>{const f=l.map(d=>R.createContext(d));return function(g){const h=g?.[a]||f;return R.useMemo(()=>({[`__scope${a}`]:{...g,[a]:h}}),[g,h])}};return c.scopeName=a,[s,t_(c,...o)]}function t_(...a){const o=a[0];if(a.length===1)return o;const l=()=>{const s=a.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const d=s.reduce((g,{useScope:h,scopeName:m})=>{const y=h(f)[`__scope${m}`];return{...g,...y}},{});return R.useMemo(()=>({[`__scope${o.scopeName}`]:d}),[d])}};return l.scopeName=o.scopeName,l}function n_(a){const o=a_(a),l=R.forwardRef((s,c)=>{const{children:f,...d}=s,g=R.Children.toArray(f),h=g.find(l_);if(h){const m=h.props.children,v=g.map(y=>y===h?R.Children.count(m)>1?R.Children.only(null):R.isValidElement(m)?m.props.children:null:y);return k.jsx(o,{...d,ref:c,children:R.isValidElement(m)?R.cloneElement(m,void 0,v):null})}return k.jsx(o,{...d,ref:c,children:f})});return l.displayName=`${a}.Slot`,l}function a_(a){const o=R.forwardRef((l,s)=>{const{children:c,...f}=l;if(R.isValidElement(c)){const d=s_(c),g=o_(f,c.props);return c.type!==R.Fragment&&(g.ref=s?yf(s,d):d),R.cloneElement(c,g)}return R.Children.count(c)>1?R.Children.only(null):null});return o.displayName=`${a}.SlotClone`,o}var Ry=Symbol("radix.slottable");function i_(a){const o=({children:l})=>k.jsx(k.Fragment,{children:l});return o.displayName=`${a}.Slottable`,o.__radixId=Ry,o}function l_(a){return R.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===Ry}function o_(a,o){const l={...o};for(const s in o){const c=a[s],f=o[s];/^on[A-Z]/.test(s)?c&&f?l[s]=(...g)=>{const h=f(...g);return c(...g),h}:c&&(l[s]=c):s==="style"?l[s]={...c,...f}:s==="className"&&(l[s]=[c,f].filter(Boolean).join(" "))}return{...a,...l}}function s_(a){let o=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,l=o&&"isReactWarning"in o&&o.isReactWarning;return l?a.ref:(o=Object.getOwnPropertyDescriptor(a,"ref")?.get,l=o&&"isReactWarning"in o&&o.isReactWarning,l?a.props.ref:a.props.ref||a.ref)}var r_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ma=r_.reduce((a,o)=>{const l=n_(`Primitive.${o}`),s=R.forwardRef((c,f)=>{const{asChild:d,...g}=c,h=d?l:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(h,{...g,ref:f})});return s.displayName=`Primitive.${o}`,{...a,[o]:s}},{});function c_(a,o){a&&er.flushSync(()=>a.dispatchEvent(o))}function nr(a){const o=R.useRef(a);return R.useEffect(()=>{o.current=a}),R.useMemo(()=>(...l)=>o.current?.(...l),[])}function u_(a,o=globalThis?.document){const l=nr(a);R.useEffect(()=>{const s=c=>{c.key==="Escape"&&l(c)};return o.addEventListener("keydown",s,{capture:!0}),()=>o.removeEventListener("keydown",s,{capture:!0})},[l,o])}var f_="DismissableLayer",$u="dismissableLayer.update",d_="dismissableLayer.pointerDownOutside",h_="dismissableLayer.focusOutside",yg,Cy=R.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ey=R.forwardRef((a,o)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:g,...h}=a,m=R.useContext(Cy),[v,y]=R.useState(null),b=v?.ownerDocument??globalThis?.document,[,x]=R.useState({}),w=Pa(o,L=>y(L)),A=Array.from(m.layers),[T]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),M=A.indexOf(T),H=v?A.indexOf(v):-1,B=m.layersWithOutsidePointerEventsDisabled.size>0,P=H>=M,Z=g_(L=>{const j=L.target,J=[...m.branches].some(I=>I.contains(j));!P||J||(c?.(L),d?.(L),L.defaultPrevented||g?.())},b),V=y_(L=>{const j=L.target;[...m.branches].some(I=>I.contains(j))||(f?.(L),d?.(L),L.defaultPrevented||g?.())},b);return u_(L=>{H===m.layers.size-1&&(s?.(L),!L.defaultPrevented&&g&&(L.preventDefault(),g()))},b),R.useEffect(()=>{if(v)return l&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(yg=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),vg(),()=>{l&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=yg)}},[v,b,l,m]),R.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),vg())},[v,m]),R.useEffect(()=>{const L=()=>x({});return document.addEventListener($u,L),()=>document.removeEventListener($u,L)},[]),k.jsx(ma.div,{...h,ref:w,style:{pointerEvents:B?P?"auto":"none":void 0,...a.style},onFocusCapture:Tn(a.onFocusCapture,V.onFocusCapture),onBlurCapture:Tn(a.onBlurCapture,V.onBlurCapture),onPointerDownCapture:Tn(a.onPointerDownCapture,Z.onPointerDownCapture)})});Ey.displayName=f_;var m_="DismissableLayerBranch",p_=R.forwardRef((a,o)=>{const l=R.useContext(Cy),s=R.useRef(null),c=Pa(o,s);return R.useEffect(()=>{const f=s.current;if(f)return l.branches.add(f),()=>{l.branches.delete(f)}},[l.branches]),k.jsx(ma.div,{...a,ref:c})});p_.displayName=m_;function g_(a,o=globalThis?.document){const l=nr(a),s=R.useRef(!1),c=R.useRef(()=>{});return R.useEffect(()=>{const f=g=>{if(g.target&&!s.current){let h=function(){Ty(d_,l,m,{discrete:!0})};const m={originalEvent:g};g.pointerType==="touch"?(o.removeEventListener("click",c.current),c.current=h,o.addEventListener("click",c.current,{once:!0})):h()}else o.removeEventListener("click",c.current);s.current=!1},d=window.setTimeout(()=>{o.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),o.removeEventListener("pointerdown",f),o.removeEventListener("click",c.current)}},[o,l]),{onPointerDownCapture:()=>s.current=!0}}function y_(a,o=globalThis?.document){const l=nr(a),s=R.useRef(!1);return R.useEffect(()=>{const c=f=>{f.target&&!s.current&&Ty(h_,l,{originalEvent:f},{discrete:!1})};return o.addEventListener("focusin",c),()=>o.removeEventListener("focusin",c)},[o,l]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function vg(){const a=new CustomEvent($u);document.dispatchEvent(a)}function Ty(a,o,l,{discrete:s}){const c=l.originalEvent.target,f=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:l});o&&c.addEventListener(a,o,{once:!0}),s?c_(c,f):c.dispatchEvent(f)}var fa=globalThis?.document?R.useLayoutEffect:()=>{},v_=uf[" useId ".trim().toString()]||(()=>{}),b_=0;function S_(a){const[o,l]=R.useState(v_());return fa(()=>{l(s=>s??String(b_++))},[a]),a||(o?`radix-${o}`:"")}const x_=["top","right","bottom","left"],da=Math.min,Ot=Math.max,Qs=Math.round,As=Math.floor,tn=a=>({x:a,y:a}),w_={left:"right",right:"left",bottom:"top",top:"bottom"},__={start:"end",end:"start"};function Iu(a,o,l){return Ot(a,da(o,l))}function On(a,o){return typeof a=="function"?a(o):a}function Dn(a){return a.split("-")[0]}function Vi(a){return a.split("-")[1]}function Sf(a){return a==="x"?"y":"x"}function xf(a){return a==="y"?"height":"width"}const R_=new Set(["top","bottom"]);function en(a){return R_.has(Dn(a))?"y":"x"}function wf(a){return Sf(en(a))}function C_(a,o,l){l===void 0&&(l=!1);const s=Vi(a),c=wf(a),f=xf(c);let d=c==="x"?s===(l?"end":"start")?"right":"left":s==="start"?"bottom":"top";return o.reference[f]>o.floating[f]&&(d=Zs(d)),[d,Zs(d)]}function E_(a){const o=Zs(a);return[ef(a),o,ef(o)]}function ef(a){return a.replace(/start|end/g,o=>__[o])}const bg=["left","right"],Sg=["right","left"],T_=["top","bottom"],A_=["bottom","top"];function M_(a,o,l){switch(a){case"top":case"bottom":return l?o?Sg:bg:o?bg:Sg;case"left":case"right":return o?T_:A_;default:return[]}}function O_(a,o,l,s){const c=Vi(a);let f=M_(Dn(a),l==="start",s);return c&&(f=f.map(d=>d+"-"+c),o&&(f=f.concat(f.map(ef)))),f}function Zs(a){return a.replace(/left|right|bottom|top/g,o=>w_[o])}function D_(a){return{top:0,right:0,bottom:0,left:0,...a}}function Ay(a){return typeof a!="number"?D_(a):{top:a,right:a,bottom:a,left:a}}function Ks(a){const{x:o,y:l,width:s,height:c}=a;return{width:s,height:c,top:l,left:o,right:o+s,bottom:l+c,x:o,y:l}}function xg(a,o,l){let{reference:s,floating:c}=a;const f=en(o),d=wf(o),g=xf(d),h=Dn(o),m=f==="y",v=s.x+s.width/2-c.width/2,y=s.y+s.height/2-c.height/2,b=s[g]/2-c[g]/2;let x;switch(h){case"top":x={x:v,y:s.y-c.height};break;case"bottom":x={x:v,y:s.y+s.height};break;case"right":x={x:s.x+s.width,y};break;case"left":x={x:s.x-c.width,y};break;default:x={x:s.x,y:s.y}}switch(Vi(o)){case"start":x[d]-=b*(l&&m?-1:1);break;case"end":x[d]+=b*(l&&m?-1:1);break}return x}const z_=async(a,o,l)=>{const{placement:s="bottom",strategy:c="absolute",middleware:f=[],platform:d}=l,g=f.filter(Boolean),h=await(d.isRTL==null?void 0:d.isRTL(o));let m=await d.getElementRects({reference:a,floating:o,strategy:c}),{x:v,y}=xg(m,s,h),b=s,x={},w=0;for(let A=0;A<g.length;A++){const{name:T,fn:M}=g[A],{x:H,y:B,data:P,reset:Z}=await M({x:v,y,initialPlacement:s,placement:b,strategy:c,middlewareData:x,rects:m,platform:d,elements:{reference:a,floating:o}});v=H??v,y=B??y,x={...x,[T]:{...x[T],...P}},Z&&w<=50&&(w++,typeof Z=="object"&&(Z.placement&&(b=Z.placement),Z.rects&&(m=Z.rects===!0?await d.getElementRects({reference:a,floating:o,strategy:c}):Z.rects),{x:v,y}=xg(m,b,h)),A=-1)}return{x:v,y,placement:b,strategy:c,middlewareData:x}};async function Wl(a,o){var l;o===void 0&&(o={});const{x:s,y:c,platform:f,rects:d,elements:g,strategy:h}=a,{boundary:m="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=On(o,a),w=Ay(x),T=g[b?y==="floating"?"reference":"floating":y],M=Ks(await f.getClippingRect({element:(l=await(f.isElement==null?void 0:f.isElement(T)))==null||l?T:T.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(g.floating)),boundary:m,rootBoundary:v,strategy:h})),H=y==="floating"?{x:s,y:c,width:d.floating.width,height:d.floating.height}:d.reference,B=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g.floating)),P=await(f.isElement==null?void 0:f.isElement(B))?await(f.getScale==null?void 0:f.getScale(B))||{x:1,y:1}:{x:1,y:1},Z=Ks(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:H,offsetParent:B,strategy:h}):H);return{top:(M.top-Z.top+w.top)/P.y,bottom:(Z.bottom-M.bottom+w.bottom)/P.y,left:(M.left-Z.left+w.left)/P.x,right:(Z.right-M.right+w.right)/P.x}}const L_=a=>({name:"arrow",options:a,async fn(o){const{x:l,y:s,placement:c,rects:f,platform:d,elements:g,middlewareData:h}=o,{element:m,padding:v=0}=On(a,o)||{};if(m==null)return{};const y=Ay(v),b={x:l,y:s},x=wf(c),w=xf(x),A=await d.getDimensions(m),T=x==="y",M=T?"top":"left",H=T?"bottom":"right",B=T?"clientHeight":"clientWidth",P=f.reference[w]+f.reference[x]-b[x]-f.floating[w],Z=b[x]-f.reference[x],V=await(d.getOffsetParent==null?void 0:d.getOffsetParent(m));let L=V?V[B]:0;(!L||!await(d.isElement==null?void 0:d.isElement(V)))&&(L=g.floating[B]||f.floating[w]);const j=P/2-Z/2,J=L/2-A[w]/2-1,I=da(y[M],J),ee=da(y[H],J),ce=I,he=L-A[w]-ee,de=L/2-A[w]/2+j,me=Iu(ce,de,he),D=!h.arrow&&Vi(c)!=null&&de!==me&&f.reference[w]/2-(de<ce?I:ee)-A[w]/2<0,W=D?de<ce?de-ce:de-he:0;return{[x]:b[x]+W,data:{[x]:me,centerOffset:de-me-W,...D&&{alignmentOffset:W}},reset:D}}}),N_=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var l,s;const{placement:c,middlewareData:f,rects:d,initialPlacement:g,platform:h,elements:m}=o,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:A=!0,...T}=On(a,o);if((l=f.arrow)!=null&&l.alignmentOffset)return{};const M=Dn(c),H=en(g),B=Dn(g)===g,P=await(h.isRTL==null?void 0:h.isRTL(m.floating)),Z=b||(B||!A?[Zs(g)]:E_(g)),V=w!=="none";!b&&V&&Z.push(...O_(g,A,w,P));const L=[g,...Z],j=await Wl(o,T),J=[];let I=((s=f.flip)==null?void 0:s.overflows)||[];if(v&&J.push(j[M]),y){const de=C_(c,d,P);J.push(j[de[0]],j[de[1]])}if(I=[...I,{placement:c,overflows:J}],!J.every(de=>de<=0)){var ee,ce;const de=(((ee=f.flip)==null?void 0:ee.index)||0)+1,me=L[de];if(me&&(!(y==="alignment"?H!==en(me):!1)||I.every(G=>en(G.placement)===H?G.overflows[0]>0:!0)))return{data:{index:de,overflows:I},reset:{placement:me}};let D=(ce=I.filter(W=>W.overflows[0]<=0).sort((W,G)=>W.overflows[1]-G.overflows[1])[0])==null?void 0:ce.placement;if(!D)switch(x){case"bestFit":{var he;const W=(he=I.filter(G=>{if(V){const fe=en(G.placement);return fe===H||fe==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(fe=>fe>0).reduce((fe,ge)=>fe+ge,0)]).sort((G,fe)=>G[1]-fe[1])[0])==null?void 0:he[0];W&&(D=W);break}case"initialPlacement":D=g;break}if(c!==D)return{reset:{placement:D}}}return{}}}};function wg(a,o){return{top:a.top-o.height,right:a.right-o.width,bottom:a.bottom-o.height,left:a.left-o.width}}function _g(a){return x_.some(o=>a[o]>=0)}const k_=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(o){const{rects:l}=o,{strategy:s="referenceHidden",...c}=On(a,o);switch(s){case"referenceHidden":{const f=await Wl(o,{...c,elementContext:"reference"}),d=wg(f,l.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:_g(d)}}}case"escaped":{const f=await Wl(o,{...c,altBoundary:!0}),d=wg(f,l.floating);return{data:{escapedOffsets:d,escaped:_g(d)}}}default:return{}}}}},My=new Set(["left","top"]);async function U_(a,o){const{placement:l,platform:s,elements:c}=a,f=await(s.isRTL==null?void 0:s.isRTL(c.floating)),d=Dn(l),g=Vi(l),h=en(l)==="y",m=My.has(d)?-1:1,v=f&&h?-1:1,y=On(o,a);let{mainAxis:b,crossAxis:x,alignmentAxis:w}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return g&&typeof w=="number"&&(x=g==="end"?w*-1:w),h?{x:x*v,y:b*m}:{x:b*m,y:x*v}}const j_=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var l,s;const{x:c,y:f,placement:d,middlewareData:g}=o,h=await U_(o,a);return d===((l=g.offset)==null?void 0:l.placement)&&(s=g.arrow)!=null&&s.alignmentOffset?{}:{x:c+h.x,y:f+h.y,data:{...h,placement:d}}}}},B_=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){const{x:l,y:s,placement:c}=o,{mainAxis:f=!0,crossAxis:d=!1,limiter:g={fn:T=>{let{x:M,y:H}=T;return{x:M,y:H}}},...h}=On(a,o),m={x:l,y:s},v=await Wl(o,h),y=en(Dn(c)),b=Sf(y);let x=m[b],w=m[y];if(f){const T=b==="y"?"top":"left",M=b==="y"?"bottom":"right",H=x+v[T],B=x-v[M];x=Iu(H,x,B)}if(d){const T=y==="y"?"top":"left",M=y==="y"?"bottom":"right",H=w+v[T],B=w-v[M];w=Iu(H,w,B)}const A=g.fn({...o,[b]:x,[y]:w});return{...A,data:{x:A.x-l,y:A.y-s,enabled:{[b]:f,[y]:d}}}}}},H_=function(a){return a===void 0&&(a={}),{options:a,fn(o){const{x:l,y:s,placement:c,rects:f,middlewareData:d}=o,{offset:g=0,mainAxis:h=!0,crossAxis:m=!0}=On(a,o),v={x:l,y:s},y=en(c),b=Sf(y);let x=v[b],w=v[y];const A=On(g,o),T=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(h){const B=b==="y"?"height":"width",P=f.reference[b]-f.floating[B]+T.mainAxis,Z=f.reference[b]+f.reference[B]-T.mainAxis;x<P?x=P:x>Z&&(x=Z)}if(m){var M,H;const B=b==="y"?"width":"height",P=My.has(Dn(c)),Z=f.reference[y]-f.floating[B]+(P&&((M=d.offset)==null?void 0:M[y])||0)+(P?0:T.crossAxis),V=f.reference[y]+f.reference[B]+(P?0:((H=d.offset)==null?void 0:H[y])||0)-(P?T.crossAxis:0);w<Z?w=Z:w>V&&(w=V)}return{[b]:x,[y]:w}}}},q_=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var l,s;const{placement:c,rects:f,platform:d,elements:g}=o,{apply:h=()=>{},...m}=On(a,o),v=await Wl(o,m),y=Dn(c),b=Vi(c),x=en(c)==="y",{width:w,height:A}=f.floating;let T,M;y==="top"||y==="bottom"?(T=y,M=b===(await(d.isRTL==null?void 0:d.isRTL(g.floating))?"start":"end")?"left":"right"):(M=y,T=b==="end"?"top":"bottom");const H=A-v.top-v.bottom,B=w-v.left-v.right,P=da(A-v[T],H),Z=da(w-v[M],B),V=!o.middlewareData.shift;let L=P,j=Z;if((l=o.middlewareData.shift)!=null&&l.enabled.x&&(j=B),(s=o.middlewareData.shift)!=null&&s.enabled.y&&(L=H),V&&!b){const I=Ot(v.left,0),ee=Ot(v.right,0),ce=Ot(v.top,0),he=Ot(v.bottom,0);x?j=w-2*(I!==0||ee!==0?I+ee:Ot(v.left,v.right)):L=A-2*(ce!==0||he!==0?ce+he:Ot(v.top,v.bottom))}await h({...o,availableWidth:j,availableHeight:L});const J=await d.getDimensions(g.floating);return w!==J.width||A!==J.height?{reset:{rects:!0}}:{}}}};function ar(){return typeof window<"u"}function Gi(a){return Oy(a)?(a.nodeName||"").toLowerCase():"#document"}function Dt(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function ln(a){var o;return(o=(Oy(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function Oy(a){return ar()?a instanceof Node||a instanceof Dt(a).Node:!1}function Kt(a){return ar()?a instanceof Element||a instanceof Dt(a).Element:!1}function an(a){return ar()?a instanceof HTMLElement||a instanceof Dt(a).HTMLElement:!1}function Rg(a){return!ar()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Dt(a).ShadowRoot}const V_=new Set(["inline","contents"]);function Il(a){const{overflow:o,overflowX:l,overflowY:s,display:c}=Wt(a);return/auto|scroll|overlay|hidden|clip/.test(o+s+l)&&!V_.has(c)}const G_=new Set(["table","td","th"]);function Y_(a){return G_.has(Gi(a))}const P_=[":popover-open",":modal"];function ir(a){return P_.some(o=>{try{return a.matches(o)}catch{return!1}})}const X_=["transform","translate","scale","rotate","perspective"],Q_=["transform","translate","scale","rotate","perspective","filter"],Z_=["paint","layout","strict","content"];function _f(a){const o=Rf(),l=Kt(a)?Wt(a):a;return X_.some(s=>l[s]?l[s]!=="none":!1)||(l.containerType?l.containerType!=="normal":!1)||!o&&(l.backdropFilter?l.backdropFilter!=="none":!1)||!o&&(l.filter?l.filter!=="none":!1)||Q_.some(s=>(l.willChange||"").includes(s))||Z_.some(s=>(l.contain||"").includes(s))}function K_(a){let o=ha(a);for(;an(o)&&!ji(o);){if(_f(o))return o;if(ir(o))return null;o=ha(o)}return null}function Rf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const W_=new Set(["html","body","#document"]);function ji(a){return W_.has(Gi(a))}function Wt(a){return Dt(a).getComputedStyle(a)}function lr(a){return Kt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ha(a){if(Gi(a)==="html")return a;const o=a.assignedSlot||a.parentNode||Rg(a)&&a.host||ln(a);return Rg(o)?o.host:o}function Dy(a){const o=ha(a);return ji(o)?a.ownerDocument?a.ownerDocument.body:a.body:an(o)&&Il(o)?o:Dy(o)}function Fl(a,o,l){var s;o===void 0&&(o=[]),l===void 0&&(l=!0);const c=Dy(a),f=c===((s=a.ownerDocument)==null?void 0:s.body),d=Dt(c);if(f){const g=tf(d);return o.concat(d,d.visualViewport||[],Il(c)?c:[],g&&l?Fl(g):[])}return o.concat(c,Fl(c,[],l))}function tf(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function zy(a){const o=Wt(a);let l=parseFloat(o.width)||0,s=parseFloat(o.height)||0;const c=an(a),f=c?a.offsetWidth:l,d=c?a.offsetHeight:s,g=Qs(l)!==f||Qs(s)!==d;return g&&(l=f,s=d),{width:l,height:s,$:g}}function Cf(a){return Kt(a)?a:a.contextElement}function Li(a){const o=Cf(a);if(!an(o))return tn(1);const l=o.getBoundingClientRect(),{width:s,height:c,$:f}=zy(o);let d=(f?Qs(l.width):l.width)/s,g=(f?Qs(l.height):l.height)/c;return(!d||!Number.isFinite(d))&&(d=1),(!g||!Number.isFinite(g))&&(g=1),{x:d,y:g}}const F_=tn(0);function Ly(a){const o=Dt(a);return!Rf()||!o.visualViewport?F_:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function J_(a,o,l){return o===void 0&&(o=!1),!l||o&&l!==Dt(a)?!1:o}function Va(a,o,l,s){o===void 0&&(o=!1),l===void 0&&(l=!1);const c=a.getBoundingClientRect(),f=Cf(a);let d=tn(1);o&&(s?Kt(s)&&(d=Li(s)):d=Li(a));const g=J_(f,l,s)?Ly(f):tn(0);let h=(c.left+g.x)/d.x,m=(c.top+g.y)/d.y,v=c.width/d.x,y=c.height/d.y;if(f){const b=Dt(f),x=s&&Kt(s)?Dt(s):s;let w=b,A=tf(w);for(;A&&s&&x!==w;){const T=Li(A),M=A.getBoundingClientRect(),H=Wt(A),B=M.left+(A.clientLeft+parseFloat(H.paddingLeft))*T.x,P=M.top+(A.clientTop+parseFloat(H.paddingTop))*T.y;h*=T.x,m*=T.y,v*=T.x,y*=T.y,h+=B,m+=P,w=Dt(A),A=tf(w)}}return Ks({width:v,height:y,x:h,y:m})}function or(a,o){const l=lr(a).scrollLeft;return o?o.left+l:Va(ln(a)).left+l}function Ny(a,o){const l=a.getBoundingClientRect(),s=l.left+o.scrollLeft-or(a,l),c=l.top+o.scrollTop;return{x:s,y:c}}function $_(a){let{elements:o,rect:l,offsetParent:s,strategy:c}=a;const f=c==="fixed",d=ln(s),g=o?ir(o.floating):!1;if(s===d||g&&f)return l;let h={scrollLeft:0,scrollTop:0},m=tn(1);const v=tn(0),y=an(s);if((y||!y&&!f)&&((Gi(s)!=="body"||Il(d))&&(h=lr(s)),an(s))){const x=Va(s);m=Li(s),v.x=x.x+s.clientLeft,v.y=x.y+s.clientTop}const b=d&&!y&&!f?Ny(d,h):tn(0);return{width:l.width*m.x,height:l.height*m.y,x:l.x*m.x-h.scrollLeft*m.x+v.x+b.x,y:l.y*m.y-h.scrollTop*m.y+v.y+b.y}}function I_(a){return Array.from(a.getClientRects())}function eR(a){const o=ln(a),l=lr(a),s=a.ownerDocument.body,c=Ot(o.scrollWidth,o.clientWidth,s.scrollWidth,s.clientWidth),f=Ot(o.scrollHeight,o.clientHeight,s.scrollHeight,s.clientHeight);let d=-l.scrollLeft+or(a);const g=-l.scrollTop;return Wt(s).direction==="rtl"&&(d+=Ot(o.clientWidth,s.clientWidth)-c),{width:c,height:f,x:d,y:g}}const Cg=25;function tR(a,o){const l=Dt(a),s=ln(a),c=l.visualViewport;let f=s.clientWidth,d=s.clientHeight,g=0,h=0;if(c){f=c.width,d=c.height;const v=Rf();(!v||v&&o==="fixed")&&(g=c.offsetLeft,h=c.offsetTop)}const m=or(s);if(m<=0){const v=s.ownerDocument,y=v.body,b=getComputedStyle(y),x=v.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(s.clientWidth-y.clientWidth-x);w<=Cg&&(f-=w)}else m<=Cg&&(f+=m);return{width:f,height:d,x:g,y:h}}const nR=new Set(["absolute","fixed"]);function aR(a,o){const l=Va(a,!0,o==="fixed"),s=l.top+a.clientTop,c=l.left+a.clientLeft,f=an(a)?Li(a):tn(1),d=a.clientWidth*f.x,g=a.clientHeight*f.y,h=c*f.x,m=s*f.y;return{width:d,height:g,x:h,y:m}}function Eg(a,o,l){let s;if(o==="viewport")s=tR(a,l);else if(o==="document")s=eR(ln(a));else if(Kt(o))s=aR(o,l);else{const c=Ly(a);s={x:o.x-c.x,y:o.y-c.y,width:o.width,height:o.height}}return Ks(s)}function ky(a,o){const l=ha(a);return l===o||!Kt(l)||ji(l)?!1:Wt(l).position==="fixed"||ky(l,o)}function iR(a,o){const l=o.get(a);if(l)return l;let s=Fl(a,[],!1).filter(g=>Kt(g)&&Gi(g)!=="body"),c=null;const f=Wt(a).position==="fixed";let d=f?ha(a):a;for(;Kt(d)&&!ji(d);){const g=Wt(d),h=_f(d);!h&&g.position==="fixed"&&(c=null),(f?!h&&!c:!h&&g.position==="static"&&!!c&&nR.has(c.position)||Il(d)&&!h&&ky(a,d))?s=s.filter(v=>v!==d):c=g,d=ha(d)}return o.set(a,s),s}function lR(a){let{element:o,boundary:l,rootBoundary:s,strategy:c}=a;const d=[...l==="clippingAncestors"?ir(o)?[]:iR(o,this._c):[].concat(l),s],g=d[0],h=d.reduce((m,v)=>{const y=Eg(o,v,c);return m.top=Ot(y.top,m.top),m.right=da(y.right,m.right),m.bottom=da(y.bottom,m.bottom),m.left=Ot(y.left,m.left),m},Eg(o,g,c));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function oR(a){const{width:o,height:l}=zy(a);return{width:o,height:l}}function sR(a,o,l){const s=an(o),c=ln(o),f=l==="fixed",d=Va(a,!0,f,o);let g={scrollLeft:0,scrollTop:0};const h=tn(0);function m(){h.x=or(c)}if(s||!s&&!f)if((Gi(o)!=="body"||Il(c))&&(g=lr(o)),s){const x=Va(o,!0,f,o);h.x=x.x+o.clientLeft,h.y=x.y+o.clientTop}else c&&m();f&&!s&&c&&m();const v=c&&!s&&!f?Ny(c,g):tn(0),y=d.left+g.scrollLeft-h.x-v.x,b=d.top+g.scrollTop-h.y-v.y;return{x:y,y:b,width:d.width,height:d.height}}function Xu(a){return Wt(a).position==="static"}function Tg(a,o){if(!an(a)||Wt(a).position==="fixed")return null;if(o)return o(a);let l=a.offsetParent;return ln(a)===l&&(l=l.ownerDocument.body),l}function Uy(a,o){const l=Dt(a);if(ir(a))return l;if(!an(a)){let c=ha(a);for(;c&&!ji(c);){if(Kt(c)&&!Xu(c))return c;c=ha(c)}return l}let s=Tg(a,o);for(;s&&Y_(s)&&Xu(s);)s=Tg(s,o);return s&&ji(s)&&Xu(s)&&!_f(s)?l:s||K_(a)||l}const rR=async function(a){const o=this.getOffsetParent||Uy,l=this.getDimensions,s=await l(a.floating);return{reference:sR(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function cR(a){return Wt(a).direction==="rtl"}const uR={convertOffsetParentRelativeRectToViewportRelativeRect:$_,getDocumentElement:ln,getClippingRect:lR,getOffsetParent:Uy,getElementRects:rR,getClientRects:I_,getDimensions:oR,getScale:Li,isElement:Kt,isRTL:cR};function jy(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function fR(a,o){let l=null,s;const c=ln(a);function f(){var g;clearTimeout(s),(g=l)==null||g.disconnect(),l=null}function d(g,h){g===void 0&&(g=!1),h===void 0&&(h=1),f();const m=a.getBoundingClientRect(),{left:v,top:y,width:b,height:x}=m;if(g||o(),!b||!x)return;const w=As(y),A=As(c.clientWidth-(v+b)),T=As(c.clientHeight-(y+x)),M=As(v),B={rootMargin:-w+"px "+-A+"px "+-T+"px "+-M+"px",threshold:Ot(0,da(1,h))||1};let P=!0;function Z(V){const L=V[0].intersectionRatio;if(L!==h){if(!P)return d();L?d(!1,L):s=setTimeout(()=>{d(!1,1e-7)},1e3)}L===1&&!jy(m,a.getBoundingClientRect())&&d(),P=!1}try{l=new IntersectionObserver(Z,{...B,root:c.ownerDocument})}catch{l=new IntersectionObserver(Z,B)}l.observe(a)}return d(!0),f}function dR(a,o,l,s){s===void 0&&(s={});const{ancestorScroll:c=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:h=!1}=s,m=Cf(a),v=c||f?[...m?Fl(m):[],...Fl(o)]:[];v.forEach(M=>{c&&M.addEventListener("scroll",l,{passive:!0}),f&&M.addEventListener("resize",l)});const y=m&&g?fR(m,l):null;let b=-1,x=null;d&&(x=new ResizeObserver(M=>{let[H]=M;H&&H.target===m&&x&&(x.unobserve(o),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var B;(B=x)==null||B.observe(o)})),l()}),m&&!h&&x.observe(m),x.observe(o));let w,A=h?Va(a):null;h&&T();function T(){const M=Va(a);A&&!jy(A,M)&&l(),A=M,w=requestAnimationFrame(T)}return l(),()=>{var M;v.forEach(H=>{c&&H.removeEventListener("scroll",l),f&&H.removeEventListener("resize",l)}),y?.(),(M=x)==null||M.disconnect(),x=null,h&&cancelAnimationFrame(w)}}const hR=j_,mR=B_,pR=N_,gR=q_,yR=k_,Ag=L_,vR=H_,bR=(a,o,l)=>{const s=new Map,c={platform:uR,...l},f={...c.platform,_c:s};return z_(a,o,{...c,platform:f})};var SR=typeof document<"u",xR=function(){},Ls=SR?R.useLayoutEffect:xR;function Ws(a,o){if(a===o)return!0;if(typeof a!=typeof o)return!1;if(typeof a=="function"&&a.toString()===o.toString())return!0;let l,s,c;if(a&&o&&typeof a=="object"){if(Array.isArray(a)){if(l=a.length,l!==o.length)return!1;for(s=l;s--!==0;)if(!Ws(a[s],o[s]))return!1;return!0}if(c=Object.keys(a),l=c.length,l!==Object.keys(o).length)return!1;for(s=l;s--!==0;)if(!{}.hasOwnProperty.call(o,c[s]))return!1;for(s=l;s--!==0;){const f=c[s];if(!(f==="_owner"&&a.$$typeof)&&!Ws(a[f],o[f]))return!1}return!0}return a!==a&&o!==o}function By(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function Mg(a,o){const l=By(a);return Math.round(o*l)/l}function Qu(a){const o=R.useRef(a);return Ls(()=>{o.current=a}),o}function wR(a){a===void 0&&(a={});const{placement:o="bottom",strategy:l="absolute",middleware:s=[],platform:c,elements:{reference:f,floating:d}={},transform:g=!0,whileElementsMounted:h,open:m}=a,[v,y]=R.useState({x:0,y:0,strategy:l,placement:o,middlewareData:{},isPositioned:!1}),[b,x]=R.useState(s);Ws(b,s)||x(s);const[w,A]=R.useState(null),[T,M]=R.useState(null),H=R.useCallback(G=>{G!==V.current&&(V.current=G,A(G))},[]),B=R.useCallback(G=>{G!==L.current&&(L.current=G,M(G))},[]),P=f||w,Z=d||T,V=R.useRef(null),L=R.useRef(null),j=R.useRef(v),J=h!=null,I=Qu(h),ee=Qu(c),ce=Qu(m),he=R.useCallback(()=>{if(!V.current||!L.current)return;const G={placement:o,strategy:l,middleware:b};ee.current&&(G.platform=ee.current),bR(V.current,L.current,G).then(fe=>{const ge={...fe,isPositioned:ce.current!==!1};de.current&&!Ws(j.current,ge)&&(j.current=ge,er.flushSync(()=>{y(ge)}))})},[b,o,l,ee,ce]);Ls(()=>{m===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,y(G=>({...G,isPositioned:!1})))},[m]);const de=R.useRef(!1);Ls(()=>(de.current=!0,()=>{de.current=!1}),[]),Ls(()=>{if(P&&(V.current=P),Z&&(L.current=Z),P&&Z){if(I.current)return I.current(P,Z,he);he()}},[P,Z,he,I,J]);const me=R.useMemo(()=>({reference:V,floating:L,setReference:H,setFloating:B}),[H,B]),D=R.useMemo(()=>({reference:P,floating:Z}),[P,Z]),W=R.useMemo(()=>{const G={position:l,left:0,top:0};if(!D.floating)return G;const fe=Mg(D.floating,v.x),ge=Mg(D.floating,v.y);return g?{...G,transform:"translate("+fe+"px, "+ge+"px)",...By(D.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:fe,top:ge}},[l,g,D.floating,v.x,v.y]);return R.useMemo(()=>({...v,update:he,refs:me,elements:D,floatingStyles:W}),[v,he,me,D,W])}const _R=a=>{function o(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:a,fn(l){const{element:s,padding:c}=typeof a=="function"?a(l):a;return s&&o(s)?s.current!=null?Ag({element:s.current,padding:c}).fn(l):{}:s?Ag({element:s,padding:c}).fn(l):{}}}},RR=(a,o)=>({...hR(a),options:[a,o]}),CR=(a,o)=>({...mR(a),options:[a,o]}),ER=(a,o)=>({...vR(a),options:[a,o]}),TR=(a,o)=>({...pR(a),options:[a,o]}),AR=(a,o)=>({...gR(a),options:[a,o]}),MR=(a,o)=>({...yR(a),options:[a,o]}),OR=(a,o)=>({..._R(a),options:[a,o]});var DR="Arrow",Hy=R.forwardRef((a,o)=>{const{children:l,width:s=10,height:c=5,...f}=a;return k.jsx(ma.svg,{...f,ref:o,width:s,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?l:k.jsx("polygon",{points:"0,0 30,0 15,10"})})});Hy.displayName=DR;var zR=Hy;function LR(a){const[o,l]=R.useState(void 0);return fa(()=>{if(a){l({width:a.offsetWidth,height:a.offsetHeight});const s=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const f=c[0];let d,g;if("borderBoxSize"in f){const h=f.borderBoxSize,m=Array.isArray(h)?h[0]:h;d=m.inlineSize,g=m.blockSize}else d=a.offsetWidth,g=a.offsetHeight;l({width:d,height:g})});return s.observe(a,{box:"border-box"}),()=>s.unobserve(a)}else l(void 0)},[a]),o}var Ef="Popper",[qy,Vy]=_y(Ef),[NR,Gy]=qy(Ef),Yy=a=>{const{__scopePopper:o,children:l}=a,[s,c]=R.useState(null);return k.jsx(NR,{scope:o,anchor:s,onAnchorChange:c,children:l})};Yy.displayName=Ef;var Py="PopperAnchor",Xy=R.forwardRef((a,o)=>{const{__scopePopper:l,virtualRef:s,...c}=a,f=Gy(Py,l),d=R.useRef(null),g=Pa(o,d),h=R.useRef(null);return R.useEffect(()=>{const m=h.current;h.current=s?.current||d.current,m!==h.current&&f.onAnchorChange(h.current)}),s?null:k.jsx(ma.div,{...c,ref:g})});Xy.displayName=Py;var Tf="PopperContent",[kR,UR]=qy(Tf),Qy=R.forwardRef((a,o)=>{const{__scopePopper:l,side:s="bottom",sideOffset:c=0,align:f="center",alignOffset:d=0,arrowPadding:g=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:w,...A}=a,T=Gy(Tf,l),[M,H]=R.useState(null),B=Pa(o,le=>H(le)),[P,Z]=R.useState(null),V=LR(P),L=V?.width??0,j=V?.height??0,J=s+(f!=="center"?"-"+f:""),I=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},ee=Array.isArray(m)?m:[m],ce=ee.length>0,he={padding:I,boundary:ee.filter(BR),altBoundary:ce},{refs:de,floatingStyles:me,placement:D,isPositioned:W,middlewareData:G}=wR({strategy:"fixed",placement:J,whileElementsMounted:(...le)=>dR(...le,{animationFrame:x==="always"}),elements:{reference:T.anchor},middleware:[RR({mainAxis:c+j,alignmentAxis:d}),h&&CR({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?ER():void 0,...he}),h&&TR({...he}),AR({...he,apply:({elements:le,rects:Be,availableWidth:Ce,availableHeight:ot})=>{const{width:ut,height:$e}=Be.reference,on=le.floating.style;on.setProperty("--radix-popper-available-width",`${Ce}px`),on.setProperty("--radix-popper-available-height",`${ot}px`),on.setProperty("--radix-popper-anchor-width",`${ut}px`),on.setProperty("--radix-popper-anchor-height",`${$e}px`)}}),P&&OR({element:P,padding:g}),HR({arrowWidth:L,arrowHeight:j}),b&&MR({strategy:"referenceHidden",...he})]}),[fe,ge]=Wy(D),E=nr(w);fa(()=>{W&&E?.()},[W,E]);const X=G.arrow?.x,F=G.arrow?.y,$=G.arrow?.centerOffset!==0,[oe,re]=R.useState();return fa(()=>{M&&re(window.getComputedStyle(M).zIndex)},[M]),k.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:W?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:k.jsx(kR,{scope:l,placedSide:fe,onArrowChange:Z,arrowX:X,arrowY:F,shouldHideArrow:$,children:k.jsx(ma.div,{"data-side":fe,"data-align":ge,...A,ref:B,style:{...A.style,animation:W?void 0:"none"}})})})});Qy.displayName=Tf;var Zy="PopperArrow",jR={top:"bottom",right:"left",bottom:"top",left:"right"},Ky=R.forwardRef(function(o,l){const{__scopePopper:s,...c}=o,f=UR(Zy,s),d=jR[f.placedSide];return k.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:k.jsx(zR,{...c,ref:l,style:{...c.style,display:"block"}})})});Ky.displayName=Zy;function BR(a){return a!==null}var HR=a=>({name:"transformOrigin",options:a,fn(o){const{placement:l,rects:s,middlewareData:c}=o,d=c.arrow?.centerOffset!==0,g=d?0:a.arrowWidth,h=d?0:a.arrowHeight,[m,v]=Wy(l),y={start:"0%",center:"50%",end:"100%"}[v],b=(c.arrow?.x??0)+g/2,x=(c.arrow?.y??0)+h/2;let w="",A="";return m==="bottom"?(w=d?y:`${b}px`,A=`${-h}px`):m==="top"?(w=d?y:`${b}px`,A=`${s.floating.height+h}px`):m==="right"?(w=`${-h}px`,A=d?y:`${x}px`):m==="left"&&(w=`${s.floating.width+h}px`,A=d?y:`${x}px`),{data:{x:w,y:A}}}});function Wy(a){const[o,l="center"]=a.split("-");return[o,l]}var qR=Yy,VR=Xy,GR=Qy,YR=Ky,PR="Portal",Fy=R.forwardRef((a,o)=>{const{container:l,...s}=a,[c,f]=R.useState(!1);fa(()=>f(!0),[]);const d=l||c&&globalThis?.document?.body;return d?JS.createPortal(k.jsx(ma.div,{...s,ref:o}),d):null});Fy.displayName=PR;function XR(a,o){return R.useReducer((l,s)=>o[l][s]??l,a)}var Af=a=>{const{present:o,children:l}=a,s=QR(o),c=typeof l=="function"?l({present:s.isPresent}):R.Children.only(l),f=Pa(s.ref,ZR(c));return typeof l=="function"||s.isPresent?R.cloneElement(c,{ref:f}):null};Af.displayName="Presence";function QR(a){const[o,l]=R.useState(),s=R.useRef(null),c=R.useRef(a),f=R.useRef("none"),d=a?"mounted":"unmounted",[g,h]=XR(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R.useEffect(()=>{const m=Ms(s.current);f.current=g==="mounted"?m:"none"},[g]),fa(()=>{const m=s.current,v=c.current;if(v!==a){const b=f.current,x=Ms(m);a?h("MOUNT"):x==="none"||m?.display==="none"?h("UNMOUNT"):h(v&&b!==x?"ANIMATION_OUT":"UNMOUNT"),c.current=a}},[a,h]),fa(()=>{if(o){let m;const v=o.ownerDocument.defaultView??window,y=x=>{const A=Ms(s.current).includes(CSS.escape(x.animationName));if(x.target===o&&A&&(h("ANIMATION_END"),!c.current)){const T=o.style.animationFillMode;o.style.animationFillMode="forwards",m=v.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=T)})}},b=x=>{x.target===o&&(f.current=Ms(s.current))};return o.addEventListener("animationstart",b),o.addEventListener("animationcancel",y),o.addEventListener("animationend",y),()=>{v.clearTimeout(m),o.removeEventListener("animationstart",b),o.removeEventListener("animationcancel",y),o.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[o,h]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:R.useCallback(m=>{s.current=m?getComputedStyle(m):null,l(m)},[])}}function Ms(a){return a?.animationName||"none"}function ZR(a){let o=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,l=o&&"isReactWarning"in o&&o.isReactWarning;return l?a.ref:(o=Object.getOwnPropertyDescriptor(a,"ref")?.get,l=o&&"isReactWarning"in o&&o.isReactWarning,l?a.props.ref:a.props.ref||a.ref)}var KR=uf[" useInsertionEffect ".trim().toString()]||fa;function WR({prop:a,defaultProp:o,onChange:l=()=>{},caller:s}){const[c,f,d]=FR({defaultProp:o,onChange:l}),g=a!==void 0,h=g?a:c;{const v=R.useRef(a!==void 0);R.useEffect(()=>{const y=v.current;y!==g&&console.warn(`${s} is changing from ${y?"controlled":"uncontrolled"} to ${g?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=g},[g,s])}const m=R.useCallback(v=>{if(g){const y=JR(v)?v(a):v;y!==a&&d.current?.(y)}else f(v)},[g,a,f,d]);return[h,m]}function FR({defaultProp:a,onChange:o}){const[l,s]=R.useState(a),c=R.useRef(l),f=R.useRef(o);return KR(()=>{f.current=o},[o]),R.useEffect(()=>{c.current!==l&&(f.current?.(l),c.current=l)},[l,c]),[l,s,f]}function JR(a){return typeof a=="function"}var $R=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),IR="VisuallyHidden",Jy=R.forwardRef((a,o)=>k.jsx(ma.span,{...a,ref:o,style:{...$R,...a.style}}));Jy.displayName=IR;var eC=Jy,[sr]=_y("Tooltip",[Vy]),rr=Vy(),$y="TooltipProvider",tC=700,nf="tooltip.open",[nC,Mf]=sr($y),Iy=a=>{const{__scopeTooltip:o,delayDuration:l=tC,skipDelayDuration:s=300,disableHoverableContent:c=!1,children:f}=a,d=R.useRef(!0),g=R.useRef(!1),h=R.useRef(0);return R.useEffect(()=>{const m=h.current;return()=>window.clearTimeout(m)},[]),k.jsx(nC,{scope:o,isOpenDelayedRef:d,delayDuration:l,onOpen:R.useCallback(()=>{window.clearTimeout(h.current),d.current=!1},[]),onClose:R.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>d.current=!0,s)},[s]),isPointerInTransitRef:g,onPointerInTransitChange:R.useCallback(m=>{g.current=m},[]),disableHoverableContent:c,children:f})};Iy.displayName=$y;var Jl="Tooltip",[aC,eo]=sr(Jl),ev=a=>{const{__scopeTooltip:o,children:l,open:s,defaultOpen:c,onOpenChange:f,disableHoverableContent:d,delayDuration:g}=a,h=Mf(Jl,a.__scopeTooltip),m=rr(o),[v,y]=R.useState(null),b=S_(),x=R.useRef(0),w=d??h.disableHoverableContent,A=g??h.delayDuration,T=R.useRef(!1),[M,H]=WR({prop:s,defaultProp:c??!1,onChange:L=>{L?(h.onOpen(),document.dispatchEvent(new CustomEvent(nf))):h.onClose(),f?.(L)},caller:Jl}),B=R.useMemo(()=>M?T.current?"delayed-open":"instant-open":"closed",[M]),P=R.useCallback(()=>{window.clearTimeout(x.current),x.current=0,T.current=!1,H(!0)},[H]),Z=R.useCallback(()=>{window.clearTimeout(x.current),x.current=0,H(!1)},[H]),V=R.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{T.current=!0,H(!0),x.current=0},A)},[A,H]);return R.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),k.jsx(qR,{...m,children:k.jsx(aC,{scope:o,contentId:b,open:M,stateAttribute:B,trigger:v,onTriggerChange:y,onTriggerEnter:R.useCallback(()=>{h.isOpenDelayedRef.current?V():P()},[h.isOpenDelayedRef,V,P]),onTriggerLeave:R.useCallback(()=>{w?Z():(window.clearTimeout(x.current),x.current=0)},[Z,w]),onOpen:P,onClose:Z,disableHoverableContent:w,children:l})})};ev.displayName=Jl;var af="TooltipTrigger",tv=R.forwardRef((a,o)=>{const{__scopeTooltip:l,...s}=a,c=eo(af,l),f=Mf(af,l),d=rr(l),g=R.useRef(null),h=Pa(o,g,c.onTriggerChange),m=R.useRef(!1),v=R.useRef(!1),y=R.useCallback(()=>m.current=!1,[]);return R.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),k.jsx(VR,{asChild:!0,...d,children:k.jsx(ma.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...s,ref:h,onPointerMove:Tn(a.onPointerMove,b=>{b.pointerType!=="touch"&&!v.current&&!f.isPointerInTransitRef.current&&(c.onTriggerEnter(),v.current=!0)}),onPointerLeave:Tn(a.onPointerLeave,()=>{c.onTriggerLeave(),v.current=!1}),onPointerDown:Tn(a.onPointerDown,()=>{c.open&&c.onClose(),m.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:Tn(a.onFocus,()=>{m.current||c.onOpen()}),onBlur:Tn(a.onBlur,c.onClose),onClick:Tn(a.onClick,c.onClose)})})});tv.displayName=af;var Of="TooltipPortal",[iC,lC]=sr(Of,{forceMount:void 0}),nv=a=>{const{__scopeTooltip:o,forceMount:l,children:s,container:c}=a,f=eo(Of,o);return k.jsx(iC,{scope:o,forceMount:l,children:k.jsx(Af,{present:l||f.open,children:k.jsx(Fy,{asChild:!0,container:c,children:s})})})};nv.displayName=Of;var Bi="TooltipContent",av=R.forwardRef((a,o)=>{const l=lC(Bi,a.__scopeTooltip),{forceMount:s=l.forceMount,side:c="top",...f}=a,d=eo(Bi,a.__scopeTooltip);return k.jsx(Af,{present:s||d.open,children:d.disableHoverableContent?k.jsx(iv,{side:c,...f,ref:o}):k.jsx(oC,{side:c,...f,ref:o})})}),oC=R.forwardRef((a,o)=>{const l=eo(Bi,a.__scopeTooltip),s=Mf(Bi,a.__scopeTooltip),c=R.useRef(null),f=Pa(o,c),[d,g]=R.useState(null),{trigger:h,onClose:m}=l,v=c.current,{onPointerInTransitChange:y}=s,b=R.useCallback(()=>{g(null),y(!1)},[y]),x=R.useCallback((w,A)=>{const T=w.currentTarget,M={x:w.clientX,y:w.clientY},H=uC(M,T.getBoundingClientRect()),B=fC(M,H),P=dC(A.getBoundingClientRect()),Z=mC([...B,...P]);g(Z),y(!0)},[y]);return R.useEffect(()=>()=>b(),[b]),R.useEffect(()=>{if(h&&v){const w=T=>x(T,v),A=T=>x(T,h);return h.addEventListener("pointerleave",w),v.addEventListener("pointerleave",A),()=>{h.removeEventListener("pointerleave",w),v.removeEventListener("pointerleave",A)}}},[h,v,x,b]),R.useEffect(()=>{if(d){const w=A=>{const T=A.target,M={x:A.clientX,y:A.clientY},H=h?.contains(T)||v?.contains(T),B=!hC(M,d);H?b():B&&(b(),m())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[h,v,d,m,b]),k.jsx(iv,{...a,ref:f})}),[sC,rC]=sr(Jl,{isInside:!1}),cC=i_("TooltipContent"),iv=R.forwardRef((a,o)=>{const{__scopeTooltip:l,children:s,"aria-label":c,onEscapeKeyDown:f,onPointerDownOutside:d,...g}=a,h=eo(Bi,l),m=rr(l),{onClose:v}=h;return R.useEffect(()=>(document.addEventListener(nf,v),()=>document.removeEventListener(nf,v)),[v]),R.useEffect(()=>{if(h.trigger){const y=b=>{b.target?.contains(h.trigger)&&v()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,v]),k.jsx(Ey,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:y=>y.preventDefault(),onDismiss:v,children:k.jsxs(GR,{"data-state":h.stateAttribute,...m,...g,ref:o,style:{...g.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[k.jsx(cC,{children:s}),k.jsx(sC,{scope:l,isInside:!0,children:k.jsx(eC,{id:h.contentId,role:"tooltip",children:c||s})})]})})});av.displayName=Bi;var lv="TooltipArrow",ov=R.forwardRef((a,o)=>{const{__scopeTooltip:l,...s}=a,c=rr(l);return rC(lv,l).isInside?null:k.jsx(YR,{...c,...s,ref:o})});ov.displayName=lv;function uC(a,o){const l=Math.abs(o.top-a.y),s=Math.abs(o.bottom-a.y),c=Math.abs(o.right-a.x),f=Math.abs(o.left-a.x);switch(Math.min(l,s,c,f)){case f:return"left";case c:return"right";case l:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function fC(a,o,l=5){const s=[];switch(o){case"top":s.push({x:a.x-l,y:a.y+l},{x:a.x+l,y:a.y+l});break;case"bottom":s.push({x:a.x-l,y:a.y-l},{x:a.x+l,y:a.y-l});break;case"left":s.push({x:a.x+l,y:a.y-l},{x:a.x+l,y:a.y+l});break;case"right":s.push({x:a.x-l,y:a.y-l},{x:a.x-l,y:a.y+l});break}return s}function dC(a){const{top:o,right:l,bottom:s,left:c}=a;return[{x:c,y:o},{x:l,y:o},{x:l,y:s},{x:c,y:s}]}function hC(a,o){const{x:l,y:s}=a;let c=!1;for(let f=0,d=o.length-1;f<o.length;d=f++){const g=o[f],h=o[d],m=g.x,v=g.y,y=h.x,b=h.y;v>s!=b>s&&l<(y-m)*(s-v)/(b-v)+m&&(c=!c)}return c}function mC(a){const o=a.slice();return o.sort((l,s)=>l.x<s.x?-1:l.x>s.x?1:l.y<s.y?-1:l.y>s.y?1:0),pC(o)}function pC(a){if(a.length<=1)return a.slice();const o=[];for(let s=0;s<a.length;s++){const c=a[s];for(;o.length>=2;){const f=o[o.length-1],d=o[o.length-2];if((f.x-d.x)*(c.y-d.y)>=(f.y-d.y)*(c.x-d.x))o.pop();else break}o.push(c)}o.pop();const l=[];for(let s=a.length-1;s>=0;s--){const c=a[s];for(;l.length>=2;){const f=l[l.length-1],d=l[l.length-2];if((f.x-d.x)*(c.y-d.y)>=(f.y-d.y)*(c.x-d.x))l.pop();else break}l.push(c)}return l.pop(),o.length===1&&l.length===1&&o[0].x===l[0].x&&o[0].y===l[0].y?o:o.concat(l)}var gC=Iy,yC=ev,vC=tv,bC=nv,SC=av,xC=ov;function wC({delayDuration:a=0,...o}){return k.jsx(gC,{"data-slot":"tooltip-provider",delayDuration:a,...o})}function Og({...a}){return k.jsx(wC,{children:k.jsx(yC,{"data-slot":"tooltip",...a})})}function Dg({...a}){return k.jsx(vC,{"data-slot":"tooltip-trigger",...a})}function zg({className:a,sideOffset:o=0,children:l,...s}){return k.jsx(bC,{children:k.jsxs(SC,{"data-slot":"tooltip-content",sideOffset:o,className:tr("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",a),...s,children:[l,k.jsx(xC,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const _C="/assets/logo-Cyfm06Ym.png";function RC({className:a}){const o=xy(),l=y1(),s=[{id:"chat",icon:Dw,label:o.navigation.chat,path:"/chat"},{id:"workflows",icon:Mw,label:o.navigation.workflows,path:"/workflows"},{id:"history",icon:Tw,label:o.navigation.history||"历史记录",path:"/history"},{id:"scheduled-tasks",icon:bw,label:o.navigation.scheduledTasks||"定时任务",path:"/scheduled-tasks"},{id:"logs",icon:xw,label:o.navigation.logs,path:"/logs"}];return k.jsx("nav",{className:`w-16 h-full flex flex-col bg-white dark:bg-slate-950 border-r border-slate-200 dark:border-slate-800 ${a||""}`,children:k.jsxs("div",{className:"flex flex-col items-center py-4 gap-2",children:[k.jsx("div",{className:"mb-4 pb-4 border-b border-slate-200 dark:border-slate-800 w-full flex justify-center",children:k.jsxs(Og,{children:[k.jsx(Dg,{asChild:!0,children:k.jsx(Ys,{to:"/chat",className:"block",children:k.jsx("img",{src:_C,alt:"AutoGLM Logo",className:"w-10 h-10 object-contain cursor-pointer hover:opacity-80 transition-opacity"})})}),k.jsx(zg,{side:"right",sideOffset:8,children:"返回首页"})]})}),s.map(c=>{const f=c.icon,d=l({to:c.path});return k.jsxs(Og,{children:[k.jsx(Dg,{asChild:!0,children:k.jsx(Ys,{to:c.path,className:`w-10 h-10 rounded-lg transition-all flex items-center justify-center ${d?"bg-[#1d9bf0]/10 text-[#1d9bf0] hover:bg-[#1d9bf0]/20":"text-slate-600 dark:text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800"}`,children:k.jsx(f,{className:"w-5 h-5"})})}),k.jsx(zg,{side:"right",sideOffset:8,children:c.label})]},c.id)})]})})}const pa=r1({component:EC});function CC(){const a="1.5.0",[o,l]=R.useState(null),[s,c]=R.useState(!1),{locale:f,setLocale:d,localeName:g}=Vw(),h=xy(),[m,v]=R.useState(null),[y,b]=R.useState(!1);R.useEffect(()=>{$g().then(H=>{l(H.version),H.version!==a?c(!0):c(!1)}).catch(()=>l(null)),(async()=>{const H=sessionStorage.getItem("version_check");if(H)try{const{data:B,timestamp:P}=JSON.parse(H);if(Date.now()-P<36e5){v(B),b(B.has_update);return}}catch(B){console.log(B)}try{const B=await Ig();v(B),sessionStorage.setItem("version_check",JSON.stringify({data:B,timestamp:Date.now()})),b(B.has_update)}catch(B){console.error("Failed to check for updates:",B)}})()},[a]);const x=o??a,w=s&&o?h.footer.versionMismatchDetail.replace("{frontend}",a).replace("{backend}",o):h.footer.buildVersion.replace("{version}",a),A=()=>{d(f==="en"?"zh":"en")},T=()=>{m?.release_url&&window.open(m.release_url,"_blank","noopener,noreferrer")};return k.jsx("footer",{className:"mt-auto border-t border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-950",children:k.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-3 flex flex-col sm:flex-row items-center justify-between gap-2 text-sm",children:[k.jsxs("div",{className:"flex items-center gap-2 text-slate-500 dark:text-slate-400",children:[k.jsxs("span",{className:"flex items-center gap-1.5",title:w,children:["v",x,y&&m?.latest_version&&k.jsx(mg,{variant:"warning",className:"cursor-pointer hover:opacity-80 transition-opacity",onClick:T,title:h.footer.updateAvailable.replace("{version}",m.latest_version),children:h.footer.newVersion}),s&&o&&k.jsx(mg,{variant:"warning",children:h.footer.versionMismatch})]}),k.jsx(Yu,{orientation:"vertical",className:"h-4 bg-slate-200 dark:bg-slate-700"}),k.jsxs("button",{onClick:A,className:"hover:text-[#1d9bf0] transition-colors flex items-center gap-1",title:"Switch language",children:[k.jsx(Cw,{className:"w-4 h-4"}),g]}),k.jsx(Yu,{orientation:"vertical",className:"h-4 bg-slate-200 dark:bg-slate-700"}),k.jsx(e_,{}),k.jsx(Yu,{orientation:"vertical",className:"h-4 bg-slate-200 dark:bg-slate-700"}),k.jsxs("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[#1d9bf0] transition-colors flex items-center gap-1",children:[k.jsx(_w,{className:"w-4 h-4"}),"GitHub"]})]}),k.jsx("div",{className:"text-center",children:k.jsxs("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"text-slate-500 dark:text-slate-400 hover:text-[#1d9bf0] transition-colors",children:["Star"," ",k.jsx("span",{className:"font-semibold",role:"img","aria-label":"star",children:"⭐"})," ","on GitHub"]})})]})})}function EC(){return k.jsxs("div",{className:"h-screen flex flex-col overflow-hidden",children:[k.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[k.jsx(RC,{}),k.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[k.jsx("div",{className:"flex-1 overflow-auto",children:k.jsx(Jg,{})}),k.jsx(CC,{})]})]}),k.jsx(R1,{position:"bottom-right"})]})}const TC=()=>Ya(()=>import("./workflows-CYFs6ssC.js"),__vite__mapDeps([0,1,2,3,4])),AC=Mn("/workflows")({component:Ga(TC,"component")}),MC=()=>Ya(()=>import("./scheduled-tasks-MyqGJvy_.js"),__vite__mapDeps([5,1,3,6,7,4])),OC=Mn("/scheduled-tasks")({component:Ga(MC,"component")}),DC=()=>Ya(()=>import("./logs-eoFxn5of.js"),__vite__mapDeps([8,9])),zC=Mn("/logs")({component:Ga(DC,"component")}),LC=()=>Ya(()=>import("./history-DFBv7TGc.js"),__vite__mapDeps([10,3,6,7])),NC=Mn("/history")({component:Ga(LC,"component")}),kC=()=>Ya(()=>import("./chat-C0L2gQYG.js"),__vite__mapDeps([11,3,1,9,7,2])),UC=Mn("/chat")({component:Ga(kC,"component"),validateSearch:a=>{const o=a.mode;return{serial:typeof a.serial=="string"?a.serial:void 0,mode:o==="classic"||o==="chatkit"?o:void 0}}}),jC=()=>Ya(()=>import("./about-BQm96DAl.js"),[]),BC=Mn("/about")({component:Ga(jC,"component")}),HC=()=>Ya(()=>import("./index-CmZSnDqc.js"),[]),qC=Mn("/")({component:Ga(HC,"component")}),VC=AC.update({id:"/workflows",path:"/workflows",getParentRoute:()=>pa}),GC=OC.update({id:"/scheduled-tasks",path:"/scheduled-tasks",getParentRoute:()=>pa}),YC=zC.update({id:"/logs",path:"/logs",getParentRoute:()=>pa}),PC=NC.update({id:"/history",path:"/history",getParentRoute:()=>pa}),XC=UC.update({id:"/chat",path:"/chat",getParentRoute:()=>pa}),QC=BC.update({id:"/about",path:"/about",getParentRoute:()=>pa}),ZC=qC.update({id:"/",path:"/",getParentRoute:()=>pa}),KC={IndexRoute:ZC,AboutRoute:QC,ChatRoute:XC,HistoryRoute:PC,LogsRoute:YC,ScheduledTasksRoute:GC,WorkflowsRoute:VC},WC=pa._addFileChildren(KC)._addFileTypes();function FC({children:a,...o}){return k.jsx(Qw,{...o,children:a})}const JC=v1({routeTree:WC,defaultPreload:"intent",scrollRestoration:!0}),Zu=document.getElementById("app");Zu&&!Zu.innerHTML&&Ub.createRoot(Zu).render(k.jsx(FC,{attribute:"class",defaultTheme:"light",enableSystem:!1,disableTransitionOnChange:!0,children:k.jsx(qw,{children:k.jsx(x1,{router:JC})})}));export{fa as $,S_ as A,Iw as B,bw as C,Tn as D,WR as E,xw as F,nr as G,Af as H,$C as I,lf as J,K1 as K,Z1 as L,W1 as M,Q1 as N,O1 as O,ma as P,D1 as Q,Ui as R,Yu as S,Og as T,z1 as U,L1 as V,B1 as W,H1 as X,G1 as Y,V1 as Z,q1 as _,$1 as a,k1 as a0,U1 as a1,j1 as a2,Tw as a3,Mw as a4,C1 as a5,Ya as a6,Dw as a7,UC as a8,gf as a9,E1 as aa,Y1 as ab,P1 as ac,X1 as ad,M1 as ae,A1 as af,bx as ag,Vy as ah,qR as ai,VR as aj,Fy as ak,Ey as al,GR as am,YR as an,tE as ao,eE as ap,tr as b,J1 as c,I1 as d,ix as e,mg as f,T1 as g,cx as h,rx as i,k as j,ox as k,F1 as l,lx as m,sx as n,zn as o,tx as p,ax as q,R as r,nx as s,Dg as t,xy as u,zg as v,N1 as w,_y as x,Pa as y,n_ as z};