@oh-my-pi/omp-stats 18.3.5 → 18.4.0

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 (192) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +13 -11
  3. package/build.ts +5 -49
  4. package/dist/client/index.css +1 -1
  5. package/dist/client/index.html +2 -2
  6. package/dist/client/index.js +105 -126
  7. package/dist/types/aggregator.d.ts +25 -22
  8. package/dist/types/client/api.d.ts +11 -7
  9. package/dist/types/client/app/LiveChip.d.ts +2 -0
  10. package/dist/types/client/app/Shell.d.ts +16 -0
  11. package/dist/types/client/app/ThemeToggle.d.ts +1 -0
  12. package/dist/types/client/app/nav.d.ts +18 -0
  13. package/dist/types/client/charts/BarList.d.ts +17 -0
  14. package/dist/types/client/charts/Chart.d.ts +49 -0
  15. package/dist/types/client/charts/Legend.d.ts +16 -0
  16. package/dist/types/client/charts/ShareBar.d.ts +11 -0
  17. package/dist/types/client/charts/Sparkline.d.ts +11 -0
  18. package/dist/types/client/charts/TimeChart.d.ts +9 -0
  19. package/dist/types/client/charts/index.d.ts +7 -0
  20. package/dist/types/client/charts/types.d.ts +25 -0
  21. package/dist/types/client/charts/useWidth.d.ts +3 -0
  22. package/dist/types/client/data/colors.d.ts +25 -0
  23. package/dist/types/client/data/formatters.d.ts +9 -1
  24. package/dist/types/client/data/live.d.ts +29 -0
  25. package/dist/types/client/data/query.d.ts +35 -0
  26. package/dist/types/client/data/range.d.ts +31 -0
  27. package/dist/types/client/data/series.d.ts +28 -0
  28. package/dist/types/client/data/useHashRoute.d.ts +18 -4
  29. package/dist/types/client/data/view-models.d.ts +111 -28
  30. package/dist/types/client/index.d.ts +0 -1
  31. package/dist/types/client/routes/CostsRoute.d.ts +2 -2
  32. package/dist/types/client/routes/ErrorsRoute.d.ts +2 -2
  33. package/dist/types/client/routes/FrustrationRoute.d.ts +7 -0
  34. package/dist/types/client/routes/GainRoute.d.ts +1 -2
  35. package/dist/types/client/routes/ModelsRoute.d.ts +2 -2
  36. package/dist/types/client/routes/OverviewRoute.d.ts +1 -2
  37. package/dist/types/client/routes/ProjectsRoute.d.ts +2 -2
  38. package/dist/types/client/routes/ProvidersRoute.d.ts +2 -2
  39. package/dist/types/client/routes/RequestsRoute.d.ts +1 -2
  40. package/dist/types/client/routes/ToolsRoute.d.ts +2 -2
  41. package/dist/types/client/routes/TracesRoute.d.ts +2 -2
  42. package/dist/types/client/routes/index.d.ts +1 -1
  43. package/dist/types/client/traces/AggregatesPanel.d.ts +4 -3
  44. package/dist/types/client/traces/SummaryStrip.d.ts +2 -2
  45. package/dist/types/client/traces/trace-colors.d.ts +18 -12
  46. package/dist/types/client/ui/Badge.d.ts +19 -0
  47. package/dist/types/client/ui/Card.d.ts +25 -0
  48. package/dist/types/client/ui/Drawer.d.ts +25 -0
  49. package/dist/types/client/ui/JsonBlock.d.ts +2 -2
  50. package/dist/types/client/ui/Modal.d.ts +23 -0
  51. package/dist/types/client/ui/RequestDrawer.d.ts +10 -1
  52. package/dist/types/client/ui/SearchInput.d.ts +8 -0
  53. package/dist/types/client/ui/Segmented.d.ts +15 -0
  54. package/dist/types/client/ui/Stat.d.ts +36 -0
  55. package/dist/types/client/ui/States.d.ts +41 -0
  56. package/dist/types/client/ui/Table.d.ts +48 -0
  57. package/dist/types/client/ui/index.d.ts +9 -10
  58. package/dist/types/db.d.ts +90 -106
  59. package/dist/types/frustration.d.ts +70 -0
  60. package/dist/types/index.d.ts +3 -1
  61. package/dist/types/live.d.ts +30 -0
  62. package/dist/types/rollup.d.ts +115 -0
  63. package/dist/types/server.d.ts +6 -1
  64. package/dist/types/shared-types.d.ts +116 -56
  65. package/dist/types/types.d.ts +4 -0
  66. package/dist/types/user-metrics.d.ts +8 -0
  67. package/package.json +7 -13
  68. package/src/aggregator.ts +276 -211
  69. package/src/client/App.tsx +38 -80
  70. package/src/client/api.ts +65 -7
  71. package/src/client/app/LiveChip.tsx +97 -0
  72. package/src/client/app/Shell.tsx +181 -0
  73. package/src/client/app/ThemeToggle.tsx +5 -2
  74. package/src/client/app/nav.ts +78 -0
  75. package/src/client/charts/BarList.tsx +48 -0
  76. package/src/client/charts/Chart.tsx +388 -0
  77. package/src/client/charts/Legend.tsx +61 -0
  78. package/src/client/charts/ShareBar.tsx +26 -0
  79. package/src/client/charts/Sparkline.tsx +38 -0
  80. package/src/client/charts/TimeChart.tsx +22 -0
  81. package/src/client/charts/index.ts +7 -0
  82. package/src/client/charts/types.ts +27 -0
  83. package/src/client/charts/useWidth.ts +19 -0
  84. package/src/client/data/colors.ts +45 -0
  85. package/src/client/data/formatters.ts +30 -9
  86. package/src/client/data/live.tsx +85 -0
  87. package/src/client/data/query.ts +166 -0
  88. package/src/client/data/range.ts +82 -0
  89. package/src/client/data/series.ts +85 -0
  90. package/src/client/data/useHashRoute.ts +41 -83
  91. package/src/client/data/view-models.ts +347 -140
  92. package/src/client/index.tsx +3 -6
  93. package/src/client/routes/CostsRoute.tsx +394 -222
  94. package/src/client/routes/ErrorsRoute.tsx +401 -98
  95. package/src/client/routes/FrustrationRoute.tsx +924 -0
  96. package/src/client/routes/GainRoute.tsx +209 -206
  97. package/src/client/routes/ModelsRoute.tsx +540 -431
  98. package/src/client/routes/OverviewRoute.tsx +283 -311
  99. package/src/client/routes/ProjectsRoute.tsx +298 -156
  100. package/src/client/routes/ProvidersRoute.tsx +948 -416
  101. package/src/client/routes/RequestsRoute.tsx +295 -107
  102. package/src/client/routes/ToolsRoute.tsx +495 -398
  103. package/src/client/routes/TracesRoute.tsx +136 -117
  104. package/src/client/routes/costs.css +24 -0
  105. package/src/client/routes/errors.css +60 -0
  106. package/src/client/routes/frustration.css +123 -0
  107. package/src/client/routes/index.ts +1 -1
  108. package/src/client/routes/models.css +43 -0
  109. package/src/client/routes/projects.css +6 -0
  110. package/src/client/routes/providers.css +28 -0
  111. package/src/client/routes/tools.css +14 -0
  112. package/src/client/styles.css +1396 -1299
  113. package/src/client/traces/AggregatesPanel.tsx +55 -74
  114. package/src/client/traces/Minimap.tsx +6 -15
  115. package/src/client/traces/SpanDrawer.tsx +128 -194
  116. package/src/client/traces/SummaryStrip.tsx +21 -24
  117. package/src/client/traces/TimelineCanvas.tsx +27 -44
  118. package/src/client/traces/TraceView.tsx +175 -130
  119. package/src/client/traces/TranscriptList.tsx +13 -41
  120. package/src/client/traces/trace-colors.ts +60 -53
  121. package/src/client/traces/traces.css +279 -0
  122. package/src/client/ui/Badge.tsx +29 -0
  123. package/src/client/ui/Card.tsx +61 -0
  124. package/src/client/ui/Drawer.tsx +93 -0
  125. package/src/client/ui/JsonBlock.tsx +26 -44
  126. package/src/client/ui/Modal.tsx +106 -0
  127. package/src/client/ui/RequestDrawer.tsx +163 -188
  128. package/src/client/ui/SearchInput.tsx +25 -0
  129. package/src/client/ui/Segmented.tsx +61 -0
  130. package/src/client/ui/Stat.tsx +104 -0
  131. package/src/client/ui/States.tsx +81 -0
  132. package/src/client/ui/Table.tsx +229 -0
  133. package/src/client/ui/index.ts +9 -10
  134. package/src/client/ui/modal.css +54 -0
  135. package/src/client/ui/request-drawer.css +40 -0
  136. package/src/db.ts +379 -983
  137. package/src/frustration.ts +473 -0
  138. package/src/index.ts +22 -22
  139. package/src/live.ts +259 -0
  140. package/src/parser.ts +55 -66
  141. package/src/rollup.ts +951 -0
  142. package/src/server.ts +123 -40
  143. package/src/shared-types.ts +120 -56
  144. package/src/trace.ts +14 -7
  145. package/src/types.ts +4 -0
  146. package/src/user-metrics.ts +13 -0
  147. package/dist/client/styles.css +0 -1976
  148. package/dist/types/client/app/AppLayout.d.ts +0 -16
  149. package/dist/types/client/app/NavRail.d.ts +0 -7
  150. package/dist/types/client/app/RangeControl.d.ts +0 -7
  151. package/dist/types/client/app/SyncButton.d.ts +0 -14
  152. package/dist/types/client/app/TopBar.d.ts +0 -15
  153. package/dist/types/client/app/routes.d.ts +0 -12
  154. package/dist/types/client/components/AgentTokenShare.d.ts +0 -5
  155. package/dist/types/client/components/chart-shared.d.ts +0 -178
  156. package/dist/types/client/components/models-table-shared.d.ts +0 -175
  157. package/dist/types/client/components/range-meta.d.ts +0 -21
  158. package/dist/types/client/data/charts.d.ts +0 -1
  159. package/dist/types/client/data/useResource.d.ts +0 -13
  160. package/dist/types/client/routes/BehaviorRoute.d.ts +0 -7
  161. package/dist/types/client/ui/AsyncBoundary.d.ts +0 -12
  162. package/dist/types/client/ui/DataTable.d.ts +0 -17
  163. package/dist/types/client/ui/EmptyState.d.ts +0 -7
  164. package/dist/types/client/ui/ErrorState.d.ts +0 -6
  165. package/dist/types/client/ui/MetricCluster.d.ts +0 -5
  166. package/dist/types/client/ui/Panel.d.ts +0 -7
  167. package/dist/types/client/ui/SegmentedControl.d.ts +0 -12
  168. package/dist/types/client/ui/Skeleton.d.ts +0 -8
  169. package/dist/types/client/ui/StatusPill.d.ts +0 -7
  170. package/src/client/app/AppLayout.tsx +0 -93
  171. package/src/client/app/NavRail.tsx +0 -44
  172. package/src/client/app/RangeControl.tsx +0 -39
  173. package/src/client/app/SyncButton.tsx +0 -75
  174. package/src/client/app/TopBar.tsx +0 -73
  175. package/src/client/app/routes.ts +0 -93
  176. package/src/client/components/AgentTokenShare.tsx +0 -68
  177. package/src/client/components/chart-shared.tsx +0 -273
  178. package/src/client/components/models-table-shared.tsx +0 -255
  179. package/src/client/components/range-meta.ts +0 -73
  180. package/src/client/data/charts.ts +0 -14
  181. package/src/client/data/useResource.ts +0 -154
  182. package/src/client/routes/BehaviorRoute.tsx +0 -623
  183. package/src/client/ui/AsyncBoundary.tsx +0 -54
  184. package/src/client/ui/DataTable.tsx +0 -122
  185. package/src/client/ui/EmptyState.tsx +0 -16
  186. package/src/client/ui/ErrorState.tsx +0 -25
  187. package/src/client/ui/MetricCluster.tsx +0 -92
  188. package/src/client/ui/Panel.tsx +0 -24
  189. package/src/client/ui/SegmentedControl.tsx +0 -36
  190. package/src/client/ui/Skeleton.tsx +0 -17
  191. package/src/client/ui/StatusPill.tsx +0 -15
  192. package/tailwind.config.js +0 -40
@@ -1,76 +1,76 @@
1
- var kE=Object.create;var{getPrototypeOf:ME,defineProperty:$w,getOwnPropertyNames:IE}=Object;var Ww=Object.prototype.hasOwnProperty;function AE(a){return this[a]}var RE,DE,Q=(a,o,s)=>{var r=a!=null&&typeof a==="object";if(r){var l=o?RE??=new WeakMap:DE??=new WeakMap,u=l.get(a);if(u)return u}s=a!=null?kE(ME(a)):{};let d=o||!a||!a.__esModule||!Ww.call(a,"default")?$w(s,"default",{value:a,enumerable:!0}):s;if(a&&typeof a==="object"||typeof a==="function"){for(let p of IE(a))if(!Ww.call(d,p))$w(d,p,{get:AE.bind(a,p),enumerable:!0})}if(r)l.set(a,d);return d};var Gr=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var gI=Gr(function(Uu){(function(){function a(){if(H=!1,Y){var K=Uu.unstable_now();se=K;var pe=!0;try{e:{B=!1,z&&(z=!1,j(J),J=-1),A=!0;var ye=w;try{t:{u(K);for(I=s(v);I!==null&&!(I.expirationTime>K&&p());){var Ue=I.callback;if(typeof Ue==="function"){I.callback=null,w=I.priorityLevel;var He=Ue(I.expirationTime<=K);if(K=Uu.unstable_now(),typeof He==="function"){I.callback=He,u(K),pe=!0;break t}I===s(v)&&r(v),u(K)}else r(v);I=s(v)}if(I!==null)pe=!0;else{var k=s(T);k!==null&&h(d,k.startTime-K),pe=!1}}break e}finally{I=null,w=ye,A=!1}pe=void 0}}finally{pe?ge():Y=!1}}}function o(K,pe){var ye=K.length;K.push(pe);e:for(;0<ye;){var Ue=ye-1>>>1,He=K[Ue];if(0<l(He,pe))K[Ue]=pe,K[ye]=He,ye=Ue;else break e}}function s(K){return K.length===0?null:K[0]}function r(K){if(K.length===0)return null;var pe=K[0],ye=K.pop();if(ye!==pe){K[0]=ye;e:for(var Ue=0,He=K.length,k=He>>>1;Ue<k;){var W=2*(Ue+1)-1,ee=K[W],ne=W+1,te=K[ne];if(0>l(ee,ye))ne<He&&0>l(te,ee)?(K[Ue]=te,K[ne]=ye,Ue=ne):(K[Ue]=ee,K[W]=ye,Ue=W);else if(ne<He&&0>l(te,ye))K[Ue]=te,K[ne]=ye,Ue=ne;else break e}}return pe}function l(K,pe){var ye=K.sortIndex-pe.sortIndex;return ye!==0?ye:K.id-pe.id}function u(K){for(var pe=s(T);pe!==null;){if(pe.callback===null)r(T);else if(pe.startTime<=K)r(T),pe.sortIndex=pe.expirationTime,o(v,pe);else break;pe=s(T)}}function d(K){if(z=!1,u(K),!B)if(s(v)!==null)B=!0,Y||(Y=!0,ge());else{var pe=s(T);pe!==null&&h(d,pe.startTime-K)}}function p(){return H?!0:Uu.unstable_now()-se<X?!1:!0}function h(K,pe){J=q(function(){K(Uu.unstable_now())},pe)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Uu.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var g=performance;Uu.unstable_now=function(){return g.now()}}else{var y=Date,b=y.now();Uu.unstable_now=function(){return y.now()-b}}var v=[],T=[],M=1,I=null,w=3,A=!1,B=!1,z=!1,H=!1,q=typeof setTimeout==="function"?setTimeout:null,j=typeof clearTimeout==="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null,Y=!1,J=-1,X=5,se=-1;if(typeof G==="function")var ge=function(){G(a)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,Se=be.port2;be.port1.onmessage=a,ge=function(){Se.postMessage(null)}}else ge=function(){q(a,0)};Uu.unstable_IdlePriority=5,Uu.unstable_ImmediatePriority=1,Uu.unstable_LowPriority=4,Uu.unstable_NormalPriority=3,Uu.unstable_Profiling=null,Uu.unstable_UserBlockingPriority=2,Uu.unstable_cancelCallback=function(K){K.callback=null},Uu.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<K?Math.floor(1000/K):5},Uu.unstable_getCurrentPriorityLevel=function(){return w},Uu.unstable_next=function(K){switch(w){case 1:case 2:case 3:var pe=3;break;default:pe=w}var ye=w;w=pe;try{return K()}finally{w=ye}},Uu.unstable_requestPaint=function(){H=!0},Uu.unstable_runWithPriority=function(K,pe){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var ye=w;w=K;try{return pe()}finally{w=ye}},Uu.unstable_scheduleCallback=function(K,pe,ye){var Ue=Uu.unstable_now();switch(typeof ye==="object"&&ye!==null?(ye=ye.delay,ye=typeof ye==="number"&&0<ye?Ue+ye:Ue):ye=Ue,K){case 1:var He=-1;break;case 2:He=250;break;case 5:He=1073741823;break;case 4:He=1e4;break;default:He=5000}return He=ye+He,K={id:M++,callback:pe,priorityLevel:K,startTime:ye,expirationTime:He,sortIndex:-1},ye>Ue?(K.sortIndex=ye,o(T,K),s(v)===null&&K===s(T)&&(z?(j(J),J=-1):z=!0,h(d,ye-Ue))):(K.sortIndex=He,o(v,K),B||A||(B=!0,Y||(Y=!0,ge()))),K},Uu.unstable_shouldYield=p,Uu.unstable_wrapCallback=function(K){var pe=w;return function(){var ye=w;w=pe;try{return K.apply(this,arguments)}finally{w=ye}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var dt=Gr(function(UN,wm){(function(){function a(C,N){Object.defineProperty(r.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",N[0],N[1])}})}function o(C){if(C===null||typeof C!=="object")return null;return C=er&&C[er]||C["@@iterator"],typeof C==="function"?C:null}function s(C,N){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var oe=C+"."+N;me[oe]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",N,C),me[oe]=!0)}function r(C,N,oe){this.props=C,this.context=N,this.refs=tr,this.updater=oe||cs}function l(){}function u(C,N,oe){this.props=C,this.context=N,this.refs=tr,this.updater=oe||cs}function d(){}function p(C){return""+C}function h(C){try{p(C);var N=!1}catch(xe){N=!0}if(N){N=console;var oe=N.error,ue=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return oe.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ue),p(C)}}function g(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===Ku?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case He:return"Fragment";case W:return"Profiler";case k:return"StrictMode";case le:return"Suspense";case fe:return"SuspenseList";case Gt:return"Activity"}if(typeof C==="object")switch(typeof C.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case Ue:return"Portal";case ne:return C.displayName||"Context";case ee:return(C._context.displayName||"Context")+".Consumer";case te:var N=C.render;return C=C.displayName,C||(C=N.displayName||N.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case et:return N=C.displayName||null,N!==null?N:g(C.type)||"Memo";case tt:N=C._payload,C=C._init;try{return g(C(N))}catch(oe){}}return null}function y(C){if(C===He)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===tt)return"<...>";try{var N=g(C);return N?"<"+N+">":"<...>"}catch(oe){return"<...>"}}function b(){var C=Ve.A;return C===null?null:C.getOwner()}function v(){return Error("react-stack-top-frame")}function T(C){if(wl.call(C,"key")){var N=Object.getOwnPropertyDescriptor(C,"key").get;if(N&&N.isReactWarning)return!1}return C.key!==void 0}function M(C,N){function oe(){Df||(Df=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",N))}oe.isReactWarning=!0,Object.defineProperty(C,"key",{get:oe,configurable:!0})}function I(){var C=g(this.type);return pi[C]||(pi[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function w(C,N,oe,ue,xe,Ne){var ze=oe.ref;return C={$$typeof:ye,type:C,key:N,props:oe,_owner:ue},(ze!==void 0?ze:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:I}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:xe}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function A(C,N){return N=w(C.type,N,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(N._store.validated=C._store.validated),N}function B(C){z(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===tt&&(C._payload.status==="fulfilled"?z(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function z(C){return typeof C==="object"&&C!==null&&C.$$typeof===ye}function H(C){var N={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(oe){return N[oe]})}function q(C,N){return typeof C==="object"&&C!==null&&C.key!=null?(h(C.key),H(""+C.key)):N.toString(36)}function j(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status==="string"?C.then(d,d):(C.status="pending",C.then(function(N){C.status==="pending"&&(C.status="fulfilled",C.value=N)},function(N){C.status==="pending"&&(C.status="rejected",C.reason=N)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function G(C,N,oe,ue,xe){var Ne=typeof C;if(Ne==="undefined"||Ne==="boolean")C=null;var ze=!1;if(C===null)ze=!0;else switch(Ne){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(C.$$typeof){case ye:case Ue:ze=!0;break;case tt:return ze=C._init,G(ze(C._payload),N,oe,ue,xe)}}if(ze){ze=C,xe=xe(ze);var pt=ue===""?"."+q(ze,0):ue;return Ct(xe)?(oe="",pt!=null&&(oe=pt.replace(Ml,"$&/")+"/"),G(xe,N,oe,"",function(Fa){return Fa})):xe!=null&&(z(xe)&&(xe.key!=null&&(ze&&ze.key===xe.key||h(xe.key)),oe=A(xe,oe+(xe.key==null||ze&&ze.key===xe.key?"":(""+xe.key).replace(Ml,"$&/")+"/")+pt),ue!==""&&ze!=null&&z(ze)&&ze.key==null&&ze._store&&!ze._store.validated&&(oe._store.validated=2),xe=oe),N.push(xe)),1}if(ze=0,pt=ue===""?".":ue+":",Ct(C))for(var Ae=0;Ae<C.length;Ae++)ue=C[Ae],Ne=pt+q(ue,Ae),ze+=G(ue,N,oe,Ne,xe);else if(Ae=o(C),typeof Ae==="function")for(Ae===C.entries&&(kl||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),kl=!0),C=Ae.call(C),Ae=0;!(ue=C.next()).done;)ue=ue.value,Ne=pt+q(ue,Ae++),ze+=G(ue,N,oe,Ne,xe);else if(Ne==="object"){if(typeof C.then==="function")return G(j(C),N,oe,ue,xe);throw N=String(C),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return ze}function Y(C,N,oe){if(C==null)return C;var ue=[],xe=0;return G(C,ue,"","",function(Ne){return N.call(oe,Ne,xe++)}),ue}function J(C){if(C._status===-1){var N=C._ioInfo;N!=null&&(N.start=N.end=performance.now()),N=C._result;var oe=N();if(oe.then(function(xe){if(C._status===0||C._status===-1){C._status=1,C._result=xe;var Ne=C._ioInfo;Ne!=null&&(Ne.end=performance.now()),oe.status===void 0&&(oe.status="fulfilled",oe.value=xe)}},function(xe){if(C._status===0||C._status===-1){C._status=2,C._result=xe;var Ne=C._ioInfo;Ne!=null&&(Ne.end=performance.now()),oe.status===void 0&&(oe.status="rejected",oe.reason=xe)}}),N=C._ioInfo,N!=null){N.value=oe;var ue=oe.displayName;typeof ue==="string"&&(N.name=ue)}C._status===-1&&(C._status=0,C._result=oe)}if(C._status===1)return N=C._result,N===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var VM=Object.create;var{getPrototypeOf:$M,defineProperty:L1,getOwnPropertyNames:XM}=Object;var C1=Object.prototype.hasOwnProperty;function jM(r){return this[r]}var YM,QM,Y=(r,i,u)=>{var c=r!=null&&typeof r==="object";if(c){var f=i?YM??=new WeakMap:QM??=new WeakMap,v=f.get(r);if(v)return v}u=r!=null?VM($M(r)):{};let p=i||!r||!r.__esModule||!C1.call(r,"default")?L1(u,"default",{value:r,enumerable:!0}):u;if(r&&typeof r==="object"||typeof r==="function"){for(let b of XM(r))if(!C1.call(p,b))L1(p,b,{get:jM.bind(r,b),enumerable:!0})}if(c)f.set(r,p);return p};var Fs=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports);var k1=Fs(function(ui){(function(){function r(){if(N=!1,Z){var te=ui.unstable_now();ge=te;var ve=!0;try{e:{F=!1,K&&(K=!1,B(W),W=-1),z=!0;var ke=_;try{t:{v(te);for(D=u(C);D!==null&&!(D.expirationTime>te&&b());){var je=D.callback;if(typeof je==="function"){D.callback=null,_=D.priorityLevel;var ae=je(D.expirationTime<=te);if(te=ui.unstable_now(),typeof ae==="function"){D.callback=ae,v(te),ve=!0;break t}D===u(C)&&c(C),v(te)}else c(C);D=u(C)}if(D!==null)ve=!0;else{var P=u(R);P!==null&&S(p,P.startTime-te),ve=!1}}break e}finally{D=null,_=ke,z=!1}ve=void 0}}finally{ve?Ne():Z=!1}}}function i(te,ve){var ke=te.length;te.push(ve);e:for(;0<ke;){var je=ke-1>>>1,ae=te[je];if(0<f(ae,ve))te[je]=ve,te[ke]=ae,ke=je;else break e}}function u(te){return te.length===0?null:te[0]}function c(te){if(te.length===0)return null;var ve=te[0],ke=te.pop();if(ke!==ve){te[0]=ke;e:for(var je=0,ae=te.length,P=ae>>>1;je<P;){var ue=2*(je+1)-1,se=te[ue],ne=ue+1,pe=te[ne];if(0>f(se,ke))ne<ae&&0>f(pe,se)?(te[je]=pe,te[ne]=ke,je=ne):(te[je]=se,te[ue]=ke,je=ue);else if(ne<ae&&0>f(pe,ke))te[je]=pe,te[ne]=ke,je=ne;else break e}}return ve}function f(te,ve){var ke=te.sortIndex-ve.sortIndex;return ke!==0?ke:te.id-ve.id}function v(te){for(var ve=u(R);ve!==null;){if(ve.callback===null)c(R);else if(ve.startTime<=te)c(R),ve.sortIndex=ve.expirationTime,i(C,ve);else break;ve=u(R)}}function p(te){if(K=!1,v(te),!F)if(u(C)!==null)F=!0,Z||(Z=!0,Ne());else{var ve=u(R);ve!==null&&S(p,ve.startTime-te)}}function b(){return N?!0:ui.unstable_now()-ge<X?!1:!0}function S(te,ve){W=oe(function(){te(ui.unstable_now())},ve)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),ui.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var k=performance;ui.unstable_now=function(){return k.now()}}else{var h=Date,x=h.now();ui.unstable_now=function(){return h.now()-x}}var C=[],R=[],L=1,D=null,_=3,z=!1,F=!1,K=!1,N=!1,oe=typeof setTimeout==="function"?setTimeout:null,B=typeof clearTimeout==="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null,Z=!1,W=-1,X=5,ge=-1;if(typeof ee==="function")var Ne=function(){ee(r)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,Be=Ce.port2;Ce.port1.onmessage=r,Ne=function(){Be.postMessage(null)}}else Ne=function(){oe(r,0)};ui.unstable_IdlePriority=5,ui.unstable_ImmediatePriority=1,ui.unstable_LowPriority=4,ui.unstable_NormalPriority=3,ui.unstable_Profiling=null,ui.unstable_UserBlockingPriority=2,ui.unstable_cancelCallback=function(te){te.callback=null},ui.unstable_forceFrameRate=function(te){0>te||125<te?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<te?Math.floor(1000/te):5},ui.unstable_getCurrentPriorityLevel=function(){return _},ui.unstable_next=function(te){switch(_){case 1:case 2:case 3:var ve=3;break;default:ve=_}var ke=_;_=ve;try{return te()}finally{_=ke}},ui.unstable_requestPaint=function(){N=!0},ui.unstable_runWithPriority=function(te,ve){switch(te){case 1:case 2:case 3:case 4:case 5:break;default:te=3}var ke=_;_=te;try{return ve()}finally{_=ke}},ui.unstable_scheduleCallback=function(te,ve,ke){var je=ui.unstable_now();switch(typeof ke==="object"&&ke!==null?(ke=ke.delay,ke=typeof ke==="number"&&0<ke?je+ke:je):ke=je,te){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5000}return ae=ke+ae,te={id:L++,callback:ve,priorityLevel:te,startTime:ke,expirationTime:ae,sortIndex:-1},ke>je?(te.sortIndex=ke,i(R,te),u(C)===null&&te===u(R)&&(K?(B(W),W=-1):K=!0,S(p,ke-je))):(te.sortIndex=ae,i(C,te),F||z||(F=!0,Z||(Z=!0,Ne()))),te},ui.unstable_shouldYield=b,ui.unstable_wrapCallback=function(te){var ve=_;return function(){var ke=_;_=ve;try{return te.apply(this,arguments)}finally{_=ke}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ut=Fs(function(ZM,sm){(function(){function r(y,O){Object.defineProperty(c.prototype,y,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",O[0],O[1])}})}function i(y){if(y===null||typeof y!=="object")return null;return y=pa&&y[pa]||y["@@iterator"],typeof y==="function"?y:null}function u(y,O){y=(y=y.constructor)&&(y.displayName||y.name)||"ReactClass";var ie=y+"."+O;re[ie]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",O,y),re[ie]=!0)}function c(y,O,ie){this.props=y,this.context=O,this.refs=Kt,this.updater=ie||ma}function f(){}function v(y,O,ie){this.props=y,this.context=O,this.refs=Kt,this.updater=ie||ma}function p(){}function b(y){return""+y}function S(y){try{b(y);var O=!1}catch(we){O=!0}if(O){O=console;var ie=O.error,me=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return ie.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",me),b(y)}}function k(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===Et?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case ae:return"Fragment";case ue:return"Profiler";case P:return"StrictMode";case Lt:return"Suspense";case Ye:return"SuspenseList";case Mt:return"Activity"}if(typeof y==="object")switch(typeof y.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case je:return"Portal";case ne:return y.displayName||"Context";case se:return(y._context.displayName||"Context")+".Consumer";case pe:var O=y.render;return y=y.displayName,y||(y=O.displayName||O.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case V:return O=y.displayName||null,O!==null?O:k(y.type)||"Memo";case Pe:O=y._payload,y=y._init;try{return k(y(O))}catch(ie){}}return null}function h(y){if(y===ae)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===Pe)return"<...>";try{var O=k(y);return O?"<"+O+">":"<...>"}catch(ie){return"<...>"}}function x(){var y=Ee.A;return y===null?null:y.getOwner()}function C(){return Error("react-stack-top-frame")}function R(y){if(rl.call(y,"key")){var O=Object.getOwnPropertyDescriptor(y,"key").get;if(O&&O.isReactWarning)return!1}return y.key!==void 0}function L(y,O){function ie(){Vc||(Vc=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",O))}ie.isReactWarning=!0,Object.defineProperty(y,"key",{get:ie,configurable:!0})}function D(){var y=k(this.type);return Kr[y]||(Kr[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function _(y,O,ie,me,we,$e){var Xe=ie.ref;return y={$$typeof:ke,type:y,key:O,props:ie,_owner:me},(Xe!==void 0?Xe:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:D}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$e}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function z(y,O){return O=_(y.type,O,y.props,y._owner,y._debugStack,y._debugTask),y._store&&(O._store.validated=y._store.validated),O}function F(y){K(y)?y._store&&(y._store.validated=1):typeof y==="object"&&y!==null&&y.$$typeof===Pe&&(y._payload.status==="fulfilled"?K(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function K(y){return typeof y==="object"&&y!==null&&y.$$typeof===ke}function N(y){var O={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(ie){return O[ie]})}function oe(y,O){return typeof y==="object"&&y!==null&&y.key!=null?(S(y.key),N(""+y.key)):O.toString(36)}function B(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status==="string"?y.then(p,p):(y.status="pending",y.then(function(O){y.status==="pending"&&(y.status="fulfilled",y.value=O)},function(O){y.status==="pending"&&(y.status="rejected",y.reason=O)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function ee(y,O,ie,me,we){var $e=typeof y;if($e==="undefined"||$e==="boolean")y=null;var Xe=!1;if(y===null)Xe=!0;else switch($e){case"bigint":case"string":case"number":Xe=!0;break;case"object":switch(y.$$typeof){case ke:case je:Xe=!0;break;case Pe:return Xe=y._init,ee(Xe(y._payload),O,ie,me,we)}}if(Xe){Xe=y,we=we(Xe);var yt=me===""?"."+oe(Xe,0):me;return gt(we)?(ie="",yt!=null&&(ie=yt.replace(ru,"$&/")+"/"),ee(we,O,ie,"",function(Za){return Za})):we!=null&&(K(we)&&(we.key!=null&&(Xe&&Xe.key===we.key||S(we.key)),ie=z(we,ie+(we.key==null||Xe&&Xe.key===we.key?"":(""+we.key).replace(ru,"$&/")+"/")+yt),me!==""&&Xe!=null&&K(Xe)&&Xe.key==null&&Xe._store&&!Xe._store.validated&&(ie._store.validated=2),we=ie),O.push(we)),1}if(Xe=0,yt=me===""?".":me+":",gt(y))for(var Oe=0;Oe<y.length;Oe++)me=y[Oe],$e=yt+oe(me,Oe),Xe+=ee(me,O,ie,$e,we);else if(Oe=i(y),typeof Oe==="function")for(Oe===y.entries&&(nu||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),nu=!0),y=Oe.call(y),Oe=0;!(me=y.next()).done;)me=me.value,$e=yt+oe(me,Oe++),Xe+=ee(me,O,ie,$e,we);else if($e==="object"){if(typeof y.then==="function")return ee(B(y),O,ie,me,we);throw O=String(y),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return Xe}function Z(y,O,ie){if(y==null)return y;var me=[],we=0;return ee(y,me,"","",function($e){return O.call(ie,$e,we++)}),me}function W(y){if(y._status===-1){var O=y._ioInfo;O!=null&&(O.start=O.end=performance.now()),O=y._result;var ie=O();if(ie.then(function(we){if(y._status===0||y._status===-1){y._status=1,y._result=we;var $e=y._ioInfo;$e!=null&&($e.end=performance.now()),ie.status===void 0&&(ie.status="fulfilled",ie.value=we)}},function(we){if(y._status===0||y._status===-1){y._status=2,y._result=we;var $e=y._ioInfo;$e!=null&&($e.end=performance.now()),ie.status===void 0&&(ie.status="rejected",ie.reason=we)}}),O=y._ioInfo,O!=null){O.value=ie;var me=ie.displayName;typeof me==="string"&&(O.name=me)}y._status===-1&&(y._status=0,y._result=ie)}if(y._status===1)return O=y._result,O===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
5
5
 
6
- Did you accidentally put curly braces around the import?`,N),"default"in N||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
6
+ Did you accidentally put curly braces around the import?`,O),"default"in O||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
7
 
8
8
  Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,N),N.default;throw C._result}function X(){var C=Ve.H;return C===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,O),O.default;throw y._result}function X(){var y=Ee.H;return y===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),C}function se(){Ve.asyncTransitions--}function ge(C){if(mi===null)try{var N=("require"+Math.random()).slice(0,7);mi=(wm&&wm[N]).call(wm,"timers").setImmediate}catch(oe){mi=function(ue){_f===!1&&(_f=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var xe=new MessageChannel;xe.port1.onmessage=ue,xe.port2.postMessage(void 0)}}return mi(C)}function be(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function Se(C,N){N!==gi-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),gi=N}function K(C,N,oe){var ue=Ve.actQueue;if(ue!==null)if(ue.length!==0)try{pe(ue),ge(function(){return K(C,N,oe)});return}catch(xe){Ve.thrownErrors.push(xe)}else Ve.actQueue=null;0<Ve.thrownErrors.length?(ue=be(Ve.thrownErrors),Ve.thrownErrors.length=0,oe(ue)):N(C)}function pe(C){if(!yi){yi=!0;var N=0;try{for(;N<C.length;N++){var oe=C[N];do{Ve.didUsePromise=!1;var ue=oe(!1);if(ue!==null){if(Ve.didUsePromise){C[N]=oe,C.splice(0,N);return}oe=ue}else break}while(1)}C.length=0}catch(xe){C.splice(0,N+1),Ve.thrownErrors.push(xe)}finally{yi=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ye=Symbol.for("react.transitional.element"),Ue=Symbol.for("react.portal"),He=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),Gt=Symbol.for("react.activity"),er=Symbol.iterator,me={},cs={isMounted:function(){return!1},enqueueForceUpdate:function(C){s(C,"forceUpdate")},enqueueReplaceState:function(C){s(C,"replaceState")},enqueueSetState:function(C){s(C,"setState")}},oo=Object.assign,tr={};Object.freeze(tr),r.prototype.isReactComponent={},r.prototype.setState=function(C,N){if(typeof C!=="object"&&typeof C!=="function"&&C!=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,C,N,"setState")},r.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var Sa={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(or in Sa)Sa.hasOwnProperty(or)&&a(or,Sa[or]);l.prototype=r.prototype,Sa=u.prototype=new l,Sa.constructor=u,oo(Sa,r.prototype),Sa.isPureReactComponent=!0;var Ct=Array.isArray,Ku=Symbol.for("react.client.reference"),Ve={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},wl=Object.prototype.hasOwnProperty,Dt=console.createTask?console.createTask:function(){return null};Sa={react_stack_bottom_frame:function(C){return C()}};var Df,Mn,pi={},hi=Sa.react_stack_bottom_frame.bind(Sa,v)(),Km=Dt(y(v)),kl=!1,Ml=/\/+/g,ar=typeof reportError==="function"?reportError:function(C){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var N=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C==="object"&&C!==null&&typeof C.message==="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(N))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",C);return}console.error(C)},_f=!1,mi=null,gi=0,bi=!1,yi=!1,Ju=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:ge;Sa=Object.freeze({__proto__:null,c:function(C){return X().useMemoCache(C)}});var or={map:Y,forEach:function(C,N,oe){Y(C,function(){N.apply(this,arguments)},oe)},count:function(C){var N=0;return Y(C,function(){N++}),N},toArray:function(C){return Y(C,function(N){return N})||[]},only:function(C){if(!z(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};UN.Activity=Gt,UN.Children=or,UN.Component=r,UN.Fragment=He,UN.Profiler=W,UN.PureComponent=u,UN.StrictMode=k,UN.Suspense=le,UN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ve,UN.__COMPILER_RUNTIME=Sa,UN.act=function(C){var N=Ve.actQueue,oe=gi;gi++;var ue=Ve.actQueue=N!==null?N:[],xe=!1;try{var Ne=C()}catch(Ae){Ve.thrownErrors.push(Ae)}if(0<Ve.thrownErrors.length)throw Se(N,oe),C=be(Ve.thrownErrors),Ve.thrownErrors.length=0,C;if(Ne!==null&&typeof Ne==="object"&&typeof Ne.then==="function"){var ze=Ne;return Ju(function(){xe||bi||(bi=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Ae,Fa){xe=!0,ze.then(function(Lo){if(Se(N,oe),oe===0){try{pe(ue),ge(function(){return K(Lo,Ae,Fa)})}catch(ec){Ve.thrownErrors.push(ec)}if(0<Ve.thrownErrors.length){var nr=be(Ve.thrownErrors);Ve.thrownErrors.length=0,Fa(nr)}}else Ae(Lo)},function(Lo){Se(N,oe),0<Ve.thrownErrors.length?(Lo=be(Ve.thrownErrors),Ve.thrownErrors.length=0,Fa(Lo)):Fa(Lo)})}}}var pt=Ne;if(Se(N,oe),oe===0&&(pe(ue),ue.length!==0&&Ju(function(){xe||bi||(bi=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Ve.actQueue=null),0<Ve.thrownErrors.length)throw C=be(Ve.thrownErrors),Ve.thrownErrors.length=0,C;return{then:function(Ae,Fa){xe=!0,oe===0?(Ve.actQueue=ue,ge(function(){return K(pt,Ae,Fa)})):Ae(pt)}}},UN.cache=function(C){return function(){return C.apply(null,arguments)}},UN.cacheSignal=function(){return null},UN.captureOwnerStack=function(){var C=Ve.getCurrentStack;return C===null?null:C()},UN.cloneElement=function(C,N,oe){if(C===null||C===void 0)throw Error("The argument must be a React element, but you passed "+C+".");var ue=oo({},C.props),{key:xe,_owner:Ne}=C;if(N!=null){var ze;e:{if(wl.call(N,"ref")&&(ze=Object.getOwnPropertyDescriptor(N,"ref").get)&&ze.isReactWarning){ze=!1;break e}ze=N.ref!==void 0}ze&&(Ne=b()),T(N)&&(h(N.key),xe=""+N.key);for(pt in N)!wl.call(N,pt)||pt==="key"||pt==="__self"||pt==="__source"||pt==="ref"&&N.ref===void 0||(ue[pt]=N[pt])}var pt=arguments.length-2;if(pt===1)ue.children=oe;else if(1<pt){ze=Array(pt);for(var Ae=0;Ae<pt;Ae++)ze[Ae]=arguments[Ae+2];ue.children=ze}ue=w(C.type,xe,ue,Ne,C._debugStack,C._debugTask);for(xe=2;xe<arguments.length;xe++)B(arguments[xe]);return ue},UN.createContext=function(C){return C={$$typeof:ne,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:ee,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},UN.createElement=function(C,N,oe){for(var ue=2;ue<arguments.length;ue++)B(arguments[ue]);ue={};var xe=null;if(N!=null)for(Ae in Mn||!("__self"in N)||"key"in N||(Mn=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),T(N)&&(h(N.key),xe=""+N.key),N)wl.call(N,Ae)&&Ae!=="key"&&Ae!=="__self"&&Ae!=="__source"&&(ue[Ae]=N[Ae]);var Ne=arguments.length-2;if(Ne===1)ue.children=oe;else if(1<Ne){for(var ze=Array(Ne),pt=0;pt<Ne;pt++)ze[pt]=arguments[pt+2];Object.freeze&&Object.freeze(ze),ue.children=ze}if(C&&C.defaultProps)for(Ae in Ne=C.defaultProps,Ne)ue[Ae]===void 0&&(ue[Ae]=Ne[Ae]);xe&&M(ue,typeof C==="function"?C.displayName||C.name||"Unknown":C);var Ae=1e4>Ve.recentlyCreatedOwnerStacks++;return w(C,xe,ue,b(),Ae?Error("react-stack-top-frame"):hi,Ae?Dt(y(C)):Km)},UN.createRef=function(){var C={current:null};return Object.seal(C),C},UN.forwardRef=function(C){C!=null&&C.$$typeof===et?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!=="function"?console.error("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&C.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var N={$$typeof:te,render:C},oe;return Object.defineProperty(N,"displayName",{enumerable:!1,configurable:!0,get:function(){return oe},set:function(ue){oe=ue,C.name||C.displayName||(Object.defineProperty(C,"name",{value:ue}),C.displayName=ue)}}),N},UN.isValidElement=z,UN.lazy=function(C){C={_status:-1,_result:C};var N={$$typeof:tt,_payload:C,_init:J},oe={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return C._ioInfo=oe,N._debugInfo=[{awaited:oe}],N},UN.memo=function(C,N){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),N={$$typeof:et,type:C,compare:N===void 0?null:N};var oe;return Object.defineProperty(N,"displayName",{enumerable:!1,configurable:!0,get:function(){return oe},set:function(ue){oe=ue,C.name||C.displayName||(Object.defineProperty(C,"name",{value:ue}),C.displayName=ue)}}),N},UN.startTransition=function(C){var N=Ve.T,oe={};oe._updatedFibers=new Set,Ve.T=oe;try{var ue=C(),xe=Ve.S;xe!==null&&xe(oe,ue),typeof ue==="object"&&ue!==null&&typeof ue.then==="function"&&(Ve.asyncTransitions++,ue.then(se,se),ue.then(d,ar))}catch(Ne){ar(Ne)}finally{N===null&&oe._updatedFibers&&(C=oe._updatedFibers.size,oe._updatedFibers.clear(),10<C&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),N!==null&&oe.types!==null&&(N.types!==null&&N.types!==oe.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),N.types=oe.types),Ve.T=N}},UN.unstable_useCacheRefresh=function(){return X().useCacheRefresh()},UN.use=function(C){return X().use(C)},UN.useActionState=function(C,N,oe){return X().useActionState(C,N,oe)},UN.useCallback=function(C,N){return X().useCallback(C,N)},UN.useContext=function(C){var N=X();return C.$$typeof===ee&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),N.useContext(C)},UN.useDebugValue=function(C,N){return X().useDebugValue(C,N)},UN.useDeferredValue=function(C,N){return X().useDeferredValue(C,N)},UN.useEffect=function(C,N){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useEffect(C,N)},UN.useEffectEvent=function(C){return X().useEffectEvent(C)},UN.useId=function(){return X().useId()},UN.useImperativeHandle=function(C,N,oe){return X().useImperativeHandle(C,N,oe)},UN.useInsertionEffect=function(C,N){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useInsertionEffect(C,N)},UN.useLayoutEffect=function(C,N){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useLayoutEffect(C,N)},UN.useMemo=function(C,N){return X().useMemo(C,N)},UN.useOptimistic=function(C,N){return X().useOptimistic(C,N)},UN.useReducer=function(C,N,oe){return X().useReducer(C,N,oe)},UN.useRef=function(C){return X().useRef(C)},UN.useState=function(C){return X().useState(C)},UN.useSyncExternalStore=function(C,N,oe){return X().useSyncExternalStore(C,N,oe)},UN.useTransition=function(){return X().useTransition()},UN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var bI=Gr(function(FN){var Uv=Q(dt());(function(){function a(){}function o(y){return""+y}function s(y,b,v){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{o(T);var M=!1}catch(I){M=!0}return M&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object"),o(T)),{$$typeof:h,key:T==null?null:""+T,children:y,containerInfo:b,implementation:v}}function r(y,b){if(y==="font")return"";if(typeof b==="string")return b==="use-credentials"?b:""}function l(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":'something with type "'+typeof y+'"'}function u(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":typeof y==="string"?JSON.stringify(y):typeof y==="number"?"`"+y+"`":'something with type "'+typeof y+'"'}function d(){var y=g.H;return y===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),y}function ge(){Ee.asyncTransitions--}function Ne(y){if(es===null)try{var O=("require"+Math.random()).slice(0,7);es=(sm&&sm[O]).call(sm,"timers").setImmediate}catch(ie){es=function(me){$c===!1&&($c=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var we=new MessageChannel;we.port1.onmessage=me,we.port2.postMessage(void 0)}}return es(y)}function Ce(y){return 1<y.length&&typeof AggregateError==="function"?AggregateError(y):y[0]}function Be(y,O){O!==ts-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ts=O}function te(y,O,ie){var me=Ee.actQueue;if(me!==null)if(me.length!==0)try{ve(me),Ne(function(){return te(y,O,ie)});return}catch(we){Ee.thrownErrors.push(we)}else Ee.actQueue=null;0<Ee.thrownErrors.length?(me=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,ie(me)):O(y)}function ve(y){if(!os){os=!0;var O=0;try{for(;O<y.length;O++){var ie=y[O];do{Ee.didUsePromise=!1;var me=ie(!1);if(me!==null){if(Ee.didUsePromise){y[O]=ie,y.splice(0,O);return}ie=me}else break}while(1)}y.length=0}catch(we){y.splice(0,O+1),Ee.thrownErrors.push(we)}finally{os=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ke=Symbol.for("react.transitional.element"),je=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),Lt=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),Pe=Symbol.for("react.lazy"),Mt=Symbol.for("react.activity"),pa=Symbol.iterator,re={},ma={isMounted:function(){return!1},enqueueForceUpdate:function(y){u(y,"forceUpdate")},enqueueReplaceState:function(y){u(y,"replaceState")},enqueueSetState:function(y){u(y,"setState")}},Ia=Object.assign,Kt={};Object.freeze(Kt),c.prototype.isReactComponent={},c.prototype.setState=function(y,O){if(typeof y!=="object"&&typeof y!=="function"&&y!=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,y,O,"setState")},c.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};var Yt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Kn in Yt)Yt.hasOwnProperty(Kn)&&r(Kn,Yt[Kn]);f.prototype=c.prototype,Yt=v.prototype=new f,Yt.constructor=v,Ia(Yt,c.prototype),Yt.isPureReactComponent=!0;var gt=Array.isArray,Et=Symbol.for("react.client.reference"),Ee={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},rl=Object.prototype.hasOwnProperty,_t=console.createTask?console.createTask:function(){return null};Yt={react_stack_bottom_frame:function(y){return y()}};var Vc,Rl,Kr={},Jr=Yt.react_stack_bottom_frame.bind(Yt,C)(),Om=_t(h(C)),nu=!1,ru=/\/+/g,Wn=typeof reportError==="function"?reportError:function(y){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(O))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",y);return}console.error(y)},$c=!1,es=null,ts=0,as=!1,os=!1,Ri=typeof queueMicrotask==="function"?function(y){queueMicrotask(function(){return queueMicrotask(y)})}:Ne;Yt=Object.freeze({__proto__:null,c:function(y){return X().useMemoCache(y)}});var Kn={map:Z,forEach:function(y,O,ie){Z(y,function(){O.apply(this,arguments)},ie)},count:function(y){var O=0;return Z(y,function(){O++}),O},toArray:function(y){return Z(y,function(O){return O})||[]},only:function(y){if(!K(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};ZM.Activity=Mt,ZM.Children=Kn,ZM.Component=c,ZM.Fragment=ae,ZM.Profiler=ue,ZM.PureComponent=v,ZM.StrictMode=P,ZM.Suspense=Lt,ZM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ee,ZM.__COMPILER_RUNTIME=Yt,ZM.act=function(y){var O=Ee.actQueue,ie=ts;ts++;var me=Ee.actQueue=O!==null?O:[],we=!1;try{var $e=y()}catch(Oe){Ee.thrownErrors.push(Oe)}if(0<Ee.thrownErrors.length)throw Be(O,ie),y=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,y;if($e!==null&&typeof $e==="object"&&typeof $e.then==="function"){var Xe=$e;return Ri(function(){we||as||(as=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Oe,Za){we=!0,Xe.then(function(xo){if(Be(O,ie),ie===0){try{ve(me),Ne(function(){return te(xo,Oe,Za)})}catch(Mi){Ee.thrownErrors.push(Mi)}if(0<Ee.thrownErrors.length){var Jn=Ce(Ee.thrownErrors);Ee.thrownErrors.length=0,Za(Jn)}}else Oe(xo)},function(xo){Be(O,ie),0<Ee.thrownErrors.length?(xo=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,Za(xo)):Za(xo)})}}}var yt=$e;if(Be(O,ie),ie===0&&(ve(me),me.length!==0&&Ri(function(){we||as||(as=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Ee.actQueue=null),0<Ee.thrownErrors.length)throw y=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,y;return{then:function(Oe,Za){we=!0,ie===0?(Ee.actQueue=me,Ne(function(){return te(yt,Oe,Za)})):Oe(yt)}}},ZM.cache=function(y){return function(){return y.apply(null,arguments)}},ZM.cacheSignal=function(){return null},ZM.captureOwnerStack=function(){var y=Ee.getCurrentStack;return y===null?null:y()},ZM.cloneElement=function(y,O,ie){if(y===null||y===void 0)throw Error("The argument must be a React element, but you passed "+y+".");var me=Ia({},y.props),{key:we,_owner:$e}=y;if(O!=null){var Xe;e:{if(rl.call(O,"ref")&&(Xe=Object.getOwnPropertyDescriptor(O,"ref").get)&&Xe.isReactWarning){Xe=!1;break e}Xe=O.ref!==void 0}Xe&&($e=x()),R(O)&&(S(O.key),we=""+O.key);for(yt in O)!rl.call(O,yt)||yt==="key"||yt==="__self"||yt==="__source"||yt==="ref"&&O.ref===void 0||(me[yt]=O[yt])}var yt=arguments.length-2;if(yt===1)me.children=ie;else if(1<yt){Xe=Array(yt);for(var Oe=0;Oe<yt;Oe++)Xe[Oe]=arguments[Oe+2];me.children=Xe}me=_(y.type,we,me,$e,y._debugStack,y._debugTask);for(we=2;we<arguments.length;we++)F(arguments[we]);return me},ZM.createContext=function(y){return y={$$typeof:ne,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:se,_context:y},y._currentRenderer=null,y._currentRenderer2=null,y},ZM.createElement=function(y,O,ie){for(var me=2;me<arguments.length;me++)F(arguments[me]);me={};var we=null;if(O!=null)for(Oe in Rl||!("__self"in O)||"key"in O||(Rl=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),R(O)&&(S(O.key),we=""+O.key),O)rl.call(O,Oe)&&Oe!=="key"&&Oe!=="__self"&&Oe!=="__source"&&(me[Oe]=O[Oe]);var $e=arguments.length-2;if($e===1)me.children=ie;else if(1<$e){for(var Xe=Array($e),yt=0;yt<$e;yt++)Xe[yt]=arguments[yt+2];Object.freeze&&Object.freeze(Xe),me.children=Xe}if(y&&y.defaultProps)for(Oe in $e=y.defaultProps,$e)me[Oe]===void 0&&(me[Oe]=$e[Oe]);we&&L(me,typeof y==="function"?y.displayName||y.name||"Unknown":y);var Oe=1e4>Ee.recentlyCreatedOwnerStacks++;return _(y,we,me,x(),Oe?Error("react-stack-top-frame"):Jr,Oe?_t(h(y)):Om)},ZM.createRef=function(){var y={current:null};return Object.seal(y),y},ZM.forwardRef=function(y){y!=null&&y.$$typeof===V?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof y!=="function"?console.error("forwardRef requires a render function but was given %s.",y===null?"null":typeof y):y.length!==0&&y.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",y.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),y!=null&&y.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var O={$$typeof:pe,render:y},ie;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return ie},set:function(me){ie=me,y.name||y.displayName||(Object.defineProperty(y,"name",{value:me}),y.displayName=me)}}),O},ZM.isValidElement=K,ZM.lazy=function(y){y={_status:-1,_result:y};var O={$$typeof:Pe,_payload:y,_init:W},ie={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return y._ioInfo=ie,O._debugInfo=[{awaited:ie}],O},ZM.memo=function(y,O){y==null&&console.error("memo: The first argument must be a component. Instead received: %s",y===null?"null":typeof y),O={$$typeof:V,type:y,compare:O===void 0?null:O};var ie;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return ie},set:function(me){ie=me,y.name||y.displayName||(Object.defineProperty(y,"name",{value:me}),y.displayName=me)}}),O},ZM.startTransition=function(y){var O=Ee.T,ie={};ie._updatedFibers=new Set,Ee.T=ie;try{var me=y(),we=Ee.S;we!==null&&we(ie,me),typeof me==="object"&&me!==null&&typeof me.then==="function"&&(Ee.asyncTransitions++,me.then(ge,ge),me.then(p,Wn))}catch($e){Wn($e)}finally{O===null&&ie._updatedFibers&&(y=ie._updatedFibers.size,ie._updatedFibers.clear(),10<y&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),O!==null&&ie.types!==null&&(O.types!==null&&O.types!==ie.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),O.types=ie.types),Ee.T=O}},ZM.unstable_useCacheRefresh=function(){return X().useCacheRefresh()},ZM.use=function(y){return X().use(y)},ZM.useActionState=function(y,O,ie){return X().useActionState(y,O,ie)},ZM.useCallback=function(y,O){return X().useCallback(y,O)},ZM.useContext=function(y){var O=X();return y.$$typeof===se&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),O.useContext(y)},ZM.useDebugValue=function(y,O){return X().useDebugValue(y,O)},ZM.useDeferredValue=function(y,O){return X().useDeferredValue(y,O)},ZM.useEffect=function(y,O){return y==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useEffect(y,O)},ZM.useEffectEvent=function(y){return X().useEffectEvent(y)},ZM.useId=function(){return X().useId()},ZM.useImperativeHandle=function(y,O,ie){return X().useImperativeHandle(y,O,ie)},ZM.useInsertionEffect=function(y,O){return y==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useInsertionEffect(y,O)},ZM.useLayoutEffect=function(y,O){return y==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useLayoutEffect(y,O)},ZM.useMemo=function(y,O){return X().useMemo(y,O)},ZM.useOptimistic=function(y,O){return X().useOptimistic(y,O)},ZM.useReducer=function(y,O,ie){return X().useReducer(y,O,ie)},ZM.useRef=function(y){return X().useRef(y)},ZM.useState=function(y){return X().useState(y)},ZM.useSyncExternalStore=function(y,O,ie){return X().useSyncExternalStore(y,O,ie)},ZM.useTransition=function(){return X().useTransition()},ZM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var w1=Fs(function(WM){var pb=Y(ut());(function(){function r(){}function i(h){return""+h}function u(h,x,C){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{i(R);var L=!1}catch(D){L=!0}return L&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object"),i(R)),{$$typeof:S,key:R==null?null:""+R,children:h,containerInfo:x,implementation:C}}function c(h,x){if(h==="font")return"";if(typeof x==="string")return x==="use-credentials"?x:""}function f(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":'something with type "'+typeof h+'"'}function v(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":typeof h==="string"?JSON.stringify(h):typeof h==="number"?"`"+h+"`":'something with type "'+typeof h+'"'}function p(){var h=k.H;return h===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
14
  1. You might have mismatching versions of React and the renderer (such as React DOM)
15
15
  2. You might be breaking the Rules of Hooks
16
16
  3. You might have more than one copy of React in the same app
17
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),y}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var p={d:{f:a,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},h=Symbol.for("react.portal"),g=Uv.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),FN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,FN.createPortal=function(y,b){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error("Target container is not a DOM element.");return s(y,b,null,v)},FN.flushSync=function(y){var b=g.T,v=p.p;try{if(g.T=null,p.p=2,y)return y()}finally{g.T=b,p.p=v,p.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},FN.preconnect=function(y,b){typeof y==="string"&&y?b!=null&&typeof b!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",u(b)):b!=null&&typeof b.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",l(b.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(y)),typeof y==="string"&&(b?(b=b.crossOrigin,b=typeof b==="string"?b==="use-credentials"?b:"":void 0):b=null,p.d.C(y,b))},FN.prefetchDNS=function(y){if(typeof y!=="string"||!y)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(y));else if(1<arguments.length){var b=arguments[1];typeof b==="object"&&b.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",u(b)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",u(b))}typeof y==="string"&&p.d.D(y)},FN.preinit=function(y,b){if(typeof y==="string"&&y?b==null||typeof b!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",u(b)):b.as!=="style"&&b.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',u(b.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(y)),typeof y==="string"&&b&&typeof b.as==="string"){var v=b.as,T=r(v,b.crossOrigin),M=typeof b.integrity==="string"?b.integrity:void 0,I=typeof b.fetchPriority==="string"?b.fetchPriority:void 0;v==="style"?p.d.S(y,typeof b.precedence==="string"?b.precedence:void 0,{crossOrigin:T,integrity:M,fetchPriority:I}):v==="script"&&p.d.X(y,{crossOrigin:T,integrity:M,fetchPriority:I,nonce:typeof b.nonce==="string"?b.nonce:void 0})}},FN.preinitModule=function(y,b){var v="";if(typeof y==="string"&&y||(v+=" The `href` argument encountered was "+l(y)+"."),b!==void 0&&typeof b!=="object"?v+=" The `options` argument encountered was "+l(b)+".":b&&("as"in b)&&b.as!=="script"&&(v+=" The `as` option encountered was "+u(b.as)+"."),v)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",v);else switch(v=b&&typeof b.as==="string"?b.as:"script",v){case"script":break;default:v=u(v),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',v,y)}if(typeof y==="string")if(typeof b==="object"&&b!==null){if(b.as==null||b.as==="script")v=r(b.as,b.crossOrigin),p.d.M(y,{crossOrigin:v,integrity:typeof b.integrity==="string"?b.integrity:void 0,nonce:typeof b.nonce==="string"?b.nonce:void 0})}else b==null&&p.d.M(y)},FN.preload=function(y,b){var v="";if(typeof y==="string"&&y||(v+=" The `href` argument encountered was "+l(y)+"."),b==null||typeof b!=="object"?v+=" The `options` argument encountered was "+l(b)+".":typeof b.as==="string"&&b.as||(v+=" The `as` option encountered was "+l(b.as)+"."),v&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',v),typeof y==="string"&&typeof b==="object"&&b!==null&&typeof b.as==="string"){v=b.as;var T=r(v,b.crossOrigin);p.d.L(y,v,{crossOrigin:T,integrity:typeof b.integrity==="string"?b.integrity:void 0,nonce:typeof b.nonce==="string"?b.nonce:void 0,type:typeof b.type==="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority==="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy==="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet==="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes==="string"?b.imageSizes:void 0,media:typeof b.media==="string"?b.media:void 0})}},FN.preloadModule=function(y,b){var v="";typeof y==="string"&&y||(v+=" The `href` argument encountered was "+l(y)+"."),b!==void 0&&typeof b!=="object"?v+=" The `options` argument encountered was "+l(b)+".":b&&("as"in b)&&typeof b.as!=="string"&&(v+=" The `as` option encountered was "+l(b.as)+"."),v&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',v),typeof y==="string"&&(b?(v=r(b.as,b.crossOrigin),p.d.m(y,{as:typeof b.as==="string"&&b.as!=="script"?b.as:void 0,crossOrigin:v,integrity:typeof b.integrity==="string"?b.integrity:void 0})):p.d.m(y))},FN.requestFormReset=function(y){p.d.r(y)},FN.unstable_batchedUpdates=function(y,b){return y(b)},FN.useFormState=function(y,b,v){return d().useFormState(y,b,v)},FN.useFormStatus=function(){return d().useHostTransitionStatus()},FN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var yI=Gr(function(qN,km){km.exports=Q(bI())});var xI=Gr(function(VN){var mt=Q(gI()),Fu=Q(dt()),Fv=Q(yI());(function(){function a(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function o(e,t,n,i){if(n>=t.length)return i;var c=t[n],f=ma(e)?e.slice():Ze({},e);return f[c]=o(e[c],t,n+1,i),f}function s(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var i=0;i<n.length-1;i++)if(t[i]!==n[i]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return r(e,t,n,0)}}function r(e,t,n,i){var c=t[i],f=ma(e)?e.slice():Ze({},e);return i+1===t.length?(f[n[i]]=f[c],ma(f)?f.splice(c,1):delete f[c]):f[c]=r(e[c],t,n,i+1),f}function l(e,t,n){var i=t[n],c=ma(e)?e.slice():Ze({},e);if(n+1===t.length)return ma(c)?c.splice(i,1):delete c[i],c;return c[i]=l(e[i],t,n+1),c}function u(){return!1}function d(){return null}function p(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function h(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function g(){}function y(){}function b(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}function v(e,t,n,i){return new mD(e,t,n,i)}function T(e,t){e.context===Tr&&(Kb(e.current,2,t,e,null,null),Ul())}function M(e,t){if(Yo!==null){var n=t.staleFamilies;t=t.updatedFamilies,kc(),eS(e.current,t,n),Ul()}}function I(e){Yo=e}function w(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function A(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 B(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 z(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(A(e)!==e)throw Error("Unable to find node on an unmounted component.")}function q(e){var t=e.alternate;if(!t){if(t=A(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,i=t;;){var c=n.return;if(c===null)break;var f=c.alternate;if(f===null){if(i=c.return,i!==null){n=i;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===n)return H(c),e;if(f===i)return H(c),t;f=f.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==i.return)n=c,i=f;else{for(var m=!1,x=c.child;x;){if(x===n){m=!0,n=c,i=f;break}if(x===i){m=!0,i=c,n=f;break}x=x.sibling}if(!m){for(x=f.child;x;){if(x===n){m=!0,n=f,i=c;break}if(x===i){m=!0,i=f,n=c;break}x=x.sibling}if(!m)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==i)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}function j(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=j(e),t!==null)return t;e=e.sibling}return null}function G(e){if(e===null||typeof e!=="object")return null;return e=i1&&e[i1]||e["@@iterator"],typeof e==="function"?e:null}function Y(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===B2?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Yl:return"Fragment";case ny:return"Profiler";case Fp:return"StrictMode";case ry:return"Suspense";case iy:return"SuspenseList";case ly:return"Activity"}if(typeof e==="object")switch(typeof e.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Xl:return"Portal";case Gn:return e.displayName||"Context";case sy:return(e._context.displayName||"Context")+".Consumer";case Bc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qp:return t=e.displayName||null,t!==null?t:Y(e.type)||"Memo";case Do:t=e._payload,e=e._init;try{return Y(e(t))}catch(n){}}return null}function J(e){return typeof e.tag==="number"?X(e):typeof e.name==="string"?e.name:null}function X(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Y(t);case 8:return t===Fp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t==="function")return t.displayName||t.name||null;if(typeof t==="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name==="string")return t[n].name}if(e.return!==null)return X(e.return)}return null}function se(e){return{current:e}}function ge(e,t){0>vs?console.error("Unexpected pop."):(t!==cy[vs]&&console.error("Unexpected Fiber popped."),e.current=uy[vs],uy[vs]=null,cy[vs]=null,vs--)}function be(e,t,n){vs++,uy[vs]=e.current,cy[vs]=n,e.current=t}function Se(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function K(e,t){be(yr,t,e),be(Nc,e,e),be(br,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?DC(t):Os:Os;break;default:if(n=t.tagName,t=t.namespaceURI)t=DC(t),t=_C(t,n);else switch(n){case"svg":t=Mu;break;case"math":t=Uh;break;default:t=Os}}n=n.toLowerCase(),n=w0(null,n),n={context:t,ancestorInfo:n},ge(br,e),be(br,n,e)}function pe(e){ge(br,e),ge(Nc,e),ge(yr,e)}function ye(){return Se(br.current)}function Ue(e){e.memoizedState!==null&&be(Vp,e,e);var t=Se(br.current),n=e.type,i=_C(t.context,n);n=w0(t.ancestorInfo,n),i={context:i,ancestorInfo:n},t!==i&&(be(Nc,e,e),be(br,i,e))}function He(e){Nc.current===e&&(ge(br,e),ge(Nc,e)),Vp.current===e&&(ge(Vp,e),Id._currentValue=al)}function k(){}function W(){if(zc===0){l1=console.log,u1=console.info,c1=console.warn,d1=console.error,f1=console.group,p1=console.groupCollapsed,h1=console.groupEnd;var e={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}zc++}function ee(){if(zc--,zc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ze({},e,{value:l1}),info:Ze({},e,{value:u1}),warn:Ze({},e,{value:c1}),error:Ze({},e,{value:d1}),group:Ze({},e,{value:f1}),groupCollapsed:Ze({},e,{value:p1}),groupEnd:Ze({},e,{value:h1})})}0>zc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ne(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var b={d:{f:r,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},S=Symbol.for("react.portal"),k=pb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),WM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,WM.createPortal=function(h,x){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error("Target container is not a DOM element.");return u(h,x,null,C)},WM.flushSync=function(h){var x=k.T,C=b.p;try{if(k.T=null,b.p=2,h)return h()}finally{k.T=x,b.p=C,b.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},WM.preconnect=function(h,x){typeof h==="string"&&h?x!=null&&typeof x!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",v(x)):x!=null&&typeof x.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",f(x.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h)),typeof h==="string"&&(x?(x=x.crossOrigin,x=typeof x==="string"?x==="use-credentials"?x:"":void 0):x=null,b.d.C(h,x))},WM.prefetchDNS=function(h){if(typeof h!=="string"||!h)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h));else if(1<arguments.length){var x=arguments[1];typeof x==="object"&&x.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(x)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(x))}typeof h==="string"&&b.d.D(h)},WM.preinit=function(h,x){if(typeof h==="string"&&h?x==null||typeof x!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",v(x)):x.as!=="style"&&x.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',v(x.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h)),typeof h==="string"&&x&&typeof x.as==="string"){var C=x.as,R=c(C,x.crossOrigin),L=typeof x.integrity==="string"?x.integrity:void 0,D=typeof x.fetchPriority==="string"?x.fetchPriority:void 0;C==="style"?b.d.S(h,typeof x.precedence==="string"?x.precedence:void 0,{crossOrigin:R,integrity:L,fetchPriority:D}):C==="script"&&b.d.X(h,{crossOrigin:R,integrity:L,fetchPriority:D,nonce:typeof x.nonce==="string"?x.nonce:void 0})}},WM.preinitModule=function(h,x){var C="";if(typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x!==void 0&&typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":x&&("as"in x)&&x.as!=="script"&&(C+=" The `as` option encountered was "+v(x.as)+"."),C)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",C);else switch(C=x&&typeof x.as==="string"?x.as:"script",C){case"script":break;default:C=v(C),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',C,h)}if(typeof h==="string")if(typeof x==="object"&&x!==null){if(x.as==null||x.as==="script")C=c(x.as,x.crossOrigin),b.d.M(h,{crossOrigin:C,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0})}else x==null&&b.d.M(h)},WM.preload=function(h,x){var C="";if(typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x==null||typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":typeof x.as==="string"&&x.as||(C+=" The `as` option encountered was "+f(x.as)+"."),C&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',C),typeof h==="string"&&typeof x==="object"&&x!==null&&typeof x.as==="string"){C=x.as;var R=c(C,x.crossOrigin);b.d.L(h,C,{crossOrigin:R,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0,type:typeof x.type==="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority==="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy==="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet==="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes==="string"?x.imageSizes:void 0,media:typeof x.media==="string"?x.media:void 0})}},WM.preloadModule=function(h,x){var C="";typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x!==void 0&&typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":x&&("as"in x)&&typeof x.as!=="string"&&(C+=" The `as` option encountered was "+f(x.as)+"."),C&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',C),typeof h==="string"&&(x?(C=c(x.as,x.crossOrigin),b.d.m(h,{as:typeof x.as==="string"&&x.as!=="script"?x.as:void 0,crossOrigin:C,integrity:typeof x.integrity==="string"?x.integrity:void 0})):b.d.m(h))},WM.requestFormReset=function(h){b.d.r(h)},WM.unstable_batchedUpdates=function(h,x){return h(x)},WM.useFormState=function(h,x,C){return p().useFormState(h,x,C)},WM.useFormStatus=function(){return p().useHostTransitionStatus()},WM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var rc=Fs(function(KM,um){um.exports=Y(w1())});var T1=Fs(function(JM){var bt=Y(k1()),ii=Y(ut()),mb=Y(rc());(function(){function r(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function i(e,t,a,o){if(a>=t.length)return o;var l=t[a],n=Ra(e)?e.slice():rt({},e);return n[l]=i(e[l],t,a+1,o),n}function u(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,a,0)}}function c(e,t,a,o){var l=t[o],n=Ra(e)?e.slice():rt({},e);return o+1===t.length?(n[a[o]]=n[l],Ra(n)?n.splice(l,1):delete n[l]):n[l]=c(e[l],t,a,o+1),n}function f(e,t,a){var o=t[a],l=Ra(e)?e.slice():rt({},e);if(a+1===t.length)return Ra(l)?l.splice(o,1):delete l[o],l;return l[o]=f(e[o],t,a+1),l}function v(){return!1}function p(){return null}function b(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function k(){}function h(){}function x(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function C(e,t,a,o){return new OT(e,t,a,o)}function R(e,t){e.context===vr&&(Og(e.current,2,t,e,null,null),vu())}function L(e,t){if(Xo!==null){var a=t.staleFamilies;t=t.updatedFamilies,td(),R0(e.current,t,a),vu()}}function D(e){Xo=e}function _(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function z(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function F(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 K(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 N(e){if(z(e)!==e)throw Error("Unable to find node on an unmounted component.")}function oe(e){var t=e.alternate;if(!t){if(t=z(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,o=t;;){var l=a.return;if(l===null)break;var n=l.alternate;if(n===null){if(o=l.return,o!==null){a=o;continue}break}if(l.child===n.child){for(n=l.child;n;){if(n===a)return N(l),e;if(n===o)return N(l),t;n=n.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=l,o=n;else{for(var s=!1,d=l.child;d;){if(d===a){s=!0,a=l,o=n;break}if(d===o){s=!0,o=l,a=n;break}d=d.sibling}if(!s){for(d=n.child;d;){if(d===a){s=!0,a=n,o=l;break}if(d===o){s=!0,o=n,a=l;break}d=d.sibling}if(!s)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==o)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function B(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=B(e),t!==null)return t;e=e.sibling}return null}function ee(e){if(e===null||typeof e!=="object")return null;return e=Bx&&e[Bx]||e["@@iterator"],typeof e==="function"?e:null}function Z(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===eR?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Tu:return"Fragment";case zg:return"Profiler";case tp:return"StrictMode";case Hg:return"Suspense";case Fg:return"SuspenseList";case Gg:return"Activity"}if(typeof e==="object")switch(typeof e.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case wu:return"Portal";case Xl:return e.displayName||"Context";case _g:return(e._context.displayName||"Context")+".Consumer";case cd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ap:return t=e.displayName||null,t!==null?t:Z(e.type)||"Memo";case Ao:t=e._payload,e=e._init;try{return Z(e(t))}catch(a){}}return null}function W(e){return typeof e.tag==="number"?X(e):typeof e.name==="string"?e.name:null}function X(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Z(t);case 8:return t===tp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t==="function")return t.displayName||t.name||null;if(typeof t==="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name==="string")return t[a].name}if(e.return!==null)return X(e.return)}return null}function ge(e){return{current:e}}function Ne(e,t){0>Tn?console.error("Unexpected pop."):(t!==$g[Tn]&&console.error("Unexpected Fiber popped."),e.current=Vg[Tn],Vg[Tn]=null,$g[Tn]=null,Tn--)}function Ce(e,t,a){Tn++,Vg[Tn]=e.current,$g[Tn]=a,e.current=t}function Be(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function te(e,t){Ce(pr,t,e),Ce(fd,e,e),Ce(fr,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?nx(t):_n:_n;break;default:if(a=t.tagName,t=t.namespaceURI)t=nx(t),t=rx(t,a);else switch(a){case"svg":t=ri;break;case"math":t=em;break;default:t=_n}}a=a.toLowerCase(),a=Jb(null,a),a={context:t,ancestorInfo:a},Ne(fr,e),Ce(fr,a,e)}function ve(e){Ne(fr,e),Ne(fd,e),Ne(pr,e)}function ke(){return Be(fr.current)}function je(e){e.memoizedState!==null&&Ce(op,e,e);var t=Be(fr.current),a=e.type,o=rx(t.context,a);a=Jb(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Ce(fd,e,e),Ce(fr,o,e))}function ae(e){fd.current===e&&(Ne(fr,e),Ne(fd,e)),op.current===e&&(Ne(op,e),oc._currentValue=Hs)}function P(){}function ue(){if(pd===0){Nx=console.log,Ux=console.info,Px=console.warn,zx=console.error,_x=console.group,Hx=console.groupCollapsed,Fx=console.groupEnd;var e={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}pd++}function se(){if(pd--,pd===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:rt({},e,{value:Nx}),info:rt({},e,{value:Ux}),warn:rt({},e,{value:Px}),error:rt({},e,{value:zx}),group:rt({},e,{value:_x}),groupCollapsed:rt({},e,{value:Hx}),groupEnd:rt({},e,{value:Fx})})}0>pd&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ne(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
18
18
  `)&&(e=e.slice(29)),t=e.indexOf(`
19
19
  `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
20
- `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function te(e){if(dy===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);dy=t&&t[1]||"",m1=-1<n.stack.indexOf(`
21
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+dy+e+m1}function le(e,t){if(!e||fy)return"";var n=py.get(e);if(n!==void 0)return n;fy=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var i=null;i=V.H,V.H=null,W();try{var c={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(ie){var U=ie}Reflect.construct(e,[],D)}else{try{D.call()}catch(ie){U=ie}e.call(D.prototype)}}else{try{throw Error()}catch(ie){U=ie}(D=e())&&typeof D.catch==="function"&&D.catch(function(){})}}catch(ie){if(ie&&U&&typeof ie.stack==="string")return[ie.stack,U.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=c.DetermineComponentFrameRoot(),x=m[0],S=m[1];if(x&&S){var L=x.split(`
23
- `),O=S.split(`
24
- `);for(m=f=0;f<L.length&&!L[f].includes("DetermineComponentFrameRoot");)f++;for(;m<O.length&&!O[m].includes("DetermineComponentFrameRoot");)m++;if(f===L.length||m===O.length)for(f=L.length-1,m=O.length-1;1<=f&&0<=m&&L[f]!==O[m];)m--;for(;1<=f&&0<=m;f--,m--)if(L[f]!==O[m]){if(f!==1||m!==1)do if(f--,m--,0>m||L[f]!==O[m]){var P=`
25
- `+L[f].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e==="function"&&py.set(e,P),P}while(1<=f&&0<=m);break}}}finally{fy=!1,V.H=i,ee(),Error.prepareStackTrace=n}return L=(L=e?e.displayName||e.name:"")?te(L):"",typeof e==="function"&&py.set(e,L),L}function fe(e,t){switch(e.tag){case 26:case 27:case 5:return te(e.type);case 16:return te("Lazy");case 13:return e.child!==t&&t!==null?te("Suspense Fallback"):te("Suspense");case 19:return te("SuspenseList");case 0:case 15:return le(e.type,!1);case 11:return le(e.type.render,!1);case 1:return le(e.type,!0);case 31:return te("Activity");default:return""}}function et(e){try{var t="",n=null;do{t+=fe(e,n);var i=e._debugInfo;if(i)for(var c=i.length-1;0<=c;c--){var f=i[c];if(typeof f.name==="string"){var m=t;e:{var{name:x,env:S,debugLocation:L}=f;if(L!=null){var O=ne(L),P=O.lastIndexOf(`
26
- `),D=P===-1?O:O.slice(P+1);if(D.indexOf(x)!==-1){var U=`
27
- `+D;break e}}U=te(x+(S?" ["+S+"]":""))}t=m+U}}n=e,e=e.return}while(e);return t}catch(ie){return`
28
- Error generating stack: `+ie.message+`
29
- `+ie.stack}}function tt(e){return(e=e?e.displayName||e.name:"")?te(e):""}function Gt(){if(_o===null)return null;var e=_o._debugOwner;return e!=null?J(e):null}function er(){if(_o===null)return"";var e=_o;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=te(e.type);break;case 13:t+=te("Suspense");break;case 19:t+=te("SuspenseList");break;case 31:t+=te("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=tt(e.type));break;case 11:e._debugOwner||t!==""||(t+=tt(e.type.render))}for(;e;)if(typeof e.tag==="number"){var n=e;e=n._debugOwner;var i=n._debugStack;if(e&&i){var c=ne(i);c!==""&&(t+=`
30
- `+c)}}else if(e.debugStack!=null){var f=e.debugStack;(e=e.owner)&&f&&(t+=`
31
- `+ne(f))}else break;var m=t}catch(x){m=`
32
- Error generating stack: `+x.message+`
33
- `+x.stack}return m}function me(e,t,n,i,c,f,m){var x=_o;cs(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,i,c,f,m)):t(n,i,c,f,m)}finally{cs(x)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function cs(e){V.getCurrentStack=e===null?null:er,Xn=!1,_o=e}function oo(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function tr(e){try{return Sa(e),!1}catch(t){return!0}}function Sa(e){return""+e}function Ct(e,t){if(tr(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,oo(e)),Sa(e)}function Ku(e,t){if(tr(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,oo(e)),Sa(e)}function Ve(e){if(tr(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",oo(e)),Sa(e)}function wl(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Wl=t.inject(e),Va=t}catch(n){console.error("React instrumentation encountered an error: %o.",n)}return t.checkDCE?!0:!1}function Dt(e){if(typeof V2==="function"&&j2(e),Va&&typeof Va.setStrictMode==="function")try{Va.setStrictMode(Wl,e)}catch(t){Yn||(Yn=!0,console.error("React instrumentation encountered an error: %o",t))}}function Df(e){return e>>>=0,e===0?32:31-(G2(e)/X2|0)|0}function Mn(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 console.error("Should have found matching lanes. This is a bug in React."),e}}function pi(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var c=0,f=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=i&134217727;return x!==0?(i=x&~f,i!==0?c=Mn(i):(m&=x,m!==0?c=Mn(m):n||(n=x&~e,n!==0&&(c=Mn(n))))):(x=i&~f,x!==0?c=Mn(x):m!==0?c=Mn(m):n||(n=i&~e,n!==0&&(c=Mn(n)))),c===0?0:t!==0&&t!==c&&(t&f)===0&&(f=c&-c,n=t&-t,f>=n||f===32&&(n&4194048)!==0)?t:c}function hi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Km(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+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function kl(){var e=Xp;return Xp<<=1,(Xp&62914560)===0&&(Xp=4194304),e}function Ml(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ar(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _f(e,t,n,i,c,f){var m=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{entanglements:x,expirationTimes:S,hiddenUpdates:L}=e;for(n=m&~n;0<n;){var O=31-$a(n),P=1<<O;x[O]=0,S[O]=-1;var D=L[O];if(D!==null)for(L[O]=null,O=0;O<D.length;O++){var U=D[O];U!==null&&(U.lane&=-536870913)}n&=~P}i!==0&&mi(e,i,0),f!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=f&~(m&~t))}function mi(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-$a(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function gi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-$a(n),c=1<<i;c&t|e[i]&t&&(e[i]|=t),n&=~c}}function bi(e,t){var n=t&-t;return n=(n&42)!==0?1:yi(n),(n&(e.suspendedLanes|t))!==0?0:n}function yi(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 Ju(e,t,n){if($n)for(e=e.pendingUpdatersLaneMap;0<n;){var i=31-$a(n),c=1<<i;e[i].add(t),n&=~c}}function or(e,t){if($n)for(var n=e.pendingUpdatersLaneMap,i=e.memoizedUpdaters;0<t;){var c=31-$a(t);e=1<<c,c=n[c],0<c.size&&(c.forEach(function(f){var m=f.alternate;m!==null&&i.has(m)||i.add(f)}),c.clear()),t&=~e}}function C(e){return e&=-e,Eo!==0&&Eo<e?mn!==0&&mn<e?(e&134217727)!==0?Wn:Yp:mn:Eo}function N(){var e=bt.p;if(e!==0)return e;return e=window.event,e===void 0?Wn:e1(e.type)}function oe(e,t){var n=bt.p;try{return bt.p=e,t()}finally{bt.p=n}}function ue(e){delete e[Oa],delete e[Wa],delete e[yy],delete e[Y2],delete e[$2]}function xe(e){var t=e[Oa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vr]||n[Oa]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=UC(e);e!==null;){if(n=e[Oa])return n;e=UC(e)}return t}e=n,n=e.parentNode}return null}function Ne(e){if(e=e[Oa]||e[vr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ze(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function pt(e){var t=e[g1];return t||(t=e[g1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ae(e){e[Hc]=!0}function Fa(e,t){Lo(e,t),Lo(e+"Capture",t)}function Lo(e,t){Oi[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Oi[e]=t;var n=e.toLowerCase();xy[n]=e,e==="onDoubleClick"&&(xy.ondblclick=e);for(e=0;e<t.length;e++)b1.add(t[e])}function nr(e,t){W2[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||(e==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ec(e){if(hn.call(x1,e))return!0;if(hn.call(y1,e))return!1;if(Z2.test(e))return x1[e]=!0;return y1[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function c0(e,t,n){if(ec(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":return n;case"function":return n;case"boolean":if(n===!1)return n}return n===void 0?void 0:null}if(e=e.getAttribute(t),e===""&&n===!0)return!0;return Ct(n,t),e===""+n?n:e}}function Ef(e,t,n){if(ec(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}}Ct(n,t),e.setAttribute(t,""+n)}}function Of(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}Ct(n,t),e.setAttribute(t,""+n)}}function ds(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}Ct(i,n),e.setAttributeNS(t,n,""+i)}}function qo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Ve(e),e;default:return""}}function d0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function XR(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{get:c,set:f}=i;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){Ve(m),n=""+m,f.call(this,m)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(m){Ve(m),n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jm(e){if(!e._valueTracker){var t=d0(e)?"checked":"value";e._valueTracker=XR(e,t,""+e[t])}}function f0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=d0(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Pf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Vo(e){return e.replace(Q2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function p0(e,t){t.checked===void 0||t.defaultChecked===void 0||S1||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Gt()||"A component",t.type),S1=!0),t.value===void 0||t.defaultValue===void 0||v1||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Gt()||"A component",t.type),v1=!0)}function eg(e,t,n,i,c,f,m,x){if(e.name="",m!=null&&typeof m!=="function"&&typeof m!=="symbol"&&typeof m!=="boolean"?(Ct(m,"type"),e.type=m):e.removeAttribute("type"),t!=null)if(m==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+qo(t)}else e.value!==""+qo(t)&&(e.value=""+qo(t));else m!=="submit"&&m!=="reset"||e.removeAttribute("value");t!=null?tg(e,m,qo(t)):n!=null?tg(e,m,qo(n)):i!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!=="function"&&typeof c!=="symbol"),x!=null&&typeof x!=="function"&&typeof x!=="symbol"&&typeof x!=="boolean"?(Ct(x,"name"),e.name=""+qo(x)):e.removeAttribute("name")}function h0(e,t,n,i,c,f,m,x){if(f!=null&&typeof f!=="function"&&typeof f!=="symbol"&&typeof f!=="boolean"&&(Ct(f,"type"),e.type=f),t!=null||n!=null){if(!(f!=="submit"&&f!=="reset"||t!==void 0&&t!==null)){Jm(e);return}n=n!=null?""+qo(n):"",t=t!=null?""+qo(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}i=i!=null?i:c,i=typeof i!=="function"&&typeof i!=="symbol"&&!!i,e.checked=x?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!=="function"&&typeof m!=="symbol"&&typeof m!=="boolean"&&(Ct(m,"name"),e.name=m),Jm(e)}function tg(e,t,n){t==="number"&&Pf(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function m0(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?Fu.Children.forEach(t.children,function(n){n==null||typeof n==="string"||typeof n==="number"||typeof n==="bigint"||C1||(C1=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||T1||(T1=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||L1||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),L1=!0)}function g0(){var e=Gt();return e?`
34
-
35
- Check the render method of \``+e+"`.":""}function Il(e,t,n,i){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&i&&(e[n].defaultSelected=!0)}else{n=""+qo(n),t=null;for(c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,i&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function b0(e,t){for(e=0;e<k1.length;e++){var n=k1[e];if(t[n]!=null){var i=ma(t[n]);t.multiple&&!i?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,g0()):!t.multiple&&i&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,g0())}}t.value===void 0||t.defaultValue===void 0||w1||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),w1=!0)}function y0(e,t){t.value===void 0||t.defaultValue===void 0||M1||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Gt()||"A component"),M1=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function x0(e,t,n){if(t!=null&&(t=""+qo(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+qo(n):""}function v0(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(ma(i)){if(1<i.length)throw Error("<textarea> can only have at most one child.");i=i[0]}n=i}n==null&&(n=""),t=n}n=qo(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Jm(e)}function S0(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?S0(e.children[0],t):e}function Co(e){return" "+" ".repeat(e)}function Al(e){return"+ "+" ".repeat(e)}function xi(e){return"- "+" ".repeat(e)}function L0(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function tc(e,t){return I1.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function Bf(e,t,n){var i=120-2*n;if(t===null)return Al(n)+tc(e,i)+`
36
- `;if(typeof t==="string"){for(var c=0;c<t.length&&c<e.length&&t.charCodeAt(c)===e.charCodeAt(c);c++);return c>i-8&&10<c&&(e="..."+e.slice(c-8),t="..."+t.slice(c-8)),Al(n)+tc(e,i)+`
37
- `+xi(n)+tc(t,i)+`
38
- `}return Co(n)+tc(e,i)+`
39
- `}function ag(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,n){return n})}function ac(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(ma(e))return"[...]";if(e.$$typeof===jn)return(t=Y(e.type))?"<"+t+">":"<...>";var n=ag(e);if(n==="Object"){n="",t-=2;for(var i in e)if(e.hasOwnProperty(i)){var c=JSON.stringify(i);if(c!=='"'+i+'"'&&(i=c),t-=i.length-2,c=ac(e[i],15>t?t:15),t-=c.length,0>t){n+=n===""?"...":", ...";break}n+=(n===""?"":",")+i+":"+c}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Rl(e,t){return typeof e!=="string"||I1.test(e)?"{"+ac(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function og(e,t,n){var i=120-n.length-e.length,c=[],f;for(f in t)if(t.hasOwnProperty(f)&&f!=="children"){var m=Rl(t[f],120-n.length-f.length-1);i-=f.length+m.length+2,c.push(f+"="+m)}return c.length===0?n+"<"+e+`>
40
- `:0<i?n+"<"+e+" "+c.join(" ")+`>
41
- `:n+"<"+e+`
42
- `+n+" "+c.join(`
43
- `+n+" ")+`
44
- `+n+`>
45
- `}function YR(e,t,n){var i="",c=Ze({},t),f;for(f in e)if(e.hasOwnProperty(f)){delete c[f];var m=120-2*n-f.length-2,x=ac(e[f],m);t.hasOwnProperty(f)?(m=ac(t[f],m),i+=Al(n)+f+": "+x+`
46
- `,i+=xi(n)+f+": "+m+`
47
- `):i+=Al(n)+f+": "+x+`
48
- `}for(var S in c)c.hasOwnProperty(S)&&(e=ac(c[S],120-2*n-S.length-2),i+=xi(n)+S+": "+e+`
49
- `);return i}function $R(e,t,n,i){var c="",f=new Map;for(L in n)n.hasOwnProperty(L)&&f.set(L.toLowerCase(),L);if(f.size===1&&f.has("children"))c+=og(e,t,Co(i));else{for(var m in t)if(t.hasOwnProperty(m)&&m!=="children"){var x=120-2*(i+1)-m.length-1,S=f.get(m.toLowerCase());if(S!==void 0){f.delete(m.toLowerCase());var L=t[m];S=n[S];var O=Rl(L,x);x=Rl(S,x),typeof L==="object"&&L!==null&&typeof S==="object"&&S!==null&&ag(L)==="Object"&&ag(S)==="Object"&&(2<Object.keys(L).length||2<Object.keys(S).length||-1<O.indexOf("...")||-1<x.indexOf("..."))?c+=Co(i+1)+m+`={{
50
- `+YR(L,S,i+2)+Co(i+1)+`}}
51
- `:(c+=Al(i+1)+m+"="+O+`
52
- `,c+=xi(i+1)+m+"="+x+`
53
- `)}else c+=Co(i+1)+m+"="+Rl(t[m],x)+`
54
- `}f.forEach(function(P){if(P!=="children"){var D=120-2*(i+1)-P.length-1;c+=xi(i+1)+P+"="+Rl(n[P],D)+`
55
- `}}),c=c===""?Co(i)+"<"+e+`>
56
- `:Co(i)+"<"+e+`
57
- `+c+Co(i)+`>
58
- `}if(e=n.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(f="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")f=""+t;c+=Bf(f,""+e,i+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")c=e==null?c+Bf(""+t,null,i+1):c+Bf(""+t,void 0,i+1);return c}function C0(e,t){var n=L0(e);if(n===null){n="";for(e=e.child;e;)n+=C0(e,t),e=e.sibling;return n}return Co(t)+"<"+n+`>
59
- `}function ng(e,t){var n=S0(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return Co(t)+`...
60
- `+ng(n,t+1);n="";var i=e.fiber._debugInfo;if(i)for(var c=0;c<i.length;c++){var f=i[c].name;typeof f==="string"&&(n+=Co(t)+"<"+f+`>
61
- `,t++)}if(i="",c=e.fiber.pendingProps,e.fiber.tag===6)i=Bf(c,e.serverProps,t),t++;else if(f=L0(e.fiber),f!==null)if(e.serverProps===void 0){i=t;var m=120-2*i-f.length-2,x="";for(L in c)if(c.hasOwnProperty(L)&&L!=="children"){var S=Rl(c[L],15);if(m-=L.length+S.length+2,0>m){x+=" ...";break}x+=" "+L+"="+S}i=Co(i)+"<"+f+x+`>
62
- `,t++}else e.serverProps===null?(i=og(f,c,Al(t)),t++):typeof e.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(i=$R(f,c,e.serverProps,t),t++);var L="";c=e.fiber.child;for(f=0;c&&f<e.children.length;)m=e.children[f],m.fiber===c?(L+=ng(m,t),f++):L+=C0(c,t),c=c.sibling;c&&0<e.children.length&&(L+=Co(t)+`...
63
- `),c=e.serverTail,e.serverProps===null&&t--;for(e=0;e<c.length;e++)f=c[e],L=typeof f==="string"?L+(xi(t)+tc(f,120-2*t)+`
64
- `):L+og(f.type,f.props,xi(t));return n+i+L}function sg(e){try{return`
65
-
66
- `+ng(e,0)}catch(t){return""}}function T0(e,t,n){for(var i=t,c=null,f=0;i;)i===e&&(f=0),c={fiber:i,children:c!==null?[c]:[],serverProps:i===t?n:i===e?null:void 0,serverTail:[],distanceFromLeaf:f},f++,i=i.return;return c!==null?sg(c).replaceAll(/^[+-]/gm,">"):""}function w0(e,t){var n=Ze({},e||R1),i={tag:t};if(A1.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),J2.indexOf(t)!==-1&&(n.pTagInButtonScope=null),K2.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=i,t==="form"&&(n.formTag=i),t==="a"&&(n.aTagInScope=i),t==="button"&&(n.buttonTagInScope=i),t==="nobr"&&(n.nobrTagInScope=i),t==="p"&&(n.pTagInButtonScope=i),t==="li"&&(n.listItemTagAutoclosing=i),t==="dd"||t==="dt")n.dlItemTagAutoclosing=i;return t==="#document"||t==="html"?n.containerTagInScope=null:n.containerTagInScope||(n.containerTagInScope=i),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?n.implicitRootScope===!0&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function k0(e,t,n){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(n)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!n)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return e_.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return n||t===null;case"html":return n&&t==="#document"||t===null;case"body":return n&&(t==="#document"||t==="html")||t===null}return!0}function WR(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function M0(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function rg(e,t){t=t||R1;var n=t.current;if(t=(n=k0(e,n&&n.tag,t.implicitRootScope)?null:n)?null:WR(e,t),t=n||t,!t)return!0;var i=t.tag;if(t=String(!!n)+"|"+e+"|"+i,$p[t])return!1;$p[t]=!0;var c=(t=_o)?M0(t.return,i):null,f=t!==null&&c!==null?T0(c,t,null):"",m="<"+e+">";return n?(n="",i==="table"&&e==="tr"&&(n+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
- This will cause a hydration error.%s`,m,i,n,f)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
- This will cause a hydration error.%s`,m,i,f),t&&(e=t.return,c===null||e===null||c===e&&e._debugOwner===t._debugOwner||me(c,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,i,m)})),!1}function Nf(e,t,n){if(n||k0("#text",t,!1))return!0;if(n="#text|"+t,$p[n])return!1;$p[n]=!0;var i=(n=_o)?M0(n,t):null;return n=n!==null&&i!==null?T0(i,n,n.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
- This will cause a hydration error.%s`,t,n):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
- This will cause a hydration error.%s`,t,n),!1}function oc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function ZR(e){return e.replace(o_,function(t,n){return n.toUpperCase()})}function I0(e,t,n){var i=t.indexOf("--")===0;i||(-1<t.indexOf("-")?Zl.hasOwnProperty(t)&&Zl[t]||(Zl[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,ZR(t.replace(a_,"ms-")))):t_.test(t)?Zl.hasOwnProperty(t)&&Zl[t]||(Zl[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!E1.test(n)||Sy.hasOwnProperty(n)&&Sy[n]||(Sy[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(E1,""))),typeof n==="number"&&(isNaN(n)?O1||(O1=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||P1||(P1=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),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||B1.has(t)?t==="float"?e.cssFloat=n:(Ku(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function A0(e,t,n){if(t!=null&&typeof t!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var i={};if(n){for(var c in n)if(n.hasOwnProperty(c)&&!t.hasOwnProperty(c))for(var f=vy[c]||[c],m=0;m<f.length;m++)i[f[m]]=c}for(var x in t)if(t.hasOwnProperty(x)&&(!n||n[x]!==t[x]))for(c=vy[x]||[x],f=0;f<c.length;f++)i[c[f]]=x;x={};for(var S in t)for(c=vy[S]||[S],f=0;f<c.length;f++)x[c[f]]=S;S={};for(var L in i)if(c=i[L],(f=x[L])&&c!==f&&(m=c+","+f,!S[m])){S[m]=!0,m=console;var O=t[c];m.error.call(m,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",O==null||typeof O==="boolean"||O===""?"Removing":"Updating",c,f)}}for(var P in n)!n.hasOwnProperty(P)||t!=null&&t.hasOwnProperty(P)||(P.indexOf("--")===0?e.setProperty(P,""):P==="float"?e.cssFloat="":e[P]="");for(var D in t)L=t[D],t.hasOwnProperty(D)&&n[D]!==L&&I0(e,D,L)}else for(i in t)t.hasOwnProperty(i)&&I0(e,i,t[i])}function nc(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}}function R0(e){return n_.get(e)||e}function QR(e,t){if(hn.call(Kl,t)&&Kl[t])return!0;if(r_.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=N1.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Kl[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Kl[t]=!0}if(s_.test(t)){if(e=t.toLowerCase(),e=N1.hasOwnProperty(e)?e:null,e==null)return Kl[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Kl[t]=!0)}return!0}function KR(e,t){var n=[],i;for(i in t)QR(e,i)||n.push(i);t=n.map(function(c){return"`"+c+"`"}).join(", "),n.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<n.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function JR(e,t,n,i){if(hn.call(Za,t)&&Za[t])return!0;var c=t.toLowerCase();if(c==="onfocusin"||c==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Za[t]=!0;if(typeof n==="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(i!=null){if(e=i.possibleRegistrationNames,i.registrationNameDependencies.hasOwnProperty(t))return!0;if(i=e.hasOwnProperty(c)?e[c]:null,i!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,i),Za[t]=!0;if(H1.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Za[t]=!0}else if(H1.test(t))return i_.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Za[t]=!0;if(l_.test(t)||u_.test(t))return!0;if(c==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Za[t]=!0;if(c==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Za[t]=!0;if(c==="is"&&n!==null&&n!==void 0&&typeof n!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Za[t]=!0;if(typeof n==="number"&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Za[t]=!0;if(Zp.hasOwnProperty(c)){if(c=Zp[c],c!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,c),Za[t]=!0}else if(t!==c)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,c),Za[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof n){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:if(c=t.toLowerCase().slice(0,5),c==="data-"||c==="aria-")return!0;return n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),Za[t]=!0}case"function":case"symbol":return Za[t]=!0,!1;case"string":if(n==="false"||n==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),Za[t]=!0}}return!0}function eD(e,t,n){var i=[],c;for(c in t)JR(e,c,t[c],n)||i.push(c);t=i.map(function(f){return"`"+f+"`"}).join(", "),i.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<i.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function sc(e){return c_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function fs(){}function ig(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function D0(e){var t=Ne(e);if(t&&(e=t.stateNode)){var n=e[Wa]||null;e:switch(e=t.stateNode,t.type){case"input":if(eg(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;Ct(t,"name"),n=n.querySelectorAll('input[name="'+Vo(""+t)+'"][type="radio"]');for(t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var c=i[Wa]||null;if(!c)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");eg(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&f0(i)}break e;case"textarea":x0(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Il(e,!!n.multiple,t,!1)}}}function _0(e,t,n){if(Ly)return e(t,n);Ly=!0;try{var i=e(t);return i}finally{if(Ly=!1,Jl!==null||eu!==null){if(Ul(),Jl&&(t=Jl,e=eu,eu=Jl=null,D0(t),e))for(t=0;t<e.length;t++)D0(e[t])}}}function rc(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Wa]||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("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function E0(){if(Qp)return Qp;var e,t=Ty,n=t.length,i,c="value"in Sr?Sr.value:Sr.textContent,f=c.length;for(e=0;e<n&&t[e]===c[e];e++);var m=n-e;for(i=1;i<=m&&t[n-i]===c[f-i];i++);return Qp=c.slice(e,1<i?1-i:void 0)}function zf(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 Hf(){return!0}function O0(){return!1}function no(e){function t(n,i,c,f,m){this._reactName=n,this._targetInst=c,this.type=i,this.nativeEvent=f,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(f):f[x]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Hf:O0,this.isPropagationStopped=O0,this}return Ze(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=Hf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!=="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hf)},persist:function(){},isPersistent:Hf}),t}function tD(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=C_[e])?!!t[e]:!1}function lg(){return tD}function P0(e,t){switch(e){case"keyup":return P_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==V1;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function aD(e,t){switch(e){case"compositionend":return B0(t);case"keypress":if(t.which!==G1)return null;return Y1=!0,X1;case"textInput":return e=t.data,e===X1&&Y1?null:e;default:return null}}function oD(e,t){if(tu)return e==="compositionend"||!Iy&&P0(e,t)?(e=E0(),Qp=Ty=Sr=null,tu=!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 j1&&t.locale!=="ko"?null:t.data;default:return null}}function N0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!N_[e.type]:t==="textarea"?!0:!1}function nD(e){if(!Zn)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]==="function"),t}function z0(e,t,n,i){Jl?eu?eu.push(i):eu=[i]:Jl=i,t=Dp(t,"onChange"),0<t.length&&(n=new Kp("onChange","change",null,n,i),e.push({event:n,listeners:t}))}function sD(e){vC(e,0)}function Uf(e){var t=ze(e);if(f0(t))return e}function H0(e,t){if(e==="change")return t}function U0(){Gc&&(Gc.detachEvent("onpropertychange",F0),Xc=Gc=null)}function F0(e){if(e.propertyName==="value"&&Uf(Xc)){var t=[];z0(t,Xc,e,ig(e)),_0(sD,t)}}function rD(e,t,n){e==="focusin"?(U0(),Gc=t,Xc=n,Gc.attachEvent("onpropertychange",F0)):e==="focusout"&&U0()}function iD(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Uf(Xc)}function lD(e,t){if(e==="click")return Uf(t)}function uD(e,t){if(e==="input"||e==="change")return Uf(t)}function cD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function ic(e,t){if(Qa(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 c=n[i];if(!hn.call(t,c)||!Qa(e[c],t[c]))return!1}return!0}function q0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function V0(e,t){var n=q0(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=q0(n)}}function j0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?j0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function G0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==="string"}catch(i){n=!1}if(n)e=t.contentWindow;else break;t=Pf(e.document)}return t}function ug(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")}function X0(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ry||au==null||au!==Pf(i)||(i=au,("selectionStart"in i)&&ug(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}),Yc&&ic(Yc,i)||(Yc=i,i=Dp(Ay,"onSelect"),0<i.length&&(t=new Kp("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=au)))}function vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function Si(e){if(Dy[e])return Dy[e];if(!ou[e])return e;var t=ou[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in W1)return Dy[e]=t[n];return e}function dn(e,t){eT.set(e,t),Fa(t,[e])}function dD(e){for(var t=eh,n=0;n<e.length;n++){var i=e[n];if(typeof i==="object"&&i!==null)if(ma(i)&&i.length===2&&typeof i[0]==="string"){if(t!==eh&&t!==By)return Oy;t=By}else return Oy;else{if(typeof i==="function"||typeof i==="string"&&50<i.length||t!==eh&&t!==Py)return Oy;t=Py}}return t}function cg(e,t,n,i){for(var c in e)hn.call(e,c)&&c[0]!=="_"&&In(c,e[c],t,n,i)}function In(e,t,n,i,c){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===jn){var f=Y(t.type)||"…",m=t.key;t=t.props;var x=Object.keys(t),S=x.length;if(m==null&&S===0){t="<"+f+" />";break}if(3>i||S===1&&x[0]==="children"&&m==null){t="<"+f+" … />";break}n.push([c+"  ".repeat(i)+e,"<"+f]),m!==null&&In("key",m,n,i+1,c),e=!1;for(var L in t)L==="children"?t.children!=null&&(!ma(t.children)||0<t.children.length)&&(e=!0):hn.call(t,L)&&L[0]!=="_"&&In(L,t[L],n,i+1,c);n.push(["",e?">…</"+f+">":"/>"]);return}if(f=Object.prototype.toString.call(t),f=f.slice(8,f.length-1),f==="Array"){if(L=dD(t),L===Py||L===eh){t=JSON.stringify(t);break}else if(L===By){n.push([c+"  ".repeat(i)+e,""]);for(e=0;e<t.length;e++)f=t[e],In(f[0],f[1],n,i+1,c);return}}if(f==="Promise"){if(t.status==="fulfilled"){if(f=n.length,In(e,t.value,n,i,c),n.length>f){n=n[f],n[1]="Promise<"+(n[1]||"Object")+">";return}}else if(t.status==="rejected"&&(f=n.length,In(e,t.reason,n,i,c),n.length>f)){n=n[f],n[1]="Rejected Promise<"+n[1]+">";return}n.push(["  ".repeat(i)+e,"Promise"]);return}f==="Object"&&(L=Object.getPrototypeOf(t))&&typeof L.constructor==="function"&&(f=L.constructor.name),n.push([c+"  ".repeat(i)+e,f==="Object"?3>i?"":"…":f]),3>i&&cg(t,n,i+1,c);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===j_?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}n.push([c+"  ".repeat(i)+e,t])}function Y0(e,t,n,i){var c=!0;for(m in e)m in t||(n.push([th+"  ".repeat(i)+m,"…"]),c=!1);for(var f in t)if(f in e){var m=e[f],x=t[f];if(m!==x){if(i===0&&f==="children")c="  ".repeat(i)+f,n.push([th+c,"…"],[ah+c,"…"]);else{if(!(3<=i)){if(typeof m==="object"&&typeof x==="object"&&m!==null&&x!==null&&m.$$typeof===x.$$typeof)if(x.$$typeof===jn){if(m.type===x.type&&m.key===x.key){m=Y(x.type)||"…",c="  ".repeat(i)+f,m="<"+m+" … />",n.push([th+c,m],[ah+c,m]),c=!1;continue}}else{var S=Object.prototype.toString.call(m),L=Object.prototype.toString.call(x);if(S===L&&(L==="[object Object]"||L==="[object Array]")){S=[oT+"  ".repeat(i)+f,L==="[object Array]"?"Array":""],n.push(S),L=n.length,Y0(m,x,n,i+1)?L===n.length&&(S[1]="Referentially unequal but deeply equal objects. Consider memoization."):c=!1;continue}}else if(typeof m==="function"&&typeof x==="function"&&m.name===x.name&&m.length===x.length&&(S=Function.prototype.toString.call(m),L=Function.prototype.toString.call(x),S===L)){m=x.name===""?"() => {}":x.name+"() {}",n.push([oT+"  ".repeat(i)+f,m+" Referentially unequal function closure. Consider memoization."]);continue}}In(f,m,n,i,th),In(f,x,n,i,ah)}c=!1}}else n.push([ah+"  ".repeat(i)+f,"…"]),c=!1;return c}function To(e){Je=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function An(e,t,n,i){Pt&&(Cr.start=t,Cr.end=n,Ss.color="warning",Ss.tooltipText=i,Ss.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,i,Cr)):performance.measure(i,Cr))}function Ff(e,t,n){An(e,t,n,"Reconnect")}function qf(e,t,n,i,c){var f=X(e);if(f!==null&&Pt){var{alternate:m,actualDuration:x}=e;if(m===null||m.child!==e.child)for(var S=e.child;S!==null;S=S.sibling)x-=S.actualDuration;i=0.5>x?i?"tertiary-light":"primary-light":10>x?i?"tertiary":"primary":100>x?i?"tertiary-dark":"primary-dark":"error";var L=e.memoizedProps;x=e._debugTask,L!==null&&m!==null&&m.memoizedProps!==L?(S=[G_],L=Y0(m.memoizedProps,L,S,0),1<S.length&&(L&&!Lr&&(m.lanes&c)===0&&100<e.actualDuration?(Lr=!0,S[0]=X_,Ss.color="warning",Ss.tooltipText=nT):(Ss.color=i,Ss.tooltipText=f),Ss.properties=S,Cr.start=t,Cr.end=n,x!=null?x.run(performance.measure.bind(performance,"​"+f,Cr)):performance.measure("​"+f,Cr))):x!=null?x.run(console.timeStamp.bind(console,f,t,n,Go,void 0,i)):console.timeStamp(f,t,n,Go,void 0,i)}}function dg(e,t,n,i){if(Pt){var c=X(e);if(c!==null){for(var f=null,m=[],x=0;x<i.length;x++){var S=i[x];f==null&&S.source!==null&&(f=S.source._debugTask),S=S.value,m.push(["Error",typeof S==="object"&&S!==null&&typeof S.message==="string"?String(S.message):String(S)])}e.key!==null&&In("key",e.key,m,0,""),e.memoizedProps!==null&&cg(e.memoizedProps,m,0,""),f==null&&(f=e._debugTask),e={start:t,end:n,detail:{devtools:{color:"error",track:Go,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:m}}},f?f.run(performance.measure.bind(performance,"​"+c,e)):performance.measure("​"+c,e)}}}function Rn(e,t,n,i,c){if(c!==null){if(Pt){var f=X(e);if(f!==null){i=[];for(var m=0;m<c.length;m++){var x=c[m].value;i.push(["Error",typeof x==="object"&&x!==null&&typeof x.message==="string"?String(x.message):String(x)])}e.key!==null&&In("key",e.key,i,0,""),e.memoizedProps!==null&&cg(e.memoizedProps,i,0,""),t={start:t,end:n,detail:{devtools:{color:"error",track:Go,tooltipText:"A lifecycle or effect errored",properties:i}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+f,t)):performance.measure("​"+f,t)}}}else f=X(e),f!==null&&Pt&&(c=1>i?"secondary-light":100>i?"secondary":500>i?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,f,t,n,Go,void 0,c)):console.timeStamp(f,t,n,Go,void 0,c))}function fD(e,t,n,i){if(Pt&&!(t<=e)){var c=(n&738197653)===n?"tertiary-dark":"primary-dark";n=(n&536870912)===n?"Prepared":(n&201326741)===n?"Hydrated":"Render",i?i.run(console.timeStamp.bind(console,n,e,t,Je,Qe,c)):console.timeStamp(n,e,t,Je,Qe,c)}}function $0(e,t,n,i){!Pt||t<=e||(n=(n&738197653)===n?"tertiary-dark":"primary-dark",i?i.run(console.timeStamp.bind(console,"Prewarm",e,t,Je,Qe,n)):console.timeStamp("Prewarm",e,t,Je,Qe,n))}function W0(e,t,n,i){!Pt||t<=e||(n=(n&738197653)===n?"tertiary-dark":"primary-dark",i?i.run(console.timeStamp.bind(console,"Suspended",e,t,Je,Qe,n)):console.timeStamp("Suspended",e,t,Je,Qe,n))}function pD(e,t,n,i,c,f){if(Pt&&!(t<=e)){n=[];for(var m=0;m<i.length;m++){var x=i[m].value;n.push(["Recoverable Error",typeof x==="object"&&x!==null&&typeof x.message==="string"?String(x.message):String(x)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:Je,trackGroup:Qe,tooltipText:c?"Hydration Failed":"Recovered after Error",properties:n}}},f?f.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function fg(e,t,n,i){!Pt||t<=e||(i?i.run(console.timeStamp.bind(console,"Errored",e,t,Je,Qe,"error")):console.timeStamp("Errored",e,t,Je,Qe,"error"))}function hD(e,t,n,i){!Pt||t<=e||(i?i.run(console.timeStamp.bind(console,n,e,t,Je,Qe,"secondary-light")):console.timeStamp(n,e,t,Je,Qe,"secondary-light"))}function Z0(e,t,n,i,c){if(Pt&&!(t<=e)){for(var f=[],m=0;m<n.length;m++){var x=n[m].value;f.push(["Error",typeof x==="object"&&x!==null&&typeof x.message==="string"?String(x.message):String(x)])}e={start:e,end:t,detail:{devtools:{color:"error",track:Je,trackGroup:Qe,tooltipText:i?"Remaining Effects Errored":"Commit Errored",properties:f}}},c?c.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function lc(e,t,n){!Pt||t<=e||(n?n.run(console.timeStamp.bind(console,"Animating",e,t,Je,Qe,"secondary-dark")):console.timeStamp("Animating",e,t,Je,Qe,"secondary-dark"))}function Vf(){for(var e=nu,t=Ny=nu=0;t<e;){var n=Xo[t];Xo[t++]=null;var i=Xo[t];Xo[t++]=null;var c=Xo[t];Xo[t++]=null;var f=Xo[t];if(Xo[t++]=null,i!==null&&c!==null){var m=i.pending;m===null?c.next=c:(c.next=m.next,m.next=c),i.pending=c}f!==0&&Q0(n,c,f)}}function jf(e,t,n,i){Xo[nu++]=e,Xo[nu++]=t,Xo[nu++]=n,Xo[nu++]=i,Ny|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function pg(e,t,n,i){return jf(e,t,n,i),Gf(e)}function qa(e,t){return jf(e,null,null,t),Gf(e)}function Q0(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var c=!1,f=e.return;f!==null;)f.childLanes|=n,i=f.alternate,i!==null&&(i.childLanes|=n),f.tag===22&&(e=f.stateNode,e===null||e._visibility&$c||(c=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,c&&t!==null&&(c=31-$a(n),e=f.hiddenUpdates,i=e[c],i===null?e[c]=[t]:i.push(t),t.lane=n|536870912),f):null}function Gf(e){if(Sd>iE)throw Zi=Sd=0,Ld=gx=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Zi>lE&&(Zi=0,Ld=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&pC(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&(t.flags&4098)!==0&&pC(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function Li(e){if(Yo===null)return e;var t=Yo(e);return t===void 0?e:t.current}function hg(e){if(Yo===null)return e;var t=Yo(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=Li(e.render),e.render!==t)?(t={$$typeof:Bc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function K0(e,t){if(Yo===null)return!1;var n=e.elementType;t=t.type;var i=!1,c=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(i=!0);break;case 0:typeof t==="function"?i=!0:c===Do&&(i=!0);break;case 11:c===Bc?i=!0:c===Do&&(i=!0);break;case 14:case 15:c===qp?i=!0:c===Do&&(i=!0);break;default:return!1}return i&&(e=Yo(n),e!==void 0&&e===Yo(t))?!0:!1}function J0(e){Yo!==null&&typeof WeakSet==="function"&&(su===null&&(su=new WeakSet),su.add(e))}function eS(e,t,n){do{var i=e,c=i.alternate,f=i.child,m=i.sibling,x=i.tag;i=i.type;var S=null;switch(x){case 0:case 15:case 1:S=i;break;case 11:S=i.render}if(Yo===null)throw Error("Expected resolveFamily to be set during hot reload.");var L=!1;if(i=!1,S!==null&&(S=Yo(S),S!==void 0&&(n.has(S)?i=!0:t.has(S)&&(x===1?i=!0:L=!0))),su!==null&&(su.has(e)||c!==null&&su.has(c))&&(i=!0),i&&(e._debugNeedsRemount=!0),i||L)c=qa(e,2),c!==null&&Zt(c,e,2);if(f===null||i||eS(f,t,n),m===null)break;e=m}while(1)}function mD(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,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,sT||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function mg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ps(e,t){var n=e.alternate;switch(n===null?(n=v(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),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,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=Li(e.type);break;case 1:n.type=Li(e.type);break;case 11:n.type=hg(e.type)}return n}function tS(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.selfBaseDuration=0,e.treeBaseDuration=0):(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,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function gg(e,t,n,i,c,f){var m=0,x=e;if(typeof e==="function")mg(e)&&(m=1),x=Li(x);else if(typeof e==="string")m=ye(),m=T2(e,n,m)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ly:return t=v(31,n,t,c),t.elementType=ly,t.lanes=f,t;case Yl:return Ci(n.children,c,f,t);case Fp:m=8,c|=ja,c|=gn;break;case ny:return e=n,i=c,typeof e.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=v(12,e,t,i|je),t.elementType=ny,t.lanes=f,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case ry:return t=v(13,n,t,c),t.elementType=ry,t.lanes=f,t;case iy:return t=v(19,n,t,c),t.elementType=iy,t.lanes=f,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Gn:m=10;break e;case sy:m=9;break e;case Bc:m=11,x=hg(x);break e;case qp:m=14;break e;case Do:m=16,x=null;break e}if(x="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)x+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";e===null?n="null":ma(e)?n="array":e!==void 0&&e.$$typeof===jn?(n="<"+(Y(e.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(m=i?J(i):null)&&(x+=`
72
-
73
- Check the render method of \``+m+"`."),m=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(n+"."+x)),x=null}return t=v(m,n,t,c),t.elementType=e,t.type=x,t.lanes=f,t._debugOwner=i,t}function Xf(e,t,n){return t=gg(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Ci(e,t,n,i){return e=v(7,e,i,t),e.lanes=n,e}function bg(e,t,n){return e=v(6,e,null,t),e.lanes=n,e}function aS(e){var t=v(18,null,null,Oe);return t.stateNode=e,t}function yg(e,t,n){return t=v(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wo(e,t){if(typeof e==="object"&&e!==null){var n=zy.get(e);if(n!==void 0)return n;return t={value:e,source:t,stack:et(t)},zy.set(e,t),t}return{value:e,source:t,stack:et(t)}}function hs(e,t){sr(),ru[iu++]=Wc,ru[iu++]=oh,oh=e,Wc=t}function oS(e,t,n){sr(),$o[Wo++]=Cs,$o[Wo++]=Ts,$o[Wo++]=Bi,Bi=e;var i=Cs;e=Ts;var c=32-$a(i)-1;i&=~(1<<c),n+=1;var f=32-$a(t)+c;if(30<f){var m=c-c%5;f=(i&(1<<m)-1).toString(32),i>>=m,c-=m,Cs=1<<32-$a(t)+c|n<<c|i,Ts=f+e}else Cs=1<<f|n<<c|i,Ts=e}function xg(e){sr(),e.return!==null&&(hs(e,1),oS(e,1,0))}function vg(e){for(;e===oh;)oh=ru[--iu],ru[iu]=null,Wc=ru[--iu],ru[iu]=null;for(;e===Bi;)Bi=$o[--Wo],$o[Wo]=null,Ts=$o[--Wo],$o[Wo]=null,Cs=$o[--Wo],$o[Wo]=null}function nS(){return sr(),Bi!==null?{id:Cs,overflow:Ts}:null}function sS(e,t){sr(),$o[Wo++]=Cs,$o[Wo++]=Ts,$o[Wo++]=Bi,Cs=t.id,Ts=t.overflow,Bi=e}function sr(){at||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Ti(e,t){if(e.return===null){if(Oo===null)Oo={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Oo.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Oo.distanceFromLeaf>t&&(Oo.distanceFromLeaf=t)}return Oo}var n=Ti(e.return,t+1).children;if(0<n.length&&n[n.length-1].fiber===e)return n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n;return t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t}function rS(){at&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Yf(e,t){Qn||(e=Ti(e,0),e.serverProps=null,t!==null&&(t=zC(t),e.serverTail.push(t)))}function rr(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,n="",i=Oo;throw i!==null&&(Oo=null,n=sg(i)),uc(wo(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
20
+ `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function pe(e){if(Xg===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Xg=t&&t[1]||"",Gx=-1<a.stack.indexOf(`
21
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
22
+ `+Xg+e+Gx}function Lt(e,t){if(!e||jg)return"";var a=Yg.get(e);if(a!==void 0)return a;jg=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=G.H,G.H=null,ue();try{var l={DetermineComponentFrameRoot:function(){try{if(t){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(de){var U=de}Reflect.construct(e,[],T)}else{try{T.call()}catch(de){U=de}e.call(T.prototype)}}else{try{throw Error()}catch(de){U=de}(T=e())&&typeof T.catch==="function"&&T.catch(function(){})}}catch(de){if(de&&U&&typeof de.stack==="string")return[de.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),d=s[0],m=s[1];if(d&&m){var g=d.split(`
23
+ `),A=m.split(`
24
+ `);for(s=n=0;n<g.length&&!g[n].includes("DetermineComponentFrameRoot");)n++;for(;s<A.length&&!A[s].includes("DetermineComponentFrameRoot");)s++;if(n===g.length||s===A.length)for(n=g.length-1,s=A.length-1;1<=n&&0<=s&&g[n]!==A[s];)s--;for(;1<=n&&0<=s;n--,s--)if(g[n]!==A[s]){if(n!==1||s!==1)do if(n--,s--,0>s||g[n]!==A[s]){var E=`
25
+ `+g[n].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e==="function"&&Yg.set(e,E),E}while(1<=n&&0<=s);break}}}finally{jg=!1,G.H=o,se(),Error.prepareStackTrace=a}return g=(g=e?e.displayName||e.name:"")?pe(g):"",typeof e==="function"&&Yg.set(e,g),g}function Ye(e,t){switch(e.tag){case 26:case 27:case 5:return pe(e.type);case 16:return pe("Lazy");case 13:return e.child!==t&&t!==null?pe("Suspense Fallback"):pe("Suspense");case 19:return pe("SuspenseList");case 0:case 15:return Lt(e.type,!1);case 11:return Lt(e.type.render,!1);case 1:return Lt(e.type,!0);case 31:return pe("Activity");default:return""}}function V(e){try{var t="",a=null;do{t+=Ye(e,a);var o=e._debugInfo;if(o)for(var l=o.length-1;0<=l;l--){var n=o[l];if(typeof n.name==="string"){var s=t;e:{var{name:d,env:m,debugLocation:g}=n;if(g!=null){var A=ne(g),E=A.lastIndexOf(`
26
+ `),T=E===-1?A:A.slice(E+1);if(T.indexOf(d)!==-1){var U=`
27
+ `+T;break e}}U=pe(d+(m?" ["+m+"]":""))}t=s+U}}a=e,e=e.return}while(e);return t}catch(de){return`
28
+ Error generating stack: `+de.message+`
29
+ `+de.stack}}function Pe(e){return(e=e?e.displayName||e.name:"")?pe(e):""}function Mt(){if(Do===null)return null;var e=Do._debugOwner;return e!=null?W(e):null}function pa(){if(Do===null)return"";var e=Do;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=pe(e.type);break;case 13:t+=pe("Suspense");break;case 19:t+=pe("SuspenseList");break;case 31:t+=pe("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Pe(e.type));break;case 11:e._debugOwner||t!==""||(t+=Pe(e.type.render))}for(;e;)if(typeof e.tag==="number"){var a=e;e=a._debugOwner;var o=a._debugStack;if(e&&o){var l=ne(o);l!==""&&(t+=`
30
+ `+l)}}else if(e.debugStack!=null){var n=e.debugStack;(e=e.owner)&&n&&(t+=`
31
+ `+ne(n))}else break;var s=t}catch(d){s=`
32
+ Error generating stack: `+d.message+`
33
+ `+d.stack}return s}function re(e,t,a,o,l,n,s){var d=Do;ma(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,l,n,s)):t(a,o,l,n,s)}finally{ma(d)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ma(e){G.getCurrentStack=e===null?null:pa,jl=!1,Do=e}function Ia(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Kt(e){try{return Yt(e),!1}catch(t){return!0}}function Yt(e){return""+e}function gt(e,t){if(Kt(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ia(e)),Yt(e)}function Et(e,t){if(Kt(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ia(e)),Yt(e)}function Ee(e){if(Kt(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ia(e)),Yt(e)}function rl(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Ru=t.inject(e),Ka=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function _t(e){if(typeof sR==="function"&&uR(e),Ka&&typeof Ka.setStrictMode==="function")try{Ka.setStrictMode(Ru,e)}catch(t){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",t))}}function Vc(e){return e>>>=0,e===0?32:31-(iR(e)/dR|0)|0}function Rl(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 console.error("Should have found matching lanes. This is a bug in React."),e}}function Kr(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var l=0,n=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var d=o&134217727;return d!==0?(o=d&~n,o!==0?l=Rl(o):(s&=d,s!==0?l=Rl(s):a||(a=d&~e,a!==0&&(l=Rl(a))))):(d=o&~n,d!==0?l=Rl(d):s!==0?l=Rl(s):a||(a=o&~e,a!==0&&(l=Rl(a)))),l===0?0:t!==0&&t!==l&&(t&n)===0&&(n=l&-l,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:l}function Jr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Om(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+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function nu(){var e=rp;return rp<<=1,(rp&62914560)===0&&(rp=4194304),e}function ru(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Wn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $c(e,t,a,o,l,n){var s=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:d,expirationTimes:m,hiddenUpdates:g}=e;for(a=s&~a;0<a;){var A=31-ao(a),E=1<<A;d[A]=0,m[A]=-1;var T=g[A];if(T!==null)for(g[A]=null,A=0;A<T.length;A++){var U=T[A];U!==null&&(U.lane&=-536870913)}a&=~E}o!==0&&es(e,o,0),n!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=n&~(s&~t))}function es(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-ao(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function ts(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-ao(a),l=1<<o;l&t|e[o]&t&&(e[o]|=t),a&=~l}}function as(e,t){var a=t&-t;return a=(a&42)!==0?1:os(a),(a&(e.suspendedLanes|t))!==0?0:a}function os(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 Ri(e,t,a){if(Ql)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-ao(a),l=1<<o;e[o].add(t),a&=~l}}function Kn(e,t){if(Ql)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var l=31-ao(t);e=1<<l,l=a[l],0<l.size&&(l.forEach(function(n){var s=n.alternate;s!==null&&o.has(s)||o.add(n)}),l.clear()),t&=~e}}function y(e){return e&=-e,Eo!==0&&Eo<e?cl!==0&&cl<e?(e&134217727)!==0?Zl:sp:cl:Eo}function O(){var e=kt.p;if(e!==0)return e;return e=window.event,e===void 0?Zl:Rx(e.type)}function ie(e,t){var a=kt.p;try{return kt.p=e,t()}finally{kt.p=a}}function me(e){delete e[Xa],delete e[oo],delete e[Jg],delete e[cR],delete e[fR]}function we(e){var t=e[Xa];if(t)return t;for(var a=e.parentNode;a;){if(t=a[hr]||a[Xa]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=mx(e);e!==null;){if(a=e[Xa])return a;e=mx(e)}return t}e=a,a=e.parentNode}return null}function $e(e){if(e=e[Xa]||e[hr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xe(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function yt(e){var t=e[Vx];return t||(t=e[Vx]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Oe(e){e[md]=!0}function Za(e,t){xo(e,t),xo(e+"Capture",t)}function xo(e,t){vs[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),vs[e]=t;var a=e.toLowerCase();ey[a]=e,e==="onDoubleClick"&&(ey.ondblclick=e);for(e=0;e<t.length;e++)$x.add(t[e])}function Jn(e,t){pR[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||(e==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Mi(e){if(dl.call(jx,e))return!0;if(dl.call(Xx,e))return!1;if(mR.test(e))return jx[e]=!0;return Xx[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function Pb(e,t,a){if(Mi(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}if(e=e.getAttribute(t),e===""&&a===!0)return!0;return gt(a,t),e===""+a?a:e}}function Xc(e,t,a){if(Mi(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}gt(a,t),e.setAttribute(t,""+a)}}function jc(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}gt(a,t),e.setAttribute(t,""+a)}}function yn(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}gt(o,a),e.setAttributeNS(t,a,""+o)}}function Ho(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Ee(e),e;default:return""}}function zb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dT(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:l,set:n}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){Ee(s),a=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(s){Ee(s),a=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qm(e){if(!e._valueTracker){var t=zb(e)?"checked":"value";e._valueTracker=dT(e,t,""+e[t])}}function _b(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=zb(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Yc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Fo(e){return e.replace(hR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Hb(e,t){t.checked===void 0||t.defaultChecked===void 0||Qx||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component",t.type),Qx=!0),t.value===void 0||t.defaultValue===void 0||Yx||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component",t.type),Yx=!0)}function Bm(e,t,a,o,l,n,s,d){if(e.name="",s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"?(gt(s,"type"),e.type=s):e.removeAttribute("type"),t!=null)if(s==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+Ho(t)}else e.value!==""+Ho(t)&&(e.value=""+Ho(t));else s!=="submit"&&s!=="reset"||e.removeAttribute("value");t!=null?Nm(e,s,Ho(t)):a!=null?Nm(e,s,Ho(a)):o!=null&&e.removeAttribute("value"),l==null&&n!=null&&(e.defaultChecked=!!n),l!=null&&(e.checked=l&&typeof l!=="function"&&typeof l!=="symbol"),d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"?(gt(d,"name"),e.name=""+Ho(d)):e.removeAttribute("name")}function Fb(e,t,a,o,l,n,s,d){if(n!=null&&typeof n!=="function"&&typeof n!=="symbol"&&typeof n!=="boolean"&&(gt(n,"type"),e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!==void 0&&t!==null)){qm(e);return}a=a!=null?""+Ho(a):"",t=t!=null?""+Ho(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:l,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=d?e.checked:!!o,e.defaultChecked=!!o,s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(gt(s,"name"),e.name=s),qm(e)}function Nm(e,t,a){t==="number"&&Yc(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Gb(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?ii.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||Wx||(Wx=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||Kx||(Kx=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Zx||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Zx=!0)}function Vb(){var e=Mt();return e?`
34
+
35
+ Check the render method of \``+e+"`.":""}function su(e,t,a,o){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&o&&(e[a].defaultSelected=!0)}else{a=""+Ho(a),t=null;for(l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function $b(e,t){for(e=0;e<eL.length;e++){var a=eL[e];if(t[a]!=null){var o=Ra(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,Vb()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,Vb())}}t.value===void 0||t.defaultValue===void 0||Jx||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),Jx=!0)}function Xb(e,t){t.value===void 0||t.defaultValue===void 0||tL||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component"),tL=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function jb(e,t,a){if(t!=null&&(t=""+Ho(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ho(a):""}function Yb(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ra(o)){if(1<o.length)throw Error("<textarea> can only have at most one child.");o=o[0]}a=o}a==null&&(a=""),t=a}a=Ho(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),qm(e)}function Qb(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Qb(e.children[0],t):e}function Lo(e){return" "+" ".repeat(e)}function uu(e){return"+ "+" ".repeat(e)}function ls(e){return"- "+" ".repeat(e)}function Zb(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Ai(e,t){return aL.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function Qc(e,t,a){var o=120-2*a;if(t===null)return uu(a)+Ai(e,o)+`
36
+ `;if(typeof t==="string"){for(var l=0;l<t.length&&l<e.length&&t.charCodeAt(l)===e.charCodeAt(l);l++);return l>o-8&&10<l&&(e="..."+e.slice(l-8),t="..."+t.slice(l-8)),uu(a)+Ai(e,o)+`
37
+ `+ls(a)+Ai(t,o)+`
38
+ `}return Lo(a)+Ai(e,o)+`
39
+ `}function Um(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function Di(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(Ra(e))return"[...]";if(e.$$typeof===$l)return(t=Z(e.type))?"<"+t+">":"<...>";var a=Um(e);if(a==="Object"){a="",t-=2;for(var o in e)if(e.hasOwnProperty(o)){var l=JSON.stringify(o);if(l!=='"'+o+'"'&&(o=l),t-=o.length-2,l=Di(e[o],15>t?t:15),t-=l.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+o+":"+l}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function iu(e,t){return typeof e!=="string"||aL.test(e)?"{"+Di(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Pm(e,t,a){var o=120-a.length-e.length,l=[],n;for(n in t)if(t.hasOwnProperty(n)&&n!=="children"){var s=iu(t[n],120-a.length-n.length-1);o-=n.length+s.length+2,l.push(n+"="+s)}return l.length===0?a+"<"+e+`>
40
+ `:0<o?a+"<"+e+" "+l.join(" ")+`>
41
+ `:a+"<"+e+`
42
+ `+a+" "+l.join(`
43
+ `+a+" ")+`
44
+ `+a+`>
45
+ `}function cT(e,t,a){var o="",l=rt({},t),n;for(n in e)if(e.hasOwnProperty(n)){delete l[n];var s=120-2*a-n.length-2,d=Di(e[n],s);t.hasOwnProperty(n)?(s=Di(t[n],s),o+=uu(a)+n+": "+d+`
46
+ `,o+=ls(a)+n+": "+s+`
47
+ `):o+=uu(a)+n+": "+d+`
48
+ `}for(var m in l)l.hasOwnProperty(m)&&(e=Di(l[m],120-2*a-m.length-2),o+=ls(a)+m+": "+e+`
49
+ `);return o}function fT(e,t,a,o){var l="",n=new Map;for(g in a)a.hasOwnProperty(g)&&n.set(g.toLowerCase(),g);if(n.size===1&&n.has("children"))l+=Pm(e,t,Lo(o));else{for(var s in t)if(t.hasOwnProperty(s)&&s!=="children"){var d=120-2*(o+1)-s.length-1,m=n.get(s.toLowerCase());if(m!==void 0){n.delete(s.toLowerCase());var g=t[s];m=a[m];var A=iu(g,d);d=iu(m,d),typeof g==="object"&&g!==null&&typeof m==="object"&&m!==null&&Um(g)==="Object"&&Um(m)==="Object"&&(2<Object.keys(g).length||2<Object.keys(m).length||-1<A.indexOf("...")||-1<d.indexOf("..."))?l+=Lo(o+1)+s+`={{
50
+ `+cT(g,m,o+2)+Lo(o+1)+`}}
51
+ `:(l+=uu(o+1)+s+"="+A+`
52
+ `,l+=ls(o+1)+s+"="+d+`
53
+ `)}else l+=Lo(o+1)+s+"="+iu(t[s],d)+`
54
+ `}n.forEach(function(E){if(E!=="children"){var T=120-2*(o+1)-E.length-1;l+=ls(o+1)+E+"="+iu(a[E],T)+`
55
+ `}}),l=l===""?Lo(o)+"<"+e+`>
56
+ `:Lo(o)+"<"+e+`
57
+ `+l+Lo(o)+`>
58
+ `}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(n="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")n=""+t;l+=Qc(n,""+e,o+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")l=e==null?l+Qc(""+t,null,o+1):l+Qc(""+t,void 0,o+1);return l}function Wb(e,t){var a=Zb(e);if(a===null){a="";for(e=e.child;e;)a+=Wb(e,t),e=e.sibling;return a}return Lo(t)+"<"+a+`>
59
+ `}function zm(e,t){var a=Qb(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Lo(t)+`...
60
+ `+zm(a,t+1);a="";var o=e.fiber._debugInfo;if(o)for(var l=0;l<o.length;l++){var n=o[l].name;typeof n==="string"&&(a+=Lo(t)+"<"+n+`>
61
+ `,t++)}if(o="",l=e.fiber.pendingProps,e.fiber.tag===6)o=Qc(l,e.serverProps,t),t++;else if(n=Zb(e.fiber),n!==null)if(e.serverProps===void 0){o=t;var s=120-2*o-n.length-2,d="";for(g in l)if(l.hasOwnProperty(g)&&g!=="children"){var m=iu(l[g],15);if(s-=g.length+m.length+2,0>s){d+=" ...";break}d+=" "+g+"="+m}o=Lo(o)+"<"+n+d+`>
62
+ `,t++}else e.serverProps===null?(o=Pm(n,l,uu(t)),t++):typeof e.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(o=fT(n,l,e.serverProps,t),t++);var g="";l=e.fiber.child;for(n=0;l&&n<e.children.length;)s=e.children[n],s.fiber===l?(g+=zm(s,t),n++):g+=Wb(l,t),l=l.sibling;l&&0<e.children.length&&(g+=Lo(t)+`...
63
+ `),l=e.serverTail,e.serverProps===null&&t--;for(e=0;e<l.length;e++)n=l[e],g=typeof n==="string"?g+(ls(t)+Ai(n,120-2*t)+`
64
+ `):g+Pm(n.type,n.props,ls(t));return a+o+g}function _m(e){try{return`
65
+
66
+ `+zm(e,0)}catch(t){return""}}function Kb(e,t,a){for(var o=t,l=null,n=0;o;)o===e&&(n=0),l={fiber:o,children:l!==null?[l]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:n},n++,o=o.return;return l!==null?_m(l).replaceAll(/^[+-]/gm,">"):""}function Jb(e,t){var a=rt({},e||lL),o={tag:t};if(oL.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),yR.indexOf(t)!==-1&&(a.pTagInButtonScope=null),gR.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=o,t==="form"&&(a.formTag=o),t==="a"&&(a.aTagInScope=o),t==="button"&&(a.buttonTagInScope=o),t==="nobr"&&(a.nobrTagInScope=o),t==="p"&&(a.pTagInButtonScope=o),t==="li"&&(a.listItemTagAutoclosing=o),t==="dd"||t==="dt")a.dlItemTagAutoclosing=o;return t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=o),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function e0(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return bR.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function pT(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function t0(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Hm(e,t){t=t||lL;var a=t.current;if(t=(a=e0(e,a&&a.tag,t.implicitRootScope)?null:a)?null:pT(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,up[t])return!1;up[t]=!0;var l=(t=Do)?t0(t.return,o):null,n=t!==null&&l!==null?Kb(l,t,null):"",s="<"+e+">";return a?(a="",o==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
+ This will cause a hydration error.%s`,s,o,a,n)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
+ This will cause a hydration error.%s`,s,o,n),t&&(e=t.return,l===null||e===null||l===e&&e._debugOwner===t._debugOwner||re(l,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,o,s)})),!1}function Zc(e,t,a){if(a||e0("#text",t,!1))return!0;if(a="#text|"+t,up[a])return!1;up[a]=!0;var o=(a=Do)?t0(a,t):null;return a=a!==null&&o!==null?Kb(o,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
+ This will cause a hydration error.%s`,t,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
+ This will cause a hydration error.%s`,t,a),!1}function Ei(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function mT(e){return e.replace(xR,function(t,a){return a.toUpperCase()})}function a0(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?Mu.hasOwnProperty(t)&&Mu[t]||(Mu[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,mT(t.replace(SR,"ms-")))):vR.test(t)?Mu.hasOwnProperty(t)&&Mu[t]||(Mu[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!sL.test(a)||ay.hasOwnProperty(a)&&ay[a]||(ay[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(sL,""))),typeof a==="number"&&(isNaN(a)?uL||(uL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||iL||(iL=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||dL.has(t)?t==="float"?e.cssFloat=a:(Et(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function o0(e,t,a){if(t!=null&&typeof t!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var o={};if(a){for(var l in a)if(a.hasOwnProperty(l)&&!t.hasOwnProperty(l))for(var n=ty[l]||[l],s=0;s<n.length;s++)o[n[s]]=l}for(var d in t)if(t.hasOwnProperty(d)&&(!a||a[d]!==t[d]))for(l=ty[d]||[d],n=0;n<l.length;n++)o[l[n]]=d;d={};for(var m in t)for(l=ty[m]||[m],n=0;n<l.length;n++)d[l[n]]=m;m={};for(var g in o)if(l=o[g],(n=d[g])&&l!==n&&(s=l+","+n,!m[s])){m[s]=!0,s=console;var A=t[l];s.error.call(s,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",A==null||typeof A==="boolean"||A===""?"Removing":"Updating",l,n)}}for(var E in a)!a.hasOwnProperty(E)||t!=null&&t.hasOwnProperty(E)||(E.indexOf("--")===0?e.setProperty(E,""):E==="float"?e.cssFloat="":e[E]="");for(var T in t)g=t[T],t.hasOwnProperty(T)&&a[T]!==g&&a0(e,T,g)}else for(o in t)t.hasOwnProperty(o)&&a0(e,o,t[o])}function Oi(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}}function l0(e){return LR.get(e)||e}function hT(e,t){if(dl.call(Du,t)&&Du[t])return!0;if(kR.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=cL.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Du[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Du[t]=!0}if(CR.test(t)){if(e=t.toLowerCase(),e=cL.hasOwnProperty(e)?e:null,e==null)return Du[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Du[t]=!0)}return!0}function gT(e,t){var a=[],o;for(o in t)hT(e,o)||a.push(o);t=a.map(function(l){return"`"+l+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function yT(e,t,a,o){if(dl.call(lo,t)&&lo[t])return!0;var l=t.toLowerCase();if(l==="onfocusin"||l==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),lo[t]=!0;if(typeof a==="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(o!=null){if(e=o.possibleRegistrationNames,o.registrationNameDependencies.hasOwnProperty(t))return!0;if(o=e.hasOwnProperty(l)?e[l]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),lo[t]=!0;if(pL.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),lo[t]=!0}else if(pL.test(t))return wR.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),lo[t]=!0;if(TR.test(t)||IR.test(t))return!0;if(l==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),lo[t]=!0;if(l==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),lo[t]=!0;if(l==="is"&&a!==null&&a!==void 0&&typeof a!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),lo[t]=!0;if(typeof a==="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),lo[t]=!0;if(dp.hasOwnProperty(l)){if(l=dp[l],l!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,l),lo[t]=!0}else if(t!==l)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,l),lo[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:if(l=t.toLowerCase().slice(0,5),l==="data-"||l==="aria-")return!0;return a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),lo[t]=!0}case"function":case"symbol":return lo[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),lo[t]=!0}}return!0}function bT(e,t,a){var o=[],l;for(l in t)yT(e,l,t[l],a)||o.push(l);t=o.map(function(n){return"`"+n+"`"}).join(", "),o.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<o.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function qi(e){return RR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function bn(){}function Fm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function n0(e){var t=$e(e);if(t&&(e=t.stateNode)){var a=e[oo]||null;e:switch(e=t.stateNode,t.type){case"input":if(Bm(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;gt(t,"name"),a=a.querySelectorAll('input[name="'+Fo(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var l=o[oo]||null;if(!l)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Bm(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&_b(o)}break e;case"textarea":jb(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&su(e,!!a.multiple,t,!1)}}}function r0(e,t,a){if(oy)return e(t,a);oy=!0;try{var o=e(t);return o}finally{if(oy=!1,Eu!==null||Ou!==null){if(vu(),Eu&&(t=Eu,e=Ou,Ou=Eu=null,n0(t),e))for(t=0;t<e.length;t++)n0(e[t])}}}function Bi(e,t){var a=e.stateNode;if(a===null)return null;var o=a[oo]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function s0(){if(cp)return cp;var e,t=ny,a=t.length,o,l="value"in gr?gr.value:gr.textContent,n=l.length;for(e=0;e<a&&t[e]===l[e];e++);var s=a-e;for(o=1;o<=s&&t[a-o]===l[n-o];o++);return cp=l.slice(e,1<o?1-o:void 0)}function Wc(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 Kc(){return!0}function u0(){return!1}function fo(e){function t(a,o,l,n,s){this._reactName=a,this._targetInst=l,this.type=o,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(n):n[d]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Kc:u0,this.isPropagationStopped=u0,this}return rt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!=="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Kc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Kc)},persist:function(){},isPersistent:Kc}),t}function vT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=HR[e])?!!t[e]:!1}function Gm(){return vT}function i0(e,t){switch(e){case"keyup":return JR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==yL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function d0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function ST(e,t){switch(e){case"compositionend":return d0(t);case"keypress":if(t.which!==vL)return null;return xL=!0,SL;case"textInput":return e=t.data,e===SL&&xL?null:e;default:return null}}function xT(e,t){if(qu)return e==="compositionend"||!iy&&i0(e,t)?(e=s0(),cp=ny=gr=null,qu=!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 bL&&t.locale!=="ko"?null:t.data;default:return null}}function c0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tM[e.type]:t==="textarea"?!0:!1}function LT(e){if(!Wl)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]==="function"),t}function f0(e,t,a,o){Eu?Ou?Ou.push(o):Ou=[o]:Eu=o,t=$f(t,"onChange"),0<t.length&&(a=new fp("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function CT(e){YS(e,0)}function Jc(e){var t=Xe(e);if(_b(t))return e}function p0(e,t){if(e==="change")return t}function m0(){Sd&&(Sd.detachEvent("onpropertychange",h0),xd=Sd=null)}function h0(e){if(e.propertyName==="value"&&Jc(xd)){var t=[];f0(t,xd,e,Fm(e)),r0(CT,t)}}function kT(e,t,a){e==="focusin"?(m0(),Sd=t,xd=a,Sd.attachEvent("onpropertychange",h0)):e==="focusout"&&m0()}function wT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jc(xd)}function TT(e,t){if(e==="click")return Jc(t)}function IT(e,t){if(e==="input"||e==="change")return Jc(t)}function RT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ni(e,t){if(no(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var l=a[o];if(!dl.call(t,l)||!no(e[l],t[l]))return!1}return!0}function g0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function y0(e,t){var a=g0(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=g0(a)}}function b0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?b0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function v0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yc(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=Yc(e.document)}return t}function Vm(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")}function S0(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cy||Bu==null||Bu!==Yc(o)||(o=Bu,("selectionStart"in o)&&Vm(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ld&&Ni(Ld,o)||(Ld=o,o=$f(dy,"onSelect"),0<o.length&&(t=new fp("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Bu)))}function ns(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function rs(e){if(fy[e])return fy[e];if(!Nu[e])return e;var t=Nu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in CL)return fy[e]=t[a];return e}function sl(e,t){RL.set(e,t),Za(t,[e])}function MT(e){for(var t=mp,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(Ra(o)&&o.length===2&&typeof o[0]==="string"){if(t!==mp&&t!==yy)return hy;t=yy}else return hy;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==mp&&t!==gy)return hy;t=gy}}return t}function $m(e,t,a,o){for(var l in e)dl.call(e,l)&&l[0]!=="_"&&Ml(l,e[l],t,a,o)}function Ml(e,t,a,o,l){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===$l){var n=Z(t.type)||"…",s=t.key;t=t.props;var d=Object.keys(t),m=d.length;if(s==null&&m===0){t="<"+n+" />";break}if(3>o||m===1&&d[0]==="children"&&s==null){t="<"+n+" … />";break}a.push([l+"  ".repeat(o)+e,"<"+n]),s!==null&&Ml("key",s,a,o+1,l),e=!1;for(var g in t)g==="children"?t.children!=null&&(!Ra(t.children)||0<t.children.length)&&(e=!0):dl.call(t,g)&&g[0]!=="_"&&Ml(g,t[g],a,o+1,l);a.push(["",e?">…</"+n+">":"/>"]);return}if(n=Object.prototype.toString.call(t),n=n.slice(8,n.length-1),n==="Array"){if(g=MT(t),g===gy||g===mp){t=JSON.stringify(t);break}else if(g===yy){a.push([l+"  ".repeat(o)+e,""]);for(e=0;e<t.length;e++)n=t[e],Ml(n[0],n[1],a,o+1,l);return}}if(n==="Promise"){if(t.status==="fulfilled"){if(n=a.length,Ml(e,t.value,a,o,l),a.length>n){a=a[n],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(n=a.length,Ml(e,t.reason,a,o,l),a.length>n)){a=a[n],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(o)+e,"Promise"]);return}n==="Object"&&(g=Object.getPrototypeOf(t))&&typeof g.constructor==="function"&&(n=g.constructor.name),a.push([l+"  ".repeat(o)+e,n==="Object"?3>o?"":"…":n]),3>o&&$m(t,a,o+1,l);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===uM?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([l+"  ".repeat(o)+e,t])}function x0(e,t,a,o){var l=!0;for(s in e)s in t||(a.push([hp+"  ".repeat(o)+s,"…"]),l=!1);for(var n in t)if(n in e){var s=e[n],d=t[n];if(s!==d){if(o===0&&n==="children")l="  ".repeat(o)+n,a.push([hp+l,"…"],[gp+l,"…"]);else{if(!(3<=o)){if(typeof s==="object"&&typeof d==="object"&&s!==null&&d!==null&&s.$$typeof===d.$$typeof)if(d.$$typeof===$l){if(s.type===d.type&&s.key===d.key){s=Z(d.type)||"…",l="  ".repeat(o)+n,s="<"+s+" … />",a.push([hp+l,s],[gp+l,s]),l=!1;continue}}else{var m=Object.prototype.toString.call(s),g=Object.prototype.toString.call(d);if(m===g&&(g==="[object Object]"||g==="[object Array]")){m=[DL+"  ".repeat(o)+n,g==="[object Array]"?"Array":""],a.push(m),g=a.length,x0(s,d,a,o+1)?g===a.length&&(m[1]="Referentially unequal but deeply equal objects. Consider memoization."):l=!1;continue}}else if(typeof s==="function"&&typeof d==="function"&&s.name===d.name&&s.length===d.length&&(m=Function.prototype.toString.call(s),g=Function.prototype.toString.call(d),m===g)){s=d.name===""?"() => {}":d.name+"() {}",a.push([DL+"  ".repeat(o)+n,s+" Referentially unequal function closure. Consider memoization."]);continue}}Ml(n,s,a,o,hp),Ml(n,d,a,o,gp)}l=!1}}else a.push([gp+"  ".repeat(o)+n,"…"]),l=!1;return l}function Co(e){it=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Al(e,t,a,o){Gt&&(br.start=t,br.end=a,In.color="warning",In.tooltipText=o,In.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,br)):performance.measure(o,br))}function ef(e,t,a){Al(e,t,a,"Reconnect")}function tf(e,t,a,o,l){var n=X(e);if(n!==null&&Gt){var{alternate:s,actualDuration:d}=e;if(s===null||s.child!==e.child)for(var m=e.child;m!==null;m=m.sibling)d-=m.actualDuration;o=0.5>d?o?"tertiary-light":"primary-light":10>d?o?"tertiary":"primary":100>d?o?"tertiary-dark":"primary-dark":"error";var g=e.memoizedProps;d=e._debugTask,g!==null&&s!==null&&s.memoizedProps!==g?(m=[iM],g=x0(s.memoizedProps,g,m,0),1<m.length&&(g&&!yr&&(s.lanes&l)===0&&100<e.actualDuration?(yr=!0,m[0]=dM,In.color="warning",In.tooltipText=EL):(In.color=o,In.tooltipText=n),In.properties=m,br.start=t,br.end=a,d!=null?d.run(performance.measure.bind(performance,"​"+n,br)):performance.measure("​"+n,br))):d!=null?d.run(console.timeStamp.bind(console,n,t,a,Vo,void 0,o)):console.timeStamp(n,t,a,Vo,void 0,o)}}function Xm(e,t,a,o){if(Gt){var l=X(e);if(l!==null){for(var n=null,s=[],d=0;d<o.length;d++){var m=o[d];n==null&&m.source!==null&&(n=m.source._debugTask),m=m.value,s.push(["Error",typeof m==="object"&&m!==null&&typeof m.message==="string"?String(m.message):String(m)])}e.key!==null&&Ml("key",e.key,s,0,""),e.memoizedProps!==null&&$m(e.memoizedProps,s,0,""),n==null&&(n=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Vo,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:s}}},n?n.run(performance.measure.bind(performance,"​"+l,e)):performance.measure("​"+l,e)}}}function Dl(e,t,a,o,l){if(l!==null){if(Gt){var n=X(e);if(n!==null){o=[];for(var s=0;s<l.length;s++){var d=l[s].value;o.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e.key!==null&&Ml("key",e.key,o,0,""),e.memoizedProps!==null&&$m(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Vo,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+n,t)):performance.measure("​"+n,t)}}}else n=X(e),n!==null&&Gt&&(l=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,n,t,a,Vo,void 0,l)):console.timeStamp(n,t,a,Vo,void 0,l))}function AT(e,t,a,o){if(Gt&&!(t<=e)){var l=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",o?o.run(console.timeStamp.bind(console,a,e,t,it,st,l)):console.timeStamp(a,e,t,it,st,l)}}function L0(e,t,a,o){!Gt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,it,st,a)):console.timeStamp("Prewarm",e,t,it,st,a))}function C0(e,t,a,o){!Gt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,it,st,a)):console.timeStamp("Suspended",e,t,it,st,a))}function DT(e,t,a,o,l,n){if(Gt&&!(t<=e)){a=[];for(var s=0;s<o.length;s++){var d=o[s].value;a.push(["Recoverable Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:it,trackGroup:st,tooltipText:l?"Hydration Failed":"Recovered after Error",properties:a}}},n?n.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function jm(e,t,a,o){!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,it,st,"error")):console.timeStamp("Errored",e,t,it,st,"error"))}function ET(e,t,a,o){!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,it,st,"secondary-light")):console.timeStamp(a,e,t,it,st,"secondary-light"))}function k0(e,t,a,o,l){if(Gt&&!(t<=e)){for(var n=[],s=0;s<a.length;s++){var d=a[s].value;n.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"error",track:it,trackGroup:st,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:n}}},l?l.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Ui(e,t,a){!Gt||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,it,st,"secondary-dark")):console.timeStamp("Animating",e,t,it,st,"secondary-dark"))}function af(){for(var e=Uu,t=by=Uu=0;t<e;){var a=$o[t];$o[t++]=null;var o=$o[t];$o[t++]=null;var l=$o[t];$o[t++]=null;var n=$o[t];if($o[t++]=null,o!==null&&l!==null){var s=o.pending;s===null?l.next=l:(l.next=s.next,s.next=l),o.pending=l}n!==0&&w0(a,l,n)}}function of(e,t,a,o){$o[Uu++]=e,$o[Uu++]=t,$o[Uu++]=a,$o[Uu++]=o,by|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Ym(e,t,a,o){return of(e,t,a,o),lf(e)}function Wa(e,t){return of(e,null,null,t),lf(e)}function w0(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var l=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&Cd||(l=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,l&&t!==null&&(l=31-ao(a),e=n.hiddenUpdates,o=e[l],o===null?e[l]=[t]:o.push(t),t.lane=a|536870912),n):null}function lf(e){if(Zd>wM)throw Bs=Zd=0,Wd=Wy=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Bs>TM&&(Bs=0,Wd=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&HS(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&HS(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function ss(e){if(Xo===null)return e;var t=Xo(e);return t===void 0?e:t.current}function Qm(e){if(Xo===null)return e;var t=Xo(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=ss(e.render),e.render!==t)?(t={$$typeof:cd,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function T0(e,t){if(Xo===null)return!1;var a=e.elementType;t=t.type;var o=!1,l=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(o=!0);break;case 0:typeof t==="function"?o=!0:l===Ao&&(o=!0);break;case 11:l===cd?o=!0:l===Ao&&(o=!0);break;case 14:case 15:l===ap?o=!0:l===Ao&&(o=!0);break;default:return!1}return o&&(e=Xo(a),e!==void 0&&e===Xo(t))?!0:!1}function I0(e){Xo!==null&&typeof WeakSet==="function"&&(Pu===null&&(Pu=new WeakSet),Pu.add(e))}function R0(e,t,a){do{var o=e,l=o.alternate,n=o.child,s=o.sibling,d=o.tag;o=o.type;var m=null;switch(d){case 0:case 15:case 1:m=o;break;case 11:m=o.render}if(Xo===null)throw Error("Expected resolveFamily to be set during hot reload.");var g=!1;if(o=!1,m!==null&&(m=Xo(m),m!==void 0&&(a.has(m)?o=!0:t.has(m)&&(d===1?o=!0:g=!0))),Pu!==null&&(Pu.has(e)||l!==null&&Pu.has(l))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||g)l=Wa(e,2),l!==null&&oa(l,e,2);if(n===null||o||R0(n,t,a),s===null)break;e=s}while(1)}function OT(e,t,a,o){this.tag=e,this.key=a,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,OL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function Zm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vn(e,t){var a=e.alternate;switch(a===null?(a=C(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=ss(e.type);break;case 1:a.type=ss(e.type);break;case 11:a.type=Qm(e.type)}return a}function M0(e,t){e.flags&=65011714;var a=e.alternate;return a===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.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Wm(e,t,a,o,l,n){var s=0,d=e;if(typeof e==="function")Zm(e)&&(s=1),d=ss(d);else if(typeof e==="string")s=ke(),s=FI(e,a,s)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Gg:return t=C(31,a,t,l),t.elementType=Gg,t.lanes=n,t;case Tu:return us(a.children,l,n,t);case tp:s=8,l|=Ja,l|=fl;break;case zg:return e=a,o=l,typeof e.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=C(12,e,t,o|tt),t.elementType=zg,t.lanes=n,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Hg:return t=C(13,a,t,l),t.elementType=Hg,t.lanes=n,t;case Fg:return t=C(19,a,t,l),t.elementType=Fg,t.lanes=n,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Xl:s=10;break e;case _g:s=9;break e;case cd:s=11,d=Qm(d);break e;case ap:s=14;break e;case Ao:s=16,d=null;break e}if(d="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)d+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";e===null?a="null":Ra(e)?a="array":e!==void 0&&e.$$typeof===$l?(a="<"+(Z(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(s=o?W(o):null)&&(d+=`
72
+
73
+ Check the render method of \``+s+"`."),s=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+d)),d=null}return t=C(s,a,t,l),t.elementType=e,t.type=d,t.lanes=n,t._debugOwner=o,t}function nf(e,t,a){return t=Wm(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function us(e,t,a,o){return e=C(7,e,o,t),e.lanes=a,e}function Km(e,t,a){return e=C(6,e,null,t),e.lanes=a,e}function A0(e){var t=C(18,null,null,ze);return t.stateNode=e,t}function Jm(e,t,a){return t=C(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ko(e,t){if(typeof e==="object"&&e!==null){var a=vy.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:V(t)},vy.set(e,t),t}return{value:e,source:t,stack:V(t)}}function Sn(e,t){er(),zu[_u++]=kd,zu[_u++]=yp,yp=e,kd=t}function D0(e,t,a){er(),jo[Yo++]=Mn,jo[Yo++]=An,jo[Yo++]=xs,xs=e;var o=Mn;e=An;var l=32-ao(o)-1;o&=~(1<<l),a+=1;var n=32-ao(t)+l;if(30<n){var s=l-l%5;n=(o&(1<<s)-1).toString(32),o>>=s,l-=s,Mn=1<<32-ao(t)+l|a<<l|o,An=n+e}else Mn=1<<n|a<<l|o,An=e}function eh(e){er(),e.return!==null&&(Sn(e,1),D0(e,1,0))}function th(e){for(;e===yp;)yp=zu[--_u],zu[_u]=null,kd=zu[--_u],zu[_u]=null;for(;e===xs;)xs=jo[--Yo],jo[Yo]=null,An=jo[--Yo],jo[Yo]=null,Mn=jo[--Yo],jo[Yo]=null}function E0(){return er(),xs!==null?{id:Mn,overflow:An}:null}function O0(e,t){er(),jo[Yo++]=Mn,jo[Yo++]=An,jo[Yo++]=xs,Mn=t.id,An=t.overflow,xs=e}function er(){dt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function is(e,t){if(e.return===null){if(Oo===null)Oo={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Oo.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Oo.distanceFromLeaf>t&&(Oo.distanceFromLeaf=t)}return Oo}var a=is(e.return,t+1).children;if(0<a.length&&a[a.length-1].fiber===e)return a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a;return t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t}function q0(){dt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function rf(e,t){Kl||(e=is(e,0),e.serverProps=null,t!==null&&(t=fx(t),e.serverTail.push(t)))}function tr(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=Oo;throw o!==null&&(Oo=null,a=_m(o)),Pi(ko(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
74
74
 
75
75
  - A server/client branch \`if (typeof window !== 'undefined')\`.
76
76
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -80,7 +80,7 @@ Check the render method of \``+m+"`."),m=29,n=Error("Element type is invalid: ex
80
80
 
81
81
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
82
82
 
83
- https://react.dev/link/hydration-mismatch`+n),e)),Hy}function iS(e){var{stateNode:t,type:n,memoizedProps:i}=e;switch(t[Oa]=e,t[Wa]=i,Ub(n,i),n){case"dialog":nt("cancel",t),nt("close",t);break;case"iframe":case"object":case"embed":nt("load",t);break;case"video":case"audio":for(n=0;n<Cd.length;n++)nt(Cd[n],t);break;case"source":nt("error",t);break;case"img":case"image":case"link":nt("error",t),nt("load",t);break;case"details":nt("toggle",t);break;case"input":nr("input",i),nt("invalid",t),p0(t,i),h0(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"option":m0(t,i);break;case"select":nr("select",i),nt("invalid",t),b0(t,i);break;case"textarea":nr("textarea",i),nt("invalid",t),y0(t,i),v0(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||TC(t.textContent,n)?(i.popover!=null&&(nt("beforetoggle",t),nt("toggle",t)),i.onScroll!=null&&nt("scroll",t),i.onScrollEnd!=null&&nt("scrollend",t),i.onClick!=null&&(t.onclick=fs),t=!0):t=!1,t||rr(e,!0)}function lS(e){for(Pa=e.return;Pa;)switch(Pa.tag){case 5:case 31:case 13:Zo=!1;return;case 27:case 3:Zo=!0;return;default:Pa=Pa.return}}function Dl(e){if(e!==Pa)return!1;if(!at)return lS(e),at=!0,!1;var t=e.tag,n;if(n=t!==3&&t!==27){if(n=t===5)n=e.type,n=!(n!=="form"&&n!=="button")||Gb(e.type,e.memoizedProps);n=!n}if(n&&Bt){for(n=Bt;n;){var i=Ti(e,0),c=zC(n);i.serverTail.push(c),n=c.type==="Suspense"?Wb(n):Ro(n.nextSibling)}rr(e)}if(lS(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Bt=Wb(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Bt=Wb(e)}else t===27?(t=Bt,gr(e.type)?(e=Ix,Ix=null,Bt=e):Bt=t):Bt=Pa?Ro(e.stateNode.nextSibling):null;return!0}function wi(){Bt=Pa=null,Qn=at=!1}function Sg(){var e=wr;return e!==null&&(to===null?to=e:to.push.apply(to,e),wr=null),e}function uc(e){wr===null?wr=[e]:wr.push(e)}function Lg(){var e=Oo;if(e!==null){Oo=null;for(var t=sg(e);0<e.children.length;)e=e.children[0];me(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
83
+ https://react.dev/link/hydration-mismatch`+a),e)),Sy}function B0(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[Xa]=e,t[oo]=o,xg(a,o),a){case"dialog":ft("cancel",t),ft("close",t);break;case"iframe":case"object":case"embed":ft("load",t);break;case"video":case"audio":for(a=0;a<Kd.length;a++)ft(Kd[a],t);break;case"source":ft("error",t);break;case"img":case"image":case"link":ft("error",t),ft("load",t);break;case"details":ft("toggle",t);break;case"input":Jn("input",o),ft("invalid",t),Hb(t,o),Fb(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":Gb(t,o);break;case"select":Jn("select",o),ft("invalid",t),$b(t,o);break;case"textarea":Jn("textarea",o),ft("invalid",t),Xb(t,o),Yb(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||KS(t.textContent,a)?(o.popover!=null&&(ft("beforetoggle",t),ft("toggle",t)),o.onScroll!=null&&ft("scroll",t),o.onScrollEnd!=null&&ft("scrollend",t),o.onClick!=null&&(t.onclick=bn),t=!0):t=!1,t||tr(e,!0)}function N0(e){for(ja=e.return;ja;)switch(ja.tag){case 5:case 31:case 13:Qo=!1;return;case 27:case 3:Qo=!0;return;default:ja=ja.return}}function du(e){if(e!==ja)return!1;if(!dt)return N0(e),dt=!0,!1;var t=e.tag,a;if(a=t!==3&&t!==27){if(a=t===5)a=e.type,a=!(a!=="form"&&a!=="button")||Tg(e.type,e.memoizedProps);a=!a}if(a&&Vt){for(a=Vt;a;){var o=is(e,0),l=fx(a);o.serverTail.push(l),a=l.type==="Suspense"?Ag(a):Mo(a.nextSibling)}tr(e)}if(N0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Vt=Ag(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Vt=Ag(e)}else t===27?(t=Vt,cr(e.type)?(e=ib,ib=null,Vt=e):Vt=t):Vt=ja?Mo(e.stateNode.nextSibling):null;return!0}function ds(){Vt=ja=null,Kl=dt=!1}function ah(){var e=Sr;return e!==null&&(io===null?io=e:io.push.apply(io,e),Sr=null),e}function Pi(e){Sr===null?Sr=[e]:Sr.push(e)}function oh(){var e=Oo;if(e!==null){Oo=null;for(var t=_m(e);0<e.children.length;)e=e.children[0];re(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
84
84
 
85
85
  - A server/client branch \`if (typeof window !== 'undefined')\`.
86
86
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -90,58 +90,58 @@ https://react.dev/link/hydration-mismatch`+n),e)),Hy}function iS(e){var{stateNod
90
90
 
91
91
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
92
92
 
93
- %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function $f(){lu=nh=null,uu=!1}function ir(e,t,n){be(Uy,t._currentValue,e),t._currentValue=n,be(Fy,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==iT&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=iT}function ms(e,t){e._currentValue=Uy.current;var n=Fy.current;ge(Fy,t),e._currentRenderer=n,ge(Uy,t)}function Cg(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}e!==n&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Tg(e,t,n,i){var c=e.child;c!==null&&(c.return=e);for(;c!==null;){var f=c.dependencies;if(f!==null){var m=c.child;f=f.firstContext;e:for(;f!==null;){var x=f;f=c;for(var S=0;S<t.length;S++)if(x.context===t[S]){f.lanes|=n,x=f.alternate,x!==null&&(x.lanes|=n),Cg(f.return,n,e),i||(m=null);break e}f=x.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");m.lanes|=n,f=m.alternate,f!==null&&(f.lanes|=n),Cg(m,n,e),m=null}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===e){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}}function _l(e,t,n,i){e=null;for(var c=t,f=!1;c!==null;){if(!f){if((c.flags&524288)!==0)f=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error("Should have a current fiber. This is a bug in React.");if(m=m.memoizedProps,m!==null){var x=c.type;Qa(c.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(c===Vp.current){if(m=c.alternate,m===null)throw Error("Should have a current fiber. This is a bug in React.");m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Id):e=[Id])}c=c.return}e!==null&&Tg(t,e,n,i),t.flags|=262144}function Wf(e){for(e=e.firstContext;e!==null;){if(!Qa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ki(e){nh=e,lu=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ft(e){return uu&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),uS(nh,e)}function Zf(e,t){return nh===null&&ki(e),uS(e,t)}function uS(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},lu===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");lu=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else lu=lu.next=t;return n}function wg(){return{controller:new W_,data:new Map,refCount:0}}function Mi(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function cc(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&Z_(Q_,function(){e.controller.abort()})}function Dn(e,t,n){if((e&127)!==0)0>Kn&&(Kn=la(),Qc=sh(t),qy=t,n!=null&&(Vy=X(n)),(ct&(ba|No))!==ka&&(Qt=!0,Ir=Zc),e=Dc(),t=Rc(),e!==cu||t!==Kc?cu=-1.1:t!==null&&(Ir=Zc),zi=e,Kc=t);else if((e&4194048)!==0&&0>Qo&&(Qo=la(),Jc=sh(t),lT=t,n!=null&&(uT=X(n)),0>Ms)){if(e=Dc(),t=Rc(),e!==Rr||t!==Hi)Rr=-1.1;Ar=e,Hi=t}}function gD(e){if(0>Kn){Kn=la(),Qc=e._debugTask!=null?e._debugTask:null,(ct&(ba|No))!==ka&&(Ir=Zc);var t=Dc(),n=Rc();t!==cu||n!==Kc?cu=-1.1:n!==null&&(Ir=Zc),zi=t,Kc=n}if(0>Qo&&(Qo=la(),Jc=e._debugTask!=null?e._debugTask:null,0>Ms)){if(e=Dc(),t=Rc(),e!==Rr||t!==Hi)Rr=-1.1;Ar=e,Hi=t}}function gs(){var e=Ni;return Ni=0,e}function Qf(e){var t=Ni;return Ni=e,t}function dc(e){var t=Ni;return Ni+=e,t}function Kf(){De=Re=-1.1}function ko(){var e=Re;return Re=-1.1,e}function Mo(e){0<=e&&(Re=e)}function _n(){var e=Xt;return Xt=-0,e}function En(e){0<=e&&(Xt=e)}function On(){var e=qt;return qt=null,e}function Pn(){var e=Qt;return Qt=!1,e}function kg(e){Ka=la(),0>e.actualStartTime&&(e.actualStartTime=Ka)}function Mg(e){if(0<=Ka){var t=la()-Ka;e.actualDuration+=t,e.selfBaseDuration=t,Ka=-1}}function cS(e){if(0<=Ka){var t=la()-Ka;e.actualDuration+=t,Ka=-1}}function Bn(){if(0<=Ka){var e=la(),t=e-Ka;Ka=-1,Ni+=t,Xt+=t,De=e}}function dS(e){qt===null&&(qt=[]),qt.push(e),ks===null&&(ks=[]),ks.push(e)}function Nn(){Ka=la(),0>Re&&(Re=Ka)}function fc(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function bD(e,t){if(td===null){var n=td=[];Gy=0,Ui=Bb(),du={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Gy++,t.then(fS,fS),t}function fS(){if(--Gy===0&&(-1<Qo||(Ms=-1.1),td!==null)){du!==null&&(du.status="fulfilled");var e=td;td=null,Ui=0,du=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yD(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){i.status="rejected",i.reason=c;for(c=0;c<n.length;c++)(0,n[c])(void 0)}),i}function Ig(){var e=Fi.current;return e!==null?e:At.pooledCache}function Jf(e,t){t===null?be(Fi,Fi.current,e):be(Fi,t.pool,e)}function pS(){var e=Ig();return e===null?null:{parent:ia._currentValue,pool:e}}function hS(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function mS(e){return e=e.status,e==="fulfilled"||e==="rejected"}function gS(e,t,n){V.actQueue!==null&&(V.didUsePromise=!0);var i=e.thenables;if(n=i[n],n===void 0?i.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(fs,fs),t=n),t._debugInfo===void 0){e=performance.now(),i=t.displayName;var c={name:typeof i==="string"?i:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:c}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){c.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yS(e),e;default:if(typeof t.status==="string")t.then(fs,fs);else{if(e=At,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(f){if(t.status==="pending"){var m=t;m.status="fulfilled",m.value=f}},function(f){if(t.status==="pending"){var m=t;m.status="rejected",m.reason=f}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yS(e),e}throw Vi=t,ld=!0,fu}}function lr(e){try{return tE(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw Vi=t,ld=!0,fu;throw t}}function bS(){if(Vi===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Vi;return Vi=null,ld=!1,e}function yS(e){if(e===fu||e===ph)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Da(e){var t=Ge;return e!=null&&(Ge=t===null?e:t.concat(e)),t}function Ag(){var e=Ge;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function ep(e,t,n){for(var i=Object.keys(e.props),c=0;c<i.length;c++){var f=i[c];if(f!=="children"&&f!=="key"){t===null&&(t=Xf(e,n.mode,0),t._debugInfo=Ge,t.return=n),me(t,function(m){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m)},f);break}}}function tp(e){var t=ud;return ud+=1,pu===null&&(pu=hS()),gS(pu,e,t)}function pc(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xS(e,t){if(t.$$typeof===O2)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function sf(){Hu=bp=null,Fu=!1}function ar(e,t,a){Ce(xy,t._currentValue,e),t._currentValue=a,Ce(Ly,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==BL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=BL}function xn(e,t){e._currentValue=xy.current;var a=Ly.current;Ne(Ly,t),e._currentRenderer=a,Ne(xy,t)}function lh(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function nh(e,t,a,o){var l=e.child;l!==null&&(l.return=e);for(;l!==null;){var n=l.dependencies;if(n!==null){var s=l.child;n=n.firstContext;e:for(;n!==null;){var d=n;n=l;for(var m=0;m<t.length;m++)if(d.context===t[m]){n.lanes|=a,d=n.alternate,d!==null&&(d.lanes|=a),lh(n.return,a,e),o||(s=null);break e}n=d.next}}else if(l.tag===18){if(s=l.return,s===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");s.lanes|=a,n=s.alternate,n!==null&&(n.lanes|=a),lh(s,a,e),s=null}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===e){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}}function cu(e,t,a,o){e=null;for(var l=t,n=!1;l!==null;){if(!n){if((l.flags&524288)!==0)n=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var s=l.alternate;if(s===null)throw Error("Should have a current fiber. This is a bug in React.");if(s=s.memoizedProps,s!==null){var d=l.type;no(l.pendingProps.value,s.value)||(e!==null?e.push(d):e=[d])}}else if(l===op.current){if(s=l.alternate,s===null)throw Error("Should have a current fiber. This is a bug in React.");s.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(oc):e=[oc])}l=l.return}e!==null&&nh(t,e,a,o),t.flags|=262144}function uf(e){for(e=e.firstContext;e!==null;){if(!no(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cs(e){bp=e,Hu=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qt(e){return Fu&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),U0(bp,e)}function df(e,t){return bp===null&&cs(e),U0(e,t)}function U0(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Hu===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Hu=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Hu=Hu.next=t;return a}function rh(){return{controller:new pM,data:new Map,refCount:0}}function fs(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function zi(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&mM(hM,function(){e.controller.abort()})}function El(e,t,a){if((e&127)!==0)0>Jl&&(Jl=Sa(),Td=vp(t),Cy=t,a!=null&&(ky=X(a)),(ht&(Aa|No))!==Pa&&(la=!0,Cr=wd),e=rd(),t=nd(),e!==Gu||t!==Id?Gu=-1.1:t!==null&&(Cr=wd),Cs=e,Id=t);else if((e&4194048)!==0&&0>Zo&&(Zo=Sa(),Rd=vp(t),NL=t,a!=null&&(UL=X(a)),0>On)){if(e=rd(),t=nd(),e!==wr||t!==ks)wr=-1.1;kr=e,ks=t}}function qT(e){if(0>Jl){Jl=Sa(),Td=e._debugTask!=null?e._debugTask:null,(ht&(Aa|No))!==Pa&&(Cr=wd);var t=rd(),a=nd();t!==Gu||a!==Id?Gu=-1.1:a!==null&&(Cr=wd),Cs=t,Id=a}if(0>Zo&&(Zo=Sa(),Rd=e._debugTask!=null?e._debugTask:null,0>On)){if(e=rd(),t=nd(),e!==wr||t!==ks)wr=-1.1;kr=e,ks=t}}function Ln(){var e=Ls;return Ls=0,e}function cf(e){var t=Ls;return Ls=e,t}function _i(e){var t=Ls;return Ls+=e,t}function ff(){Ue=qe=-1.1}function wo(){var e=qe;return qe=-1.1,e}function To(e){0<=e&&(qe=e)}function Ol(){var e=Jt;return Jt=-0,e}function ql(e){0<=e&&(Jt=e)}function Bl(){var e=Zt;return Zt=null,e}function Nl(){var e=la;return la=!1,e}function sh(e){ro=Sa(),0>e.actualStartTime&&(e.actualStartTime=ro)}function uh(e){if(0<=ro){var t=Sa()-ro;e.actualDuration+=t,e.selfBaseDuration=t,ro=-1}}function P0(e){if(0<=ro){var t=Sa()-ro;e.actualDuration+=t,ro=-1}}function Ul(){if(0<=ro){var e=Sa(),t=e-ro;ro=-1,Ls+=t,Jt+=t,Ue=e}}function z0(e){Zt===null&&(Zt=[]),Zt.push(e),En===null&&(En=[]),En.push(e)}function Pl(){ro=Sa(),0>qe&&(qe=ro)}function Hi(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function BT(e,t){if(Ad===null){var a=Ad=[];Ty=0,ws=yg(),Vu={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Ty++,t.then(_0,_0),t}function _0(){if(--Ty===0&&(-1<Zo||(On=-1.1),Ad!==null)){Vu!==null&&(Vu.status="fulfilled");var e=Ad;Ad=null,ws=0,Vu=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function NT(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){o.status="rejected",o.reason=l;for(l=0;l<a.length;l++)(0,a[l])(void 0)}),o}function ih(){var e=Ts.current;return e!==null?e:Pt.pooledCache}function pf(e,t){t===null?Ce(Ts,Ts.current,e):Ce(Ts,t.pool,e)}function H0(){var e=ih();return e===null?null:{parent:va._currentValue,pool:e}}function F0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function G0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function V0(e,t,a){G.actQueue!==null&&(G.didUsePromise=!0);var o=e.thenables;if(a=o[a],a===void 0?o.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(bn,bn),t=a),t._debugInfo===void 0){e=performance.now(),o=t.displayName;var l={name:typeof o==="string"?o:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:l}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){l.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,X0(e),e;default:if(typeof t.status==="string")t.then(bn,bn);else{if(e=Pt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=n}},function(n){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,X0(e),e}throw Rs=t,Ud=!0,$u}}function or(e){try{return vM(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw Rs=t,Ud=!0,$u;throw t}}function $0(){if(Rs===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Rs;return Rs=null,Ud=!1,e}function X0(e){if(e===$u||e===Ip)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Ga(e){var t=at;return e!=null&&(at=t===null?e:t.concat(e)),t}function dh(){var e=at;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function mf(e,t,a){for(var o=Object.keys(e.props),l=0;l<o.length;l++){var n=o[l];if(n!=="children"&&n!=="key"){t===null&&(t=nf(e,a.mode,0),t._debugInfo=at,t.return=a),re(t,function(s){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s)},n);break}}}function hf(e){var t=Pd;return Pd+=1,Xu===null&&(Xu=F0()),V0(Xu,e,t)}function Fi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function j0(e,t){if(t.$$typeof===KI)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
94
94
  - Multiple copies of the "react" package is used.
95
95
  - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
96
- - A compiler tries to "inline" JSX instead of using the runtime.`);throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function ap(e,t){var n=Ag();n!==null?n.run(xS.bind(null,e,t)):xS(e,t)}function vS(e,t){var n=X(e)||"Component";AT[n]||(AT[n]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
96
+ - A compiler tries to "inline" JSX instead of using the runtime.`);throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function gf(e,t){var a=dh();a!==null?a.run(j0.bind(null,e,t)):j0(e,t)}function Y0(e,t){var a=X(e)||"Component";oC[a]||(oC[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
97
97
  root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
98
- <%s>{%s}</%s>`,t,t,n,t,n))}function op(e,t){var n=Ag();n!==null?n.run(vS.bind(null,e,t)):vS(e,t)}function SS(e,t){var n=X(e)||"Component";RT[n]||(RT[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
98
+ <%s>{%s}</%s>`,t,t,a,t,a))}function yf(e,t){var a=dh();a!==null?a.run(Y0.bind(null,e,t)):Y0(e,t)}function Q0(e,t){var a=X(e)||"Component";lC[a]||(lC[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
99
99
  root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
100
- <%s>%s</%s>`,n,t,n))}function np(e,t){var n=Ag();n!==null?n.run(SS.bind(null,e,t)):SS(e,t)}function LS(e){function t(R,_){if(e){var E=R.deletions;E===null?(R.deletions=[_],R.flags|=16):E.push(_)}}function n(R,_){if(!e)return null;for(;_!==null;)t(R,_),_=_.sibling;return null}function i(R){for(var _=new Map;R!==null;)R.key!==null?_.set(R.key,R):_.set(R.index,R),R=R.sibling;return _}function c(R,_){return R=ps(R,_),R.index=0,R.sibling=null,R}function f(R,_,E){if(R.index=E,!e)return R.flags|=1048576,_;if(E=R.alternate,E!==null)return E=E.index,E<_?(R.flags|=67108866,_):E;return R.flags|=67108866,_}function m(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function x(R,_,E,Z){if(_===null||_.tag!==6)return _=bg(E,R.mode,Z),_.return=R,_._debugOwner=R,_._debugTask=R._debugTask,_._debugInfo=Ge,_;return _=c(_,E),_.return=R,_._debugInfo=Ge,_}function S(R,_,E,Z){var ce=E.type;if(ce===Yl)return _=O(R,_,E.props.children,Z,E.key),ep(E,_,R),_;if(_!==null&&(_.elementType===ce||K0(_,E)||typeof ce==="object"&&ce!==null&&ce.$$typeof===Do&&lr(ce)===_.type))return _=c(_,E.props),pc(_,E),_.return=R,_._debugOwner=E._owner,_._debugInfo=Ge,_;return _=Xf(E,R.mode,Z),pc(_,E),_.return=R,_._debugInfo=Ge,_}function L(R,_,E,Z){if(_===null||_.tag!==4||_.stateNode.containerInfo!==E.containerInfo||_.stateNode.implementation!==E.implementation)return _=yg(E,R.mode,Z),_.return=R,_._debugInfo=Ge,_;return _=c(_,E.children||[]),_.return=R,_._debugInfo=Ge,_}function O(R,_,E,Z,ce){if(_===null||_.tag!==7)return _=Ci(E,R.mode,Z,ce),_.return=R,_._debugOwner=R,_._debugTask=R._debugTask,_._debugInfo=Ge,_;return _=c(_,E),_.return=R,_._debugInfo=Ge,_}function P(R,_,E){if(typeof _==="string"&&_!==""||typeof _==="number"||typeof _==="bigint")return _=bg(""+_,R.mode,E),_.return=R,_._debugOwner=R,_._debugTask=R._debugTask,_._debugInfo=Ge,_;if(typeof _==="object"&&_!==null){switch(_.$$typeof){case jn:return E=Xf(_,R.mode,E),pc(E,_),E.return=R,R=Da(_._debugInfo),E._debugInfo=Ge,Ge=R,E;case Xl:return _=yg(_,R.mode,E),_.return=R,_._debugInfo=Ge,_;case Do:var Z=Da(_._debugInfo);return _=lr(_),R=P(R,_,E),Ge=Z,R}if(ma(_)||G(_))return E=Ci(_,R.mode,E,null),E.return=R,E._debugOwner=R,E._debugTask=R._debugTask,R=Da(_._debugInfo),E._debugInfo=Ge,Ge=R,E;if(typeof _.then==="function")return Z=Da(_._debugInfo),R=P(R,tp(_),E),Ge=Z,R;if(_.$$typeof===Gn)return P(R,Zf(R,_),E);ap(R,_)}return typeof _==="function"&&op(R,_),typeof _==="symbol"&&np(R,_),null}function D(R,_,E,Z){var ce=_!==null?_.key:null;if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return ce!==null?null:x(R,_,""+E,Z);if(typeof E==="object"&&E!==null){switch(E.$$typeof){case jn:return E.key===ce?(ce=Da(E._debugInfo),R=S(R,_,E,Z),Ge=ce,R):null;case Xl:return E.key===ce?L(R,_,E,Z):null;case Do:return ce=Da(E._debugInfo),E=lr(E),R=D(R,_,E,Z),Ge=ce,R}if(ma(E)||G(E)){if(ce!==null)return null;return ce=Da(E._debugInfo),R=O(R,_,E,Z,null),Ge=ce,R}if(typeof E.then==="function")return ce=Da(E._debugInfo),R=D(R,_,tp(E),Z),Ge=ce,R;if(E.$$typeof===Gn)return D(R,_,Zf(R,E),Z);ap(R,E)}return typeof E==="function"&&op(R,E),typeof E==="symbol"&&np(R,E),null}function U(R,_,E,Z,ce){if(typeof Z==="string"&&Z!==""||typeof Z==="number"||typeof Z==="bigint")return R=R.get(E)||null,x(_,R,""+Z,ce);if(typeof Z==="object"&&Z!==null){switch(Z.$$typeof){case jn:return E=R.get(Z.key===null?E:Z.key)||null,R=Da(Z._debugInfo),_=S(_,E,Z,ce),Ge=R,_;case Xl:return R=R.get(Z.key===null?E:Z.key)||null,L(_,R,Z,ce);case Do:var Be=Da(Z._debugInfo);return Z=lr(Z),_=U(R,_,E,Z,ce),Ge=Be,_}if(ma(Z)||G(Z))return E=R.get(E)||null,R=Da(Z._debugInfo),_=O(_,E,Z,ce,null),Ge=R,_;if(typeof Z.then==="function")return Be=Da(Z._debugInfo),_=U(R,_,E,tp(Z),ce),Ge=Be,_;if(Z.$$typeof===Gn)return U(R,_,E,Zf(_,Z),ce);ap(_,Z)}return typeof Z==="function"&&op(_,Z),typeof Z==="symbol"&&np(_,Z),null}function ie(R,_,E,Z){if(typeof E!=="object"||E===null)return Z;switch(E.$$typeof){case jn:case Xl:y(R,_,E);var ce=E.key;if(typeof ce!=="string")break;if(Z===null){Z=new Set,Z.add(ce);break}if(!Z.has(ce)){Z.add(ce);break}me(_,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",ce)});break;case Do:E=lr(E),ie(R,_,E,Z)}return Z}function he(R,_,E,Z){for(var ce=null,Be=null,Ie=null,Le=_,Fe=_=0,Nt=null;Le!==null&&Fe<E.length;Fe++){Le.index>Fe?(Nt=Le,Le=null):Nt=Le.sibling;var na=D(R,Le,E[Fe],Z);if(na===null){Le===null&&(Le=Nt);break}ce=ie(R,na,E[Fe],ce),e&&Le&&na.alternate===null&&t(R,Le),_=f(na,_,Fe),Ie===null?Be=na:Ie.sibling=na,Ie=na,Le=Nt}if(Fe===E.length)return n(R,Le),at&&hs(R,Fe),Be;if(Le===null){for(;Fe<E.length;Fe++)Le=P(R,E[Fe],Z),Le!==null&&(ce=ie(R,Le,E[Fe],ce),_=f(Le,_,Fe),Ie===null?Be=Le:Ie.sibling=Le,Ie=Le);return at&&hs(R,Fe),Be}for(Le=i(Le);Fe<E.length;Fe++)Nt=U(Le,R,Fe,E[Fe],Z),Nt!==null&&(ce=ie(R,Nt,E[Fe],ce),e&&Nt.alternate!==null&&Le.delete(Nt.key===null?Fe:Nt.key),_=f(Nt,_,Fe),Ie===null?Be=Nt:Ie.sibling=Nt,Ie=Nt);return e&&Le.forEach(function(Bs){return t(R,Bs)}),at&&hs(R,Fe),Be}function Et(R,_,E,Z){if(E==null)throw Error("An iterable object provided no iterator.");for(var ce=null,Be=null,Ie=_,Le=_=0,Fe=null,Nt=null,na=E.next();Ie!==null&&!na.done;Le++,na=E.next()){Ie.index>Le?(Fe=Ie,Ie=null):Fe=Ie.sibling;var Bs=D(R,Ie,na.value,Z);if(Bs===null){Ie===null&&(Ie=Fe);break}Nt=ie(R,Bs,na.value,Nt),e&&Ie&&Bs.alternate===null&&t(R,Ie),_=f(Bs,_,Le),Be===null?ce=Bs:Be.sibling=Bs,Be=Bs,Ie=Fe}if(na.done)return n(R,Ie),at&&hs(R,Le),ce;if(Ie===null){for(;!na.done;Le++,na=E.next())Ie=P(R,na.value,Z),Ie!==null&&(Nt=ie(R,Ie,na.value,Nt),_=f(Ie,_,Le),Be===null?ce=Ie:Be.sibling=Ie,Be=Ie);return at&&hs(R,Le),ce}for(Ie=i(Ie);!na.done;Le++,na=E.next())Fe=U(Ie,R,Le,na.value,Z),Fe!==null&&(Nt=ie(R,Fe,na.value,Nt),e&&Fe.alternate!==null&&Ie.delete(Fe.key===null?Le:Fe.key),_=f(Fe,_,Le),Be===null?ce=Fe:Be.sibling=Fe,Be=Fe);return e&&Ie.forEach(function(wE){return t(R,wE)}),at&&hs(R,Le),ce}function st(R,_,E,Z){if(typeof E==="object"&&E!==null&&E.type===Yl&&E.key===null&&(ep(E,null,R),E=E.props.children),typeof E==="object"&&E!==null){switch(E.$$typeof){case jn:var ce=Da(E._debugInfo);e:{for(var Be=E.key;_!==null;){if(_.key===Be){if(Be=E.type,Be===Yl){if(_.tag===7){n(R,_.sibling),Z=c(_,E.props.children),Z.return=R,Z._debugOwner=E._owner,Z._debugInfo=Ge,ep(E,Z,R),R=Z;break e}}else if(_.elementType===Be||K0(_,E)||typeof Be==="object"&&Be!==null&&Be.$$typeof===Do&&lr(Be)===_.type){n(R,_.sibling),Z=c(_,E.props),pc(Z,E),Z.return=R,Z._debugOwner=E._owner,Z._debugInfo=Ge,R=Z;break e}n(R,_);break}else t(R,_);_=_.sibling}E.type===Yl?(Z=Ci(E.props.children,R.mode,Z,E.key),Z.return=R,Z._debugOwner=R,Z._debugTask=R._debugTask,Z._debugInfo=Ge,ep(E,Z,R),R=Z):(Z=Xf(E,R.mode,Z),pc(Z,E),Z.return=R,Z._debugInfo=Ge,R=Z)}return R=m(R),Ge=ce,R;case Xl:e:{ce=E;for(E=ce.key;_!==null;){if(_.key===E)if(_.tag===4&&_.stateNode.containerInfo===ce.containerInfo&&_.stateNode.implementation===ce.implementation){n(R,_.sibling),Z=c(_,ce.children||[]),Z.return=R,R=Z;break e}else{n(R,_);break}else t(R,_);_=_.sibling}Z=yg(ce,R.mode,Z),Z.return=R,R=Z}return m(R);case Do:return ce=Da(E._debugInfo),E=lr(E),R=st(R,_,E,Z),Ge=ce,R}if(ma(E))return ce=Da(E._debugInfo),R=he(R,_,E,Z),Ge=ce,R;if(G(E)){if(ce=Da(E._debugInfo),Be=G(E),typeof Be!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ie=Be.call(E);if(Ie===E){if(R.tag!==0||Object.prototype.toString.call(R.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ie)!=="[object Generator]")MT||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),MT=!0}else E.entries!==Be||Wy||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Wy=!0);return R=Et(R,_,Ie,Z),Ge=ce,R}if(typeof E.then==="function")return ce=Da(E._debugInfo),R=st(R,_,tp(E),Z),Ge=ce,R;if(E.$$typeof===Gn)return st(R,_,Zf(R,E),Z);ap(R,E)}if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return ce=""+E,_!==null&&_.tag===6?(n(R,_.sibling),Z=c(_,ce),Z.return=R,R=Z):(n(R,_),Z=bg(ce,R.mode,Z),Z.return=R,Z._debugOwner=R,Z._debugTask=R._debugTask,Z._debugInfo=Ge,R=Z),m(R);return typeof E==="function"&&op(R,E),typeof E==="symbol"&&np(R,E),n(R,_)}return function(R,_,E,Z){var ce=Ge;Ge=null;try{ud=0;var Be=st(R,_,E,Z);return pu=null,Be}catch(Nt){if(Nt===fu||Nt===ph)throw Nt;var Ie=v(29,Nt,null,R.mode);Ie.lanes=Z,Ie.return=R;var Le=Ie._debugInfo=Ge;if(Ie._debugOwner=R._debugOwner,Ie._debugTask=R._debugTask,Le!=null){for(var Fe=Le.length-1;0<=Fe;Fe--)if(typeof Le[Fe].stack==="string"){Ie._debugOwner=Le[Fe],Ie._debugTask=Le[Fe].debugTask;break}}return Ie}finally{Ge=ce}}}function CS(e,t){var n=ma(e);return e=!n&&typeof G(e)==="function",n||e?(n=n?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",n,t,n),!1):!0}function Rg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dg(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 ur(e){return{lane:e,tag:_T,payload:null,callback:null,next:null}}function cr(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,Qy===i&&!PT){var c=X(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
100
+ <%s>%s</%s>`,a,t,a))}function bf(e,t){var a=dh();a!==null?a.run(Q0.bind(null,e,t)):Q0(e,t)}function Z0(e){function t(w,I){if(e){var M=w.deletions;M===null?(w.deletions=[I],w.flags|=16):M.push(I)}}function a(w,I){if(!e)return null;for(;I!==null;)t(w,I),I=I.sibling;return null}function o(w){for(var I=new Map;w!==null;)w.key!==null?I.set(w.key,w):I.set(w.index,w),w=w.sibling;return I}function l(w,I){return w=vn(w,I),w.index=0,w.sibling=null,w}function n(w,I,M){if(w.index=M,!e)return w.flags|=1048576,I;if(M=w.alternate,M!==null)return M=M.index,M<I?(w.flags|=67108866,I):M;return w.flags|=67108866,I}function s(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function d(w,I,M,Q){if(I===null||I.tag!==6)return I=Km(M,w.mode,Q),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;return I=l(I,M),I.return=w,I._debugInfo=at,I}function m(w,I,M,Q){var he=M.type;if(he===Tu)return I=A(w,I,M.props.children,Q,M.key),mf(M,I,w),I;if(I!==null&&(I.elementType===he||T0(I,M)||typeof he==="object"&&he!==null&&he.$$typeof===Ao&&or(he)===I.type))return I=l(I,M.props),Fi(I,M),I.return=w,I._debugOwner=M._owner,I._debugInfo=at,I;return I=nf(M,w.mode,Q),Fi(I,M),I.return=w,I._debugInfo=at,I}function g(w,I,M,Q){if(I===null||I.tag!==4||I.stateNode.containerInfo!==M.containerInfo||I.stateNode.implementation!==M.implementation)return I=Jm(M,w.mode,Q),I.return=w,I._debugInfo=at,I;return I=l(I,M.children||[]),I.return=w,I._debugInfo=at,I}function A(w,I,M,Q,he){if(I===null||I.tag!==7)return I=us(M,w.mode,Q,he),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;return I=l(I,M),I.return=w,I._debugInfo=at,I}function E(w,I,M){if(typeof I==="string"&&I!==""||typeof I==="number"||typeof I==="bigint")return I=Km(""+I,w.mode,M),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;if(typeof I==="object"&&I!==null){switch(I.$$typeof){case $l:return M=nf(I,w.mode,M),Fi(M,I),M.return=w,w=Ga(I._debugInfo),M._debugInfo=at,at=w,M;case wu:return I=Jm(I,w.mode,M),I.return=w,I._debugInfo=at,I;case Ao:var Q=Ga(I._debugInfo);return I=or(I),w=E(w,I,M),at=Q,w}if(Ra(I)||ee(I))return M=us(I,w.mode,M,null),M.return=w,M._debugOwner=w,M._debugTask=w._debugTask,w=Ga(I._debugInfo),M._debugInfo=at,at=w,M;if(typeof I.then==="function")return Q=Ga(I._debugInfo),w=E(w,hf(I),M),at=Q,w;if(I.$$typeof===Xl)return E(w,df(w,I),M);gf(w,I)}return typeof I==="function"&&yf(w,I),typeof I==="symbol"&&bf(w,I),null}function T(w,I,M,Q){var he=I!==null?I.key:null;if(typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint")return he!==null?null:d(w,I,""+M,Q);if(typeof M==="object"&&M!==null){switch(M.$$typeof){case $l:return M.key===he?(he=Ga(M._debugInfo),w=m(w,I,M,Q),at=he,w):null;case wu:return M.key===he?g(w,I,M,Q):null;case Ao:return he=Ga(M._debugInfo),M=or(M),w=T(w,I,M,Q),at=he,w}if(Ra(M)||ee(M)){if(he!==null)return null;return he=Ga(M._debugInfo),w=A(w,I,M,Q,null),at=he,w}if(typeof M.then==="function")return he=Ga(M._debugInfo),w=T(w,I,hf(M),Q),at=he,w;if(M.$$typeof===Xl)return T(w,I,df(w,M),Q);gf(w,M)}return typeof M==="function"&&yf(w,M),typeof M==="symbol"&&bf(w,M),null}function U(w,I,M,Q,he){if(typeof Q==="string"&&Q!==""||typeof Q==="number"||typeof Q==="bigint")return w=w.get(M)||null,d(I,w,""+Q,he);if(typeof Q==="object"&&Q!==null){switch(Q.$$typeof){case $l:return M=w.get(Q.key===null?M:Q.key)||null,w=Ga(Q._debugInfo),I=m(I,M,Q,he),at=w,I;case wu:return w=w.get(Q.key===null?M:Q.key)||null,g(I,w,Q,he);case Ao:var Ge=Ga(Q._debugInfo);return Q=or(Q),I=U(w,I,M,Q,he),at=Ge,I}if(Ra(Q)||ee(Q))return M=w.get(M)||null,w=Ga(Q._debugInfo),I=A(I,M,Q,he,null),at=w,I;if(typeof Q.then==="function")return Ge=Ga(Q._debugInfo),I=U(w,I,M,hf(Q),he),at=Ge,I;if(Q.$$typeof===Xl)return U(w,I,M,df(I,Q),he);gf(I,Q)}return typeof Q==="function"&&yf(I,Q),typeof Q==="symbol"&&bf(I,Q),null}function de(w,I,M,Q){if(typeof M!=="object"||M===null)return Q;switch(M.$$typeof){case $l:case wu:h(w,I,M);var he=M.key;if(typeof he!=="string")break;if(Q===null){Q=new Set,Q.add(he);break}if(!Q.has(he)){Q.add(he);break}re(I,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",he)});break;case Ao:M=or(M),de(w,I,M,Q)}return Q}function ye(w,I,M,Q){for(var he=null,Ge=null,De=null,Te=I,We=I=0,$t=null;Te!==null&&We<M.length;We++){Te.index>We?($t=Te,Te=null):$t=Te.sibling;var ga=T(w,Te,M[We],Q);if(ga===null){Te===null&&(Te=$t);break}he=de(w,ga,M[We],he),e&&Te&&ga.alternate===null&&t(w,Te),I=n(ga,I,We),De===null?Ge=ga:De.sibling=ga,De=ga,Te=$t}if(We===M.length)return a(w,Te),dt&&Sn(w,We),Ge;if(Te===null){for(;We<M.length;We++)Te=E(w,M[We],Q),Te!==null&&(he=de(w,Te,M[We],he),I=n(Te,I,We),De===null?Ge=Te:De.sibling=Te,De=Te);return dt&&Sn(w,We),Ge}for(Te=o(Te);We<M.length;We++)$t=U(Te,w,We,M[We],Q),$t!==null&&(he=de(w,$t,M[We],he),e&&$t.alternate!==null&&Te.delete($t.key===null?We:$t.key),I=n($t,I,We),De===null?Ge=$t:De.sibling=$t,De=$t);return e&&Te.forEach(function(Fn){return t(w,Fn)}),dt&&Sn(w,We),Ge}function Ft(w,I,M,Q){if(M==null)throw Error("An iterable object provided no iterator.");for(var he=null,Ge=null,De=I,Te=I=0,We=null,$t=null,ga=M.next();De!==null&&!ga.done;Te++,ga=M.next()){De.index>Te?(We=De,De=null):We=De.sibling;var Fn=T(w,De,ga.value,Q);if(Fn===null){De===null&&(De=We);break}$t=de(w,Fn,ga.value,$t),e&&De&&Fn.alternate===null&&t(w,De),I=n(Fn,I,Te),Ge===null?he=Fn:Ge.sibling=Fn,Ge=Fn,De=We}if(ga.done)return a(w,De),dt&&Sn(w,Te),he;if(De===null){for(;!ga.done;Te++,ga=M.next())De=E(w,ga.value,Q),De!==null&&($t=de(w,De,ga.value,$t),I=n(De,I,Te),Ge===null?he=De:Ge.sibling=De,Ge=De);return dt&&Sn(w,Te),he}for(De=o(De);!ga.done;Te++,ga=M.next())We=U(De,w,Te,ga.value,Q),We!==null&&($t=de(w,We,ga.value,$t),e&&We.alternate!==null&&De.delete(We.key===null?Te:We.key),I=n(We,I,Te),Ge===null?he=We:Ge.sibling=We,Ge=We);return e&&De.forEach(function(GM){return t(w,GM)}),dt&&Sn(w,Te),he}function pt(w,I,M,Q){if(typeof M==="object"&&M!==null&&M.type===Tu&&M.key===null&&(mf(M,null,w),M=M.props.children),typeof M==="object"&&M!==null){switch(M.$$typeof){case $l:var he=Ga(M._debugInfo);e:{for(var Ge=M.key;I!==null;){if(I.key===Ge){if(Ge=M.type,Ge===Tu){if(I.tag===7){a(w,I.sibling),Q=l(I,M.props.children),Q.return=w,Q._debugOwner=M._owner,Q._debugInfo=at,mf(M,Q,w),w=Q;break e}}else if(I.elementType===Ge||T0(I,M)||typeof Ge==="object"&&Ge!==null&&Ge.$$typeof===Ao&&or(Ge)===I.type){a(w,I.sibling),Q=l(I,M.props),Fi(Q,M),Q.return=w,Q._debugOwner=M._owner,Q._debugInfo=at,w=Q;break e}a(w,I);break}else t(w,I);I=I.sibling}M.type===Tu?(Q=us(M.props.children,w.mode,Q,M.key),Q.return=w,Q._debugOwner=w,Q._debugTask=w._debugTask,Q._debugInfo=at,mf(M,Q,w),w=Q):(Q=nf(M,w.mode,Q),Fi(Q,M),Q.return=w,Q._debugInfo=at,w=Q)}return w=s(w),at=he,w;case wu:e:{he=M;for(M=he.key;I!==null;){if(I.key===M)if(I.tag===4&&I.stateNode.containerInfo===he.containerInfo&&I.stateNode.implementation===he.implementation){a(w,I.sibling),Q=l(I,he.children||[]),Q.return=w,w=Q;break e}else{a(w,I);break}else t(w,I);I=I.sibling}Q=Jm(he,w.mode,Q),Q.return=w,w=Q}return s(w);case Ao:return he=Ga(M._debugInfo),M=or(M),w=pt(w,I,M,Q),at=he,w}if(Ra(M))return he=Ga(M._debugInfo),w=ye(w,I,M,Q),at=he,w;if(ee(M)){if(he=Ga(M._debugInfo),Ge=ee(M),typeof Ge!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var De=Ge.call(M);if(De===M){if(w.tag!==0||Object.prototype.toString.call(w.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(De)!=="[object Generator]")tC||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),tC=!0}else M.entries!==Ge||Ay||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ay=!0);return w=Ft(w,I,De,Q),at=he,w}if(typeof M.then==="function")return he=Ga(M._debugInfo),w=pt(w,I,hf(M),Q),at=he,w;if(M.$$typeof===Xl)return pt(w,I,df(w,M),Q);gf(w,M)}if(typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint")return he=""+M,I!==null&&I.tag===6?(a(w,I.sibling),Q=l(I,he),Q.return=w,w=Q):(a(w,I),Q=Km(he,w.mode,Q),Q.return=w,Q._debugOwner=w,Q._debugTask=w._debugTask,Q._debugInfo=at,w=Q),s(w);return typeof M==="function"&&yf(w,M),typeof M==="symbol"&&bf(w,M),a(w,I)}return function(w,I,M,Q){var he=at;at=null;try{Pd=0;var Ge=pt(w,I,M,Q);return Xu=null,Ge}catch($t){if($t===$u||$t===Ip)throw $t;var De=C(29,$t,null,w.mode);De.lanes=Q,De.return=w;var Te=De._debugInfo=at;if(De._debugOwner=w._debugOwner,De._debugTask=w._debugTask,Te!=null){for(var We=Te.length-1;0<=We;We--)if(typeof Te[We].stack==="string"){De._debugOwner=Te[We],De._debugTask=Te[We].debugTask;break}}return De}finally{at=he}}}function W0(e,t){var a=Ra(e);return e=!a&&typeof ee(e)==="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function ch(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fh(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 lr(e){return{lane:e,tag:rC,payload:null,callback:null,next:null}}function nr(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Ey===o&&!iC){var l=X(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
101
101
 
102
- Please update the following component: %s`,c),PT=!0}if((ct&ba)!==ka)return c=i.pending,c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=Gf(e),Q0(e,null,n),t;return jf(e,i,t,n),Gf(e)}function hc(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,gi(e,n)}}function sp(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var c=null,f=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};f===null?c=f=m:f=f.next=m,n=n.next}while(n!==null);f===null?c=f=t:f=f.next=t}else c=f=t;n={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function mc(){if(Ky){var e=du;if(e!==null)throw e}}function gc(e,t,n,i){Ky=!1;var c=e.updateQueue;Dr=!1,Qy=c.shared;var{firstBaseUpdate:f,lastBaseUpdate:m}=c,x=c.shared.pending;if(x!==null){c.shared.pending=null;var S=x,L=S.next;S.next=null,m===null?f=L:m.next=L,m=S;var O=e.alternate;O!==null&&(O=O.updateQueue,x=O.lastBaseUpdate,x!==m&&(x===null?O.firstBaseUpdate=L:x.next=L,O.lastBaseUpdate=S))}if(f!==null){var P=c.baseState;m=0,O=L=S=null,x=f;do{var D=x.lane&-536870913,U=D!==x.lane;if(U?(Xe&D)===D:(i&D)===D){D!==0&&D===Ui&&(Ky=!0),O!==null&&(O=O.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{D=e;var ie=x,he=t,Et=n;switch(ie.tag){case ET:if(ie=ie.payload,typeof ie==="function"){uu=!0;var st=ie.call(Et,P,he);if(D.mode&ja){Dt(!0);try{ie.call(Et,P,he)}finally{Dt(!1)}}uu=!1,P=st;break e}P=ie;break e;case Zy:D.flags=D.flags&-65537|128;case _T:if(st=ie.payload,typeof st==="function"){if(uu=!0,ie=st.call(Et,P,he),D.mode&ja){Dt(!0);try{st.call(Et,P,he)}finally{Dt(!1)}}uu=!1}else ie=st;if(ie===null||ie===void 0)break e;P=Ze({},P,ie);break e;case OT:Dr=!0}}D=x.callback,D!==null&&(e.flags|=64,U&&(e.flags|=8192),U=c.callbacks,U===null?c.callbacks=[D]:U.push(D))}else U={lane:D,tag:x.tag,payload:x.payload,callback:x.callback,next:null},O===null?(L=O=U,S=P):O=O.next=U,m|=D;if(x=x.next,x===null)if(x=c.shared.pending,x===null)break;else U=x,x=U.next,U.next=null,c.lastBaseUpdate=U,c.shared.pending=null}while(1);O===null&&(S=P),c.baseState=S,c.firstBaseUpdate=L,c.lastBaseUpdate=O,f===null&&(c.shared.lanes=0),Or|=m,e.lanes=m,e.memoizedState=P}Qy=null}function TS(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function xD(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)TS(n[e],t)}function wS(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)TS(n[e],t)}function kS(e,t){var n=ts;be(mh,n,e),be(hu,t,e),ts=n|t.baseLanes}function _g(e){be(mh,ts,e),be(hu,hu.current,e)}function Eg(e){ts=mh.current,ge(hu,e),ge(mh,e)}function dr(e){var t=e.alternate;be(oa,oa.current&mu,e),be(Po,e,e),Ko===null&&(t===null||hu.current!==null?Ko=e:t.memoizedState!==null&&(Ko=e))}function Og(e){be(oa,oa.current,e),be(Po,e,e),Ko===null&&(Ko=e)}function MS(e){e.tag===22?(be(oa,oa.current,e),be(Po,e,e),Ko===null&&(Ko=e)):fr(e)}function fr(e){be(oa,oa.current,e),be(Po,Po.current,e)}function Io(e){ge(Po,e),Ko===e&&(Ko=null),ge(oa,e)}function rp(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Yb(n)||$b(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}function We(){var e=F;en===null?en=[e]:en.push(e)}function ae(){var e=F;if(en!==null&&(Ds++,en[Ds]!==e)){var t=X(Pe);if(!BT.has(t)&&(BT.add(t),en!==null)){for(var n="",i=0;i<=Ds;i++){var c=en[i],f=i===Ds?e:c;for(c=i+1+". "+c;30>c.length;)c+=" ";c+=f+`
103
- `,n+=c}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
102
+ Please update the following component: %s`,l),iC=!0}if((ht&Aa)!==Pa)return l=o.pending,l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,t=lf(e),w0(e,null,a),t;return of(e,o,t,a),lf(e)}function Gi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,ts(e,a)}}function vf(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var l=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?l=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?l=n=t:n=n.next=t}else l=n=t;a={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Vi(){if(Oy){var e=Vu;if(e!==null)throw e}}function $i(e,t,a,o){Oy=!1;var l=e.updateQueue;Tr=!1,Ey=l.shared;var{firstBaseUpdate:n,lastBaseUpdate:s}=l,d=l.shared.pending;if(d!==null){l.shared.pending=null;var m=d,g=m.next;m.next=null,s===null?n=g:s.next=g,s=m;var A=e.alternate;A!==null&&(A=A.updateQueue,d=A.lastBaseUpdate,d!==s&&(d===null?A.firstBaseUpdate=g:d.next=g,A.lastBaseUpdate=m))}if(n!==null){var E=l.baseState;s=0,A=g=m=null,d=n;do{var T=d.lane&-536870913,U=T!==d.lane;if(U?(ot&T)===T:(o&T)===T){T!==0&&T===ws&&(Oy=!0),A!==null&&(A=A.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{T=e;var de=d,ye=t,Ft=a;switch(de.tag){case sC:if(de=de.payload,typeof de==="function"){Fu=!0;var pt=de.call(Ft,E,ye);if(T.mode&Ja){_t(!0);try{de.call(Ft,E,ye)}finally{_t(!1)}}Fu=!1,E=pt;break e}E=de;break e;case Dy:T.flags=T.flags&-65537|128;case rC:if(pt=de.payload,typeof pt==="function"){if(Fu=!0,de=pt.call(Ft,E,ye),T.mode&Ja){_t(!0);try{pt.call(Ft,E,ye)}finally{_t(!1)}}Fu=!1}else de=pt;if(de===null||de===void 0)break e;E=rt({},E,de);break e;case uC:Tr=!0}}T=d.callback,T!==null&&(e.flags|=64,U&&(e.flags|=8192),U=l.callbacks,U===null?l.callbacks=[T]:U.push(T))}else U={lane:T,tag:d.tag,payload:d.payload,callback:d.callback,next:null},A===null?(g=A=U,m=E):A=A.next=U,s|=T;if(d=d.next,d===null)if(d=l.shared.pending,d===null)break;else U=d,d=U.next,U.next=null,l.lastBaseUpdate=U,l.shared.pending=null}while(1);A===null&&(m=E),l.baseState=m,l.firstBaseUpdate=g,l.lastBaseUpdate=A,n===null&&(l.shared.lanes=0),Mr|=s,e.lanes=s,e.memoizedState=E}Ey=null}function K0(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function UT(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)K0(a[e],t)}function J0(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)K0(a[e],t)}function ev(e,t){var a=an;Ce(Mp,a,e),Ce(ju,t,e),an=a|t.baseLanes}function ph(e){Ce(Mp,an,e),Ce(ju,ju.current,e)}function mh(e){an=Mp.current,Ne(ju,e),Ne(Mp,e)}function rr(e){var t=e.alternate;Ce(ha,ha.current&Yu,e),Ce(qo,e,e),Wo===null&&(t===null||ju.current!==null?Wo=e:t.memoizedState!==null&&(Wo=e))}function hh(e){Ce(ha,ha.current,e),Ce(qo,e,e),Wo===null&&(Wo=e)}function tv(e){e.tag===22?(Ce(ha,ha.current,e),Ce(qo,e,e),Wo===null&&(Wo=e)):sr(e)}function sr(e){Ce(ha,ha.current,e),Ce(qo,qo.current,e)}function Io(e){Ne(qo,e),Wo===e&&(Wo=null),Ne(ha,e)}function Sf(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Rg(a)||Mg(a)))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}function nt(){var e=H;Jo===null?Jo=[e]:Jo.push(e)}function le(){var e=H;if(Jo!==null&&(Un++,Jo[Un]!==e)){var t=X(Fe);if(!dC.has(t)&&(dC.add(t),Jo!==null)){for(var a="",o=0;o<=Un;o++){var l=Jo[o],n=o===Un?e:l;for(l=o+1+". "+l;30>l.length;)l+=" ";l+=n+`
103
+ `,a+=l}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
104
104
 
105
105
  Previous render Next render
106
106
  ------------------------------------------------------
107
107
  %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
- `,t,n)}}}function El(e){e===void 0||e===null||ma(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",F,typeof e)}function ip(){var e=X(Pe);zT.has(e)||(zT.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function ta(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
108
+ `,t,a)}}}function fu(e){e===void 0||e===null||Ra(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",H,typeof e)}function xf(){var e=X(Fe);fC.has(e)||(fC.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function da(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
109
109
  1. You might have mismatching versions of React and the renderer (such as React DOM)
110
110
  2. You might be breaking the Rules of Hooks
111
111
  3. You might have more than one copy of React in the same app
112
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Pg(e,t){if(fd)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",F),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function gh(e,t){if(Hd)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",H),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
113
113
 
114
114
  Previous: %s
115
- Incoming: %s`,F,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Qa(e[n],t[n]))return!1;return!0}function Bg(e,t,n,i,c,f){if(As=f,Pe=t,en=e!==null?e._debugHookTypes:null,Ds=-1,fd=e!==null&&e.type!==t.type,Object.prototype.toString.call(n)==="[object AsyncFunction]"||Object.prototype.toString.call(n)==="[object AsyncGeneratorFunction]")f=X(Pe),Jy.has(f)||(Jy.add(f),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",f===null?"An unknown Component":"<"+f+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,V.H=e!==null&&e.memoizedState!==null?tx:en!==null?HT:ex,Gi=f=(t.mode&ja)!==Oe;var m=Xy(n,i,c);if(Gi=!1,bu&&(m=Ng(t,n,i,c)),f){Dt(!0);try{m=Ng(t,n,i,c)}finally{Dt(!1)}}return IS(e,t),m}function IS(e,t){t._debugHookTypes=en,t.dependencies===null?Rs!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Rs}):t.dependencies._debugThenableState=Rs,V.H=pd;var n=It!==null&&It.next!==null;if(As=0,en=F=ua=It=Pe=null,Ds=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),bh=!1,dd=0,Rs=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||ca||(e=e.dependencies,e!==null&&Wf(e)&&(ca=!0)),ld?(ld=!1,e=!0):e=!1,e&&(t=X(t)||"Unknown",NT.has(t)||Jy.has(t)||(NT.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Ng(e,t,n,i){Pe=e;var c=0;do{if(bu&&(Rs=null),dd=0,bu=!1,c>=oE)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(c+=1,fd=!1,ua=It=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}Ds=-1,V.H=UT,f=Xy(t,n,i)}while(bu);return f}function vD(){var e=V.H,t=e.useState()[0];return t=typeof t.then==="function"?bc(t):t,e=e.useState()[0],(It!==null?It.memoizedState:null)!==e&&(Pe.flags|=1024),t}function zg(){var e=yh!==0;return yh=0,e}function Hg(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&gn)!==Oe?t.flags&-402655237:t.flags&-2053,e.lanes&=~n}function Ug(e){if(bh){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bh=!1}As=0,en=ua=It=Pe=null,Ds=-1,F=null,bu=!1,dd=yh=0,Rs=null}function Ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ua===null?Pe.memoizedState=ua=e:ua=ua.next=e,ua}function vt(){if(It===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=It.next;var t=ua===null?Pe.memoizedState:ua.next;if(t!==null)ua=t,It=e;else{if(e===null){if(Pe.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}It=e,e={memoizedState:It.memoizedState,baseState:It.baseState,baseQueue:It.baseQueue,queue:It.queue,next:null},ua===null?Pe.memoizedState=ua=e:ua=ua.next=e}return ua}function lp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bc(e){var t=dd;return dd+=1,Rs===null&&(Rs=hS()),e=gS(Rs,e,t),t=Pe,(ua===null?t.memoizedState:ua.next)===null&&(t=t.alternate,V.H=t!==null&&t.memoizedState!==null?tx:ex),e}function pr(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return bc(e);if(e.$$typeof===Gn)return Ft(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Ii(e){var t=null,n=Pe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Pe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=lp(),Pe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||fd)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=P2;else n.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",n.length,e);return t.index++,n}function fn(e,t){return typeof t==="function"?t(e):t}function Fg(e,t,n){var i=Ya();if(n!==void 0){var c=n(t);if(Gi){Dt(!0);try{n(t)}finally{Dt(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=wD.bind(null,Pe,e),[i.memoizedState,e]}function Ol(e){var t=vt();return qg(t,It,e)}function qg(e,t,n){var i=e.queue;if(i===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");i.lastRenderedReducer=n;var c=e.baseQueue,f=i.pending;if(f!==null){if(c!==null){var m=c.next;c.next=f.next,f.next=m}t.baseQueue!==c&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=c=f,i.pending=null}if(f=e.baseState,c===null)e.memoizedState=f;else{t=c.next;var x=m=null,S=null,L=t,O=!1;do{var P=L.lane&-536870913;if(P!==L.lane?(Xe&P)===P:(As&P)===P){var D=L.revertLane;if(D===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),P===Ui&&(O=!0);else if((As&D)===D){L=L.next,D===Ui&&(O=!0);continue}else P={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},S===null?(x=S=P,m=f):S=S.next=P,Pe.lanes|=D,Or|=D;P=L.action,Gi&&n(f,P),f=L.hasEagerState?L.eagerState:n(f,P)}else D={lane:P,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},S===null?(x=S=D,m=f):S=S.next=D,Pe.lanes|=P,Or|=P;L=L.next}while(L!==null&&L!==t);if(S===null?m=f:S.next=x,!Qa(f,e.memoizedState)&&(ca=!0,O&&(n=du,n!==null)))throw n;e.memoizedState=f,e.baseState=m,e.baseQueue=S,i.lastRenderedState=f}return c===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function yc(e){var t=vt(),n=t.queue;if(n===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=e;var{dispatch:i,pending:c}=n,f=t.memoizedState;if(c!==null){n.pending=null;var m=c=c.next;do f=e(f,m.action),m=m.next;while(m!==c);Qa(f,t.memoizedState)||(ca=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),n.lastRenderedState=f}return[f,i]}function Vg(e,t,n){var i=Pe,c=Ya();if(at){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var f=n();gu||f===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),gu=!0)}else{if(f=t(),gu||(n=t(),Qa(f,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),gu=!0)),At===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Xe&127)!==0||AS(i,t,f)}return c.memoizedState=f,n={value:f,getSnapshot:t},c.queue=n,fp(DS.bind(null,i,n,e),[e]),i.flags|=2048,Bl(Jo|eo,{destroy:void 0},RS.bind(null,i,n,f,t),null),f}function up(e,t,n){var i=Pe,c=vt(),f=at;if(f){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");n=n()}else if(n=t(),!gu){var m=t();Qa(n,m)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),gu=!0)}if(m=!Qa((It||c).memoizedState,n))c.memoizedState=n,ca=!0;c=c.queue;var x=DS.bind(null,i,c,e);if(so(2048,eo,x,[e]),c.getSnapshot!==t||m||ua!==null&&ua.memoizedState.tag&Jo){if(i.flags|=2048,Bl(Jo|eo,{destroy:void 0},RS.bind(null,i,c,n,t),null),At===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");f||(As&127)!==0||AS(i,t,n)}return n}function AS(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Pe.updateQueue,t===null?(t=lp(),Pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function RS(e,t,n,i){t.value=n,t.getSnapshot=i,_S(t)&&ES(e)}function DS(e,t,n){return n(function(){_S(t)&&(Dn(2,"updateSyncExternalStore()",e),ES(e))})}function _S(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qa(e,n)}catch(i){return!0}}function ES(e){var t=qa(e,2);t!==null&&Zt(t,e,2)}function jg(e){var t=Ya();if(typeof e==="function"){var n=e;if(e=n(),Gi){Dt(!0);try{n()}finally{Dt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:e},t}function Gg(e){e=jg(e);var t=e.queue,n=KS.bind(null,Pe,t);return t.dispatch=n,[e.memoizedState,n]}function Xg(e){var t=Ya();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=rb.bind(null,Pe,!0,n),n.dispatch=t,[e,t]}function OS(e,t){var n=vt();return PS(n,It,e,t)}function PS(e,t,n,i){return e.baseState=n,qg(e,It,typeof i==="function"?i:fn)}function BS(e,t){var n=vt();if(It!==null)return PS(n,It,e,t);return n.baseState=e,[e,n.queue.dispatch]}function SD(e,t,n,i,c){if(yp(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var f={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){f.listeners.push(m)}};V.T!==null?n(!0):f.isTransition=!1,i(f),n=t.pending,n===null?(f.next=t.pending=f,NS(t,f)):(f.next=n.next,t.pending=n.next=f)}}function NS(e,t){var{action:n,payload:i}=t,c=e.state;if(t.isTransition){var f=V.T,m={};m._updatedFibers=new Set,V.T=m;try{var x=n(c,i),S=V.S;S!==null&&S(m,x),zS(e,t,x)}catch(L){Yg(e,t,L)}finally{f!==null&&m.types!==null&&(f.types!==null&&f.types!==m.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),f.types=m.types),V.T=f,f===null&&m._updatedFibers&&(e=m._updatedFibers.size,m._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{m=n(c,i),zS(e,t,m)}catch(L){Yg(e,t,L)}}function zS(e,t,n){n!==null&&typeof n==="object"&&typeof n.then==="function"?(V.asyncTransitions++,n.then(bp,bp),n.then(function(i){HS(e,t,i)},function(i){return Yg(e,t,i)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):HS(e,t,n)}function HS(e,t,n){t.status="fulfilled",t.value=n,US(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,NS(e,n)))}function Yg(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,US(t),t=t.next;while(t!==i)}e.action=null}function US(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function FS(e,t){return t}function Pl(e,t){if(at){var n=At.formState;if(n!==null){e:{var i=Pe;if(at){if(Bt){t:{var c=Bt;for(var f=Zo;c.nodeType!==8;){if(!f){c=null;break t}if(c=Ro(c.nextSibling),c===null){c=null;break t}}f=c.data,c=f===Tx||f===ww?c:null}if(c){Bt=Ro(c.nextSibling),i=c.data===Tx;break e}}rr(i)}i=!1}i&&(t=n[0])}}return n=Ya(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:FS,lastRenderedState:t},n.queue=i,n=KS.bind(null,Pe,i),i.dispatch=n,i=jg(!1),f=rb.bind(null,Pe,!1,i.queue),i=Ya(),c={state:t,dispatch:null,action:e,pending:null},i.queue=c,n=SD.bind(null,Pe,c,f,n),c.dispatch=n,i.memoizedState=e,[t,n,!1]}function cp(e){var t=vt();return qS(t,It,e)}function qS(e,t,n){if(t=qg(e,t,FS)[0],e=Ol(fn)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var i=bc(t)}catch(m){if(m===fu)throw ph;throw m}else i=t;t=vt();var c=t.queue,f=c.dispatch;return n!==t.memoizedState&&(Pe.flags|=2048,Bl(Jo|eo,{destroy:void 0},LD.bind(null,c,n),null)),[i,f,e]}function LD(e,t){e.action=t}function dp(e){var t=vt(),n=It;if(n!==null)return qS(t,n,e);vt(),t=t.memoizedState,n=vt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Bl(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Pe.updateQueue,t===null&&(t=lp(),Pe.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 $g(e){var t=Ya();return e={current:e},t.memoizedState=e}function Ai(e,t,n,i){var c=Ya();Pe.flags|=e,c.memoizedState=Bl(Jo|t,{destroy:void 0},n,i===void 0?null:i)}function so(e,t,n,i){var c=vt();i=i===void 0?null:i;var f=c.memoizedState.inst;It!==null&&i!==null&&Pg(i,It.memoizedState.deps)?c.memoizedState=Bl(t,f,n,i):(Pe.flags|=e,c.memoizedState=Bl(Jo|t,f,n,i))}function fp(e,t){(Pe.mode&gn)!==Oe?Ai(276826112,eo,e,t):Ai(8390656,eo,e,t)}function CD(e){Pe.flags|=4;var t=Pe.updateQueue;if(t===null)t=lp(),Pe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Wg(e){var t=Ya(),n={impl:e};return t.memoizedState=n,function(){if((ct&ba)!==ka)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function pp(e){var t=vt().memoizedState;return CD({ref:t,nextImpl:e}),function(){if((ct&ba)!==ka)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Zg(e,t){var n=4194308;return(Pe.mode&gn)!==Oe&&(n|=134217728),Ai(n,Bo,e,t)}function VS(e,t){if(typeof t==="function"){e=e();var n=t(e);return function(){typeof n==="function"?n():t(null)}}if(t!==null&&t!==void 0)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Qg(e,t,n){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),n=n!==null&&n!==void 0?n.concat([e]):null;var i=4194308;(Pe.mode&gn)!==Oe&&(i|=134217728),Ai(i,Bo,VS.bind(null,t,e),n)}function hp(e,t,n){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),n=n!==null&&n!==void 0?n.concat([e]):null,so(4,Bo,VS.bind(null,t,e),n)}function Kg(e,t){return Ya().memoizedState=[e,t===void 0?null:t],e}function mp(e,t){var n=vt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Pg(t,i[1]))return i[0];return n.memoizedState=[e,t],e}function Jg(e,t){var n=Ya();t=t===void 0?null:t;var i=e();if(Gi){Dt(!0);try{e()}finally{Dt(!1)}}return n.memoizedState=[i,t],i}function gp(e,t){var n=vt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Pg(t,i[1]))return i[0];if(i=e(),Gi){Dt(!0);try{e()}finally{Dt(!1)}}return n.memoizedState=[i,t],i}function eb(e,t){var n=Ya();return tb(n,e,t)}function jS(e,t){var n=vt();return XS(n,It.memoizedState,e,t)}function GS(e,t){var n=vt();return It===null?tb(n,e,t):XS(n,It.memoizedState,e,t)}function tb(e,t,n){if(n===void 0||(As&1073741824)!==0&&(Xe&261930)===0)return e.memoizedState=t;return e.memoizedState=n,e=YL(),Pe.lanes|=e,Or|=e,n}function XS(e,t,n,i){if(Qa(n,t))return n;if(hu.current!==null)return e=tb(e,n,i),Qa(e,t)||(ca=!0),e;if((As&42)===0||(As&1073741824)!==0&&(Xe&261930)===0)return ca=!0,e.memoizedState=n;return e=YL(),Pe.lanes|=e,Or|=e,t}function bp(){V.asyncTransitions--}function YS(e,t,n,i,c){var f=bt.p;bt.p=f!==0&&f<mn?f:mn;var m=V.T,x={};x._updatedFibers=new Set,V.T=x,rb(e,!1,t,n);try{var S=c(),L=V.S;if(L!==null&&L(x,S),S!==null&&typeof S==="object"&&typeof S.then==="function"){V.asyncTransitions++,S.then(bp,bp);var O=yD(S,i);xc(e,t,O,Ao(e))}else xc(e,t,i,Ao(e))}catch(P){xc(e,t,{then:function(){},status:"rejected",reason:P},Ao(e))}finally{bt.p=f,m!==null&&x.types!==null&&(m.types!==null&&m.types!==x.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),m.types=x.types),V.T=m,m===null&&x._updatedFibers&&(e=x._updatedFibers.size,x._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function ab(e,t,n,i){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var c=$S(e).queue;gD(e),YS(e,c,t,al,n===null?g:function(){return WS(e),n(i)})}function $S(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:al,baseState:al,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:al},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function WS(e){V.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=$S(e);t.next===null&&(t=e.alternate.memoizedState),xc(e,t.next.queue,{},Ao(e))}function ob(){var e=jg(!1);return e=YS.bind(null,Pe,e.queue,!0,!1),Ya().memoizedState=e,[!1,e]}function ZS(){var e=Ol(fn)[0],t=vt().memoizedState;return[typeof e==="boolean"?e:bc(e),t]}function QS(){var e=yc(fn)[0],t=vt().memoizedState;return[typeof e==="boolean"?e:bc(e),t]}function Ri(){return Ft(Id)}function nb(){var e=Ya(),t=At.identifierPrefix;if(at){var n=Ts,i=Cs;n=(i&~(1<<32-$a(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=yh++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=aE++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t}function sb(){return Ya().memoizedState=TD.bind(null,Pe)}function TD(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=Ao(n),c=ur(i),f=cr(n,c,i);f!==null&&(Dn(i,"refresh()",e),Zt(f,n,i),hc(f,n,i)),e=wg(),t!==null&&t!==void 0&&f!==null&&console.error("The seed argument is not enabled outside experimental channels."),c.payload={cache:e};return}n=n.return}}function wD(e,t,n){var i=arguments;typeof i[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),i=Ao(e);var c={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};yp(e)?JS(t,c):(c=pg(e,t,c,i),c!==null&&(Dn(i,"dispatch()",e),Zt(c,e,i),eL(c,t,i)))}function KS(e,t,n){var i=arguments;typeof i[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),i=Ao(e),xc(e,t,n,i)&&Dn(i,"setState()",e)}function xc(e,t,n,i){var c={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(yp(e))JS(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null)){var m=V.H;V.H=yn;try{var x=t.lastRenderedState,S=f(x,n);if(c.hasEagerState=!0,c.eagerState=S,Qa(S,x))return jf(e,t,c,0),At===null&&Vf(),!1}catch(L){}finally{V.H=m}}if(n=pg(e,t,c,i),n!==null)return Zt(n,e,i),eL(n,t,i),!0}return!1}function rb(e,t,n,i){if(V.T===null&&Ui===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),i={lane:2,revertLane:Bb(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},yp(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=pg(e,n,i,2),t!==null&&(Dn(2,"setOptimistic()",e),Zt(t,e,2))}function yp(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function JS(e,t){bu=bh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function eL(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,gi(e,n)}}function ib(e){if(e!==null&&typeof e!=="function"){var t=String(e);QT.has(t)||(QT.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function lb(e,t,n,i){var c=e.memoizedState,f=n(i,c);if(e.mode&ja){Dt(!0);try{f=n(i,c)}finally{Dt(!1)}}f===void 0&&(t=Y(t)||"Component",YT.has(t)||(YT.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),c=f===null||f===void 0?c:Ze({},c,f),e.memoizedState=c,e.lanes===0&&(e.updateQueue.baseState=c)}function tL(e,t,n,i,c,f,m){var x=e.stateNode;if(typeof x.shouldComponentUpdate==="function"){if(n=x.shouldComponentUpdate(i,f,m),e.mode&ja){Dt(!0);try{n=x.shouldComponentUpdate(i,f,m)}finally{Dt(!1)}}return n===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Y(t)||"Component"),n}return t.prototype&&t.prototype.isPureReactComponent?!ic(n,i)||!ic(c,f):!0}function aL(e,t,n,i){var c=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==c&&(e=X(e)||"Component",qT.has(e)||(qT.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),ax.enqueueReplaceState(t,t.state,null))}function Di(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=Ze({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function oL(e){Ey(e),console.warn(`%s
115
+ Incoming: %s`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!no(e[a],t[a]))return!1;return!0}function yh(e,t,a,o,l,n){if(Bn=n,Fe=t,Jo=e!==null?e._debugHookTypes:null,Un=-1,Hd=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")n=X(Fe),qy.has(n)||(qy.add(n),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",n===null?"An unknown Component":"<"+n+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e!==null&&e.memoizedState!==null?Ny:Jo!==null?pC:By,As=n=(t.mode&Ja)!==ze;var s=Iy(a,o,l);if(As=!1,Zu&&(s=bh(t,a,o,l)),n){_t(!0);try{s=bh(t,a,o,l)}finally{_t(!1)}}return av(e,t),s}function av(e,t){t._debugHookTypes=Jo,t.dependencies===null?Nn!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Nn}):t.dependencies._debugThenableState=Nn,G.H=Fd;var a=Ut!==null&&Ut.next!==null;if(Bn=0,Jo=H=xa=Ut=Fe=null,Un=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Dp=!1,_d=0,Nn=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||La||(e=e.dependencies,e!==null&&uf(e)&&(La=!0)),Ud?(Ud=!1,e=!0):e=!1,e&&(t=X(t)||"Unknown",cC.has(t)||qy.has(t)||(cC.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function bh(e,t,a,o){Fe=e;var l=0;do{if(Zu&&(Nn=null),_d=0,Zu=!1,l>=xM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l+=1,Hd=!1,xa=Ut=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}Un=-1,G.H=mC,n=Iy(t,a,o)}while(Zu);return n}function PT(){var e=G.H,t=e.useState()[0];return t=typeof t.then==="function"?Xi(t):t,e=e.useState()[0],(Ut!==null?Ut.memoizedState:null)!==e&&(Fe.flags|=1024),t}function vh(){var e=Ep!==0;return Ep=0,e}function Sh(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&fl)!==ze?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function xh(e){if(Dp){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Dp=!1}Bn=0,Jo=xa=Ut=Fe=null,Un=-1,H=null,Zu=!1,_d=Ep=0,Nn=null}function to(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xa===null?Fe.memoizedState=xa=e:xa=xa.next=e,xa}function At(){if(Ut===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ut.next;var t=xa===null?Fe.memoizedState:xa.next;if(t!==null)xa=t,Ut=e;else{if(e===null){if(Fe.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}Ut=e,e={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},xa===null?Fe.memoizedState=xa=e:xa=xa.next=e}return xa}function Lf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xi(e){var t=_d;return _d+=1,Nn===null&&(Nn=F0()),e=V0(Nn,e,t),t=Fe,(xa===null?t.memoizedState:xa.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?Ny:By),e}function ur(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Xi(e);if(e.$$typeof===Xl)return Qt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function ps(e){var t=null,a=Fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Fe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Lf(),Fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Hd)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=JI;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function ul(e,t){return typeof t==="function"?t(e):t}function Lh(e,t,a){var o=to();if(a!==void 0){var l=a(t);if(As){_t(!0);try{a(t)}finally{_t(!1)}}}else l=t;return o.memoizedState=o.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},o.queue=e,e=e.dispatch=GT.bind(null,Fe,e),[o.memoizedState,e]}function pu(e){var t=At();return Ch(t,Ut,e)}function Ch(e,t,a){var o=e.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=a;var l=e.baseQueue,n=o.pending;if(n!==null){if(l!==null){var s=l.next;l.next=n.next,n.next=s}t.baseQueue!==l&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=l=n,o.pending=null}if(n=e.baseState,l===null)e.memoizedState=n;else{t=l.next;var d=s=null,m=null,g=t,A=!1;do{var E=g.lane&-536870913;if(E!==g.lane?(ot&E)===E:(Bn&E)===E){var T=g.revertLane;if(T===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),E===ws&&(A=!0);else if((Bn&T)===T){g=g.next,T===ws&&(A=!0);continue}else E={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},m===null?(d=m=E,s=n):m=m.next=E,Fe.lanes|=T,Mr|=T;E=g.action,As&&a(n,E),n=g.hasEagerState?g.eagerState:a(n,E)}else T={lane:E,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},m===null?(d=m=T,s=n):m=m.next=T,Fe.lanes|=E,Mr|=E;g=g.next}while(g!==null&&g!==t);if(m===null?s=n:m.next=d,!no(n,e.memoizedState)&&(La=!0,A&&(a=Vu,a!==null)))throw a;e.memoizedState=n,e.baseState=s,e.baseQueue=m,o.lastRenderedState=n}return l===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ji(e){var t=At(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var{dispatch:o,pending:l}=a,n=t.memoizedState;if(l!==null){a.pending=null;var s=l=l.next;do n=e(n,s.action),s=s.next;while(s!==l);no(n,t.memoizedState)||(La=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function kh(e,t,a){var o=Fe,l=to();if(dt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var n=a();Qu||n===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Qu=!0)}else{if(n=t(),Qu||(a=t(),no(n,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Qu=!0)),Pt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ot&127)!==0||ov(o,t,n)}return l.memoizedState=n,a={value:n,getSnapshot:t},l.queue=a,Tf(nv.bind(null,o,a,e),[e]),o.flags|=2048,hu(Ko|uo,{destroy:void 0},lv.bind(null,o,a,n,t),null),n}function Cf(e,t,a){var o=Fe,l=At(),n=dt;if(n){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Qu){var s=t();no(a,s)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Qu=!0)}if(s=!no((Ut||l).memoizedState,a))l.memoizedState=a,La=!0;l=l.queue;var d=nv.bind(null,o,l,e);if(po(2048,uo,d,[e]),l.getSnapshot!==t||s||xa!==null&&xa.memoizedState.tag&Ko){if(o.flags|=2048,hu(Ko|uo,{destroy:void 0},lv.bind(null,o,l,a,t),null),Pt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");n||(Bn&127)!==0||ov(o,t,a)}return a}function ov(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Fe.updateQueue,t===null?(t=Lf(),Fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function lv(e,t,a,o){t.value=a,t.getSnapshot=o,rv(t)&&sv(e)}function nv(e,t,a){return a(function(){rv(t)&&(El(2,"updateSyncExternalStore()",e),sv(e))})}function rv(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!no(e,a)}catch(o){return!0}}function sv(e){var t=Wa(e,2);t!==null&&oa(t,e,2)}function wh(e){var t=to();if(typeof e==="function"){var a=e;if(e=a(),As){_t(!0);try{a()}finally{_t(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:e},t}function Th(e){e=wh(e);var t=e.queue,a=Tv.bind(null,Fe,t);return t.dispatch=a,[e.memoizedState,a]}function Ih(e){var t=to();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Hh.bind(null,Fe,!0,a),a.dispatch=t,[e,t]}function uv(e,t){var a=At();return iv(a,Ut,e,t)}function iv(e,t,a,o){return e.baseState=a,Ch(e,Ut,typeof o==="function"?o:ul)}function dv(e,t){var a=At();if(Ut!==null)return iv(a,Ut,e,t);return a.baseState=e,[e,a.queue.dispatch]}function zT(e,t,a,o,l){if(Ef(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var n={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){n.listeners.push(s)}};G.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,cv(t,n)):(n.next=a.next,t.pending=a.next=n)}}function cv(e,t){var{action:a,payload:o}=t,l=e.state;if(t.isTransition){var n=G.T,s={};s._updatedFibers=new Set,G.T=s;try{var d=a(l,o),m=G.S;m!==null&&m(s,d),fv(e,t,d)}catch(g){Rh(e,t,g)}finally{n!==null&&s.types!==null&&(n.types!==null&&n.types!==s.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),n.types=s.types),G.T=n,n===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{s=a(l,o),fv(e,t,s)}catch(g){Rh(e,t,g)}}function fv(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(G.asyncTransitions++,a.then(Df,Df),a.then(function(o){pv(e,t,o)},function(o){return Rh(e,t,o)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):pv(e,t,a)}function pv(e,t,a){t.status="fulfilled",t.value=a,mv(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,cv(e,a)))}function Rh(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,mv(t),t=t.next;while(t!==o)}e.action=null}function mv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function hv(e,t){return t}function mu(e,t){if(dt){var a=Pt.formState;if(a!==null){e:{var o=Fe;if(dt){if(Vt){t:{var l=Vt;for(var n=Qo;l.nodeType!==8;){if(!n){l=null;break t}if(l=Mo(l.nextSibling),l===null){l=null;break t}}n=l.data,l=n===nb||n===JC?l:null}if(l){Vt=Mo(l.nextSibling),o=l.data===nb;break e}}tr(o)}o=!1}o&&(t=a[0])}}return a=to(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hv,lastRenderedState:t},a.queue=o,a=Tv.bind(null,Fe,o),o.dispatch=a,o=wh(!1),n=Hh.bind(null,Fe,!1,o.queue),o=to(),l={state:t,dispatch:null,action:e,pending:null},o.queue=l,a=zT.bind(null,Fe,l,n,a),l.dispatch=a,o.memoizedState=e,[t,a,!1]}function kf(e){var t=At();return gv(t,Ut,e)}function gv(e,t,a){if(t=Ch(e,t,hv)[0],e=pu(ul)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Xi(t)}catch(s){if(s===$u)throw Ip;throw s}else o=t;t=At();var l=t.queue,n=l.dispatch;return a!==t.memoizedState&&(Fe.flags|=2048,hu(Ko|uo,{destroy:void 0},_T.bind(null,l,a),null)),[o,n,e]}function _T(e,t){e.action=t}function wf(e){var t=At(),a=Ut;if(a!==null)return gv(t,a,e);At(),t=t.memoizedState,a=At();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function hu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Fe.updateQueue,t===null&&(t=Lf(),Fe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function Mh(e){var t=to();return e={current:e},t.memoizedState=e}function ms(e,t,a,o){var l=to();Fe.flags|=e,l.memoizedState=hu(Ko|t,{destroy:void 0},a,o===void 0?null:o)}function po(e,t,a,o){var l=At();o=o===void 0?null:o;var n=l.memoizedState.inst;Ut!==null&&o!==null&&gh(o,Ut.memoizedState.deps)?l.memoizedState=hu(t,n,a,o):(Fe.flags|=e,l.memoizedState=hu(Ko|t,n,a,o))}function Tf(e,t){(Fe.mode&fl)!==ze?ms(276826112,uo,e,t):ms(8390656,uo,e,t)}function HT(e){Fe.flags|=4;var t=Fe.updateQueue;if(t===null)t=Lf(),Fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ah(e){var t=to(),a={impl:e};return t.memoizedState=a,function(){if((ht&Aa)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function If(e){var t=At().memoizedState;return HT({ref:t,nextImpl:e}),function(){if((ht&Aa)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Dh(e,t){var a=4194308;return(Fe.mode&fl)!==ze&&(a|=134217728),ms(a,Bo,e,t)}function yv(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Eh(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null;var o=4194308;(Fe.mode&fl)!==ze&&(o|=134217728),ms(o,Bo,yv.bind(null,t,e),a)}function Rf(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null,po(4,Bo,yv.bind(null,t,e),a)}function Oh(e,t){return to().memoizedState=[e,t===void 0?null:t],e}function Mf(e,t){var a=At();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&gh(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function qh(e,t){var a=to();t=t===void 0?null:t;var o=e();if(As){_t(!0);try{e()}finally{_t(!1)}}return a.memoizedState=[o,t],o}function Af(e,t){var a=At();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&gh(t,o[1]))return o[0];if(o=e(),As){_t(!0);try{e()}finally{_t(!1)}}return a.memoizedState=[o,t],o}function Bh(e,t){var a=to();return Nh(a,e,t)}function bv(e,t){var a=At();return Sv(a,Ut.memoizedState,e,t)}function vv(e,t){var a=At();return Ut===null?Nh(a,e,t):Sv(a,Ut.memoizedState,e,t)}function Nh(e,t,a){if(a===void 0||(Bn&1073741824)!==0&&(ot&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=xS(),Fe.lanes|=e,Mr|=e,a}function Sv(e,t,a,o){if(no(a,t))return a;if(ju.current!==null)return e=Nh(e,a,o),no(e,t)||(La=!0),e;if((Bn&42)===0||(Bn&1073741824)!==0&&(ot&261930)===0)return La=!0,e.memoizedState=a;return e=xS(),Fe.lanes|=e,Mr|=e,t}function Df(){G.asyncTransitions--}function xv(e,t,a,o,l){var n=kt.p;kt.p=n!==0&&n<cl?n:cl;var s=G.T,d={};d._updatedFibers=new Set,G.T=d,Hh(e,!1,t,a);try{var m=l(),g=G.S;if(g!==null&&g(d,m),m!==null&&typeof m==="object"&&typeof m.then==="function"){G.asyncTransitions++,m.then(Df,Df);var A=NT(m,o);Yi(e,t,A,Ro(e))}else Yi(e,t,o,Ro(e))}catch(E){Yi(e,t,{then:function(){},status:"rejected",reason:E},Ro(e))}finally{kt.p=n,s!==null&&d.types!==null&&(s.types!==null&&s.types!==d.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),s.types=d.types),G.T=s,s===null&&d._updatedFibers&&(e=d._updatedFibers.size,d._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Uh(e,t,a,o){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var l=Lv(e).queue;qT(e),xv(e,l,t,Hs,a===null?k:function(){return Cv(e),a(o)})}function Lv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Hs,baseState:Hs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:Hs},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cv(e){G.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Lv(e);t.next===null&&(t=e.alternate.memoizedState),Yi(e,t.next.queue,{},Ro(e))}function Ph(){var e=wh(!1);return e=xv.bind(null,Fe,e.queue,!0,!1),to().memoizedState=e,[!1,e]}function kv(){var e=pu(ul)[0],t=At().memoizedState;return[typeof e==="boolean"?e:Xi(e),t]}function wv(){var e=ji(ul)[0],t=At().memoizedState;return[typeof e==="boolean"?e:Xi(e),t]}function hs(){return Qt(oc)}function zh(){var e=to(),t=Pt.identifierPrefix;if(dt){var a=An,o=Mn;a=(o&~(1<<32-ao(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ep++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=SM++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function _h(){return to().memoizedState=FT.bind(null,Fe)}function FT(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Ro(a),l=lr(o),n=nr(a,l,o);n!==null&&(El(o,"refresh()",e),oa(n,a,o),Gi(n,a,o)),e=rh(),t!==null&&t!==void 0&&n!==null&&console.error("The seed argument is not enabled outside experimental channels."),l.payload={cache:e};return}a=a.return}}function GT(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Ro(e);var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Ef(e)?Iv(t,l):(l=Ym(e,t,l,o),l!==null&&(El(o,"dispatch()",e),oa(l,e,o),Rv(l,t,o)))}function Tv(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Ro(e),Yi(e,t,a,o)&&El(o,"setState()",e)}function Yi(e,t,a,o){var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ef(e))Iv(t,l);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null)){var s=G.H;G.H=ml;try{var d=t.lastRenderedState,m=n(d,a);if(l.hasEagerState=!0,l.eagerState=m,no(m,d))return of(e,t,l,0),Pt===null&&af(),!1}catch(g){}finally{G.H=s}}if(a=Ym(e,t,l,o),a!==null)return oa(a,e,o),Rv(a,t,o),!0}return!1}function Hh(e,t,a,o){if(G.T===null&&ws===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),o={lane:2,revertLane:yg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ef(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Ym(e,a,o,2),t!==null&&(El(2,"setOptimistic()",e),oa(t,e,2))}function Ef(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function Iv(e,t){Zu=Dp=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Rv(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,ts(e,a)}}function Fh(e){if(e!==null&&typeof e!=="function"){var t=String(e);wC.has(t)||(wC.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Gh(e,t,a,o){var l=e.memoizedState,n=a(o,l);if(e.mode&Ja){_t(!0);try{n=a(o,l)}finally{_t(!1)}}n===void 0&&(t=Z(t)||"Component",xC.has(t)||(xC.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),l=n===null||n===void 0?l:rt({},l,n),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}function Mv(e,t,a,o,l,n,s){var d=e.stateNode;if(typeof d.shouldComponentUpdate==="function"){if(a=d.shouldComponentUpdate(o,n,s),e.mode&Ja){_t(!0);try{a=d.shouldComponentUpdate(o,n,s)}finally{_t(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Z(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Ni(a,o)||!Ni(l,n):!0}function Av(e,t,a,o){var l=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==l&&(e=X(e)||"Component",gC.has(e)||(gC.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Uy.enqueueReplaceState(t,t.state,null))}function gs(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=rt({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function Dv(e){my(e),console.warn(`%s
116
116
 
117
117
  %s
118
- `,yu?"An error occurred in the <"+yu+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function nL(e){var t=yu?"The above error occurred in the <"+yu+"> component.":"The above error occurred in one of your React components.",n="React will try to recreate this component tree from scratch using the error boundary you provided, "+((ox||"Anonymous")+".");if(typeof e==="object"&&e!==null&&typeof e.environmentName==="string"){var i=e.environmentName;e=[`%o
118
+ `,Wu?"An error occurred in the <"+Wu+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Ev(e){var t=Wu?"The above error occurred in the <"+Wu+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Py||"Anonymous")+".");if(typeof e==="object"&&e!==null&&typeof e.environmentName==="string"){var o=e.environmentName;e=[`%o
120
120
 
121
121
  %s
122
122
 
123
123
  %s
124
- `,e,t,n].slice(0),typeof e[0]==="string"?e.splice(0,1,Ew+" "+e[0],Ow,Vh+i+Vh,Pw):e.splice(0,0,Ew,Ow,Vh+i+Vh,Pw),e.unshift(console),i=CE.apply(console.error,e),i()}else console.error(`%o
124
+ `,e,t,a].slice(0),typeof e[0]==="string"?e.splice(0,1,s1+" "+e[0],u1,om+o+om,i1):e.splice(0,0,s1,u1,om+o+om,i1),e.unshift(console),o=HM.apply(console.error,e),o()}else console.error(`%o
125
125
 
126
126
  %s
127
127
 
128
128
  %s
129
- `,e,t,n)}function sL(e){Ey(e)}function xp(e,t){try{yu=t.source?X(t.source):null,ox=null;var n=t.value;if(V.actQueue!==null)V.thrownErrors.push(n);else{var i=e.onUncaughtError;i(n,{componentStack:t.stack})}}catch(c){setTimeout(function(){throw c})}}function rL(e,t,n){try{yu=n.source?X(n.source):null,ox=X(t);var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function ub(e,t,n){return n=ur(n),n.tag=Zy,n.payload={element:null},n.callback=function(){me(t.source,xp,e,t)},n}function cb(e){return e=ur(e),e.tag=Zy,e}function db(e,t,n,i){var c=n.type.getDerivedStateFromError;if(typeof c==="function"){var f=i.value;e.payload=function(){return c(f)},e.callback=function(){J0(n),me(i.source,rL,t,n,i)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch==="function"&&(e.callback=function(){J0(n),me(i.source,rL,t,n,i),typeof c!=="function"&&(Br===null?Br=new Set([this]):Br.add(this)),K_(this,i),typeof c==="function"||(n.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",X(n)||"Unknown")})}function kD(e,t,n,i,c){if(n.flags|=32768,$n&&Mc(e,c),i!==null&&typeof i==="object"&&typeof i.then==="function"){if(t=n.alternate,t!==null&&_l(t,n,c,!0),at&&(Qn=!0),n=Po.current,n!==null){switch(n.tag){case 31:case 13:return Ko===null?Ip():n.alternate===null&&Yt===Es&&(Yt=Sh),n.flags&=-257,n.flags|=65536,n.lanes=c,i===hh?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),_b(e,i,c)),!1;case 22:return n.flags|=65536,i===hh?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)),_b(e,i,c)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return _b(e,i,c),Ip(),!1}if(at)return Qn=!0,t=Po.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,i!==Hy&&uc(wo(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:i}),n))):(i!==Hy&&uc(wo(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:i}),n)),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,i=wo(i,n),c=ub(e.stateNode,i,c),sp(e,c),Yt!==_r&&(Yt=Xi)),!1;var f=wo(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:i}),n);if(xd===null?xd=[f]:xd.push(f),Yt!==_r&&(Yt=Xi),t===null)return!0;i=wo(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=ub(n.stateNode,i,e),sp(n,e),!1;case 1:if(t=n.type,f=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||f!==null&&typeof f.componentDidCatch==="function"&&(Br===null||!Br.has(f))))return n.flags|=65536,c&=-c,n.lanes|=c,c=cb(c),db(c,e,n,i),sp(n,c),!1}n=n.return}while(n!==null);return!1}function _a(e,t,n,i){t.child=e===null?DT(t,null,n,i):ji(t,e.child,n,i)}function iL(e,t,n,i,c){n=n.render;var f=t.ref;if("ref"in i){var m={};for(var x in i)x!=="ref"&&(m[x]=i[x])}else m=i;if(ki(t),i=Bg(e,t,n,m,f,c),x=zg(),e!==null&&!ca)return Hg(e,t,c),bs(e,t,c);return at&&x&&xg(t),t.flags|=1,_a(e,t,i,c),t.child}function lL(e,t,n,i,c){if(e===null){var f=n.type;if(typeof f==="function"&&!mg(f)&&f.defaultProps===void 0&&n.compare===null)return n=Li(f),t.tag=15,t.type=n,pb(t,f),uL(e,t,n,i,c);return e=gg(n.type,null,i,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e}if(f=e.child,!xb(e,c)){var m=f.memoizedProps;if(n=n.compare,n=n!==null?n:ic,n(m,i)&&e.ref===t.ref)return bs(e,t,c)}return t.flags|=1,e=ps(f,i),e.ref=t.ref,e.return=t,t.child=e}function uL(e,t,n,i,c){if(e!==null){var f=e.memoizedProps;if(ic(f,i)&&e.ref===t.ref&&t.type===e.type)if(ca=!1,t.pendingProps=i=f,xb(e,c))(e.flags&131072)!==0&&(ca=!0);else return t.lanes=e.lanes,bs(e,t,c)}return fb(e,t,n,i,c)}function cL(e,t,n,i){var c=i.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:$c,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|n:n,e!==null){i=t.child=e.child;for(c=0;i!==null;)c=c|i.lanes|i.childLanes,i=i.sibling;i=c&~f}else i=0,t.child=null;return dL(e,t,f,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Jf(t,f!==null?f.cachePool:null),f!==null?kS(t,f):_g(t),MS(t);else return i=t.lanes=536870912,dL(e,t,f!==null?f.baseLanes|n:n,n,i)}else f!==null?(Jf(t,f.cachePool),kS(t,f),fr(t),t.memoizedState=null):(e!==null&&Jf(t,null),_g(t),fr(t));return _a(e,t,c,n),t.child}function vc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:$c,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dL(e,t,n,i,c){var f=Ig();return f=f===null?null:{parent:ia._currentValue,pool:f},t.memoizedState={baseLanes:n,cachePool:f},e!==null&&Jf(t,null),_g(t),MS(t),e!==null&&_l(e,t,i,!0),t.childLanes=c,null}function vp(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
129
+ `,e,t,a)}function Ov(e){my(e)}function Of(e,t){try{Wu=t.source?X(t.source):null,Py=null;var a=t.value;if(G.actQueue!==null)G.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(l){setTimeout(function(){throw l})}}function qv(e,t,a){try{Wu=a.source?X(a.source):null,Py=X(t);var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Vh(e,t,a){return a=lr(a),a.tag=Dy,a.payload={element:null},a.callback=function(){re(t.source,Of,e,t)},a}function $h(e){return e=lr(e),e.tag=Dy,e}function Xh(e,t,a,o){var l=a.type.getDerivedStateFromError;if(typeof l==="function"){var n=o.value;e.payload=function(){return l(n)},e.callback=function(){I0(a),re(o.source,qv,t,a,o)}}var s=a.stateNode;s!==null&&typeof s.componentDidCatch==="function"&&(e.callback=function(){I0(a),re(o.source,qv,t,a,o),typeof l!=="function"&&(Dr===null?Dr=new Set([this]):Dr.add(this)),gM(this,o),typeof l==="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",X(a)||"Unknown")})}function VT(e,t,a,o,l){if(a.flags|=32768,Ql&&ad(e,l),o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&cu(t,a,l,!0),dt&&(Kl=!0),a=qo.current,a!==null){switch(a.tag){case 31:case 13:return Wo===null?Ff():a.alternate===null&&ea===zn&&(ea=Bp),a.flags&=-257,a.flags|=65536,a.lanes=l,o===Rp?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),pg(e,o,l)),!1;case 22:return a.flags|=65536,o===Rp?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),pg(e,o,l)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return pg(e,o,l),Ff(),!1}if(dt)return Kl=!0,t=qo.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,o!==Sy&&Pi(ko(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:o}),a))):(o!==Sy&&Pi(ko(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:o}),a)),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,o=ko(o,a),l=Vh(e.stateNode,o,l),vf(e,l),ea!==Ir&&(ea=Ds)),!1;var n=ko(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:o}),a);if(Yd===null?Yd=[n]:Yd.push(n),ea!==Ir&&(ea=Ds),t===null)return!0;o=ko(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=Vh(a.stateNode,o,e),vf(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||n!==null&&typeof n.componentDidCatch==="function"&&(Dr===null||!Dr.has(n))))return a.flags|=65536,l&=-l,a.lanes|=l,l=$h(l),Xh(l,e,a,o),vf(a,l),!1}a=a.return}while(a!==null);return!1}function Va(e,t,a,o){t.child=e===null?nC(t,null,a,o):Ms(t,e.child,a,o)}function Bv(e,t,a,o,l){a=a.render;var n=t.ref;if("ref"in o){var s={};for(var d in o)d!=="ref"&&(s[d]=o[d])}else s=o;if(cs(t),o=yh(e,t,a,s,n,l),d=vh(),e!==null&&!La)return Sh(e,t,l),Cn(e,t,l);return dt&&d&&eh(t),t.flags|=1,Va(e,t,o,l),t.child}function Nv(e,t,a,o,l){if(e===null){var n=a.type;if(typeof n==="function"&&!Zm(n)&&n.defaultProps===void 0&&a.compare===null)return a=ss(n),t.tag=15,t.type=a,Yh(t,n),Uv(e,t,a,o,l);return e=Wm(a.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e}if(n=e.child,!eg(e,l)){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:Ni,a(s,o)&&e.ref===t.ref)return Cn(e,t,l)}return t.flags|=1,e=vn(n,o),e.ref=t.ref,e.return=t,t.child=e}function Uv(e,t,a,o,l){if(e!==null){var n=e.memoizedProps;if(Ni(n,o)&&e.ref===t.ref&&t.type===e.type)if(La=!1,t.pendingProps=o=n,eg(e,l))(e.flags&131072)!==0&&(La=!0);else return t.lanes=e.lanes,Cn(e,t,l)}return jh(e,t,a,o,l)}function Pv(e,t,a,o){var l=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Cd,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){o=t.child=e.child;for(l=0;o!==null;)l=l|o.lanes|o.childLanes,o=o.sibling;o=l&~n}else o=0,t.child=null;return zv(e,t,n,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pf(t,n!==null?n.cachePool:null),n!==null?ev(t,n):ph(t),tv(t);else return o=t.lanes=536870912,zv(e,t,n!==null?n.baseLanes|a:a,a,o)}else n!==null?(pf(t,n.cachePool),ev(t,n),sr(t),t.memoizedState=null):(e!==null&&pf(t,null),ph(t),sr(t));return Va(e,t,l,a),t.child}function Qi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Cd,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zv(e,t,a,o,l){var n=ih();return n=n===null?null:{parent:va._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&pf(t,null),ph(t),tv(t),e!==null&&cu(e,t,o,!0),t.childLanes=l,null}function qf(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
130
  - <Activity %s>
131
- + <Activity %s>`,n===!0?"hidden":n===!1?"hidden={false}":"hidden={...}",n?'mode="hidden"':'mode="visible"'),t=Lp({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fL(e,t,n){return ji(t,e.child,null,n),e=vp(t,t.pendingProps),e.flags|=2,Io(t),t.memoizedState=null,e}function MD(e,t,n){var i=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(at){if(i.mode==="hidden")return e=vp(t,i),t.lanes=536870912,vc(null,e);if(Og(t),(e=Bt)?(n=NC(e,Zo),n=n!==null&&n.data===Ki?n:null,n!==null&&(i={dehydrated:n,treeContext:nS(),retryLane:536870912,hydrationErrors:null},t.memoizedState=i,i=aS(n),i.return=t,t.child=i,Pa=t,Bt=null)):n=null,n===null)throw Yf(t,e),rr(t);return t.lanes=536870912,null}return vp(t,i)}var f=e.memoizedState;if(f!==null){var m=f.dehydrated;if(Og(t),c)if(t.flags&256)t.flags&=-257,t=fL(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(rS(),(n&536870912)!==0&&Mp(t),ca||_l(e,t,n,!1),c=(n&e.childLanes)!==0,ca||c){if(i=At,i!==null&&(m=bi(i,n),m!==0&&m!==f.retryLane))throw f.retryLane=m,qa(e,m),Zt(i,e,m),nx;Ip(),t=fL(e,t,n)}else e=f.treeContext,Bt=Ro(m.nextSibling),Pa=t,at=!0,wr=null,Qn=!1,Oo=null,Zo=!1,e!==null&&sS(t,e),t=vp(t,i),t.flags|=4096;return t}return f=e.child,i={mode:i.mode,children:i.children},(n&536870912)!==0&&(n&e.lanes)!==0&&Mp(t),e=ps(f,i),e.ref=t.ref,t.child=e,e.return=t,e}function Sp(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("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(e===null||e.ref!==n)t.flags|=4194816}}function fb(e,t,n,i,c){if(n.prototype&&typeof n.prototype.render==="function"){var f=Y(n)||"Unknown";KT[f]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",f,f),KT[f]=!0)}if(t.mode&ja&&bn.recordLegacyContextWarning(t,null),e===null&&(pb(t,t.type),n.contextTypes&&(f=Y(n)||"Unknown",ew[f]||(ew[f]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",f)))),ki(t),n=Bg(e,t,n,i,void 0,c),i=zg(),e!==null&&!ca)return Hg(e,t,c),bs(e,t,c);return at&&i&&xg(t),t.flags|=1,_a(e,t,n,c),t.child}function pL(e,t,n,i,c,f){if(ki(t),Ds=-1,fd=e!==null&&e.type!==t.type,t.updateQueue=null,n=Ng(t,i,n,c),IS(e,t),i=zg(),e!==null&&!ca)return Hg(e,t,f),bs(e,t,f);return at&&i&&xg(t),t.flags|=1,_a(e,t,n,f),t.child}function hL(e,t,n,i,c){switch(d(t)){case!1:var f=t.stateNode,m=new t.type(t.memoizedProps,f.context).state;f.updater.enqueueSetState(f,m,null);break;case!0:t.flags|=128,t.flags|=65536,f=Error("Simulated error coming from DevTools");var x=c&-c;if(t.lanes|=x,m=At,m===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");x=cb(x),db(x,m,t,wo(f,t)),sp(t,x)}if(ki(t),t.stateNode===null){if(m=Tr,f=n.contextType,"contextType"in n&&f!==null&&(f===void 0||f.$$typeof!==Gn)&&!ZT.has(n)&&(ZT.add(n),x=f===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof f!=="object"?" However, it is set to a "+typeof f+".":f.$$typeof===sy?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(f).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Y(n)||"Component",x)),typeof f==="object"&&f!==null&&(m=Ft(f)),f=new n(i,m),t.mode&ja){Dt(!0);try{f=new n(i,m)}finally{Dt(!1)}}if(m=t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=ax,t.stateNode=f,f._reactInternals=t,f._reactInternalInstance=FT,typeof n.getDerivedStateFromProps==="function"&&m===null&&(m=Y(n)||"Component",VT.has(m)||(VT.add(m),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",m,f.state===null?"null":"undefined",m))),typeof n.getDerivedStateFromProps==="function"||typeof f.getSnapshotBeforeUpdate==="function"){var S=x=m=null;if(typeof f.componentWillMount==="function"&&f.componentWillMount.__suppressDeprecationWarning!==!0?m="componentWillMount":typeof f.UNSAFE_componentWillMount==="function"&&(m="UNSAFE_componentWillMount"),typeof f.componentWillReceiveProps==="function"&&f.componentWillReceiveProps.__suppressDeprecationWarning!==!0?x="componentWillReceiveProps":typeof f.UNSAFE_componentWillReceiveProps==="function"&&(x="UNSAFE_componentWillReceiveProps"),typeof f.componentWillUpdate==="function"&&f.componentWillUpdate.__suppressDeprecationWarning!==!0?S="componentWillUpdate":typeof f.UNSAFE_componentWillUpdate==="function"&&(S="UNSAFE_componentWillUpdate"),m!==null||x!==null||S!==null){f=Y(n)||"Component";var L=typeof n.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";GT.has(f)||(GT.add(f),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
131
+ + <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=Nf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _v(e,t,a){return Ms(t,e.child,null,a),e=qf(t,t.pendingProps),e.flags|=2,Io(t),t.memoizedState=null,e}function $T(e,t,a){var o=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(dt){if(o.mode==="hidden")return e=qf(t,o),t.lanes=536870912,Qi(null,e);if(hh(t),(e=Vt)?(a=cx(e,Qo),a=a!==null&&a.data===Us?a:null,a!==null&&(o={dehydrated:a,treeContext:E0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=A0(a),o.return=t,t.child=o,ja=t,Vt=null)):a=null,a===null)throw rf(t,e),tr(t);return t.lanes=536870912,null}return qf(t,o)}var n=e.memoizedState;if(n!==null){var s=n.dehydrated;if(hh(t),l)if(t.flags&256)t.flags&=-257,t=_v(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(q0(),(a&536870912)!==0&&Hf(t),La||cu(e,t,a,!1),l=(a&e.childLanes)!==0,La||l){if(o=Pt,o!==null&&(s=as(o,a),s!==0&&s!==n.retryLane))throw n.retryLane=s,Wa(e,s),oa(o,e,s),zy;Ff(),t=_v(e,t,a)}else e=n.treeContext,Vt=Mo(s.nextSibling),ja=t,dt=!0,Sr=null,Kl=!1,Oo=null,Qo=!1,e!==null&&O0(t,e),t=qf(t,o),t.flags|=4096;return t}return n=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&Hf(t),e=vn(n,o),e.ref=t.ref,t.child=e,e.return=t,e}function Bf(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!=="function"&&typeof a!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(e===null||e.ref!==a)t.flags|=4194816}}function jh(e,t,a,o,l){if(a.prototype&&typeof a.prototype.render==="function"){var n=Z(a)||"Unknown";TC[n]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",n,n),TC[n]=!0)}if(t.mode&Ja&&pl.recordLegacyContextWarning(t,null),e===null&&(Yh(t,t.type),a.contextTypes&&(n=Z(a)||"Unknown",RC[n]||(RC[n]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",n)))),cs(t),a=yh(e,t,a,o,void 0,l),o=vh(),e!==null&&!La)return Sh(e,t,l),Cn(e,t,l);return dt&&o&&eh(t),t.flags|=1,Va(e,t,a,l),t.child}function Hv(e,t,a,o,l,n){if(cs(t),Un=-1,Hd=e!==null&&e.type!==t.type,t.updateQueue=null,a=bh(t,o,a,l),av(e,t),o=vh(),e!==null&&!La)return Sh(e,t,n),Cn(e,t,n);return dt&&o&&eh(t),t.flags|=1,Va(e,t,a,n),t.child}function Fv(e,t,a,o,l){switch(p(t)){case!1:var n=t.stateNode,s=new t.type(t.memoizedProps,n.context).state;n.updater.enqueueSetState(n,s,null);break;case!0:t.flags|=128,t.flags|=65536,n=Error("Simulated error coming from DevTools");var d=l&-l;if(t.lanes|=d,s=Pt,s===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d=$h(d),Xh(d,s,t,ko(n,t)),vf(t,d)}if(cs(t),t.stateNode===null){if(s=vr,n=a.contextType,"contextType"in a&&n!==null&&(n===void 0||n.$$typeof!==Xl)&&!kC.has(a)&&(kC.add(a),d=n===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof n!=="object"?" However, it is set to a "+typeof n+".":n.$$typeof===_g?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(n).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Z(a)||"Component",d)),typeof n==="object"&&n!==null&&(s=Qt(n)),n=new a(o,s),t.mode&Ja){_t(!0);try{n=new a(o,s)}finally{_t(!1)}}if(s=t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Uy,t.stateNode=n,n._reactInternals=t,n._reactInternalInstance=hC,typeof a.getDerivedStateFromProps==="function"&&s===null&&(s=Z(a)||"Component",yC.has(s)||(yC.add(s),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",s,n.state===null?"null":"undefined",s))),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"){var m=d=s=null;if(typeof n.componentWillMount==="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0?s="componentWillMount":typeof n.UNSAFE_componentWillMount==="function"&&(s="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps==="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0?d="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps==="function"&&(d="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate==="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0?m="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate==="function"&&(m="UNSAFE_componentWillUpdate"),s!==null||d!==null||m!==null){n=Z(a)||"Component";var g=typeof a.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";vC.has(n)||(vC.add(n),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
132
 
133
133
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
134
 
135
135
  The above lifecycles should be removed. Learn more about this warning here:
136
- https://react.dev/link/unsafe-component-lifecycles`,f,L,m!==null?`
137
- `+m:"",x!==null?`
138
- `+x:"",S!==null?`
139
- `+S:""))}}f=t.stateNode,m=Y(n)||"Component",f.render||(n.prototype&&typeof n.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",m):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",m)),!f.getInitialState||f.getInitialState.isReactClassApproved||f.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",m),f.getDefaultProps&&!f.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",m),f.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",m),n.childContextTypes&&!WT.has(n)&&(WT.add(n),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",m)),n.contextTypes&&!$T.has(n)&&($T.add(n),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",m)),typeof f.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",m),n.prototype&&n.prototype.isPureReactComponent&&typeof f.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Y(n)||"A pure component"),typeof f.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",m),typeof f.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",m),typeof f.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",m),typeof f.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",m),x=f.props!==i,f.props!==void 0&&x&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",m),f.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",m,m),typeof f.getSnapshotBeforeUpdate!=="function"||typeof f.componentDidUpdate==="function"||jT.has(n)||(jT.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Y(n))),typeof f.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof f.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof n.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",m),(x=f.state)&&(typeof x!=="object"||ma(x))&&console.error("%s.state: must be set to an object or null",m),typeof f.getChildContext==="function"&&typeof n.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",m),f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},Rg(t),m=n.contextType,f.context=typeof m==="object"&&m!==null?Ft(m):Tr,f.state===i&&(m=Y(n)||"Component",XT.has(m)||(XT.add(m),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",m))),t.mode&ja&&bn.recordLegacyContextWarning(t,f),bn.recordUnsafeLifecycleWarnings(t,f),f.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m==="function"&&(lb(t,n,m,i),f.state=t.memoizedState),typeof n.getDerivedStateFromProps==="function"||typeof f.getSnapshotBeforeUpdate==="function"||typeof f.UNSAFE_componentWillMount!=="function"&&typeof f.componentWillMount!=="function"||(m=f.state,typeof f.componentWillMount==="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount==="function"&&f.UNSAFE_componentWillMount(),m!==f.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",X(t)||"Component"),ax.enqueueReplaceState(f,f.state,null)),gc(t,i,f,c),mc(),f.state=t.memoizedState),typeof f.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&gn)!==Oe&&(t.flags|=134217728),f=!0}else if(e===null){f=t.stateNode;var O=t.memoizedProps;x=Di(n,O),f.props=x;var P=f.context;S=n.contextType,m=Tr,typeof S==="object"&&S!==null&&(m=Ft(S)),L=n.getDerivedStateFromProps,S=typeof L==="function"||typeof f.getSnapshotBeforeUpdate==="function",O=t.pendingProps!==O,S||typeof f.UNSAFE_componentWillReceiveProps!=="function"&&typeof f.componentWillReceiveProps!=="function"||(O||P!==m)&&aL(t,f,i,m),Dr=!1;var D=t.memoizedState;f.state=D,gc(t,i,f,c),mc(),P=t.memoizedState,O||D!==P||Dr?(typeof L==="function"&&(lb(t,n,L,i),P=t.memoizedState),(x=Dr||tL(t,n,x,i,D,P,m))?(S||typeof f.UNSAFE_componentWillMount!=="function"&&typeof f.componentWillMount!=="function"||(typeof f.componentWillMount==="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount==="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&gn)!==Oe&&(t.flags|=134217728)):(typeof f.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&gn)!==Oe&&(t.flags|=134217728),t.memoizedProps=i,t.memoizedState=P),f.props=i,f.state=P,f.context=m,f=x):(typeof f.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&gn)!==Oe&&(t.flags|=134217728),f=!1)}else{f=t.stateNode,Dg(e,t),m=t.memoizedProps,S=Di(n,m),f.props=S,L=t.pendingProps,D=f.context,P=n.contextType,x=Tr,typeof P==="object"&&P!==null&&(x=Ft(P)),O=n.getDerivedStateFromProps,(P=typeof O==="function"||typeof f.getSnapshotBeforeUpdate==="function")||typeof f.UNSAFE_componentWillReceiveProps!=="function"&&typeof f.componentWillReceiveProps!=="function"||(m!==L||D!==x)&&aL(t,f,i,x),Dr=!1,D=t.memoizedState,f.state=D,gc(t,i,f,c),mc();var U=t.memoizedState;m!==L||D!==U||Dr||e!==null&&e.dependencies!==null&&Wf(e.dependencies)?(typeof O==="function"&&(lb(t,n,O,i),U=t.memoizedState),(S=Dr||tL(t,n,S,i,D,U,x)||e!==null&&e.dependencies!==null&&Wf(e.dependencies))?(P||typeof f.UNSAFE_componentWillUpdate!=="function"&&typeof f.componentWillUpdate!=="function"||(typeof f.componentWillUpdate==="function"&&f.componentWillUpdate(i,U,x),typeof f.UNSAFE_componentWillUpdate==="function"&&f.UNSAFE_componentWillUpdate(i,U,x)),typeof f.componentDidUpdate==="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!=="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!=="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=U),f.props=i,f.state=U,f.context=x,f=S):(typeof f.componentDidUpdate!=="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!=="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),f=!1)}if(x=f,Sp(e,t),m=(t.flags&128)!==0,x||m){if(x=t.stateNode,cs(t),m&&typeof n.getDerivedStateFromError!=="function")n=null,Ka=-1;else if(n=bT(x),t.mode&ja){Dt(!0);try{bT(x)}finally{Dt(!1)}}t.flags|=1,e!==null&&m?(t.child=ji(t,e.child,null,c),t.child=ji(t,null,n,c)):_a(e,t,n,c),t.memoizedState=x.state,e=t.child}else e=bs(e,t,c);return c=t.stateNode,f&&c.props!==i&&(xu||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",X(t)||"a component"),xu=!0),e}function mL(e,t,n,i){return wi(),t.flags|=256,_a(e,t,n,i),t.child}function pb(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
- %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=Y(t)||"Unknown",tw[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),tw[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=Y(t)||"Unknown",JT[t]||(console.error("%s: Function components do not support contextType.",t),JT[t]=!0))}function hb(e){return{baseLanes:e,cachePool:pS()}}function mb(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=co),e}function gL(e,t,n){var i,c=t.pendingProps;u(t)&&(t.flags|=128);var f=!1,m=(t.flags&128)!==0;if((i=m)||(i=e!==null&&e.memoizedState===null?!1:(oa.current&cd)!==0),i&&(f=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(at){if(f?dr(t):fr(t),(e=Bt)?(n=NC(e,Zo),n=n!==null&&n.data!==Ki?n:null,n!==null&&(i={dehydrated:n,treeContext:nS(),retryLane:536870912,hydrationErrors:null},t.memoizedState=i,i=aS(n),i.return=t,t.child=i,Pa=t,Bt=null)):n=null,n===null)throw Yf(t,e),rr(t);return $b(n)?t.lanes=32:t.lanes=536870912,null}var x=c.children;if(c=c.fallback,f){fr(t);var S=t.mode;return x=Lp({mode:"hidden",children:x},S),c=Ci(c,S,n,null),x.return=t,c.return=t,x.sibling=c,t.child=x,c=t.child,c.memoizedState=hb(n),c.childLanes=mb(e,i,n),t.memoizedState=sx,vc(null,c)}return dr(t),gb(t,x)}var L=e.memoizedState;if(L!==null){var O=L.dehydrated;if(O!==null){if(m)t.flags&256?(dr(t),t.flags&=-257,t=bb(e,t,n)):t.memoizedState!==null?(fr(t),t.child=e.child,t.flags|=128,t=null):(fr(t),x=c.fallback,S=t.mode,c=Lp({mode:"visible",children:c.children},S),x=Ci(x,S,n,null),x.flags|=2,c.return=t,x.return=t,c.sibling=x,t.child=c,ji(t,e.child,null,n),c=t.child,c.memoizedState=hb(n),c.childLanes=mb(e,i,n),t.memoizedState=sx,t=vc(null,c));else if(dr(t),rS(),(n&536870912)!==0&&Mp(t),$b(O)){if(i=O.nextSibling&&O.nextSibling.dataset,i){x=i.dgst;var P=i.msg;S=i.stck;var D=i.cstck}f=P,i=x,c=S,O=D,x=f,S=O,x=x?Error(x):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),x.stack=c||"",x.digest=i,i=S===void 0?null:S,c={value:x,source:null,stack:i},typeof i==="string"&&zy.set(x,c),uc(c),t=bb(e,t,n)}else if(ca||_l(e,t,n,!1),i=(n&e.childLanes)!==0,ca||i){if(i=At,i!==null&&(c=bi(i,n),c!==0&&c!==L.retryLane))throw L.retryLane=c,qa(e,c),Zt(i,e,c),nx;Yb(O)||Ip(),t=bb(e,t,n)}else Yb(O)?(t.flags|=192,t.child=e.child,t=null):(e=L.treeContext,Bt=Ro(O.nextSibling),Pa=t,at=!0,wr=null,Qn=!1,Oo=null,Zo=!1,e!==null&&sS(t,e),t=gb(t,c.children),t.flags|=4096);return t}}if(f)return fr(t),x=c.fallback,S=t.mode,D=e.child,O=D.sibling,c=ps(D,{mode:"hidden",children:c.children}),c.subtreeFlags=D.subtreeFlags&65011712,O!==null?x=ps(O,x):(x=Ci(x,S,n,null),x.flags|=2),x.return=t,c.return=t,c.sibling=x,t.child=c,vc(null,c),c=t.child,x=e.child.memoizedState,x===null?x=hb(n):(S=x.cachePool,S!==null?(D=ia._currentValue,S=S.parent!==D?{parent:D,pool:D}:S):S=pS(),x={baseLanes:x.baseLanes|n,cachePool:S}),c.memoizedState=x,c.childLanes=mb(e,i,n),t.memoizedState=sx,vc(e.child,c);return L!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&Mp(t),dr(t),n=e.child,e=n.sibling,n=ps(n,{mode:"visible",children:c.children}),n.return=t,n.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n}function gb(e,t){return t=Lp({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Lp(e,t){return e=v(22,e,null,t),e.lanes=0,e}function bb(e,t,n){return ji(t,e.child,null,n),e=gb(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bL(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Cg(e.return,t,n)}function yb(e,t,n,i,c,f){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:c,treeForkCount:f}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=i,m.tail=n,m.tailMode=c,m.treeForkCount=f)}function yL(e,t,n){var i=t.pendingProps,c=i.revealOrder,f=i.tail,m=i.children,x=oa.current;if((i=(x&cd)!==0)?(x=x&mu|cd,t.flags|=128):x&=mu,be(oa,x,t),x=c==null?"null":c,c!=="forwards"&&c!=="unstable_legacy-backwards"&&c!=="together"&&c!=="independent"&&!aw[x])if(aw[x]=!0,c==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(c==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof c==="string")switch(c.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',c,c.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',c,c.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',c)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',c);if(x=f==null?"null":f,!vh[x])if(f==null){if(c==="forwards"||c==="backwards"||c==="unstable_legacy-backwards")vh[x]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else f!=="visible"&&f!=="collapsed"&&f!=="hidden"?(vh[x]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',f)):c!=="forwards"&&c!=="backwards"&&c!=="unstable_legacy-backwards"&&(vh[x]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',f));e:if((c==="forwards"||c==="backwards"||c==="unstable_legacy-backwards")&&m!==void 0&&m!==null&&m!==!1)if(ma(m)){for(x=0;x<m.length;x++)if(!CS(m[x],x))break e}else if(x=G(m),typeof x==="function"){if(x=x.call(m))for(var S=x.next(),L=0;!S.done;S=x.next()){if(!CS(S.value,L))break e;L++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',c);if(_a(e,t,m,n),at?(sr(),m=Wc):m=0,!i&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bL(e,n,t);else if(e.tag===19)bL(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(c){case"forwards":n=t.child;for(c=null;n!==null;)e=n.alternate,e!==null&&rp(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),yb(t,!1,c,n,f,m);break;case"backwards":case"unstable_legacy-backwards":n=null,c=t.child;for(t.child=null;c!==null;){if(e=c.alternate,e!==null&&rp(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}yb(t,!0,n,null,f,m);break;case"together":yb(t,!1,null,null,void 0,m);break;default:t.memoizedState=null}return t.child}function bs(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ka=-1,Or|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(_l(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){e=t.child,n=ps(e,e.pendingProps),t.child=n;for(n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ps(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xb(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&Wf(e)?!0:!1}function ID(e,t,n){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),ir(t,ia,e.memoizedState.cache),wi();break;case 27:case 5:Ue(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:ir(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var i=t.stateNode;i.effectDuration=-0,i.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Og(t),null;break;case 13:if(i=t.memoizedState,i!==null){if(i.dehydrated!==null)return dr(t),t.flags|=128,null;if((n&t.child.childLanes)!==0)return gL(e,t,n);return dr(t),e=bs(e,t,n),e!==null?e.sibling:null}dr(t);break;case 19:var c=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(_l(e,t,n,!1),i=(n&t.childLanes)!==0),c){if(i)return yL(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),be(oa,oa.current,t),i)break;else return null;case 22:return t.lanes=0,cL(e,t,n,t.pendingProps);case 24:ir(t,ia,e.memoizedState.cache)}return bs(e,t,n)}function vb(e,t,n){if(t._debugNeedsRemount&&e!==null){n=gg(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var i=t.return;if(i===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===i.child)i.child=n;else{var c=i.child;if(c===null)throw Error("Expected parent to have a child.");for(;c.sibling!==t;)if(c=c.sibling,c===null)throw Error("Expected to find the previous sibling.");c.sibling=n}return t=i.deletions,t===null?(i.deletions=[e],i.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)ca=!0;else{if(!xb(e,n)&&(t.flags&128)===0)return ca=!1,ID(e,t,n);ca=(e.flags&131072)!==0?!0:!1}else{if(ca=!1,i=at)sr(),i=(t.flags&1048576)!==0;i&&(i=t.index,sr(),oS(t,Wc,i))}switch(t.lanes=0,t.tag){case 16:e:if(i=t.pendingProps,e=lr(t.elementType),t.type=e,typeof e==="function")mg(e)?(i=Di(e,i),t.tag=1,t.type=e=Li(e),t=hL(null,t,e,i,n)):(t.tag=0,pb(t,e),t.type=e=Li(e),t=fb(null,t,e,i,n));else{if(e!==void 0&&e!==null){if(c=e.$$typeof,c===Bc){t.tag=11,t.type=e=hg(e),t=iL(null,t,e,i,n);break e}else if(c===qp){t.tag=14,t=lL(null,t,e,i,n);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===Do&&(t=" Did you wrap a component in React.lazy() more than once?"),n=Y(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+n+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return fb(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,c=Di(i,t.pendingProps),hL(e,t,i,c,n);case 3:e:{if(K(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");i=t.pendingProps;var f=t.memoizedState;c=f.element,Dg(e,t),gc(t,i,null,n);var m=t.memoizedState;if(i=m.cache,ir(t,ia,i),i!==f.cache&&Tg(t,[ia],n,!0),mc(),i=m.element,f.isDehydrated)if(f={element:i,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=mL(e,t,i,n);break e}else if(i!==c){c=wo(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),uc(c),t=mL(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}Bt=Ro(e.firstChild),Pa=t,at=!0,wr=null,Qn=!1,Oo=null,Zo=!0,n=DT(t,null,i,n);for(t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(wi(),i===c){t=bs(e,t,n);break e}_a(e,t,i,n)}t=t.child}return t;case 26:return Sp(e,t),e===null?(n=VC(t.type,null,t.pendingProps,null))?t.memoizedState=n:at||(n=t.type,e=t.pendingProps,i=Se(yr.current),i=_p(i).createElement(n),i[Oa]=t,i[Wa]=e,Ea(i,n,e),Ae(i),t.stateNode=i):t.memoizedState=VC(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ue(t),e===null&&at&&(i=Se(yr.current),c=ye(),i=t.stateNode=FC(t.type,t.pendingProps,i,c,!1),Qn||(c=AC(i,t.type,t.pendingProps,c),c!==null&&(Ti(t,0).serverProps=c)),Pa=t,Zo=!0,c=Bt,gr(t.type)?(Ix=c,Bt=Ro(i.firstChild)):Bt=c),_a(e,t,t.pendingProps.children,n),Sp(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&at&&(f=ye(),i=rg(t.type,f.ancestorInfo),c=Bt,(m=!c)||(m=g2(c,t.type,t.pendingProps,Zo),m!==null?(t.stateNode=m,Qn||(f=AC(m,t.type,t.pendingProps,f),f!==null&&(Ti(t,0).serverProps=f)),Pa=t,Bt=Ro(m.firstChild),Zo=!1,f=!0):f=!1,m=!f),m&&(i&&Yf(t,c),rr(t))),Ue(t),c=t.type,f=t.pendingProps,m=e!==null?e.memoizedProps:null,i=f.children,Gb(c,f)?i=null:m!==null&&Gb(c,m)&&(t.flags|=32),t.memoizedState!==null&&(c=Bg(e,t,vD,null,null,n),Id._currentValue=c),Sp(e,t),_a(e,t,i,n),t.child;case 6:return e===null&&at&&(n=t.pendingProps,e=ye(),i=e.ancestorInfo.current,n=i!=null?Nf(n,i.tag,e.ancestorInfo.implicitRootScope):!0,e=Bt,(i=!e)||(i=b2(e,t.pendingProps,Zo),i!==null?(t.stateNode=i,Pa=t,Bt=null,i=!0):i=!1,i=!i),i&&(n&&Yf(t,e),rr(t))),null;case 13:return gL(e,t,n);case 4:return K(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ji(t,null,i,n):_a(e,t,i,n),t.child;case 11:return iL(e,t,t.type,t.pendingProps,n);case 7:return _a(e,t,t.pendingProps,n),t.child;case 8:return _a(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,i=t.stateNode,i.effectDuration=-0,i.passiveEffectDuration=-0,_a(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.type,c=t.pendingProps,f=c.value,"value"in c||ow||(ow=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ir(t,i,f),_a(e,t,c.children,n),t.child;case 9:return c=t.type._context,i=t.pendingProps.children,typeof i!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),ki(t),c=Ft(c),i=Xy(i,c,void 0),t.flags|=1,_a(e,t,i,n),t.child;case 14:return lL(e,t,t.type,t.pendingProps,n);case 15:return uL(e,t,t.type,t.pendingProps,n);case 19:return yL(e,t,n);case 31:return MD(e,t,n);case 22:return cL(e,t,n,t.pendingProps);case 24:return ki(t),i=Ft(ia),e===null?(c=Ig(),c===null&&(c=At,f=wg(),c.pooledCache=f,Mi(f),f!==null&&(c.pooledCacheLanes|=n),c=f),t.memoizedState={parent:i,cache:c},Rg(t),ir(t,ia,c)):((e.lanes&n)!==0&&(Dg(e,t),gc(t,null,null,n),mc()),c=e.memoizedState,f=t.memoizedState,c.parent!==i?(c={parent:i,cache:i},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),ir(t,ia,i)):(i=f.cache,ir(t,ia,i),i!==c.cache&&Tg(t,[ia],n,!0))),_a(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ys(e){e.flags|=4}function Sb(e,t,n,i,c){if(t=(e.mode&$_)!==Oe)t=!1;if(t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(QL())e.flags|=8192;else throw Vi=hh,$y}else e.flags&=-16777217}function xL(e,t){if(t.type!=="stylesheet"||(t.state.loading&tn)!==tl)e.flags&=-16777217;else if(e.flags|=16777216,!$C(t))if(QL())e.flags|=8192;else throw Vi=hh,$y}function Cp(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kl():536870912,e.lanes|=t,Wi|=t)}function Sc(e,t){if(!at)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 _t(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)if((e.mode&je)!==Oe){for(var{selfBaseDuration:c,child:f}=e;f!==null;)n|=f.lanes|f.childLanes,i|=f.subtreeFlags&65011712,i|=f.flags&65011712,c+=f.treeBaseDuration,f=f.sibling;e.treeBaseDuration=c}else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,i|=c.subtreeFlags&65011712,i|=c.flags&65011712,c.return=e,c=c.sibling;else if((e.mode&je)!==Oe){c=e.actualDuration,f=e.selfBaseDuration;for(var m=e.child;m!==null;)n|=m.lanes|m.childLanes,i|=m.subtreeFlags,i|=m.flags,c+=m.actualDuration,f+=m.treeBaseDuration,m=m.sibling;e.actualDuration=c,e.treeBaseDuration=f}else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,i|=c.subtreeFlags,i|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function AD(e,t,n){var i=t.pendingProps;switch(vg(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(t),null;case 1:return _t(t),null;case 3:if(n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),ms(ia,t),pe(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),e===null||e.child===null)Dl(t)?(Lg(),ys(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Sg());return _t(t),null;case 26:var{type:c,memoizedState:f}=t;return e===null?(ys(t),f!==null?(_t(t),xL(t,f)):(_t(t),Sb(t,c,null,i,n))):f?f!==e.memoizedState?(ys(t),_t(t),xL(t,f)):(_t(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ys(t),_t(t),Sb(t,c,e,i,n)),null;case 27:if(He(t),n=Se(yr.current),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ys(t);else{if(!i){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return _t(t),null}e=ye(),Dl(t)?iS(t,e):(e=FC(c,i,n,e,!0),t.stateNode=e,ys(t))}return _t(t),null;case 5:if(He(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ys(t);else{if(!i){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return _t(t),null}var m=ye();if(Dl(t))iS(t,m);else{switch(f=Se(yr.current),rg(c,m.ancestorInfo),m=m.context,f=_p(f),m){case Mu:f=f.createElementNS(Ql,c);break;case Uh:f=f.createElementNS(Wp,c);break;default:switch(c){case"svg":f=f.createElementNS(Ql,c);break;case"math":f=f.createElementNS(Wp,c);break;case"script":f=f.createElement("div"),f.innerHTML="<script></script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof i.is==="string"?f.createElement("select",{is:i.is}):f.createElement("select"),i.multiple?f.multiple=!0:i.size&&(f.size=i.size);break;default:f=typeof i.is==="string"?f.createElement(c,{is:i.is}):f.createElement(c),c.indexOf("-")===-1&&(c!==c.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",c),Object.prototype.toString.call(f)!=="[object HTMLUnknownElement]"||hn.call(Mw,c)||(Mw[c]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",c)))}}f[Oa]=t,f[Wa]=i;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)f.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=f;e:switch(Ea(f,c,i),c){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ys(t)}}return _t(t),Sb(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ys(t);else{if(typeof i!=="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Se(yr.current),n=ye(),Dl(t)){if(e=t.stateNode,n=t.memoizedProps,c=!Qn,i=null,f=Pa,f!==null)switch(f.tag){case 3:c&&(c=HC(e,n,i),c!==null&&(Ti(t,0).serverProps=c));break;case 27:case 5:i=f.memoizedProps,c&&(c=HC(e,n,i),c!==null&&(Ti(t,0).serverProps=c))}e[Oa]=t,e=e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||TC(e.nodeValue,n)?!0:!1,e||rr(t,!0)}else c=n.ancestorInfo.current,c!=null&&Nf(i,c.tag,n.ancestorInfo.implicitRootScope),e=_p(e).createTextNode(i),e[Oa]=t,t.stateNode=e}return _t(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Dl(t),n!==null){if(e===null){if(!i)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Oa]=t,_t(t),(t.mode&je)!==Oe&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Lg(),wi(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,_t(t),(t.mode&je)!==Oe&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=Sg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e){if(t.flags&256)return Io(t),t;return Io(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return _t(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=i,f=Dl(t),c!==null&&c.dehydrated!==null){if(e===null){if(!f)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");f[Oa]=t,_t(t),(t.mode&je)!==Oe&&c!==null&&(c=t.child,c!==null&&(t.treeBaseDuration-=c.treeBaseDuration))}else Lg(),wi(),(t.flags&128)===0&&(c=t.memoizedState=null),t.flags|=4,_t(t),(t.mode&je)!==Oe&&c!==null&&(c=t.child,c!==null&&(t.treeBaseDuration-=c.treeBaseDuration));c=!1}else c=Sg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c){if(t.flags&256)return Io(t),t;return Io(t),null}}if(Io(t),(t.flags&128)!==0)return t.lanes=n,(t.mode&je)!==Oe&&fc(t),t;return n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==c&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Cp(t,t.updateQueue),_t(t),(t.mode&je)!==Oe&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return pe(t),e===null&&zb(t.stateNode.containerInfo),_t(t),null;case 10:return ms(t.type,t),_t(t),null;case 19:if(ge(oa,t),i=t.memoizedState,i===null)return _t(t),null;if(c=(t.flags&128)!==0,f=i.rendering,f===null)if(c)Sc(i,!1);else{if(Yt!==Es||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=rp(e),f!==null){t.flags|=128,Sc(i,!1),e=f.updateQueue,t.updateQueue=e,Cp(t,e),t.subtreeFlags=0,e=n;for(n=t.child;n!==null;)tS(n,e),n=n.sibling;return be(oa,oa.current&mu|cd,t),at&&hs(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ca()>Mh&&(t.flags|=128,c=!0,Sc(i,!1),t.lanes=4194304)}else{if(!c)if(e=rp(f),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Cp(t,e),Sc(i,!0),i.tail===null&&i.tailMode==="hidden"&&!f.alternate&&!at)return _t(t),null}else 2*Ca()-i.renderingStartTime>Mh&&n!==536870912&&(t.flags|=128,c=!0,Sc(i,!1),t.lanes=4194304);i.isBackwards?(f.sibling=t.child,t.child=f):(e=i.last,e!==null?e.sibling=f:t.child=f,i.last=f)}if(i.tail!==null)return e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ca(),e.sibling=null,n=oa.current,n=c?n&mu|cd:n&mu,be(oa,n,t),at&&hs(t,i.treeForkCount),e;return _t(t),null;case 22:case 23:return Io(t),Eg(t),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&&(_t(t),t.subtreeFlags&6&&(t.flags|=8192)):_t(t),n=t.updateQueue,n!==null&&Cp(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&&ge(Fi,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ms(ia,t),_t(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function RD(e,t){switch(vg(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&je)!==Oe&&fc(t),t):null;case 3:return ms(ia,t),pe(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return He(t),null;case 31:if(t.memoizedState!==null){if(Io(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&je)!==Oe&&fc(t),t):null;case 13:if(Io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&je)!==Oe&&fc(t),t):null;case 19:return ge(oa,t),null;case 4:return pe(t),null;case 10:return ms(t.type,t),null;case 22:case 23:return Io(t),Eg(t),e!==null&&ge(Fi,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&je)!==Oe&&fc(t),t):null;case 24:return ms(ia,t),null;case 25:return null;default:return null}}function vL(e,t){switch(vg(t),t.tag){case 3:ms(ia,t),pe(t);break;case 26:case 27:case 5:He(t);break;case 4:pe(t);break;case 31:t.memoizedState!==null&&Io(t);break;case 13:Io(t);break;case 19:ge(oa,t);break;case 10:ms(t.type,t);break;case 22:case 23:Io(t),Eg(t),e!==null&&ge(Fi,t);break;case 24:ms(ia,t)}}function zn(e){return(e.mode&je)!==Oe}function SL(e,t){zn(e)?(Nn(),Lc(t,e),Bn()):Lc(t,e)}function Lb(e,t,n){zn(e)?(Nn(),Nl(n,e,t),Bn()):Nl(n,e,t)}function Lc(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var c=i.next;n=c;do{if((n.tag&e)===e&&(i=void 0,(e&Ja)!==gh&&(Tu=!0),i=me(t,J_,n),(e&Ja)!==gh&&(Tu=!1),i!==void 0&&typeof i!=="function")){var f=void 0;f=(n.tag&Bo)!==0?"useLayoutEffect":(n.tag&Ja)!==0?"useInsertionEffect":"useEffect";var m=void 0;m=i===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof i.then==="function"?`
136
+ https://react.dev/link/unsafe-component-lifecycles`,n,g,s!==null?`
137
+ `+s:"",d!==null?`
138
+ `+d:"",m!==null?`
139
+ `+m:""))}}n=t.stateNode,s=Z(a)||"Component",n.render||(a.prototype&&typeof a.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",s):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",s)),!n.getInitialState||n.getInitialState.isReactClassApproved||n.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",s),n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",s),n.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",s),a.childContextTypes&&!CC.has(a)&&(CC.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",s)),a.contextTypes&&!LC.has(a)&&(LC.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",s)),typeof n.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",s),a.prototype&&a.prototype.isPureReactComponent&&typeof n.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Z(a)||"A pure component"),typeof n.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",s),typeof n.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",s),typeof n.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",s),typeof n.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",s),d=n.props!==o,n.props!==void 0&&d&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",s),n.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",s,s),typeof n.getSnapshotBeforeUpdate!=="function"||typeof n.componentDidUpdate==="function"||bC.has(a)||(bC.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Z(a))),typeof n.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),typeof n.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),typeof a.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",s),(d=n.state)&&(typeof d!=="object"||Ra(d))&&console.error("%s.state: must be set to an object or null",s),typeof n.getChildContext==="function"&&typeof a.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",s),n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},ch(t),s=a.contextType,n.context=typeof s==="object"&&s!==null?Qt(s):vr,n.state===o&&(s=Z(a)||"Component",SC.has(s)||(SC.add(s),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",s))),t.mode&Ja&&pl.recordLegacyContextWarning(t,n),pl.recordUnsafeLifecycleWarnings(t,n),n.state=t.memoizedState,s=a.getDerivedStateFromProps,typeof s==="function"&&(Gh(t,a,s,o),n.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(s=n.state,typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount(),s!==n.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",X(t)||"Component"),Uy.enqueueReplaceState(n,n.state,null)),$i(t,o,n,l),Vi(),n.state=t.memoizedState),typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&fl)!==ze&&(t.flags|=134217728),n=!0}else if(e===null){n=t.stateNode;var A=t.memoizedProps;d=gs(a,A),n.props=d;var E=n.context;m=a.contextType,s=vr,typeof m==="object"&&m!==null&&(s=Qt(m)),g=a.getDerivedStateFromProps,m=typeof g==="function"||typeof n.getSnapshotBeforeUpdate==="function",A=t.pendingProps!==A,m||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(A||E!==s)&&Av(t,n,o,s),Tr=!1;var T=t.memoizedState;n.state=T,$i(t,o,n,l),Vi(),E=t.memoizedState,A||T!==E||Tr?(typeof g==="function"&&(Gh(t,a,g,o),E=t.memoizedState),(d=Tr||Mv(t,a,d,o,T,E,s))?(m||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&fl)!==ze&&(t.flags|=134217728)):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&fl)!==ze&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=E),n.props=o,n.state=E,n.context=s,n=d):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&fl)!==ze&&(t.flags|=134217728),n=!1)}else{n=t.stateNode,fh(e,t),s=t.memoizedProps,m=gs(a,s),n.props=m,g=t.pendingProps,T=n.context,E=a.contextType,d=vr,typeof E==="object"&&E!==null&&(d=Qt(E)),A=a.getDerivedStateFromProps,(E=typeof A==="function"||typeof n.getSnapshotBeforeUpdate==="function")||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(s!==g||T!==d)&&Av(t,n,o,d),Tr=!1,T=t.memoizedState,n.state=T,$i(t,o,n,l),Vi();var U=t.memoizedState;s!==g||T!==U||Tr||e!==null&&e.dependencies!==null&&uf(e.dependencies)?(typeof A==="function"&&(Gh(t,a,A,o),U=t.memoizedState),(m=Tr||Mv(t,a,m,o,T,U,d)||e!==null&&e.dependencies!==null&&uf(e.dependencies))?(E||typeof n.UNSAFE_componentWillUpdate!=="function"&&typeof n.componentWillUpdate!=="function"||(typeof n.componentWillUpdate==="function"&&n.componentWillUpdate(o,U,d),typeof n.UNSAFE_componentWillUpdate==="function"&&n.UNSAFE_componentWillUpdate(o,U,d)),typeof n.componentDidUpdate==="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=U),n.props=o,n.state=U,n.context=d,n=m):(typeof n.componentDidUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),n=!1)}if(d=n,Bf(e,t),s=(t.flags&128)!==0,d||s){if(d=t.stateNode,ma(t),s&&typeof a.getDerivedStateFromError!=="function")a=null,ro=-1;else if(a=$L(d),t.mode&Ja){_t(!0);try{$L(d)}finally{_t(!1)}}t.flags|=1,e!==null&&s?(t.child=Ms(t,e.child,null,l),t.child=Ms(t,null,a,l)):Va(e,t,a,l),t.memoizedState=d.state,e=t.child}else e=Cn(e,t,l);return l=t.stateNode,n&&l.props!==o&&(Ku||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",X(t)||"a component"),Ku=!0),e}function Gv(e,t,a,o){return ds(),t.flags|=256,Va(e,t,a,o),t.child}function Yh(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
+ %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=Z(t)||"Unknown",MC[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),MC[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=Z(t)||"Unknown",IC[t]||(console.error("%s: Function components do not support contextType.",t),IC[t]=!0))}function Qh(e){return{baseLanes:e,cachePool:H0()}}function Zh(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=bo),e}function Vv(e,t,a){var o,l=t.pendingProps;v(t)&&(t.flags|=128);var n=!1,s=(t.flags&128)!==0;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(ha.current&zd)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(dt){if(n?rr(t):sr(t),(e=Vt)?(a=cx(e,Qo),a=a!==null&&a.data!==Us?a:null,a!==null&&(o={dehydrated:a,treeContext:E0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=A0(a),o.return=t,t.child=o,ja=t,Vt=null)):a=null,a===null)throw rf(t,e),tr(t);return Mg(a)?t.lanes=32:t.lanes=536870912,null}var d=l.children;if(l=l.fallback,n){sr(t);var m=t.mode;return d=Nf({mode:"hidden",children:d},m),l=us(l,m,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=Qh(a),l.childLanes=Zh(e,o,a),t.memoizedState=_y,Qi(null,l)}return rr(t),Wh(t,d)}var g=e.memoizedState;if(g!==null){var A=g.dehydrated;if(A!==null){if(s)t.flags&256?(rr(t),t.flags&=-257,t=Kh(e,t,a)):t.memoizedState!==null?(sr(t),t.child=e.child,t.flags|=128,t=null):(sr(t),d=l.fallback,m=t.mode,l=Nf({mode:"visible",children:l.children},m),d=us(d,m,a,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,Ms(t,e.child,null,a),l=t.child,l.memoizedState=Qh(a),l.childLanes=Zh(e,o,a),t.memoizedState=_y,t=Qi(null,l));else if(rr(t),q0(),(a&536870912)!==0&&Hf(t),Mg(A)){if(o=A.nextSibling&&A.nextSibling.dataset,o){d=o.dgst;var E=o.msg;m=o.stck;var T=o.cstck}n=E,o=d,l=m,A=T,d=n,m=A,d=d?Error(d):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),d.stack=l||"",d.digest=o,o=m===void 0?null:m,l={value:d,source:null,stack:o},typeof o==="string"&&vy.set(d,l),Pi(l),t=Kh(e,t,a)}else if(La||cu(e,t,a,!1),o=(a&e.childLanes)!==0,La||o){if(o=Pt,o!==null&&(l=as(o,a),l!==0&&l!==g.retryLane))throw g.retryLane=l,Wa(e,l),oa(o,e,l),zy;Rg(A)||Ff(),t=Kh(e,t,a)}else Rg(A)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Vt=Mo(A.nextSibling),ja=t,dt=!0,Sr=null,Kl=!1,Oo=null,Qo=!1,e!==null&&O0(t,e),t=Wh(t,l.children),t.flags|=4096);return t}}if(n)return sr(t),d=l.fallback,m=t.mode,T=e.child,A=T.sibling,l=vn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,A!==null?d=vn(A,d):(d=us(d,m,a,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,Qi(null,l),l=t.child,d=e.child.memoizedState,d===null?d=Qh(a):(m=d.cachePool,m!==null?(T=va._currentValue,m=m.parent!==T?{parent:T,pool:T}:m):m=H0(),d={baseLanes:d.baseLanes|a,cachePool:m}),l.memoizedState=d,l.childLanes=Zh(e,o,a),t.memoizedState=_y,Qi(e.child,l);return g!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Hf(t),rr(t),a=e.child,e=a.sibling,a=vn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a}function Wh(e,t){return t=Nf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nf(e,t){return e=C(22,e,null,t),e.lanes=0,e}function Kh(e,t,a){return Ms(t,e.child,null,a),e=Wh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $v(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),lh(e.return,t,a)}function Jh(e,t,a,o,l,n){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:l,treeForkCount:n}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=a,s.tailMode=l,s.treeForkCount=n)}function Xv(e,t,a){var o=t.pendingProps,l=o.revealOrder,n=o.tail,s=o.children,d=ha.current;if((o=(d&zd)!==0)?(d=d&Yu|zd,t.flags|=128):d&=Yu,Ce(ha,d,t),d=l==null?"null":l,l!=="forwards"&&l!=="unstable_legacy-backwards"&&l!=="together"&&l!=="independent"&&!AC[d])if(AC[d]=!0,l==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(l==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof l==="string")switch(l.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',l,l.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',l,l.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l);if(d=n==null?"null":n,!qp[d])if(n==null){if(l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")qp[d]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else n!=="visible"&&n!=="collapsed"&&n!=="hidden"?(qp[d]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',n)):l!=="forwards"&&l!=="backwards"&&l!=="unstable_legacy-backwards"&&(qp[d]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n));e:if((l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")&&s!==void 0&&s!==null&&s!==!1)if(Ra(s)){for(d=0;d<s.length;d++)if(!W0(s[d],d))break e}else if(d=ee(s),typeof d==="function"){if(d=d.call(s))for(var m=d.next(),g=0;!m.done;m=d.next()){if(!W0(m.value,g))break e;g++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',l);if(Va(e,t,s,a),dt?(er(),s=kd):s=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$v(e,a,t);else if(e.tag===19)$v(e,a,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(l){case"forwards":a=t.child;for(l=null;a!==null;)e=a.alternate,e!==null&&Sf(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Jh(t,!1,l,a,n,s);break;case"backwards":case"unstable_legacy-backwards":a=null,l=t.child;for(t.child=null;l!==null;){if(e=l.alternate,e!==null&&Sf(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Jh(t,!0,a,null,n,s);break;case"together":Jh(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Cn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ro=-1,Mr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(cu(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){e=t.child,a=vn(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=vn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function eg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&uf(e)?!0:!1}function XT(e,t,a){switch(t.tag){case 3:te(t,t.stateNode.containerInfo),ar(t,va,e.memoizedState.cache),ds();break;case 27:case 5:je(t);break;case 4:te(t,t.stateNode.containerInfo);break;case 10:ar(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var o=t.stateNode;o.effectDuration=-0,o.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,hh(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return rr(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return Vv(e,t,a);return rr(t),e=Cn(e,t,a),e!==null?e.sibling:null}rr(t);break;case 19:var l=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(cu(e,t,a,!1),o=(a&t.childLanes)!==0),l){if(o)return Xv(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ce(ha,ha.current,t),o)break;else return null;case 22:return t.lanes=0,Pv(e,t,a,t.pendingProps);case 24:ar(t,va,e.memoizedState.cache)}return Cn(e,t,a)}function tg(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Wm(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===o.child)o.child=a;else{var l=o.child;if(l===null)throw Error("Expected parent to have a child.");for(;l.sibling!==t;)if(l=l.sibling,l===null)throw Error("Expected to find the previous sibling.");l.sibling=a}return t=o.deletions,t===null?(o.deletions=[e],o.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)La=!0;else{if(!eg(e,a)&&(t.flags&128)===0)return La=!1,XT(e,t,a);La=(e.flags&131072)!==0?!0:!1}else{if(La=!1,o=dt)er(),o=(t.flags&1048576)!==0;o&&(o=t.index,er(),D0(t,kd,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=or(t.elementType),t.type=e,typeof e==="function")Zm(e)?(o=gs(e,o),t.tag=1,t.type=e=ss(e),t=Fv(null,t,e,o,a)):(t.tag=0,Yh(t,e),t.type=e=ss(e),t=jh(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(l=e.$$typeof,l===cd){t.tag=11,t.type=e=Qm(e),t=Bv(null,t,e,o,a);break e}else if(l===ap){t.tag=14,t=Nv(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===Ao&&(t=" Did you wrap a component in React.lazy() more than once?"),a=Z(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return jh(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,l=gs(o,t.pendingProps),Fv(e,t,o,l,a);case 3:e:{if(te(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var n=t.memoizedState;l=n.element,fh(e,t),$i(t,o,null,a);var s=t.memoizedState;if(o=s.cache,ar(t,va,o),o!==n.cache&&nh(t,[va],a,!0),Vi(),o=s.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=Gv(e,t,o,a);break e}else if(o!==l){l=ko(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Pi(l),t=Gv(e,t,o,a);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}Vt=Mo(e.firstChild),ja=t,dt=!0,Sr=null,Kl=!1,Oo=null,Qo=!0,a=nC(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ds(),o===l){t=Cn(e,t,a);break e}Va(e,t,o,a)}t=t.child}return t;case 26:return Bf(e,t),e===null?(a=yx(t.type,null,t.pendingProps,null))?t.memoizedState=a:dt||(a=t.type,e=t.pendingProps,o=Be(pr.current),o=Xf(o).createElement(a),o[Xa]=t,o[oo]=e,$a(o,a,e),Oe(o),t.stateNode=o):t.memoizedState=yx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return je(t),e===null&&dt&&(o=Be(pr.current),l=ke(),o=t.stateNode=hx(t.type,t.pendingProps,o,l,!1),Kl||(l=ox(o,t.type,t.pendingProps,l),l!==null&&(is(t,0).serverProps=l)),ja=t,Qo=!0,l=Vt,cr(t.type)?(ib=l,Vt=Mo(o.firstChild)):Vt=l),Va(e,t,t.pendingProps.children,a),Bf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&dt&&(n=ke(),o=Hm(t.type,n.ancestorInfo),l=Vt,(s=!l)||(s=qI(l,t.type,t.pendingProps,Qo),s!==null?(t.stateNode=s,Kl||(n=ox(s,t.type,t.pendingProps,n),n!==null&&(is(t,0).serverProps=n)),ja=t,Vt=Mo(s.firstChild),Qo=!1,n=!0):n=!1,s=!n),s&&(o&&rf(t,l),tr(t))),je(t),l=t.type,n=t.pendingProps,s=e!==null?e.memoizedProps:null,o=n.children,Tg(l,n)?o=null:s!==null&&Tg(l,s)&&(t.flags|=32),t.memoizedState!==null&&(l=yh(e,t,PT,null,null,a),oc._currentValue=l),Bf(e,t),Va(e,t,o,a),t.child;case 6:return e===null&&dt&&(a=t.pendingProps,e=ke(),o=e.ancestorInfo.current,a=o!=null?Zc(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=Vt,(o=!e)||(o=BI(e,t.pendingProps,Qo),o!==null?(t.stateNode=o,ja=t,Vt=null,o=!0):o=!1,o=!o),o&&(a&&rf(t,e),tr(t))),null;case 13:return Vv(e,t,a);case 4:return te(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ms(t,null,o,a):Va(e,t,o,a),t.child;case 11:return Bv(e,t,t.type,t.pendingProps,a);case 7:return Va(e,t,t.pendingProps,a),t.child;case 8:return Va(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,o=t.stateNode,o.effectDuration=-0,o.passiveEffectDuration=-0,Va(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,l=t.pendingProps,n=l.value,"value"in l||DC||(DC=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ar(t,o,n),Va(e,t,l.children,a),t.child;case 9:return l=t.type._context,o=t.pendingProps.children,typeof o!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),cs(t),l=Qt(l),o=Iy(o,l,void 0),t.flags|=1,Va(e,t,o,a),t.child;case 14:return Nv(e,t,t.type,t.pendingProps,a);case 15:return Uv(e,t,t.type,t.pendingProps,a);case 19:return Xv(e,t,a);case 31:return $T(e,t,a);case 22:return Pv(e,t,a,t.pendingProps);case 24:return cs(t),o=Qt(va),e===null?(l=ih(),l===null&&(l=Pt,n=rh(),l.pooledCache=n,fs(n),n!==null&&(l.pooledCacheLanes|=a),l=n),t.memoizedState={parent:o,cache:l},ch(t),ar(t,va,l)):((e.lanes&a)!==0&&(fh(e,t),$i(t,null,null,a),Vi()),l=e.memoizedState,n=t.memoizedState,l.parent!==o?(l={parent:o,cache:o},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),ar(t,va,o)):(o=n.cache,ar(t,va,o),o!==l.cache&&nh(t,[va],a,!0))),Va(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function kn(e){e.flags|=4}function ag(e,t,a,o,l){if(t=(e.mode&fM)!==ze)t=!1;if(t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(wS())e.flags|=8192;else throw Rs=Rp,My}else e.flags&=-16777217}function jv(e,t){if(t.type!=="stylesheet"||(t.state.loading&el)!==_s)e.flags&=-16777217;else if(e.flags|=16777216,!Lx(t))if(wS())e.flags|=8192;else throw Rs=Rp,My}function Uf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?nu():536870912,e.lanes|=t,qs|=t)}function Zi(e,t){if(!dt)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&tt)!==ze){for(var{selfBaseDuration:l,child:n}=e;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&65011712,o|=n.flags&65011712,l+=n.treeBaseDuration,n=n.sibling;e.treeBaseDuration=l}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags&65011712,o|=l.flags&65011712,l.return=e,l=l.sibling;else if((e.mode&tt)!==ze){l=e.actualDuration,n=e.selfBaseDuration;for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,l+=s.actualDuration,n+=s.treeBaseDuration,s=s.sibling;e.actualDuration=l,e.treeBaseDuration=n}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function jT(e,t,a){var o=t.pendingProps;switch(th(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ht(t),null;case 1:return Ht(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),xn(va,t),ve(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)du(t)?(oh(),kn(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ah());return Ht(t),null;case 26:var{type:l,memoizedState:n}=t;return e===null?(kn(t),n!==null?(Ht(t),jv(t,n)):(Ht(t),ag(t,l,null,o,a))):n?n!==e.memoizedState?(kn(t),Ht(t),jv(t,n)):(Ht(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&kn(t),Ht(t),ag(t,l,e,o,a)),null;case 27:if(ae(t),a=Be(pr.current),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&kn(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ht(t),null}e=ke(),du(t)?B0(t,e):(e=hx(l,o,a,e,!0),t.stateNode=e,kn(t))}return Ht(t),null;case 5:if(ae(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&kn(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ht(t),null}var s=ke();if(du(t))B0(t,s);else{switch(n=Be(pr.current),Hm(l,s.ancestorInfo),s=s.context,n=Xf(n),s){case ri:n=n.createElementNS(Au,l);break;case em:n=n.createElementNS(ip,l);break;default:switch(l){case"svg":n=n.createElementNS(Au,l);break;case"math":n=n.createElementNS(ip,l);break;case"script":n=n.createElement("div"),n.innerHTML="<script></script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is==="string"?n.createElement("select",{is:o.is}):n.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is==="string"?n.createElement(l,{is:o.is}):n.createElement(l),l.indexOf("-")===-1&&(l!==l.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),Object.prototype.toString.call(n)!=="[object HTMLUnknownElement]"||dl.call(t1,l)||(t1[l]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",l)))}}n[Xa]=t,n[oo]=o;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=n;e:switch($a(n,l,o),l){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&kn(t)}}return Ht(t),ag(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&kn(t);else{if(typeof o!=="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Be(pr.current),a=ke(),du(t)){if(e=t.stateNode,a=t.memoizedProps,l=!Kl,o=null,n=ja,n!==null)switch(n.tag){case 3:l&&(l=px(e,a,o),l!==null&&(is(t,0).serverProps=l));break;case 27:case 5:o=n.memoizedProps,l&&(l=px(e,a,o),l!==null&&(is(t,0).serverProps=l))}e[Xa]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||KS(e.nodeValue,a)?!0:!1,e||tr(t,!0)}else l=a.ancestorInfo.current,l!=null&&Zc(o,l.tag,a.ancestorInfo.implicitRootScope),e=Xf(e).createTextNode(o),e[Xa]=t,t.stateNode=e}return Ht(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=du(t),a!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Xa]=t,Ht(t),(t.mode&tt)!==ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else oh(),ds(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,Ht(t),(t.mode&tt)!==ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=ah(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Io(t),t;return Io(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ht(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=o,n=du(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");n[Xa]=t,Ht(t),(t.mode&tt)!==ze&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration))}else oh(),ds(),(t.flags&128)===0&&(l=t.memoizedState=null),t.flags|=4,Ht(t),(t.mode&tt)!==ze&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration));l=!1}else l=ah(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(t.flags&256)return Io(t),t;return Io(t),null}}if(Io(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&tt)!==ze&&Hi(t),t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,l=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(l=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==l&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Uf(t,t.updateQueue),Ht(t),(t.mode&tt)!==ze&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return ve(t),e===null&&vg(t.stateNode.containerInfo),Ht(t),null;case 10:return xn(t.type,t),Ht(t),null;case 19:if(Ne(ha,t),o=t.memoizedState,o===null)return Ht(t),null;if(l=(t.flags&128)!==0,n=o.rendering,n===null)if(l)Zi(o,!1);else{if(ea!==zn||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=Sf(e),n!==null){t.flags|=128,Zi(o,!1),e=n.updateQueue,t.updateQueue=e,Uf(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)M0(a,e),a=a.sibling;return Ce(ha,ha.current&Yu|zd,t),dt&&Sn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ba()>Hp&&(t.flags|=128,l=!0,Zi(o,!1),t.lanes=4194304)}else{if(!l)if(e=Sf(n),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Uf(t,e),Zi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!n.alternate&&!dt)return Ht(t),null}else 2*Ba()-o.renderingStartTime>Hp&&a!==536870912&&(t.flags|=128,l=!0,Zi(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ba(),e.sibling=null,a=ha.current,a=l?a&Yu|zd:a&Yu,Ce(ha,a,t),dt&&Sn(t,o.treeForkCount),e;return Ht(t),null;case 22:case 23:return Io(t),mh(t),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Ht(t),t.subtreeFlags&6&&(t.flags|=8192)):Ht(t),a=t.updateQueue,a!==null&&Uf(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Ne(Ts,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),xn(va,t),Ht(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function YT(e,t){switch(th(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 3:return xn(va,t),ve(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ae(t),null;case 31:if(t.memoizedState!==null){if(Io(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 13:if(Io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 19:return Ne(ha,t),null;case 4:return ve(t),null;case 10:return xn(t.type,t),null;case 22:case 23:return Io(t),mh(t),e!==null&&Ne(Ts,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 24:return xn(va,t),null;case 25:return null;default:return null}}function Yv(e,t){switch(th(t),t.tag){case 3:xn(va,t),ve(t);break;case 26:case 27:case 5:ae(t);break;case 4:ve(t);break;case 31:t.memoizedState!==null&&Io(t);break;case 13:Io(t);break;case 19:Ne(ha,t);break;case 10:xn(t.type,t);break;case 22:case 23:Io(t),mh(t),e!==null&&Ne(Ts,t);break;case 24:xn(va,t)}}function zl(e){return(e.mode&tt)!==ze}function Qv(e,t){zl(e)?(Pl(),Wi(t,e),Ul()):Wi(t,e)}function og(e,t,a){zl(e)?(Pl(),gu(a,e,t),Ul()):gu(a,e,t)}function Wi(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var l=o.next;a=l;do{if((a.tag&e)===e&&(o=void 0,(e&so)!==Ap&&(oi=!0),o=re(t,yM,a),(e&so)!==Ap&&(oi=!1),o!==void 0&&typeof o!=="function")){var n=void 0;n=(a.tag&Bo)!==0?"useLayoutEffect":(a.tag&so)!==0?"useInsertionEffect":"useEffect";var s=void 0;s=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
141
141
 
142
- It looks like you wrote `+f+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
142
+ It looks like you wrote `+n+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
143
 
144
- `+f+`(() => {
144
+ `+n+`(() => {
145
145
  async function fetchData() {
146
146
  // You can await here
147
147
  const response = await MyAPI.getData(someId);
@@ -150,11 +150,11 @@ It looks like you wrote `+f+`(async () => ...) or returned a Promise. Instead, w
150
150
  fetchData();
151
151
  }, [someId]); // Or [] if effect doesn't need props or state
152
152
 
153
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+i,me(t,function(x,S){console.error("%s must not return anything besides a function, which is used for clean-up.%s",x,S)},f,m)}n=n.next}while(n!==c)}}catch(x){gt(t,t.return,x)}}function Nl(e,t,n){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var f=c.next;i=f;do{if((i.tag&e)===e){var m=i.inst,x=m.destroy;x!==void 0&&(m.destroy=void 0,(e&Ja)!==gh&&(Tu=!0),c=t,me(c,eE,c,n,x),(e&Ja)!==gh&&(Tu=!1))}i=i.next}while(i!==f)}}catch(S){gt(t,t.return,S)}}function LL(e,t){zn(e)?(Nn(),Lc(t,e),Bn()):Lc(t,e)}function Cb(e,t,n){zn(e)?(Nn(),Nl(n,e,t),Bn()):Nl(n,e,t)}function CL(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||xu||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{me(e,wS,t,n)}catch(i){gt(e,e.return,i)}}}function DD(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function _D(e,t){var n=t.memoizedProps,i=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||xu||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{var c=Di(e.type,n),f=me(e,DD,t,c,i);n=nw,f!==void 0||n.has(e.type)||(n.add(e.type),me(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",X(e))})),t.__reactInternalSnapshotBeforeUpdate=f}catch(m){gt(e,e.return,m)}}function TL(e,t,n){n.props=Di(e.type,e.memoizedProps),n.state=e.memoizedState,zn(e)?(Nn(),me(e,CT,e,t,n),Bn()):me(e,CT,e,t,n)}function ED(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==="function")if(zn(e))try{Nn(),e.refCleanup=t(n)}finally{Bn()}else e.refCleanup=t(n);else typeof t==="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",X(e)),t.current=n}}function Cc(e,t){try{me(e,ED,e)}catch(n){gt(e,t,n)}}function Hn(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i==="function")try{if(zn(e))try{Nn(),me(e,i)}finally{Bn(e)}else me(e,i)}catch(c){gt(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==="function")try{if(zn(e))try{Nn(),me(e,n,null)}finally{Bn(e)}else me(e,n,null)}catch(c){gt(e,t,c)}else n.current=null}function wL(e,t,n,i){var c=e.memoizedProps,f=c.id,m=c.onCommit;c=c.onRender,t=t===null?"mount":"update",ch&&(t="nested-update"),typeof c==="function"&&c(f,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof m==="function"&&m(f,t,i,n)}function OD(e,t,n,i){var c=e.memoizedProps;e=c.id,c=c.onPostCommit,t=t===null?"mount":"update",ch&&(t="nested-update"),typeof c==="function"&&c(e,t,i,n)}function kL(e){var{type:t,memoizedProps:n,stateNode:i}=e;try{me(e,n2,i,t,n,e)}catch(c){gt(e,e.return,c)}}function Tb(e,t,n){try{me(e,r2,e.stateNode,e.type,n,t,e)}catch(i){gt(e,e.return,i)}}function ML(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&gr(e.type)||e.tag===4}function wb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ML(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&gr(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kb(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(OC(n),(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t)):(OC(n),t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!==null&&n!==void 0||t.onclick!==null||(t.onclick=fs));else if(i!==4&&(i===27&&gr(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(kb(e,t,n),e=e.sibling;e!==null;)kb(e,t,n),e=e.sibling}function Tp(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&&gr(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Tp(e,t,n),e=e.sibling;e!==null;)Tp(e,t,n),e=e.sibling}function PD(e){for(var t,n=e.return;n!==null;){if(ML(n)){t=n;break}n=n.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,n=wb(e),Tp(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(EC(n),t.flags&=-33),t=wb(e),Tp(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=wb(e),kb(e,n,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function IL(e){var{stateNode:t,memoizedProps:n}=e;try{me(e,L2,e.type,n,t,e)}catch(i){gt(e,e.return,i)}}function AL(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function BD(e,t){if(e=e.containerInfo,wx=jh,e=G0(e),ug(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 c=i.anchorOffset,f=i.focusNode;i=i.focusOffset;try{n.nodeType,f.nodeType}catch(ie){n=null;break e}var m=0,x=-1,S=-1,L=0,O=0,P=e,D=null;t:for(;;){for(var U;;){if(P!==n||c!==0&&P.nodeType!==3||(x=m+c),P!==f||i!==0&&P.nodeType!==3||(S=m+i),P.nodeType===3&&(m+=P.nodeValue.length),(U=P.firstChild)===null)break;D=P,P=U}for(;;){if(P===e)break t;if(D===n&&++L===c&&(x=m),D===f&&++O===i&&(S=m),(U=P.nextSibling)!==null)break;P=D,D=P.parentNode}P=U}n=x===-1||S===-1?null:{start:x,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;kx={focusedElem:e,selectionRange:n},jh=!1;for(wa=t;wa!==null;)if(t=wa,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,wa=e;else for(;wa!==null;){switch(e=t=wa,n=e.alternate,c=e.flags,e.tag){case 0:if((c&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:(c&1024)!==0&&n!==null&&_D(e,n);break;case 3:if((c&1024)!==0){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)Xb(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Xb(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((c&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,wa=e;break}wa=t.return}}function RL(e,t,n){var i=ko(),c=_n(),f=On(),m=Pn(),x=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n),x&4&&SL(n,Bo|Jo);break;case 1:if(Un(e,n),x&4)if(e=n.stateNode,t===null)n.type.defaultProps||"ref"in n.memoizedProps||xu||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(n)||"instance")),zn(n)?(Nn(),me(n,Yy,n,e),Bn()):me(n,Yy,n,e);else{var S=Di(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||xu||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(n)||"instance")),zn(n)?(Nn(),me(n,vT,n,e,S,t,e.__reactInternalSnapshotBeforeUpdate),Bn()):me(n,vT,n,e,S,t,e.__reactInternalSnapshotBeforeUpdate)}x&64&&CL(n),x&512&&Cc(n,n.return);break;case 3:if(t=gs(),Un(e,n),x&64&&(x=n.updateQueue,x!==null)){if(S=null,n.child!==null)switch(n.child.tag){case 27:case 5:S=n.child.stateNode;break;case 1:S=n.child.stateNode}try{me(n,wS,x,S)}catch(O){gt(n,n.return,O)}}e.effectDuration+=Qf(t);break;case 27:t===null&&x&4&&IL(n);case 26:case 5:if(Un(e,n),t===null){if(x&4)kL(n);else if(x&64){e=n.type,t=n.memoizedProps,S=n.stateNode;try{me(n,s2,S,e,t,n)}catch(O){gt(n,n.return,O)}}}x&512&&Cc(n,n.return);break;case 12:if(x&4){x=gs(),Un(e,n),e=n.stateNode,e.effectDuration+=dc(x);try{me(n,wL,n,t,kr,e.effectDuration)}catch(O){gt(n,n.return,O)}}else Un(e,n);break;case 31:Un(e,n),x&4&&EL(e,n);break;case 13:Un(e,n),x&4&&OL(e,n),x&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(x=GD.bind(null,n),y2(e,x))));break;case 22:if(x=n.memoizedState!==null||_s,!x){t=t!==null&&t.memoizedState!==null||da,S=_s;var L=da;_s=x,(da=t)&&!L?(Fn(e,n,(n.subtreeFlags&8772)!==0),(n.mode&je)!==Oe&&0<=Re&&0<=De&&0.05<De-Re&&Ff(n,Re,De)):Un(e,n),_s=S,da=L}break;case 30:break;default:Un(e,n)}(n.mode&je)!==Oe&&0<=Re&&0<=De&&((Qt||0.05<Xt)&&Rn(n,Re,De,Xt,qt),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&0.05<De-Re&&(AL(n.return.alternate,n.return)||An(n,Re,De,"Mount"))),Mo(i),En(c),qt=f,Qt=m}function DL(e){var t=e.alternate;t!==null&&(e.alternate=null,DL(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ue(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xs(e,t,n){for(n=n.child;n!==null;)_L(e,t,n),n=n.sibling}function _L(e,t,n){if(Va&&typeof Va.onCommitFiberUnmount==="function")try{Va.onCommitFiberUnmount(Wl,n)}catch(L){Yn||(Yn=!0,console.error("React instrumentation encountered an error: %o",L))}var i=ko(),c=_n(),f=On(),m=Pn();switch(n.tag){case 26:da||Hn(n,t),xs(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:da||Hn(n,t);var x=fa,S=lo;gr(n.type)&&(fa=n.stateNode,lo=!1),xs(e,t,n),me(n,_c,n.stateNode),fa=x,lo=S;break;case 5:da||Hn(n,t);case 6:if(x=fa,S=lo,fa=null,xs(e,t,n),fa=x,lo=S,fa!==null)if(lo)try{me(n,u2,fa,n.stateNode)}catch(L){gt(n,t,L)}else try{me(n,l2,fa,n.stateNode)}catch(L){gt(n,t,L)}break;case 18:fa!==null&&(lo?(e=fa,PC(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Gl(e)):PC(fa,n.stateNode));break;case 4:x=fa,S=lo,fa=n.stateNode.containerInfo,lo=!0,xs(e,t,n),fa=x,lo=S;break;case 0:case 11:case 14:case 15:Nl(Ja,n,t),da||Lb(n,t,Bo),xs(e,t,n);break;case 1:da||(Hn(n,t),x=n.stateNode,typeof x.componentWillUnmount==="function"&&TL(n,t,x)),xs(e,t,n);break;case 21:xs(e,t,n);break;case 22:da=(x=da)||n.memoizedState!==null,xs(e,t,n),da=x;break;default:xs(e,t,n)}(n.mode&je)!==Oe&&0<=Re&&0<=De&&(Qt||0.05<Xt)&&Rn(n,Re,De,Xt,qt),Mo(i),En(c),qt=f,Qt=m}function EL(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{me(t,v2,e)}catch(n){gt(t,t.return,n)}}}function OL(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{me(t,S2,e)}catch(n){gt(t,t.return,n)}}function ND(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sw),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sw),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function wp(e,t){var n=ND(e);t.forEach(function(i){if(!n.has(i)){if(n.add(i),$n)if(vu!==null&&Su!==null)Mc(Su,vu);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var c=XD.bind(null,e,i);i.then(c,c)}})}function ro(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var c=e,f=t,m=n[i],x=ko(),S=f;e:for(;S!==null;){switch(S.tag){case 27:if(gr(S.type)){fa=S.stateNode,lo=!1;break e}break;case 5:fa=S.stateNode,lo=!1;break e;case 3:case 4:fa=S.stateNode.containerInfo,lo=!0;break e}S=S.return}if(fa===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");_L(c,f,m),fa=null,lo=!1,(m.mode&je)!==Oe&&0<=Re&&0<=De&&0.05<De-Re&&An(m,Re,De,"Unmount"),Mo(x),c=m,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)PL(t,e),t=t.sibling}function PL(e,t){var n=ko(),i=_n(),c=On(),f=Pn(),{alternate:m,flags:x}=e;switch(e.tag){case 0:case 11:case 14:case 15:ro(t,e),io(e),x&4&&(Nl(Ja|Jo,e,e.return),Lc(Ja|Jo,e),Lb(e,e.return,Bo|Jo));break;case 1:if(ro(t,e),io(e),x&512&&(da||m===null||Hn(m,m.return)),x&64&&_s&&(x=e.updateQueue,x!==null&&(m=x.callbacks,m!==null))){var S=x.shared.hiddenCallbacks;x.shared.hiddenCallbacks=S===null?m:S.concat(m)}break;case 26:if(S=xn,ro(t,e),io(e),x&512&&(da||m===null||Hn(m,m.return)),x&4){var L=m!==null?m.memoizedState:null;if(x=e.memoizedState,m===null)if(x===null)if(e.stateNode===null){e:{x=e.type,m=e.memoizedProps,S=S.ownerDocument||S;t:switch(x){case"title":if(L=S.getElementsByTagName("title")[0],!L||L[Hc]||L[Oa]||L.namespaceURI===Ql||L.hasAttribute("itemprop"))L=S.createElement(x),S.head.insertBefore(L,S.querySelector("head > title"));Ea(L,x,m),L[Oa]=e,Ae(L),x=L;break e;case"link":var O=XC("link","href",S).get(x+(m.href||""));if(O){for(var P=0;P<O.length;P++)if(L=O[P],L.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&L.getAttribute("rel")===(m.rel==null?null:m.rel)&&L.getAttribute("title")===(m.title==null?null:m.title)&&L.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){O.splice(P,1);break t}}L=S.createElement(x),Ea(L,x,m),S.head.appendChild(L);break;case"meta":if(O=XC("meta","content",S).get(x+(m.content||""))){for(P=0;P<O.length;P++)if(L=O[P],Ct(m.content,"content"),L.getAttribute("content")===(m.content==null?null:""+m.content)&&L.getAttribute("name")===(m.name==null?null:m.name)&&L.getAttribute("property")===(m.property==null?null:m.property)&&L.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&L.getAttribute("charset")===(m.charSet==null?null:m.charSet)){O.splice(P,1);break t}}L=S.createElement(x),Ea(L,x,m),S.head.appendChild(L);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+x+'". This is a bug in React.')}L[Oa]=e,Ae(L),x=L}e.stateNode=x}else YC(S,e.type,e.stateNode);else e.stateNode=GC(S,x,e.memoizedProps);else L!==x?(L===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):L.count--,x===null?YC(S,e.type,e.stateNode):GC(S,x,e.memoizedProps)):x===null&&e.stateNode!==null&&Tb(e,e.memoizedProps,m.memoizedProps)}break;case 27:ro(t,e),io(e),x&512&&(da||m===null||Hn(m,m.return)),m!==null&&x&4&&Tb(e,e.memoizedProps,m.memoizedProps);break;case 5:if(ro(t,e),io(e),x&512&&(da||m===null||Hn(m,m.return)),e.flags&32){S=e.stateNode;try{me(e,EC,S)}catch(he){gt(e,e.return,he)}}x&4&&e.stateNode!=null&&(S=e.memoizedProps,Tb(e,S,m!==null?m.memoizedProps:S)),x&1024&&(rx=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(ro(t,e),io(e),x&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");x=e.memoizedProps,m=m!==null?m.memoizedProps:x,S=e.stateNode;try{me(e,i2,S,m,x)}catch(he){gt(e,e.return,he)}}break;case 3:if(S=gs(),Fh=null,L=xn,xn=Ep(t.containerInfo),ro(t,e),xn=L,io(e),x&4&&m!==null&&m.memoizedState.isDehydrated)try{me(e,x2,t.containerInfo)}catch(he){gt(e,e.return,he)}rx&&(rx=!1,BL(e)),t.effectDuration+=Qf(S);break;case 4:x=xn,xn=Ep(e.stateNode.containerInfo),ro(t,e),io(e),xn=x;break;case 12:x=gs(),ro(t,e),io(e),e.stateNode.effectDuration+=dc(x);break;case 31:ro(t,e),io(e),x&4&&(x=e.updateQueue,x!==null&&(e.updateQueue=null,wp(e,x)));break;case 13:ro(t,e),io(e),e.child.flags&8192&&e.memoizedState!==null!==(m!==null&&m.memoizedState!==null)&&(kh=Ca()),x&4&&(x=e.updateQueue,x!==null&&(e.updateQueue=null,wp(e,x)));break;case 22:S=e.memoizedState!==null;var D=m!==null&&m.memoizedState!==null,U=_s,ie=da;if(_s=U||S,da=ie||D,ro(t,e),da=ie,_s=U,D&&!S&&!U&&!ie&&(e.mode&je)!==Oe&&0<=Re&&0<=De&&0.05<De-Re&&Ff(e,Re,De),io(e),x&8192)e:for(t=e.stateNode,t._visibility=S?t._visibility&~$c:t._visibility|$c,!S||m===null||D||_s||da||(_i(e),(e.mode&je)!==Oe&&0<=Re&&0<=De&&0.05<De-Re&&An(e,Re,De,"Disconnect")),m=null,t=e;;){if(t.tag===5||t.tag===26){if(m===null){D=m=t;try{L=D.stateNode,S?me(D,d2,L):me(D,h2,D.stateNode,D.memoizedProps)}catch(he){gt(D,D.return,he)}}}else if(t.tag===6){if(m===null){D=t;try{O=D.stateNode,S?me(D,f2,O):me(D,m2,O,D.memoizedProps)}catch(he){gt(D,D.return,he)}}}else if(t.tag===18){if(m===null){D=t;try{P=D.stateNode,S?me(D,c2,P):me(D,p2,D.stateNode)}catch(he){gt(D,D.return,he)}}}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;m===t&&(m=null),t=t.return}m===t&&(m=null),t.sibling.return=t.return,t=t.sibling}x&4&&(x=e.updateQueue,x!==null&&(m=x.retryQueue,m!==null&&(x.retryQueue=null,wp(e,m))));break;case 19:ro(t,e),io(e),x&4&&(x=e.updateQueue,x!==null&&(e.updateQueue=null,wp(e,x)));break;case 30:break;case 21:break;default:ro(t,e),io(e)}(e.mode&je)!==Oe&&0<=Re&&0<=De&&((Qt||0.05<Xt)&&Rn(e,Re,De,Xt,qt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<De-Re&&(AL(e.return.alternate,e.return)||An(e,Re,De,"Mount"))),Mo(n),En(i),qt=c,Qt=f}function io(e){var t=e.flags;if(t&2){try{me(e,PD,e)}catch(n){gt(e,e.return,n)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function BL(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;BL(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)RL(e,t.alternate,t),t=t.sibling}function NL(e){var t=ko(),n=_n(),i=On(),c=Pn();switch(e.tag){case 0:case 11:case 14:case 15:Lb(e,e.return,Bo),_i(e);break;case 1:Hn(e,e.return);var f=e.stateNode;typeof f.componentWillUnmount==="function"&&TL(e,e.return,f),_i(e);break;case 27:me(e,_c,e.stateNode);case 26:case 5:Hn(e,e.return),_i(e);break;case 22:e.memoizedState===null&&_i(e);break;case 30:_i(e);break;default:_i(e)}(e.mode&je)!==Oe&&0<=Re&&0<=De&&(Qt||0.05<Xt)&&Rn(e,Re,De,Xt,qt),Mo(t),En(n),qt=i,Qt=c}function _i(e){for(e=e.child;e!==null;)NL(e),e=e.sibling}function zL(e,t,n,i){var c=ko(),f=_n(),m=On(),x=Pn(),S=n.flags;switch(n.tag){case 0:case 11:case 15:Fn(e,n,i),SL(n,Bo);break;case 1:if(Fn(e,n,i),t=n.stateNode,typeof t.componentDidMount==="function"&&me(n,Yy,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{me(n,xD,t,e)}catch(L){gt(n,n.return,L)}}i&&S&64&&CL(n),Cc(n,n.return);break;case 27:IL(n);case 26:case 5:Fn(e,n,i),i&&t===null&&S&4&&kL(n),Cc(n,n.return);break;case 12:if(i&&S&4){S=gs(),Fn(e,n,i),i=n.stateNode,i.effectDuration+=dc(S);try{me(n,wL,n,t,kr,i.effectDuration)}catch(L){gt(n,n.return,L)}}else Fn(e,n,i);break;case 31:Fn(e,n,i),i&&S&4&&EL(e,n);break;case 13:Fn(e,n,i),i&&S&4&&OL(e,n);break;case 22:n.memoizedState===null&&Fn(e,n,i),Cc(n,n.return);break;case 30:break;default:Fn(e,n,i)}(n.mode&je)!==Oe&&0<=Re&&0<=De&&(Qt||0.05<Xt)&&Rn(n,Re,De,Xt,qt),Mo(c),En(f),qt=m,Qt=x}function Fn(e,t,n){n=n&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)zL(e,t.alternate,t,n),t=t.sibling}function Mb(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&&Mi(e),n!=null&&cc(n))}function Ib(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Mi(t),e!=null&&cc(e))}function pn(e,t,n,i,c){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var f=t.sibling;HL(e,t,n,i,f!==null?f.actualStartTime:c),t=f}}function HL(e,t,n,i,c){var f=ko(),m=_n(),x=On(),S=Pn(),L=Lr,O=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&je)!==Oe&&0<t.actualStartTime&&(t.flags&1)!==0&&qf(t,t.actualStartTime,c,ga,n),pn(e,t,n,i,c),O&2048&&LL(t,eo|Jo);break;case 1:(t.mode&je)!==Oe&&0<t.actualStartTime&&((t.flags&128)!==0?dg(t,t.actualStartTime,c,[]):(t.flags&1)!==0&&qf(t,t.actualStartTime,c,ga,n)),pn(e,t,n,i,c);break;case 3:var P=gs(),D=ga;ga=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,pn(e,t,n,i,c),ga=D,O&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),i=t.memoizedState.cache,i!==n&&(Mi(i),n!=null&&cc(n))),e.passiveEffectDuration+=Qf(P);break;case 12:if(O&2048){O=gs(),pn(e,t,n,i,c),e=t.stateNode,e.passiveEffectDuration+=dc(O);try{me(t,OD,t,t.alternate,kr,e.passiveEffectDuration)}catch(U){gt(t,t.return,U)}}else pn(e,t,n,i,c);break;case 31:O=ga,P=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,P!==null&&D===null?(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(ga=!1,P=P.hydrationErrors,P!==null&&dg(t,t.actualStartTime,c,P)):ga=!0):ga=!1,pn(e,t,n,i,c),ga=O;break;case 13:O=ga,P=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,P===null||P.dehydrated===null||D!==null&&D.dehydrated!==null?ga=!1:(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(ga=!1,P=P.hydrationErrors,P!==null&&dg(t,t.actualStartTime,c,P)):ga=!0),pn(e,t,n,i,c),ga=O;break;case 23:break;case 22:D=t.stateNode,P=t.alternate,t.memoizedState!==null?D._visibility&Ls?pn(e,t,n,i,c):Tc(e,t,n,i,c):D._visibility&Ls?pn(e,t,n,i,c):(D._visibility|=Ls,zl(e,t,n,i,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),c),(t.mode&je)===Oe||ga||(e=t.actualStartTime,0<=e&&0.05<c-e&&Ff(t,e,c),0<=Re&&0<=De&&0.05<De-Re&&Ff(t,Re,De))),O&2048&&Mb(P,t);break;case 24:pn(e,t,n,i,c),O&2048&&Ib(t.alternate,t);break;default:pn(e,t,n,i,c)}if((t.mode&je)!==Oe){if(e=!ga&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)n=t.actualStartTime,0<=n&&0.05<c-n&&An(t,n,c,"Mount");0<=Re&&0<=De&&((Qt||0.05<Xt)&&Rn(t,Re,De,Xt,qt),e&&0.05<De-Re&&An(t,Re,De,"Mount"))}Mo(f),En(m),qt=x,Qt=S,Lr=L}function zl(e,t,n,i,c,f){c=c&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var m=t.sibling;UL(e,t,n,i,c,m!==null?m.actualStartTime:f),t=m}}function UL(e,t,n,i,c,f){var m=ko(),x=_n(),S=On(),L=Pn(),O=Lr;c&&(t.mode&je)!==Oe&&0<t.actualStartTime&&(t.flags&1)!==0&&qf(t,t.actualStartTime,f,ga,n);var P=t.flags;switch(t.tag){case 0:case 11:case 15:zl(e,t,n,i,c,f),LL(t,eo);break;case 23:break;case 22:var D=t.stateNode;t.memoizedState!==null?D._visibility&Ls?zl(e,t,n,i,c,f):Tc(e,t,n,i,f):(D._visibility|=Ls,zl(e,t,n,i,c,f)),c&&P&2048&&Mb(t.alternate,t);break;case 24:zl(e,t,n,i,c,f),c&&P&2048&&Ib(t.alternate,t);break;default:zl(e,t,n,i,c,f)}(t.mode&je)!==Oe&&0<=Re&&0<=De&&(Qt||0.05<Xt)&&Rn(t,Re,De,Xt,qt),Mo(m),En(x),qt=S,Qt=L,Lr=O}function Tc(e,t,n,i,c){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var f=t.child;f!==null;){t=f.sibling;var m=e,x=n,S=i,L=t!==null?t.actualStartTime:c,O=Lr;(f.mode&je)!==Oe&&0<f.actualStartTime&&(f.flags&1)!==0&&qf(f,f.actualStartTime,L,ga,x);var P=f.flags;switch(f.tag){case 22:Tc(m,f,x,S,L),P&2048&&Mb(f.alternate,f);break;case 24:Tc(m,f,x,S,L),P&2048&&Ib(f.alternate,f);break;default:Tc(m,f,x,S,L)}Lr=O,f=t}}function Hl(e,t,n){if(e.subtreeFlags&hd)for(e=e.child;e!==null;)FL(e,t,n),e=e.sibling}function FL(e,t,n){switch(e.tag){case 26:Hl(e,t,n),e.flags&hd&&e.memoizedState!==null&&w2(n,xn,e.memoizedState,e.memoizedProps);break;case 5:Hl(e,t,n);break;case 3:case 4:var i=xn;xn=Ep(e.stateNode.containerInfo),Hl(e,t,n),xn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=hd,hd=16777216,Hl(e,t,n),hd=i):Hl(e,t,n));break;default:Hl(e,t,n)}}function qL(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 wc(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],c=ko();wa=i,GL(i,e),(i.mode&je)!==Oe&&0<=Re&&0<=De&&0.05<De-Re&&An(i,Re,De,"Unmount"),Mo(c)}qL(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)VL(e),e=e.sibling}function VL(e){var t=ko(),n=_n(),i=On(),c=Pn();switch(e.tag){case 0:case 11:case 15:wc(e),e.flags&2048&&Cb(e,e.return,eo|Jo);break;case 3:var f=gs();wc(e),e.stateNode.passiveEffectDuration+=Qf(f);break;case 12:f=gs(),wc(e),e.stateNode.passiveEffectDuration+=dc(f);break;case 22:f=e.stateNode,e.memoizedState!==null&&f._visibility&Ls&&(e.return===null||e.return.tag!==13)?(f._visibility&=~Ls,kp(e),(e.mode&je)!==Oe&&0<=Re&&0<=De&&0.05<De-Re&&An(e,Re,De,"Disconnect")):wc(e);break;default:wc(e)}(e.mode&je)!==Oe&&0<=Re&&0<=De&&(Qt||0.05<Xt)&&Rn(e,Re,De,Xt,qt),Mo(t),En(n),Qt=c,qt=i}function kp(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],c=ko();wa=i,GL(i,e),(i.mode&je)!==Oe&&0<=Re&&0<=De&&0.05<De-Re&&An(i,Re,De,"Unmount"),Mo(c)}qL(e)}for(e=e.child;e!==null;)jL(e),e=e.sibling}function jL(e){var t=ko(),n=_n(),i=On(),c=Pn();switch(e.tag){case 0:case 11:case 15:Cb(e,e.return,eo),kp(e);break;case 22:var f=e.stateNode;f._visibility&Ls&&(f._visibility&=~Ls,kp(e));break;default:kp(e)}(e.mode&je)!==Oe&&0<=Re&&0<=De&&(Qt||0.05<Xt)&&Rn(e,Re,De,Xt,qt),Mo(t),En(n),Qt=c,qt=i}function GL(e,t){for(;wa!==null;){var n=wa,i=n,c=t,f=ko(),m=_n(),x=On(),S=Pn();switch(i.tag){case 0:case 11:case 15:Cb(i,c,eo);break;case 23:case 22:i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool,c!=null&&Mi(c));break;case 24:cc(i.memoizedState.cache)}if((i.mode&je)!==Oe&&0<=Re&&0<=De&&(Qt||0.05<Xt)&&Rn(i,Re,De,Xt,qt),Mo(f),En(m),Qt=S,qt=x,i=n.child,i!==null)i.return=n,wa=i;else e:for(n=e;wa!==null;){if(i=wa,f=i.sibling,m=i.return,DL(i),i===n){wa=null;break e}if(f!==null){f.return=m,wa=f;break e}wa=m}}}function zD(){sE.forEach(function(e){return e()})}function XL(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||V.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Ao(e){if((ct&ba)!==ka&&Xe!==0)return Xe&-Xe;var t=V.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Bb()):N()}function YL(){if(co===0)if((Xe&536870912)===0||at){var e=Gp;Gp<<=1,(Gp&3932160)===0&&(Gp=262144),co=e}else co=536870912;return e=Po.current,e!==null&&(e.flags|=32),co}function Zt(e,t,n){if(Tu&&console.error("useInsertionEffect must not schedule updates."),bx&&(Rh=!0),e===At&&(St===Yi||St===$i)||e.cancelPendingCommit!==null)Fl(e,0),hr(e,Xe,co,!1);if(ar(e,n),(ct&ba)!==ka&&e===At){if(Xn)switch(t.tag){case 0:case 11:case 15:e=Ye&&X(Ye)||"Unknown",vw.has(e)||(vw.add(e),t=X(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:xw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),xw=!0)}}else $n&&Ju(e,t,n),$D(t),e===At&&((ct&ba)===ka&&(Pr|=n),Yt===_r&&hr(e,Xe,co,!1)),qn(e)}function $L(e,t,n){if((ct&(ba|No))!==ka)throw Error("Should not already be working.");if(Xe!==0&&Ye!==null){var i=Ye,c=Ca();switch(fT){case bd:case Yi:var f=ed;Pt&&((i=i._debugTask)?i.run(console.timeStamp.bind(console,"Suspended",f,c,Go,void 0,"primary-light")):console.timeStamp("Suspended",f,c,Go,void 0,"primary-light"));break;case $i:f=ed,Pt&&((i=i._debugTask)?i.run(console.timeStamp.bind(console,"Action",f,c,Go,void 0,"primary-light")):console.timeStamp("Action",f,c,Go,void 0,"primary-light"));break;default:Pt&&(i=c-ed,3>i||console.timeStamp("Blocked",ed,c,Go,void 0,5>i?"primary-light":10>i?"primary":100>i?"primary-dark":"error"))}}f=(n=!n&&(t&127)===0&&(t&e.expiredLanes)===0||hi(e,t))?UD(e,t):Rb(e,t,!0);var m=n;do{if(f===Es){Lu&&!n&&hr(e,t,0,!1),t=St,ed=la(),fT=t;break}else{if(i=Ca(),c=e.current.alternate,m&&!HD(c)){To(t),c=Ta,f=i,!Pt||f<=c||(aa?aa.run(console.timeStamp.bind(console,"Teared Render",c,f,Je,Qe,"error")):console.timeStamp("Teared Render",c,f,Je,Qe,"error")),Ei(t,i),f=Rb(e,t,!1),m=!1;continue}if(f===Xi){if(m=t,e.errorRecoveryDisabledLanes&m)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){To(t),fg(Ta,i,t,aa),Ei(t,i),t=x;e:{i=e,f=m,m=xd;var S=i.current.memoizedState.isDehydrated;if(S&&(Fl(i,x).flags|=256),x=Rb(i,x,!1),x!==Xi){if(ux&&!S){i.errorRecoveryDisabledLanes|=f,Pr|=f,f=_r;break e}i=to,to=m,i!==null&&(to===null?to=i:to.push.apply(to,i))}f=x}if(m=!1,f!==Xi)continue;else i=Ca()}}if(f===gd){To(t),fg(Ta,i,t,aa),Ei(t,i),Fl(e,0),hr(e,t,0,!0);break}e:{switch(n=e,f){case Es:case gd:throw Error("Root did not complete. This is a bug in React.");case _r:if((t&4194048)!==t)break;case Lh:To(t),$0(Ta,i,t,aa),Ei(t,i),c=t,(c&127)!==0?ih=i:(c&4194048)!==0&&(lh=i),hr(n,t,co,!Er);break e;case Xi:to=null;break;case Sh:case rw:break;default:throw Error("Unknown root exit status.")}if(V.actQueue!==null)Db(n,c,t,to,vd,wh,co,Pr,Wi,f,null,null,Ta,i);else{if((t&62914560)===t&&(m=kh+uw-Ca(),10<m)){if(hr(n,t,co,!Er),pi(n,0,!0)!==0)break e;vn=t,n.timeoutHandle=Iw(WL.bind(null,n,c,to,vd,wh,t,co,Pr,Wi,Er,f,"Throttled",Ta,i),m);break e}WL(n,c,to,vd,wh,t,co,Pr,Wi,Er,f,null,Ta,i)}}}break}while(1);qn(e)}function WL(e,t,n,i,c,f,m,x,S,L,O,P,D,U){e.timeoutHandle=el;var ie=t.subtreeFlags,he=null;if(ie&8192||(ie&16785408)===16785408){if(he={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fs},FL(t,f,he),ie=(f&62914560)===f?kh-Ca():(f&4194048)===f?lw-Ca():0,ie=k2(he,ie),ie!==null){vn=f,e.cancelPendingCommit=ie(Db.bind(null,e,t,f,n,i,c,m,x,S,O,he,he.waitingForViewTransition?"Waiting for the previous Animation":0<he.count?0<he.imgCount?"Suspended on CSS and Images":"Suspended on CSS":he.imgCount===1?"Suspended on an Image":0<he.imgCount?"Suspended on Images":null,D,U)),hr(e,f,m,!L);return}}Db(e,t,f,n,i,c,m,x,S,O,he,P,D,U)}function HD(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 c=n[i],f=c.getSnapshot;c=c.value;try{if(!Qa(f(),c))return!1}catch(m){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 hr(e,t,n,i){t&=~cx,t&=~Pr,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var c=t;0<c;){var f=31-$a(c),m=1<<f;i[f]=-1,c&=~m}n!==0&&mi(e,n,t)}function Ul(){return(ct&(ba|No))===ka?(Ic(0,!1),!1):!0}function Ab(){if(Ye!==null){if(St===uo)var e=Ye.return;else e=Ye,$f(),Ug(e),pu=null,ud=0,e=Ye;for(;e!==null;)vL(e.alternate,e),e=e.return;Ye=null}}function Ei(e,t){(e&127)!==0&&(Mr=t),(e&4194048)!==0&&(Jn=t),(e&62914560)!==0&&(cT=t),(e&2080374784)!==0&&(dT=t)}function Fl(e,t){Pt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",Qe,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",Qe,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",Qe,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",Qe,"primary-light"));var n=Ta;if(Ta=la(),Xe!==0&&0<n){if(To(Xe),Yt===Sh||Yt===_r)$0(n,Ta,t,aa);else{var i=Ta,c=aa;if(Pt&&!(i<=n)){var f=(t&738197653)===t?"tertiary-dark":"primary-dark",m=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";c?c.run(console.timeStamp.bind(console,m,n,i,Je,Qe,f)):console.timeStamp(m,n,i,Je,Qe,f)}}Ei(Xe,Ta)}if(n=aa,aa=null,(t&127)!==0){aa=Qc,c=0<=Kn&&Kn<Mr?Mr:Kn,i=0<=zi&&zi<Mr?Mr:zi,f=0<=i?i:0<=c?c:Ta,0<=ih?(To(2),W0(ih,f,t,n)):(uh&127)!==0&&(To(2),lc(Mr,f,Is)),n=c;var x=i,S=Kc,L=0<cu,O=Ir===Zc,P=Ir===rh;if(c=Ta,i=Qc,f=qy,m=Vy,Pt){if(Je="Blocking",0<n?n>c&&(n=c):n=c,0<x?x>n&&(x=n):x=n,S!==null&&n>x){var D=L?"secondary-light":"warning";i?i.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+S,x,n,Je,Qe,D)):console.timeStamp(L?"Consecutive":"Event: "+S,x,n,Je,Qe,D)}c>n&&(x=O?"error":(t&738197653)===t?"tertiary-light":"primary-light",O=P?"Promise Resolved":O?"Cascading Update":5<c-n?"Update Blocked":"Update",P=[],m!=null&&P.push(["Component name",m]),f!=null&&P.push(["Method name",f]),n={start:n,end:c,detail:{devtools:{properties:P,track:Je,trackGroup:Qe,color:x}}},i?i.run(performance.measure.bind(performance,O,n)):performance.measure(O,n))}Kn=-1.1,Ir=0,Vy=qy=null,ih=-1.1,cu=zi,zi=-1.1,Mr=la()}if((t&4194048)!==0&&(aa=Jc,c=0<=Ms&&Ms<Jn?Jn:Ms,n=0<=Qo&&Qo<Jn?Jn:Qo,i=0<=Ar&&Ar<Jn?Jn:Ar,f=0<=i?i:0<=n?n:Ta,0<=lh?(To(256),W0(lh,f,t,aa)):(uh&4194048)!==0&&(To(256),lc(Jn,f,Is)),P=i,x=Hi,S=0<Rr,L=jy===rh,f=Ta,i=Jc,m=lT,O=uT,Pt&&(Je="Transition",0<n?n>f&&(n=f):n=f,0<c?c>n&&(c=n):c=n,0<P?P>c&&(P=c):P=c,c>P&&x!==null&&(D=S?"secondary-light":"warning",i?i.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+x,P,c,Je,Qe,D)):console.timeStamp(S?"Consecutive":"Event: "+x,P,c,Je,Qe,D)),n>c&&(i?i.run(console.timeStamp.bind(console,"Action",c,n,Je,Qe,"primary-dark")):console.timeStamp("Action",c,n,Je,Qe,"primary-dark")),f>n&&(c=L?"Promise Resolved":5<f-n?"Update Blocked":"Update",P=[],O!=null&&P.push(["Component name",O]),m!=null&&P.push(["Method name",m]),n={start:n,end:f,detail:{devtools:{properties:P,track:Je,trackGroup:Qe,color:"primary-light"}}},i?i.run(performance.measure.bind(performance,c,n)):performance.measure(c,n))),Qo=Ms=-1.1,jy=0,lh=-1.1,Rr=Ar,Ar=-1.1,Jn=la()),(t&62914560)!==0&&(uh&62914560)!==0&&(To(4194304),lc(cT,Ta,Is)),(t&2080374784)!==0&&(uh&2080374784)!==0&&(To(268435456),lc(dT,Ta,Is)),n=e.timeoutHandle,n!==el&&(e.timeoutHandle=el,yE(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),vn=0,Ab(),At=e,Ye=n=ps(e.current,null),Xe=t,St=uo,zo=null,Er=!1,Lu=hi(e,t),ux=!1,Yt=Es,Wi=co=cx=Pr=Or=0,to=xd=null,wh=!1,(t&8)!==0&&(t|=t&32),i=e.entangledLanes,i!==0)for(e=e.entanglements,i&=t;0<i;)c=31-$a(i),f=1<<c,t|=e[c],i&=~f;return ts=t,Vf(),e=aT(),1000<e-tT&&(V.recentlyCreatedOwnerStacks=0,tT=e),bn.discardPendingWarnings(),n}function ZL(e,t){Pe=null,V.H=pd,V.getCurrentStack=null,Xn=!1,_o=null,t===fu||t===ph?(t=bS(),St=bd):t===$y?(t=bS(),St=iw):St=t===nx?lx:t!==null&&typeof t==="object"&&typeof t.then==="function"?yd:Ch,zo=t;var n=Ye;n===null?(Yt=gd,xp(e,wo(t,e.current))):n.mode&je&&Mg(n)}function QL(){var e=Po.current;return e===null?!0:(Xe&4194048)===Xe?Ko===null?!0:!1:(Xe&62914560)===Xe||(Xe&536870912)!==0?e===Ko:!1}function KL(){var e=V.H;return V.H=pd,e===null?pd:e}function JL(){var e=V.A;return V.A=nE,e}function Mp(e){aa===null&&(aa=e._debugTask==null?null:e._debugTask)}function Ip(){Yt=_r,Er||(Xe&4194048)!==Xe&&Po.current!==null||(Lu=!0),(Or&134217727)===0&&(Pr&134217727)===0||At===null||hr(At,Xe,co,!1)}function Rb(e,t,n){var i=ct;ct|=ba;var c=KL(),f=JL();if(At!==e||Xe!==t){if($n){var m=e.memoizedUpdaters;0<m.size&&(Mc(e,Xe),m.clear()),or(e,t)}vd=null,Fl(e,t)}t=!1,m=Yt;e:do try{if(St!==uo&&Ye!==null){var x=Ye,S=zo;switch(St){case lx:Ab(),m=Lh;break e;case bd:case Yi:case $i:case yd:Po.current===null&&(t=!0);var L=St;if(St=uo,zo=null,ql(e,x,S,L),n&&Lu){m=Es;break e}break;default:L=St,St=uo,zo=null,ql(e,x,S,L)}}eC(),m=Yt;break}catch(O){ZL(e,O)}while(1);return t&&e.shellSuspendCounter++,$f(),ct=i,V.H=c,V.A=f,Ye===null&&(At=null,Xe=0,Vf()),m}function eC(){for(;Ye!==null;)tC(Ye)}function UD(e,t){var n=ct;ct|=ba;var i=KL(),c=JL();if(At!==e||Xe!==t){if($n){var f=e.memoizedUpdaters;0<f.size&&(Mc(e,Xe),f.clear()),or(e,t)}vd=null,Mh=Ca()+cw,Fl(e,t)}else Lu=hi(e,t);e:do try{if(St!==uo&&Ye!==null)t:switch(t=Ye,f=zo,St){case Ch:St=uo,zo=null,ql(e,t,f,Ch);break;case Yi:case $i:if(mS(f)){St=uo,zo=null,aC(t);break}t=function(){St!==Yi&&St!==$i||At!==e||(St=Th),qn(e)},f.then(t,t);break e;case bd:St=Th;break e;case iw:St=ix;break e;case Th:mS(f)?(St=uo,zo=null,aC(t)):(St=uo,zo=null,ql(e,t,f,Th));break;case ix:var m=null;switch(Ye.tag){case 26:m=Ye.memoizedState;case 5:case 27:var x=Ye;if(m?$C(m):x.stateNode.complete){St=uo,zo=null;var S=x.sibling;if(S!==null)Ye=S;else{var L=x.return;L!==null?(Ye=L,Ap(L)):Ye=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}St=uo,zo=null,ql(e,t,f,ix);break;case yd:St=uo,zo=null,ql(e,t,f,yd);break;case lx:Ab(),Yt=Lh;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}V.actQueue!==null?eC():FD();break}catch(O){ZL(e,O)}while(1);if($f(),V.H=i,V.A=c,ct=n,Ye!==null)return Es;return At=null,Xe=0,Vf(),Yt}function FD(){for(;Ye!==null&&!H2();)tC(Ye)}function tC(e){var t=e.alternate;(e.mode&je)!==Oe?(kg(e),t=me(e,vb,t,e,ts),Mg(e)):t=me(e,vb,t,e,ts),e.memoizedProps=e.pendingProps,t===null?Ap(e):Ye=t}function aC(e){var t=me(e,qD,e);e.memoizedProps=e.pendingProps,t===null?Ap(e):Ye=t}function qD(e){var t=e.alternate,n=(e.mode&je)!==Oe;switch(n&&kg(e),e.tag){case 15:case 0:t=pL(t,e,e.pendingProps,e.type,void 0,Xe);break;case 11:t=pL(t,e,e.pendingProps,e.type.render,e.ref,Xe);break;case 5:Ug(e);default:vL(t,e),e=Ye=tS(e,ts),t=vb(t,e,ts)}return n&&Mg(e),t}function ql(e,t,n,i){$f(),Ug(t),pu=null,ud=0;var c=t.return;try{if(kD(e,c,t,n,Xe)){Yt=gd,xp(e,wo(n,e.current)),Ye=null;return}}catch(f){if(c!==null)throw Ye=c,f;Yt=gd,xp(e,wo(n,e.current)),Ye=null;return}if(t.flags&32768){if(at||i===Ch)e=!0;else if(Lu||(Xe&536870912)!==0)e=!1;else if(Er=e=!0,i===Yi||i===$i||i===bd||i===yd)i=Po.current,i!==null&&i.tag===13&&(i.flags|=16384);oC(t,e)}else Ap(t)}function Ap(e){var t=e;do{if((t.flags&32768)!==0){oC(t,Er);return}var n=t.alternate;if(e=t.return,kg(t),n=me(t,AD,n,t,ts),(t.mode&je)!==Oe&&cS(t),n!==null){Ye=n;return}if(t=t.sibling,t!==null){Ye=t;return}Ye=t=e}while(t!==null);Yt===Es&&(Yt=rw)}function oC(e,t){do{var n=RD(e.alternate,e);if(n!==null){n.flags&=32767,Ye=n;return}if((e.mode&je)!==Oe){cS(e),n=e.actualDuration;for(var i=e.child;i!==null;)n+=i.actualDuration,i=i.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ye=e;return}Ye=e=n}while(e!==null);Yt=Lh,Ye=null}function Db(e,t,n,i,c,f,m,x,S,L,O,P,D,U){e.cancelPendingCommit=null;do kc();while(pa!==Nr);if(bn.flushLegacyContextWarning(),bn.flushPendingUnsafeLifecycleWarnings(),(ct&(ba|No))!==ka)throw Error("Should not already be working.");if(To(n),L===Xi?fg(D,U,n,aa):i!==null?pD(D,U,n,i,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,aa):fD(D,U,n,aa),t!==null){if(n===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(f=t.lanes|t.childLanes,f|=Ny,_f(e,n,f,m,x,S),e===At&&(Ye=At=null,Xe=0),Cu=t,zr=e,vn=n,px=f,mx=c,gw=i,hx=U,bw=P,Sn=Ih,yw=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,YD($l,function(){return kd=window.event,Sn===Ih&&(Sn=fx),lC(),null})):(e.callbackNode=null,e.callbackPriority=0),ks=null,kr=la(),P!==null&&hD(U,kr,P,aa),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=V.T,V.T=null,c=bt.p,bt.p=Eo,m=ct,ct|=No;try{BD(e,t,n)}finally{ct=m,bt.p=c,V.T=i}}pa=fw,nC(),sC(),rC()}}function nC(){if(pa===fw){pa=Nr;var e=zr,t=Cu,n=vn,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=V.T,V.T=null;var c=bt.p;bt.p=Eo;var f=ct;ct|=No;try{vu=n,Su=e,Kf(),PL(t,e),Su=vu=null,n=kx;var m=G0(e.containerInfo),x=n.focusedElem,S=n.selectionRange;if(m!==x&&x&&x.ownerDocument&&j0(x.ownerDocument.documentElement,x)){if(S!==null&&ug(x)){var{start:L,end:O}=S;if(O===void 0&&(O=L),"selectionStart"in x)x.selectionStart=L,x.selectionEnd=Math.min(O,x.value.length);else{var P=x.ownerDocument||document,D=P&&P.defaultView||window;if(D.getSelection){var U=D.getSelection(),ie=x.textContent.length,he=Math.min(S.start,ie),Et=S.end===void 0?he:Math.min(S.end,ie);!U.extend&&he>Et&&(m=Et,Et=he,he=m);var st=V0(x,he),R=V0(x,Et);if(st&&R&&(U.rangeCount!==1||U.anchorNode!==st.node||U.anchorOffset!==st.offset||U.focusNode!==R.node||U.focusOffset!==R.offset)){var _=P.createRange();_.setStart(st.node,st.offset),U.removeAllRanges(),he>Et?(U.addRange(_),U.extend(R.node,R.offset)):(_.setEnd(R.node,R.offset),U.addRange(_))}}}}P=[];for(U=x;U=U.parentNode;)U.nodeType===1&&P.push({element:U,left:U.scrollLeft,top:U.scrollTop});typeof x.focus==="function"&&x.focus();for(x=0;x<P.length;x++){var E=P[x];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}jh=!!wx,kx=wx=null}finally{ct=f,bt.p=c,V.T=i}}e.current=t,pa=pw}}function sC(){if(pa===pw){pa=Nr;var e=yw;if(e!==null){kr=la();var t=ws,n=kr;!Pt||n<=t||(Is?Is.run(console.timeStamp.bind(console,e,t,n,Je,Qe,"secondary-light")):console.timeStamp(e,t,n,Je,Qe,"secondary-light"))}e=zr,t=Cu,n=vn;var i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=V.T,V.T=null;var c=bt.p;bt.p=Eo;var f=ct;ct|=No;try{vu=n,Su=e,Kf(),RL(e,t.alternate,t),Su=vu=null}finally{ct=f,bt.p=c,V.T=i}}e=hx,t=bw,ws=la(),e=t===null?e:kr,t=ws,n=Sn===dx,i=aa,ks!==null?Z0(e,t,ks,!1,i):!Pt||t<=e||(i?i.run(console.timeStamp.bind(console,n?"Commit Interrupted View Transition":"Commit",e,t,Je,Qe,n?"error":"secondary-dark")):console.timeStamp(n?"Commit Interrupted View Transition":"Commit",e,t,Je,Qe,n?"error":"secondary-dark")),pa=hw}}function rC(){if(pa===mw||pa===hw){if(pa===mw){var e=ws;ws=la();var t=ws,n=Sn===dx;!Pt||t<=e||(Is?Is.run(console.timeStamp.bind(console,n?"Interrupted View Transition":"Starting Animation",e,t,Je,Qe,n?"error":"secondary-light")):console.timeStamp(n?"Interrupted View Transition":"Starting Animation",e,t,Je,Qe,n?" error":"secondary-light")),Sn!==dx&&(Sn=dw)}pa=Nr,U2(),e=zr;var i=Cu;t=vn,n=gw;var c=i.actualDuration!==0||(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0;c?pa=Ah:(pa=Nr,Cu=zr=null,iC(e,e.pendingLanes),Zi=0,Ld=null);var f=e.pendingLanes;if(f===0&&(Br=null),c||fC(e),f=C(t),i=i.stateNode,Va&&typeof Va.onCommitFiberRoot==="function")try{var m=(i.current.flags&128)===128;switch(f){case Eo:var x=my;break;case mn:x=gy;break;case Wn:x=$l;break;case Yp:x=by;break;default:x=$l}Va.onCommitFiberRoot(Wl,i,x,m)}catch(P){Yn||(Yn=!0,console.error("React instrumentation encountered an error: %o",P))}if($n&&e.memoizedUpdaters.clear(),zD(),n!==null){m=V.T,x=bt.p,bt.p=Eo,V.T=null;try{var S=e.onRecoverableError;for(i=0;i<n.length;i++){var L=n[i],O=VD(L.stack);me(L.source,S,L.value,O)}}finally{V.T=m,bt.p=x}}(vn&3)!==0&&kc(),qn(e),f=e.pendingLanes,(t&261930)!==0&&(f&42)!==0?(dh=!0,e===gx?Sd++:(Sd=0,gx=e)):Sd=0,c||Ei(t,ws),Ic(0,!1)}}function VD(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function iC(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,cc(t)))}function kc(){return nC(),sC(),rC(),lC()}function lC(){if(pa!==Ah)return!1;var e=zr,t=px;px=0;var n=C(vn),i=Wn===0||Wn>n?Wn:n;n=V.T;var c=bt.p;try{bt.p=i,V.T=null;var f=mx;mx=null,i=zr;var m=vn;if(pa=Nr,Cu=zr=null,vn=0,(ct&(ba|No))!==ka)throw Error("Cannot flush passive effects while already rendering.");To(m),bx=!0,Rh=!1;var x=0;if(ks=null,x=Ca(),Sn===dw)lc(ws,x,Is);else{var S=ws,L=x,O=Sn===fx;!Pt||L<=S||(aa?aa.run(console.timeStamp.bind(console,O?"Waiting for Paint":"Waiting",S,L,Je,Qe,"secondary-light")):console.timeStamp(O?"Waiting for Paint":"Waiting",S,L,Je,Qe,"secondary-light"))}S=ct,ct|=No;var P=i.current;Kf(),VL(P);var D=i.current;P=hx,Kf(),HL(i,D,m,f,P),fC(i),ct=S;var U=Ca();if(D=x,P=aa,ks!==null?Z0(D,U,ks,!0,P):!Pt||U<=D||(P?P.run(console.timeStamp.bind(console,"Remaining Effects",D,U,Je,Qe,"secondary-dark")):console.timeStamp("Remaining Effects",D,U,Je,Qe,"secondary-dark")),Ei(m,U),Ic(0,!1),Rh?i===Ld?Zi++:(Zi=0,Ld=i):Zi=0,Rh=bx=!1,Va&&typeof Va.onPostCommitFiberRoot==="function")try{Va.onPostCommitFiberRoot(Wl,i)}catch(he){Yn||(Yn=!0,console.error("React instrumentation encountered an error: %o",he))}var ie=i.current.stateNode;return ie.effectDuration=0,ie.passiveEffectDuration=0,!0}finally{bt.p=c,V.T=n,iC(e,t)}}function uC(e,t,n){t=wo(n,t),dS(t),t=ub(e.stateNode,t,2),e=cr(e,t,2),e!==null&&(ar(e,2),qn(e))}function gt(e,t,n){if(Tu=!1,e.tag===3)uC(e,e,n);else{for(;t!==null;){if(t.tag===3){uC(t,e,n);return}if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof i.componentDidCatch==="function"&&(Br===null||!Br.has(i))){e=wo(n,e),dS(e),n=cb(2),i=cr(t,n,2),i!==null&&(db(n,i,t,e),ar(i,2),qn(i));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+o,re(t,function(d,m){console.error("%s must not return anything besides a function, which is used for clean-up.%s",d,m)},n,s)}a=a.next}while(a!==l)}}catch(d){Ct(t,t.return,d)}}function gu(e,t,a){try{var o=t.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var n=l.next;o=n;do{if((o.tag&e)===e){var s=o.inst,d=s.destroy;d!==void 0&&(s.destroy=void 0,(e&so)!==Ap&&(oi=!0),l=t,re(l,bM,l,a,d),(e&so)!==Ap&&(oi=!1))}o=o.next}while(o!==n)}}catch(m){Ct(t,t.return,m)}}function Zv(e,t){zl(e)?(Pl(),Wi(t,e),Ul()):Wi(t,e)}function lg(e,t,a){zl(e)?(Pl(),gu(a,e,t),Ul()):gu(a,e,t)}function Wv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Ku||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{re(e,J0,t,a)}catch(o){Ct(e,e.return,o)}}}function QT(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function ZT(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Ku||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{var l=gs(e.type,a),n=re(e,QT,t,l,o);a=EC,n!==void 0||a.has(e.type)||(a.add(e.type),re(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",X(e))})),t.__reactInternalSnapshotBeforeUpdate=n}catch(s){Ct(e,e.return,s)}}function Kv(e,t,a){a.props=gs(e.type,e.memoizedProps),a.state=e.memoizedState,zl(e)?(Pl(),re(e,WL,e,t,a),Ul()):re(e,WL,e,t,a)}function WT(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t==="function")if(zl(e))try{Pl(),e.refCleanup=t(a)}finally{Ul()}else e.refCleanup=t(a);else typeof t==="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",X(e)),t.current=a}}function Ki(e,t){try{re(e,WT,e)}catch(a){Ct(e,t,a)}}function _l(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(zl(e))try{Pl(),re(e,o)}finally{Ul(e)}else re(e,o)}catch(l){Ct(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(zl(e))try{Pl(),re(e,a,null)}finally{Ul(e)}else re(e,a,null)}catch(l){Ct(e,t,l)}else a.current=null}function Jv(e,t,a,o){var l=e.memoizedProps,n=l.id,s=l.onCommit;l=l.onRender,t=t===null?"mount":"update",kp&&(t="nested-update"),typeof l==="function"&&l(n,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof s==="function"&&s(n,t,o,a)}function KT(e,t,a,o){var l=e.memoizedProps;e=l.id,l=l.onPostCommit,t=t===null?"mount":"update",kp&&(t="nested-update"),typeof l==="function"&&l(e,t,o,a)}function eS(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{re(e,LI,o,t,a,e)}catch(l){Ct(e,e.return,l)}}function ng(e,t,a){try{re(e,kI,e.stateNode,e.type,a,t,e)}catch(o){Ct(e,e.return,o)}}function tS(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&cr(e.type)||e.tag===4}function rg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tS(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&cr(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sg(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(ux(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(ux(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=bn));else if(o!==4&&(o===27&&cr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(sg(e,t,a),e=e.sibling;e!==null;)sg(e,t,a),e=e.sibling}function Pf(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&cr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Pf(e,t,a),e=e.sibling;e!==null;)Pf(e,t,a),e=e.sibling}function JT(e){for(var t,a=e.return;a!==null;){if(tS(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=rg(e),Pf(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(sx(a),t.flags&=-33),t=rg(e),Pf(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=rg(e),sg(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function aS(e){var{stateNode:t,memoizedProps:a}=e;try{re(e,_I,e.type,a,t,e)}catch(o){Ct(e,e.return,o)}}function oS(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function eI(e,t){if(e=e.containerInfo,rb=lm,e=v0(e),Vm(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var l=o.anchorOffset,n=o.focusNode;o=o.focusOffset;try{a.nodeType,n.nodeType}catch(de){a=null;break e}var s=0,d=-1,m=-1,g=0,A=0,E=e,T=null;t:for(;;){for(var U;;){if(E!==a||l!==0&&E.nodeType!==3||(d=s+l),E!==n||o!==0&&E.nodeType!==3||(m=s+o),E.nodeType===3&&(s+=E.nodeValue.length),(U=E.firstChild)===null)break;T=E,E=U}for(;;){if(E===e)break t;if(T===a&&++g===l&&(d=s),T===n&&++A===o&&(m=s),(U=E.nextSibling)!==null)break;E=T,T=E.parentNode}E=U}a=d===-1||m===-1?null:{start:d,end:m}}else a=null}a=a||{start:0,end:0}}else a=null;sb={focusedElem:e,selectionRange:a},lm=!1;for(Ua=t;Ua!==null;)if(t=Ua,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ua=e;else for(;Ua!==null;){switch(e=t=Ua,a=e.alternate,l=e.flags,e.tag){case 0:if((l&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)l=e[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:(l&1024)!==0&&a!==null&&ZT(e,a);break;case 3:if((l&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Ig(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ig(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,Ua=e;break}Ua=t.return}}function lS(e,t,a){var o=wo(),l=Ol(),n=Bl(),s=Nl(),d=a.flags;switch(a.tag){case 0:case 11:case 15:Hl(e,a),d&4&&Qv(a,Bo|Ko);break;case 1:if(Hl(e,a),d&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Ku||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(a)||"instance")),zl(a)?(Pl(),re(a,Ry,a,e),Ul()):re(a,Ry,a,e);else{var m=gs(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Ku||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(a)||"instance")),zl(a)?(Pl(),re(a,YL,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate),Ul()):re(a,YL,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate)}d&64&&Wv(a),d&512&&Ki(a,a.return);break;case 3:if(t=Ln(),Hl(e,a),d&64&&(d=a.updateQueue,d!==null)){if(m=null,a.child!==null)switch(a.child.tag){case 27:case 5:m=a.child.stateNode;break;case 1:m=a.child.stateNode}try{re(a,J0,d,m)}catch(A){Ct(a,a.return,A)}}e.effectDuration+=cf(t);break;case 27:t===null&&d&4&&aS(a);case 26:case 5:if(Hl(e,a),t===null){if(d&4)eS(a);else if(d&64){e=a.type,t=a.memoizedProps,m=a.stateNode;try{re(a,CI,m,e,t,a)}catch(A){Ct(a,a.return,A)}}}d&512&&Ki(a,a.return);break;case 12:if(d&4){d=Ln(),Hl(e,a),e=a.stateNode,e.effectDuration+=_i(d);try{re(a,Jv,a,t,xr,e.effectDuration)}catch(A){Ct(a,a.return,A)}}else Hl(e,a);break;case 31:Hl(e,a),d&4&&sS(e,a);break;case 13:Hl(e,a),d&4&&uS(e,a),d&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(d=iI.bind(null,a),NI(e,d))));break;case 22:if(d=a.memoizedState!==null||Pn,!d){t=t!==null&&t.memoizedState!==null||Ca,m=Pn;var g=Ca;Pn=d,(Ca=t)&&!g?(Fl(e,a,(a.subtreeFlags&8772)!==0),(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&ef(a,qe,Ue)):Hl(e,a),Pn=m,Ca=g}break;case 30:break;default:Hl(e,a)}(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&((la||0.05<Jt)&&Dl(a,qe,Ue,Jt,Zt),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<Ue-qe&&(oS(a.return.alternate,a.return)||Al(a,qe,Ue,"Mount"))),To(o),ql(l),Zt=n,la=s}function nS(e){var t=e.alternate;t!==null&&(e.alternate=null,nS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&me(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wn(e,t,a){for(a=a.child;a!==null;)rS(e,t,a),a=a.sibling}function rS(e,t,a){if(Ka&&typeof Ka.onCommitFiberUnmount==="function")try{Ka.onCommitFiberUnmount(Ru,a)}catch(g){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",g))}var o=wo(),l=Ol(),n=Bl(),s=Nl();switch(a.tag){case 26:Ca||_l(a,t),wn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Ca||_l(a,t);var d=ka,m=go;cr(a.type)&&(ka=a.stateNode,go=!1),wn(e,t,a),re(a,sd,a.stateNode),ka=d,go=m;break;case 5:Ca||_l(a,t);case 6:if(d=ka,m=go,ka=null,wn(e,t,a),ka=d,go=m,ka!==null)if(go)try{re(a,II,ka,a.stateNode)}catch(g){Ct(a,t,g)}else try{re(a,TI,ka,a.stateNode)}catch(g){Ct(a,t,g)}break;case 18:ka!==null&&(go?(e=ka,ix(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ku(e)):ix(ka,a.stateNode));break;case 4:d=ka,m=go,ka=a.stateNode.containerInfo,go=!0,wn(e,t,a),ka=d,go=m;break;case 0:case 11:case 14:case 15:gu(so,a,t),Ca||og(a,t,Bo),wn(e,t,a);break;case 1:Ca||(_l(a,t),d=a.stateNode,typeof d.componentWillUnmount==="function"&&Kv(a,t,d)),wn(e,t,a);break;case 21:wn(e,t,a);break;case 22:Ca=(d=Ca)||a.memoizedState!==null,wn(e,t,a),Ca=d;break;default:wn(e,t,a)}(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(a,qe,Ue,Jt,Zt),To(o),ql(l),Zt=n,la=s}function sS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{re(t,PI,e)}catch(a){Ct(t,t.return,a)}}}function uS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{re(t,zI,e)}catch(a){Ct(t,t.return,a)}}function tI(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new OC),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new OC),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function zf(e,t){var a=tI(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Ql)if(Ju!==null&&ei!==null)ad(ei,Ju);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var l=dI.bind(null,e,o);o.then(l,l)}})}function mo(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var l=e,n=t,s=a[o],d=wo(),m=n;e:for(;m!==null;){switch(m.tag){case 27:if(cr(m.type)){ka=m.stateNode,go=!1;break e}break;case 5:ka=m.stateNode,go=!1;break e;case 3:case 4:ka=m.stateNode.containerInfo,go=!0;break e}m=m.return}if(ka===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");rS(l,n,s),ka=null,go=!1,(s.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(s,qe,Ue,"Unmount"),To(d),l=s,n=l.alternate,n!==null&&(n.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)iS(t,e),t=t.sibling}function iS(e,t){var a=wo(),o=Ol(),l=Bl(),n=Nl(),{alternate:s,flags:d}=e;switch(e.tag){case 0:case 11:case 14:case 15:mo(t,e),ho(e),d&4&&(gu(so|Ko,e,e.return),Wi(so|Ko,e),og(e,e.return,Bo|Ko));break;case 1:if(mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),d&64&&Pn&&(d=e.updateQueue,d!==null&&(s=d.callbacks,s!==null))){var m=d.shared.hiddenCallbacks;d.shared.hiddenCallbacks=m===null?s:m.concat(s)}break;case 26:if(m=hl,mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),d&4){var g=s!==null?s.memoizedState:null;if(d=e.memoizedState,s===null)if(d===null)if(e.stateNode===null){e:{d=e.type,s=e.memoizedProps,m=m.ownerDocument||m;t:switch(d){case"title":if(g=m.getElementsByTagName("title")[0],!g||g[md]||g[Xa]||g.namespaceURI===Au||g.hasAttribute("itemprop"))g=m.createElement(d),m.head.insertBefore(g,m.querySelector("head > title"));$a(g,d,s),g[Xa]=e,Oe(g),d=g;break e;case"link":var A=Sx("link","href",m).get(d+(s.href||""));if(A){for(var E=0;E<A.length;E++)if(g=A[E],g.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&g.getAttribute("rel")===(s.rel==null?null:s.rel)&&g.getAttribute("title")===(s.title==null?null:s.title)&&g.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){A.splice(E,1);break t}}g=m.createElement(d),$a(g,d,s),m.head.appendChild(g);break;case"meta":if(A=Sx("meta","content",m).get(d+(s.content||""))){for(E=0;E<A.length;E++)if(g=A[E],gt(s.content,"content"),g.getAttribute("content")===(s.content==null?null:""+s.content)&&g.getAttribute("name")===(s.name==null?null:s.name)&&g.getAttribute("property")===(s.property==null?null:s.property)&&g.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&g.getAttribute("charset")===(s.charSet==null?null:s.charSet)){A.splice(E,1);break t}}g=m.createElement(d),$a(g,d,s),m.head.appendChild(g);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+d+'". This is a bug in React.')}g[Xa]=e,Oe(g),d=g}e.stateNode=d}else xx(m,e.type,e.stateNode);else e.stateNode=vx(m,d,e.memoizedProps);else g!==d?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,d===null?xx(m,e.type,e.stateNode):vx(m,d,e.memoizedProps)):d===null&&e.stateNode!==null&&ng(e,e.memoizedProps,s.memoizedProps)}break;case 27:mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),s!==null&&d&4&&ng(e,e.memoizedProps,s.memoizedProps);break;case 5:if(mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),e.flags&32){m=e.stateNode;try{re(e,sx,m)}catch(ye){Ct(e,e.return,ye)}}d&4&&e.stateNode!=null&&(m=e.memoizedProps,ng(e,m,s!==null?s.memoizedProps:m)),d&1024&&(Hy=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(mo(t,e),ho(e),d&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");d=e.memoizedProps,s=s!==null?s.memoizedProps:d,m=e.stateNode;try{re(e,wI,m,s,d)}catch(ye){Ct(e,e.return,ye)}}break;case 3:if(m=Ln(),tm=null,g=hl,hl=jf(t.containerInfo),mo(t,e),hl=g,ho(e),d&4&&s!==null&&s.memoizedState.isDehydrated)try{re(e,UI,t.containerInfo)}catch(ye){Ct(e,e.return,ye)}Hy&&(Hy=!1,dS(e)),t.effectDuration+=cf(m);break;case 4:d=hl,hl=jf(e.stateNode.containerInfo),mo(t,e),ho(e),hl=d;break;case 12:d=Ln(),mo(t,e),ho(e),e.stateNode.effectDuration+=_i(d);break;case 31:mo(t,e),ho(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,zf(e,d)));break;case 13:mo(t,e),ho(e),e.child.flags&8192&&e.memoizedState!==null!==(s!==null&&s.memoizedState!==null)&&(_p=Ba()),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,zf(e,d)));break;case 22:m=e.memoizedState!==null;var T=s!==null&&s.memoizedState!==null,U=Pn,de=Ca;if(Pn=U||m,Ca=de||T,mo(t,e),Ca=de,Pn=U,T&&!m&&!U&&!de&&(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&ef(e,qe,Ue),ho(e),d&8192)e:for(t=e.stateNode,t._visibility=m?t._visibility&~Cd:t._visibility|Cd,!m||s===null||T||Pn||Ca||(ys(e),(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(e,qe,Ue,"Disconnect")),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){T=s=t;try{g=T.stateNode,m?re(T,MI,g):re(T,EI,T.stateNode,T.memoizedProps)}catch(ye){Ct(T,T.return,ye)}}}else if(t.tag===6){if(s===null){T=t;try{A=T.stateNode,m?re(T,AI,A):re(T,OI,A,T.memoizedProps)}catch(ye){Ct(T,T.return,ye)}}}else if(t.tag===18){if(s===null){T=t;try{E=T.stateNode,m?re(T,RI,E):re(T,DI,T.stateNode)}catch(ye){Ct(T,T.return,ye)}}}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;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}d&4&&(d=e.updateQueue,d!==null&&(s=d.retryQueue,s!==null&&(d.retryQueue=null,zf(e,s))));break;case 19:mo(t,e),ho(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,zf(e,d)));break;case 30:break;case 21:break;default:mo(t,e),ho(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&((la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<Ue-qe&&(oS(e.return.alternate,e.return)||Al(e,qe,Ue,"Mount"))),To(a),ql(o),Zt=l,la=n}function ho(e){var t=e.flags;if(t&2){try{re(e,JT,e)}catch(a){Ct(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dS(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dS(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Hl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)lS(e,t.alternate,t),t=t.sibling}function cS(e){var t=wo(),a=Ol(),o=Bl(),l=Nl();switch(e.tag){case 0:case 11:case 14:case 15:og(e,e.return,Bo),ys(e);break;case 1:_l(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount==="function"&&Kv(e,e.return,n),ys(e);break;case 27:re(e,sd,e.stateNode);case 26:case 5:_l(e,e.return),ys(e);break;case 22:e.memoizedState===null&&ys(e);break;case 30:ys(e);break;default:ys(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),To(t),ql(a),Zt=o,la=l}function ys(e){for(e=e.child;e!==null;)cS(e),e=e.sibling}function fS(e,t,a,o){var l=wo(),n=Ol(),s=Bl(),d=Nl(),m=a.flags;switch(a.tag){case 0:case 11:case 15:Fl(e,a,o),Qv(a,Bo);break;case 1:if(Fl(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&re(a,Ry,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{re(a,UT,t,e)}catch(g){Ct(a,a.return,g)}}o&&m&64&&Wv(a),Ki(a,a.return);break;case 27:aS(a);case 26:case 5:Fl(e,a,o),o&&t===null&&m&4&&eS(a),Ki(a,a.return);break;case 12:if(o&&m&4){m=Ln(),Fl(e,a,o),o=a.stateNode,o.effectDuration+=_i(m);try{re(a,Jv,a,t,xr,o.effectDuration)}catch(g){Ct(a,a.return,g)}}else Fl(e,a,o);break;case 31:Fl(e,a,o),o&&m&4&&sS(e,a);break;case 13:Fl(e,a,o),o&&m&4&&uS(e,a);break;case 22:a.memoizedState===null&&Fl(e,a,o),Ki(a,a.return);break;case 30:break;default:Fl(e,a,o)}(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(a,qe,Ue,Jt,Zt),To(l),ql(n),Zt=s,la=d}function Fl(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)fS(e,t.alternate,t,a),t=t.sibling}function ug(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&fs(e),a!=null&&zi(a))}function ig(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(fs(t),e!=null&&zi(e))}function il(e,t,a,o,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var n=t.sibling;pS(e,t,a,o,n!==null?n.actualStartTime:l),t=n}}function pS(e,t,a,o,l){var n=wo(),s=Ol(),d=Bl(),m=Nl(),g=yr,A=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&tt)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&tf(t,t.actualStartTime,l,Ma,a),il(e,t,a,o,l),A&2048&&Zv(t,uo|Ko);break;case 1:(t.mode&tt)!==ze&&0<t.actualStartTime&&((t.flags&128)!==0?Xm(t,t.actualStartTime,l,[]):(t.flags&1)!==0&&tf(t,t.actualStartTime,l,Ma,a)),il(e,t,a,o,l);break;case 3:var E=Ln(),T=Ma;Ma=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,il(e,t,a,o,l),Ma=T,A&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(fs(o),a!=null&&zi(a))),e.passiveEffectDuration+=cf(E);break;case 12:if(A&2048){A=Ln(),il(e,t,a,o,l),e=t.stateNode,e.passiveEffectDuration+=_i(A);try{re(t,KT,t,t.alternate,xr,e.passiveEffectDuration)}catch(U){Ct(t,t.return,U)}}else il(e,t,a,o,l);break;case 31:A=Ma,E=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,E!==null&&T===null?(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(Ma=!1,E=E.hydrationErrors,E!==null&&Xm(t,t.actualStartTime,l,E)):Ma=!0):Ma=!1,il(e,t,a,o,l),Ma=A;break;case 13:A=Ma,E=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,E===null||E.dehydrated===null||T!==null&&T.dehydrated!==null?Ma=!1:(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(Ma=!1,E=E.hydrationErrors,E!==null&&Xm(t,t.actualStartTime,l,E)):Ma=!0),il(e,t,a,o,l),Ma=A;break;case 23:break;case 22:T=t.stateNode,E=t.alternate,t.memoizedState!==null?T._visibility&Rn?il(e,t,a,o,l):Ji(e,t,a,o,l):T._visibility&Rn?il(e,t,a,o,l):(T._visibility|=Rn,yu(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),l),(t.mode&tt)===ze||Ma||(e=t.actualStartTime,0<=e&&0.05<l-e&&ef(t,e,l),0<=qe&&0<=Ue&&0.05<Ue-qe&&ef(t,qe,Ue))),A&2048&&ug(E,t);break;case 24:il(e,t,a,o,l),A&2048&&ig(t.alternate,t);break;default:il(e,t,a,o,l)}if((t.mode&tt)!==ze){if(e=!Ma&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<l-a&&Al(t,a,l,"Mount");0<=qe&&0<=Ue&&((la||0.05<Jt)&&Dl(t,qe,Ue,Jt,Zt),e&&0.05<Ue-qe&&Al(t,qe,Ue,"Mount"))}To(n),ql(s),Zt=d,la=m,yr=g}function yu(e,t,a,o,l,n){l=l&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var s=t.sibling;mS(e,t,a,o,l,s!==null?s.actualStartTime:n),t=s}}function mS(e,t,a,o,l,n){var s=wo(),d=Ol(),m=Bl(),g=Nl(),A=yr;l&&(t.mode&tt)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&tf(t,t.actualStartTime,n,Ma,a);var E=t.flags;switch(t.tag){case 0:case 11:case 15:yu(e,t,a,o,l,n),Zv(t,uo);break;case 23:break;case 22:var T=t.stateNode;t.memoizedState!==null?T._visibility&Rn?yu(e,t,a,o,l,n):Ji(e,t,a,o,n):(T._visibility|=Rn,yu(e,t,a,o,l,n)),l&&E&2048&&ug(t.alternate,t);break;case 24:yu(e,t,a,o,l,n),l&&E&2048&&ig(t.alternate,t);break;default:yu(e,t,a,o,l,n)}(t.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(t,qe,Ue,Jt,Zt),To(s),ql(d),Zt=m,la=g,yr=A}function Ji(e,t,a,o,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var n=t.child;n!==null;){t=n.sibling;var s=e,d=a,m=o,g=t!==null?t.actualStartTime:l,A=yr;(n.mode&tt)!==ze&&0<n.actualStartTime&&(n.flags&1)!==0&&tf(n,n.actualStartTime,g,Ma,d);var E=n.flags;switch(n.tag){case 22:Ji(s,n,d,m,g),E&2048&&ug(n.alternate,n);break;case 24:Ji(s,n,d,m,g),E&2048&&ig(n.alternate,n);break;default:Ji(s,n,d,m,g)}yr=A,n=t}}function bu(e,t,a){if(e.subtreeFlags&Gd)for(e=e.child;e!==null;)hS(e,t,a),e=e.sibling}function hS(e,t,a){switch(e.tag){case 26:bu(e,t,a),e.flags&Gd&&e.memoizedState!==null&&GI(a,hl,e.memoizedState,e.memoizedProps);break;case 5:bu(e,t,a);break;case 3:case 4:var o=hl;hl=jf(e.stateNode.containerInfo),bu(e,t,a),hl=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Gd,Gd=16777216,bu(e,t,a),Gd=o):bu(e,t,a));break;default:bu(e,t,a)}}function gS(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 ed(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],l=wo();Ua=o,vS(o,e),(o.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(o,qe,Ue,"Unmount"),To(l)}gS(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)yS(e),e=e.sibling}function yS(e){var t=wo(),a=Ol(),o=Bl(),l=Nl();switch(e.tag){case 0:case 11:case 15:ed(e),e.flags&2048&&lg(e,e.return,uo|Ko);break;case 3:var n=Ln();ed(e),e.stateNode.passiveEffectDuration+=cf(n);break;case 12:n=Ln(),ed(e),e.stateNode.passiveEffectDuration+=_i(n);break;case 22:n=e.stateNode,e.memoizedState!==null&&n._visibility&Rn&&(e.return===null||e.return.tag!==13)?(n._visibility&=~Rn,_f(e),(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(e,qe,Ue,"Disconnect")):ed(e);break;default:ed(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),To(t),ql(a),la=l,Zt=o}function _f(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],l=wo();Ua=o,vS(o,e),(o.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(o,qe,Ue,"Unmount"),To(l)}gS(e)}for(e=e.child;e!==null;)bS(e),e=e.sibling}function bS(e){var t=wo(),a=Ol(),o=Bl(),l=Nl();switch(e.tag){case 0:case 11:case 15:lg(e,e.return,uo),_f(e);break;case 22:var n=e.stateNode;n._visibility&Rn&&(n._visibility&=~Rn,_f(e));break;default:_f(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),To(t),ql(a),la=l,Zt=o}function vS(e,t){for(;Ua!==null;){var a=Ua,o=a,l=t,n=wo(),s=Ol(),d=Bl(),m=Nl();switch(o.tag){case 0:case 11:case 15:lg(o,l,uo);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool,l!=null&&fs(l));break;case 24:zi(o.memoizedState.cache)}if((o.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(o,qe,Ue,Jt,Zt),To(n),ql(s),la=m,Zt=d,o=a.child,o!==null)o.return=a,Ua=o;else e:for(a=e;Ua!==null;){if(o=Ua,n=o.sibling,s=o.return,nS(o),o===a){Ua=null;break e}if(n!==null){n.return=s,Ua=n;break e}Ua=s}}}function aI(){CM.forEach(function(e){return e()})}function SS(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Ro(e){if((ht&Aa)!==Pa&&ot!==0)return ot&-ot;var t=G.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),yg()):O()}function xS(){if(bo===0)if((ot&536870912)===0||dt){var e=np;np<<=1,(np&3932160)===0&&(np=262144),bo=e}else bo=536870912;return e=qo.current,e!==null&&(e.flags|=32),bo}function oa(e,t,a){if(oi&&console.error("useInsertionEffect must not schedule updates."),Ky&&(Vp=!0),e===Pt&&(Dt===Es||Dt===Os)||e.cancelPendingCommit!==null)Su(e,0),ir(e,ot,bo,!1);if(Wn(e,a),(ht&Aa)!==Pa&&e===Pt){if(jl)switch(t.tag){case 0:case 11:case 15:e=lt&&X(lt)||"Unknown",YC.has(e)||(YC.add(e),t=X(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:jC||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),jC=!0)}}else Ql&&Ri(e,t,a),fI(t),e===Pt&&((ht&Aa)===Pa&&(Ar|=a),ea===Ir&&ir(e,ot,bo,!1)),Gl(e)}function LS(e,t,a){if((ht&(Aa|No))!==Pa)throw Error("Should not already be working.");if(ot!==0&&lt!==null){var o=lt,l=Ba();switch(_L){case Xd:case Es:var n=Md;Gt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",n,l,Vo,void 0,"primary-light")):console.timeStamp("Suspended",n,l,Vo,void 0,"primary-light"));break;case Os:n=Md,Gt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",n,l,Vo,void 0,"primary-light")):console.timeStamp("Action",n,l,Vo,void 0,"primary-light"));break;default:Gt&&(o=l-Md,3>o||console.timeStamp("Blocked",Md,l,Vo,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}n=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Jr(e,t))?lI(e,t):cg(e,t,!0);var s=a;do{if(n===zn){ti&&!a&&ir(e,t,0,!1),t=Dt,Md=Sa(),_L=t;break}else{if(o=Ba(),l=e.current.alternate,s&&!oI(l)){Co(t),l=Na,n=o,!Gt||n<=l||(ca?ca.run(console.timeStamp.bind(console,"Teared Render",l,n,it,st,"error")):console.timeStamp("Teared Render",l,n,it,st,"error")),bs(t,o),n=cg(e,t,!1),s=!1;continue}if(n===Ds){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){Co(t),jm(Na,o,t,ca),bs(t,o),t=d;e:{o=e,n=s,s=Yd;var m=o.current.memoizedState.isDehydrated;if(m&&(Su(o,d).flags|=256),d=cg(o,d,!1),d!==Ds){if(Vy&&!m){o.errorRecoveryDisabledLanes|=n,Ar|=n,n=Ir;break e}o=io,io=s,o!==null&&(io===null?io=o:io.push.apply(io,o))}n=d}if(s=!1,n!==Ds)continue;else o=Ba()}}if(n===$d){Co(t),jm(Na,o,t,ca),bs(t,o),Su(e,0),ir(e,t,0,!0);break}e:{switch(a=e,n){case zn:case $d:throw Error("Root did not complete. This is a bug in React.");case Ir:if((t&4194048)!==t)break;case Np:Co(t),L0(Na,o,t,ca),bs(t,o),l=t,(l&127)!==0?xp=o:(l&4194048)!==0&&(Lp=o),ir(a,t,bo,!Rr);break e;case Ds:io=null;break;case Bp:case qC:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)fg(a,l,t,io,Qd,zp,bo,Ar,qs,n,null,null,Na,o);else{if((t&62914560)===t&&(s=_p+UC-Ba(),10<s)){if(ir(a,t,bo,!Rr),Kr(a,0,!0)!==0)break e;gl=t,a.timeoutHandle=a1(CS.bind(null,a,l,io,Qd,zp,t,bo,Ar,qs,Rr,n,"Throttled",Na,o),s);break e}CS(a,l,io,Qd,zp,t,bo,Ar,qs,Rr,n,null,Na,o)}}}break}while(1);Gl(e)}function CS(e,t,a,o,l,n,s,d,m,g,A,E,T,U){e.timeoutHandle=zs;var de=t.subtreeFlags,ye=null;if(de&8192||(de&16785408)===16785408){if(ye={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:bn},hS(t,n,ye),de=(n&62914560)===n?_p-Ba():(n&4194048)===n?NC-Ba():0,de=VI(ye,de),de!==null){gl=n,e.cancelPendingCommit=de(fg.bind(null,e,t,n,a,o,l,s,d,m,A,ye,ye.waitingForViewTransition?"Waiting for the previous Animation":0<ye.count?0<ye.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ye.imgCount===1?"Suspended on an Image":0<ye.imgCount?"Suspended on Images":null,T,U)),ir(e,n,s,!g);return}}fg(e,t,n,a,o,l,s,d,m,A,ye,E,T,U)}function oI(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var l=a[o],n=l.getSnapshot;l=l.value;try{if(!no(n(),l))return!1}catch(s){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 ir(e,t,a,o){t&=~$y,t&=~Ar,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var l=t;0<l;){var n=31-ao(l),s=1<<n;o[n]=-1,l&=~s}a!==0&&es(e,a,t)}function vu(){return(ht&(Aa|No))===Pa?(od(0,!1),!1):!0}function dg(){if(lt!==null){if(Dt===yo)var e=lt.return;else e=lt,sf(),xh(e),Xu=null,Pd=0,e=lt;for(;e!==null;)Yv(e.alternate,e),e=e.return;lt=null}}function bs(e,t){(e&127)!==0&&(Lr=t),(e&4194048)!==0&&(en=t),(e&62914560)!==0&&(PL=t),(e&2080374784)!==0&&(zL=t)}function Su(e,t){Gt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",st,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",st,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",st,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",st,"primary-light"));var a=Na;if(Na=Sa(),ot!==0&&0<a){if(Co(ot),ea===Bp||ea===Ir)L0(a,Na,t,ca);else{var o=Na,l=ca;if(Gt&&!(o<=a)){var n=(t&738197653)===t?"tertiary-dark":"primary-dark",s=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";l?l.run(console.timeStamp.bind(console,s,a,o,it,st,n)):console.timeStamp(s,a,o,it,st,n)}}bs(ot,Na)}if(a=ca,ca=null,(t&127)!==0){ca=Td,l=0<=Jl&&Jl<Lr?Lr:Jl,o=0<=Cs&&Cs<Lr?Lr:Cs,n=0<=o?o:0<=l?l:Na,0<=xp?(Co(2),C0(xp,n,t,a)):(Cp&127)!==0&&(Co(2),Ui(Lr,n,qn)),a=l;var d=o,m=Id,g=0<Gu,A=Cr===wd,E=Cr===Sp;if(l=Na,o=Td,n=Cy,s=ky,Gt){if(it="Blocking",0<a?a>l&&(a=l):a=l,0<d?d>a&&(d=a):d=a,m!==null&&a>d){var T=g?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,g?"Consecutive":"Event: "+m,d,a,it,st,T)):console.timeStamp(g?"Consecutive":"Event: "+m,d,a,it,st,T)}l>a&&(d=A?"error":(t&738197653)===t?"tertiary-light":"primary-light",A=E?"Promise Resolved":A?"Cascading Update":5<l-a?"Update Blocked":"Update",E=[],s!=null&&E.push(["Component name",s]),n!=null&&E.push(["Method name",n]),a={start:a,end:l,detail:{devtools:{properties:E,track:it,trackGroup:st,color:d}}},o?o.run(performance.measure.bind(performance,A,a)):performance.measure(A,a))}Jl=-1.1,Cr=0,ky=Cy=null,xp=-1.1,Gu=Cs,Cs=-1.1,Lr=Sa()}if((t&4194048)!==0&&(ca=Rd,l=0<=On&&On<en?en:On,a=0<=Zo&&Zo<en?en:Zo,o=0<=kr&&kr<en?en:kr,n=0<=o?o:0<=a?a:Na,0<=Lp?(Co(256),C0(Lp,n,t,ca)):(Cp&4194048)!==0&&(Co(256),Ui(en,n,qn)),E=o,d=ks,m=0<wr,g=wy===Sp,n=Na,o=Rd,s=NL,A=UL,Gt&&(it="Transition",0<a?a>n&&(a=n):a=n,0<l?l>a&&(l=a):l=a,0<E?E>l&&(E=l):E=l,l>E&&d!==null&&(T=m?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,m?"Consecutive":"Event: "+d,E,l,it,st,T)):console.timeStamp(m?"Consecutive":"Event: "+d,E,l,it,st,T)),a>l&&(o?o.run(console.timeStamp.bind(console,"Action",l,a,it,st,"primary-dark")):console.timeStamp("Action",l,a,it,st,"primary-dark")),n>a&&(l=g?"Promise Resolved":5<n-a?"Update Blocked":"Update",E=[],A!=null&&E.push(["Component name",A]),s!=null&&E.push(["Method name",s]),a={start:a,end:n,detail:{devtools:{properties:E,track:it,trackGroup:st,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,l,a)):performance.measure(l,a))),Zo=On=-1.1,wy=0,Lp=-1.1,wr=kr,kr=-1.1,en=Sa()),(t&62914560)!==0&&(Cp&62914560)!==0&&(Co(4194304),Ui(PL,Na,qn)),(t&2080374784)!==0&&(Cp&2080374784)!==0&&(Co(268435456),Ui(zL,Na,qn)),a=e.timeoutHandle,a!==zs&&(e.timeoutHandle=zs,NM(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),gl=0,dg(),Pt=e,lt=a=vn(e.current,null),ot=t,Dt=yo,Uo=null,Rr=!1,ti=Jr(e,t),Vy=!1,ea=zn,qs=bo=$y=Ar=Mr=0,io=Yd=null,zp=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)l=31-ao(o),n=1<<l,t|=e[l],o&=~n;return an=t,af(),e=AL(),1000<e-ML&&(G.recentlyCreatedOwnerStacks=0,ML=e),pl.discardPendingWarnings(),a}function kS(e,t){Fe=null,G.H=Fd,G.getCurrentStack=null,jl=!1,Do=null,t===$u||t===Ip?(t=$0(),Dt=Xd):t===My?(t=$0(),Dt=BC):Dt=t===zy?Gy:t!==null&&typeof t==="object"&&typeof t.then==="function"?jd:Up,Uo=t;var a=lt;a===null?(ea=$d,Of(e,ko(t,e.current))):a.mode&tt&&uh(a)}function wS(){var e=qo.current;return e===null?!0:(ot&4194048)===ot?Wo===null?!0:!1:(ot&62914560)===ot||(ot&536870912)!==0?e===Wo:!1}function TS(){var e=G.H;return G.H=Fd,e===null?Fd:e}function IS(){var e=G.A;return G.A=LM,e}function Hf(e){ca===null&&(ca=e._debugTask==null?null:e._debugTask)}function Ff(){ea=Ir,Rr||(ot&4194048)!==ot&&qo.current!==null||(ti=!0),(Mr&134217727)===0&&(Ar&134217727)===0||Pt===null||ir(Pt,ot,bo,!1)}function cg(e,t,a){var o=ht;ht|=Aa;var l=TS(),n=IS();if(Pt!==e||ot!==t){if(Ql){var s=e.memoizedUpdaters;0<s.size&&(ad(e,ot),s.clear()),Kn(e,t)}Qd=null,Su(e,t)}t=!1,s=ea;e:do try{if(Dt!==yo&&lt!==null){var d=lt,m=Uo;switch(Dt){case Gy:dg(),s=Np;break e;case Xd:case Es:case Os:case jd:qo.current===null&&(t=!0);var g=Dt;if(Dt=yo,Uo=null,xu(e,d,m,g),a&&ti){s=zn;break e}break;default:g=Dt,Dt=yo,Uo=null,xu(e,d,m,g)}}RS(),s=ea;break}catch(A){kS(e,A)}while(1);return t&&e.shellSuspendCounter++,sf(),ht=o,G.H=l,G.A=n,lt===null&&(Pt=null,ot=0,af()),s}function RS(){for(;lt!==null;)MS(lt)}function lI(e,t){var a=ht;ht|=Aa;var o=TS(),l=IS();if(Pt!==e||ot!==t){if(Ql){var n=e.memoizedUpdaters;0<n.size&&(ad(e,ot),n.clear()),Kn(e,t)}Qd=null,Hp=Ba()+PC,Su(e,t)}else ti=Jr(e,t);e:do try{if(Dt!==yo&&lt!==null)t:switch(t=lt,n=Uo,Dt){case Up:Dt=yo,Uo=null,xu(e,t,n,Up);break;case Es:case Os:if(G0(n)){Dt=yo,Uo=null,AS(t);break}t=function(){Dt!==Es&&Dt!==Os||Pt!==e||(Dt=Pp),Gl(e)},n.then(t,t);break e;case Xd:Dt=Pp;break e;case BC:Dt=Fy;break e;case Pp:G0(n)?(Dt=yo,Uo=null,AS(t)):(Dt=yo,Uo=null,xu(e,t,n,Pp));break;case Fy:var s=null;switch(lt.tag){case 26:s=lt.memoizedState;case 5:case 27:var d=lt;if(s?Lx(s):d.stateNode.complete){Dt=yo,Uo=null;var m=d.sibling;if(m!==null)lt=m;else{var g=d.return;g!==null?(lt=g,Gf(g)):lt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Dt=yo,Uo=null,xu(e,t,n,Fy);break;case jd:Dt=yo,Uo=null,xu(e,t,n,jd);break;case Gy:dg(),ea=Np;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?RS():nI();break}catch(A){kS(e,A)}while(1);if(sf(),G.H=o,G.A=l,ht=a,lt!==null)return zn;return Pt=null,ot=0,af(),ea}function nI(){for(;lt!==null&&!oR();)MS(lt)}function MS(e){var t=e.alternate;(e.mode&tt)!==ze?(sh(e),t=re(e,tg,t,e,an),uh(e)):t=re(e,tg,t,e,an),e.memoizedProps=e.pendingProps,t===null?Gf(e):lt=t}function AS(e){var t=re(e,rI,e);e.memoizedProps=e.pendingProps,t===null?Gf(e):lt=t}function rI(e){var t=e.alternate,a=(e.mode&tt)!==ze;switch(a&&sh(e),e.tag){case 15:case 0:t=Hv(t,e,e.pendingProps,e.type,void 0,ot);break;case 11:t=Hv(t,e,e.pendingProps,e.type.render,e.ref,ot);break;case 5:xh(e);default:Yv(t,e),e=lt=M0(e,an),t=tg(t,e,an)}return a&&uh(e),t}function xu(e,t,a,o){sf(),xh(t),Xu=null,Pd=0;var l=t.return;try{if(VT(e,l,t,a,ot)){ea=$d,Of(e,ko(a,e.current)),lt=null;return}}catch(n){if(l!==null)throw lt=l,n;ea=$d,Of(e,ko(a,e.current)),lt=null;return}if(t.flags&32768){if(dt||o===Up)e=!0;else if(ti||(ot&536870912)!==0)e=!1;else if(Rr=e=!0,o===Es||o===Os||o===Xd||o===jd)o=qo.current,o!==null&&o.tag===13&&(o.flags|=16384);DS(t,e)}else Gf(t)}function Gf(e){var t=e;do{if((t.flags&32768)!==0){DS(t,Rr);return}var a=t.alternate;if(e=t.return,sh(t),a=re(t,jT,a,t,an),(t.mode&tt)!==ze&&P0(t),a!==null){lt=a;return}if(t=t.sibling,t!==null){lt=t;return}lt=t=e}while(t!==null);ea===zn&&(ea=qC)}function DS(e,t){do{var a=YT(e.alternate,e);if(a!==null){a.flags&=32767,lt=a;return}if((e.mode&tt)!==ze){P0(e),a=e.actualDuration;for(var o=e.child;o!==null;)a+=o.actualDuration,o=o.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){lt=e;return}lt=e=a}while(e!==null);ea=Np,lt=null}function fg(e,t,a,o,l,n,s,d,m,g,A,E,T,U){e.cancelPendingCommit=null;do td();while(wa!==Er);if(pl.flushLegacyContextWarning(),pl.flushPendingUnsafeLifecycleWarnings(),(ht&(Aa|No))!==Pa)throw Error("Should not already be working.");if(Co(a),g===Ds?jm(T,U,a,ca):o!==null?DT(T,U,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ca):AT(T,U,a,ca),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(n=t.lanes|t.childLanes,n|=by,$c(e,a,n,s,d,m),e===Pt&&(lt=Pt=null,ot=0),ai=t,Or=e,gl=a,Yy=n,Zy=l,VC=o,Qy=U,$C=E,yl=Fp,XC=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cI(Iu,function(){return tc=window.event,yl===Fp&&(yl=jy),NS(),null})):(e.callbackNode=null,e.callbackPriority=0),En=null,xr=Sa(),E!==null&&ET(U,xr,E,ca),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null,l=kt.p,kt.p=Eo,s=ht,ht|=No;try{eI(e,t,a)}finally{ht=s,kt.p=l,G.T=o}}wa=_C,ES(),OS(),qS()}}function ES(){if(wa===_C){wa=Er;var e=Or,t=ai,a=gl,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null;var l=kt.p;kt.p=Eo;var n=ht;ht|=No;try{Ju=a,ei=e,ff(),iS(t,e),ei=Ju=null,a=sb;var s=v0(e.containerInfo),d=a.focusedElem,m=a.selectionRange;if(s!==d&&d&&d.ownerDocument&&b0(d.ownerDocument.documentElement,d)){if(m!==null&&Vm(d)){var{start:g,end:A}=m;if(A===void 0&&(A=g),"selectionStart"in d)d.selectionStart=g,d.selectionEnd=Math.min(A,d.value.length);else{var E=d.ownerDocument||document,T=E&&E.defaultView||window;if(T.getSelection){var U=T.getSelection(),de=d.textContent.length,ye=Math.min(m.start,de),Ft=m.end===void 0?ye:Math.min(m.end,de);!U.extend&&ye>Ft&&(s=Ft,Ft=ye,ye=s);var pt=y0(d,ye),w=y0(d,Ft);if(pt&&w&&(U.rangeCount!==1||U.anchorNode!==pt.node||U.anchorOffset!==pt.offset||U.focusNode!==w.node||U.focusOffset!==w.offset)){var I=E.createRange();I.setStart(pt.node,pt.offset),U.removeAllRanges(),ye>Ft?(U.addRange(I),U.extend(w.node,w.offset)):(I.setEnd(w.node,w.offset),U.addRange(I))}}}}E=[];for(U=d;U=U.parentNode;)U.nodeType===1&&E.push({element:U,left:U.scrollLeft,top:U.scrollTop});typeof d.focus==="function"&&d.focus();for(d=0;d<E.length;d++){var M=E[d];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}lm=!!rb,sb=rb=null}finally{ht=n,kt.p=l,G.T=o}}e.current=t,wa=HC}}function OS(){if(wa===HC){wa=Er;var e=XC;if(e!==null){xr=Sa();var t=Dn,a=xr;!Gt||a<=t||(qn?qn.run(console.timeStamp.bind(console,e,t,a,it,st,"secondary-light")):console.timeStamp(e,t,a,it,st,"secondary-light"))}e=Or,t=ai,a=gl;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=G.T,G.T=null;var l=kt.p;kt.p=Eo;var n=ht;ht|=No;try{Ju=a,ei=e,ff(),lS(e,t.alternate,t),ei=Ju=null}finally{ht=n,kt.p=l,G.T=o}}e=Qy,t=$C,Dn=Sa(),e=t===null?e:xr,t=Dn,a=yl===Xy,o=ca,En!==null?k0(e,t,En,!1,o):!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,it,st,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,it,st,a?"error":"secondary-dark")),wa=FC}}function qS(){if(wa===GC||wa===FC){if(wa===GC){var e=Dn;Dn=Sa();var t=Dn,a=yl===Xy;!Gt||t<=e||(qn?qn.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,it,st,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,it,st,a?" error":"secondary-light")),yl!==Xy&&(yl=zC)}wa=Er,lR(),e=Or;var o=ai;t=gl,a=VC;var l=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;l?wa=Gp:(wa=Er,ai=Or=null,BS(e,e.pendingLanes),Bs=0,Wd=null);var n=e.pendingLanes;if(n===0&&(Dr=null),l||_S(e),n=y(t),o=o.stateNode,Ka&&typeof Ka.onCommitFiberRoot==="function")try{var s=(o.current.flags&128)===128;switch(n){case Eo:var d=Zg;break;case cl:d=Wg;break;case Zl:d=Iu;break;case sp:d=Kg;break;default:d=Iu}Ka.onCommitFiberRoot(Ru,o,d,s)}catch(E){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",E))}if(Ql&&e.memoizedUpdaters.clear(),aI(),a!==null){s=G.T,d=kt.p,kt.p=Eo,G.T=null;try{var m=e.onRecoverableError;for(o=0;o<a.length;o++){var g=a[o],A=sI(g.stack);re(g.source,m,g.value,A)}}finally{G.T=s,kt.p=d}}(gl&3)!==0&&td(),Gl(e),n=e.pendingLanes,(t&261930)!==0&&(n&42)!==0?(wp=!0,e===Wy?Zd++:(Zd=0,Wy=e)):Zd=0,l||bs(t,Dn),od(0,!1)}}function sI(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function BS(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zi(t)))}function td(){return ES(),OS(),qS(),NS()}function NS(){if(wa!==Gp)return!1;var e=Or,t=Yy;Yy=0;var a=y(gl),o=Zl===0||Zl>a?Zl:a;a=G.T;var l=kt.p;try{kt.p=o,G.T=null;var n=Zy;Zy=null,o=Or;var s=gl;if(wa=Er,ai=Or=null,gl=0,(ht&(Aa|No))!==Pa)throw Error("Cannot flush passive effects while already rendering.");Co(s),Ky=!0,Vp=!1;var d=0;if(En=null,d=Ba(),yl===zC)Ui(Dn,d,qn);else{var m=Dn,g=d,A=yl===jy;!Gt||g<=m||(ca?ca.run(console.timeStamp.bind(console,A?"Waiting for Paint":"Waiting",m,g,it,st,"secondary-light")):console.timeStamp(A?"Waiting for Paint":"Waiting",m,g,it,st,"secondary-light"))}m=ht,ht|=No;var E=o.current;ff(),yS(E);var T=o.current;E=Qy,ff(),pS(o,T,s,n,E),_S(o),ht=m;var U=Ba();if(T=d,E=ca,En!==null?k0(T,U,En,!0,E):!Gt||U<=T||(E?E.run(console.timeStamp.bind(console,"Remaining Effects",T,U,it,st,"secondary-dark")):console.timeStamp("Remaining Effects",T,U,it,st,"secondary-dark")),bs(s,U),od(0,!1),Vp?o===Wd?Bs++:(Bs=0,Wd=o):Bs=0,Vp=Ky=!1,Ka&&typeof Ka.onPostCommitFiberRoot==="function")try{Ka.onPostCommitFiberRoot(Ru,o)}catch(ye){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",ye))}var de=o.current.stateNode;return de.effectDuration=0,de.passiveEffectDuration=0,!0}finally{kt.p=l,G.T=a,BS(e,t)}}function US(e,t,a){t=ko(a,t),z0(t),t=Vh(e.stateNode,t,2),e=nr(e,t,2),e!==null&&(Wn(e,2),Gl(e))}function Ct(e,t,a){if(oi=!1,e.tag===3)US(e,e,a);else{for(;t!==null;){if(t.tag===3){US(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(Dr===null||!Dr.has(o))){e=ko(a,e),z0(e),a=$h(2),o=nr(t,a,2),o!==null&&(Xh(a,o,t,e),Wn(o,2),Gl(o));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
154
154
 
155
155
  Error message:
156
156
 
157
- %s`,n)}}function _b(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new rE;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(n)||(ux=!0,c.add(n),i=jD.bind(null,e,t,n),$n&&Mc(e,n),t.then(i,i))}function jD(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,(n&127)!==0?0>Kn&&(Mr=Kn=la(),Qc=sh("Promise Resolved"),Ir=rh):(n&4194048)!==0&&0>Qo&&(Jn=Qo=la(),Jc=sh("Promise Resolved"),jy=rh),XL()&&V.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,a)}}function pg(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new kM;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(a)||(Vy=!0,l.add(a),o=uI.bind(null,e,t,a),Ql&&ad(e,a),t.then(o,o))}function uI(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>Jl&&(Lr=Jl=Sa(),Td=vp("Promise Resolved"),Cr=Sp):(a&4194048)!==0&&0>Zo&&(en=Zo=Sa(),Rd=vp("Promise Resolved"),wy=Sp),SS()&&G.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
158
158
 
159
159
  When testing, code that resolves suspended data should be wrapped into act(...):
160
160
 
@@ -163,7 +163,7 @@ act(() => {
163
163
  });
164
164
  /* assert on the output */
165
165
 
166
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),At===e&&(Xe&n)===n&&(Yt===_r||Yt===Sh&&(Xe&62914560)===Xe&&Ca()-kh<uw?(ct&ba)===ka&&Fl(e,0):cx|=n,Wi===Xe&&(Wi=0)),qn(e)}function cC(e,t){t===0&&(t=kl()),e=qa(e,t),e!==null&&(ar(e,t),qn(e))}function GD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cC(e,n)}function XD(e,t){var n=0;switch(e.tag){case 31:case 13:var{stateNode:i,memoizedState:c}=e;c!==null&&(n=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}i!==null&&i.delete(t),cC(e,n)}function Eb(e,t,n){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var i=e,c=t,f=c.type===Fp;f=n||f,c.tag!==22?c.flags&67108864?f&&me(c,dC,i,c):Eb(i,c,f):c.memoizedState===null&&(f&&c.flags&8192?me(c,dC,i,c):c.subtreeFlags&67108864&&me(c,Eb,i,c,f)),t=t.sibling}}function dC(e,t){Dt(!0);try{NL(t),jL(t),zL(e,t.alternate,t,!1),UL(e,t,0,null,!1,0)}finally{Dt(!1)}}function fC(e){var t=!0;e.current.mode&(ja|gn)||(t=!1),Eb(e,e.current,t)}function pC(e){if((ct&ba)===ka){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=X(e)||"ReactComponent",Dh!==null){if(Dh.has(t))return;Dh.add(t)}else Dh=new Set([t]);me(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Mc(e,t){$n&&e.memoizedUpdaters.forEach(function(n){Ju(e,n,t)})}function YD(e,t){var n=V.actQueue;return n!==null?(n.push(t),uE):hy(e,t)}function $D(e){XL()&&V.actQueue===null&&me(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
166
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Pt===e&&(ot&a)===a&&(ea===Ir||ea===Bp&&(ot&62914560)===ot&&Ba()-_p<UC?(ht&Aa)===Pa&&Su(e,0):$y|=a,qs===ot&&(qs=0)),Gl(e)}function PS(e,t){t===0&&(t=nu()),e=Wa(e,t),e!==null&&(Wn(e,t),Gl(e))}function iI(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),PS(e,a)}function dI(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:l}=e;l!==null&&(a=l.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}o!==null&&o.delete(t),PS(e,a)}function mg(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,l=t,n=l.type===tp;n=a||n,l.tag!==22?l.flags&67108864?n&&re(l,zS,o,l):mg(o,l,n):l.memoizedState===null&&(n&&l.flags&8192?re(l,zS,o,l):l.subtreeFlags&67108864&&re(l,mg,o,l,n)),t=t.sibling}}function zS(e,t){_t(!0);try{cS(t),bS(t),fS(e,t.alternate,t,!1),mS(e,t,0,null,!1,0)}finally{_t(!1)}}function _S(e){var t=!0;e.current.mode&(Ja|fl)||(t=!1),mg(e,e.current,t)}function HS(e){if((ht&Aa)===Pa){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=X(e)||"ReactComponent",$p!==null){if($p.has(t))return;$p.add(t)}else $p=new Set([t]);re(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function ad(e,t){Ql&&e.memoizedUpdaters.forEach(function(a){Ri(e,a,t)})}function cI(e,t){var a=G.actQueue;return a!==null?(a.push(t),IM):Qg(e,t)}function fI(e){SS()&&G.actQueue===null&&re(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
167
 
168
168
  When testing, code that causes React state updates should be wrapped into act(...):
169
169
 
@@ -172,86 +172,65 @@ act(() => {
172
172
  });
173
173
  /* assert on the output */
174
174
 
175
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,X(e))})}function qn(e){e!==wu&&e.next===null&&(wu===null?_h=wu=e:wu=wu.next=e),Eh=!0,V.actQueue!==null?xx||(xx=!0,bC()):yx||(yx=!0,bC())}function Ic(e,t){if(!vx&&Eh){vx=!0;do{var n=!1;for(var i=_h;i!==null;){if(!t)if(e!==0){var c=i.pendingLanes;if(c===0)var f=0;else{var m=i.suspendedLanes,x=i.pingedLanes;f=(1<<31-$a(42|e)+1)-1,f&=c&~(m&~x),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(n=!0,gC(i,f))}else f=Xe,f=pi(i,i===At?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==el),(f&3)===0||hi(i,f)||(n=!0,gC(i,f));i=i.next}}while(n);vx=!1}}function WD(){kd=window.event,Ob()}function Ob(){Eh=xx=yx=!1;var e=0;Hr!==0&&a2()&&(e=Hr);for(var t=Ca(),n=null,i=_h;i!==null;){var c=i.next,f=hC(i,t);if(f===0)i.next=null,n===null?_h=c:n.next=c,c===null&&(wu=n);else if(n=i,e!==0||(f&3)!==0)Eh=!0;i=c}pa!==Nr&&pa!==Ah||Ic(e,!1),Hr!==0&&(Hr=0)}function hC(e,t){for(var{suspendedLanes:n,pingedLanes:i,expirationTimes:c}=e,f=e.pendingLanes&-62914561;0<f;){var m=31-$a(f),x=1<<m,S=c[m];if(S===-1){if((x&n)===0||(x&i)!==0)c[m]=Km(x,t)}else S<=t&&(e.expiredLanes|=x);f&=~x}if(t=At,n=Xe,n=pi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==el),i=e.callbackNode,n===0||e===t&&(St===Yi||St===$i)||e.cancelPendingCommit!==null)return i!==null&&Pb(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||hi(e,n)){if(t=n&-n,t!==e.callbackPriority||V.actQueue!==null&&i!==Sx)Pb(i);else return t;switch(C(n)){case Eo:case mn:n=gy;break;case Wn:n=$l;break;case Yp:n=by;break;default:n=$l}return i=mC.bind(null,e),V.actQueue!==null?(V.actQueue.push(i),n=Sx):n=hy(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&Pb(i),e.callbackPriority=2,e.callbackNode=null,2}function mC(e,t){if(dh=ch=!1,kd=window.event,pa!==Nr&&pa!==Ah)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Sn===Ih&&(Sn=fx),kc()&&e.callbackNode!==n)return null;var i=Xe;if(i=pi(e,e===At?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==el),i===0)return null;return $L(e,i,t),hC(e,Ca()),e.callbackNode!=null&&e.callbackNode===n?mC.bind(null,e):null}function gC(e,t){if(kc())return null;ch=dh,dh=!1,$L(e,t,!0)}function Pb(e){e!==Sx&&e!==null&&z2(e)}function bC(){V.actQueue!==null&&V.actQueue.push(function(){return Ob(),null}),xE(function(){(ct&(ba|No))!==ka?hy(my,WD):Ob()})}function Bb(){if(Hr===0){var e=Ui;e===0&&(e=jp,jp<<=1,(jp&261888)===0&&(jp=256)),Hr=e}return Hr}function yC(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return Ct(e,"action"),sc(""+e)}function xC(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 ZD(e,t,n,i,c){if(t==="submit"&&n&&n.stateNode===c){var f=yC((c[Wa]||null).action),m=i.submitter;m&&(t=(t=m[Wa]||null)?yC(t.formAction):m.getAttribute("formAction"),t!==null&&(f=t,m=null));var x=new Kp("action","action",null,i,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Hr!==0){var S=m?xC(c,m):new FormData(c),L={pending:!0,data:S,method:c.method,action:f};Object.freeze(L),ab(n,L,null,S)}}else typeof f==="function"&&(x.preventDefault(),S=m?xC(c,m):new FormData(c),L={pending:!0,data:S,method:c.method,action:f},Object.freeze(L),ab(n,L,f,S))},currentTarget:c}]})}}function Rp(e,t,n){e.currentTarget=n;try{t(e)}catch(i){Ey(i)}e.currentTarget=null}function vC(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n];e:{var c=void 0,f=i.event;if(i=i.listeners,t)for(var m=i.length-1;0<=m;m--){var x=i[m],S=x.instance,L=x.currentTarget;if(x=x.listener,S!==c&&f.isPropagationStopped())break e;S!==null?me(S,Rp,f,x,L):Rp(f,x,L),c=S}else for(m=0;m<i.length;m++){if(x=i[m],S=x.instance,L=x.currentTarget,x=x.listener,S!==c&&f.isPropagationStopped())break e;S!==null?me(S,Rp,f,x,L):Rp(f,x,L),c=S}}}}function nt(e,t){Lx.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=t[yy];n===void 0&&(n=t[yy]=new Set);var i=e+"__bubble";n.has(i)||(SC(t,e,2,!1),n.add(i))}function Nb(e,t,n){Lx.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var i=0;t&&(i|=4),SC(n,e,i,t)}function zb(e){if(!e[Oh]){e[Oh]=!0,b1.forEach(function(n){n!=="selectionchange"&&(Lx.has(n)||Nb(n,!1,e),Nb(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Oh]||(t[Oh]=!0,Nb("selectionchange",!1,t))}}function SC(e,t,n,i){switch(e1(t)){case Eo:var c=R2;break;case mn:c=D2;break;default:c=ey}n=c.bind(null,t,n,e),c=void 0,!Cy||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),i?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function Hb(e,t,n,i,c){var f=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var x=i.stateNode.containerInfo;if(x===c)break;if(m===4)for(m=i.return;m!==null;){var S=m.tag;if((S===3||S===4)&&m.stateNode.containerInfo===c)return;m=m.return}for(;x!==null;){if(m=xe(x),m===null)return;if(S=m.tag,S===5||S===6||S===26||S===27){i=f=m;continue e}x=x.parentNode}}i=i.return}_0(function(){var L=f,O=ig(n),P=[];e:{var D=eT.get(e);if(D!==void 0){var U=Kp,ie=e;switch(e){case"keypress":if(zf(n)===0)break e;case"keydown":case"keyup":U=w_;break;case"focusin":ie="focus",U=My;break;case"focusout":ie="blur",U=My;break;case"beforeblur":case"afterblur":U=My;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":U=U1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=p_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=I_;break;case Z1:case Q1:case K1:U=g_;break;case J1:U=R_;break;case"scroll":case"scrollend":U=d_;break;case"wheel":U=__;break;case"copy":case"cut":case"paste":U=y_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=q1;break;case"toggle":case"beforetoggle":U=O_}var he=(t&4)!==0,Et=!he&&(e==="scroll"||e==="scrollend"),st=he?D!==null?D+"Capture":null:D;he=[];for(var R=L,_;R!==null;){var E=R;if(_=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||_===null||st===null||(E=rc(R,st),E!=null&&he.push(Ac(R,E,_))),Et)break;R=R.return}0<he.length&&(D=new U(D,ie,null,n,O),P.push({event:D,listeners:he}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",D&&n!==Uc&&(ie=n.relatedTarget||n.fromElement)&&(xe(ie)||ie[vr]))break e;if(U||D){if(D=O.window===O?O:(D=O.ownerDocument)?D.defaultView||D.parentWindow:window,U){if(ie=n.relatedTarget||n.toElement,U=L,ie=ie?xe(ie):null,ie!==null&&(Et=A(ie),he=ie.tag,ie!==Et||he!==5&&he!==27&&he!==6))ie=null}else U=null,ie=L;if(U!==ie){if(he=U1,E="onMouseLeave",st="onMouseEnter",R="mouse",e==="pointerout"||e==="pointerover")he=q1,E="onPointerLeave",st="onPointerEnter",R="pointer";if(Et=U==null?D:ze(U),_=ie==null?D:ze(ie),D=new he(E,R+"leave",U,n,O),D.target=Et,D.relatedTarget=_,E=null,xe(O)===L&&(he=new he(st,R+"enter",ie,n,O),he.target=_,he.relatedTarget=Et,E=he),Et=E,U&&ie)t:{he=QD,st=U,R=ie,_=0;for(E=st;E;E=he(E))_++;E=0;for(var Z=R;Z;Z=he(Z))E++;for(;0<_-E;)st=he(st),_--;for(;0<E-_;)R=he(R),E--;for(;_--;){if(st===R||R!==null&&st===R.alternate){he=st;break t}st=he(st),R=he(R)}he=null}else he=null;U!==null&&LC(P,D,U,he,!1),ie!==null&&Et!==null&&LC(P,Et,ie,he,!0)}}}e:{if(D=L?ze(L):window,U=D.nodeName&&D.nodeName.toLowerCase(),U==="select"||U==="input"&&D.type==="file")var ce=H0;else if(N0(D))if($1)ce=uD;else{ce=iD;var Be=rD}else U=D.nodeName,!U||U.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?L&&nc(L.elementType)&&(ce=H0):ce=lD;if(ce&&(ce=ce(e,L))){z0(P,ce,n,O);break e}Be&&Be(e,D,L),e==="focusout"&&L&&D.type==="number"&&L.memoizedProps.value!=null&&tg(D,"number",D.value)}switch(Be=L?ze(L):window,e){case"focusin":if(N0(Be)||Be.contentEditable==="true")au=Be,Ay=L,Yc=null;break;case"focusout":Yc=Ay=au=null;break;case"mousedown":Ry=!0;break;case"contextmenu":case"mouseup":case"dragend":Ry=!1,X0(P,n,O);break;case"selectionchange":if(z_)break;case"keydown":case"keyup":X0(P,n,O)}var Ie;if(Iy)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else tu?P0(e,n)&&(Le="onCompositionEnd"):e==="keydown"&&n.keyCode===V1&&(Le="onCompositionStart");if(Le&&(j1&&n.locale!=="ko"&&(tu||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&tu&&(Ie=E0()):(Sr=O,Ty=("value"in Sr)?Sr.value:Sr.textContent,tu=!0)),Be=Dp(L,Le),0<Be.length&&(Le=new F1(Le,e,null,n,O),P.push({event:Le,listeners:Be}),Ie?Le.data=Ie:(Ie=B0(n),Ie!==null&&(Le.data=Ie)))),Ie=B_?aD(e,n):oD(e,n))Le=Dp(L,"onBeforeInput"),0<Le.length&&(Be=new v_("onBeforeInput","beforeinput",null,n,O),P.push({event:Be,listeners:Le}),Be.data=Ie);ZD(P,e,L,n,O)}vC(P,t)})}function Ac(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dp(e,t){for(var n=t+"Capture",i=[];e!==null;){var c=e,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=rc(e,n),c!=null&&i.unshift(Ac(e,c,f)),c=rc(e,t),c!=null&&i.push(Ac(e,c,f))),e.tag===3)return i;e=e.return}return[]}function QD(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function LC(e,t,n,i,c){for(var f=t._reactName,m=[];n!==null&&n!==i;){var x=n,S=x.alternate,L=x.stateNode;if(x=x.tag,S!==null&&S===i)break;x!==5&&x!==26&&x!==27||L===null||(S=L,c?(L=rc(n,f),L!=null&&m.unshift(Ac(n,L,S))):c||(L=rc(n,f),L!=null&&m.push(Ac(n,L,S)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}function Ub(e,t){KR(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||z1||(z1=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:Oi,possibleRegistrationNames:xy};nc(e)||typeof t.is==="string"||eD(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function La(e,t,n,i){t!==n&&(n=mr(n),mr(t)!==n&&(i[e]=t))}function KD(e,t,n){t.forEach(function(i){n[wC(i)]=i==="style"?qb(e):e.getAttribute(i)})}function Vn(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function CC(e,t){return e=e.namespaceURI===Wp||e.namespaceURI===Ql?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function mr(e){return tr(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",oo(e)),Sa(e)),(typeof e==="string"?e:""+e).replace(cE,`
176
- `).replace(dE,"")}function TC(e,t){return t=mr(t),mr(e)===t?!0:!1}function Mt(e,t,n,i,c,f){switch(n){case"children":if(typeof i==="string")Nf(i,t,!1),t==="body"||t==="textarea"&&i===""||oc(e,i);else if(typeof i==="number"||typeof i==="bigint")Nf(""+i,t,!1),t!=="body"&&oc(e,""+i);break;case"className":Of(e,"class",i);break;case"tabIndex":Of(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Of(e,n,i);break;case"style":A0(e,i,f);break;case"data":if(t!=="object"){Of(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){n==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n),e.removeAttribute(n);break}if(i==null||typeof i==="function"||typeof i==="symbol"||typeof i==="boolean"){e.removeAttribute(n);break}Ct(i,n),i=sc(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(i!=null&&(t==="form"?n==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof i==="function"&&(c.encType==null&&c.method==null||Nh||(Nh=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),c.target==null||Bh||(Bh=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?n==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||c.type==="submit"||c.type==="image"||Ph?t!=="button"||c.type==null||c.type==="submit"||Ph?typeof i==="function"&&(c.name==null||Cw||(Cw=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),c.formEncType==null&&c.formMethod==null||Nh||(Nh=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),c.formTarget==null||Bh||(Bh=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Ph=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Ph=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):n==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),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 f==="function"&&(n==="formAction"?(t!=="input"&&Mt(e,t,"name",c.name,c,null),Mt(e,t,"formEncType",c.formEncType,c,null),Mt(e,t,"formMethod",c.formMethod,c,null),Mt(e,t,"formTarget",c.formTarget,c,null)):(Mt(e,t,"encType",c.encType,c,null),Mt(e,t,"method",c.method,c,null),Mt(e,t,"target",c.target,c,null)));if(i==null||typeof i==="symbol"||typeof i==="boolean"){e.removeAttribute(n);break}Ct(i,n),i=sc(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(typeof i!=="function"&&Vn(n,i),e.onclick=fs);break;case"onScroll":i!=null&&(typeof i!=="function"&&Vn(n,i),nt("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!=="function"&&Vn(n,i),nt("scrollend",e));break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!=="object"||!("__html"in i))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=i.__html,n!=null){if(c.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");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}Ct(i,n),n=sc(""+i),e.setAttributeNS(Qi,"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"?(Ct(i,n),e.setAttribute(n,""+i)):e.removeAttribute(n);break;case"inert":i!==""||zh[n]||(zh[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));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"?(Ct(i,n),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?(Ct(i,n),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):(Ct(i,n),e.setAttribute(n,i));break;case"popover":nt("beforetoggle",e),nt("toggle",e),Ef(e,"popover",i);break;case"xlinkActuate":ds(e,Qi,"xlink:actuate",i);break;case"xlinkArcrole":ds(e,Qi,"xlink:arcrole",i);break;case"xlinkRole":ds(e,Qi,"xlink:role",i);break;case"xlinkShow":ds(e,Qi,"xlink:show",i);break;case"xlinkTitle":ds(e,Qi,"xlink:title",i);break;case"xlinkType":ds(e,Qi,"xlink:type",i);break;case"xmlBase":ds(e,Cx,"xml:base",i);break;case"xmlLang":ds(e,Cx,"xml:lang",i);break;case"xmlSpace":ds(e,Cx,"xml:space",i);break;case"is":f!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Ef(e,"is",i);break;case"innerText":case"textContent":break;case"popoverTarget":Tw||i==null||typeof i!=="object"||(Tw=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",i));default:!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"?(n=R0(n),Ef(e,n,i)):Oi.hasOwnProperty(n)&&i!=null&&typeof i!=="function"&&Vn(n,i)}}function Fb(e,t,n,i,c,f){switch(n){case"style":A0(e,i,f);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!=="object"||!("__html"in i))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=i.__html,n!=null){if(c.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":typeof i==="string"?oc(e,i):(typeof i==="number"||typeof i==="bigint")&&oc(e,""+i);break;case"onScroll":i!=null&&(typeof i!=="function"&&Vn(n,i),nt("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!=="function"&&Vn(n,i),nt("scrollend",e));break;case"onClick":i!=null&&(typeof i!=="function"&&Vn(n,i),e.onclick=fs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Oi.hasOwnProperty(n))i!=null&&typeof i!=="function"&&Vn(n,i);else e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),f=e[Wa]||null,f=f!=null?f[n]:null,typeof f==="function"&&e.removeEventListener(t,f,c),typeof i==="function")){typeof f!=="function"&&f!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,c);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Ef(e,n,i)}}}function Ea(e,t,n){switch(Ub(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nt("error",e),nt("load",e);var i=!1,c=!1,f;for(f in n)if(n.hasOwnProperty(f)){var m=n[f];if(m!=null)switch(f){case"src":i=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Mt(e,t,f,m,n,null)}}c&&Mt(e,t,"srcSet",n.srcSet,n,null),i&&Mt(e,t,"src",n.src,n,null);return;case"input":nr("input",n),nt("invalid",e);var x=f=m=c=null,S=null,L=null;for(i in n)if(n.hasOwnProperty(i)){var O=n[i];if(O!=null)switch(i){case"name":c=O;break;case"type":m=O;break;case"checked":S=O;break;case"defaultChecked":L=O;break;case"value":f=O;break;case"defaultValue":x=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Mt(e,t,i,O,n,null)}}p0(e,n),h0(e,f,x,S,L,m,c,!1);return;case"select":nr("select",n),nt("invalid",e),i=m=f=null;for(c in n)if(n.hasOwnProperty(c)&&(x=n[c],x!=null))switch(c){case"value":f=x;break;case"defaultValue":m=x;break;case"multiple":i=x;default:Mt(e,t,c,x,n,null)}b0(e,n),t=f,n=m,e.multiple=!!i,t!=null?Il(e,!!i,t,!1):n!=null&&Il(e,!!i,n,!0);return;case"textarea":nr("textarea",n),nt("invalid",e),f=c=i=null;for(m in n)if(n.hasOwnProperty(m)&&(x=n[m],x!=null))switch(m){case"value":i=x;break;case"defaultValue":c=x;break;case"children":f=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Mt(e,t,m,x,n,null)}y0(e,n),v0(e,i,c,f);return;case"option":m0(e,n);for(S in n)if(n.hasOwnProperty(S)&&(i=n[S],i!=null))switch(S){case"selected":e.selected=i&&typeof i!=="function"&&typeof i!=="symbol";break;default:Mt(e,t,S,i,n,null)}return;case"dialog":nt("beforetoggle",e),nt("toggle",e),nt("cancel",e),nt("close",e);break;case"iframe":case"object":nt("load",e);break;case"video":case"audio":for(i=0;i<Cd.length;i++)nt(Cd[i],e);break;case"image":nt("error",e),nt("load",e);break;case"details":nt("toggle",e);break;case"embed":case"source":case"link":nt("error",e),nt("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(L in n)if(n.hasOwnProperty(L)&&(i=n[L],i!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Mt(e,t,L,i,n,null)}return;default:if(nc(t)){for(O in n)n.hasOwnProperty(O)&&(i=n[O],i!==void 0&&Fb(e,t,O,i,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(i=n[x],i!=null&&Mt(e,t,x,i,n,null))}function JD(e,t,n,i){switch(Ub(t,i),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,f=null,m=null,x=null,S=null,L=null,O=null;for(U in n){var P=n[U];if(n.hasOwnProperty(U)&&P!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":S=P;default:i.hasOwnProperty(U)||Mt(e,t,U,null,i,P)}}for(var D in i){var U=i[D];if(P=n[D],i.hasOwnProperty(D)&&(U!=null||P!=null))switch(D){case"type":f=U;break;case"name":c=U;break;case"checked":L=U;break;case"defaultChecked":O=U;break;case"value":m=U;break;case"defaultValue":x=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:U!==P&&Mt(e,t,D,U,i,P)}}t=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,i=i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null,t||!i||Lw||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),Lw=!0),!t||i||Sw||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),Sw=!0),eg(e,m,x,S,L,O,f,c);return;case"select":U=m=x=D=null;for(f in n)if(S=n[f],n.hasOwnProperty(f)&&S!=null)switch(f){case"value":break;case"multiple":U=S;default:i.hasOwnProperty(f)||Mt(e,t,f,null,i,S)}for(c in i)if(f=i[c],S=n[c],i.hasOwnProperty(c)&&(f!=null||S!=null))switch(c){case"value":D=f;break;case"defaultValue":x=f;break;case"multiple":m=f;default:f!==S&&Mt(e,t,c,f,i,S)}i=x,t=m,n=U,D!=null?Il(e,!!t,D,!1):!!n!==!!t&&(i!=null?Il(e,!!t,i,!0):Il(e,!!t,t?[]:"",!1));return;case"textarea":U=D=null;for(x in n)if(c=n[x],n.hasOwnProperty(x)&&c!=null&&!i.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Mt(e,t,x,null,i,c)}for(m in i)if(c=i[m],f=n[m],i.hasOwnProperty(m)&&(c!=null||f!=null))switch(m){case"value":D=c;break;case"defaultValue":U=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:c!==f&&Mt(e,t,m,c,i,f)}x0(e,D,U);return;case"option":for(var ie in n)if(D=n[ie],n.hasOwnProperty(ie)&&D!=null&&!i.hasOwnProperty(ie))switch(ie){case"selected":e.selected=!1;break;default:Mt(e,t,ie,null,i,D)}for(S in i)if(D=i[S],U=n[S],i.hasOwnProperty(S)&&D!==U&&(D!=null||U!=null))switch(S){case"selected":e.selected=D&&typeof D!=="function"&&typeof D!=="symbol";break;default:Mt(e,t,S,D,i,U)}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 he in n)D=n[he],n.hasOwnProperty(he)&&D!=null&&!i.hasOwnProperty(he)&&Mt(e,t,he,null,i,D);for(L in i)if(D=i[L],U=n[L],i.hasOwnProperty(L)&&D!==U&&(D!=null||U!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Mt(e,t,L,D,i,U)}return;default:if(nc(t)){for(var Et in n)D=n[Et],n.hasOwnProperty(Et)&&D!==void 0&&!i.hasOwnProperty(Et)&&Fb(e,t,Et,void 0,i,D);for(O in i)D=i[O],U=n[O],!i.hasOwnProperty(O)||D===U||D===void 0&&U===void 0||Fb(e,t,O,D,i,U);return}}for(var st in n)D=n[st],n.hasOwnProperty(st)&&D!=null&&!i.hasOwnProperty(st)&&Mt(e,t,st,null,i,D);for(P in i)D=i[P],U=n[P],!i.hasOwnProperty(P)||D===U||D==null&&U==null||Mt(e,t,P,D,i,U)}function wC(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function qb(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var i=e[n];t[i]=e.getPropertyValue(i)}return t}function kC(e,t,n){if(t!=null&&typeof t!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var i,c=i="",f;for(f in t)if(t.hasOwnProperty(f)){var m=t[f];m!=null&&typeof m!=="boolean"&&m!==""&&(f.indexOf("--")===0?(Ku(m,f),i+=c+f+":"+(""+m).trim()):typeof m!=="number"||m===0||B1.has(f)?(Ku(m,f),i+=c+f.replace(D1,"-$1").toLowerCase().replace(_1,"-ms-")+":"+(""+m).trim()):i+=c+f.replace(D1,"-$1").toLowerCase().replace(_1,"-ms-")+":"+m+"px",c=";")}i=i||null,t=e.getAttribute("style"),t!==i&&(i=mr(i),mr(t)!==i&&(n.style=qb(e)))}}function jo(e,t,n,i,c,f){if(c.delete(n),e=e.getAttribute(n),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(Ct(i,t),e===""+i)return}La(t,e,i,f)}function MC(e,t,n,i,c,f){if(c.delete(n),e=e.getAttribute(n),e===null){switch(typeof i){case"function":case"symbol":return}if(!i)return}else switch(typeof i){case"function":case"symbol":break;default:if(i)return}La(t,e,i,f)}function Vb(e,t,n,i,c,f){if(c.delete(n),e=e.getAttribute(n),e===null)switch(typeof i){case"undefined":case"function":case"symbol":return}else if(i!=null)switch(typeof i){case"function":case"symbol":break;default:if(Ct(i,n),e===""+i)return}La(t,e,i,f)}function IC(e,t,n,i,c,f){if(c.delete(n),e=e.getAttribute(n),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(i))return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(!isNaN(i)&&(Ct(i,t),e===""+i))return}La(t,e,i,f)}function jb(e,t,n,i,c,f){if(c.delete(n),e=e.getAttribute(n),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(Ct(i,t),n=sc(""+i),e===n)return}La(t,e,i,f)}function AC(e,t,n,i){for(var c={},f=new Set,m=e.attributes,x=0;x<m.length;x++)switch(m[x].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:f.add(m[x].name)}if(nc(t)){for(var S in n)if(n.hasOwnProperty(S)){var L=n[S];if(L!=null){if(Oi.hasOwnProperty(S))typeof L!=="function"&&Vn(S,L);else if(n.suppressHydrationWarning!==!0)switch(S){case"children":typeof L!=="string"&&typeof L!=="number"||La("children",e.textContent,L,c);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":m=e.innerHTML,L=L?L.__html:void 0,L!=null&&(L=CC(e,L),La(S,m,L,c));continue;case"style":f.delete(S),kC(e,L,c);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":f.delete(S.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",S);continue;case"className":f.delete("class"),m=c0(e,"class",L),La("className",m,L,c);continue;default:i.context===Os&&t!=="svg"&&t!=="math"?f.delete(S.toLowerCase()):f.delete(S),m=c0(e,S,L),La(S,m,L,c)}}}}else for(L in n)if(n.hasOwnProperty(L)&&(S=n[L],S!=null)){if(Oi.hasOwnProperty(L))typeof S!=="function"&&Vn(L,S);else if(n.suppressHydrationWarning!==!0)switch(L){case"children":typeof S!=="string"&&typeof S!=="number"||La("children",e.textContent,S,c);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":m=e.innerHTML,S=S?S.__html:void 0,S!=null&&(S=CC(e,S),m!==S&&(c[L]={__html:m}));continue;case"className":jo(e,L,"class",S,f,c);continue;case"tabIndex":jo(e,L,"tabindex",S,f,c);continue;case"style":f.delete(L),kC(e,S,c);continue;case"multiple":f.delete(L),La(L,e.multiple,S,c);continue;case"muted":f.delete(L),La(L,e.muted,S,c);continue;case"autoFocus":f.delete("autofocus"),La(L,e.autofocus,S,c);continue;case"data":if(t!=="object"){f.delete(L),m=e.getAttribute("data"),La(L,m,S,c);continue}case"src":case"href":if(!(S!==""||t==="a"&&L==="href"||t==="object"&&L==="data")){L==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',L,L):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',L,L);continue}jb(e,L,L,S,f,c);continue;case"action":case"formAction":if(m=e.getAttribute(L),typeof S==="function"){f.delete(L.toLowerCase()),L==="formAction"?(f.delete("name"),f.delete("formenctype"),f.delete("formmethod"),f.delete("formtarget")):(f.delete("enctype"),f.delete("method"),f.delete("target"));continue}else if(m===fE){f.delete(L.toLowerCase()),La(L,"function",S,c);continue}jb(e,L,L.toLowerCase(),S,f,c);continue;case"xlinkHref":jb(e,L,"xlink:href",S,f,c);continue;case"contentEditable":Vb(e,L,"contenteditable",S,f,c);continue;case"spellCheck":Vb(e,L,"spellcheck",S,f,c);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Vb(e,L,L,S,f,c);continue;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":MC(e,L,L.toLowerCase(),S,f,c);continue;case"capture":case"download":e:{x=e;var O=m=L,P=c;if(f.delete(O),x=x.getAttribute(O),x===null)switch(typeof S){case"undefined":case"function":case"symbol":break e;default:if(S===!1)break e}else if(S!=null)switch(typeof S){case"function":case"symbol":break;case"boolean":if(S===!0&&x==="")break e;break;default:if(Ct(S,m),x===""+S)break e}La(m,x,S,P)}continue;case"cols":case"rows":case"size":case"span":e:{if(x=e,O=m=L,P=c,f.delete(O),x=x.getAttribute(O),x===null)switch(typeof S){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(S)||1>S)break e}else if(S!=null)switch(typeof S){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(S)||1>S)&&(Ct(S,m),x===""+S))break e}La(m,x,S,P)}continue;case"rowSpan":IC(e,L,"rowspan",S,f,c);continue;case"start":IC(e,L,L,S,f,c);continue;case"xHeight":jo(e,L,"x-height",S,f,c);continue;case"xlinkActuate":jo(e,L,"xlink:actuate",S,f,c);continue;case"xlinkArcrole":jo(e,L,"xlink:arcrole",S,f,c);continue;case"xlinkRole":jo(e,L,"xlink:role",S,f,c);continue;case"xlinkShow":jo(e,L,"xlink:show",S,f,c);continue;case"xlinkTitle":jo(e,L,"xlink:title",S,f,c);continue;case"xlinkType":jo(e,L,"xlink:type",S,f,c);continue;case"xmlBase":jo(e,L,"xml:base",S,f,c);continue;case"xmlLang":jo(e,L,"xml:lang",S,f,c);continue;case"xmlSpace":jo(e,L,"xml:space",S,f,c);continue;case"inert":S!==""||zh[L]||(zh[L]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",L)),MC(e,L,L,S,f,c);continue;default:if(!(2<L.length)||L[0]!=="o"&&L[0]!=="O"||L[1]!=="n"&&L[1]!=="N"){x=R0(L),m=!1,i.context===Os&&t!=="svg"&&t!=="math"?f.delete(x.toLowerCase()):(O=L.toLowerCase(),O=Zp.hasOwnProperty(O)?Zp[O]||null:null,O!==null&&O!==L&&(m=!0,f.delete(O)),f.delete(x));e:if(O=e,P=x,x=S,ec(P))if(O.hasAttribute(P))O=O.getAttribute(P),Ct(x,P),x=O===""+x?x:O;else{switch(typeof x){case"function":case"symbol":break e;case"boolean":if(O=P.toLowerCase().slice(0,5),O!=="data-"&&O!=="aria-")break e}x=x===void 0?void 0:null}else x=void 0;m||La(L,x,S,c)}}}return 0<f.size&&n.suppressHydrationWarning!==!0&&KD(e,f,c),Object.keys(c).length===0?null:c}function e2(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function RC(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function t2(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var c=n[i],{transferSize:f,initiatorType:m,duration:x}=c;if(f&&x&&RC(m)){m=0,x=c.responseEnd;for(i+=1;i<n.length;i++){var S=n[i],L=S.startTime;if(L>x)break;var O=S.transferSize,P=S.initiatorType;O&&RC(P)&&(S=S.responseEnd,m+=O*(S<x?1:(x-L)/(S-L)))}if(--i,t+=8*(f+m)/(c.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}function _p(e){return e.nodeType===9?e:e.ownerDocument}function DC(e){switch(e){case Ql:return Mu;case Wp:return Uh;default:return Os}}function _C(e,t){if(e===Os)switch(t){case"svg":return Mu;case"math":return Uh;default:return Os}return e===Mu&&t==="foreignObject"?Os:e}function Gb(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}function a2(){var e=window.event;if(e&&e.type==="popstate"){if(e===Mx)return!1;return Mx=e,!0}return Mx=null,!1}function Rc(){var e=window.event;return e&&e!==kd?e.type:null}function Dc(){var e=window.event;return e&&e!==kd?e.timeStamp:-1.1}function o2(e){setTimeout(function(){throw e})}function n2(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();break;case"img":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function s2(){}function r2(e,t,n,i){JD(e,t,n,i),e[Wa]=i}function EC(e){oc(e,"")}function i2(e,t,n){e.nodeValue=n}function OC(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Wa]||null;if(t!==null){var n=Ne(e);n!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,me(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,me(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function gr(e){return e==="head"}function l2(e,t){e.removeChild(t)}function u2(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function PC(e,t){var n=t,i=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n===wd||n===Hh){if(i===0){e.removeChild(c),Gl(t);return}i--}else if(n===Td||n===Ur||n===Ji||n===ku||n===Ki)i++;else if(n===hE)_c(e.ownerDocument.documentElement);else if(n===gE){n=e.ownerDocument.head,_c(n);for(var f=n.firstChild;f;){var m=f.nextSibling,x=f.nodeName;f[Hc]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&f.rel.toLowerCase()==="stylesheet"||n.removeChild(f),f=m}}else n===mE&&_c(e.ownerDocument.body);n=c}while(n);Gl(t)}function BC(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===wd)if(e===0)break;else e--;else n!==Td&&n!==Ur&&n!==Ji&&n!==ku||e++;n=i}while(n)}function c2(e){BC(e,!0)}function d2(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function f2(e){e.nodeValue=""}function p2(e){BC(e,!1)}function h2(e,t){t=t[bE],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function m2(e,t){e.nodeValue=t}function Xb(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Xb(n),ue(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function g2(e,t,n,i){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!i)if(t==="input"&&e.type==="hidden"){Ct(c.name,"name");var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;else if(!e[Hc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(f!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Ro(e.nextSibling),e===null)break}return null}function b2(e,t,n){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n)return null;if(e=Ro(e.nextSibling),e===null)return null}return e}function NC(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Ro(e.nextSibling),e===null)return null}return e}function Yb(e){return e.data===Ur||e.data===Ji}function $b(e){return e.data===ku||e.data===Ur&&e.ownerDocument.readyState!==kw}function y2(e,t){var n=e.ownerDocument;if(e.data===Ji)e._reactRetry=t;else if(e.data!==Ur||n.readyState!==kw)t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Ro(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===Td||t===ku||t===Ur||t===Ji||t===Ki||t===Tx||t===ww)break;if(t===wd||t===Hh)return null}}return e}function zC(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},i=e.attributes,c=0;c<i.length;c++){var f=i[c];n[wC(f.name)]=f.name.toLowerCase()==="style"?qb(e):f.value}return{type:t,props:n}}return e.nodeType===8?e.data===Ki?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function HC(e,t,n){return n===null||n[pE]!==!0?(e.nodeValue===t?e=null:(t=mr(t),e=mr(e.nodeValue)===t?null:e.nodeValue),e):null}function Wb(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===wd||n===Hh){if(t===0)return Ro(e.nextSibling);t--}else n!==Td&&n!==ku&&n!==Ur&&n!==Ji&&n!==Ki||t++}e=e.nextSibling}return null}function UC(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===Td||n===ku||n===Ur||n===Ji||n===Ki){if(t===0)return e;t--}else n!==wd&&n!==Hh||t++}e=e.previousSibling}return null}function x2(e){Gl(e)}function v2(e){Gl(e)}function S2(e){Gl(e)}function FC(e,t,n,i,c){switch(c&&rg(e,i.ancestorInfo),t=_p(n),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function L2(e,t,n,i){if(!n[vr]&&Ne(n)){var c=n.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",c,c,c)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(c=n.attributes;c.length;)n.removeAttributeNode(c[0]);Ea(n,e,t),n[Oa]=i,n[Wa]=t}function _c(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ue(e)}function Ep(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function qC(e,t,n){var i=Iu;if(i&&typeof t==="string"&&t){var c=Vo(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n==="string"&&(c+='[crossorigin="'+n+'"]'),_w.has(c)||(_w.add(c),e={rel:e,crossOrigin:n,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),Ea(t,"link",e),Ae(t),i.head.appendChild(t)))}}function VC(e,t,n,i){var c=(c=yr.current)?Ep(c):null;if(!c)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence==="string"&&typeof n.href==="string"?(n=Vl(n.href),t=pt(c).hoistableStyles,i=t.get(n),i||(i={type:"style",instance:null,count:0,state:null},t.set(n,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=Vl(n.href);var f=pt(c).hoistableStyles,m=f.get(e);if(!m&&(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:tl,preload:null}},f.set(e,m),(f=c.querySelector(Ec(e)))&&!f._p&&(m.instance=f,m.state.loading=Md|tn),!an.has(e))){var x={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};an.set(e,x),f||C2(c,e,x,m.state)}if(t&&i===null)throw n=`
175
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,X(e))})}function Gl(e){e!==li&&e.next===null&&(li===null?Xp=li=e:li=li.next=e),jp=!0,G.actQueue!==null?eb||(eb=!0,$S()):Jy||(Jy=!0,$S())}function od(e,t){if(!tb&&jp){tb=!0;do{var a=!1;for(var o=Xp;o!==null;){if(!t)if(e!==0){var l=o.pendingLanes;if(l===0)var n=0;else{var s=o.suspendedLanes,d=o.pingedLanes;n=(1<<31-ao(42|e)+1)-1,n&=l&~(s&~d),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,VS(o,n))}else n=ot,n=Kr(o,o===Pt?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==zs),(n&3)===0||Jr(o,n)||(a=!0,VS(o,n));o=o.next}}while(a);tb=!1}}function pI(){tc=window.event,hg()}function hg(){jp=eb=Jy=!1;var e=0;qr!==0&&SI()&&(e=qr);for(var t=Ba(),a=null,o=Xp;o!==null;){var l=o.next,n=FS(o,t);if(n===0)o.next=null,a===null?Xp=l:a.next=l,l===null&&(li=a);else if(a=o,e!==0||(n&3)!==0)jp=!0;o=l}wa!==Er&&wa!==Gp||od(e,!1),qr!==0&&(qr=0)}function FS(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:l}=e,n=e.pendingLanes&-62914561;0<n;){var s=31-ao(n),d=1<<s,m=l[s];if(m===-1){if((d&a)===0||(d&o)!==0)l[s]=Om(d,t)}else m<=t&&(e.expiredLanes|=d);n&=~d}if(t=Pt,a=ot,a=Kr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==zs),o=e.callbackNode,a===0||e===t&&(Dt===Es||Dt===Os)||e.cancelPendingCommit!==null)return o!==null&&gg(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Jr(e,a)){if(t=a&-a,t!==e.callbackPriority||G.actQueue!==null&&o!==ab)gg(o);else return t;switch(y(a)){case Eo:case cl:a=Wg;break;case Zl:a=Iu;break;case sp:a=Kg;break;default:a=Iu}return o=GS.bind(null,e),G.actQueue!==null?(G.actQueue.push(o),a=ab):a=Qg(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&gg(o),e.callbackPriority=2,e.callbackNode=null,2}function GS(e,t){if(wp=kp=!1,tc=window.event,wa!==Er&&wa!==Gp)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(yl===Fp&&(yl=jy),td()&&e.callbackNode!==a)return null;var o=ot;if(o=Kr(e,e===Pt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==zs),o===0)return null;return LS(e,o,t),FS(e,Ba()),e.callbackNode!=null&&e.callbackNode===a?GS.bind(null,e):null}function VS(e,t){if(td())return null;kp=wp,wp=!1,LS(e,t,!0)}function gg(e){e!==ab&&e!==null&&aR(e)}function $S(){G.actQueue!==null&&G.actQueue.push(function(){return hg(),null}),UM(function(){(ht&(Aa|No))!==Pa?Qg(Zg,pI):hg()})}function yg(){if(qr===0){var e=ws;e===0&&(e=lp,lp<<=1,(lp&261888)===0&&(lp=256)),qr=e}return qr}function XS(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return gt(e,"action"),qi(""+e)}function jS(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function mI(e,t,a,o,l){if(t==="submit"&&a&&a.stateNode===l){var n=XS((l[oo]||null).action),s=o.submitter;s&&(t=(t=s[oo]||null)?XS(t.formAction):s.getAttribute("formAction"),t!==null&&(n=t,s=null));var d=new fp("action","action",null,o,l);e.push({event:d,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(qr!==0){var m=s?jS(l,s):new FormData(l),g={pending:!0,data:m,method:l.method,action:n};Object.freeze(g),Uh(a,g,null,m)}}else typeof n==="function"&&(d.preventDefault(),m=s?jS(l,s):new FormData(l),g={pending:!0,data:m,method:l.method,action:n},Object.freeze(g),Uh(a,g,n,m))},currentTarget:l}]})}}function Vf(e,t,a){e.currentTarget=a;try{t(e)}catch(o){my(o)}e.currentTarget=null}function YS(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var l=void 0,n=o.event;if(o=o.listeners,t)for(var s=o.length-1;0<=s;s--){var d=o[s],m=d.instance,g=d.currentTarget;if(d=d.listener,m!==l&&n.isPropagationStopped())break e;m!==null?re(m,Vf,n,d,g):Vf(n,d,g),l=m}else for(s=0;s<o.length;s++){if(d=o[s],m=d.instance,g=d.currentTarget,d=d.listener,m!==l&&n.isPropagationStopped())break e;m!==null?re(m,Vf,n,d,g):Vf(n,d,g),l=m}}}}function ft(e,t){ob.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[Jg];a===void 0&&(a=t[Jg]=new Set);var o=e+"__bubble";a.has(o)||(QS(t,e,2,!1),a.add(o))}function bg(e,t,a){ob.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=4),QS(a,e,o,t)}function vg(e){if(!e[Yp]){e[Yp]=!0,$x.forEach(function(a){a!=="selectionchange"&&(ob.has(a)||bg(a,!1,e),bg(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yp]||(t[Yp]=!0,bg("selectionchange",!1,t))}}function QS(e,t,a,o){switch(Rx(t)){case Eo:var l=YI;break;case cl:l=QI;break;default:l=Bg}a=l.bind(null,t,a,e),l=void 0,!ly||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function Sg(e,t,a,o,l){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var d=o.stateNode.containerInfo;if(d===l)break;if(s===4)for(s=o.return;s!==null;){var m=s.tag;if((m===3||m===4)&&s.stateNode.containerInfo===l)return;s=s.return}for(;d!==null;){if(s=we(d),s===null)return;if(m=s.tag,m===5||m===6||m===26||m===27){o=n=s;continue e}d=d.parentNode}}o=o.return}r0(function(){var g=n,A=Fm(a),E=[];e:{var T=RL.get(e);if(T!==void 0){var U=fp,de=e;switch(e){case"keypress":if(Wc(a)===0)break e;case"keydown":case"keyup":U=GR;break;case"focusin":de="focus",U=uy;break;case"focusout":de="blur",U=uy;break;case"beforeblur":case"afterblur":U=uy;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=mL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=DR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=XR;break;case kL:case wL:case TL:U=qR;break;case IL:U=YR;break;case"scroll":case"scrollend":U=MR;break;case"wheel":U=ZR;break;case"copy":case"cut":case"paste":U=NR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=gL;break;case"toggle":case"beforetoggle":U=KR}var ye=(t&4)!==0,Ft=!ye&&(e==="scroll"||e==="scrollend"),pt=ye?T!==null?T+"Capture":null:T;ye=[];for(var w=g,I;w!==null;){var M=w;if(I=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||I===null||pt===null||(M=Bi(w,pt),M!=null&&ye.push(ld(w,M,I))),Ft)break;w=w.return}0<ye.length&&(T=new U(T,de,null,a,A),E.push({event:T,listeners:ye}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",T&&a!==hd&&(de=a.relatedTarget||a.fromElement)&&(we(de)||de[hr]))break e;if(U||T){if(T=A.window===A?A:(T=A.ownerDocument)?T.defaultView||T.parentWindow:window,U){if(de=a.relatedTarget||a.toElement,U=g,de=de?we(de):null,de!==null&&(Ft=z(de),ye=de.tag,de!==Ft||ye!==5&&ye!==27&&ye!==6))de=null}else U=null,de=g;if(U!==de){if(ye=mL,M="onMouseLeave",pt="onMouseEnter",w="mouse",e==="pointerout"||e==="pointerover")ye=gL,M="onPointerLeave",pt="onPointerEnter",w="pointer";if(Ft=U==null?T:Xe(U),I=de==null?T:Xe(de),T=new ye(M,w+"leave",U,a,A),T.target=Ft,T.relatedTarget=I,M=null,we(A)===g&&(ye=new ye(pt,w+"enter",de,a,A),ye.target=I,ye.relatedTarget=Ft,M=ye),Ft=M,U&&de)t:{ye=hI,pt=U,w=de,I=0;for(M=pt;M;M=ye(M))I++;M=0;for(var Q=w;Q;Q=ye(Q))M++;for(;0<I-M;)pt=ye(pt),I--;for(;0<M-I;)w=ye(w),M--;for(;I--;){if(pt===w||w!==null&&pt===w.alternate){ye=pt;break t}pt=ye(pt),w=ye(w)}ye=null}else ye=null;U!==null&&ZS(E,T,U,ye,!1),de!==null&&Ft!==null&&ZS(E,Ft,de,ye,!0)}}}e:{if(T=g?Xe(g):window,U=T.nodeName&&T.nodeName.toLowerCase(),U==="select"||U==="input"&&T.type==="file")var he=p0;else if(c0(T))if(LL)he=IT;else{he=wT;var Ge=kT}else U=T.nodeName,!U||U.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?g&&Oi(g.elementType)&&(he=p0):he=TT;if(he&&(he=he(e,g))){f0(E,he,a,A);break e}Ge&&Ge(e,T,g),e==="focusout"&&g&&T.type==="number"&&g.memoizedProps.value!=null&&Nm(T,"number",T.value)}switch(Ge=g?Xe(g):window,e){case"focusin":if(c0(Ge)||Ge.contentEditable==="true")Bu=Ge,dy=g,Ld=null;break;case"focusout":Ld=dy=Bu=null;break;case"mousedown":cy=!0;break;case"contextmenu":case"mouseup":case"dragend":cy=!1,S0(E,a,A);break;case"selectionchange":if(aM)break;case"keydown":case"keyup":S0(E,a,A)}var De;if(iy)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else qu?i0(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===yL&&(Te="onCompositionStart");if(Te&&(bL&&a.locale!=="ko"&&(qu||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&qu&&(De=s0()):(gr=A,ny=("value"in gr)?gr.value:gr.textContent,qu=!0)),Ge=$f(g,Te),0<Ge.length&&(Te=new hL(Te,e,null,a,A),E.push({event:Te,listeners:Ge}),De?Te.data=De:(De=d0(a),De!==null&&(Te.data=De)))),De=eM?ST(e,a):xT(e,a))Te=$f(g,"onBeforeInput"),0<Te.length&&(Ge=new PR("onBeforeInput","beforeinput",null,a,A),E.push({event:Ge,listeners:Te}),Ge.data=De);mI(E,e,g,a,A)}YS(E,t)})}function ld(e,t,a){return{instance:e,listener:t,currentTarget:a}}function $f(e,t){for(var a=t+"Capture",o=[];e!==null;){var l=e,n=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||n===null||(l=Bi(e,a),l!=null&&o.unshift(ld(e,l,n)),l=Bi(e,t),l!=null&&o.push(ld(e,l,n))),e.tag===3)return o;e=e.return}return[]}function hI(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function ZS(e,t,a,o,l){for(var n=t._reactName,s=[];a!==null&&a!==o;){var d=a,m=d.alternate,g=d.stateNode;if(d=d.tag,m!==null&&m===o)break;d!==5&&d!==26&&d!==27||g===null||(m=g,l?(g=Bi(a,n),g!=null&&s.unshift(ld(a,g,m))):l||(g=Bi(a,n),g!=null&&s.push(ld(a,g,m)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}function xg(e,t){gT(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||fL||(fL=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:vs,possibleRegistrationNames:ey};Oi(e)||typeof t.is==="string"||bT(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function qa(e,t,a,o){t!==a&&(a=dr(a),dr(t)!==a&&(o[e]=t))}function gI(e,t,a){t.forEach(function(o){a[JS(o)]=o==="style"?Cg(e):e.getAttribute(o)})}function Vl(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function WS(e,t){return e=e.namespaceURI===ip||e.namespaceURI===Au?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function dr(e){return Kt(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Ia(e)),Yt(e)),(typeof e==="string"?e:""+e).replace(RM,`
176
+ `).replace(MM,"")}function KS(e,t){return t=dr(t),dr(e)===t?!0:!1}function Nt(e,t,a,o,l,n){switch(a){case"children":if(typeof o==="string")Zc(o,t,!1),t==="body"||t==="textarea"&&o===""||Ei(e,o);else if(typeof o==="number"||typeof o==="bigint")Zc(""+o,t,!1),t!=="body"&&Ei(e,""+o);break;case"className":jc(e,"class",o);break;case"tabIndex":jc(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":jc(e,a,o);break;case"style":o0(e,o,n);break;case"data":if(t!=="object"){jc(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){a==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}gt(o,a),o=qi(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(o!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof o==="function"&&(l.encType==null&&l.method==null||Wp||(Wp=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),l.target==null||Zp||(Zp=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||l.type==="submit"||l.type==="image"||Qp?t!=="button"||l.type==null||l.type==="submit"||Qp?typeof o==="function"&&(l.name==null||WC||(WC=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),l.formEncType==null&&l.formMethod==null||Wp||(Wp=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),l.formTarget==null||Zp||(Zp=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Qp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Qp=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):a==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof o==="function"){e.setAttribute(a,"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 n==="function"&&(a==="formAction"?(t!=="input"&&Nt(e,t,"name",l.name,l,null),Nt(e,t,"formEncType",l.formEncType,l,null),Nt(e,t,"formMethod",l.formMethod,l,null),Nt(e,t,"formTarget",l.formTarget,l,null)):(Nt(e,t,"encType",l.encType,l,null),Nt(e,t,"method",l.method,l,null),Nt(e,t,"target",l.target,l,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}gt(o,a),o=qi(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&Vl(a,o),e.onclick=bn);break;case"onScroll":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scrollend",e));break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}gt(o,a),a=qi(""+o),e.setAttributeNS(Ns,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(gt(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||Kp[a]||(Kp[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));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":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(gt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?(gt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):(gt(o,a),e.setAttribute(a,o));break;case"popover":ft("beforetoggle",e),ft("toggle",e),Xc(e,"popover",o);break;case"xlinkActuate":yn(e,Ns,"xlink:actuate",o);break;case"xlinkArcrole":yn(e,Ns,"xlink:arcrole",o);break;case"xlinkRole":yn(e,Ns,"xlink:role",o);break;case"xlinkShow":yn(e,Ns,"xlink:show",o);break;case"xlinkTitle":yn(e,Ns,"xlink:title",o);break;case"xlinkType":yn(e,Ns,"xlink:type",o);break;case"xmlBase":yn(e,lb,"xml:base",o);break;case"xmlLang":yn(e,lb,"xml:lang",o);break;case"xmlSpace":yn(e,lb,"xml:space",o);break;case"is":n!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Xc(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":KC||o==null||typeof o!=="object"||(KC=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",o));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=l0(a),Xc(e,a,o)):vs.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&Vl(a,o)}}function Lg(e,t,a,o,l,n){switch(a){case"style":o0(e,o,n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof o==="string"?Ei(e,o):(typeof o==="number"||typeof o==="bigint")&&Ei(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&Vl(a,o),e.onclick=bn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(vs.hasOwnProperty(a))o!=null&&typeof o!=="function"&&Vl(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),n=e[oo]||null,n=n!=null?n[a]:null,typeof n==="function"&&e.removeEventListener(t,n,l),typeof o==="function")){typeof n!=="function"&&n!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,l);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Xc(e,a,o)}}}function $a(e,t,a){switch(xg(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",e),ft("load",e);var o=!1,l=!1,n;for(n in a)if(a.hasOwnProperty(n)){var s=a[n];if(s!=null)switch(n){case"src":o=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,n,s,a,null)}}l&&Nt(e,t,"srcSet",a.srcSet,a,null),o&&Nt(e,t,"src",a.src,a,null);return;case"input":Jn("input",a),ft("invalid",e);var d=n=s=l=null,m=null,g=null;for(o in a)if(a.hasOwnProperty(o)){var A=a[o];if(A!=null)switch(o){case"name":l=A;break;case"type":s=A;break;case"checked":m=A;break;case"defaultChecked":g=A;break;case"value":n=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,o,A,a,null)}}Hb(e,a),Fb(e,n,d,m,g,s,l,!1);return;case"select":Jn("select",a),ft("invalid",e),o=s=n=null;for(l in a)if(a.hasOwnProperty(l)&&(d=a[l],d!=null))switch(l){case"value":n=d;break;case"defaultValue":s=d;break;case"multiple":o=d;default:Nt(e,t,l,d,a,null)}$b(e,a),t=n,a=s,e.multiple=!!o,t!=null?su(e,!!o,t,!1):a!=null&&su(e,!!o,a,!0);return;case"textarea":Jn("textarea",a),ft("invalid",e),n=l=o=null;for(s in a)if(a.hasOwnProperty(s)&&(d=a[s],d!=null))switch(s){case"value":o=d;break;case"defaultValue":l=d;break;case"children":n=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Nt(e,t,s,d,a,null)}Xb(e,a),Yb(e,o,l,n);return;case"option":Gb(e,a);for(m in a)if(a.hasOwnProperty(m)&&(o=a[m],o!=null))switch(m){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Nt(e,t,m,o,a,null)}return;case"dialog":ft("beforetoggle",e),ft("toggle",e),ft("cancel",e),ft("close",e);break;case"iframe":case"object":ft("load",e);break;case"video":case"audio":for(o=0;o<Kd.length;o++)ft(Kd[o],e);break;case"image":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"embed":case"source":case"link":ft("error",e),ft("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(g in a)if(a.hasOwnProperty(g)&&(o=a[g],o!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,g,o,a,null)}return;default:if(Oi(t)){for(A in a)a.hasOwnProperty(A)&&(o=a[A],o!==void 0&&Lg(e,t,A,o,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(o=a[d],o!=null&&Nt(e,t,d,o,a,null))}function yI(e,t,a,o){switch(xg(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,n=null,s=null,d=null,m=null,g=null,A=null;for(U in a){var E=a[U];if(a.hasOwnProperty(U)&&E!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":m=E;default:o.hasOwnProperty(U)||Nt(e,t,U,null,o,E)}}for(var T in o){var U=o[T];if(E=a[T],o.hasOwnProperty(T)&&(U!=null||E!=null))switch(T){case"type":n=U;break;case"name":l=U;break;case"checked":g=U;break;case"defaultChecked":A=U;break;case"value":s=U;break;case"defaultValue":d=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:U!==E&&Nt(e,t,T,U,o,E)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||ZC||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),ZC=!0),!t||o||QC||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),QC=!0),Bm(e,s,d,m,g,A,n,l);return;case"select":U=s=d=T=null;for(n in a)if(m=a[n],a.hasOwnProperty(n)&&m!=null)switch(n){case"value":break;case"multiple":U=m;default:o.hasOwnProperty(n)||Nt(e,t,n,null,o,m)}for(l in o)if(n=o[l],m=a[l],o.hasOwnProperty(l)&&(n!=null||m!=null))switch(l){case"value":T=n;break;case"defaultValue":d=n;break;case"multiple":s=n;default:n!==m&&Nt(e,t,l,n,o,m)}o=d,t=s,a=U,T!=null?su(e,!!t,T,!1):!!a!==!!t&&(o!=null?su(e,!!t,o,!0):su(e,!!t,t?[]:"",!1));return;case"textarea":U=T=null;for(d in a)if(l=a[d],a.hasOwnProperty(d)&&l!=null&&!o.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Nt(e,t,d,null,o,l)}for(s in o)if(l=o[s],n=a[s],o.hasOwnProperty(s)&&(l!=null||n!=null))switch(s){case"value":T=l;break;case"defaultValue":U=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:l!==n&&Nt(e,t,s,l,o,n)}jb(e,T,U);return;case"option":for(var de in a)if(T=a[de],a.hasOwnProperty(de)&&T!=null&&!o.hasOwnProperty(de))switch(de){case"selected":e.selected=!1;break;default:Nt(e,t,de,null,o,T)}for(m in o)if(T=o[m],U=a[m],o.hasOwnProperty(m)&&T!==U&&(T!=null||U!=null))switch(m){case"selected":e.selected=T&&typeof T!=="function"&&typeof T!=="symbol";break;default:Nt(e,t,m,T,o,U)}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 ye in a)T=a[ye],a.hasOwnProperty(ye)&&T!=null&&!o.hasOwnProperty(ye)&&Nt(e,t,ye,null,o,T);for(g in o)if(T=o[g],U=a[g],o.hasOwnProperty(g)&&T!==U&&(T!=null||U!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,g,T,o,U)}return;default:if(Oi(t)){for(var Ft in a)T=a[Ft],a.hasOwnProperty(Ft)&&T!==void 0&&!o.hasOwnProperty(Ft)&&Lg(e,t,Ft,void 0,o,T);for(A in o)T=o[A],U=a[A],!o.hasOwnProperty(A)||T===U||T===void 0&&U===void 0||Lg(e,t,A,T,o,U);return}}for(var pt in a)T=a[pt],a.hasOwnProperty(pt)&&T!=null&&!o.hasOwnProperty(pt)&&Nt(e,t,pt,null,o,T);for(E in o)T=o[E],U=a[E],!o.hasOwnProperty(E)||T===U||T==null&&U==null||Nt(e,t,E,T,o,U)}function JS(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Cg(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var o=e[a];t[o]=e.getPropertyValue(o)}return t}function ex(e,t,a){if(t!=null&&typeof t!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var o,l=o="",n;for(n in t)if(t.hasOwnProperty(n)){var s=t[n];s!=null&&typeof s!=="boolean"&&s!==""&&(n.indexOf("--")===0?(Et(s,n),o+=l+n+":"+(""+s).trim()):typeof s!=="number"||s===0||dL.has(n)?(Et(s,n),o+=l+n.replace(nL,"-$1").toLowerCase().replace(rL,"-ms-")+":"+(""+s).trim()):o+=l+n.replace(nL,"-$1").toLowerCase().replace(rL,"-ms-")+":"+s+"px",l=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=dr(o),dr(t)!==o&&(a.style=Cg(e)))}}function Go(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(gt(o,t),e===""+o)return}qa(t,e,o,n)}function tx(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null){switch(typeof o){case"function":case"symbol":return}if(!o)return}else switch(typeof o){case"function":case"symbol":break;default:if(o)return}qa(t,e,o,n)}function kg(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":return}else if(o!=null)switch(typeof o){case"function":case"symbol":break;default:if(gt(o,a),e===""+o)return}qa(t,e,o,n)}function ax(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(o))return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(!isNaN(o)&&(gt(o,t),e===""+o))return}qa(t,e,o,n)}function wg(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(gt(o,t),a=qi(""+o),e===a)return}qa(t,e,o,n)}function ox(e,t,a,o){for(var l={},n=new Set,s=e.attributes,d=0;d<s.length;d++)switch(s[d].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:n.add(s[d].name)}if(Oi(t)){for(var m in a)if(a.hasOwnProperty(m)){var g=a[m];if(g!=null){if(vs.hasOwnProperty(m))typeof g!=="function"&&Vl(m,g);else if(a.suppressHydrationWarning!==!0)switch(m){case"children":typeof g!=="string"&&typeof g!=="number"||qa("children",e.textContent,g,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,g=g?g.__html:void 0,g!=null&&(g=WS(e,g),qa(m,s,g,l));continue;case"style":n.delete(m),ex(e,g,l);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":n.delete(m.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",m);continue;case"className":n.delete("class"),s=Pb(e,"class",g),qa("className",s,g,l);continue;default:o.context===_n&&t!=="svg"&&t!=="math"?n.delete(m.toLowerCase()):n.delete(m),s=Pb(e,m,g),qa(m,s,g,l)}}}}else for(g in a)if(a.hasOwnProperty(g)&&(m=a[g],m!=null)){if(vs.hasOwnProperty(g))typeof m!=="function"&&Vl(g,m);else if(a.suppressHydrationWarning!==!0)switch(g){case"children":typeof m!=="string"&&typeof m!=="number"||qa("children",e.textContent,m,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,m=m?m.__html:void 0,m!=null&&(m=WS(e,m),s!==m&&(l[g]={__html:s}));continue;case"className":Go(e,g,"class",m,n,l);continue;case"tabIndex":Go(e,g,"tabindex",m,n,l);continue;case"style":n.delete(g),ex(e,m,l);continue;case"multiple":n.delete(g),qa(g,e.multiple,m,l);continue;case"muted":n.delete(g),qa(g,e.muted,m,l);continue;case"autoFocus":n.delete("autofocus"),qa(g,e.autofocus,m,l);continue;case"data":if(t!=="object"){n.delete(g),s=e.getAttribute("data"),qa(g,s,m,l);continue}case"src":case"href":if(!(m!==""||t==="a"&&g==="href"||t==="object"&&g==="data")){g==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',g,g):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',g,g);continue}wg(e,g,g,m,n,l);continue;case"action":case"formAction":if(s=e.getAttribute(g),typeof m==="function"){n.delete(g.toLowerCase()),g==="formAction"?(n.delete("name"),n.delete("formenctype"),n.delete("formmethod"),n.delete("formtarget")):(n.delete("enctype"),n.delete("method"),n.delete("target"));continue}else if(s===AM){n.delete(g.toLowerCase()),qa(g,"function",m,l);continue}wg(e,g,g.toLowerCase(),m,n,l);continue;case"xlinkHref":wg(e,g,"xlink:href",m,n,l);continue;case"contentEditable":kg(e,g,"contenteditable",m,n,l);continue;case"spellCheck":kg(e,g,"spellcheck",m,n,l);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":kg(e,g,g,m,n,l);continue;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":tx(e,g,g.toLowerCase(),m,n,l);continue;case"capture":case"download":e:{d=e;var A=s=g,E=l;if(n.delete(A),d=d.getAttribute(A),d===null)switch(typeof m){case"undefined":case"function":case"symbol":break e;default:if(m===!1)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":break;case"boolean":if(m===!0&&d==="")break e;break;default:if(gt(m,s),d===""+m)break e}qa(s,d,m,E)}continue;case"cols":case"rows":case"size":case"span":e:{if(d=e,A=s=g,E=l,n.delete(A),d=d.getAttribute(A),d===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(m)||1>m)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(m)||1>m)&&(gt(m,s),d===""+m))break e}qa(s,d,m,E)}continue;case"rowSpan":ax(e,g,"rowspan",m,n,l);continue;case"start":ax(e,g,g,m,n,l);continue;case"xHeight":Go(e,g,"x-height",m,n,l);continue;case"xlinkActuate":Go(e,g,"xlink:actuate",m,n,l);continue;case"xlinkArcrole":Go(e,g,"xlink:arcrole",m,n,l);continue;case"xlinkRole":Go(e,g,"xlink:role",m,n,l);continue;case"xlinkShow":Go(e,g,"xlink:show",m,n,l);continue;case"xlinkTitle":Go(e,g,"xlink:title",m,n,l);continue;case"xlinkType":Go(e,g,"xlink:type",m,n,l);continue;case"xmlBase":Go(e,g,"xml:base",m,n,l);continue;case"xmlLang":Go(e,g,"xml:lang",m,n,l);continue;case"xmlSpace":Go(e,g,"xml:space",m,n,l);continue;case"inert":m!==""||Kp[g]||(Kp[g]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",g)),tx(e,g,g,m,n,l);continue;default:if(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N"){d=l0(g),s=!1,o.context===_n&&t!=="svg"&&t!=="math"?n.delete(d.toLowerCase()):(A=g.toLowerCase(),A=dp.hasOwnProperty(A)?dp[A]||null:null,A!==null&&A!==g&&(s=!0,n.delete(A)),n.delete(d));e:if(A=e,E=d,d=m,Mi(E))if(A.hasAttribute(E))A=A.getAttribute(E),gt(d,E),d=A===""+d?d:A;else{switch(typeof d){case"function":case"symbol":break e;case"boolean":if(A=E.toLowerCase().slice(0,5),A!=="data-"&&A!=="aria-")break e}d=d===void 0?void 0:null}else d=void 0;s||qa(g,d,m,l)}}}return 0<n.size&&a.suppressHydrationWarning!==!0&&gI(e,n,l),Object.keys(l).length===0?null:l}function bI(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function lx(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vI(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var l=a[o],{transferSize:n,initiatorType:s,duration:d}=l;if(n&&d&&lx(s)){s=0,d=l.responseEnd;for(o+=1;o<a.length;o++){var m=a[o],g=m.startTime;if(g>d)break;var A=m.transferSize,E=m.initiatorType;A&&lx(E)&&(m=m.responseEnd,s+=A*(m<d?1:(d-g)/(m-g)))}if(--o,t+=8*(n+s)/(l.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}function Xf(e){return e.nodeType===9?e:e.ownerDocument}function nx(e){switch(e){case Au:return ri;case ip:return em;default:return _n}}function rx(e,t){if(e===_n)switch(t){case"svg":return ri;case"math":return em;default:return _n}return e===ri&&t==="foreignObject"?_n:e}function Tg(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}function SI(){var e=window.event;if(e&&e.type==="popstate"){if(e===ub)return!1;return ub=e,!0}return ub=null,!1}function nd(){var e=window.event;return e&&e!==tc?e.type:null}function rd(){var e=window.event;return e&&e!==tc?e.timeStamp:-1.1}function xI(e){setTimeout(function(){throw e})}function LI(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function CI(){}function kI(e,t,a,o){yI(e,t,a,o),e[oo]=o}function sx(e){Ei(e,"")}function wI(e,t,a){e.nodeValue=a}function ux(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[oo]||null;if(t!==null){var a=$e(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,re(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,re(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function cr(e){return e==="head"}function TI(e,t){e.removeChild(t)}function II(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function ix(e,t){var a=t,o=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a===ec||a===Jp){if(o===0){e.removeChild(l),ku(t);return}o--}else if(a===Jd||a===Br||a===Ps||a===ni||a===Us)o++;else if(a===EM)sd(e.ownerDocument.documentElement);else if(a===qM){a=e.ownerDocument.head,sd(a);for(var n=a.firstChild;n;){var s=n.nextSibling,d=n.nodeName;n[md]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=s}}else a===OM&&sd(e.ownerDocument.body);a=l}while(a);ku(t)}function dx(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a===ec)if(e===0)break;else e--;else a!==Jd&&a!==Br&&a!==Ps&&a!==ni||e++;a=o}while(a)}function RI(e){dx(e,!0)}function MI(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function AI(e){e.nodeValue=""}function DI(e){dx(e,!1)}function EI(e,t){t=t[BM],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function OI(e,t){e.nodeValue=t}function Ig(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ig(a),me(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function qI(e,t,a,o){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){gt(l.name,"name");var n=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;else if(!e[md])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(n!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Mo(e.nextSibling),e===null)break}return null}function BI(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=Mo(e.nextSibling),e===null)return null}return e}function cx(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Mo(e.nextSibling),e===null)return null}return e}function Rg(e){return e.data===Br||e.data===Ps}function Mg(e){return e.data===ni||e.data===Br&&e.ownerDocument.readyState!==e1}function NI(e,t){var a=e.ownerDocument;if(e.data===Ps)e._reactRetry=t;else if(e.data!==Br||a.readyState!==e1)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Mo(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===Jd||t===ni||t===Br||t===Ps||t===Us||t===nb||t===JC)break;if(t===ec||t===Jp)return null}}return e}function fx(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,l=0;l<o.length;l++){var n=o[l];a[JS(n.name)]=n.name.toLowerCase()==="style"?Cg(e):n.value}return{type:t,props:a}}return e.nodeType===8?e.data===Us?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function px(e,t,a){return a===null||a[DM]!==!0?(e.nodeValue===t?e=null:(t=dr(t),e=dr(e.nodeValue)===t?null:e.nodeValue),e):null}function Ag(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===ec||a===Jp){if(t===0)return Mo(e.nextSibling);t--}else a!==Jd&&a!==ni&&a!==Br&&a!==Ps&&a!==Us||t++}e=e.nextSibling}return null}function mx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Jd||a===ni||a===Br||a===Ps||a===Us){if(t===0)return e;t--}else a!==ec&&a!==Jp||t++}e=e.previousSibling}return null}function UI(e){ku(e)}function PI(e){ku(e)}function zI(e){ku(e)}function hx(e,t,a,o,l){switch(l&&Hm(e,o.ancestorInfo),t=Xf(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function _I(e,t,a,o){if(!a[hr]&&$e(a)){var l=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",l,l,l)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(l=a.attributes;l.length;)a.removeAttributeNode(l[0]);$a(a,e,t),a[Xa]=o,a[oo]=t}function sd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);me(e)}function jf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function gx(e,t,a){var o=si;if(o&&typeof t==="string"&&t){var l=Fo(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a==="string"&&(l+='[crossorigin="'+a+'"]'),r1.has(l)||(r1.add(l),e={rel:e,crossOrigin:a,href:t},o.querySelector(l)===null&&(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}}function yx(e,t,a,o){var l=(l=pr.current)?jf(l):null;if(!l)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(a=Lu(a.href),t=yt(l).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=Lu(a.href);var n=yt(l).hoistableStyles,s=n.get(e);if(!s&&(l=l.ownerDocument||l,s={type:"stylesheet",instance:null,count:0,state:{loading:_s,preload:null}},n.set(e,s),(n=l.querySelector(ud(e)))&&!n._p&&(s.instance=n,s.state.loading=ac|el),!tl.has(e))){var d={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};tl.set(e,d),n||HI(l,e,d,s.state)}if(t&&o===null)throw a=`
177
177
 
178
- - `+Op(t)+`
179
- + `+Op(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return m}if(t&&i!==null)throw n=`
178
+ - `+Yf(t)+`
179
+ + `+Yf(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return s}if(t&&o!==null)throw a=`
180
180
 
181
- - `+Op(t)+`
182
- + `+Op(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case"script":return t=n.async,n=n.src,typeof n==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(n=jl(n),t=pt(c).hoistableScripts,i=t.get(n),i||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Op(e){var t=0,n="<link";return typeof e.rel==="string"?(t++,n+=' rel="'+e.rel+'"'):hn.call(e,"rel")&&(t++,n+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,n+=' href="'+e.href+'"'):hn.call(e,"href")&&(t++,n+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,n+=' precedence="'+e.precedence+'"'):hn.call(e,"precedence")&&(t++,n+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function Vl(e){return'href="'+Vo(e)+'"'}function Ec(e){return'link[rel="stylesheet"]['+e+"]"}function jC(e){return Ze({},e,{"data-precedence":e.precedence,precedence:null})}function C2(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=Md:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=Md}),t.addEventListener("error",function(){return i.loading|=Rw}),Ea(t,"link",n),Ae(t),e.head.appendChild(t))}function jl(e){return'[src="'+Vo(e)+'"]'}function Oc(e){return"script[async]"+e}function GC(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Vo(n.href)+'"]');if(i)return t.instance=i,Ae(i),i;var c=Ze({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ae(i),Ea(i,"style",c),Pp(i,n.precedence,e),t.instance=i;case"stylesheet":c=Vl(n.href);var f=e.querySelector(Ec(c));if(f)return t.state.loading|=tn,t.instance=f,Ae(f),f;i=jC(n),(c=an.get(c))&&Zb(i,c),f=(e.ownerDocument||e).createElement("link"),Ae(f);var m=f;return m._p=new Promise(function(x,S){m.onload=x,m.onerror=S}),Ea(f,"link",i),t.state.loading|=tn,Pp(f,n.precedence,e),t.instance=f;case"script":if(f=jl(n.src),c=e.querySelector(Oc(f)))return t.instance=c,Ae(c),c;if(i=n,c=an.get(f))i=Ze({},n),Qb(i,c);return e=e.ownerDocument||e,c=e.createElement("script"),Ae(c),Ea(c,"link",i),e.head.appendChild(c),t.instance=c;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&tn)===tl&&(i=t.instance,t.state.loading|=tn,Pp(i,n.precedence,e));return t.instance}function Pp(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,f=c,m=0;m<i.length;m++){var x=i[m];if(x.dataset.precedence===t)f=x;else if(f!==c)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Zb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Qb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function XC(e,t,n){if(Fh===null){var i=new Map,c=Fh=new Map;c.set(n,i)}else c=Fh,i=c.get(n),i||(i=new Map,c.set(n,i));if(i.has(e))return i;i.set(e,null),n=n.getElementsByTagName(e);for(c=0;c<n.length;c++){var f=n[c];if(!(f[Hc]||f[Oa]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!==Ql){var m=f.getAttribute(t)||"";m=e+m;var x=i.get(m);x?x.push(f):i.set(m,[f])}}return i}function YC(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function T2(e,t,n){var i=!n.ancestorInfo.containerTagInScope;if(n.context===Mu||t.itemProp!=null)return!i||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href===""){i&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence==="string"){e=t.href;var c=t.onError,f=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),c&&n.push("`onError`"),f!=null&&n.push("`disabled`"),c=e2(n,"and"),c+=n.length===1?" prop":" props",f=n.length===1?"an "+c:"the "+c,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,f,c)}i&&(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!=="string"&&i&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e==="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!=="string"){i&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":i&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function $C(e){return e.type==="stylesheet"&&(e.state.loading&Dw)===tl?!1:!0}function w2(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!=="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&tn)===tl){if(n.instance===null){var c=Vl(i.href),f=t.querySelector(Ec(c));if(f){t=f._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=Bp.bind(e),t.then(e,e)),n.state.loading|=tn,n.instance=f,Ae(f);return}f=t.ownerDocument||t,i=jC(i),(c=an.get(c))&&Zb(i,c),f=f.createElement("link"),Ae(f);var m=f;m._p=new Promise(function(x,S){m.onload=x,m.onerror=S}),Ea(f,"link",i),n.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&Dw)===tl&&(e.count++,n=Bp.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}function k2(e,t){return e.stylesheets&&e.count===0&&Np(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Np(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},vE+t);0<e.imgBytes&&Ax===0&&(Ax=125*t2()*LE);var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Np(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Ax?50:SE)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(c)}}:null}function Bp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Np(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Np(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,qh=new Map,t.forEach(M2,e),qh=null,Bp.call(e))}function M2(e,t){if(!(t.state.loading&tn)){var n=qh.get(e);if(n)var i=n.get(Rx);else{n=new Map,qh.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var m=c[f];if(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")n.set(m.dataset.precedence,m),i=m}i&&n.set(Rx,i)}c=t.instance,m=c.getAttribute("data-precedence"),f=n.get(m)||i,f===i&&n.set(Rx,c),n.set(m,c),this.count++,i=Bp.bind(this),c.addEventListener("load",i),c.addEventListener("error",i),f?f.parentNode.insertBefore(c,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=tn}}function I2(e,t,n,i,c,f,m,x,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=el,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ml(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ml(0),this.hiddenUpdates=Ml(null),this.identifierPrefix=i,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[];for(t=0;31>t;t++)e.push(new Set);this._debugRootType=n?"hydrateRoot()":"createRoot()"}function WC(e,t,n,i,c,f,m,x,S,L,O,P){return e=new I2(e,t,n,m,S,L,O,P,x),t=Y_,f===!0&&(t|=ja|gn),t|=je,f=v(3,null,null,t),e.current=f,f.stateNode=e,t=wg(),Mi(t),e.pooledCache=t,Mi(t),f.memoizedState={element:i,isDehydrated:n,cache:t},Rg(f),e}function ZC(e){if(!e)return Tr;return e=Tr,e}function Kb(e,t,n,i,c,f){if(Va&&typeof Va.onScheduleFiberRoot==="function")try{Va.onScheduleFiberRoot(Wl,i,n)}catch(m){Yn||(Yn=!0,console.error("React instrumentation encountered an error: %o",m))}c=ZC(c),i.context===null?i.context=c:i.pendingContext=c,Xn&&_o!==null&&!Bw&&(Bw=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
181
+ - `+Yf(t)+`
182
+ + `+Yf(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(a=Cu(a),t=yt(l).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Yf(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):dl.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):dl.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):dl.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Lu(e){return'href="'+Fo(e)+'"'}function ud(e){return'link[rel="stylesheet"]['+e+"]"}function bx(e){return rt({},e,{"data-precedence":e.precedence,precedence:null})}function HI(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=ac:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=ac}),t.addEventListener("error",function(){return o.loading|=l1}),$a(t,"link",a),Oe(t),e.head.appendChild(t))}function Cu(e){return'[src="'+Fo(e)+'"]'}function id(e){return"script[async]"+e}function vx(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Fo(a.href)+'"]');if(o)return t.instance=o,Oe(o),o;var l=rt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Oe(o),$a(o,"style",l),Qf(o,a.precedence,e),t.instance=o;case"stylesheet":l=Lu(a.href);var n=e.querySelector(ud(l));if(n)return t.state.loading|=el,t.instance=n,Oe(n),n;o=bx(a),(l=tl.get(l))&&Dg(o,l),n=(e.ownerDocument||e).createElement("link"),Oe(n);var s=n;return s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),$a(n,"link",o),t.state.loading|=el,Qf(n,a.precedence,e),t.instance=n;case"script":if(n=Cu(a.src),l=e.querySelector(id(n)))return t.instance=l,Oe(l),l;if(o=a,l=tl.get(n))o=rt({},a),Eg(o,l);return e=e.ownerDocument||e,l=e.createElement("script"),Oe(l),$a(l,"link",o),e.head.appendChild(l),t.instance=l;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&el)===_s&&(o=t.instance,t.state.loading|=el,Qf(o,a.precedence,e));return t.instance}function Qf(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=o.length?o[o.length-1]:null,n=l,s=0;s<o.length;s++){var d=o[s];if(d.dataset.precedence===t)n=d;else if(n!==l)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Dg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Eg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function Sx(e,t,a){if(tm===null){var o=new Map,l=tm=new Map;l.set(a,o)}else l=tm,o=l.get(a),o||(o=new Map,l.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(l=0;l<a.length;l++){var n=a[l];if(!(n[md]||n[Xa]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!==Au){var s=n.getAttribute(t)||"";s=e+s;var d=o.get(s);d?d.push(n):o.set(s,[n])}}return o}function xx(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function FI(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===ri||t.itemProp!=null)return!o||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href===""){o&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence==="string"){e=t.href;var l=t.onError,n=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),l&&a.push("`onError`"),n!=null&&a.push("`disabled`"),l=bI(a,"and"),l+=a.length===1?" prop":" props",n=a.length===1?"an "+l:"the "+l,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,n,l)}o&&(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!=="string"&&o&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e==="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!=="string"){o&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":o&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Lx(e){return e.type==="stylesheet"&&(e.state.loading&n1)===_s?!1:!0}function GI(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&el)===_s){if(a.instance===null){var l=Lu(o.href),n=t.querySelector(ud(l));if(n){t=n._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=Zf.bind(e),t.then(e,e)),a.state.loading|=el,a.instance=n,Oe(n);return}n=t.ownerDocument||t,o=bx(o),(l=tl.get(l))&&Dg(o,l),n=n.createElement("link"),Oe(n);var s=n;s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),$a(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&n1)===_s&&(e.count++,a=Zf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function VI(e,t){return e.stylesheets&&e.count===0&&Wf(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&Wf(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},PM+t);0<e.imgBytes&&db===0&&(db=125*vI()*_M);var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wf(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>db?50:zM)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(l)}}:null}function Zf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Wf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,am=new Map,t.forEach($I,e),am=null,Zf.call(e))}function $I(e,t){if(!(t.state.loading&el)){var a=am.get(e);if(a)var o=a.get(cb);else{a=new Map,am.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<l.length;n++){var s=l[n];if(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")a.set(s.dataset.precedence,s),o=s}o&&a.set(cb,o)}l=t.instance,s=l.getAttribute("data-precedence"),n=a.get(s)||o,n===o&&a.set(cb,l),a.set(s,l),this.count++,o=Zf.bind(this),l.addEventListener("load",o),l.addEventListener("error",o),n?n.parentNode.insertBefore(l,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=el}}function XI(e,t,a,o,l,n,s,d,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=zs,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ru(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ru(0),this.hiddenUpdates=ru(null),this.identifierPrefix=o,this.onUncaughtError=l,this.onCaughtError=n,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[];for(t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function Cx(e,t,a,o,l,n,s,d,m,g,A,E){return e=new XI(e,t,a,s,m,g,A,E,d),t=cM,n===!0&&(t|=Ja|fl),t|=tt,n=C(3,null,null,t),e.current=n,n.stateNode=e,t=rh(),fs(t),e.pooledCache=t,fs(t),n.memoizedState={element:o,isDehydrated:a,cache:t},ch(n),e}function kx(e){if(!e)return vr;return e=vr,e}function Og(e,t,a,o,l,n){if(Ka&&typeof Ka.onScheduleFiberRoot==="function")try{Ka.onScheduleFiberRoot(Ru,o,a)}catch(s){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",s))}l=kx(l),o.context===null?o.context=l:o.pendingContext=l,jl&&Do!==null&&!d1&&(d1=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
183
183
 
184
- Check the render method of %s.`,X(_o)||"Unknown")),i=ur(t),i.payload={element:n},f=f===void 0?null:f,f!==null&&(typeof f!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",f),i.callback=f),n=cr(e,i,t),n!==null&&(Dn(t,"root.render()",null),Zt(n,e,t),hc(n,e,t))}function QC(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Jb(e,t){QC(e,t),(e=e.alternate)&&QC(e,t)}function KC(e){if(e.tag===13||e.tag===31){var t=qa(e,67108864);t!==null&&Zt(t,e,67108864),Jb(e,67108864)}}function JC(e){if(e.tag===13||e.tag===31){var t=Ao(e);t=yi(t);var n=qa(e,t);n!==null&&Zt(n,e,t),Jb(e,t)}}function A2(){return _o}function R2(e,t,n,i){var c=V.T;V.T=null;var f=bt.p;try{bt.p=Eo,ey(e,t,n,i)}finally{bt.p=f,V.T=c}}function D2(e,t,n,i){var c=V.T;V.T=null;var f=bt.p;try{bt.p=mn,ey(e,t,n,i)}finally{bt.p=f,V.T=c}}function ey(e,t,n,i){if(jh){var c=ty(i);if(c===null)Hb(e,t,i,Gh,n),t1(e,i);else if(_2(c,e,t,n,i))i.stopPropagation();else if(t1(e,i),t&4&&-1<TE.indexOf(e)){for(;c!==null;){var f=Ne(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var m=Mn(f.pendingLanes);if(m!==0){var x=f;x.pendingLanes|=2;for(x.entangledLanes|=2;m;){var S=1<<31-$a(m);x.entanglements[1]|=S,m&=~S}qn(f),(ct&(ba|No))===ka&&(Mh=Ca()+cw,Ic(0,!1))}}break;case 31:case 13:x=qa(f,2),x!==null&&Zt(x,f,2),Ul(),Jb(f,2)}if(f=ty(i),f===null&&Hb(e,t,i,Gh,n),f===c)break;c=f}c!==null&&i.stopPropagation()}else Hb(e,t,i,null,n)}}function ty(e){return e=ig(e),ay(e)}function ay(e){if(Gh=null,e=xe(e),e!==null){var t=A(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=B(t),e!==null)return e;e=null}else if(n===31){if(e=z(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 Gh=e,null}function e1(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 Eo;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 mn;case"message":switch(F2()){case my:return Eo;case gy:return mn;case $l:case q2:return Wn;case by:return Yp;default:return Wn}default:return Wn}}function t1(e,t){switch(e){case"focusin":case"focusout":Fr=null;break;case"dragenter":case"dragleave":qr=null;break;case"mouseover":case"mouseout":Vr=null;break;case"pointerover":case"pointerout":Ad.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rd.delete(t.pointerId)}}function Pc(e,t,n,i,c,f){if(e===null||e.nativeEvent!==f)return e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:f,targetContainers:[c]},t!==null&&(t=Ne(t),t!==null&&KC(t)),e;return e.eventSystemFlags|=i,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e}function _2(e,t,n,i,c){switch(t){case"focusin":return Fr=Pc(Fr,e,t,n,i,c),!0;case"dragenter":return qr=Pc(qr,e,t,n,i,c),!0;case"mouseover":return Vr=Pc(Vr,e,t,n,i,c),!0;case"pointerover":var f=c.pointerId;return Ad.set(f,Pc(Ad.get(f)||null,e,t,n,i,c)),!0;case"gotpointercapture":return f=c.pointerId,Rd.set(f,Pc(Rd.get(f)||null,e,t,n,i,c)),!0}return!1}function a1(e){var t=xe(e.target);if(t!==null){var n=A(t);if(n!==null){if(t=n.tag,t===13){if(t=B(n),t!==null){e.blockedOn=t,oe(e.priority,function(){JC(n)});return}}else if(t===31){if(t=z(n),t!==null){e.blockedOn=t,oe(e.priority,function(){JC(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 zp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ty(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n),c=i;Uc!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Uc=c,n.target.dispatchEvent(i),Uc===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Uc=null}else return t=Ne(n),t!==null&&KC(t),e.blockedOn=n,!1;t.shift()}return!0}function o1(e,t,n){zp(e)&&n.delete(t)}function E2(){Dx=!1,Fr!==null&&zp(Fr)&&(Fr=null),qr!==null&&zp(qr)&&(qr=null),Vr!==null&&zp(Vr)&&(Vr=null),Ad.forEach(o1),Rd.forEach(o1)}function Hp(e,t){e.blockedOn===t&&(e.blockedOn=null,Dx||(Dx=!0,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,E2)))}function n1(e){Xh!==e&&(Xh=e,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,function(){Xh===e&&(Xh=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],c=e[t+2];if(typeof i!=="function")if(ay(i||n)===null)continue;else break;var f=Ne(n);f!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:c,method:n.method,action:i},Object.freeze(n),ab(f,n,i,c))}}))}function Gl(e){function t(S){return Hp(S,e)}Fr!==null&&Hp(Fr,e),qr!==null&&Hp(qr,e),Vr!==null&&Hp(Vr,e),Ad.forEach(t),Rd.forEach(t);for(var n=0;n<jr.length;n++){var i=jr[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<jr.length&&(n=jr[0],n.blockedOn===null);)a1(n),n.blockedOn===null&&jr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var c=n[i],f=n[i+1],m=c[Wa]||null;if(typeof f==="function")m||n1(n);else if(m){var x=null;if(f&&f.hasAttribute("formAction")){if(c=f,m=f[Wa]||null)x=m.formAction;else if(ay(c)!==null)continue}else x=m.action;typeof x==="function"?n[i+1]=x:(n.splice(i,3),i-=3),n1(n)}}}function s1(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(m){return c=m})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var i=!1,c=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),c!==null&&(c(),c=null)}}}function oy(e){this._internalRoot=e}function Up(e){this._internalRoot=e}function r1(e){e[vr]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ze=Object.assign,O2=Symbol.for("react.element"),jn=Symbol.for("react.transitional.element"),Xl=Symbol.for("react.portal"),Yl=Symbol.for("react.fragment"),Fp=Symbol.for("react.strict_mode"),ny=Symbol.for("react.profiler"),sy=Symbol.for("react.consumer"),Gn=Symbol.for("react.context"),Bc=Symbol.for("react.forward_ref"),ry=Symbol.for("react.suspense"),iy=Symbol.for("react.suspense_list"),qp=Symbol.for("react.memo"),Do=Symbol.for("react.lazy"),ly=Symbol.for("react.activity"),P2=Symbol.for("react.memo_cache_sentinel"),i1=Symbol.iterator,B2=Symbol.for("react.client.reference"),ma=Array.isArray,V=Fu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bt=Fv.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N2=Object.freeze({pending:!1,data:null,method:null,action:null}),uy=[],cy=[],vs=-1,br=se(null),Nc=se(null),yr=se(null),Vp=se(null),zc=0,l1,u1,c1,d1,f1,p1,h1;k.__reactDisabledLog=!0;var dy,m1,fy=!1,py=new(typeof WeakMap==="function"?WeakMap:Map),_o=null,Xn=!1,hn=Object.prototype.hasOwnProperty,hy=mt.unstable_scheduleCallback,z2=mt.unstable_cancelCallback,H2=mt.unstable_shouldYield,U2=mt.unstable_requestPaint,Ca=mt.unstable_now,F2=mt.unstable_getCurrentPriorityLevel,my=mt.unstable_ImmediatePriority,gy=mt.unstable_UserBlockingPriority,$l=mt.unstable_NormalPriority,q2=mt.unstable_LowPriority,by=mt.unstable_IdlePriority,V2=mt.log,j2=mt.unstable_setDisableYieldValue,Wl=null,Va=null,Yn=!1,$n=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",$a=Math.clz32?Math.clz32:Df,{log:G2,LN2:X2}=Math,jp=256,Gp=262144,Xp=4194304,Eo=2,mn=8,Wn=32,Yp=268435456,xr=Math.random().toString(36).slice(2),Oa="__reactFiber$"+xr,Wa="__reactProps$"+xr,vr="__reactContainer$"+xr,yy="__reactEvents$"+xr,Y2="__reactListeners$"+xr,$2="__reactHandles$"+xr,g1="__reactResources$"+xr,Hc="__reactMarker$"+xr,b1=new Set,Oi={},xy={},W2={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Z2=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]*$"),y1={},x1={},Q2=/[\n"\\]/g,v1=!1,S1=!1,L1=!1,C1=!1,T1=!1,w1=!1,k1=["value","defaultValue"],M1=!1,I1=/["'&<>\n\t]|^\s|\s$/,K2="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),A1="applet caption html table td th marquee object template foreignObject desc title".split(" "),J2=A1.concat(["button"]),e_="dd dt li option optgroup p rp rt".split(" "),R1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},$p={},vy={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},D1=/([A-Z])/g,_1=/^ms-/,t_=/^(?:webkit|moz|o)[A-Z]/,a_=/^-ms-/,o_=/-(.)/g,E1=/;\s*$/,Zl={},Sy={},O1=!1,P1=!1,B1=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(" ")),Wp="http://www.w3.org/1998/Math/MathML",Ql="http://www.w3.org/2000/svg",n_=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"]]),Zp={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},N1={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Kl={},s_=RegExp("^(aria)-[: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]*$"),r_=RegExp("^(aria)[A-Z][: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]*$"),z1=!1,Za={},H1=/^on./,i_=/^on[^A-Z]/,l_=RegExp("^(aria)-[: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]*$"),u_=RegExp("^(aria)[A-Z][: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]*$"),c_=/^[\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,Uc=null,Jl=null,eu=null,Ly=!1,Zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cy=!1;if(Zn)try{var Fc={};Object.defineProperty(Fc,"passive",{get:function(){Cy=!0}}),window.addEventListener("test",Fc,Fc),window.removeEventListener("test",Fc,Fc)}catch(e){Cy=!1}var Sr=null,Ty=null,Qp=null,Pi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kp=no(Pi),qc=Ze({},Pi,{view:0,detail:0}),d_=no(qc),wy,ky,Vc,Jp=Ze({},qc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lg,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){if("movementX"in e)return e.movementX;return e!==Vc&&(Vc&&e.type==="mousemove"?(wy=e.screenX-Vc.screenX,ky=e.screenY-Vc.screenY):ky=wy=0,Vc=e),wy},movementY:function(e){return"movementY"in e?e.movementY:ky}}),U1=no(Jp),f_=Ze({},Jp,{dataTransfer:0}),p_=no(f_),h_=Ze({},qc,{relatedTarget:0}),My=no(h_),m_=Ze({},Pi,{animationName:0,elapsedTime:0,pseudoElement:0}),g_=no(m_),b_=Ze({},Pi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),y_=no(b_),x_=Ze({},Pi,{data:0}),F1=no(x_),v_=F1,S_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},L_={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"},C_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},T_=Ze({},qc,{key:function(e){if(e.key){var t=S_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?L_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lg,charCode:function(e){return e.type==="keypress"?zf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),w_=no(T_),k_=Ze({},Jp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),q1=no(k_),M_=Ze({},qc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lg}),I_=no(M_),A_=Ze({},Pi,{propertyName:0,elapsedTime:0,pseudoElement:0}),R_=no(A_),D_=Ze({},Jp,{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}),__=no(D_),E_=Ze({},Pi,{newState:0,oldState:0}),O_=no(E_),P_=[9,13,27,32],V1=229,Iy=Zn&&"CompositionEvent"in window,jc=null;Zn&&"documentMode"in document&&(jc=document.documentMode);var B_=Zn&&"TextEvent"in window&&!jc,j1=Zn&&(!Iy||jc&&8<jc&&11>=jc),G1=32,X1=String.fromCharCode(G1),Y1=!1,tu=!1,N_={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},Gc=null,Xc=null,$1=!1;Zn&&($1=nD("input")&&(!document.documentMode||9<document.documentMode));var Qa=typeof Object.is==="function"?Object.is:cD,z_=Zn&&"documentMode"in document&&11>=document.documentMode,au=null,Ay=null,Yc=null,Ry=!1,ou={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionrun:vi("Transition","TransitionRun"),transitionstart:vi("Transition","TransitionStart"),transitioncancel:vi("Transition","TransitionCancel"),transitionend:vi("Transition","TransitionEnd")},Dy={},W1={};Zn&&(W1=document.createElement("div").style,("AnimationEvent"in window)||(delete ou.animationend.animation,delete ou.animationiteration.animation,delete ou.animationstart.animation),("TransitionEvent"in window)||delete ou.transitionend.transition);var Z1=Si("animationend"),Q1=Si("animationiteration"),K1=Si("animationstart"),H_=Si("transitionrun"),U_=Si("transitionstart"),F_=Si("transitioncancel"),J1=Si("transitionend"),eT=new Map,_y="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(" ");_y.push("scrollEnd");var tT=0;if(typeof performance==="object"&&typeof performance.now==="function")var q_=performance,aT=function(){return q_.now()};else{var V_=Date;aT=function(){return V_.now()}}var Ey=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)},j_="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",eh=0,Oy=1,Py=2,By=3,th="– ",ah="+ ",oT="  ",Pt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Go="Components ⚛",Qe="Scheduler ⚛",Je="Blocking",Lr=!1,Ss={color:"primary",properties:null,tooltipText:"",track:Go},Cr={start:-0,end:-0,detail:{devtools:Ss}},G_=["Changed Props",""],nT="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",X_=["Changed Props",nT],$c=1,Ls=2,Xo=[],nu=0,Ny=0,Tr={};Object.freeze(Tr);var Yo=null,su=null,Oe=0,Y_=1,je=2,ja=8,gn=16,$_=32,sT=!1;try{var rT=Object.preventExtensions({})}catch(e){sT=!0}var zy=new WeakMap,ru=[],iu=0,oh=null,Wc=0,$o=[],Wo=0,Bi=null,Cs=1,Ts="",Pa=null,Bt=null,at=!1,Qn=!1,Oo=null,wr=null,Zo=!1,Hy=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Uy=se(null),Fy=se(null),iT={},nh=null,lu=null,uu=!1,W_=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()})}},Z_=mt.unstable_scheduleCallback,Q_=mt.unstable_NormalPriority,ia={$$typeof:Gn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},la=mt.unstable_now,sh=console.createTask?console.createTask:function(){return null},Zc=1,rh=2,Ta=-0,kr=-0,ws=-0,ks=null,Ka=-1.1,Ni=-0,Xt=-0,Re=-1.1,De=-1.1,qt=null,Qt=!1,Mr=-0,Kn=-1.1,Qc=null,Ir=0,qy=null,Vy=null,zi=-1.1,Kc=null,cu=-1.1,ih=-1.1,Jn=-0,Ms=-1.1,Qo=-1.1,jy=0,Jc=null,lT=null,uT=null,Ar=-1.1,Hi=null,Rr=-1.1,lh=-1.1,cT=-0,dT=-0,uh=0,Is=null,fT=0,ed=-1.1,ch=!1,dh=!1,td=null,Gy=0,Ui=0,du=null,pT=V.S;V.S=function(e,t){if(lw=Ca(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>Ms&&0>Qo){Ms=la();var n=Dc(),i=Rc();if(n!==Rr||i!==Hi)Rr=-1.1;Ar=n,Hi=i}bD(e,t)}pT!==null&&pT(e,t)};var Fi=se(null),bn={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},ad=[],od=[],nd=[],sd=[],rd=[],id=[],qi=new Set;bn.recordUnsafeLifecycleWarnings=function(e,t){qi.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&ad.push(e),e.mode&ja&&typeof t.UNSAFE_componentWillMount==="function"&&od.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&nd.push(e),e.mode&ja&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&sd.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&rd.push(e),e.mode&ja&&typeof t.UNSAFE_componentWillUpdate==="function"&&id.push(e))},bn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<ad.length&&(ad.forEach(function(x){e.add(X(x)||"Component"),qi.add(x.type)}),ad=[]);var t=new Set;0<od.length&&(od.forEach(function(x){t.add(X(x)||"Component"),qi.add(x.type)}),od=[]);var n=new Set;0<nd.length&&(nd.forEach(function(x){n.add(X(x)||"Component"),qi.add(x.type)}),nd=[]);var i=new Set;0<sd.length&&(sd.forEach(function(x){i.add(X(x)||"Component"),qi.add(x.type)}),sd=[]);var c=new Set;0<rd.length&&(rd.forEach(function(x){c.add(X(x)||"Component"),qi.add(x.type)}),rd=[]);var f=new Set;if(0<id.length&&(id.forEach(function(x){f.add(X(x)||"Component"),qi.add(x.type)}),id=[]),0<t.size){var m=b(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
184
+ Check the render method of %s.`,X(Do)||"Unknown")),o=lr(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(typeof n!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",n),o.callback=n),a=nr(e,o,t),a!==null&&(El(t,"root.render()",null),oa(a,e,t),Gi(a,e,t))}function wx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function qg(e,t){wx(e,t),(e=e.alternate)&&wx(e,t)}function Tx(e){if(e.tag===13||e.tag===31){var t=Wa(e,67108864);t!==null&&oa(t,e,67108864),qg(e,67108864)}}function Ix(e){if(e.tag===13||e.tag===31){var t=Ro(e);t=os(t);var a=Wa(e,t);a!==null&&oa(a,e,t),qg(e,t)}}function jI(){return Do}function YI(e,t,a,o){var l=G.T;G.T=null;var n=kt.p;try{kt.p=Eo,Bg(e,t,a,o)}finally{kt.p=n,G.T=l}}function QI(e,t,a,o){var l=G.T;G.T=null;var n=kt.p;try{kt.p=cl,Bg(e,t,a,o)}finally{kt.p=n,G.T=l}}function Bg(e,t,a,o){if(lm){var l=Ng(o);if(l===null)Sg(e,t,o,nm,a),Mx(e,o);else if(ZI(l,e,t,a,o))o.stopPropagation();else if(Mx(e,o),t&4&&-1<FM.indexOf(e)){for(;l!==null;){var n=$e(l);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var s=Rl(n.pendingLanes);if(s!==0){var d=n;d.pendingLanes|=2;for(d.entangledLanes|=2;s;){var m=1<<31-ao(s);d.entanglements[1]|=m,s&=~m}Gl(n),(ht&(Aa|No))===Pa&&(Hp=Ba()+PC,od(0,!1))}}break;case 31:case 13:d=Wa(n,2),d!==null&&oa(d,n,2),vu(),qg(n,2)}if(n=Ng(o),n===null&&Sg(e,t,o,nm,a),n===l)break;l=n}l!==null&&o.stopPropagation()}else Sg(e,t,o,null,a)}}function Ng(e){return e=Fm(e),Ug(e)}function Ug(e){if(nm=null,e=we(e),e!==null){var t=z(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=F(t),e!==null)return e;e=null}else if(a===31){if(e=K(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return nm=e,null}function Rx(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 Eo;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 cl;case"message":switch(nR()){case Zg:return Eo;case Wg:return cl;case Iu:case rR:return Zl;case Kg:return sp;default:return Zl}default:return Zl}}function Mx(e,t){switch(e){case"focusin":case"focusout":Nr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":Pr=null;break;case"pointerover":case"pointerout":lc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nc.delete(t.pointerId)}}function dd(e,t,a,o,l,n){if(e===null||e.nativeEvent!==n)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[l]},t!==null&&(t=$e(t),t!==null&&Tx(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e}function ZI(e,t,a,o,l){switch(t){case"focusin":return Nr=dd(Nr,e,t,a,o,l),!0;case"dragenter":return Ur=dd(Ur,e,t,a,o,l),!0;case"mouseover":return Pr=dd(Pr,e,t,a,o,l),!0;case"pointerover":var n=l.pointerId;return lc.set(n,dd(lc.get(n)||null,e,t,a,o,l)),!0;case"gotpointercapture":return n=l.pointerId,nc.set(n,dd(nc.get(n)||null,e,t,a,o,l)),!0}return!1}function Ax(e){var t=we(e.target);if(t!==null){var a=z(t);if(a!==null){if(t=a.tag,t===13){if(t=F(a),t!==null){e.blockedOn=t,ie(e.priority,function(){Ix(a)});return}}else if(t===31){if(t=K(a),t!==null){e.blockedOn=t,ie(e.priority,function(){Ix(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Kf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ng(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),l=o;hd!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),hd=l,a.target.dispatchEvent(o),hd===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),hd=null}else return t=$e(a),t!==null&&Tx(t),e.blockedOn=a,!1;t.shift()}return!0}function Dx(e,t,a){Kf(e)&&a.delete(t)}function WI(){fb=!1,Nr!==null&&Kf(Nr)&&(Nr=null),Ur!==null&&Kf(Ur)&&(Ur=null),Pr!==null&&Kf(Pr)&&(Pr=null),lc.forEach(Dx),nc.forEach(Dx)}function Jf(e,t){e.blockedOn===t&&(e.blockedOn=null,fb||(fb=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,WI)))}function Ex(e){rm!==e&&(rm=e,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,function(){rm===e&&(rm=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],l=e[t+2];if(typeof o!=="function")if(Ug(o||a)===null)continue;else break;var n=$e(a);n!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:l,method:a.method,action:o},Object.freeze(a),Uh(n,a,o,l))}}))}function ku(e){function t(m){return Jf(m,e)}Nr!==null&&Jf(Nr,e),Ur!==null&&Jf(Ur,e),Pr!==null&&Jf(Pr,e),lc.forEach(t),nc.forEach(t);for(var a=0;a<zr.length;a++){var o=zr[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<zr.length&&(a=zr[0],a.blockedOn===null);)Ax(a),a.blockedOn===null&&zr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var l=a[o],n=a[o+1],s=l[oo]||null;if(typeof n==="function")s||Ex(a);else if(s){var d=null;if(n&&n.hasAttribute("formAction")){if(l=n,s=n[oo]||null)d=s.formAction;else if(Ug(l)!==null)continue}else d=s.action;typeof d==="function"?a[o+1]=d:(a.splice(o,3),o-=3),Ex(a)}}}function Ox(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(s){return l=s})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Pg(e){this._internalRoot=e}function ep(e){this._internalRoot=e}function qx(e){e[hr]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var rt=Object.assign,KI=Symbol.for("react.element"),$l=Symbol.for("react.transitional.element"),wu=Symbol.for("react.portal"),Tu=Symbol.for("react.fragment"),tp=Symbol.for("react.strict_mode"),zg=Symbol.for("react.profiler"),_g=Symbol.for("react.consumer"),Xl=Symbol.for("react.context"),cd=Symbol.for("react.forward_ref"),Hg=Symbol.for("react.suspense"),Fg=Symbol.for("react.suspense_list"),ap=Symbol.for("react.memo"),Ao=Symbol.for("react.lazy"),Gg=Symbol.for("react.activity"),JI=Symbol.for("react.memo_cache_sentinel"),Bx=Symbol.iterator,eR=Symbol.for("react.client.reference"),Ra=Array.isArray,G=ii.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,kt=mb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tR=Object.freeze({pending:!1,data:null,method:null,action:null}),Vg=[],$g=[],Tn=-1,fr=ge(null),fd=ge(null),pr=ge(null),op=ge(null),pd=0,Nx,Ux,Px,zx,_x,Hx,Fx;P.__reactDisabledLog=!0;var Xg,Gx,jg=!1,Yg=new(typeof WeakMap==="function"?WeakMap:Map),Do=null,jl=!1,dl=Object.prototype.hasOwnProperty,Qg=bt.unstable_scheduleCallback,aR=bt.unstable_cancelCallback,oR=bt.unstable_shouldYield,lR=bt.unstable_requestPaint,Ba=bt.unstable_now,nR=bt.unstable_getCurrentPriorityLevel,Zg=bt.unstable_ImmediatePriority,Wg=bt.unstable_UserBlockingPriority,Iu=bt.unstable_NormalPriority,rR=bt.unstable_LowPriority,Kg=bt.unstable_IdlePriority,sR=bt.log,uR=bt.unstable_setDisableYieldValue,Ru=null,Ka=null,Yl=!1,Ql=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ao=Math.clz32?Math.clz32:Vc,{log:iR,LN2:dR}=Math,lp=256,np=262144,rp=4194304,Eo=2,cl=8,Zl=32,sp=268435456,mr=Math.random().toString(36).slice(2),Xa="__reactFiber$"+mr,oo="__reactProps$"+mr,hr="__reactContainer$"+mr,Jg="__reactEvents$"+mr,cR="__reactListeners$"+mr,fR="__reactHandles$"+mr,Vx="__reactResources$"+mr,md="__reactMarker$"+mr,$x=new Set,vs={},ey={},pR={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},mR=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]*$"),Xx={},jx={},hR=/[\n"\\]/g,Yx=!1,Qx=!1,Zx=!1,Wx=!1,Kx=!1,Jx=!1,eL=["value","defaultValue"],tL=!1,aL=/["'&<>\n\t]|^\s|\s$/,gR="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),oL="applet caption html table td th marquee object template foreignObject desc title".split(" "),yR=oL.concat(["button"]),bR="dd dt li option optgroup p rp rt".split(" "),lL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},up={},ty={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},nL=/([A-Z])/g,rL=/^ms-/,vR=/^(?:webkit|moz|o)[A-Z]/,SR=/^-ms-/,xR=/-(.)/g,sL=/;\s*$/,Mu={},ay={},uL=!1,iL=!1,dL=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(" ")),ip="http://www.w3.org/1998/Math/MathML",Au="http://www.w3.org/2000/svg",LR=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"]]),dp={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},cL={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Du={},CR=RegExp("^(aria)-[: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]*$"),kR=RegExp("^(aria)[A-Z][: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]*$"),fL=!1,lo={},pL=/^on./,wR=/^on[^A-Z]/,TR=RegExp("^(aria)-[: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]*$"),IR=RegExp("^(aria)[A-Z][: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]*$"),RR=/^[\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,hd=null,Eu=null,Ou=null,oy=!1,Wl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ly=!1;if(Wl)try{var gd={};Object.defineProperty(gd,"passive",{get:function(){ly=!0}}),window.addEventListener("test",gd,gd),window.removeEventListener("test",gd,gd)}catch(e){ly=!1}var gr=null,ny=null,cp=null,Ss={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fp=fo(Ss),yd=rt({},Ss,{view:0,detail:0}),MR=fo(yd),ry,sy,bd,pp=rt({},yd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gm,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){if("movementX"in e)return e.movementX;return e!==bd&&(bd&&e.type==="mousemove"?(ry=e.screenX-bd.screenX,sy=e.screenY-bd.screenY):sy=ry=0,bd=e),ry},movementY:function(e){return"movementY"in e?e.movementY:sy}}),mL=fo(pp),AR=rt({},pp,{dataTransfer:0}),DR=fo(AR),ER=rt({},yd,{relatedTarget:0}),uy=fo(ER),OR=rt({},Ss,{animationName:0,elapsedTime:0,pseudoElement:0}),qR=fo(OR),BR=rt({},Ss,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),NR=fo(BR),UR=rt({},Ss,{data:0}),hL=fo(UR),PR=hL,zR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_R={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"},HR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},FR=rt({},yd,{key:function(e){if(e.key){var t=zR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_R[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gm,charCode:function(e){return e.type==="keypress"?Wc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),GR=fo(FR),VR=rt({},pp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gL=fo(VR),$R=rt({},yd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gm}),XR=fo($R),jR=rt({},Ss,{propertyName:0,elapsedTime:0,pseudoElement:0}),YR=fo(jR),QR=rt({},pp,{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}),ZR=fo(QR),WR=rt({},Ss,{newState:0,oldState:0}),KR=fo(WR),JR=[9,13,27,32],yL=229,iy=Wl&&"CompositionEvent"in window,vd=null;Wl&&"documentMode"in document&&(vd=document.documentMode);var eM=Wl&&"TextEvent"in window&&!vd,bL=Wl&&(!iy||vd&&8<vd&&11>=vd),vL=32,SL=String.fromCharCode(vL),xL=!1,qu=!1,tM={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},Sd=null,xd=null,LL=!1;Wl&&(LL=LT("input")&&(!document.documentMode||9<document.documentMode));var no=typeof Object.is==="function"?Object.is:RT,aM=Wl&&"documentMode"in document&&11>=document.documentMode,Bu=null,dy=null,Ld=null,cy=!1,Nu={animationend:ns("Animation","AnimationEnd"),animationiteration:ns("Animation","AnimationIteration"),animationstart:ns("Animation","AnimationStart"),transitionrun:ns("Transition","TransitionRun"),transitionstart:ns("Transition","TransitionStart"),transitioncancel:ns("Transition","TransitionCancel"),transitionend:ns("Transition","TransitionEnd")},fy={},CL={};Wl&&(CL=document.createElement("div").style,("AnimationEvent"in window)||(delete Nu.animationend.animation,delete Nu.animationiteration.animation,delete Nu.animationstart.animation),("TransitionEvent"in window)||delete Nu.transitionend.transition);var kL=rs("animationend"),wL=rs("animationiteration"),TL=rs("animationstart"),oM=rs("transitionrun"),lM=rs("transitionstart"),nM=rs("transitioncancel"),IL=rs("transitionend"),RL=new Map,py="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(" ");py.push("scrollEnd");var ML=0;if(typeof performance==="object"&&typeof performance.now==="function")var rM=performance,AL=function(){return rM.now()};else{var sM=Date;AL=function(){return sM.now()}}var my=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)},uM="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",mp=0,hy=1,gy=2,yy=3,hp="– ",gp="+ ",DL="  ",Gt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Vo="Components ⚛",st="Scheduler ⚛",it="Blocking",yr=!1,In={color:"primary",properties:null,tooltipText:"",track:Vo},br={start:-0,end:-0,detail:{devtools:In}},iM=["Changed Props",""],EL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",dM=["Changed Props",EL],Cd=1,Rn=2,$o=[],Uu=0,by=0,vr={};Object.freeze(vr);var Xo=null,Pu=null,ze=0,cM=1,tt=2,Ja=8,fl=16,fM=32,OL=!1;try{var qL=Object.preventExtensions({})}catch(e){OL=!0}var vy=new WeakMap,zu=[],_u=0,yp=null,kd=0,jo=[],Yo=0,xs=null,Mn=1,An="",ja=null,Vt=null,dt=!1,Kl=!1,Oo=null,Sr=null,Qo=!1,Sy=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),xy=ge(null),Ly=ge(null),BL={},bp=null,Hu=null,Fu=!1,pM=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},mM=bt.unstable_scheduleCallback,hM=bt.unstable_NormalPriority,va={$$typeof:Xl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Sa=bt.unstable_now,vp=console.createTask?console.createTask:function(){return null},wd=1,Sp=2,Na=-0,xr=-0,Dn=-0,En=null,ro=-1.1,Ls=-0,Jt=-0,qe=-1.1,Ue=-1.1,Zt=null,la=!1,Lr=-0,Jl=-1.1,Td=null,Cr=0,Cy=null,ky=null,Cs=-1.1,Id=null,Gu=-1.1,xp=-1.1,en=-0,On=-1.1,Zo=-1.1,wy=0,Rd=null,NL=null,UL=null,kr=-1.1,ks=null,wr=-1.1,Lp=-1.1,PL=-0,zL=-0,Cp=0,qn=null,_L=0,Md=-1.1,kp=!1,wp=!1,Ad=null,Ty=0,ws=0,Vu=null,HL=G.S;G.S=function(e,t){if(NC=Ba(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>On&&0>Zo){On=Sa();var a=rd(),o=nd();if(a!==wr||o!==ks)wr=-1.1;kr=a,ks=o}BT(e,t)}HL!==null&&HL(e,t)};var Ts=ge(null),pl={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Dd=[],Ed=[],Od=[],qd=[],Bd=[],Nd=[],Is=new Set;pl.recordUnsafeLifecycleWarnings=function(e,t){Is.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Dd.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillMount==="function"&&Ed.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Od.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&qd.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Bd.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillUpdate==="function"&&Nd.push(e))},pl.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Dd.length&&(Dd.forEach(function(d){e.add(X(d)||"Component"),Is.add(d.type)}),Dd=[]);var t=new Set;0<Ed.length&&(Ed.forEach(function(d){t.add(X(d)||"Component"),Is.add(d.type)}),Ed=[]);var a=new Set;0<Od.length&&(Od.forEach(function(d){a.add(X(d)||"Component"),Is.add(d.type)}),Od=[]);var o=new Set;0<qd.length&&(qd.forEach(function(d){o.add(X(d)||"Component"),Is.add(d.type)}),qd=[]);var l=new Set;0<Bd.length&&(Bd.forEach(function(d){l.add(X(d)||"Component"),Is.add(d.type)}),Bd=[]);var n=new Set;if(0<Nd.length&&(Nd.forEach(function(d){n.add(X(d)||"Component"),Is.add(d.type)}),Nd=[]),0<t.size){var s=x(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
185
185
 
186
186
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
187
 
188
- Please update the following components: %s`,m)}0<i.size&&(m=b(i),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
188
+ Please update the following components: %s`,s)}0<o.size&&(s=x(o),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
189
189
 
190
190
  * Move data fetching code or side effects to componentDidUpdate.
191
191
  * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
192
192
 
193
- Please update the following components: %s`,m)),0<f.size&&(m=b(f),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
193
+ Please update the following components: %s`,s)),0<n.size&&(s=x(n),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
194
 
195
195
  * Move data fetching code or side effects to componentDidUpdate.
196
196
 
197
- Please update the following components: %s`,m)),0<e.size&&(m=b(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
197
+ Please update the following components: %s`,s)),0<e.size&&(s=x(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
198
198
 
199
199
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
200
200
  * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
201
201
 
202
- Please update the following components: %s`,m)),0<n.size&&(m=b(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
202
+ Please update the following components: %s`,s)),0<a.size&&(s=x(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
203
 
204
204
  * Move data fetching code or side effects to componentDidUpdate.
205
205
  * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
206
206
  * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
207
207
 
208
- Please update the following components: %s`,m)),0<c.size&&(m=b(c),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+ Please update the following components: %s`,s)),0<l.size&&(s=x(l),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
209
209
 
210
210
  * Move data fetching code or side effects to componentDidUpdate.
211
211
  * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
212
 
213
- Please update the following components: %s`,m))};var fh=new Map,hT=new Set;bn.recordLegacyContextWarning=function(e,t){var n=null;for(var i=e;i!==null;)i.mode&ja&&(n=i),i=i.return;n===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!hT.has(e.type)&&(i=fh.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(i===void 0&&(i=[],fh.set(n,i)),i.push(e))},bn.flushLegacyContextWarning=function(){fh.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(c){n.add(X(c)||"Component"),hT.add(c.type)});var i=b(n);me(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,s))};var Tp=new Map,FL=new Set;pl.recordLegacyContextWarning=function(e,t){var a=null;for(var o=e;o!==null;)o.mode&Ja&&(a=o),o=o.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!FL.has(e.type)&&(o=Tp.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(o===void 0&&(o=[],Tp.set(a,o)),o.push(e))},pl.flushLegacyContextWarning=function(){Tp.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(l){a.add(X(l)||"Component"),FL.add(l.type)});var o=x(a);re(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
214
214
 
215
215
  The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
216
216
 
217
217
  Please update the following components: %s
218
218
 
219
- Learn more about this warning here: https://react.dev/link/legacy-context`,i)})}})},bn.discardPendingWarnings=function(){ad=[],od=[],nd=[],sd=[],rd=[],id=[],fh=new Map};var mT={react_stack_bottom_frame:function(e,t,n){var i=Xn;Xn=!0;try{return e(t,n)}finally{Xn=i}}},Xy=mT.react_stack_bottom_frame.bind(mT),gT={react_stack_bottom_frame:function(e){var t=Xn;Xn=!0;try{return e.render()}finally{Xn=t}}},bT=gT.react_stack_bottom_frame.bind(gT),yT={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(n){gt(e,e.return,n)}}},Yy=yT.react_stack_bottom_frame.bind(yT),xT={react_stack_bottom_frame:function(e,t,n,i,c){try{t.componentDidUpdate(n,i,c)}catch(f){gt(e,e.return,f)}}},vT=xT.react_stack_bottom_frame.bind(xT),ST={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n!==null?n:""})}},K_=ST.react_stack_bottom_frame.bind(ST),LT={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(i){gt(e,t,i)}}},CT=LT.react_stack_bottom_frame.bind(LT),TT={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},J_=TT.react_stack_bottom_frame.bind(TT),wT={react_stack_bottom_frame:function(e,t,n){try{n()}catch(i){gt(e,t,i)}}},eE=wT.react_stack_bottom_frame.bind(wT),kT={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},tE=kT.react_stack_bottom_frame.bind(kT),fu=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),$y=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),ph=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),hh={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Vi=null,ld=!1,pu=null,ud=0,Ge=null,Wy,MT=Wy=!1,IT={},AT={},RT={};y=function(e,t,n){if(n!==null&&typeof n==="object"&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");n._store.validated=1;var i=X(e),c=i||"null";if(!IT[c]){IT[c]=!0,n=n._owner,e=e._debugOwner;var f="";e&&typeof e.tag==="number"&&(c=X(e))&&(f=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},pl.discardPendingWarnings=function(){Dd=[],Ed=[],Od=[],qd=[],Bd=[],Nd=[],Tp=new Map};var GL={react_stack_bottom_frame:function(e,t,a){var o=jl;jl=!0;try{return e(t,a)}finally{jl=o}}},Iy=GL.react_stack_bottom_frame.bind(GL),VL={react_stack_bottom_frame:function(e){var t=jl;jl=!0;try{return e.render()}finally{jl=t}}},$L=VL.react_stack_bottom_frame.bind(VL),XL={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){Ct(e,e.return,a)}}},Ry=XL.react_stack_bottom_frame.bind(XL),jL={react_stack_bottom_frame:function(e,t,a,o,l){try{t.componentDidUpdate(a,o,l)}catch(n){Ct(e,e.return,n)}}},YL=jL.react_stack_bottom_frame.bind(jL),QL={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},gM=QL.react_stack_bottom_frame.bind(QL),ZL={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){Ct(e,t,o)}}},WL=ZL.react_stack_bottom_frame.bind(ZL),KL={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},yM=KL.react_stack_bottom_frame.bind(KL),JL={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){Ct(e,t,o)}}},bM=JL.react_stack_bottom_frame.bind(JL),eC={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},vM=eC.react_stack_bottom_frame.bind(eC),$u=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),My=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Ip=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Rp={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Rs=null,Ud=!1,Xu=null,Pd=0,at=null,Ay,tC=Ay=!1,aC={},oC={},lC={};h=function(e,t,a){if(a!==null&&typeof a==="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var o=X(e),l=o||"null";if(!aC[l]){aC[l]=!0,a=a._owner,e=e._debugOwner;var n="";e&&typeof e.tag==="number"&&(l=X(e))&&(n=`
220
220
 
221
- Check the render method of \``+c+"`."),f||i&&(f=`
221
+ Check the render method of \``+l+"`."),n||o&&(n=`
222
222
 
223
- Check the top-level render call using <`+i+">.");var m="";n!=null&&e!==n&&(i=null,typeof n.tag==="number"?i=X(n):typeof n.name==="string"&&(i=n.name),i&&(m=" It was passed a child from "+i+".")),me(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',f,m)})}}};var ji=LS(!0),DT=LS(!1),_T=0,ET=1,OT=2,Zy=3,Dr=!1,PT=!1,Qy=null,Ky=!1,hu=se(null),mh=se(0),Po=se(null),Ko=null,mu=1,cd=2,oa=se(0),gh=0,Jo=1,Ja=2,Bo=4,eo=8,gu,BT=new Set,NT=new Set,Jy=new Set,zT=new Set,As=0,Pe=null,It=null,ua=null,bh=!1,bu=!1,Gi=!1,yh=0,dd=0,Rs=null,aE=0,oE=25,F=null,en=null,Ds=-1,fd=!1,pd={readContext:Ft,use:pr,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useInsertionEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useSyncExternalStore:ta,useId:ta,useHostTransitionStatus:ta,useFormState:ta,useActionState:ta,useOptimistic:ta,useMemoCache:ta,useCacheRefresh:ta};pd.useEffectEvent=ta;var ex=null,HT=null,tx=null,UT=null,es=null,yn=null,xh=null;ex={readContext:function(e){return Ft(e)},use:pr,useCallback:function(e,t){return F="useCallback",We(),El(t),Kg(e,t)},useContext:function(e){return F="useContext",We(),Ft(e)},useEffect:function(e,t){return F="useEffect",We(),El(t),fp(e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",We(),El(n),Qg(e,t,n)},useInsertionEffect:function(e,t){F="useInsertionEffect",We(),El(t),Ai(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",We(),El(t),Zg(e,t)},useMemo:function(e,t){F="useMemo",We(),El(t);var n=V.H;V.H=es;try{return Jg(e,t)}finally{V.H=n}},useReducer:function(e,t,n){F="useReducer",We();var i=V.H;V.H=es;try{return Fg(e,t,n)}finally{V.H=i}},useRef:function(e){return F="useRef",We(),$g(e)},useState:function(e){F="useState",We();var t=V.H;V.H=es;try{return Gg(e)}finally{V.H=t}},useDebugValue:function(){F="useDebugValue",We()},useDeferredValue:function(e,t){return F="useDeferredValue",We(),eb(e,t)},useTransition:function(){return F="useTransition",We(),ob()},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",We(),Vg(e,t,n)},useId:function(){return F="useId",We(),nb()},useFormState:function(e,t){return F="useFormState",We(),ip(),Pl(e,t)},useActionState:function(e,t){return F="useActionState",We(),Pl(e,t)},useOptimistic:function(e){return F="useOptimistic",We(),Xg(e)},useHostTransitionStatus:Ri,useMemoCache:Ii,useCacheRefresh:function(){return F="useCacheRefresh",We(),sb()},useEffectEvent:function(e){return F="useEffectEvent",We(),Wg(e)}},HT={readContext:function(e){return Ft(e)},use:pr,useCallback:function(e,t){return F="useCallback",ae(),Kg(e,t)},useContext:function(e){return F="useContext",ae(),Ft(e)},useEffect:function(e,t){return F="useEffect",ae(),fp(e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",ae(),Qg(e,t,n)},useInsertionEffect:function(e,t){F="useInsertionEffect",ae(),Ai(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",ae(),Zg(e,t)},useMemo:function(e,t){F="useMemo",ae();var n=V.H;V.H=es;try{return Jg(e,t)}finally{V.H=n}},useReducer:function(e,t,n){F="useReducer",ae();var i=V.H;V.H=es;try{return Fg(e,t,n)}finally{V.H=i}},useRef:function(e){return F="useRef",ae(),$g(e)},useState:function(e){F="useState",ae();var t=V.H;V.H=es;try{return Gg(e)}finally{V.H=t}},useDebugValue:function(){F="useDebugValue",ae()},useDeferredValue:function(e,t){return F="useDeferredValue",ae(),eb(e,t)},useTransition:function(){return F="useTransition",ae(),ob()},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",ae(),Vg(e,t,n)},useId:function(){return F="useId",ae(),nb()},useActionState:function(e,t){return F="useActionState",ae(),Pl(e,t)},useFormState:function(e,t){return F="useFormState",ae(),ip(),Pl(e,t)},useOptimistic:function(e){return F="useOptimistic",ae(),Xg(e)},useHostTransitionStatus:Ri,useMemoCache:Ii,useCacheRefresh:function(){return F="useCacheRefresh",ae(),sb()},useEffectEvent:function(e){return F="useEffectEvent",ae(),Wg(e)}},tx={readContext:function(e){return Ft(e)},use:pr,useCallback:function(e,t){return F="useCallback",ae(),mp(e,t)},useContext:function(e){return F="useContext",ae(),Ft(e)},useEffect:function(e,t){F="useEffect",ae(),so(2048,eo,e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",ae(),hp(e,t,n)},useInsertionEffect:function(e,t){return F="useInsertionEffect",ae(),so(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",ae(),so(4,Bo,e,t)},useMemo:function(e,t){F="useMemo",ae();var n=V.H;V.H=yn;try{return gp(e,t)}finally{V.H=n}},useReducer:function(e,t,n){F="useReducer",ae();var i=V.H;V.H=yn;try{return Ol(e,t,n)}finally{V.H=i}},useRef:function(){return F="useRef",ae(),vt().memoizedState},useState:function(){F="useState",ae();var e=V.H;V.H=yn;try{return Ol(fn)}finally{V.H=e}},useDebugValue:function(){F="useDebugValue",ae()},useDeferredValue:function(e,t){return F="useDeferredValue",ae(),jS(e,t)},useTransition:function(){return F="useTransition",ae(),ZS()},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",ae(),up(e,t,n)},useId:function(){return F="useId",ae(),vt().memoizedState},useFormState:function(e){return F="useFormState",ae(),ip(),cp(e)},useActionState:function(e){return F="useActionState",ae(),cp(e)},useOptimistic:function(e,t){return F="useOptimistic",ae(),OS(e,t)},useHostTransitionStatus:Ri,useMemoCache:Ii,useCacheRefresh:function(){return F="useCacheRefresh",ae(),vt().memoizedState},useEffectEvent:function(e){return F="useEffectEvent",ae(),pp(e)}},UT={readContext:function(e){return Ft(e)},use:pr,useCallback:function(e,t){return F="useCallback",ae(),mp(e,t)},useContext:function(e){return F="useContext",ae(),Ft(e)},useEffect:function(e,t){F="useEffect",ae(),so(2048,eo,e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",ae(),hp(e,t,n)},useInsertionEffect:function(e,t){return F="useInsertionEffect",ae(),so(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",ae(),so(4,Bo,e,t)},useMemo:function(e,t){F="useMemo",ae();var n=V.H;V.H=xh;try{return gp(e,t)}finally{V.H=n}},useReducer:function(e,t,n){F="useReducer",ae();var i=V.H;V.H=xh;try{return yc(e,t,n)}finally{V.H=i}},useRef:function(){return F="useRef",ae(),vt().memoizedState},useState:function(){F="useState",ae();var e=V.H;V.H=xh;try{return yc(fn)}finally{V.H=e}},useDebugValue:function(){F="useDebugValue",ae()},useDeferredValue:function(e,t){return F="useDeferredValue",ae(),GS(e,t)},useTransition:function(){return F="useTransition",ae(),QS()},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",ae(),up(e,t,n)},useId:function(){return F="useId",ae(),vt().memoizedState},useFormState:function(e){return F="useFormState",ae(),ip(),dp(e)},useActionState:function(e){return F="useActionState",ae(),dp(e)},useOptimistic:function(e,t){return F="useOptimistic",ae(),BS(e,t)},useHostTransitionStatus:Ri,useMemoCache:Ii,useCacheRefresh:function(){return F="useCacheRefresh",ae(),vt().memoizedState},useEffectEvent:function(e){return F="useEffectEvent",ae(),pp(e)}},es={readContext:function(e){return h(),Ft(e)},use:function(e){return p(),pr(e)},useCallback:function(e,t){return F="useCallback",p(),We(),Kg(e,t)},useContext:function(e){return F="useContext",p(),We(),Ft(e)},useEffect:function(e,t){return F="useEffect",p(),We(),fp(e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",p(),We(),Qg(e,t,n)},useInsertionEffect:function(e,t){F="useInsertionEffect",p(),We(),Ai(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",p(),We(),Zg(e,t)},useMemo:function(e,t){F="useMemo",p(),We();var n=V.H;V.H=es;try{return Jg(e,t)}finally{V.H=n}},useReducer:function(e,t,n){F="useReducer",p(),We();var i=V.H;V.H=es;try{return Fg(e,t,n)}finally{V.H=i}},useRef:function(e){return F="useRef",p(),We(),$g(e)},useState:function(e){F="useState",p(),We();var t=V.H;V.H=es;try{return Gg(e)}finally{V.H=t}},useDebugValue:function(){F="useDebugValue",p(),We()},useDeferredValue:function(e,t){return F="useDeferredValue",p(),We(),eb(e,t)},useTransition:function(){return F="useTransition",p(),We(),ob()},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",p(),We(),Vg(e,t,n)},useId:function(){return F="useId",p(),We(),nb()},useFormState:function(e,t){return F="useFormState",p(),We(),Pl(e,t)},useActionState:function(e,t){return F="useActionState",p(),We(),Pl(e,t)},useOptimistic:function(e){return F="useOptimistic",p(),We(),Xg(e)},useMemoCache:function(e){return p(),Ii(e)},useHostTransitionStatus:Ri,useCacheRefresh:function(){return F="useCacheRefresh",We(),sb()},useEffectEvent:function(e){return F="useEffectEvent",p(),We(),Wg(e)}},yn={readContext:function(e){return h(),Ft(e)},use:function(e){return p(),pr(e)},useCallback:function(e,t){return F="useCallback",p(),ae(),mp(e,t)},useContext:function(e){return F="useContext",p(),ae(),Ft(e)},useEffect:function(e,t){F="useEffect",p(),ae(),so(2048,eo,e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",p(),ae(),hp(e,t,n)},useInsertionEffect:function(e,t){return F="useInsertionEffect",p(),ae(),so(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",p(),ae(),so(4,Bo,e,t)},useMemo:function(e,t){F="useMemo",p(),ae();var n=V.H;V.H=yn;try{return gp(e,t)}finally{V.H=n}},useReducer:function(e,t,n){F="useReducer",p(),ae();var i=V.H;V.H=yn;try{return Ol(e,t,n)}finally{V.H=i}},useRef:function(){return F="useRef",p(),ae(),vt().memoizedState},useState:function(){F="useState",p(),ae();var e=V.H;V.H=yn;try{return Ol(fn)}finally{V.H=e}},useDebugValue:function(){F="useDebugValue",p(),ae()},useDeferredValue:function(e,t){return F="useDeferredValue",p(),ae(),jS(e,t)},useTransition:function(){return F="useTransition",p(),ae(),ZS()},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",p(),ae(),up(e,t,n)},useId:function(){return F="useId",p(),ae(),vt().memoizedState},useFormState:function(e){return F="useFormState",p(),ae(),cp(e)},useActionState:function(e){return F="useActionState",p(),ae(),cp(e)},useOptimistic:function(e,t){return F="useOptimistic",p(),ae(),OS(e,t)},useMemoCache:function(e){return p(),Ii(e)},useHostTransitionStatus:Ri,useCacheRefresh:function(){return F="useCacheRefresh",ae(),vt().memoizedState},useEffectEvent:function(e){return F="useEffectEvent",p(),ae(),pp(e)}},xh={readContext:function(e){return h(),Ft(e)},use:function(e){return p(),pr(e)},useCallback:function(e,t){return F="useCallback",p(),ae(),mp(e,t)},useContext:function(e){return F="useContext",p(),ae(),Ft(e)},useEffect:function(e,t){F="useEffect",p(),ae(),so(2048,eo,e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",p(),ae(),hp(e,t,n)},useInsertionEffect:function(e,t){return F="useInsertionEffect",p(),ae(),so(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",p(),ae(),so(4,Bo,e,t)},useMemo:function(e,t){F="useMemo",p(),ae();var n=V.H;V.H=yn;try{return gp(e,t)}finally{V.H=n}},useReducer:function(e,t,n){F="useReducer",p(),ae();var i=V.H;V.H=yn;try{return yc(e,t,n)}finally{V.H=i}},useRef:function(){return F="useRef",p(),ae(),vt().memoizedState},useState:function(){F="useState",p(),ae();var e=V.H;V.H=yn;try{return yc(fn)}finally{V.H=e}},useDebugValue:function(){F="useDebugValue",p(),ae()},useDeferredValue:function(e,t){return F="useDeferredValue",p(),ae(),GS(e,t)},useTransition:function(){return F="useTransition",p(),ae(),QS()},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",p(),ae(),up(e,t,n)},useId:function(){return F="useId",p(),ae(),vt().memoizedState},useFormState:function(e){return F="useFormState",p(),ae(),dp(e)},useActionState:function(e){return F="useActionState",p(),ae(),dp(e)},useOptimistic:function(e,t){return F="useOptimistic",p(),ae(),BS(e,t)},useMemoCache:function(e){return p(),Ii(e)},useHostTransitionStatus:Ri,useCacheRefresh:function(){return F="useCacheRefresh",ae(),vt().memoizedState},useEffectEvent:function(e){return F="useEffectEvent",p(),ae(),pp(e)}};var FT={},qT=new Set,VT=new Set,jT=new Set,GT=new Set,XT=new Set,YT=new Set,$T=new Set,WT=new Set,ZT=new Set,QT=new Set;Object.freeze(FT);var ax={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Ao(e),c=ur(i);c.payload=t,n!==void 0&&n!==null&&(ib(n),c.callback=n),t=cr(e,c,i),t!==null&&(Dn(i,"this.setState()",e),Zt(t,e,i),hc(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Ao(e),c=ur(i);c.tag=ET,c.payload=t,n!==void 0&&n!==null&&(ib(n),c.callback=n),t=cr(e,c,i),t!==null&&(Dn(i,"this.replaceState()",e),Zt(t,e,i),hc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ao(e),i=ur(n);i.tag=OT,t!==void 0&&t!==null&&(ib(t),i.callback=t),t=cr(e,i,n),t!==null&&(Dn(n,"this.forceUpdate()",e),Zt(t,e,n),hc(t,e,n))}},yu=null,ox=null,nx=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),ca=!1,KT={},JT={},ew={},tw={},xu=!1,aw={},vh={},sx={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},ow=!1,nw=null;nw=new Set;var _s=!1,da=!1,rx=!1,sw=typeof WeakSet==="function"?WeakSet:Set,wa=null,vu=null,Su=null,fa=null,lo=!1,xn=null,ga=!1,hd=8192,nE={getCacheForType:function(e){var t=Ft(ia),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ft(ia).controller.signal},getOwner:function(){return _o}};if(typeof Symbol==="function"&&Symbol.for){var md=Symbol.for;md("selector.component"),md("selector.has_pseudo_class"),md("selector.role"),md("selector.test_id"),md("selector.text")}var sE=[],rE=typeof WeakMap==="function"?WeakMap:Map,ka=0,ba=2,No=4,Es=0,gd=1,Xi=2,Sh=3,_r=4,Lh=6,rw=5,ct=ka,At=null,Ye=null,Xe=0,uo=0,Ch=1,Yi=2,bd=3,iw=4,ix=5,yd=6,Th=7,lx=8,$i=9,St=uo,zo=null,Er=!1,Lu=!1,ux=!1,ts=0,Yt=Es,Or=0,Pr=0,cx=0,co=0,Wi=0,xd=null,to=null,wh=!1,kh=0,lw=0,uw=300,Mh=1/0,cw=500,vd=null,aa=null,Br=null,Ih=0,dx=1,fx=2,dw=3,Nr=0,fw=1,pw=2,hw=3,mw=4,Ah=5,pa=0,zr=null,Cu=null,vn=0,px=0,hx=-0,mx=null,gw=null,bw=null,Sn=Ih,yw=null,iE=50,Sd=0,gx=null,bx=!1,Rh=!1,lE=50,Zi=0,Ld=null,Tu=!1,Dh=null,xw=!1,vw=new Set,uE={},_h=null,wu=null,yx=!1,xx=!1,Eh=!1,vx=!1,Hr=0,Sx={};(function(){for(var e=0;e<_y.length;e++){var t=_y[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),dn(n,"on"+t)}dn(Z1,"onAnimationEnd"),dn(Q1,"onAnimationIteration"),dn(K1,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(H_,"onTransitionRun"),dn(U_,"onTransitionStart"),dn(F_,"onTransitionCancel"),dn(J1,"onTransitionEnd")})(),Lo("onMouseEnter",["mouseout","mouseover"]),Lo("onMouseLeave",["mouseout","mouseover"]),Lo("onPointerEnter",["pointerout","pointerover"]),Lo("onPointerLeave",["pointerout","pointerover"]),Fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cd="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(" "),Lx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cd)),Oh="_reactListening"+Math.random().toString(36).slice(2),Sw=!1,Lw=!1,Ph=!1,Cw=!1,Bh=!1,Nh=!1,Tw=!1,zh={},cE=/\r\n?/g,dE=/\u0000|\uFFFD/g,Qi="http://www.w3.org/1999/xlink",Cx="http://www.w3.org/XML/1998/namespace",fE="javascript:throw new Error('React form unexpectedly submitted.')",pE="suppressHydrationWarning",Ki="&",Hh="/&",Td="$",wd="/$",Ur="$?",Ji="$~",ku="$!",hE="html",mE="body",gE="head",Tx="F!",ww="F",kw="loading",bE="style",Os=0,Mu=1,Uh=2,wx=null,kx=null,Mw={dialog:!0,webview:!0},Mx=null,kd=void 0,Iw=typeof setTimeout==="function"?setTimeout:void 0,yE=typeof clearTimeout==="function"?clearTimeout:void 0,el=-1,Aw=typeof Promise==="function"?Promise:void 0,xE=typeof queueMicrotask==="function"?queueMicrotask:typeof Aw<"u"?function(e){return Aw.resolve(null).then(e).catch(o2)}:Iw,Ix=null,tl=0,Md=1,Rw=2,Dw=3,tn=4,an=new Map,_w=new Set,Ps=bt.d;bt.d={f:function(){var e=Ps.f(),t=Ul();return e||t},r:function(e){var t=Ne(e);t!==null&&t.tag===5&&t.type==="form"?WS(t):Ps.r(e)},D:function(e){Ps.D(e),qC("dns-prefetch",e,null)},C:function(e,t){Ps.C(e,t),qC("preconnect",e,t)},L:function(e,t,n){Ps.L(e,t,n);var i=Iu;if(i&&e&&t){var c='link[rel="preload"][as="'+Vo(t)+'"]';t==="image"?n&&n.imageSrcSet?(c+='[imagesrcset="'+Vo(n.imageSrcSet)+'"]',typeof n.imageSizes==="string"&&(c+='[imagesizes="'+Vo(n.imageSizes)+'"]')):c+='[href="'+Vo(e)+'"]':c+='[href="'+Vo(e)+'"]';var f=c;switch(t){case"style":f=Vl(e);break;case"script":f=jl(e)}an.has(f)||(e=Ze({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),an.set(f,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(Ec(f))||t==="script"&&i.querySelector(Oc(f))||(t=i.createElement("link"),Ea(t,"link",e),Ae(t),i.head.appendChild(t)))}},m:function(e,t){Ps.m(e,t);var n=Iu;if(n&&e){var i=t&&typeof t.as==="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Vo(i)+'"][href="'+Vo(e)+'"]',f=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=jl(e)}if(!an.has(f)&&(e=Ze({rel:"modulepreload",href:e},t),an.set(f,e),n.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Oc(f)))return}i=n.createElement("link"),Ea(i,"link",e),Ae(i),n.head.appendChild(i)}}},X:function(e,t){Ps.X(e,t);var n=Iu;if(n&&e){var i=pt(n).hoistableScripts,c=jl(e),f=i.get(c);f||(f=n.querySelector(Oc(c)),f||(e=Ze({src:e,async:!0},t),(t=an.get(c))&&Qb(e,t),f=n.createElement("script"),Ae(f),Ea(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(c,f))}},S:function(e,t,n){Ps.S(e,t,n);var i=Iu;if(i&&e){var c=pt(i).hoistableStyles,f=Vl(e);t=t||"default";var m=c.get(f);if(!m){var x={loading:tl,preload:null};if(m=i.querySelector(Ec(f)))x.loading=Md|tn;else{e=Ze({rel:"stylesheet",href:e,"data-precedence":t},n),(n=an.get(f))&&Zb(e,n);var S=m=i.createElement("link");Ae(S),Ea(S,"link",e),S._p=new Promise(function(L,O){S.onload=L,S.onerror=O}),S.addEventListener("load",function(){x.loading|=Md}),S.addEventListener("error",function(){x.loading|=Rw}),x.loading|=tn,Pp(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:x},c.set(f,m)}}},M:function(e,t){Ps.M(e,t);var n=Iu;if(n&&e){var i=pt(n).hoistableScripts,c=jl(e),f=i.get(c);f||(f=n.querySelector(Oc(c)),f||(e=Ze({src:e,async:!0,type:"module"},t),(t=an.get(c))&&Qb(e,t),f=n.createElement("script"),Ae(f),Ea(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(c,f))}}};var Iu=typeof document>"u"?null:document,Fh=null,vE=60000,SE=800,LE=500,Ax=0,Rx=null,qh=null,al=N2,Id={$$typeof:Gn,Provider:null,Consumer:null,_currentValue:al,_currentValue2:al,_threadCount:0},Ew="%c%s%c",Ow="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",Pw="",Vh=" ",CE=Function.prototype.bind,Bw=!1,Nw=null,zw=null,Hw=null,Uw=null,Fw=null,qw=null,Vw=null,jw=null,Gw=null,Xw=null;Nw=function(e,t,n,i){t=a(e,t),t!==null&&(n=o(t.memoizedState,n,0,i),t.memoizedState=n,t.baseState=n,e.memoizedProps=Ze({},e.memoizedProps),n=qa(e,2),n!==null&&Zt(n,e,2))},zw=function(e,t,n){t=a(e,t),t!==null&&(n=l(t.memoizedState,n,0),t.memoizedState=n,t.baseState=n,e.memoizedProps=Ze({},e.memoizedProps),n=qa(e,2),n!==null&&Zt(n,e,2))},Hw=function(e,t,n,i){t=a(e,t),t!==null&&(n=s(t.memoizedState,n,i),t.memoizedState=n,t.baseState=n,e.memoizedProps=Ze({},e.memoizedProps),n=qa(e,2),n!==null&&Zt(n,e,2))},Uw=function(e,t,n){e.pendingProps=o(e.memoizedProps,t,0,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=qa(e,2),t!==null&&Zt(t,e,2)},Fw=function(e,t){e.pendingProps=l(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=qa(e,2),t!==null&&Zt(t,e,2)},qw=function(e,t,n){e.pendingProps=s(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=qa(e,2),t!==null&&Zt(t,e,2)},Vw=function(e){var t=qa(e,2);t!==null&&Zt(t,e,2)},jw=function(e){var t=kl(),n=qa(e,t);n!==null&&Zt(n,e,t)},Gw=function(e){d=e},Xw=function(e){u=e};var jh=!0,Gh=null,Dx=!1,Fr=null,qr=null,Vr=null,Ad=new Map,Rd=new Map,jr=[],TE="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(" "),Xh=null;if(Up.prototype.render=oy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var n=arguments;typeof n[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):w(n[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof n[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var i=t.current,c=Ao(i);Kb(i,c,n,t,null,null)},Up.prototype.unmount=oy.prototype.unmount=function(){var e=arguments;if(typeof e[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(ct&(ba|No))!==ka&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Kb(e.current,2,null,e,null,null),Ul(),t[vr]=null}},Up.prototype.unstable_scheduleHydration=function(e){if(e){var t=N();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jr.length&&t!==0&&t<jr[n].priority;n++);jr.splice(n,0,e),n===0&&a1(e)}},function(){var e=Fu.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
223
+ Check the top-level render call using <`+o+">.");var s="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=X(a):typeof a.name==="string"&&(o=a.name),o&&(s=" It was passed a child from "+o+".")),re(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,s)})}}};var Ms=Z0(!0),nC=Z0(!1),rC=0,sC=1,uC=2,Dy=3,Tr=!1,iC=!1,Ey=null,Oy=!1,ju=ge(null),Mp=ge(0),qo=ge(null),Wo=null,Yu=1,zd=2,ha=ge(0),Ap=0,Ko=1,so=2,Bo=4,uo=8,Qu,dC=new Set,cC=new Set,qy=new Set,fC=new Set,Bn=0,Fe=null,Ut=null,xa=null,Dp=!1,Zu=!1,As=!1,Ep=0,_d=0,Nn=null,SM=0,xM=25,H=null,Jo=null,Un=-1,Hd=!1,Fd={readContext:Qt,use:ur,useCallback:da,useContext:da,useEffect:da,useImperativeHandle:da,useLayoutEffect:da,useInsertionEffect:da,useMemo:da,useReducer:da,useRef:da,useState:da,useDebugValue:da,useDeferredValue:da,useTransition:da,useSyncExternalStore:da,useId:da,useHostTransitionStatus:da,useFormState:da,useActionState:da,useOptimistic:da,useMemoCache:da,useCacheRefresh:da};Fd.useEffectEvent=da;var By=null,pC=null,Ny=null,mC=null,tn=null,ml=null,Op=null;By={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",nt(),fu(t),Oh(e,t)},useContext:function(e){return H="useContext",nt(),Qt(e)},useEffect:function(e,t){return H="useEffect",nt(),fu(t),Tf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",nt(),fu(a),Eh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",nt(),fu(t),ms(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",nt(),fu(t),Dh(e,t)},useMemo:function(e,t){H="useMemo",nt(),fu(t);var a=G.H;G.H=tn;try{return qh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",nt();var o=G.H;G.H=tn;try{return Lh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",nt(),Mh(e)},useState:function(e){H="useState",nt();var t=G.H;G.H=tn;try{return Th(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",nt()},useDeferredValue:function(e,t){return H="useDeferredValue",nt(),Bh(e,t)},useTransition:function(){return H="useTransition",nt(),Ph()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",nt(),kh(e,t,a)},useId:function(){return H="useId",nt(),zh()},useFormState:function(e,t){return H="useFormState",nt(),xf(),mu(e,t)},useActionState:function(e,t){return H="useActionState",nt(),mu(e,t)},useOptimistic:function(e){return H="useOptimistic",nt(),Ih(e)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",nt(),_h()},useEffectEvent:function(e){return H="useEffectEvent",nt(),Ah(e)}},pC={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",le(),Oh(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){return H="useEffect",le(),Tf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Eh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",le(),ms(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),Dh(e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=tn;try{return qh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=tn;try{return Lh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",le(),Mh(e)},useState:function(e){H="useState",le();var t=G.H;G.H=tn;try{return Th(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),Bh(e,t)},useTransition:function(){return H="useTransition",le(),Ph()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),kh(e,t,a)},useId:function(){return H="useId",le(),zh()},useActionState:function(e,t){return H="useActionState",le(),mu(e,t)},useFormState:function(e,t){return H="useFormState",le(),xf(),mu(e,t)},useOptimistic:function(e){return H="useOptimistic",le(),Ih(e)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",le(),_h()},useEffectEvent:function(e){return H="useEffectEvent",le(),Ah(e)}},Ny={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",le(),Mf(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){H="useEffect",le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=ml;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=ml;try{return pu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",le(),At().memoizedState},useState:function(){H="useState",le();var e=G.H;G.H=ml;try{return pu(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),bv(e,t)},useTransition:function(){return H="useTransition",le(),kv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),Cf(e,t,a)},useId:function(){return H="useId",le(),At().memoizedState},useFormState:function(e){return H="useFormState",le(),xf(),kf(e)},useActionState:function(e){return H="useActionState",le(),kf(e)},useOptimistic:function(e,t){return H="useOptimistic",le(),uv(e,t)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",le(),If(e)}},mC={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",le(),Mf(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){H="useEffect",le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=Op;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=Op;try{return ji(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",le(),At().memoizedState},useState:function(){H="useState",le();var e=G.H;G.H=Op;try{return ji(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),vv(e,t)},useTransition:function(){return H="useTransition",le(),wv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),Cf(e,t,a)},useId:function(){return H="useId",le(),At().memoizedState},useFormState:function(e){return H="useFormState",le(),xf(),wf(e)},useActionState:function(e){return H="useActionState",le(),wf(e)},useOptimistic:function(e,t){return H="useOptimistic",le(),dv(e,t)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",le(),If(e)}},tn={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ur(e)},useCallback:function(e,t){return H="useCallback",b(),nt(),Oh(e,t)},useContext:function(e){return H="useContext",b(),nt(),Qt(e)},useEffect:function(e,t){return H="useEffect",b(),nt(),Tf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),nt(),Eh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",b(),nt(),ms(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),nt(),Dh(e,t)},useMemo:function(e,t){H="useMemo",b(),nt();var a=G.H;G.H=tn;try{return qh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),nt();var o=G.H;G.H=tn;try{return Lh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",b(),nt(),Mh(e)},useState:function(e){H="useState",b(),nt();var t=G.H;G.H=tn;try{return Th(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",b(),nt()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),nt(),Bh(e,t)},useTransition:function(){return H="useTransition",b(),nt(),Ph()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),nt(),kh(e,t,a)},useId:function(){return H="useId",b(),nt(),zh()},useFormState:function(e,t){return H="useFormState",b(),nt(),mu(e,t)},useActionState:function(e,t){return H="useActionState",b(),nt(),mu(e,t)},useOptimistic:function(e){return H="useOptimistic",b(),nt(),Ih(e)},useMemoCache:function(e){return b(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",nt(),_h()},useEffectEvent:function(e){return H="useEffectEvent",b(),nt(),Ah(e)}},ml={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ur(e)},useCallback:function(e,t){return H="useCallback",b(),le(),Mf(e,t)},useContext:function(e){return H="useContext",b(),le(),Qt(e)},useEffect:function(e,t){H="useEffect",b(),le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",b(),le();var a=G.H;G.H=ml;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),le();var o=G.H;G.H=ml;try{return pu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",b(),le(),At().memoizedState},useState:function(){H="useState",b(),le();var e=G.H;G.H=ml;try{return pu(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",b(),le()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),le(),bv(e,t)},useTransition:function(){return H="useTransition",b(),le(),kv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),le(),Cf(e,t,a)},useId:function(){return H="useId",b(),le(),At().memoizedState},useFormState:function(e){return H="useFormState",b(),le(),kf(e)},useActionState:function(e){return H="useActionState",b(),le(),kf(e)},useOptimistic:function(e,t){return H="useOptimistic",b(),le(),uv(e,t)},useMemoCache:function(e){return b(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),le(),If(e)}},Op={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ur(e)},useCallback:function(e,t){return H="useCallback",b(),le(),Mf(e,t)},useContext:function(e){return H="useContext",b(),le(),Qt(e)},useEffect:function(e,t){H="useEffect",b(),le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",b(),le();var a=G.H;G.H=ml;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),le();var o=G.H;G.H=ml;try{return ji(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",b(),le(),At().memoizedState},useState:function(){H="useState",b(),le();var e=G.H;G.H=ml;try{return ji(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",b(),le()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),le(),vv(e,t)},useTransition:function(){return H="useTransition",b(),le(),wv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),le(),Cf(e,t,a)},useId:function(){return H="useId",b(),le(),At().memoizedState},useFormState:function(e){return H="useFormState",b(),le(),wf(e)},useActionState:function(e){return H="useActionState",b(),le(),wf(e)},useOptimistic:function(e,t){return H="useOptimistic",b(),le(),dv(e,t)},useMemoCache:function(e){return b(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),le(),If(e)}};var hC={},gC=new Set,yC=new Set,bC=new Set,vC=new Set,SC=new Set,xC=new Set,LC=new Set,CC=new Set,kC=new Set,wC=new Set;Object.freeze(hC);var Uy={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Ro(e),l=lr(o);l.payload=t,a!==void 0&&a!==null&&(Fh(a),l.callback=a),t=nr(e,l,o),t!==null&&(El(o,"this.setState()",e),oa(t,e,o),Gi(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Ro(e),l=lr(o);l.tag=sC,l.payload=t,a!==void 0&&a!==null&&(Fh(a),l.callback=a),t=nr(e,l,o),t!==null&&(El(o,"this.replaceState()",e),oa(t,e,o),Gi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ro(e),o=lr(a);o.tag=uC,t!==void 0&&t!==null&&(Fh(t),o.callback=t),t=nr(e,o,a),t!==null&&(El(a,"this.forceUpdate()",e),oa(t,e,a),Gi(t,e,a))}},Wu=null,Py=null,zy=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),La=!1,TC={},IC={},RC={},MC={},Ku=!1,AC={},qp={},_y={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},DC=!1,EC=null;EC=new Set;var Pn=!1,Ca=!1,Hy=!1,OC=typeof WeakSet==="function"?WeakSet:Set,Ua=null,Ju=null,ei=null,ka=null,go=!1,hl=null,Ma=!1,Gd=8192,LM={getCacheForType:function(e){var t=Qt(va),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Qt(va).controller.signal},getOwner:function(){return Do}};if(typeof Symbol==="function"&&Symbol.for){var Vd=Symbol.for;Vd("selector.component"),Vd("selector.has_pseudo_class"),Vd("selector.role"),Vd("selector.test_id"),Vd("selector.text")}var CM=[],kM=typeof WeakMap==="function"?WeakMap:Map,Pa=0,Aa=2,No=4,zn=0,$d=1,Ds=2,Bp=3,Ir=4,Np=6,qC=5,ht=Pa,Pt=null,lt=null,ot=0,yo=0,Up=1,Es=2,Xd=3,BC=4,Fy=5,jd=6,Pp=7,Gy=8,Os=9,Dt=yo,Uo=null,Rr=!1,ti=!1,Vy=!1,an=0,ea=zn,Mr=0,Ar=0,$y=0,bo=0,qs=0,Yd=null,io=null,zp=!1,_p=0,NC=0,UC=300,Hp=1/0,PC=500,Qd=null,ca=null,Dr=null,Fp=0,Xy=1,jy=2,zC=3,Er=0,_C=1,HC=2,FC=3,GC=4,Gp=5,wa=0,Or=null,ai=null,gl=0,Yy=0,Qy=-0,Zy=null,VC=null,$C=null,yl=Fp,XC=null,wM=50,Zd=0,Wy=null,Ky=!1,Vp=!1,TM=50,Bs=0,Wd=null,oi=!1,$p=null,jC=!1,YC=new Set,IM={},Xp=null,li=null,Jy=!1,eb=!1,jp=!1,tb=!1,qr=0,ab={};(function(){for(var e=0;e<py.length;e++){var t=py[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),sl(a,"on"+t)}sl(kL,"onAnimationEnd"),sl(wL,"onAnimationIteration"),sl(TL,"onAnimationStart"),sl("dblclick","onDoubleClick"),sl("focusin","onFocus"),sl("focusout","onBlur"),sl(oM,"onTransitionRun"),sl(lM,"onTransitionStart"),sl(nM,"onTransitionCancel"),sl(IL,"onTransitionEnd")})(),xo("onMouseEnter",["mouseout","mouseover"]),xo("onMouseLeave",["mouseout","mouseover"]),xo("onPointerEnter",["pointerout","pointerover"]),xo("onPointerLeave",["pointerout","pointerover"]),Za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Za("onBeforeInput",["compositionend","keypress","textInput","paste"]),Za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kd="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(" "),ob=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kd)),Yp="_reactListening"+Math.random().toString(36).slice(2),QC=!1,ZC=!1,Qp=!1,WC=!1,Zp=!1,Wp=!1,KC=!1,Kp={},RM=/\r\n?/g,MM=/\u0000|\uFFFD/g,Ns="http://www.w3.org/1999/xlink",lb="http://www.w3.org/XML/1998/namespace",AM="javascript:throw new Error('React form unexpectedly submitted.')",DM="suppressHydrationWarning",Us="&",Jp="/&",Jd="$",ec="/$",Br="$?",Ps="$~",ni="$!",EM="html",OM="body",qM="head",nb="F!",JC="F",e1="loading",BM="style",_n=0,ri=1,em=2,rb=null,sb=null,t1={dialog:!0,webview:!0},ub=null,tc=void 0,a1=typeof setTimeout==="function"?setTimeout:void 0,NM=typeof clearTimeout==="function"?clearTimeout:void 0,zs=-1,o1=typeof Promise==="function"?Promise:void 0,UM=typeof queueMicrotask==="function"?queueMicrotask:typeof o1<"u"?function(e){return o1.resolve(null).then(e).catch(xI)}:a1,ib=null,_s=0,ac=1,l1=2,n1=3,el=4,tl=new Map,r1=new Set,Hn=kt.d;kt.d={f:function(){var e=Hn.f(),t=vu();return e||t},r:function(e){var t=$e(e);t!==null&&t.tag===5&&t.type==="form"?Cv(t):Hn.r(e)},D:function(e){Hn.D(e),gx("dns-prefetch",e,null)},C:function(e,t){Hn.C(e,t),gx("preconnect",e,t)},L:function(e,t,a){Hn.L(e,t,a);var o=si;if(o&&e&&t){var l='link[rel="preload"][as="'+Fo(t)+'"]';t==="image"?a&&a.imageSrcSet?(l+='[imagesrcset="'+Fo(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(l+='[imagesizes="'+Fo(a.imageSizes)+'"]')):l+='[href="'+Fo(e)+'"]':l+='[href="'+Fo(e)+'"]';var n=l;switch(t){case"style":n=Lu(e);break;case"script":n=Cu(e)}tl.has(n)||(e=rt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),tl.set(n,e),o.querySelector(l)!==null||t==="style"&&o.querySelector(ud(n))||t==="script"&&o.querySelector(id(n))||(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}},m:function(e,t){Hn.m(e,t);var a=si;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Fo(o)+'"][href="'+Fo(e)+'"]',n=l;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Cu(e)}if(!tl.has(n)&&(e=rt({rel:"modulepreload",href:e},t),tl.set(n,e),a.querySelector(l)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(id(n)))return}o=a.createElement("link"),$a(o,"link",e),Oe(o),a.head.appendChild(o)}}},X:function(e,t){Hn.X(e,t);var a=si;if(a&&e){var o=yt(a).hoistableScripts,l=Cu(e),n=o.get(l);n||(n=a.querySelector(id(l)),n||(e=rt({src:e,async:!0},t),(t=tl.get(l))&&Eg(e,t),n=a.createElement("script"),Oe(n),$a(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(l,n))}},S:function(e,t,a){Hn.S(e,t,a);var o=si;if(o&&e){var l=yt(o).hoistableStyles,n=Lu(e);t=t||"default";var s=l.get(n);if(!s){var d={loading:_s,preload:null};if(s=o.querySelector(ud(n)))d.loading=ac|el;else{e=rt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=tl.get(n))&&Dg(e,a);var m=s=o.createElement("link");Oe(m),$a(m,"link",e),m._p=new Promise(function(g,A){m.onload=g,m.onerror=A}),m.addEventListener("load",function(){d.loading|=ac}),m.addEventListener("error",function(){d.loading|=l1}),d.loading|=el,Qf(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:d},l.set(n,s)}}},M:function(e,t){Hn.M(e,t);var a=si;if(a&&e){var o=yt(a).hoistableScripts,l=Cu(e),n=o.get(l);n||(n=a.querySelector(id(l)),n||(e=rt({src:e,async:!0,type:"module"},t),(t=tl.get(l))&&Eg(e,t),n=a.createElement("script"),Oe(n),$a(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(l,n))}}};var si=typeof document>"u"?null:document,tm=null,PM=60000,zM=800,_M=500,db=0,cb=null,am=null,Hs=tR,oc={$$typeof:Xl,Provider:null,Consumer:null,_currentValue:Hs,_currentValue2:Hs,_threadCount:0},s1="%c%s%c",u1="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",i1="",om=" ",HM=Function.prototype.bind,d1=!1,c1=null,f1=null,p1=null,m1=null,h1=null,g1=null,y1=null,b1=null,v1=null,S1=null;c1=function(e,t,a,o){t=r(e,t),t!==null&&(a=i(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},f1=function(e,t,a){t=r(e,t),t!==null&&(a=f(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},p1=function(e,t,a,o){t=r(e,t),t!==null&&(a=u(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},m1=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},h1=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},g1=function(e,t,a){e.pendingProps=u(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},y1=function(e){var t=Wa(e,2);t!==null&&oa(t,e,2)},b1=function(e){var t=nu(),a=Wa(e,t);a!==null&&oa(a,e,t)},v1=function(e){p=e},S1=function(e){v=e};var lm=!0,nm=null,fb=!1,Nr=null,Ur=null,Pr=null,lc=new Map,nc=new Map,zr=[],FM="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(" "),rm=null;if(ep.prototype.render=Pg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):_(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var o=t.current,l=Ro(o);Og(o,l,a,t,null,null)},ep.prototype.unmount=Pg.prototype.unmount=function(){var e=arguments;if(typeof e[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(ht&(Aa|No))!==Pa&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Og(e.current,2,null,e,null,null),vu(),t[hr]=null}},ep.prototype.unstable_scheduleHydration=function(e){if(e){var t=O();e={blockedOn:null,target:e,priority:t};for(var a=0;a<zr.length&&t!==0&&t<zr[a].priority;a++);zr.splice(a,0,e),a===0&&Ax(e)}},function(){var e=ii.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
224
224
  - react: `+(e+`
225
225
  - react-dom: 19.2.7
226
- Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),bt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=q(t),e=e!==null?j(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.7"};return e.overrideHookState=Nw,e.overrideHookStateDeletePath=zw,e.overrideHookStateRenamePath=Hw,e.overrideProps=Uw,e.overridePropsDeletePath=Fw,e.overridePropsRenamePath=qw,e.scheduleUpdate=Vw,e.scheduleRetry=jw,e.setErrorHandler=Gw,e.setSuspenseHandler=Xw,e.scheduleRefresh=M,e.scheduleRoot=T,e.setRefreshHandler=I,e.getCurrentFiber=A2,wl(e)}()&&Zn&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Yw=window.location.protocol;/^(https?|file):$/.test(Yw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Yw==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}VN.createRoot=function(e,t){if(!w(e))throw Error("Target container is not a DOM element.");r1(e);var n=!1,i="",c=oL,f=nL,m=sL;return t!==null&&t!==void 0&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t==="object"&&t!==null&&t.$$typeof===jn&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
226
+ Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),kt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=oe(t),e=e!==null?B(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.7"};return e.overrideHookState=c1,e.overrideHookStateDeletePath=f1,e.overrideHookStateRenamePath=p1,e.overrideProps=m1,e.overridePropsDeletePath=h1,e.overridePropsRenamePath=g1,e.scheduleUpdate=y1,e.scheduleRetry=b1,e.setErrorHandler=v1,e.setSuspenseHandler=S1,e.scheduleRefresh=L,e.scheduleRoot=R,e.setRefreshHandler=D,e.getCurrentFiber=jI,rl(e)}()&&Wl&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var x1=window.location.protocol;/^(https?|file):$/.test(x1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(x1==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}JM.createRoot=function(e,t){if(!_(e))throw Error("Target container is not a DOM element.");qx(e);var a=!1,o="",l=Dv,n=Ev,s=Ov;return t!==null&&t!==void 0&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t==="object"&&t!==null&&t.$$typeof===$l&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
228
228
 
229
229
  let root = createRoot(domContainer);
230
- root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=WC(e,1,!1,null,null,n,i,null,c,f,m,s1),e[vr]=t.current,zb(e),new oy(t)},VN.hydrateRoot=function(e,t,n){if(!w(e))throw Error("Target container is not a DOM element.");r1(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var i=!1,c="",f=oL,m=nL,x=sL,S=null;return n!==null&&n!==void 0&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(S=n.formState)),t=WC(e,1,!0,t,n!=null?n:null,i,c,S,f,m,x,s1),t.context=ZC(null),n=t.current,i=Ao(n),i=yi(i),c=ur(i),c.callback=null,cr(n,c,i),Dn(i,"hydrateRoot()",null),n=i,t.current.lanes=n,ar(t,n),qn(t),e[vr]=t.current,zb(e),new Up(t)},VN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var vI=Gr(function(jN,Mm){Mm.exports=Q(xI())});var de=Gr(function(XN){var yl=Q(dt());(function(){function a(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===X?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case I:return"Fragment";case A:return"Profiler";case w:return"StrictMode";case q:return"Suspense";case j:return"SuspenseList";case J:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case M:return"Portal";case z:return k.displayName||"Context";case B:return(k._context.displayName||"Context")+".Consumer";case H:var W=k.render;return k=k.displayName,k||(k=W.displayName||W.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case G:return W=k.displayName||null,W!==null?W:a(k.type)||"Memo";case Y:W=k._payload,k=k._init;try{return a(k(W))}catch(ee){}}return null}function o(k){return""+k}function s(k){try{o(k);var W=!1}catch(te){W=!0}if(W){W=console;var ee=W.error,ne=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return ee.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),o(k)}}function r(k){if(k===I)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===Y)return"<...>";try{var W=a(k);return W?"<"+W+">":"<...>"}catch(ee){return"<...>"}}function l(){var k=se.A;return k===null?null:k.getOwner()}function u(){return Error("react-stack-top-frame")}function d(k){if(ge.call(k,"key")){var W=Object.getOwnPropertyDescriptor(k,"key").get;if(W&&W.isReactWarning)return!1}return k.key!==void 0}function p(k,W){function ee(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",W))}ee.isReactWarning=!0,Object.defineProperty(k,"key",{get:ee,configurable:!0})}function h(){var k=a(this.type);return pe[k]||(pe[k]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),k=this.props.ref,k!==void 0?k:null}function g(k,W,ee,ne,te,le){var fe=ee.ref;return k={$$typeof:T,type:k,key:W,props:ee,_owner:ne},(fe!==void 0?fe:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:h}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:te}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function y(k,W,ee,ne,te,le){var fe=W.children;if(fe!==void 0)if(ne)if(be(fe)){for(ne=0;ne<fe.length;ne++)b(fe[ne]);Object.freeze&&Object.freeze(fe)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else b(fe);if(ge.call(W,"key")){fe=a(k);var et=Object.keys(W).filter(function(Gt){return Gt!=="key"});ne=0<et.length?"{key: someKey, "+et.join(": ..., ")+": ...}":"{key: someKey}",He[fe+ne]||(et=0<et.length?"{"+et.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
230
+ root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Cx(e,1,!1,null,null,a,o,null,l,n,s,Ox),e[hr]=t.current,vg(e),new Pg(t)},JM.hydrateRoot=function(e,t,a){if(!_(e))throw Error("Target container is not a DOM element.");qx(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,l="",n=Dv,s=Ev,d=Ov,m=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(s=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(m=a.formState)),t=Cx(e,1,!0,t,a!=null?a:null,o,l,m,n,s,d,Ox),t.context=kx(null),a=t.current,o=Ro(a),o=os(o),l=lr(o),l.callback=null,nr(a,l,o),El(o,"hydrateRoot()",null),a=o,t.current.lanes=a,Wn(t,a),Gl(t),e[hr]=t.current,vg(e),new ep(t)},JM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var I1=Fs(function(eA,im){im.exports=Y(T1())});var ce=Fs(function(uA){var js=Y(ut());(function(){function r(P){if(P==null)return null;if(typeof P==="function")return P.$$typeof===X?null:P.displayName||P.name||null;if(typeof P==="string")return P;switch(P){case D:return"Fragment";case z:return"Profiler";case _:return"StrictMode";case oe:return"Suspense";case B:return"SuspenseList";case W:return"Activity"}if(typeof P==="object")switch(typeof P.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case L:return"Portal";case K:return P.displayName||"Context";case F:return(P._context.displayName||"Context")+".Consumer";case N:var ue=P.render;return P=P.displayName,P||(P=ue.displayName||ue.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case ee:return ue=P.displayName||null,ue!==null?ue:r(P.type)||"Memo";case Z:ue=P._payload,P=P._init;try{return r(P(ue))}catch(se){}}return null}function i(P){return""+P}function u(P){try{i(P);var ue=!1}catch(pe){ue=!0}if(ue){ue=console;var se=ue.error,ne=typeof Symbol==="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return se.call(ue,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),i(P)}}function c(P){if(P===D)return"<>";if(typeof P==="object"&&P!==null&&P.$$typeof===Z)return"<...>";try{var ue=r(P);return ue?"<"+ue+">":"<...>"}catch(se){return"<...>"}}function f(){var P=ge.A;return P===null?null:P.getOwner()}function v(){return Error("react-stack-top-frame")}function p(P){if(Ne.call(P,"key")){var ue=Object.getOwnPropertyDescriptor(P,"key").get;if(ue&&ue.isReactWarning)return!1}return P.key!==void 0}function b(P,ue){function se(){te||(te=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ue))}se.isReactWarning=!0,Object.defineProperty(P,"key",{get:se,configurable:!0})}function S(){var P=r(this.type);return ve[P]||(ve[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function k(P,ue,se,ne,pe,Lt){var Ye=se.ref;return P={$$typeof:R,type:P,key:ue,props:se,_owner:ne},(Ye!==void 0?Ye:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:S}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:pe}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Lt}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function h(P,ue,se,ne,pe,Lt){var Ye=ue.children;if(Ye!==void 0)if(ne)if(Ce(Ye)){for(ne=0;ne<Ye.length;ne++)x(Ye[ne]);Object.freeze&&Object.freeze(Ye)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(Ye);if(Ne.call(ue,"key")){Ye=r(P);var V=Object.keys(ue).filter(function(Mt){return Mt!=="key"});ne=0<V.length?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}",ae[Ye+ne]||(V=0<V.length?"{"+V.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
231
231
  let props = %s;
232
232
  <%s {...props} />
233
233
  React keys must be passed directly to JSX without using spread:
234
234
  let props = %s;
235
- <%s key={someKey} {...props} />`,ne,fe,et,fe),He[fe+ne]=!0)}if(fe=null,ee!==void 0&&(s(ee),fe=""+ee),d(W)&&(s(W.key),fe=""+W.key),"key"in W){ee={};for(var tt in W)tt!=="key"&&(ee[tt]=W[tt])}else ee=W;return fe&&p(ee,typeof k==="function"?k.displayName||k.name||"Unknown":k),g(k,fe,ee,l(),te,le)}function b(k){v(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===Y&&(k._payload.status==="fulfilled"?v(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function v(k){return typeof k==="object"&&k!==null&&k.$$typeof===T}var T=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),z=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),se=yl.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=Object.prototype.hasOwnProperty,be=Array.isArray,Se=console.createTask?console.createTask:function(){return null};yl={react_stack_bottom_frame:function(k){return k()}};var K,pe={},ye=yl.react_stack_bottom_frame.bind(yl,u)(),Ue=Se(r(u)),He={};XN.Fragment=I,XN.jsxDEV=function(k,W,ee,ne){var te=1e4>se.recentlyCreatedOwnerStacks++;return y(k,W,ee,ne,te?Error("react-stack-top-frame"):ye,te?Se(r(k)):Ue)}})()});var HA=Gr(function(az){var vl=Q(dt());(function(){function a(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===X?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case I:return"Fragment";case A:return"Profiler";case w:return"StrictMode";case q:return"Suspense";case j:return"SuspenseList";case J:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case M:return"Portal";case z:return k.displayName||"Context";case B:return(k._context.displayName||"Context")+".Consumer";case H:var W=k.render;return k=k.displayName,k||(k=W.displayName||W.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case G:return W=k.displayName||null,W!==null?W:a(k.type)||"Memo";case Y:W=k._payload,k=k._init;try{return a(k(W))}catch(ee){}}return null}function o(k){return""+k}function s(k){try{o(k);var W=!1}catch(te){W=!0}if(W){W=console;var ee=W.error,ne=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return ee.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),o(k)}}function r(k){if(k===I)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===Y)return"<...>";try{var W=a(k);return W?"<"+W+">":"<...>"}catch(ee){return"<...>"}}function l(){var k=se.A;return k===null?null:k.getOwner()}function u(){return Error("react-stack-top-frame")}function d(k){if(ge.call(k,"key")){var W=Object.getOwnPropertyDescriptor(k,"key").get;if(W&&W.isReactWarning)return!1}return k.key!==void 0}function p(k,W){function ee(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",W))}ee.isReactWarning=!0,Object.defineProperty(k,"key",{get:ee,configurable:!0})}function h(){var k=a(this.type);return pe[k]||(pe[k]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),k=this.props.ref,k!==void 0?k:null}function g(k,W,ee,ne,te,le){var fe=ee.ref;return k={$$typeof:T,type:k,key:W,props:ee,_owner:ne},(fe!==void 0?fe:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:h}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:te}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function y(k,W,ee,ne,te,le){var fe=W.children;if(fe!==void 0)if(ne)if(be(fe)){for(ne=0;ne<fe.length;ne++)b(fe[ne]);Object.freeze&&Object.freeze(fe)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else b(fe);if(ge.call(W,"key")){fe=a(k);var et=Object.keys(W).filter(function(Gt){return Gt!=="key"});ne=0<et.length?"{key: someKey, "+et.join(": ..., ")+": ...}":"{key: someKey}",He[fe+ne]||(et=0<et.length?"{"+et.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
236
- let props = %s;
237
- <%s {...props} />
238
- React keys must be passed directly to JSX without using spread:
239
- let props = %s;
240
- <%s key={someKey} {...props} />`,ne,fe,et,fe),He[fe+ne]=!0)}if(fe=null,ee!==void 0&&(s(ee),fe=""+ee),d(W)&&(s(W.key),fe=""+W.key),"key"in W){ee={};for(var tt in W)tt!=="key"&&(ee[tt]=W[tt])}else ee=W;return fe&&p(ee,typeof k==="function"?k.displayName||k.name||"Unknown":k),g(k,fe,ee,l(),te,le)}function b(k){v(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===Y&&(k._payload.status==="fulfilled"?v(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function v(k){return typeof k==="object"&&k!==null&&k.$$typeof===T}var T=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),z=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),se=vl.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=Object.prototype.hasOwnProperty,be=Array.isArray,Se=console.createTask?console.createTask:function(){return null};vl={react_stack_bottom_frame:function(k){return k()}};var K,pe={},ye=vl.react_stack_bottom_frame.bind(vl,u)(),Ue=Se(r(u)),He={};az.Fragment=I,az.jsx=function(k,W,ee){var ne=1e4>se.recentlyCreatedOwnerStacks++;return y(k,W,ee,!1,ne?Error("react-stack-top-frame"):ye,ne?Se(r(k)):Ue)},az.jsxs=function(k,W,ee){var ne=1e4>se.recentlyCreatedOwnerStacks++;return y(k,W,ee,!0,ne?Error("react-stack-top-frame"):ye,ne?Se(r(k)):Ue)}})()});/*!
241
- * @kurkle/color v0.3.4
242
- * https://github.com/kurkle/color#readme
243
- * (c) 2024 Jukka Kurkela
244
- * Released under the MIT License
245
- */function _d(a){return a+0.5|0}var Xr=(a,o,s)=>Math.max(Math.min(a,s),o);function Dd(a){return Xr(_d(a*2.55),0,255)}function Yr(a){return Xr(_d(a*255),0,255)}function Ns(a){return Xr(_d(a/2.55)/100,0,1)}function Zw(a){return Xr(_d(a*100),0,100)}var on={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ex=[..."0123456789ABCDEF"],_E=(a)=>Ex[a&15],EE=(a)=>Ex[(a&240)>>4]+Ex[a&15],Yh=(a)=>(a&240)>>4===(a&15),OE=(a)=>Yh(a.r)&&Yh(a.g)&&Yh(a.b)&&Yh(a.a);function PE(a){var o=a.length,s;if(a[0]==="#"){if(o===4||o===5)s={r:255&on[a[1]]*17,g:255&on[a[2]]*17,b:255&on[a[3]]*17,a:o===5?on[a[4]]*17:255};else if(o===7||o===9)s={r:on[a[1]]<<4|on[a[2]],g:on[a[3]]<<4|on[a[4]],b:on[a[5]]<<4|on[a[6]],a:o===9?on[a[7]]<<4|on[a[8]]:255}}return s}var BE=(a,o)=>a<255?o(a):"";function NE(a){var o=OE(a)?_E:EE;return a?"#"+o(a.r)+o(a.g)+o(a.b)+BE(a.a,o):void 0}var zE=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ek(a,o,s){let r=o*Math.min(s,1-s),l=(u,d=(u+a/30)%12)=>s-r*Math.max(Math.min(d-3,9-d,1),-1);return[l(0),l(8),l(4)]}function HE(a,o,s){let r=(l,u=(l+a/60)%6)=>s-s*o*Math.max(Math.min(u,4-u,1),0);return[r(5),r(3),r(1)]}function UE(a,o,s){let r=ek(a,1,0.5),l;if(o+s>1)l=1/(o+s),o*=l,s*=l;for(l=0;l<3;l++)r[l]*=1-o-s,r[l]+=o;return r}function FE(a,o,s,r,l){if(a===l)return(o-s)/r+(o<s?6:0);if(o===l)return(s-a)/r+2;return(a-o)/r+4}function Ox(a){let s=a.r/255,r=a.g/255,l=a.b/255,u=Math.max(s,r,l),d=Math.min(s,r,l),p=(u+d)/2,h,g,y;if(u!==d)y=u-d,g=p>0.5?y/(2-u-d):y/(u+d),h=FE(s,r,l,y,u),h=h*60+0.5;return[h|0,g||0,p]}function Px(a,o,s,r){return(Array.isArray(o)?a(o[0],o[1],o[2]):a(o,s,r)).map(Yr)}function Bx(a,o,s){return Px(ek,a,o,s)}function qE(a,o,s){return Px(UE,a,o,s)}function VE(a,o,s){return Px(HE,a,o,s)}function tk(a){return(a%360+360)%360}function jE(a){let o=zE.exec(a),s=255,r;if(!o)return;if(o[5]!==r)s=o[6]?Dd(+o[5]):Yr(+o[5]);let l=tk(+o[2]),u=+o[3]/100,d=+o[4]/100;if(o[1]==="hwb")r=qE(l,u,d);else if(o[1]==="hsv")r=VE(l,u,d);else r=Bx(l,u,d);return{r:r[0],g:r[1],b:r[2],a:s}}function GE(a,o){var s=Ox(a);s[0]=tk(s[0]+o),s=Bx(s),a.r=s[0],a.g=s[1],a.b=s[2]}function XE(a){if(!a)return;let o=Ox(a),s=o[0],r=Zw(o[1]),l=Zw(o[2]);return a.a<255?`hsla(${s}, ${r}%, ${l}%, ${Ns(a.a)})`:`hsl(${s}, ${r}%, ${l}%)`}var Qw={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Kw={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function YE(){let a={},o=Object.keys(Kw),s=Object.keys(Qw),r,l,u,d,p;for(r=0;r<o.length;r++){d=p=o[r];for(l=0;l<s.length;l++)u=s[l],p=p.replace(u,Qw[u]);u=parseInt(Kw[d],16),a[p]=[u>>16&255,u>>8&255,u&255]}return a}var $h;function $E(a){if(!$h)$h=YE(),$h.transparent=[0,0,0,0];let o=$h[a.toLowerCase()];return o&&{r:o[0],g:o[1],b:o[2],a:o.length===4?o[3]:255}}var WE=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function ZE(a){let o=WE.exec(a),s=255,r,l,u;if(!o)return;if(o[7]!==r){let d=+o[7];s=o[8]?Dd(d):Xr(d*255,0,255)}return r=+o[1],l=+o[3],u=+o[5],r=255&(o[2]?Dd(r):Xr(r,0,255)),l=255&(o[4]?Dd(l):Xr(l,0,255)),u=255&(o[6]?Dd(u):Xr(u,0,255)),{r,g:l,b:u,a:s}}function QE(a){return a&&(a.a<255?`rgba(${a.r}, ${a.g}, ${a.b}, ${Ns(a.a)})`:`rgb(${a.r}, ${a.g}, ${a.b})`)}var _x=(a)=>a<=0.0031308?a*12.92:Math.pow(a,0.4166666666666667)*1.055-0.055,Au=(a)=>a<=0.04045?a/12.92:Math.pow((a+0.055)/1.055,2.4);function KE(a,o,s){let r=Au(Ns(a.r)),l=Au(Ns(a.g)),u=Au(Ns(a.b));return{r:Yr(_x(r+s*(Au(Ns(o.r))-r))),g:Yr(_x(l+s*(Au(Ns(o.g))-l))),b:Yr(_x(u+s*(Au(Ns(o.b))-u))),a:a.a+s*(o.a-a.a)}}function Wh(a,o,s){if(a){let r=Ox(a);r[o]=Math.max(0,Math.min(r[o]+r[o]*s,o===0?360:1)),r=Bx(r),a.r=r[0],a.g=r[1],a.b=r[2]}}function ak(a,o){return a?Object.assign(o||{},a):a}function Jw(a){var o={r:0,g:0,b:0,a:255};if(Array.isArray(a)){if(a.length>=3){if(o={r:a[0],g:a[1],b:a[2],a:255},a.length>3)o.a=Yr(a[3])}}else o=ak(a,{r:0,g:0,b:0,a:1}),o.a=Yr(o.a);return o}function JE(a){if(a.charAt(0)==="r")return ZE(a);return jE(a)}class Ru{constructor(a){if(a instanceof Ru)return a;let o=typeof a,s;if(o==="object")s=Jw(a);else if(o==="string")s=PE(a)||$E(a)||JE(a);this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var a=ak(this._rgb);if(a)a.a=Ns(a.a);return a}set rgb(a){this._rgb=Jw(a)}rgbString(){return this._valid?QE(this._rgb):void 0}hexString(){return this._valid?NE(this._rgb):void 0}hslString(){return this._valid?XE(this._rgb):void 0}mix(a,o){if(a){let s=this.rgb,r=a.rgb,l,u=o===l?0.5:o,d=2*u-1,p=s.a-r.a,h=((d*p===-1?d:(d+p)/(1+d*p))+1)/2;l=1-h,s.r=255&h*s.r+l*r.r+0.5,s.g=255&h*s.g+l*r.g+0.5,s.b=255&h*s.b+l*r.b+0.5,s.a=u*s.a+(1-u)*r.a,this.rgb=s}return this}interpolate(a,o){if(a)this._rgb=KE(this._rgb,a._rgb,o);return this}clone(){return new Ru(this.rgb)}alpha(a){return this._rgb.a=Yr(a),this}clearer(a){let o=this._rgb;return o.a*=1-a,this}greyscale(){let a=this._rgb,o=_d(a.r*0.3+a.g*0.59+a.b*0.11);return a.r=a.g=a.b=o,this}opaquer(a){let o=this._rgb;return o.a*=1+a,this}negate(){let a=this._rgb;return a.r=255-a.r,a.g=255-a.g,a.b=255-a.b,this}lighten(a){return Wh(this._rgb,2,a),this}darken(a){return Wh(this._rgb,2,-a),this}saturate(a){return Wh(this._rgb,1,a),this}desaturate(a){return Wh(this._rgb,1,-a),this}rotate(a){return GE(this._rgb,a),this}}/*!
246
- * Chart.js v4.5.1
247
- * https://www.chartjs.org
248
- * (c) 2025 Chart.js Contributors
249
- * Released under the MIT License
250
- */function os(){}var pk=(()=>{let a=0;return()=>a++})();function ht(a){return a===null||a===void 0}function zt(a){if(Array.isArray&&Array.isArray(a))return!0;let o=Object.prototype.toString.call(a);if(o.slice(0,7)==="[object"&&o.slice(-6)==="Array]")return!0;return!1}function it(a){return a!==null&&Object.prototype.toString.call(a)==="[object Object]"}function Kt(a){return(typeof a==="number"||a instanceof Number)&&isFinite(+a)}function go(a,o){return Kt(a)?a:o}function Ke(a,o){return typeof a>"u"?o:a}var hk=(a,o)=>typeof a==="string"&&a.endsWith("%")?parseFloat(a)/100*o:+a;function Ot(a,o,s){if(a&&typeof a.call==="function")return a.apply(s,o)}function Lt(a,o,s,r){let l,u,d;if(zt(a))if(u=a.length,r)for(l=u-1;l>=0;l--)o.call(s,a[l],l);else for(l=0;l<u;l++)o.call(s,a[l],l);else if(it(a)){d=Object.keys(a),u=d.length;for(l=0;l<u;l++)o.call(s,a[d[l]],d[l])}}function Pd(a,o){let s,r,l,u;if(!a||!o||a.length!==o.length)return!1;for(s=0,r=a.length;s<r;++s)if(l=a[s],u=o[s],l.datasetIndex!==u.datasetIndex||l.index!==u.index)return!1;return!0}function Jh(a){if(zt(a))return a.map(Jh);if(it(a)){let o=Object.create(null),s=Object.keys(a),r=s.length,l=0;for(;l<r;++l)o[s[l]]=Jh(a[s[l]]);return o}return a}function mk(a){return["__proto__","prototype","constructor"].indexOf(a)===-1}function eO(a,o,s,r){if(!mk(a))return;let l=o[a],u=s[a];if(it(l)&&it(u))_u(l,u,r);else o[a]=Jh(u)}function _u(a,o,s){let r=zt(o)?o:[o],l=r.length;if(!it(a))return a;s=s||{};let u=s.merger||eO,d;for(let p=0;p<l;++p){if(d=r[p],!it(d))continue;let h=Object.keys(d);for(let g=0,y=h.length;g<y;++g)u(h[g],a,d,s)}return a}function Ou(a,o){return _u(a,o,{merger:tO})}function tO(a,o,s){if(!mk(a))return;let r=o[a],l=s[a];if(it(r)&&it(l))Ou(r,l);else if(!Object.prototype.hasOwnProperty.call(o,a))o[a]=Jh(l)}var ok={"":(a)=>a,x:(a)=>a.x,y:(a)=>a.y};function aO(a){let o=a.split("."),s=[],r="";for(let l of o)if(r+=l,r.endsWith("\\"))r=r.slice(0,-1)+".";else s.push(r),r="";return s}function oO(a){let o=aO(a);return(s)=>{for(let r of o){if(r==="")break;s=s&&s[r]}return s}}function rl(a,o){return(ok[o]||(ok[o]=oO(o)))(a)}function om(a){return a.charAt(0).toUpperCase()+a.slice(1)}var Pu=(a)=>typeof a<"u",zs=(a)=>typeof a==="function",Hx=(a,o)=>{if(a.size!==o.size)return!1;for(let s of a)if(!o.has(s))return!1;return!0};function gk(a){return a.type==="mouseup"||a.type==="click"||a.type==="contextmenu"}var sa=Math.PI,ho=2*sa,nO=ho+sa,em=Number.POSITIVE_INFINITY,sO=sa/180,po=sa/2,ol=sa/4,nk=sa*2/3,{log10:Hs,sign:Ln}=Math;function Bu(a,o,s){return Math.abs(a-o)<s}function Ux(a){let o=Math.round(a);a=Bu(a,o,a/1000)?o:a;let s=Math.pow(10,Math.floor(Hs(a))),r=a/s;return(r<=1?1:r<=2?2:r<=5?5:10)*s}function bk(a){let o=[],s=Math.sqrt(a),r;for(r=1;r<s;r++)if(a%r===0)o.push(r),o.push(a/r);if(s===(s|0))o.push(s);return o.sort((l,u)=>l-u).pop(),o}function rO(a){return typeof a==="symbol"||typeof a==="object"&&a!==null&&!((Symbol.toPrimitive in a)||("toString"in a)||("valueOf"in a))}function Nu(a){return!rO(a)&&!isNaN(parseFloat(a))&&isFinite(a)}function yk(a,o){let s=Math.round(a);return s-o<=a&&s+o>=a}function Fx(a,o,s){let r,l,u;for(r=0,l=a.length;r<l;r++)if(u=a[r][s],!isNaN(u))o.min=Math.min(o.min,u),o.max=Math.max(o.max,u)}function Us(a){return a*(sa/180)}function nm(a){return a*(180/sa)}function qx(a){if(!Kt(a))return;let o=1,s=0;while(Math.round(a*o)/o!==a)o*=10,s++;return s}function xk(a,o){let s=o.x-a.x,r=o.y-a.y,l=Math.sqrt(s*s+r*r),u=Math.atan2(r,s);if(u<-0.5*sa)u+=ho;return{angle:u,distance:l}}function tm(a,o){return Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2))}function iO(a,o){return(a-o+nO)%ho-sa}function fo(a){return(a%ho+ho)%ho}function Vx(a,o,s,r){let l=fo(a),u=fo(o),d=fo(s),p=fo(u-l),h=fo(d-l),g=fo(l-u),y=fo(l-d);return l===u||l===d||r&&u===d||p>h&&g<y}function mo(a,o,s){return Math.max(o,Math.min(s,a))}function vk(a){return mo(a,-32768,32767)}function Fs(a,o,s,r=0.000001){return a>=Math.min(o,s)-r&&a<=Math.max(o,s)+r}function sm(a,o,s){s=s||((d)=>a[d]<o);let r=a.length-1,l=0,u;while(r-l>1)if(u=l+r>>1,s(u))l=u;else r=u;return{lo:l,hi:r}}var Wr=(a,o,s,r)=>sm(a,s,r?(l)=>{let u=a[l][o];return u<s||u===s&&a[l+1][o]===s}:(l)=>a[l][o]<s),Sk=(a,o,s)=>sm(a,s,(r)=>a[r][o]>=s);function Lk(a,o,s){let r=0,l=a.length;while(r<l&&a[r]<o)r++;while(l>r&&a[l-1]>s)l--;return r>0||l<a.length?a.slice(r,l):a}var Ck=["push","pop","shift","splice","unshift"];function Tk(a,o){if(a._chartjs){a._chartjs.listeners.push(o);return}Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),Ck.forEach((s)=>{let r="_onData"+om(s),l=a[s];Object.defineProperty(a,s,{configurable:!0,enumerable:!1,value(...u){let d=l.apply(this,u);return a._chartjs.listeners.forEach((p)=>{if(typeof p[r]==="function")p[r](...u)}),d}})})}function jx(a,o){let s=a._chartjs;if(!s)return;let r=s.listeners,l=r.indexOf(o);if(l!==-1)r.splice(l,1);if(r.length>0)return;Ck.forEach((u)=>{delete a[u]}),delete a._chartjs}function Gx(a){let o=new Set(a);if(o.size===a.length)return a;return Array.from(o)}var Xx=function(){if(typeof window>"u")return function(a){return a()};return window.requestAnimationFrame}();function Yx(a,o){let s=[],r=!1;return function(...l){if(s=l,!r)r=!0,Xx.call(window,()=>{r=!1,a.apply(o,s)})}}function wk(a,o){let s;return function(...r){if(o)clearTimeout(s),s=setTimeout(a,o,r);else a.apply(this,r);return o}}var rm=(a)=>a==="start"?"left":a==="end"?"right":"center",Ba=(a,o,s)=>a==="start"?o:a==="end"?s:(o+s)/2,kk=(a,o,s,r)=>a===(r?"left":"right")?s:a==="center"?(o+s)/2:o;function Mk(a,o,s){let r=o.length,l=0,u=r;if(a._sorted){let{iScale:d,vScale:p,_parsed:h}=a,g=a.dataset?a.dataset.options?a.dataset.options.spanGaps:null:null,y=d.axis,{min:b,max:v,minDefined:T,maxDefined:M}=d.getUserBounds();if(T){if(l=Math.min(Wr(h,y,b).lo,s?r:Wr(o,y,d.getPixelForValue(b)).lo),g){let I=h.slice(0,l+1).reverse().findIndex((w)=>!ht(w[p.axis]));l-=Math.max(0,I)}l=mo(l,0,r-1)}if(M){let I=Math.max(Wr(h,d.axis,v,!0).hi+1,s?0:Wr(o,y,d.getPixelForValue(v),!0).hi+1);if(g){let w=h.slice(I-1).findIndex((A)=>!ht(A[p.axis]));I+=Math.max(0,w)}u=mo(I,l,r)-l}else u=r-l}return{start:l,count:u}}function Ik(a){let{xScale:o,yScale:s,_scaleRanges:r}=a,l={xmin:o.min,xmax:o.max,ymin:s.min,ymax:s.max};if(!r)return a._scaleRanges=l,!0;let u=r.xmin!==o.min||r.xmax!==o.max||r.ymin!==s.min||r.ymax!==s.max;return Object.assign(r,l),u}var Zh=(a)=>a===0||a===1,sk=(a,o,s)=>-(Math.pow(2,10*(a-=1))*Math.sin((a-o)*ho/s)),rk=(a,o,s)=>Math.pow(2,-10*a)*Math.sin((a-o)*ho/s)+1,Du={linear:(a)=>a,easeInQuad:(a)=>a*a,easeOutQuad:(a)=>-a*(a-2),easeInOutQuad:(a)=>(a/=0.5)<1?0.5*a*a:-0.5*(--a*(a-2)-1),easeInCubic:(a)=>a*a*a,easeOutCubic:(a)=>(a-=1)*a*a+1,easeInOutCubic:(a)=>(a/=0.5)<1?0.5*a*a*a:0.5*((a-=2)*a*a+2),easeInQuart:(a)=>a*a*a*a,easeOutQuart:(a)=>-((a-=1)*a*a*a-1),easeInOutQuart:(a)=>(a/=0.5)<1?0.5*a*a*a*a:-0.5*((a-=2)*a*a*a-2),easeInQuint:(a)=>a*a*a*a*a,easeOutQuint:(a)=>(a-=1)*a*a*a*a+1,easeInOutQuint:(a)=>(a/=0.5)<1?0.5*a*a*a*a*a:0.5*((a-=2)*a*a*a*a+2),easeInSine:(a)=>-Math.cos(a*po)+1,easeOutSine:(a)=>Math.sin(a*po),easeInOutSine:(a)=>-0.5*(Math.cos(sa*a)-1),easeInExpo:(a)=>a===0?0:Math.pow(2,10*(a-1)),easeOutExpo:(a)=>a===1?1:-Math.pow(2,-10*a)+1,easeInOutExpo:(a)=>Zh(a)?a:a<0.5?0.5*Math.pow(2,10*(a*2-1)):0.5*(-Math.pow(2,-10*(a*2-1))+2),easeInCirc:(a)=>a>=1?a:-(Math.sqrt(1-a*a)-1),easeOutCirc:(a)=>Math.sqrt(1-(a-=1)*a),easeInOutCirc:(a)=>(a/=0.5)<1?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1),easeInElastic:(a)=>Zh(a)?a:sk(a,0.075,0.3),easeOutElastic:(a)=>Zh(a)?a:rk(a,0.075,0.3),easeInOutElastic(a){return Zh(a)?a:a<0.5?0.5*sk(a*2,0.1125,0.45):0.5+0.5*rk(a*2-1,0.1125,0.45)},easeInBack(a){return a*a*(2.70158*a-1.70158)},easeOutBack(a){return(a-=1)*a*(2.70158*a+1.70158)+1},easeInOutBack(a){let o=1.70158;if((a/=0.5)<1)return 0.5*(a*a*(((o*=1.525)+1)*a-o));return 0.5*((a-=2)*a*(((o*=1.525)+1)*a+o)+2)},easeInBounce:(a)=>1-Du.easeOutBounce(1-a),easeOutBounce(a){if(a<0.36363636363636365)return 7.5625*a*a;if(a<0.7272727272727273)return 7.5625*(a-=0.5454545454545454)*a+0.75;if(a<0.9090909090909091)return 7.5625*(a-=0.8181818181818182)*a+0.9375;return 7.5625*(a-=0.9545454545454546)*a+0.984375},easeInOutBounce:(a)=>a<0.5?Du.easeInBounce(a*2)*0.5:Du.easeOutBounce(a*2-1)*0.5+0.5};function $x(a){if(a&&typeof a==="object"){let o=a.toString();return o==="[object CanvasPattern]"||o==="[object CanvasGradient]"}return!1}function Wx(a){return $x(a)?a:new Ru(a)}function Nx(a){return $x(a)?a:new Ru(a).saturate(0.5).darken(0.1).hexString()}var lO=["x","y","borderWidth","radius","tension"],uO=["color","borderColor","backgroundColor"];function cO(a){a.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),a.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(o)=>o!=="onProgress"&&o!=="onComplete"&&o!=="fn"}),a.set("animations",{colors:{type:"color",properties:uO},numbers:{type:"number",properties:lO}}),a.describe("animations",{_fallback:"animation"}),a.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:(o)=>o|0}}}})}function dO(a){a.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var ik=new Map;function fO(a,o){o=o||{};let s=a+JSON.stringify(o),r=ik.get(s);if(!r)r=new Intl.NumberFormat(a,o),ik.set(s,r);return r}function im(a,o,s){return fO(o,s).format(a)}var Ak={values(a){return zt(a)?a:""+a},numeric(a,o,s){if(a===0)return"0";let r=this.chart.options.locale,l,u=a;if(s.length>1){let g=Math.max(Math.abs(s[0].value),Math.abs(s[s.length-1].value));if(g<0.0001||g>1000000000000000)l="scientific";u=pO(a,s)}let d=Hs(Math.abs(u)),p=isNaN(d)?1:Math.max(Math.min(-1*Math.floor(d),20),0),h={notation:l,minimumFractionDigits:p,maximumFractionDigits:p};return Object.assign(h,this.options.ticks.format),im(a,r,h)},logarithmic(a,o,s){if(a===0)return"0";let r=s[o].significand||a/Math.pow(10,Math.floor(Hs(a)));if([1,2,3,5,10,15].includes(r)||o>0.8*s.length)return Ak.numeric.call(this,a,o,s);return""}};function pO(a,o){let s=o.length>3?o[2].value-o[1].value:o[1].value-o[0].value;if(Math.abs(s)>=1&&a!==Math.floor(a))s=a-Math.floor(a);return s}var Bd={formatters:Ak};function hO(a){a.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(o,s)=>s.lineWidth,tickColor:(o,s)=>s.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Bd.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),a.route("scale.ticks","color","","color"),a.route("scale.grid","color","","borderColor"),a.route("scale.border","color","","borderColor"),a.route("scale.title","color","","color"),a.describe("scale",{_fallback:!1,_scriptable:(o)=>!o.startsWith("before")&&!o.startsWith("after")&&o!=="callback"&&o!=="parser",_indexable:(o)=>o!=="borderDash"&&o!=="tickBorderDash"&&o!=="dash"}),a.describe("scales",{_fallback:"scale"}),a.describe("scale.ticks",{_scriptable:(o)=>o!=="backdropPadding"&&o!=="callback",_indexable:(o)=>o!=="backdropPadding"})}var Qr=Object.create(null),lm=Object.create(null);function Ed(a,o){if(!o)return a;let s=o.split(".");for(let r=0,l=s.length;r<l;++r){let u=s[r];a=a[u]||(a[u]=Object.create(null))}return a}function zx(a,o,s){if(typeof o==="string")return _u(Ed(a,o),s);return _u(Ed(a,""),o)}class Rk{constructor(a,o){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=(s)=>s.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,r)=>Nx(r.backgroundColor),this.hoverBorderColor=(s,r)=>Nx(r.borderColor),this.hoverColor=(s,r)=>Nx(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(a),this.apply(o)}set(a,o){return zx(this,a,o)}get(a){return Ed(this,a)}describe(a,o){return zx(lm,a,o)}override(a,o){return zx(Qr,a,o)}route(a,o,s,r){let l=Ed(this,a),u=Ed(this,s),d="_"+o;Object.defineProperties(l,{[d]:{value:l[o],writable:!0},[o]:{enumerable:!0,get(){let p=this[d],h=u[r];if(it(p))return Object.assign({},h,p);return Ke(p,h)},set(p){this[d]=p}}})}apply(a){a.forEach((o)=>o(this))}}var Jt=new Rk({_scriptable:(a)=>!a.startsWith("on"),_indexable:(a)=>a!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[cO,dO,hO]);function mO(a){if(!a||ht(a.size)||ht(a.family))return null;return(a.style?a.style+" ":"")+(a.weight?a.weight+" ":"")+a.size+"px "+a.family}function Od(a,o,s,r,l){let u=o[l];if(!u)u=o[l]=a.measureText(l).width,s.push(l);if(u>r)r=u;return r}function Dk(a,o,s,r){r=r||{};let l=r.data=r.data||{},u=r.garbageCollect=r.garbageCollect||[];if(r.font!==o)l=r.data={},u=r.garbageCollect=[],r.font=o;a.save(),a.font=o;let d=0,p=s.length,h,g,y,b,v;for(h=0;h<p;h++)if(b=s[h],b!==void 0&&b!==null&&!zt(b))d=Od(a,l,u,d,b);else if(zt(b)){for(g=0,y=b.length;g<y;g++)if(v=b[g],v!==void 0&&v!==null&&!zt(v))d=Od(a,l,u,d,v)}a.restore();let T=u.length/2;if(T>s.length){for(h=0;h<T;h++)delete l[u[h]];u.splice(0,T)}return d}function Kr(a,o,s){let r=a.currentDevicePixelRatio,l=s!==0?Math.max(s/2,0.5):0;return Math.round((o-l)*r)/r+l}function Zx(a,o){if(!o&&!a)return;o=o||a.getContext("2d"),o.save(),o.resetTransform(),o.clearRect(0,0,a.width,a.height),o.restore()}function um(a,o,s,r){Qx(a,o,s,r,null)}function Qx(a,o,s,r,l){let u,d,p,h,g,y,b,v,{pointStyle:T,rotation:M,radius:I}=o,w=(M||0)*sO;if(T&&typeof T==="object"){if(u=T.toString(),u==="[object HTMLImageElement]"||u==="[object HTMLCanvasElement]"){a.save(),a.translate(s,r),a.rotate(w),a.drawImage(T,-T.width/2,-T.height/2,T.width,T.height),a.restore();return}}if(isNaN(I)||I<=0)return;switch(a.beginPath(),T){default:if(l)a.ellipse(s,r,l/2,I,0,0,ho);else a.arc(s,r,I,0,ho);a.closePath();break;case"triangle":y=l?l/2:I,a.moveTo(s+Math.sin(w)*y,r-Math.cos(w)*I),w+=nk,a.lineTo(s+Math.sin(w)*y,r-Math.cos(w)*I),w+=nk,a.lineTo(s+Math.sin(w)*y,r-Math.cos(w)*I),a.closePath();break;case"rectRounded":g=I*0.516,h=I-g,d=Math.cos(w+ol)*h,b=Math.cos(w+ol)*(l?l/2-g:h),p=Math.sin(w+ol)*h,v=Math.sin(w+ol)*(l?l/2-g:h),a.arc(s-b,r-p,g,w-sa,w-po),a.arc(s+v,r-d,g,w-po,w),a.arc(s+b,r+p,g,w,w+po),a.arc(s-v,r+d,g,w+po,w+sa),a.closePath();break;case"rect":if(!M){h=Math.SQRT1_2*I,y=l?l/2:h,a.rect(s-y,r-h,2*y,2*h);break}w+=ol;case"rectRot":b=Math.cos(w)*(l?l/2:I),d=Math.cos(w)*I,p=Math.sin(w)*I,v=Math.sin(w)*(l?l/2:I),a.moveTo(s-b,r-p),a.lineTo(s+v,r-d),a.lineTo(s+b,r+p),a.lineTo(s-v,r+d),a.closePath();break;case"crossRot":w+=ol;case"cross":b=Math.cos(w)*(l?l/2:I),d=Math.cos(w)*I,p=Math.sin(w)*I,v=Math.sin(w)*(l?l/2:I),a.moveTo(s-b,r-p),a.lineTo(s+b,r+p),a.moveTo(s+v,r-d),a.lineTo(s-v,r+d);break;case"star":b=Math.cos(w)*(l?l/2:I),d=Math.cos(w)*I,p=Math.sin(w)*I,v=Math.sin(w)*(l?l/2:I),a.moveTo(s-b,r-p),a.lineTo(s+b,r+p),a.moveTo(s+v,r-d),a.lineTo(s-v,r+d),w+=ol,b=Math.cos(w)*(l?l/2:I),d=Math.cos(w)*I,p=Math.sin(w)*I,v=Math.sin(w)*(l?l/2:I),a.moveTo(s-b,r-p),a.lineTo(s+b,r+p),a.moveTo(s+v,r-d),a.lineTo(s-v,r+d);break;case"line":d=l?l/2:Math.cos(w)*I,p=Math.sin(w)*I,a.moveTo(s-d,r-p),a.lineTo(s+d,r+p);break;case"dash":a.moveTo(s,r),a.lineTo(s+Math.cos(w)*(l?l/2:I),r+Math.sin(w)*I);break;case!1:a.closePath();break}if(a.fill(),o.borderWidth>0)a.stroke()}function as(a,o,s){return s=s||0.5,!o||a&&a.x>o.left-s&&a.x<o.right+s&&a.y>o.top-s&&a.y<o.bottom+s}function Nd(a,o){a.save(),a.beginPath(),a.rect(o.left,o.top,o.right-o.left,o.bottom-o.top),a.clip()}function zd(a){a.restore()}function _k(a,o,s,r,l){if(!o)return a.lineTo(s.x,s.y);if(l==="middle"){let u=(o.x+s.x)/2;a.lineTo(u,o.y),a.lineTo(u,s.y)}else if(l==="after"!==!!r)a.lineTo(o.x,s.y);else a.lineTo(s.x,o.y);a.lineTo(s.x,s.y)}function Ek(a,o,s,r){if(!o)return a.lineTo(s.x,s.y);a.bezierCurveTo(r?o.cp1x:o.cp2x,r?o.cp1y:o.cp2y,r?s.cp2x:s.cp1x,r?s.cp2y:s.cp1y,s.x,s.y)}function gO(a,o){if(o.translation)a.translate(o.translation[0],o.translation[1]);if(!ht(o.rotation))a.rotate(o.rotation);if(o.color)a.fillStyle=o.color;if(o.textAlign)a.textAlign=o.textAlign;if(o.textBaseline)a.textBaseline=o.textBaseline}function bO(a,o,s,r,l){if(l.strikethrough||l.underline){let u=a.measureText(r),d=o-u.actualBoundingBoxLeft,p=o+u.actualBoundingBoxRight,h=s-u.actualBoundingBoxAscent,g=s+u.actualBoundingBoxDescent,y=l.strikethrough?(h+g)/2:g;a.strokeStyle=a.fillStyle,a.beginPath(),a.lineWidth=l.decorationWidth||2,a.moveTo(d,y),a.lineTo(p,y),a.stroke()}}function yO(a,o){let s=a.fillStyle;a.fillStyle=o.color,a.fillRect(o.left,o.top,o.width,o.height),a.fillStyle=s}function Jr(a,o,s,r,l,u={}){let d=zt(o)?o:[o],p=u.strokeWidth>0&&u.strokeColor!=="",h,g;a.save(),a.font=l.string,gO(a,u);for(h=0;h<d.length;++h){if(g=d[h],u.backdrop)yO(a,u.backdrop);if(p){if(u.strokeColor)a.strokeStyle=u.strokeColor;if(!ht(u.strokeWidth))a.lineWidth=u.strokeWidth;a.strokeText(g,s,r,u.maxWidth)}a.fillText(g,s,r,u.maxWidth),bO(a,s,r,g,u),r+=Number(l.lineHeight)}a.restore()}function zu(a,o){let{x:s,y:r,w:l,h:u,radius:d}=o;a.arc(s+d.topLeft,r+d.topLeft,d.topLeft,1.5*sa,sa,!0),a.lineTo(s,r+u-d.bottomLeft),a.arc(s+d.bottomLeft,r+u-d.bottomLeft,d.bottomLeft,sa,po,!0),a.lineTo(s+l-d.bottomRight,r+u),a.arc(s+l-d.bottomRight,r+u-d.bottomRight,d.bottomRight,po,0,!0),a.lineTo(s+l,r+d.topRight),a.arc(s+l-d.topRight,r+d.topRight,d.topRight,0,-po,!0),a.lineTo(s+d.topLeft,r)}var xO=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,vO=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function SO(a,o){let s=(""+a).match(xO);if(!s||s[1]==="normal")return o*1.2;switch(a=+s[2],s[3]){case"px":return a;case"%":a/=100;break}return o*a}var LO=(a)=>+a||0;function Kx(a,o){let s={},r=it(o),l=r?Object.keys(o):o,u=it(a)?r?(d)=>Ke(a[d],a[o[d]]):(d)=>a[d]:()=>a;for(let d of l)s[d]=LO(u(d));return s}function Jx(a){return Kx(a,{top:"y",right:"x",bottom:"y",left:"x"})}function ei(a){return Kx(a,["topLeft","topRight","bottomLeft","bottomRight"])}function Na(a){let o=Jx(a);return o.width=o.left+o.right,o.height=o.top+o.bottom,o}function ha(a,o){a=a||{},o=o||Jt.font;let s=Ke(a.size,o.size);if(typeof s==="string")s=parseInt(s,10);let r=Ke(a.style,o.style);if(r&&!(""+r).match(vO))console.warn('Invalid font style specified: "'+r+'"'),r=void 0;let l={family:Ke(a.family,o.family),lineHeight:SO(Ke(a.lineHeight,o.lineHeight),s),size:s,style:r,weight:Ke(a.weight,o.weight),string:""};return l.string=mO(l),l}function Hd(a,o,s,r){let l=!0,u,d,p;for(u=0,d=a.length;u<d;++u){if(p=a[u],p===void 0)continue;if(o!==void 0&&typeof p==="function")p=p(o),l=!1;if(s!==void 0&&zt(p))p=p[s%p.length],l=!1;if(p!==void 0){if(r&&!l)r.cacheable=!1;return p}}}function Ok(a,o,s){let{min:r,max:l}=a,u=hk(o,(l-r)/2),d=(p,h)=>s&&p===0?0:p+h;return{min:d(r,-Math.abs(u)),max:d(l,u)}}function qs(a,o){return Object.assign(Object.create(a),o)}function cm(a,o=[""],s,r,l=()=>a[0]){let u=s||a;if(typeof r>"u")r=Nk("_fallback",a);let d={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:a,_rootScopes:u,_fallback:r,_getTarget:l,override:(p)=>cm([p,...a],o,u,r)};return new Proxy(d,{deleteProperty(p,h){return delete p[h],delete p._keys,delete a[0][h],!0},get(p,h){return Pk(p,h,()=>RO(h,o,a,p))},getOwnPropertyDescriptor(p,h){return Reflect.getOwnPropertyDescriptor(p._scopes[0],h)},getPrototypeOf(){return Reflect.getPrototypeOf(a[0])},has(p,h){return uk(p).includes(h)},ownKeys(p){return uk(p)},set(p,h,g){let y=p._storage||(p._storage=l());return p[h]=y[h]=g,delete p._keys,!0}})}function sl(a,o,s,r){let l={_cacheable:!1,_proxy:a,_context:o,_subProxy:s,_stack:new Set,_descriptors:ev(a,r),setContext:(u)=>sl(a,u,s,r),override:(u)=>sl(a.override(u),o,s,r)};return new Proxy(l,{deleteProperty(u,d){return delete u[d],delete a[d],!0},get(u,d,p){return Pk(u,d,()=>TO(u,d,p))},getOwnPropertyDescriptor(u,d){return u._descriptors.allKeys?Reflect.has(a,d)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(a,d)},getPrototypeOf(){return Reflect.getPrototypeOf(a)},has(u,d){return Reflect.has(a,d)},ownKeys(){return Reflect.ownKeys(a)},set(u,d,p){return a[d]=p,delete u[d],!0}})}function ev(a,o={scriptable:!0,indexable:!0}){let{_scriptable:s=o.scriptable,_indexable:r=o.indexable,_allKeys:l=o.allKeys}=a;return{allKeys:l,scriptable:s,indexable:r,isScriptable:zs(s)?s:()=>s,isIndexable:zs(r)?r:()=>r}}var CO=(a,o)=>a?a+om(o):o,tv=(a,o)=>it(o)&&a!=="adapters"&&(Object.getPrototypeOf(o)===null||o.constructor===Object);function Pk(a,o,s){if(Object.prototype.hasOwnProperty.call(a,o)||o==="constructor")return a[o];let r=s();return a[o]=r,r}function TO(a,o,s){let{_proxy:r,_context:l,_subProxy:u,_descriptors:d}=a,p=r[o];if(zs(p)&&d.isScriptable(o))p=wO(o,p,a,s);if(zt(p)&&p.length)p=kO(o,p,a,d.isIndexable);if(tv(o,p))p=sl(p,l,u&&u[o],d);return p}function wO(a,o,s,r){let{_proxy:l,_context:u,_subProxy:d,_stack:p}=s;if(p.has(a))throw Error("Recursion detected: "+Array.from(p).join("->")+"->"+a);p.add(a);let h=o(u,d||r);if(p.delete(a),tv(a,h))h=av(l._scopes,l,a,h);return h}function kO(a,o,s,r){let{_proxy:l,_context:u,_subProxy:d,_descriptors:p}=s;if(typeof u.index<"u"&&r(a))return o[u.index%o.length];else if(it(o[0])){let h=o,g=l._scopes.filter((y)=>y!==h);o=[];for(let y of h){let b=av(g,l,a,y);o.push(sl(b,u,d&&d[a],p))}}return o}function Bk(a,o,s){return zs(a)?a(o,s):a}var MO=(a,o)=>a===!0?o:typeof a==="string"?rl(o,a):void 0;function IO(a,o,s,r,l){for(let u of o){let d=MO(s,u);if(d){a.add(d);let p=Bk(d._fallback,s,l);if(typeof p<"u"&&p!==s&&p!==r)return p}else if(d===!1&&typeof r<"u"&&s!==r)return null}return!1}function av(a,o,s,r){let l=o._rootScopes,u=Bk(o._fallback,s,r),d=[...a,...l],p=new Set;p.add(r);let h=lk(p,d,s,u||s,r);if(h===null)return!1;if(typeof u<"u"&&u!==s){if(h=lk(p,d,u,h,r),h===null)return!1}return cm(Array.from(p),[""],l,u,()=>AO(o,s,r))}function lk(a,o,s,r,l){while(s)s=IO(a,o,s,r,l);return s}function AO(a,o,s){let r=a._getTarget();if(!(o in r))r[o]={};let l=r[o];if(zt(l)&&it(s))return s;return l||{}}function RO(a,o,s,r){let l;for(let u of o)if(l=Nk(CO(u,a),s),typeof l<"u")return tv(a,l)?av(s,r,a,l):l}function Nk(a,o){for(let s of o){if(!s)continue;let r=s[a];if(typeof r<"u")return r}}function uk(a){let o=a._keys;if(!o)o=a._keys=DO(a._scopes);return o}function DO(a){let o=new Set;for(let s of a)for(let r of Object.keys(s).filter((l)=>!l.startsWith("_")))o.add(r);return Array.from(o)}var _O=Number.EPSILON||0.00000000000001,Eu=(a,o)=>o<a.length&&!a[o].skip&&a[o],zk=(a)=>a==="x"?"y":"x";function EO(a,o,s,r){let l=a.skip?o:a,u=o,d=s.skip?o:s,p=tm(u,l),h=tm(d,u),g=p/(p+h),y=h/(p+h);g=isNaN(g)?0:g,y=isNaN(y)?0:y;let b=r*g,v=r*y;return{previous:{x:u.x-b*(d.x-l.x),y:u.y-b*(d.y-l.y)},next:{x:u.x+v*(d.x-l.x),y:u.y+v*(d.y-l.y)}}}function OO(a,o,s){let r=a.length,l,u,d,p,h,g=Eu(a,0);for(let y=0;y<r-1;++y){if(h=g,g=Eu(a,y+1),!h||!g)continue;if(Bu(o[y],0,_O)){s[y]=s[y+1]=0;continue}if(l=s[y]/o[y],u=s[y+1]/o[y],p=Math.pow(l,2)+Math.pow(u,2),p<=9)continue;d=3/Math.sqrt(p),s[y]=l*d*o[y],s[y+1]=u*d*o[y]}}function PO(a,o,s="x"){let r=zk(s),l=a.length,u,d,p,h=Eu(a,0);for(let g=0;g<l;++g){if(d=p,p=h,h=Eu(a,g+1),!p)continue;let y=p[s],b=p[r];if(d)u=(y-d[s])/3,p[`cp1${s}`]=y-u,p[`cp1${r}`]=b-u*o[g];if(h)u=(h[s]-y)/3,p[`cp2${s}`]=y+u,p[`cp2${r}`]=b+u*o[g]}}function BO(a,o="x"){let s=zk(o),r=a.length,l=Array(r).fill(0),u=Array(r),d,p,h,g=Eu(a,0);for(d=0;d<r;++d){if(p=h,h=g,g=Eu(a,d+1),!h)continue;if(g){let y=g[o]-h[o];l[d]=y!==0?(g[s]-h[s])/y:0}u[d]=!p?l[d]:!g?l[d-1]:Ln(l[d-1])!==Ln(l[d])?0:(l[d-1]+l[d])/2}OO(a,l,u),PO(a,u,o)}function Qh(a,o,s){return Math.max(Math.min(a,s),o)}function NO(a,o){let s,r,l,u,d,p=as(a[0],o);for(s=0,r=a.length;s<r;++s){if(d=u,u=p,p=s<r-1&&as(a[s+1],o),!u)continue;if(l=a[s],d)l.cp1x=Qh(l.cp1x,o.left,o.right),l.cp1y=Qh(l.cp1y,o.top,o.bottom);if(p)l.cp2x=Qh(l.cp2x,o.left,o.right),l.cp2y=Qh(l.cp2y,o.top,o.bottom)}}function Hk(a,o,s,r,l){let u,d,p,h;if(o.spanGaps)a=a.filter((g)=>!g.skip);if(o.cubicInterpolationMode==="monotone")BO(a,l);else{let g=r?a[a.length-1]:a[0];for(u=0,d=a.length;u<d;++u)p=a[u],h=EO(g,p,a[Math.min(u+1,d-(r?0:1))%d],o.tension),p.cp1x=h.previous.x,p.cp1y=h.previous.y,p.cp2x=h.next.x,p.cp2y=h.next.y,g=p}if(o.capBezierPoints)NO(a,s)}function dm(){return typeof window<"u"&&typeof document<"u"}function fm(a){let o=a.parentNode;if(o&&o.toString()==="[object ShadowRoot]")o=o.host;return o}function am(a,o,s){let r;if(typeof a==="string"){if(r=parseInt(a,10),a.indexOf("%")!==-1)r=r/100*o.parentNode[s]}else r=a;return r}var pm=(a)=>a.ownerDocument.defaultView.getComputedStyle(a,null);function zO(a,o){return pm(a).getPropertyValue(o)}var HO=["top","right","bottom","left"];function nl(a,o,s){let r={};s=s?"-"+s:"";for(let l=0;l<4;l++){let u=HO[l];r[u]=parseFloat(a[o+"-"+u+s])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var UO=(a,o,s)=>(a>0||o>0)&&(!s||!s.shadowRoot);function FO(a,o){let s=a.touches,r=s&&s.length?s[0]:a,{offsetX:l,offsetY:u}=r,d=!1,p,h;if(UO(l,u,a.target))p=l,h=u;else{let g=o.getBoundingClientRect();p=r.clientX-g.left,h=r.clientY-g.top,d=!0}return{x:p,y:h,box:d}}function ti(a,o){if("native"in a)return a;let{canvas:s,currentDevicePixelRatio:r}=o,l=pm(s),u=l.boxSizing==="border-box",d=nl(l,"padding"),p=nl(l,"border","width"),{x:h,y:g,box:y}=FO(a,s),b=d.left+(y&&p.left),v=d.top+(y&&p.top),{width:T,height:M}=o;if(u)T-=d.width+p.width,M-=d.height+p.height;return{x:Math.round((h-b)/T*s.width/r),y:Math.round((g-v)/M*s.height/r)}}function qO(a,o,s){let r,l;if(o===void 0||s===void 0){let u=a&&fm(a);if(!u)o=a.clientWidth,s=a.clientHeight;else{let d=u.getBoundingClientRect(),p=pm(u),h=nl(p,"border","width"),g=nl(p,"padding");o=d.width-g.width-h.width,s=d.height-g.height-h.height,r=am(p.maxWidth,u,"clientWidth"),l=am(p.maxHeight,u,"clientHeight")}}return{width:o,height:s,maxWidth:r||em,maxHeight:l||em}}var Zr=(a)=>Math.round(a*10)/10;function Uk(a,o,s,r){let l=pm(a),u=nl(l,"margin"),d=am(l.maxWidth,a,"clientWidth")||em,p=am(l.maxHeight,a,"clientHeight")||em,h=qO(a,o,s),{width:g,height:y}=h;if(l.boxSizing==="content-box"){let v=nl(l,"border","width"),T=nl(l,"padding");g-=T.width+v.width,y-=T.height+v.height}if(g=Math.max(0,g-u.width),y=Math.max(0,r?g/r:y-u.height),g=Zr(Math.min(g,d,h.maxWidth)),y=Zr(Math.min(y,p,h.maxHeight)),g&&!y)y=Zr(g/2);if((o!==void 0||s!==void 0)&&r&&h.height&&y>h.height)y=h.height,g=Zr(Math.floor(y*r));return{width:g,height:y}}function ov(a,o,s){let r=o||1,l=Zr(a.height*r),u=Zr(a.width*r);a.height=Zr(a.height),a.width=Zr(a.width);let d=a.canvas;if(d.style&&(s||!d.style.height&&!d.style.width))d.style.height=`${a.height}px`,d.style.width=`${a.width}px`;if(a.currentDevicePixelRatio!==r||d.height!==l||d.width!==u)return a.currentDevicePixelRatio=r,d.height=l,d.width=u,a.ctx.setTransform(r,0,0,r,0,0),!0;return!1}var Fk=function(){let a=!1;try{let o={get passive(){return a=!0,!1}};if(dm())window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}return a}();function nv(a,o){let s=zO(a,o),r=s&&s.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function $r(a,o,s,r){return{x:a.x+s*(o.x-a.x),y:a.y+s*(o.y-a.y)}}function qk(a,o,s,r){return{x:a.x+s*(o.x-a.x),y:r==="middle"?s<0.5?a.y:o.y:r==="after"?s<1?a.y:o.y:s>0?o.y:a.y}}function Vk(a,o,s,r){let l={x:a.cp2x,y:a.cp2y},u={x:o.cp1x,y:o.cp1y},d=$r(a,l,s),p=$r(l,u,s),h=$r(u,o,s),g=$r(d,p,s),y=$r(p,h,s);return $r(g,y,s)}var VO=function(a,o){return{x(s){return a+a+o-s},setWidth(s){o=s},textAlign(s){if(s==="center")return s;return s==="right"?"left":"right"},xPlus(s,r){return s-r},leftForLtr(s,r){return s-r}}},jO=function(){return{x(a){return a},setWidth(a){},textAlign(a){return a},xPlus(a,o){return a+o},leftForLtr(a,o){return a}}};function il(a,o,s){return a?VO(o,s):jO()}function sv(a,o){let s,r;if(o==="ltr"||o==="rtl")s=a.canvas.style,r=[s.getPropertyValue("direction"),s.getPropertyPriority("direction")],s.setProperty("direction",o,"important"),a.prevTextDirection=r}function rv(a,o){if(o!==void 0)delete a.prevTextDirection,a.canvas.style.setProperty("direction",o[0],o[1])}function jk(a){if(a==="angle")return{between:Vx,compare:iO,normalize:fo};return{between:Fs,compare:(o,s)=>o-s,normalize:(o)=>o}}function ck({start:a,end:o,count:s,loop:r,style:l}){return{start:a%s,end:o%s,loop:r&&(o-a+1)%s===0,style:l}}function GO(a,o,s){let{property:r,start:l,end:u}=s,{between:d,normalize:p}=jk(r),h=o.length,{start:g,end:y,loop:b}=a,v,T;if(b){g+=h,y+=h;for(v=0,T=h;v<T;++v){if(!d(p(o[g%h][r]),l,u))break;g--,y--}g%=h,y%=h}if(y<g)y+=h;return{start:g,end:y,loop:b,style:a.style}}function iv(a,o,s){if(!s)return[a];let{property:r,start:l,end:u}=s,d=o.length,{compare:p,between:h,normalize:g}=jk(r),{start:y,end:b,loop:v,style:T}=GO(a,o,s),M=[],I=!1,w=null,A,B,z,H=()=>h(l,z,A)&&p(l,z)!==0,q=()=>p(u,A)===0||h(u,z,A),j=()=>I||H(),G=()=>!I||q();for(let Y=y,J=y;Y<=b;++Y){if(B=o[Y%d],B.skip)continue;if(A=g(B[r]),A===z)continue;if(I=h(A,l,u),w===null&&j())w=p(A,l)===0?Y:J;if(w!==null&&G())M.push(ck({start:w,end:Y,loop:v,count:d,style:T})),w=null;J=Y,z=A}if(w!==null)M.push(ck({start:w,end:b,loop:v,count:d,style:T}));return M}function lv(a,o){let s=[],r=a.segments;for(let l=0;l<r.length;l++){let u=iv(r[l],a.points,o);if(u.length)s.push(...u)}return s}function XO(a,o,s,r){let l=0,u=o-1;if(s&&!r)while(l<o&&!a[l].skip)l++;while(l<o&&a[l].skip)l++;if(l%=o,s)u+=l;while(u>l&&a[u%o].skip)u--;return u%=o,{start:l,end:u}}function YO(a,o,s,r){let l=a.length,u=[],d=o,p=a[o],h;for(h=o+1;h<=s;++h){let g=a[h%l];if(g.skip||g.stop){if(!p.skip)r=!1,u.push({start:o%l,end:(h-1)%l,loop:r}),o=d=g.stop?h:null}else if(d=h,p.skip)o=h;p=g}if(d!==null)u.push({start:o%l,end:d%l,loop:r});return u}function Gk(a,o){let s=a.points,r=a.options.spanGaps,l=s.length;if(!l)return[];let u=!!a._loop,{start:d,end:p}=XO(s,l,u,r);if(r===!0)return dk(a,[{start:d,end:p,loop:u}],s,o);let h=p<d?p+l:p,g=!!a._fullLoop&&d===0&&p===l-1;return dk(a,YO(s,d,h,g),s,o)}function dk(a,o,s,r){if(!r||!r.setContext||!s)return o;return $O(a,o,s,r)}function $O(a,o,s,r){let l=a._chart.getContext(),u=fk(a.options),{_datasetIndex:d,options:{spanGaps:p}}=a,h=s.length,g=[],y=u,b=o[0].start,v=b;function T(M,I,w,A){let B=p?-1:1;if(M===I)return;M+=h;while(s[M%h].skip)M-=B;while(s[I%h].skip)I+=B;if(M%h!==I%h)g.push({start:M%h,end:I%h,loop:w,style:A}),y=A,b=I%h}for(let M of o){b=p?b:M.start;let I=s[b%h],w;for(v=b+1;v<=M.end;v++){let A=s[v%h];if(w=fk(r.setContext(qs(l,{type:"segment",p0:I,p1:A,p0DataIndex:(v-1)%h,p1DataIndex:v%h,datasetIndex:d}))),WO(w,y))T(b,v-1,M.loop,y);I=A,y=w}if(b<v-1)T(b,v-1,M.loop,y)}return g}function fk(a){return{backgroundColor:a.backgroundColor,borderCapStyle:a.borderCapStyle,borderDash:a.borderDash,borderDashOffset:a.borderDashOffset,borderJoinStyle:a.borderJoinStyle,borderWidth:a.borderWidth,borderColor:a.borderColor}}function WO(a,o){if(!o)return!1;let s=[],r=function(l,u){if(!$x(u))return u;if(!s.includes(u))s.push(u);return s.indexOf(u)};return JSON.stringify(a,r)!==JSON.stringify(o,r)}function Kh(a,o,s){return a.options.clip?a[s]:o[s]}function ZO(a,o){let{xScale:s,yScale:r}=a;if(s&&r)return{left:Kh(s,o,"left"),right:Kh(s,o,"right"),top:Kh(r,o,"top"),bottom:Kh(r,o,"bottom")};return o}function uv(a,o){let s=o._clip;if(s.disabled)return!1;let r=ZO(o,a.chartArea);return{left:s.left===!1?0:r.left-(s.left===!0?0:s.left),right:s.right===!1?a.width:r.right+(s.right===!0?0:s.right),top:s.top===!1?0:r.top-(s.top===!0?0:s.top),bottom:s.bottom===!1?a.height:r.bottom+(s.bottom===!0?0:s.bottom)}}/*!
251
- * Chart.js v4.5.1
252
- * https://www.chartjs.org
253
- * (c) 2025 Chart.js Contributors
254
- * Released under the MIT License
255
- */class qM{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(a,o,s,r){let l=o.listeners[r],u=o.duration;l.forEach((d)=>d({chart:a,initial:o.initial,numSteps:u,currentStep:Math.min(s-o.start,u)}))}_refresh(){if(this._request)return;this._running=!0,this._request=Xx.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(a=Date.now()){let o=0;if(this._charts.forEach((s,r)=>{if(!s.running||!s.items.length)return;let l=s.items,u=l.length-1,d=!1,p;for(;u>=0;--u)if(p=l[u],p._active){if(p._total>s.duration)s.duration=p._total;p.tick(a),d=!0}else l[u]=l[l.length-1],l.pop();if(d)r.draw(),this._notify(r,s,a,"progress");if(!l.length)s.running=!1,this._notify(r,s,a,"complete"),s.initial=!1;o+=l.length}),this._lastDate=a,o===0)this._running=!1}_getAnims(a){let o=this._charts,s=o.get(a);if(!s)s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},o.set(a,s);return s}listen(a,o,s){this._getAnims(a).listeners[o].push(s)}add(a,o){if(!o||!o.length)return;this._getAnims(a).items.push(...o)}has(a){return this._getAnims(a).items.length>0}start(a){let o=this._charts.get(a);if(!o)return;o.running=!0,o.start=Date.now(),o.duration=o.items.reduce((s,r)=>Math.max(s,r._duration),0),this._refresh()}running(a){if(!this._running)return!1;let o=this._charts.get(a);if(!o||!o.running||!o.items.length)return!1;return!0}stop(a){let o=this._charts.get(a);if(!o||!o.items.length)return;let s=o.items,r=s.length-1;for(;r>=0;--r)s[r].cancel();o.items=[],this._notify(a,o,Date.now(),"complete")}remove(a){return this._charts.delete(a)}}var Vs=new qM,Xk="transparent",QO={boolean(a,o,s){return s>0.5?o:a},color(a,o,s){let r=Wx(a||Xk),l=r.valid&&Wx(o||Xk);return l&&l.valid?l.mix(r,s).hexString():o},number(a,o,s){return a+(o-a)*s}};class VM{constructor(a,o,s,r){let l=o[s];r=Hd([a.to,r,l,a.from]);let u=Hd([a.from,l,r]);this._active=!0,this._fn=a.fn||QO[a.type||typeof u],this._easing=Du[a.easing]||Du.linear,this._start=Math.floor(Date.now()+(a.delay||0)),this._duration=this._total=Math.floor(a.duration),this._loop=!!a.loop,this._target=o,this._prop=s,this._from=u,this._to=r,this._promises=void 0}active(){return this._active}update(a,o,s){if(this._active){this._notify(!1);let r=this._target[this._prop],l=s-this._start,u=this._duration-l;this._start=s,this._duration=Math.floor(Math.max(u,a.duration)),this._total+=l,this._loop=!!a.loop,this._to=Hd([a.to,o,r,a.from]),this._from=Hd([a.from,r,o])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(a){let o=a-this._start,s=this._duration,r=this._prop,l=this._from,u=this._loop,d=this._to,p;if(this._active=l!==d&&(u||o<s),!this._active){this._target[r]=d,this._notify(!0);return}if(o<0){this._target[r]=l;return}p=o/s%2,p=u&&p>1?2-p:p,p=this._easing(Math.min(1,Math.max(0,p))),this._target[r]=this._fn(l,d,p)}wait(){let a=this._promises||(this._promises=[]);return new Promise((o,s)=>{a.push({res:o,rej:s})})}_notify(a){let o=a?"res":"rej",s=this._promises||[];for(let r=0;r<s.length;r++)s[r][o]()}}class Av{constructor(a,o){this._chart=a,this._properties=new Map,this.configure(o)}configure(a){if(!it(a))return;let o=Object.keys(Jt.animation),s=this._properties;Object.getOwnPropertyNames(a).forEach((r)=>{let l=a[r];if(!it(l))return;let u={};for(let d of o)u[d]=l[d];(zt(l.properties)&&l.properties||[r]).forEach((d)=>{if(d===r||!s.has(d))s.set(d,u)})})}_animateOptions(a,o){let s=o.options,r=JO(a,s);if(!r)return[];let l=this._createAnimations(r,s);if(s.$shared)KO(a.options.$animations,s).then(()=>{a.options=s},()=>{});return l}_createAnimations(a,o){let s=this._properties,r=[],l=a.$animations||(a.$animations={}),u=Object.keys(o),d=Date.now(),p;for(p=u.length-1;p>=0;--p){let h=u[p];if(h.charAt(0)==="$")continue;if(h==="options"){r.push(...this._animateOptions(a,o));continue}let g=o[h],y=l[h],b=s.get(h);if(y)if(b&&y.active()){y.update(b,g,d);continue}else y.cancel();if(!b||!b.duration){a[h]=g;continue}l[h]=y=new VM(b,a,h,g),r.push(y)}return r}update(a,o){if(this._properties.size===0){Object.assign(a,o);return}let s=this._createAnimations(a,o);if(s.length)return Vs.add(this._chart,s),!0}}function KO(a,o){let s=[],r=Object.keys(o);for(let l=0;l<r.length;l++){let u=a[r[l]];if(u&&u.active())s.push(u.wait())}return Promise.all(s)}function JO(a,o){if(!o)return;let s=a.options;if(!s){a.options=o;return}if(s.$shared)a.options=s=Object.assign({},s,{$shared:!1,$animations:{}});return s}function Yk(a,o){let s=a&&a.options||{},r=s.reverse,l=s.min===void 0?o:0,u=s.max===void 0?o:0;return{start:r?u:l,end:r?l:u}}function eP(a,o,s){if(s===!1)return!1;let r=Yk(a,s),l=Yk(o,s);return{top:l.end,right:r.end,bottom:l.start,left:r.start}}function tP(a){let o,s,r,l;if(it(a))o=a.top,s=a.right,r=a.bottom,l=a.left;else o=s=r=l=a;return{top:o,right:s,bottom:r,left:l,disabled:a===!1}}function jM(a,o){let s=[],r=a._getSortedDatasetMetas(o),l,u;for(l=0,u=r.length;l<u;++l)s.push(r[l].index);return s}function $k(a,o,s,r={}){let l=a.keys,u=r.mode==="single",d,p,h,g;if(o===null)return;let y=!1;for(d=0,p=l.length;d<p;++d){if(h=+l[d],h===s){if(y=!0,r.all)continue;break}if(g=a.values[h],Kt(g)&&(u||o===0||Ln(o)===Ln(g)))o+=g}if(!y&&!r.all)return 0;return o}function aP(a,o){let{iScale:s,vScale:r}=o,l=s.axis==="x"?"x":"y",u=r.axis==="x"?"x":"y",d=Object.keys(a),p=Array(d.length),h,g,y;for(h=0,g=d.length;h<g;++h)y=d[h],p[h]={[l]:y,[u]:a[y]};return p}function cv(a,o){let s=a&&a.options.stacked;return s||s===void 0&&o.stack!==void 0}function oP(a,o,s){return`${a.id}.${o.id}.${s.stack||s.type}`}function nP(a){let{min:o,max:s,minDefined:r,maxDefined:l}=a.getUserBounds();return{min:r?o:Number.NEGATIVE_INFINITY,max:l?s:Number.POSITIVE_INFINITY}}function sP(a,o,s){let r=a[o]||(a[o]={});return r[s]||(r[s]={})}function Wk(a,o,s,r){for(let l of o.getMatchingVisibleMetas(r).reverse()){let u=a[l.index];if(s&&u>0||!s&&u<0)return l.index}return null}function Zk(a,o){let{chart:s,_cachedMeta:r}=a,l=s._stacks||(s._stacks={}),{iScale:u,vScale:d,index:p}=r,h=u.axis,g=d.axis,y=oP(u,d,r),b=o.length,v;for(let T=0;T<b;++T){let M=o[T],{[h]:I,[g]:w}=M,A=M._stacks||(M._stacks={});v=A[g]=sP(l,y,I),v[p]=w,v._top=Wk(v,d,!0,r.type),v._bottom=Wk(v,d,!1,r.type);let B=v._visualValues||(v._visualValues={});B[p]=w}}function dv(a,o){let s=a.scales;return Object.keys(s).filter((r)=>s[r].axis===o).shift()}function rP(a,o){return qs(a,{active:!1,dataset:void 0,datasetIndex:o,index:o,mode:"default",type:"dataset"})}function iP(a,o,s){return qs(a,{active:!1,dataIndex:o,parsed:void 0,raw:void 0,element:s,index:o,mode:"default",type:"data"})}function Ud(a,o){let s=a.controller.index,r=a.vScale&&a.vScale.axis;if(!r)return;o=o||a._parsed;for(let l of o){let u=l._stacks;if(!u||u[r]===void 0||u[r][s]===void 0)return;if(delete u[r][s],u[r]._visualValues!==void 0&&u[r]._visualValues[s]!==void 0)delete u[r]._visualValues[s]}}var fv=(a)=>a==="reset"||a==="none",Qk=(a,o)=>o?a:Object.assign({},a),lP=(a,o,s)=>a&&!o.hidden&&o._stacked&&{keys:jM(s,!0),values:null};class Lm{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(a,o){this.chart=a,this._ctx=a.ctx,this.index=o,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let a=this._cachedMeta;if(this.configure(),this.linkScales(),a._stacked=cv(a.vScale,a),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler"))console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(a){if(this.index!==a)Ud(this._cachedMeta);this.index=a}linkScales(){let a=this.chart,o=this._cachedMeta,s=this.getDataset(),r=(y,b,v,T)=>y==="x"?b:y==="r"?T:v,l=o.xAxisID=Ke(s.xAxisID,dv(a,"x")),u=o.yAxisID=Ke(s.yAxisID,dv(a,"y")),d=o.rAxisID=Ke(s.rAxisID,dv(a,"r")),p=o.indexAxis,h=o.iAxisID=r(p,l,u,d),g=o.vAxisID=r(p,u,l,d);o.xScale=this.getScaleForId(l),o.yScale=this.getScaleForId(u),o.rScale=this.getScaleForId(d),o.iScale=this.getScaleForId(h),o.vScale=this.getScaleForId(g)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(a){return this.chart.scales[a]}_getOtherScale(a){let o=this._cachedMeta;return a===o.iScale?o.vScale:o.iScale}reset(){this._update("reset")}_destroy(){let a=this._cachedMeta;if(this._data)jx(this._data,this);if(a._stacked)Ud(a)}_dataCheck(){let a=this.getDataset(),o=a.data||(a.data=[]),s=this._data;if(it(o)){let r=this._cachedMeta;this._data=aP(o,r)}else if(s!==o){if(s){jx(s,this);let r=this._cachedMeta;Ud(r),r._parsed=[]}if(o&&Object.isExtensible(o))Tk(o,this);this._syncList=[],this._data=o}}addElements(){let a=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)a.dataset=new this.datasetElementType}buildOrUpdateElements(a){let o=this._cachedMeta,s=this.getDataset(),r=!1;this._dataCheck();let l=o._stacked;if(o._stacked=cv(o.vScale,o),o.stack!==s.stack)r=!0,Ud(o),o.stack=s.stack;if(this._resyncElements(a),r||l!==o._stacked)Zk(this,o._parsed),o._stacked=cv(o.vScale,o)}configure(){let a=this.chart.config,o=a.datasetScopeKeys(this._type),s=a.getOptionScopes(this.getDataset(),o,!0);this.options=a.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(a,o){let{_cachedMeta:s,_data:r}=this,{iScale:l,_stacked:u}=s,d=l.axis,p=a===0&&o===r.length?!0:s._sorted,h=a>0&&s._parsed[a-1],g,y,b;if(this._parsing===!1)s._parsed=r,s._sorted=!0,b=r;else{if(zt(r[a]))b=this.parseArrayData(s,r,a,o);else if(it(r[a]))b=this.parseObjectData(s,r,a,o);else b=this.parsePrimitiveData(s,r,a,o);let v=()=>y[d]===null||h&&y[d]<h[d];for(g=0;g<o;++g)if(s._parsed[g+a]=y=b[g],p){if(v())p=!1;h=y}s._sorted=p}if(u)Zk(this,b)}parsePrimitiveData(a,o,s,r){let{iScale:l,vScale:u}=a,d=l.axis,p=u.axis,h=l.getLabels(),g=l===u,y=Array(r),b,v,T;for(b=0,v=r;b<v;++b)T=b+s,y[b]={[d]:g||l.parse(h[T],T),[p]:u.parse(o[T],T)};return y}parseArrayData(a,o,s,r){let{xScale:l,yScale:u}=a,d=Array(r),p,h,g,y;for(p=0,h=r;p<h;++p)g=p+s,y=o[g],d[p]={x:l.parse(y[0],g),y:u.parse(y[1],g)};return d}parseObjectData(a,o,s,r){let{xScale:l,yScale:u}=a,{xAxisKey:d="x",yAxisKey:p="y"}=this._parsing,h=Array(r),g,y,b,v;for(g=0,y=r;g<y;++g)b=g+s,v=o[b],h[g]={x:l.parse(rl(v,d),b),y:u.parse(rl(v,p),b)};return h}getParsed(a){return this._cachedMeta._parsed[a]}getDataElement(a){return this._cachedMeta.data[a]}applyStack(a,o,s){let r=this.chart,l=this._cachedMeta,u=o[a.axis],d={keys:jM(r,!0),values:o._stacks[a.axis]._visualValues};return $k(d,u,l.index,{mode:s})}updateRangeFromParsed(a,o,s,r){let l=s[o.axis],u=l===null?NaN:l,d=r&&s._stacks[o.axis];if(r&&d)r.values=d,u=$k(r,l,this._cachedMeta.index);a.min=Math.min(a.min,u),a.max=Math.max(a.max,u)}getMinMax(a,o){let s=this._cachedMeta,r=s._parsed,l=s._sorted&&a===s.iScale,u=r.length,d=this._getOtherScale(a),p=lP(o,s,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:g,max:y}=nP(d),b,v;function T(){v=r[b];let M=v[d.axis];return!Kt(v[a.axis])||g>M||y<M}for(b=0;b<u;++b){if(T())continue;if(this.updateRangeFromParsed(h,a,v,p),l)break}if(l)for(b=u-1;b>=0;--b){if(T())continue;this.updateRangeFromParsed(h,a,v,p);break}return h}getAllParsedValues(a){let o=this._cachedMeta._parsed,s=[],r,l,u;for(r=0,l=o.length;r<l;++r)if(u=o[r][a.axis],Kt(u))s.push(u);return s}getMaxOverflow(){return!1}getLabelAndValue(a){let o=this._cachedMeta,{iScale:s,vScale:r}=o,l=this.getParsed(a);return{label:s?""+s.getLabelForValue(l[s.axis]):"",value:r?""+r.getLabelForValue(l[r.axis]):""}}_update(a){let o=this._cachedMeta;this.update(a||"default"),o._clip=tP(Ke(this.options.clip,eP(o.xScale,o.yScale,this.getMaxOverflow())))}update(a){}draw(){let a=this._ctx,o=this.chart,s=this._cachedMeta,r=s.data||[],l=o.chartArea,u=[],d=this._drawStart||0,p=this._drawCount||r.length-d,h=this.options.drawActiveElementsOnTop,g;if(s.dataset)s.dataset.draw(a,l,d,p);for(g=d;g<d+p;++g){let y=r[g];if(y.hidden)continue;if(y.active&&h)u.push(y);else y.draw(a,l)}for(g=0;g<u.length;++g)u[g].draw(a,l)}getStyle(a,o){let s=o?"active":"default";return a===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(a||0,s)}getContext(a,o,s){let r=this.getDataset(),l;if(a>=0&&a<this._cachedMeta.data.length){let u=this._cachedMeta.data[a];l=u.$context||(u.$context=iP(this.getContext(),a,u)),l.parsed=this.getParsed(a),l.raw=r.data[a],l.index=l.dataIndex=a}else l=this.$context||(this.$context=rP(this.chart.getContext(),this.index)),l.dataset=r,l.index=l.datasetIndex=this.index;return l.active=!!o,l.mode=s,l}resolveDatasetElementOptions(a){return this._resolveElementOptions(this.datasetElementType.id,a)}resolveDataElementOptions(a,o){return this._resolveElementOptions(this.dataElementType.id,o,a)}_resolveElementOptions(a,o="default",s){let r=o==="active",l=this._cachedDataOpts,u=a+"-"+o,d=l[u],p=this.enableOptionSharing&&Pu(s);if(d)return Qk(d,p);let h=this.chart.config,g=h.datasetElementScopeKeys(this._type,a),y=r?[`${a}Hover`,"hover",a,""]:[a,""],b=h.getOptionScopes(this.getDataset(),g),v=Object.keys(Jt.elements[a]),T=()=>this.getContext(s,r,o),M=h.resolveNamedOptions(b,v,T,y);if(M.$shared)M.$shared=p,l[u]=Object.freeze(Qk(M,p));return M}_resolveAnimations(a,o,s){let r=this.chart,l=this._cachedDataOpts,u=`animation-${o}`,d=l[u];if(d)return d;let p;if(r.options.animation!==!1){let g=this.chart.config,y=g.datasetAnimationScopeKeys(this._type,o),b=g.getOptionScopes(this.getDataset(),y);p=g.createResolver(b,this.getContext(a,s,o))}let h=new Av(r,p&&p.animations);if(p&&p._cacheable)l[u]=Object.freeze(h);return h}getSharedOptions(a){if(!a.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},a))}includeOptions(a,o){return!o||fv(a)||this.chart._animationsDisabled}_getSharedOptions(a,o){let s=this.resolveDataElementOptions(a,o),r=this._sharedOptions,l=this.getSharedOptions(s),u=this.includeOptions(o,l)||l!==r;return this.updateSharedOptions(l,o,s),{sharedOptions:l,includeOptions:u}}updateElement(a,o,s,r){if(fv(r))Object.assign(a,s);else this._resolveAnimations(o,r).update(a,s)}updateSharedOptions(a,o,s){if(a&&!fv(o))this._resolveAnimations(void 0,o).update(a,s)}_setStyle(a,o,s,r){a.active=r;let l=this.getStyle(o,r);this._resolveAnimations(o,s,r).update(a,{options:!r&&this.getSharedOptions(l)||l})}removeHoverStyle(a,o,s){this._setStyle(a,s,"active",!1)}setHoverStyle(a,o,s){this._setStyle(a,s,"active",!0)}_removeDatasetHoverStyle(){let a=this._cachedMeta.dataset;if(a)this._setStyle(a,void 0,"active",!1)}_setDatasetHoverStyle(){let a=this._cachedMeta.dataset;if(a)this._setStyle(a,void 0,"active",!0)}_resyncElements(a){let o=this._data,s=this._cachedMeta.data;for(let[d,p,h]of this._syncList)this[d](p,h);this._syncList=[];let r=s.length,l=o.length,u=Math.min(l,r);if(u)this.parse(0,u);if(l>r)this._insertElements(r,l-r,a);else if(l<r)this._removeElements(l,r-l)}_insertElements(a,o,s=!0){let r=this._cachedMeta,l=r.data,u=a+o,d,p=(h)=>{h.length+=o;for(d=h.length-1;d>=u;d--)h[d]=h[d-o]};p(l);for(d=a;d<u;++d)l[d]=new this.dataElementType;if(this._parsing)p(r._parsed);if(this.parse(a,o),s)this.updateElements(l,a,o,"reset")}updateElements(a,o,s,r){}_removeElements(a,o){let s=this._cachedMeta;if(this._parsing){let r=s._parsed.splice(a,o);if(s._stacked)Ud(s,r)}s.data.splice(a,o)}_sync(a){if(this._parsing)this._syncList.push(a);else{let[o,s,r]=a;this[o](s,r)}this.chart._dataChanges.push([this.index,...a])}_onDataPush(){let a=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-a,a])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(a,o){if(o)this._sync(["_removeElements",a,o]);let s=arguments.length-2;if(s)this._sync(["_insertElements",a,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function uP(a,o){if(!a._cache.$bar){let s=a.getMatchingVisibleMetas(o),r=[];for(let l=0,u=s.length;l<u;l++)r=r.concat(s[l].controller.getAllParsedValues(a));a._cache.$bar=Gx(r.sort((l,u)=>l-u))}return a._cache.$bar}function cP(a){let o=a.iScale,s=uP(o,a.type),r=o._length,l,u,d,p,h=()=>{if(d===32767||d===-32768)return;if(Pu(p))r=Math.min(r,Math.abs(d-p)||r);p=d};for(l=0,u=s.length;l<u;++l)d=o.getPixelForValue(s[l]),h();p=void 0;for(l=0,u=o.ticks.length;l<u;++l)d=o.getPixelForTick(l),h();return r}function dP(a,o,s,r){let l=s.barThickness,u,d;if(ht(l))u=o.min*s.categoryPercentage,d=s.barPercentage;else u=l*r,d=1;return{chunk:u/r,ratio:d,start:o.pixels[a]-u/2}}function fP(a,o,s,r){let l=o.pixels,u=l[a],d=a>0?l[a-1]:null,p=a<l.length-1?l[a+1]:null,h=s.categoryPercentage;if(d===null)d=u-(p===null?o.end-o.start:p-u);if(p===null)p=u+u-d;let g=u-(u-Math.min(d,p))/2*h;return{chunk:Math.abs(p-d)/2*h/r,ratio:s.barPercentage,start:g}}function pP(a,o,s,r){let l=s.parse(a[0],r),u=s.parse(a[1],r),d=Math.min(l,u),p=Math.max(l,u),h=d,g=p;if(Math.abs(d)>Math.abs(p))h=p,g=d;o[s.axis]=g,o._custom={barStart:h,barEnd:g,start:l,end:u,min:d,max:p}}function GM(a,o,s,r){if(zt(a))pP(a,o,s,r);else o[s.axis]=s.parse(a,r);return o}function Kk(a,o,s,r){let{iScale:l,vScale:u}=a,d=l.getLabels(),p=l===u,h=[],g,y,b,v;for(g=s,y=s+r;g<y;++g)v=o[g],b={},b[l.axis]=p||l.parse(d[g],g),h.push(GM(v,b,u,g));return h}function pv(a){return a&&a.barStart!==void 0&&a.barEnd!==void 0}function hP(a,o,s){if(a!==0)return Ln(a);return(o.isHorizontal()?1:-1)*(o.min>=s?1:-1)}function mP(a){let o,s,r,l,u;if(a.horizontal)o=a.base>a.x,s="left",r="right";else o=a.base<a.y,s="bottom",r="top";if(o)l="end",u="start";else l="start",u="end";return{start:s,end:r,reverse:o,top:l,bottom:u}}function gP(a,o,s,r){let l=o.borderSkipped,u={};if(!l){a.borderSkipped=u;return}if(l===!0){a.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:d,end:p,reverse:h,top:g,bottom:y}=mP(a);if(l==="middle"&&s)if(a.enableBorderRadius=!0,(s._top||0)===r)l=g;else if((s._bottom||0)===r)l=y;else u[Jk(y,d,p,h)]=!0,l=g;u[Jk(l,d,p,h)]=!0,a.borderSkipped=u}function Jk(a,o,s,r){if(r)a=bP(a,o,s),a=eM(a,s,o);else a=eM(a,o,s);return a}function bP(a,o,s){return a===o?s:a===s?o:a}function eM(a,o,s){return a==="start"?o:a==="end"?s:a}function yP(a,{inflateAmount:o},s){a.inflateAmount=o==="auto"?s===1?0.33:0:o}class Rv extends Lm{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:0.8,barPercentage:0.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(a,o,s,r){return Kk(a,o,s,r)}parseArrayData(a,o,s,r){return Kk(a,o,s,r)}parseObjectData(a,o,s,r){let{iScale:l,vScale:u}=a,{xAxisKey:d="x",yAxisKey:p="y"}=this._parsing,h=l.axis==="x"?d:p,g=u.axis==="x"?d:p,y=[],b,v,T,M;for(b=s,v=s+r;b<v;++b)M=o[b],T={},T[l.axis]=l.parse(rl(M,h),b),y.push(GM(rl(M,g),T,u,b));return y}updateRangeFromParsed(a,o,s,r){super.updateRangeFromParsed(a,o,s,r);let l=s._custom;if(l&&o===this._cachedMeta.vScale)a.min=Math.min(a.min,l.min),a.max=Math.max(a.max,l.max)}getMaxOverflow(){return 0}getLabelAndValue(a){let o=this._cachedMeta,{iScale:s,vScale:r}=o,l=this.getParsed(a),u=l._custom,d=pv(u)?"["+u.start+", "+u.end+"]":""+r.getLabelForValue(l[r.axis]);return{label:""+s.getLabelForValue(l[s.axis]),value:d}}initialize(){this.enableOptionSharing=!0,super.initialize();let a=this._cachedMeta;a.stack=this.getDataset().stack}update(a){let o=this._cachedMeta;this.updateElements(o.data,0,o.data.length,a)}updateElements(a,o,s,r){let l=r==="reset",{index:u,_cachedMeta:{vScale:d}}=this,p=d.getBasePixel(),h=d.isHorizontal(),g=this._getRuler(),{sharedOptions:y,includeOptions:b}=this._getSharedOptions(o,r);for(let v=o;v<o+s;v++){let T=this.getParsed(v),M=l||ht(T[d.axis])?{base:p,head:p}:this._calculateBarValuePixels(v),I=this._calculateBarIndexPixels(v,g),w=(T._stacks||{})[d.axis],A={horizontal:h,base:M.base,enableBorderRadius:!w||pv(T._custom)||u===w._top||u===w._bottom,x:h?M.head:I.center,y:h?I.center:M.head,height:h?I.size:Math.abs(M.size),width:h?Math.abs(M.size):I.size};if(b)A.options=y||this.resolveDataElementOptions(v,a[v].active?"active":r);let B=A.options||a[v].options;gP(A,B,w,u),yP(A,B,g.ratio),this.updateElement(a[v],v,A,r)}}_getStacks(a,o){let{iScale:s}=this._cachedMeta,r=s.getMatchingVisibleMetas(this._type).filter((g)=>g.controller.options.grouped),l=s.options.stacked,u=[],d=this._cachedMeta.controller.getParsed(o),p=d&&d[s.axis],h=(g)=>{let y=g._parsed.find((v)=>v[s.axis]===p),b=y&&y[g.vScale.axis];if(ht(b)||isNaN(b))return!0};for(let g of r){if(o!==void 0&&h(g))continue;if(l===!1||u.indexOf(g.stack)===-1||l===void 0&&g.stack===void 0)u.push(g.stack);if(g.index===a)break}if(!u.length)u.push(void 0);return u}_getStackCount(a){return this._getStacks(void 0,a).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let a=this.chart.scales,o=this.chart.options.indexAxis;return Object.keys(a).filter((s)=>a[s].axis===o).shift()}_getAxis(){let a={},o=this.getFirstScaleIdForIndexAxis();for(let s of this.chart.data.datasets)a[Ke(this.chart.options.indexAxis==="x"?s.xAxisID:s.yAxisID,o)]=!0;return Object.keys(a)}_getStackIndex(a,o,s){let r=this._getStacks(a,s),l=o!==void 0?r.indexOf(o):-1;return l===-1?r.length-1:l}_getRuler(){let a=this.options,o=this._cachedMeta,s=o.iScale,r=[],l,u;for(l=0,u=o.data.length;l<u;++l)r.push(s.getPixelForValue(this.getParsed(l)[s.axis],l));let d=a.barThickness;return{min:d||cP(o),pixels:r,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:a.grouped,ratio:d?1:a.categoryPercentage*a.barPercentage}}_calculateBarValuePixels(a){let{_cachedMeta:{vScale:o,_stacked:s,index:r},options:{base:l,minBarLength:u}}=this,d=l||0,p=this.getParsed(a),h=p._custom,g=pv(h),y=p[o.axis],b=0,v=s?this.applyStack(o,p,s):y,T,M;if(v!==y)b=v-y,v=y;if(g){if(y=h.barStart,v=h.barEnd-h.barStart,y!==0&&Ln(y)!==Ln(h.barEnd))b=0;b+=y}let I=!ht(l)&&!g?l:b,w=o.getPixelForValue(I);if(this.chart.getDataVisibility(a))T=o.getPixelForValue(b+v);else T=w;if(M=T-w,Math.abs(M)<u){if(M=hP(M,o,d)*u,y===d)w-=M/2;let A=o.getPixelForDecimal(0),B=o.getPixelForDecimal(1),z=Math.min(A,B),H=Math.max(A,B);if(w=Math.max(Math.min(w,H),z),T=w+M,s&&!g)p._stacks[o.axis]._visualValues[r]=o.getValueForPixel(T)-o.getValueForPixel(w)}if(w===o.getPixelForValue(d)){let A=Ln(M)*o.getLineWidthForValue(d)/2;w+=A,M-=A}return{size:M,base:w,head:T,center:T+M/2}}_calculateBarIndexPixels(a,o){let s=o.scale,r=this.options,l=r.skipNull,u=Ke(r.maxBarThickness,1/0),d,p,h=this._getAxisCount();if(o.grouped){let g=l?this._getStackCount(a):o.stackCount,y=r.barThickness==="flex"?fP(a,o,r,g*h):dP(a,o,r,g*h),b=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,v=this._getAxis().indexOf(Ke(b,this.getFirstScaleIdForIndexAxis())),T=this._getStackIndex(this.index,this._cachedMeta.stack,l?a:void 0)+v;d=y.start+y.chunk*T+y.chunk/2,p=Math.min(u,y.chunk*y.ratio)}else d=s.getPixelForValue(this.getParsed(a)[s.axis],a),p=Math.min(u,o.min*o.ratio);return{base:d-p/2,head:d+p/2,center:d,size:p}}draw(){let a=this._cachedMeta,{vScale:o,data:s}=a,r=s.length,l=0;for(;l<r;++l)if(this.getParsed(l)[o.axis]!==null&&!s[l].hidden)s[l].draw(this._ctx)}}class Dv extends Lm{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(a){let o=this._cachedMeta,{dataset:s,data:r=[],_dataset:l}=o,u=this.chart._animationsDisabled,{start:d,count:p}=Mk(o,r,u);if(this._drawStart=d,this._drawCount=p,Ik(o))d=0,p=r.length;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!l._decimated,s.points=r;let h=this.resolveDatasetElementOptions(a);if(!this.options.showLine)h.borderWidth=0;h.segment=this.options.segment,this.updateElement(s,void 0,{animated:!u,options:h},a),this.updateElements(r,d,p,a)}updateElements(a,o,s,r){let l=r==="reset",{iScale:u,vScale:d,_stacked:p,_dataset:h}=this._cachedMeta,{sharedOptions:g,includeOptions:y}=this._getSharedOptions(o,r),b=u.axis,v=d.axis,{spanGaps:T,segment:M}=this.options,I=Nu(T)?T:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||l||r==="none",A=o+s,B=a.length,z=o>0&&this.getParsed(o-1);for(let H=0;H<B;++H){let q=a[H],j=w?q:{};if(H<o||H>=A){j.skip=!0;continue}let G=this.getParsed(H),Y=ht(G[v]),J=j[b]=u.getPixelForValue(G[b],H),X=j[v]=l||Y?d.getBasePixel():d.getPixelForValue(p?this.applyStack(d,G,p):G[v],H);if(j.skip=isNaN(J)||isNaN(X)||Y,j.stop=H>0&&Math.abs(G[b]-z[b])>I,M)j.parsed=G,j.raw=h.data[H];if(y)j.options=g||this.resolveDataElementOptions(H,q.active?"active":r);if(!w)this.updateElement(q,H,j,r);z=G}}getMaxOverflow(){let a=this._cachedMeta,o=a.dataset,s=o.options&&o.options.borderWidth||0,r=a.data||[];if(!r.length)return s;let l=r[0].size(this.resolveDataElementOptions(0)),u=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(s,l,u)/2}draw(){let a=this._cachedMeta;a.dataset.updateControlPoints(this.chart.chartArea,a.iScale.axis),super.draw()}}function ll(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class _v{static override(a){Object.assign(_v.prototype,a)}options;constructor(a){this.options=a||{}}init(){}formats(){return ll()}parse(){return ll()}format(){return ll()}add(){return ll()}diff(){return ll()}startOf(){return ll()}endOf(){return ll()}}var xP={_date:_v};function vP(a,o,s,r){let{controller:l,data:u,_sorted:d}=a,p=l._cachedMeta.iScale,h=a.dataset?a.dataset.options?a.dataset.options.spanGaps:null:null;if(p&&o===p.axis&&o!=="r"&&d&&u.length){let g=p._reversePixels?Sk:Wr;if(!r){let y=g(u,o,s);if(h){let{vScale:b}=l._cachedMeta,{_parsed:v}=a,T=v.slice(0,y.lo+1).reverse().findIndex((I)=>!ht(I[b.axis]));y.lo-=Math.max(0,T);let M=v.slice(y.hi).findIndex((I)=>!ht(I[b.axis]));y.hi+=Math.max(0,M)}return y}else if(l._sharedOptions){let y=u[0],b=typeof y.getRange==="function"&&y.getRange(o);if(b){let v=g(u,o,s-b),T=g(u,o,s+b);return{lo:v.lo,hi:T.hi}}}}return{lo:0,hi:u.length-1}}function Qd(a,o,s,r,l){let u=a.getSortedVisibleDatasetMetas(),d=s[o];for(let p=0,h=u.length;p<h;++p){let{index:g,data:y}=u[p],{lo:b,hi:v}=vP(u[p],o,d,l);for(let T=b;T<=v;++T){let M=y[T];if(!M.skip)r(M,g,T)}}}function SP(a){let o=a.indexOf("x")!==-1,s=a.indexOf("y")!==-1;return function(r,l){let u=o?Math.abs(r.x-l.x):0,d=s?Math.abs(r.y-l.y):0;return Math.sqrt(Math.pow(u,2)+Math.pow(d,2))}}function hv(a,o,s,r,l){let u=[];if(!l&&!a.isPointInArea(o))return u;return Qd(a,s,o,function(p,h,g){if(!l&&!as(p,a.chartArea,0))return;if(p.inRange(o.x,o.y,r))u.push({element:p,datasetIndex:h,index:g})},!0),u}function LP(a,o,s,r){let l=[];function u(d,p,h){let{startAngle:g,endAngle:y}=d.getProps(["startAngle","endAngle"],r),{angle:b}=xk(d,{x:o.x,y:o.y});if(Vx(b,g,y))l.push({element:d,datasetIndex:p,index:h})}return Qd(a,s,o,u),l}function CP(a,o,s,r,l,u){let d=[],p=SP(s),h=Number.POSITIVE_INFINITY;function g(y,b,v){let T=y.inRange(o.x,o.y,l);if(r&&!T)return;let M=y.getCenterPoint(l);if(!(!!u||a.isPointInArea(M))&&!T)return;let w=p(o,M);if(w<h)d=[{element:y,datasetIndex:b,index:v}],h=w;else if(w===h)d.push({element:y,datasetIndex:b,index:v})}return Qd(a,s,o,g),d}function mv(a,o,s,r,l,u){if(!u&&!a.isPointInArea(o))return[];return s==="r"&&!r?LP(a,o,s,l):CP(a,o,s,r,l,u)}function tM(a,o,s,r,l){let u=[],d=s==="x"?"inXRange":"inYRange",p=!1;if(Qd(a,s,o,(h,g,y)=>{if(h[d]&&h[d](o[s],l))u.push({element:h,datasetIndex:g,index:y}),p=p||h.inRange(o.x,o.y,l)}),r&&!p)return[];return u}var TP={evaluateInteractionItems:Qd,modes:{index(a,o,s,r){let l=ti(o,a),u=s.axis||"x",d=s.includeInvisible||!1,p=s.intersect?hv(a,l,u,r,d):mv(a,l,u,!1,r,d),h=[];if(!p.length)return[];return a.getSortedVisibleDatasetMetas().forEach((g)=>{let y=p[0].index,b=g.data[y];if(b&&!b.skip)h.push({element:b,datasetIndex:g.index,index:y})}),h},dataset(a,o,s,r){let l=ti(o,a),u=s.axis||"xy",d=s.includeInvisible||!1,p=s.intersect?hv(a,l,u,r,d):mv(a,l,u,!1,r,d);if(p.length>0){let h=p[0].datasetIndex,g=a.getDatasetMeta(h).data;p=[];for(let y=0;y<g.length;++y)p.push({element:g[y],datasetIndex:h,index:y})}return p},point(a,o,s,r){let l=ti(o,a),u=s.axis||"xy",d=s.includeInvisible||!1;return hv(a,l,u,r,d)},nearest(a,o,s,r){let l=ti(o,a),u=s.axis||"xy",d=s.includeInvisible||!1;return mv(a,l,u,s.intersect,r,d)},x(a,o,s,r){let l=ti(o,a);return tM(a,l,"x",s.intersect,r)},y(a,o,s,r){let l=ti(o,a);return tM(a,l,"y",s.intersect,r)}}},XM=["left","top","right","bottom"];function Fd(a,o){return a.filter((s)=>s.pos===o)}function aM(a,o){return a.filter((s)=>XM.indexOf(s.pos)===-1&&s.box.axis===o)}function qd(a,o){return a.sort((s,r)=>{let l=o?r:s,u=o?s:r;return l.weight===u.weight?l.index-u.index:l.weight-u.weight})}function wP(a){let o=[],s,r,l,u,d,p;for(s=0,r=(a||[]).length;s<r;++s)l=a[s],{position:u,options:{stack:d,stackWeight:p=1}}=l,o.push({index:s,box:l,pos:u,horizontal:l.isHorizontal(),weight:l.weight,stack:d&&u+d,stackWeight:p});return o}function kP(a){let o={};for(let s of a){let{stack:r,pos:l,stackWeight:u}=s;if(!r||!XM.includes(l))continue;let d=o[r]||(o[r]={count:0,placed:0,weight:0,size:0});d.count++,d.weight+=u}return o}function MP(a,o){let s=kP(a),{vBoxMaxWidth:r,hBoxMaxHeight:l}=o,u,d,p;for(u=0,d=a.length;u<d;++u){p=a[u];let{fullSize:h}=p.box,g=s[p.stack],y=g&&p.stackWeight/g.weight;if(p.horizontal)p.width=y?y*r:h&&o.availableWidth,p.height=l;else p.width=r,p.height=y?y*l:h&&o.availableHeight}return s}function IP(a){let o=wP(a),s=qd(o.filter((g)=>g.box.fullSize),!0),r=qd(Fd(o,"left"),!0),l=qd(Fd(o,"right")),u=qd(Fd(o,"top"),!0),d=qd(Fd(o,"bottom")),p=aM(o,"x"),h=aM(o,"y");return{fullSize:s,leftAndTop:r.concat(u),rightAndBottom:l.concat(h).concat(d).concat(p),chartArea:Fd(o,"chartArea"),vertical:r.concat(l).concat(h),horizontal:u.concat(d).concat(p)}}function oM(a,o,s,r){return Math.max(a[s],o[s])+Math.max(a[r],o[r])}function YM(a,o){a.top=Math.max(a.top,o.top),a.left=Math.max(a.left,o.left),a.bottom=Math.max(a.bottom,o.bottom),a.right=Math.max(a.right,o.right)}function AP(a,o,s,r){let{pos:l,box:u}=s,d=a.maxPadding;if(!it(l)){if(s.size)a[l]-=s.size;let b=r[s.stack]||{size:0,count:1};b.size=Math.max(b.size,s.horizontal?u.height:u.width),s.size=b.size/b.count,a[l]+=s.size}if(u.getPadding)YM(d,u.getPadding());let p=Math.max(0,o.outerWidth-oM(d,a,"left","right")),h=Math.max(0,o.outerHeight-oM(d,a,"top","bottom")),g=p!==a.w,y=h!==a.h;return a.w=p,a.h=h,s.horizontal?{same:g,other:y}:{same:y,other:g}}function RP(a){let o=a.maxPadding;function s(r){let l=Math.max(o[r]-a[r],0);return a[r]+=l,l}a.y+=s("top"),a.x+=s("left"),s("right"),s("bottom")}function DP(a,o){let s=o.maxPadding;function r(l){let u={left:0,top:0,right:0,bottom:0};return l.forEach((d)=>{u[d]=Math.max(o[d],s[d])}),u}return a?r(["left","right"]):r(["top","bottom"])}function Gd(a,o,s,r){let l=[],u,d,p,h,g,y;for(u=0,d=a.length,g=0;u<d;++u){p=a[u],h=p.box,h.update(p.width||o.w,p.height||o.h,DP(p.horizontal,o));let{same:b,other:v}=AP(o,s,p,r);if(g|=b&&l.length,y=y||v,!h.fullSize)l.push(p)}return g&&Gd(l,o,s,r)||y}function hm(a,o,s,r,l){a.top=s,a.left=o,a.right=o+r,a.bottom=s+l,a.width=r,a.height=l}function nM(a,o,s,r){let l=s.padding,{x:u,y:d}=o;for(let p of a){let h=p.box,g=r[p.stack]||{count:1,placed:0,weight:1},y=p.stackWeight/g.weight||1;if(p.horizontal){let b=o.w*y,v=g.size||h.height;if(Pu(g.start))d=g.start;if(h.fullSize)hm(h,l.left,d,s.outerWidth-l.right-l.left,v);else hm(h,o.left+g.placed,d,b,v);g.start=d,g.placed+=b,d=h.bottom}else{let b=o.h*y,v=g.size||h.width;if(Pu(g.start))u=g.start;if(h.fullSize)hm(h,u,l.top,v,s.outerHeight-l.bottom-l.top);else hm(h,u,o.top+g.placed,v,b);g.start=u,g.placed+=b,u=h.right}}o.x=u,o.y=d}var nn={addBox(a,o){if(!a.boxes)a.boxes=[];o.fullSize=o.fullSize||!1,o.position=o.position||"top",o.weight=o.weight||0,o._layers=o._layers||function(){return[{z:0,draw(s){o.draw(s)}}]},a.boxes.push(o)},removeBox(a,o){let s=a.boxes?a.boxes.indexOf(o):-1;if(s!==-1)a.boxes.splice(s,1)},configure(a,o,s){o.fullSize=s.fullSize,o.position=s.position,o.weight=s.weight},update(a,o,s,r){if(!a)return;let l=Na(a.options.layout.padding),u=Math.max(o-l.width,0),d=Math.max(s-l.height,0),p=IP(a.boxes),{vertical:h,horizontal:g}=p;Lt(a.boxes,(I)=>{if(typeof I.beforeLayout==="function")I.beforeLayout()});let y=h.reduce((I,w)=>w.box.options&&w.box.options.display===!1?I:I+1,0)||1,b=Object.freeze({outerWidth:o,outerHeight:s,padding:l,availableWidth:u,availableHeight:d,vBoxMaxWidth:u/2/y,hBoxMaxHeight:d/2}),v=Object.assign({},l);YM(v,Na(r));let T=Object.assign({maxPadding:v,w:u,h:d,x:l.left,y:l.top},l),M=MP(h.concat(g),b);if(Gd(p.fullSize,T,b,M),Gd(h,T,b,M),Gd(g,T,b,M))Gd(h,T,b,M);RP(T),nM(p.leftAndTop,T,b,M),T.x+=T.w,T.y+=T.h,nM(p.rightAndBottom,T,b,M),a.chartArea={left:T.left,top:T.top,right:T.left+T.w,bottom:T.top+T.h,height:T.h,width:T.w},Lt(p.chartArea,(I)=>{let w=I.box;Object.assign(w,a.chartArea),w.update(T.w,T.h,{left:0,top:0,right:0,bottom:0})})}};class Ev{acquireContext(a,o){}releaseContext(a){return!1}addEventListener(a,o,s){}removeEventListener(a,o,s){}getDevicePixelRatio(){return 1}getMaximumSize(a,o,s,r){return o=Math.max(0,o||a.width),s=s||a.height,{width:o,height:Math.max(0,r?Math.floor(o/r):s)}}isAttached(a){return!0}updateConfig(a){}}class $M extends Ev{acquireContext(a){return a&&a.getContext&&a.getContext("2d")||null}updateConfig(a){a.options.animation=!1}}var xm="$chartjs",_P={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},sM=(a)=>a===null||a==="";function EP(a,o){let s=a.style,r=a.getAttribute("height"),l=a.getAttribute("width");if(a[xm]={initial:{height:r,width:l,style:{display:s.display,height:s.height,width:s.width}}},s.display=s.display||"block",s.boxSizing=s.boxSizing||"border-box",sM(l)){let u=nv(a,"width");if(u!==void 0)a.width=u}if(sM(r))if(a.style.height==="")a.height=a.width/(o||2);else{let u=nv(a,"height");if(u!==void 0)a.height=u}return a}var WM=Fk?{passive:!0}:!1;function OP(a,o,s){if(a)a.addEventListener(o,s,WM)}function PP(a,o,s){if(a&&a.canvas)a.canvas.removeEventListener(o,s,WM)}function BP(a,o){let s=_P[a.type]||a.type,{x:r,y:l}=ti(a,o);return{type:s,chart:o,native:a,x:r!==void 0?r:null,y:l!==void 0?l:null}}function Sm(a,o){for(let s of a)if(s===o||s.contains(o))return!0}function NP(a,o,s){let r=a.canvas,l=new MutationObserver((u)=>{let d=!1;for(let p of u)d=d||Sm(p.addedNodes,r),d=d&&!Sm(p.removedNodes,r);if(d)s()});return l.observe(document,{childList:!0,subtree:!0}),l}function zP(a,o,s){let r=a.canvas,l=new MutationObserver((u)=>{let d=!1;for(let p of u)d=d||Sm(p.removedNodes,r),d=d&&!Sm(p.addedNodes,r);if(d)s()});return l.observe(document,{childList:!0,subtree:!0}),l}var $d=new Map,rM=0;function ZM(){let a=window.devicePixelRatio;if(a===rM)return;rM=a,$d.forEach((o,s)=>{if(s.currentDevicePixelRatio!==a)o()})}function HP(a,o){if(!$d.size)window.addEventListener("resize",ZM);$d.set(a,o)}function UP(a){if($d.delete(a),!$d.size)window.removeEventListener("resize",ZM)}function FP(a,o,s){let r=a.canvas,l=r&&fm(r);if(!l)return;let u=Yx((p,h)=>{let g=l.clientWidth;if(s(p,h),g<l.clientWidth)s()},window),d=new ResizeObserver((p)=>{let h=p[0],g=h.contentRect.width,y=h.contentRect.height;if(g===0&&y===0)return;u(g,y)});return d.observe(l),HP(a,u),d}function gv(a,o,s){if(s)s.disconnect();if(o==="resize")UP(a)}function qP(a,o,s){let r=a.canvas,l=Yx((u)=>{if(a.ctx!==null)s(BP(u,a))},a);return OP(r,o,l),l}class QM extends Ev{acquireContext(a,o){let s=a&&a.getContext&&a.getContext("2d");if(s&&s.canvas===a)return EP(a,o),s;return null}releaseContext(a){let o=a.canvas;if(!o[xm])return!1;let s=o[xm].initial;["height","width"].forEach((l)=>{let u=s[l];if(ht(u))o.removeAttribute(l);else o.setAttribute(l,u)});let r=s.style||{};return Object.keys(r).forEach((l)=>{o.style[l]=r[l]}),o.width=o.width,delete o[xm],!0}addEventListener(a,o,s){this.removeEventListener(a,o);let r=a.$proxies||(a.$proxies={}),u={attach:NP,detach:zP,resize:FP}[o]||qP;r[o]=u(a,o,s)}removeEventListener(a,o){let s=a.$proxies||(a.$proxies={}),r=s[o];if(!r)return;({attach:gv,detach:gv,resize:gv}[o]||PP)(a,o,r),s[o]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(a,o,s,r){return Uk(a,o,s,r)}isAttached(a){let o=a&&fm(a);return!!(o&&o.isConnected)}}function VP(a){if(!dm()||typeof OffscreenCanvas<"u"&&a instanceof OffscreenCanvas)return $M;return QM}class Gs{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(a){let{x:o,y:s}=this.getProps(["x","y"],a);return{x:o,y:s}}hasValue(){return Nu(this.x)&&Nu(this.y)}getProps(a,o){let s=this.$animations;if(!o||!s)return this;let r={};return a.forEach((l)=>{r[l]=s[l]&&s[l].active()?s[l]._to:this[l]}),r}}function jP(a,o){let s=a.options.ticks,r=GP(a),l=Math.min(s.maxTicksLimit||r,r),u=s.major.enabled?YP(o):[],d=u.length,p=u[0],h=u[d-1],g=[];if(d>l)return $P(o,g,u,d/l),g;let y=XP(u,o,l);if(d>0){let b,v,T=d>1?Math.round((h-p)/(d-1)):null;mm(o,g,y,ht(T)?0:p-T,p);for(b=0,v=d-1;b<v;b++)mm(o,g,y,u[b],u[b+1]);return mm(o,g,y,h,ht(T)?o.length:h+T),g}return mm(o,g,y),g}function GP(a){let o=a.options.offset,s=a._tickSize(),r=a._length/s+(o?0:1),l=a._maxLength/s;return Math.floor(Math.min(r,l))}function XP(a,o,s){let r=WP(a),l=o.length/s;if(!r)return Math.max(l,1);let u=bk(r);for(let d=0,p=u.length-1;d<p;d++){let h=u[d];if(h>l)return h}return Math.max(l,1)}function YP(a){let o=[],s,r;for(s=0,r=a.length;s<r;s++)if(a[s].major)o.push(s);return o}function $P(a,o,s,r){let l=0,u=s[0],d;r=Math.ceil(r);for(d=0;d<a.length;d++)if(d===u)o.push(a[d]),l++,u=s[l*r]}function mm(a,o,s,r,l){let u=Ke(r,0),d=Math.min(Ke(l,a.length),a.length),p=0,h,g,y;if(s=Math.ceil(s),l)h=l-r,s=h/Math.floor(h/s);y=u;while(y<0)p++,y=Math.round(u+p*s);for(g=Math.max(u,0);g<d;g++)if(g===y)o.push(a[g]),p++,y=Math.round(u+p*s)}function WP(a){let o=a.length,s,r;if(o<2)return!1;for(r=a[0],s=1;s<o;++s)if(a[s]-a[s-1]!==r)return!1;return r}var ZP=(a)=>a==="left"?"right":a==="right"?"left":a,iM=(a,o,s)=>o==="top"||o==="left"?a[o]+s:a[o]-s,lM=(a,o)=>Math.min(o||a,a);function uM(a,o){let s=[],r=a.length/o,l=a.length,u=0;for(;u<l;u+=r)s.push(a[Math.floor(u)]);return s}function QP(a,o,s){let r=a.ticks.length,l=Math.min(o,r-1),{_startPixel:u,_endPixel:d}=a,p=0.000001,h=a.getPixelForTick(l),g;if(s){if(r===1)g=Math.max(h-u,d-h);else if(o===0)g=(a.getPixelForTick(1)-h)/2;else g=(h-a.getPixelForTick(l-1))/2;if(h+=l<o?g:-g,h<u-0.000001||h>d+0.000001)return}return h}function KP(a,o){Lt(a,(s)=>{let r=s.gc,l=r.length/2,u;if(l>o){for(u=0;u<l;++u)delete s.data[r[u]];r.splice(0,l)}})}function Vd(a){return a.drawTicks?a.tickLength:0}function cM(a,o){if(!a.display)return 0;let s=ha(a.font,o),r=Na(a.padding);return(zt(a.text)?a.text.length:1)*s.lineHeight+r.height}function JP(a,o){return qs(a,{scale:o,type:"scale"})}function eB(a,o,s){return qs(a,{tick:s,index:o,type:"tick"})}function tB(a,o,s){let r=rm(a);if(s&&o!=="right"||!s&&o==="right")r=ZP(r);return r}function aB(a,o,s,r){let{top:l,left:u,bottom:d,right:p,chart:h}=a,{chartArea:g,scales:y}=h,b=0,v,T,M,I=d-l,w=p-u;if(a.isHorizontal()){if(T=Ba(r,u,p),it(s)){let A=Object.keys(s)[0],B=s[A];M=y[A].getPixelForValue(B)+I-o}else if(s==="center")M=(g.bottom+g.top)/2+I-o;else M=iM(a,s,o);v=p-u}else{if(it(s)){let A=Object.keys(s)[0],B=s[A];T=y[A].getPixelForValue(B)-w+o}else if(s==="center")T=(g.left+g.right)/2-w+o;else T=iM(a,s,o);M=Ba(r,d,l),b=s==="left"?-po:po}return{titleX:T,titleY:M,maxWidth:v,rotation:b}}class cl extends Gs{constructor(a){super();this.id=a.id,this.type=a.type,this.options=void 0,this.ctx=a.ctx,this.chart=a.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(a){this.options=a.setContext(this.getContext()),this.axis=a.axis,this._userMin=this.parse(a.min),this._userMax=this.parse(a.max),this._suggestedMin=this.parse(a.suggestedMin),this._suggestedMax=this.parse(a.suggestedMax)}parse(a,o){return a}getUserBounds(){let{_userMin:a,_userMax:o,_suggestedMin:s,_suggestedMax:r}=this;return a=go(a,Number.POSITIVE_INFINITY),o=go(o,Number.NEGATIVE_INFINITY),s=go(s,Number.POSITIVE_INFINITY),r=go(r,Number.NEGATIVE_INFINITY),{min:go(a,s),max:go(o,r),minDefined:Kt(a),maxDefined:Kt(o)}}getMinMax(a){let{min:o,max:s,minDefined:r,maxDefined:l}=this.getUserBounds(),u;if(r&&l)return{min:o,max:s};let d=this.getMatchingVisibleMetas();for(let p=0,h=d.length;p<h;++p){if(u=d[p].controller.getMinMax(this,a),!r)o=Math.min(o,u.min);if(!l)s=Math.max(s,u.max)}return o=l&&o>s?s:o,s=r&&o>s?o:s,{min:go(o,go(s,o)),max:go(s,go(o,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let a=this.chart.data;return this.options.labels||(this.isHorizontal()?a.xLabels:a.yLabels)||a.labels||[]}getLabelItems(a=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(a))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ot(this.options.beforeUpdate,[this])}update(a,o,s){let{beginAtZero:r,grace:l,ticks:u}=this.options,d=u.sampleSize;if(this.beforeUpdate(),this.maxWidth=a,this.maxHeight=o,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Ok(this,l,r),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let p=d<this.ticks.length;if(this._convertTicksToLabels(p?uM(this.ticks,d):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),u.display&&(u.autoSkip||u.source==="auto"))this.ticks=jP(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(p)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let a=this.options.reverse,o,s;if(this.isHorizontal())o=this.left,s=this.right;else o=this.top,s=this.bottom,a=!a;this._startPixel=o,this._endPixel=s,this._reversePixels=a,this._length=s-o,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ot(this.options.afterUpdate,[this])}beforeSetDimensions(){Ot(this.options.beforeSetDimensions,[this])}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=0,this.right=this.width;else this.height=this.maxHeight,this.top=0,this.bottom=this.height;this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ot(this.options.afterSetDimensions,[this])}_callHooks(a){this.chart.notifyPlugins(a,this.getContext()),Ot(this.options[a],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ot(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(a){let o=this.options.ticks,s,r,l;for(s=0,r=a.length;s<r;s++)l=a[s],l.label=Ot(o.callback,[l.value,s,a],this)}afterTickToLabelConversion(){Ot(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ot(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let a=this.options,o=a.ticks,s=lM(this.ticks.length,a.ticks.maxTicksLimit),r=o.minRotation||0,l=o.maxRotation,u=r,d,p,h;if(!this._isVisible()||!o.display||r>=l||s<=1||!this.isHorizontal()){this.labelRotation=r;return}let g=this._getLabelSizes(),y=g.widest.width,b=g.highest.height,v=mo(this.chart.width-y,0,this.maxWidth);if(d=a.offset?this.maxWidth/s:v/(s-1),y+6>d)d=v/(s-(a.offset?0.5:1)),p=this.maxHeight-Vd(a.grid)-o.padding-cM(a.title,this.chart.options.font),h=Math.sqrt(y*y+b*b),u=nm(Math.min(Math.asin(mo((g.highest.height+6)/d,-1,1)),Math.asin(mo(p/h,-1,1))-Math.asin(mo(b/h,-1,1)))),u=Math.max(r,Math.min(l,u));this.labelRotation=u}afterCalculateLabelRotation(){Ot(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ot(this.options.beforeFit,[this])}fit(){let a={width:0,height:0},{chart:o,options:{ticks:s,title:r,grid:l}}=this,u=this._isVisible(),d=this.isHorizontal();if(u){let p=cM(r,o.options.font);if(d)a.width=this.maxWidth,a.height=Vd(l)+p;else a.height=this.maxHeight,a.width=Vd(l)+p;if(s.display&&this.ticks.length){let{first:h,last:g,widest:y,highest:b}=this._getLabelSizes(),v=s.padding*2,T=Us(this.labelRotation),M=Math.cos(T),I=Math.sin(T);if(d){let w=s.mirror?0:I*y.width+M*b.height;a.height=Math.min(this.maxHeight,a.height+w+v)}else{let w=s.mirror?0:M*y.width+I*b.height;a.width=Math.min(this.maxWidth,a.width+w+v)}this._calculatePadding(h,g,I,M)}}if(this._handleMargins(),d)this.width=this._length=o.width-this._margins.left-this._margins.right,this.height=a.height;else this.width=a.width,this.height=this._length=o.height-this._margins.top-this._margins.bottom}_calculatePadding(a,o,s,r){let{ticks:{align:l,padding:u},position:d}=this.options,p=this.labelRotation!==0,h=d!=="top"&&this.axis==="x";if(this.isHorizontal()){let g=this.getPixelForTick(0)-this.left,y=this.right-this.getPixelForTick(this.ticks.length-1),b=0,v=0;if(p)if(h)b=r*a.width,v=s*o.height;else b=s*a.height,v=r*o.width;else if(l==="start")v=o.width;else if(l==="end")b=a.width;else if(l!=="inner")b=a.width/2,v=o.width/2;this.paddingLeft=Math.max((b-g+u)*this.width/(this.width-g),0),this.paddingRight=Math.max((v-y+u)*this.width/(this.width-y),0)}else{let g=o.height/2,y=a.height/2;if(l==="start")g=0,y=a.height;else if(l==="end")g=o.height,y=0;this.paddingTop=g+u,this.paddingBottom=y+u}}_handleMargins(){if(this._margins)this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom)}afterFit(){Ot(this.options.afterFit,[this])}isHorizontal(){let{axis:a,position:o}=this.options;return o==="top"||o==="bottom"||a==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(a){this.beforeTickToLabelConversion(),this.generateTickLabels(a);let o,s;for(o=0,s=a.length;o<s;o++)if(ht(a[o].label))a.splice(o,1),s--,o--;this.afterTickToLabelConversion()}_getLabelSizes(){let a=this._labelSizes;if(!a){let o=this.options.ticks.sampleSize,s=this.ticks;if(o<s.length)s=uM(s,o);this._labelSizes=a=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return a}_computeLabelSizes(a,o,s){let{ctx:r,_longestTextCache:l}=this,u=[],d=[],p=Math.floor(o/lM(o,s)),h=0,g=0,y,b,v,T,M,I,w,A,B,z,H;for(y=0;y<o;y+=p){if(T=a[y].label,M=this._resolveTickFontOptions(y),r.font=I=M.string,w=l[I]=l[I]||{data:{},gc:[]},A=M.lineHeight,B=z=0,!ht(T)&&!zt(T))B=Od(r,w.data,w.gc,B,T),z=A;else if(zt(T)){for(b=0,v=T.length;b<v;++b)if(H=T[b],!ht(H)&&!zt(H))B=Od(r,w.data,w.gc,B,H),z+=A}u.push(B),d.push(z),h=Math.max(B,h),g=Math.max(z,g)}KP(l,o);let q=u.indexOf(h),j=d.indexOf(g),G=(Y)=>({width:u[Y]||0,height:d[Y]||0});return{first:G(0),last:G(o-1),widest:G(q),highest:G(j),widths:u,heights:d}}getLabelForValue(a){return a}getPixelForValue(a,o){return NaN}getValueForPixel(a){}getPixelForTick(a){let o=this.ticks;if(a<0||a>o.length-1)return null;return this.getPixelForValue(o[a].value)}getPixelForDecimal(a){if(this._reversePixels)a=1-a;let o=this._startPixel+a*this._length;return vk(this._alignToPixels?Kr(this.chart,o,0):o)}getDecimalForPixel(a){let o=(a-this._startPixel)/this._length;return this._reversePixels?1-o:o}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:a,max:o}=this;return a<0&&o<0?o:a>0&&o>0?a:0}getContext(a){let o=this.ticks||[];if(a>=0&&a<o.length){let s=o[a];return s.$context||(s.$context=eB(this.getContext(),a,s))}return this.$context||(this.$context=JP(this.chart.getContext(),this))}_tickSize(){let a=this.options.ticks,o=Us(this.labelRotation),s=Math.abs(Math.cos(o)),r=Math.abs(Math.sin(o)),l=this._getLabelSizes(),u=a.autoSkipPadding||0,d=l?l.widest.width+u:0,p=l?l.highest.height+u:0;return this.isHorizontal()?p*s>d*r?d/s:p/r:p*r<d*s?p/s:d/r}_isVisible(){let a=this.options.display;if(a!=="auto")return!!a;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(a){let o=this.axis,s=this.chart,r=this.options,{grid:l,position:u,border:d}=r,p=l.offset,h=this.isHorizontal(),y=this.ticks.length+(p?1:0),b=Vd(l),v=[],T=d.setContext(this.getContext()),M=T.display?T.width:0,I=M/2,w=function(K){return Kr(s,K,M)},A,B,z,H,q,j,G,Y,J,X,se,ge;if(u==="top")A=w(this.bottom),j=this.bottom-b,Y=A-I,X=w(a.top)+I,ge=a.bottom;else if(u==="bottom")A=w(this.top),X=a.top,ge=w(a.bottom)-I,j=A+I,Y=this.top+b;else if(u==="left")A=w(this.right),q=this.right-b,G=A-I,J=w(a.left)+I,se=a.right;else if(u==="right")A=w(this.left),J=a.left,se=w(a.right)-I,q=A+I,G=this.left+b;else if(o==="x"){if(u==="center")A=w((a.top+a.bottom)/2+0.5);else if(it(u)){let K=Object.keys(u)[0],pe=u[K];A=w(this.chart.scales[K].getPixelForValue(pe))}X=a.top,ge=a.bottom,j=A+I,Y=j+b}else if(o==="y"){if(u==="center")A=w((a.left+a.right)/2);else if(it(u)){let K=Object.keys(u)[0],pe=u[K];A=w(this.chart.scales[K].getPixelForValue(pe))}q=A-I,G=q-b,J=a.left,se=a.right}let be=Ke(r.ticks.maxTicksLimit,y),Se=Math.max(1,Math.ceil(y/be));for(B=0;B<y;B+=Se){let K=this.getContext(B),pe=l.setContext(K),ye=d.setContext(K),{lineWidth:Ue,color:He}=pe,k=ye.dash||[],W=ye.dashOffset,{tickWidth:ee,tickColor:ne}=pe,te=pe.tickBorderDash||[],le=pe.tickBorderDashOffset;if(z=QP(this,B,p),z===void 0)continue;if(H=Kr(s,z,Ue),h)q=G=J=se=H;else j=Y=X=ge=H;v.push({tx1:q,ty1:j,tx2:G,ty2:Y,x1:J,y1:X,x2:se,y2:ge,width:Ue,color:He,borderDash:k,borderDashOffset:W,tickWidth:ee,tickColor:ne,tickBorderDash:te,tickBorderDashOffset:le})}return this._ticksLength=y,this._borderValue=A,v}_computeLabelItems(a){let o=this.axis,s=this.options,{position:r,ticks:l}=s,u=this.isHorizontal(),d=this.ticks,{align:p,crossAlign:h,padding:g,mirror:y}=l,b=Vd(s.grid),v=b+g,T=y?-g:v,M=-Us(this.labelRotation),I=[],w,A,B,z,H,q,j,G,Y,J,X,se,ge="middle";if(r==="top")q=this.bottom-T,j=this._getXAxisLabelAlignment();else if(r==="bottom")q=this.top+T,j=this._getXAxisLabelAlignment();else if(r==="left"){let Se=this._getYAxisLabelAlignment(b);j=Se.textAlign,H=Se.x}else if(r==="right"){let Se=this._getYAxisLabelAlignment(b);j=Se.textAlign,H=Se.x}else if(o==="x"){if(r==="center")q=(a.top+a.bottom)/2+v;else if(it(r)){let Se=Object.keys(r)[0],K=r[Se];q=this.chart.scales[Se].getPixelForValue(K)+v}j=this._getXAxisLabelAlignment()}else if(o==="y"){if(r==="center")H=(a.left+a.right)/2-v;else if(it(r)){let Se=Object.keys(r)[0],K=r[Se];H=this.chart.scales[Se].getPixelForValue(K)}j=this._getYAxisLabelAlignment(b).textAlign}if(o==="y"){if(p==="start")ge="top";else if(p==="end")ge="bottom"}let be=this._getLabelSizes();for(w=0,A=d.length;w<A;++w){B=d[w],z=B.label;let Se=l.setContext(this.getContext(w));G=this.getPixelForTick(w)+l.labelOffset,Y=this._resolveTickFontOptions(w),J=Y.lineHeight,X=zt(z)?z.length:1;let K=X/2,{color:pe,textStrokeColor:ye,textStrokeWidth:Ue}=Se,He=j;if(u){if(H=G,j==="inner")if(w===A-1)He=!this.options.reverse?"right":"left";else if(w===0)He=!this.options.reverse?"left":"right";else He="center";if(r==="top")if(h==="near"||M!==0)se=-X*J+J/2;else if(h==="center")se=-be.highest.height/2-K*J+J;else se=-be.highest.height+J/2;else if(h==="near"||M!==0)se=J/2;else if(h==="center")se=be.highest.height/2-K*J;else se=be.highest.height-X*J;if(y)se*=-1;if(M!==0&&!Se.showLabelBackdrop)H+=J/2*Math.sin(M)}else q=G,se=(1-X)*J/2;let k;if(Se.showLabelBackdrop){let W=Na(Se.backdropPadding),ee=be.heights[w],ne=be.widths[w],te=se-W.top,le=0-W.left;switch(ge){case"middle":te-=ee/2;break;case"bottom":te-=ee;break}switch(j){case"center":le-=ne/2;break;case"right":le-=ne;break;case"inner":if(w===A-1)le-=ne;else if(w>0)le-=ne/2;break}k={left:le,top:te,width:ne+W.width,height:ee+W.height,color:Se.backdropColor}}I.push({label:z,font:Y,textOffset:se,options:{rotation:M,color:pe,strokeColor:ye,strokeWidth:Ue,textAlign:He,textBaseline:ge,translation:[H,q],backdrop:k}})}return I}_getXAxisLabelAlignment(){let{position:a,ticks:o}=this.options;if(-Us(this.labelRotation))return a==="top"?"left":"right";let r="center";if(o.align==="start")r="left";else if(o.align==="end")r="right";else if(o.align==="inner")r="inner";return r}_getYAxisLabelAlignment(a){let{position:o,ticks:{crossAlign:s,mirror:r,padding:l}}=this.options,u=this._getLabelSizes(),d=a+l,p=u.widest.width,h,g;if(o==="left")if(r)if(g=this.right+l,s==="near")h="left";else if(s==="center")h="center",g+=p/2;else h="right",g+=p;else if(g=this.right-d,s==="near")h="right";else if(s==="center")h="center",g-=p/2;else h="left",g=this.left;else if(o==="right")if(r)if(g=this.left+l,s==="near")h="right";else if(s==="center")h="center",g-=p/2;else h="left",g-=p;else if(g=this.left+d,s==="near")h="left";else if(s==="center")h="center",g+=p/2;else h="right",g=this.right;else h="right";return{textAlign:h,x:g}}_computeLabelArea(){if(this.options.ticks.mirror)return;let a=this.chart,o=this.options.position;if(o==="left"||o==="right")return{top:0,left:this.left,bottom:a.height,right:this.right};if(o==="top"||o==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:a.width}}drawBackground(){let{ctx:a,options:{backgroundColor:o},left:s,top:r,width:l,height:u}=this;if(o)a.save(),a.fillStyle=o,a.fillRect(s,r,l,u),a.restore()}getLineWidthForValue(a){let o=this.options.grid;if(!this._isVisible()||!o.display)return 0;let r=this.ticks.findIndex((l)=>l.value===a);if(r>=0)return o.setContext(this.getContext(r)).lineWidth;return 0}drawGrid(a){let o=this.options.grid,s=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(a)),l,u,d=(p,h,g)=>{if(!g.width||!g.color)return;s.save(),s.lineWidth=g.width,s.strokeStyle=g.color,s.setLineDash(g.borderDash||[]),s.lineDashOffset=g.borderDashOffset,s.beginPath(),s.moveTo(p.x,p.y),s.lineTo(h.x,h.y),s.stroke(),s.restore()};if(o.display)for(l=0,u=r.length;l<u;++l){let p=r[l];if(o.drawOnChartArea)d({x:p.x1,y:p.y1},{x:p.x2,y:p.y2},p);if(o.drawTicks)d({x:p.tx1,y:p.ty1},{x:p.tx2,y:p.ty2},{color:p.tickColor,width:p.tickWidth,borderDash:p.tickBorderDash,borderDashOffset:p.tickBorderDashOffset})}}drawBorder(){let{chart:a,ctx:o,options:{border:s,grid:r}}=this,l=s.setContext(this.getContext()),u=s.display?l.width:0;if(!u)return;let d=r.setContext(this.getContext(0)).lineWidth,p=this._borderValue,h,g,y,b;if(this.isHorizontal())h=Kr(a,this.left,u)-u/2,g=Kr(a,this.right,d)+d/2,y=b=p;else y=Kr(a,this.top,u)-u/2,b=Kr(a,this.bottom,d)+d/2,h=g=p;o.save(),o.lineWidth=l.width,o.strokeStyle=l.color,o.beginPath(),o.moveTo(h,y),o.lineTo(g,b),o.stroke(),o.restore()}drawLabels(a){if(!this.options.ticks.display)return;let s=this.ctx,r=this._computeLabelArea();if(r)Nd(s,r);let l=this.getLabelItems(a);for(let u of l){let{options:d,font:p,label:h,textOffset:g}=u;Jr(s,h,0,g,p,d)}if(r)zd(s)}drawTitle(){let{ctx:a,options:{position:o,title:s,reverse:r}}=this;if(!s.display)return;let l=ha(s.font),u=Na(s.padding),d=s.align,p=l.lineHeight/2;if(o==="bottom"||o==="center"||it(o)){if(p+=u.bottom,zt(s.text))p+=l.lineHeight*(s.text.length-1)}else p+=u.top;let{titleX:h,titleY:g,maxWidth:y,rotation:b}=aB(this,p,o,d);Jr(a,s.text,0,0,l,{color:s.color,maxWidth:y,rotation:b,textAlign:tB(d,o,r),textBaseline:"middle",translation:[h,g]})}draw(a){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(a),this.drawBorder(),this.drawTitle(),this.drawLabels(a)}_layers(){let a=this.options,o=a.ticks&&a.ticks.z||0,s=Ke(a.grid&&a.grid.z,-1),r=Ke(a.border&&a.border.z,0);if(!this._isVisible()||this.draw!==cl.prototype.draw)return[{z:o,draw:(l)=>{this.draw(l)}}];return[{z:s,draw:(l)=>{this.drawBackground(),this.drawGrid(l),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:o,draw:(l)=>{this.drawLabels(l)}}]}getMatchingVisibleMetas(a){let o=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",r=[],l,u;for(l=0,u=o.length;l<u;++l){let d=o[l];if(d[s]===this.id&&(!a||d.type===a))r.push(d)}return r}_resolveTickFontOptions(a){let o=this.options.ticks.setContext(this.getContext(a));return ha(o.font)}_maxDigits(){let a=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/a}}class Xd{constructor(a,o,s){this.type=a,this.scope=o,this.override=s,this.items=Object.create(null)}isForType(a){return Object.prototype.isPrototypeOf.call(this.type.prototype,a.prototype)}register(a){let o=Object.getPrototypeOf(a),s;if(sB(o))s=this.register(o);let r=this.items,l=a.id,u=this.scope+"."+l;if(!l)throw Error("class does not have id: "+a);if(l in r)return u;if(r[l]=a,oB(a,u,s),this.override)Jt.override(a.id,a.overrides);return u}get(a){return this.items[a]}unregister(a){let o=this.items,s=a.id,r=this.scope;if(s in o)delete o[s];if(r&&s in Jt[r]){if(delete Jt[r][s],this.override)delete Qr[s]}}}function oB(a,o,s){let r=_u(Object.create(null),[s?Jt.get(s):{},Jt.get(o),a.defaults]);if(Jt.set(o,r),a.defaultRoutes)nB(o,a.defaultRoutes);if(a.descriptors)Jt.describe(o,a.descriptors)}function nB(a,o){Object.keys(o).forEach((s)=>{let r=s.split("."),l=r.pop(),u=[a].concat(r).join("."),d=o[s].split("."),p=d.pop(),h=d.join(".");Jt.route(u,l,h,p)})}function sB(a){return"id"in a&&"defaults"in a}class KM{constructor(){this.controllers=new Xd(Lm,"datasets",!0),this.elements=new Xd(Gs,"elements"),this.plugins=new Xd(Object,"plugins"),this.scales=new Xd(cl,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...a){this._each("register",a)}remove(...a){this._each("unregister",a)}addControllers(...a){this._each("register",a,this.controllers)}addElements(...a){this._each("register",a,this.elements)}addPlugins(...a){this._each("register",a,this.plugins)}addScales(...a){this._each("register",a,this.scales)}getController(a){return this._get(a,this.controllers,"controller")}getElement(a){return this._get(a,this.elements,"element")}getPlugin(a){return this._get(a,this.plugins,"plugin")}getScale(a){return this._get(a,this.scales,"scale")}removeControllers(...a){this._each("unregister",a,this.controllers)}removeElements(...a){this._each("unregister",a,this.elements)}removePlugins(...a){this._each("unregister",a,this.plugins)}removeScales(...a){this._each("unregister",a,this.scales)}_each(a,o,s){[...o].forEach((r)=>{let l=s||this._getRegistryForType(r);if(s||l.isForType(r)||l===this.plugins&&r.id)this._exec(a,l,r);else Lt(r,(u)=>{let d=s||this._getRegistryForType(u);this._exec(a,d,u)})})}_exec(a,o,s){let r=om(a);Ot(s["before"+r],[],s),o[a](s),Ot(s["after"+r],[],s)}_getRegistryForType(a){for(let o=0;o<this._typedRegistries.length;o++){let s=this._typedRegistries[o];if(s.isForType(a))return s}return this.plugins}_get(a,o,s){let r=o.get(a);if(r===void 0)throw Error('"'+a+'" is not a registered '+s+".");return r}}var ss=new KM;class JM{constructor(){this._init=void 0}notify(a,o,s,r){if(o==="beforeInit")this._init=this._createDescriptors(a,!0),this._notify(this._init,a,"install");if(this._init===void 0)return;let l=r?this._descriptors(a).filter(r):this._descriptors(a),u=this._notify(l,a,o,s);if(o==="afterDestroy")this._notify(l,a,"stop"),this._notify(this._init,a,"uninstall"),this._init=void 0;return u}_notify(a,o,s,r){r=r||{};for(let l of a){let u=l.plugin,d=u[s],p=[o,r,l.options];if(Ot(d,p,u)===!1&&r.cancelable)return!1}return!0}invalidate(){if(!ht(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(a){if(this._cache)return this._cache;let o=this._cache=this._createDescriptors(a);return this._notifyStateChanges(a),o}_createDescriptors(a,o){let s=a&&a.config,r=Ke(s.options&&s.options.plugins,{}),l=rB(s);return r===!1&&!o?[]:lB(a,l,r,o)}_notifyStateChanges(a){let o=this._oldCache||[],s=this._cache,r=(l,u)=>l.filter((d)=>!u.some((p)=>d.plugin.id===p.plugin.id));this._notify(r(o,s),a,"stop"),this._notify(r(s,o),a,"start")}}function rB(a){let o={},s=[],r=Object.keys(ss.plugins.items);for(let u=0;u<r.length;u++)s.push(ss.getPlugin(r[u]));let l=a.plugins||[];for(let u=0;u<l.length;u++){let d=l[u];if(s.indexOf(d)===-1)s.push(d),o[d.id]=!0}return{plugins:s,localIds:o}}function iB(a,o){if(!o&&a===!1)return null;if(a===!0)return{};return a}function lB(a,{plugins:o,localIds:s},r,l){let u=[],d=a.getContext();for(let p of o){let h=p.id,g=iB(r[h],l);if(g===null)continue;u.push({plugin:p,options:uB(a.config,{plugin:p,local:s[h]},g,d)})}return u}function uB(a,{plugin:o,local:s},r,l){let u=a.pluginScopeKeys(o),d=a.getOptionScopes(r,u);if(s&&o.defaults)d.push(o.defaults);return a.createResolver(d,l,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Sv(a,o){let s=Jt.datasets[a]||{};return((o.datasets||{})[a]||{}).indexAxis||o.indexAxis||s.indexAxis||"x"}function cB(a,o){let s=a;if(a==="_index_")s=o;else if(a==="_value_")s=o==="x"?"y":"x";return s}function dB(a,o){return a===o?"_index_":"_value_"}function dM(a){if(a==="x"||a==="y"||a==="r")return a}function fB(a){if(a==="top"||a==="bottom")return"x";if(a==="left"||a==="right")return"y"}function Lv(a,...o){if(dM(a))return a;for(let s of o){let r=s.axis||fB(s.position)||a.length>1&&dM(a[0].toLowerCase());if(r)return r}throw Error(`Cannot determine type of '${a}' axis. Please provide 'axis' or 'position' option.`)}function fM(a,o,s){if(s[o+"AxisID"]===a)return{axis:o}}function pB(a,o){if(o.data&&o.data.datasets){let s=o.data.datasets.filter((r)=>r.xAxisID===a||r.yAxisID===a);if(s.length)return fM(a,"x",s[0])||fM(a,"y",s[0])}return{}}function hB(a,o){let s=Qr[a.type]||{scales:{}},r=o.scales||{},l=Sv(a.type,o),u=Object.create(null);return Object.keys(r).forEach((d)=>{let p=r[d];if(!it(p))return console.error(`Invalid scale configuration for scale: ${d}`);if(p._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${d}`);let h=Lv(d,p,pB(d,a),Jt.scales[p.type]),g=dB(h,l),y=s.scales||{};u[d]=Ou(Object.create(null),[{axis:h},p,y[h],y[g]])}),a.data.datasets.forEach((d)=>{let p=d.type||a.type,h=d.indexAxis||Sv(p,o),y=(Qr[p]||{}).scales||{};Object.keys(y).forEach((b)=>{let v=cB(b,h),T=d[v+"AxisID"]||v;u[T]=u[T]||Object.create(null),Ou(u[T],[{axis:v},r[T],y[b]])})}),Object.keys(u).forEach((d)=>{let p=u[d];Ou(p,[Jt.scales[p.type],Jt.scale])}),u}function eI(a){let o=a.options||(a.options={});o.plugins=Ke(o.plugins,{}),o.scales=hB(a,o)}function tI(a){return a=a||{},a.datasets=a.datasets||[],a.labels=a.labels||[],a}function mB(a){return a=a||{},a.data=tI(a.data),eI(a),a}var pM=new Map,aI=new Set;function gm(a,o){let s=pM.get(a);if(!s)s=o(),pM.set(a,s),aI.add(s);return s}var jd=(a,o,s)=>{let r=rl(o,s);if(r!==void 0)a.add(r)};class oI{constructor(a){this._config=mB(a),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(a){this._config.type=a}get data(){return this._config.data}set data(a){this._config.data=tI(a)}get options(){return this._config.options}set options(a){this._config.options=a}get plugins(){return this._config.plugins}update(){let a=this._config;this.clearCache(),eI(a)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(a){return gm(a,()=>[[`datasets.${a}`,""]])}datasetAnimationScopeKeys(a,o){return gm(`${a}.transition.${o}`,()=>[[`datasets.${a}.transitions.${o}`,`transitions.${o}`],[`datasets.${a}`,""]])}datasetElementScopeKeys(a,o){return gm(`${a}-${o}`,()=>[[`datasets.${a}.elements.${o}`,`datasets.${a}`,`elements.${o}`,""]])}pluginScopeKeys(a){let o=a.id,s=this.type;return gm(`${s}-plugin-${o}`,()=>[[`plugins.${o}`,...a.additionalOptionScopes||[]]])}_cachedScopes(a,o){let s=this._scopeCache,r=s.get(a);if(!r||o)r=new Map,s.set(a,r);return r}getOptionScopes(a,o,s){let{options:r,type:l}=this,u=this._cachedScopes(a,s),d=u.get(o);if(d)return d;let p=new Set;o.forEach((g)=>{if(a)p.add(a),g.forEach((y)=>jd(p,a,y));g.forEach((y)=>jd(p,r,y)),g.forEach((y)=>jd(p,Qr[l]||{},y)),g.forEach((y)=>jd(p,Jt,y)),g.forEach((y)=>jd(p,lm,y))});let h=Array.from(p);if(h.length===0)h.push(Object.create(null));if(aI.has(o))u.set(o,h);return h}chartOptionScopes(){let{options:a,type:o}=this;return[a,Qr[o]||{},Jt.datasets[o]||{},{type:o},Jt,lm]}resolveNamedOptions(a,o,s,r=[""]){let l={$shared:!0},{resolver:u,subPrefixes:d}=hM(this._resolverCache,a,r),p=u;if(bB(u,o)){l.$shared=!1,s=zs(s)?s():s;let h=this.createResolver(a,s,d);p=sl(u,s,h)}for(let h of o)l[h]=p[h];return l}createResolver(a,o,s=[""],r){let{resolver:l}=hM(this._resolverCache,a,s);return it(o)?sl(l,o,void 0,r):l}}function hM(a,o,s){let r=a.get(o);if(!r)r=new Map,a.set(o,r);let l=s.join(),u=r.get(l);if(!u)u={resolver:cm(o,s),subPrefixes:s.filter((p)=>!p.toLowerCase().includes("hover"))},r.set(l,u);return u}var gB=(a)=>it(a)&&Object.getOwnPropertyNames(a).some((o)=>zs(a[o]));function bB(a,o){let{isScriptable:s,isIndexable:r}=ev(a);for(let l of o){let u=s(l),d=r(l),p=(d||u)&&a[l];if(u&&(zs(p)||gB(p))||d&&zt(p))return!0}return!1}var yB="4.5.1",xB=["top","bottom","left","right","chartArea"];function mM(a,o){return a==="top"||a==="bottom"||xB.indexOf(a)===-1&&o==="x"}function gM(a,o){return function(s,r){return s[a]===r[a]?s[o]-r[o]:s[a]-r[a]}}function bM(a){let o=a.chart,s=o.options.animation;o.notifyPlugins("afterRender"),Ot(s&&s.onComplete,[a],o)}function vB(a){let o=a.chart,s=o.options.animation;Ot(s&&s.onProgress,[a],o)}function nI(a){if(dm()&&typeof a==="string")a=document.getElementById(a);else if(a&&a.length)a=a[0];if(a&&a.canvas)a=a.canvas;return a}var vm={},yM=(a)=>{let o=nI(a);return Object.values(vm).filter((s)=>s.canvas===o).pop()};function SB(a,o,s){let r=Object.keys(a);for(let l of r){let u=+l;if(u>=o){let d=a[l];if(delete a[l],s>0||u>o)a[u+s]=d}}}function LB(a,o,s,r){if(!s||a.type==="mouseout")return null;if(r)return o;return a}class dl{static defaults=Jt;static instances=vm;static overrides=Qr;static registry=ss;static version=yB;static getChart=yM;static register(...a){ss.add(...a),xM()}static unregister(...a){ss.remove(...a),xM()}constructor(a,o){let s=this.config=new oI(o),r=nI(a),l=yM(r);if(l)throw Error("Canvas is already in use. Chart with ID '"+l.id+"' must be destroyed before the canvas with ID '"+l.canvas.id+"' can be reused.");let u=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||VP(r)),this.platform.updateConfig(s);let d=this.platform.acquireContext(r,u.aspectRatio),p=d&&d.canvas,h=p&&p.height,g=p&&p.width;if(this.id=pk(),this.ctx=d,this.canvas=p,this.width=g,this.height=h,this._options=u,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new JM,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=wk((y)=>this.update(y),u.resizeDelay||0),this._dataChanges=[],vm[this.id]=this,!d||!p){console.error("Failed to create chart: can't acquire context from the given item");return}if(Vs.listen(this,"complete",bM),Vs.listen(this,"progress",vB),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:a,maintainAspectRatio:o},width:s,height:r,_aspectRatio:l}=this;if(!ht(a))return a;if(o&&l)return l;return r?s/r:null}get data(){return this.config.data}set data(a){this.config.data=a}get options(){return this._options}set options(a){this.config.options=a}get registry(){return ss}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else ov(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Zx(this.canvas,this.ctx),this}stop(){return Vs.stop(this),this}resize(a,o){if(!Vs.running(this))this._resize(a,o);else this._resizeBeforeDraw={width:a,height:o}}_resize(a,o){let s=this.options,r=this.canvas,l=s.maintainAspectRatio&&this.aspectRatio,u=this.platform.getMaximumSize(r,a,o,l),d=s.devicePixelRatio||this.platform.getDevicePixelRatio(),p=this.width?"resize":"attach";if(this.width=u.width,this.height=u.height,this._aspectRatio=this.aspectRatio,!ov(this,d,!0))return;if(this.notifyPlugins("resize",{size:u}),Ot(s.onResize,[this,u],this),this.attached){if(this._doResize(p))this.render()}}ensureScalesHaveIDs(){let o=this.options.scales||{};Lt(o,(s,r)=>{s.id=r})}buildOrUpdateScales(){let a=this.options,o=a.scales,s=this.scales,r=Object.keys(s).reduce((u,d)=>(u[d]=!1,u),{}),l=[];if(o)l=l.concat(Object.keys(o).map((u)=>{let d=o[u],p=Lv(u,d),h=p==="r",g=p==="x";return{options:d,dposition:h?"chartArea":g?"bottom":"left",dtype:h?"radialLinear":g?"category":"linear"}}));Lt(l,(u)=>{let d=u.options,p=d.id,h=Lv(p,d),g=Ke(d.type,u.dtype);if(d.position===void 0||mM(d.position,h)!==mM(u.dposition))d.position=u.dposition;r[p]=!0;let y=null;if(p in s&&s[p].type===g)y=s[p];else y=new(ss.getScale(g))({id:p,type:g,ctx:this.ctx,chart:this}),s[y.id]=y;y.init(d,a)}),Lt(r,(u,d)=>{if(!u)delete s[d]}),Lt(s,(u)=>{nn.configure(this,u,u.options),nn.addBox(this,u)})}_updateMetasets(){let a=this._metasets,o=this.data.datasets.length,s=a.length;if(a.sort((r,l)=>r.index-l.index),s>o){for(let r=o;r<s;++r)this._destroyDatasetMeta(r);a.splice(o,s-o)}this._sortedMetasets=a.slice(0).sort(gM("order","index"))}_removeUnreferencedMetasets(){let{_metasets:a,data:{datasets:o}}=this;if(a.length>o.length)delete this._stacks;a.forEach((s,r)=>{if(o.filter((l)=>l===s._dataset).length===0)this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){let a=[],o=this.data.datasets,s,r;this._removeUnreferencedMetasets();for(s=0,r=o.length;s<r;s++){let l=o[s],u=this.getDatasetMeta(s),d=l.type||this.config.type;if(u.type&&u.type!==d)this._destroyDatasetMeta(s),u=this.getDatasetMeta(s);if(u.type=d,u.indexAxis=l.indexAxis||Sv(d,this.options),u.order=l.order||0,u.index=s,u.label=""+l.label,u.visible=this.isDatasetVisible(s),u.controller)u.controller.updateIndex(s),u.controller.linkScales();else{let p=ss.getController(d),{datasetElementType:h,dataElementType:g}=Jt.datasets[d];Object.assign(p,{dataElementType:ss.getElement(g),datasetElementType:h&&ss.getElement(h)}),u.controller=new p(this,s),a.push(u.controller)}}return this._updateMetasets(),a}_resetElements(){Lt(this.data.datasets,(a,o)=>{this.getDatasetMeta(o).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(a){let o=this.config;o.update();let s=this._options=o.createResolver(o.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:a,cancelable:!0})===!1)return;let l=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let u=0;for(let h=0,g=this.data.datasets.length;h<g;h++){let{controller:y}=this.getDatasetMeta(h),b=!r&&l.indexOf(y)===-1;y.buildOrUpdateElements(b),u=Math.max(+y.getMaxOverflow(),u)}if(u=this._minPadding=s.layout.autoPadding?u:0,this._updateLayout(u),!r)Lt(l,(h)=>{h.reset()});this._updateDatasets(a),this.notifyPlugins("afterUpdate",{mode:a}),this._layers.sort(gM("z","_idx"));let{_active:d,_lastEvent:p}=this;if(p)this._eventHandler(p,!0);else if(d.length)this._updateHoverStyles(d,d,!0);this.render()}_updateScales(){Lt(this.scales,(a)=>{nn.removeBox(this,a)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let a=this.options,o=new Set(Object.keys(this._listeners)),s=new Set(a.events);if(!Hx(o,s)||!!this._responsiveListeners!==a.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:a}=this,o=this._getUniformDataChanges()||[];for(let{method:s,start:r,count:l}of o){let u=s==="_removeElements"?-l:l;SB(a,r,u)}}_getUniformDataChanges(){let a=this._dataChanges;if(!a||!a.length)return;this._dataChanges=[];let o=this.data.datasets.length,s=(l)=>new Set(a.filter((u)=>u[0]===l).map((u,d)=>d+","+u.splice(1).join(","))),r=s(0);for(let l=1;l<o;l++)if(!Hx(r,s(l)))return;return Array.from(r).map((l)=>l.split(",")).map((l)=>({method:l[1],start:+l[2],count:+l[3]}))}_updateLayout(a){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;nn.update(this,this.width,this.height,a);let o=this.chartArea,s=o.width<=0||o.height<=0;this._layers=[],Lt(this.boxes,(r)=>{if(s&&r.position==="chartArea")return;if(r.configure)r.configure();this._layers.push(...r._layers())},this),this._layers.forEach((r,l)=>{r._idx=l}),this.notifyPlugins("afterLayout")}_updateDatasets(a){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:a,cancelable:!0})===!1)return;for(let o=0,s=this.data.datasets.length;o<s;++o)this.getDatasetMeta(o).controller.configure();for(let o=0,s=this.data.datasets.length;o<s;++o)this._updateDataset(o,zs(a)?a({datasetIndex:o}):a);this.notifyPlugins("afterDatasetsUpdate",{mode:a})}_updateDataset(a,o){let s=this.getDatasetMeta(a),r={meta:s,index:a,mode:o,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",r)===!1)return;s.controller._update(o),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(Vs.has(this)){if(this.attached&&!Vs.running(this))Vs.start(this)}else this.draw(),bM({chart:this})}draw(){let a;if(this._resizeBeforeDraw){let{width:s,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(s,r)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let o=this._layers;for(a=0;a<o.length&&o[a].z<=0;++a)o[a].draw(this.chartArea);this._drawDatasets();for(;a<o.length;++a)o[a].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(a){let o=this._sortedMetasets,s=[],r,l;for(r=0,l=o.length;r<l;++r){let u=o[r];if(!a||u.visible)s.push(u)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let a=this.getSortedVisibleDatasetMetas();for(let o=a.length-1;o>=0;--o)this._drawDataset(a[o]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(a){let o=this.ctx,s={meta:a,index:a.index,cancelable:!0},r=uv(this,a);if(this.notifyPlugins("beforeDatasetDraw",s)===!1)return;if(r)Nd(o,r);if(a.controller.draw(),r)zd(o);s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s)}isPointInArea(a){return as(a,this.chartArea,this._minPadding)}getElementsAtEventForMode(a,o,s,r){let l=TP.modes[o];if(typeof l==="function")return l(this,a,s,r);return[]}getDatasetMeta(a){let o=this.data.datasets[a],s=this._metasets,r=s.filter((l)=>l&&l._dataset===o).pop();if(!r)r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:o&&o.order||0,index:a,_dataset:o,_parsed:[],_sorted:!1},s.push(r);return r}getContext(){return this.$context||(this.$context=qs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(a){let o=this.data.datasets[a];if(!o)return!1;let s=this.getDatasetMeta(a);return typeof s.hidden==="boolean"?!s.hidden:!o.hidden}setDatasetVisibility(a,o){let s=this.getDatasetMeta(a);s.hidden=!o}toggleDataVisibility(a){this._hiddenIndices[a]=!this._hiddenIndices[a]}getDataVisibility(a){return!this._hiddenIndices[a]}_updateVisibility(a,o,s){let r=s?"show":"hide",l=this.getDatasetMeta(a),u=l.controller._resolveAnimations(void 0,r);if(Pu(o))l.data[o].hidden=!s,this.update();else this.setDatasetVisibility(a,s),u.update(l,{visible:s}),this.update((d)=>d.datasetIndex===a?r:void 0)}hide(a,o){this._updateVisibility(a,o,!1)}show(a,o){this._updateVisibility(a,o,!0)}_destroyDatasetMeta(a){let o=this._metasets[a];if(o&&o.controller)o.controller._destroy();delete this._metasets[a]}_stop(){let a,o;this.stop(),Vs.remove(this);for(a=0,o=this.data.datasets.length;a<o;++a)this._destroyDatasetMeta(a)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:a,ctx:o}=this;if(this._stop(),this.config.clearCache(),a)this.unbindEvents(),Zx(a,o),this.platform.releaseContext(o),this.canvas=null,this.ctx=null;delete vm[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...a){return this.canvas.toDataURL(...a)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let a=this._listeners,o=this.platform,s=(l,u)=>{o.addEventListener(this,l,u),a[l]=u},r=(l,u,d)=>{l.offsetX=u,l.offsetY=d,this._eventHandler(l)};Lt(this.options.events,(l)=>s(l,r))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let a=this._responsiveListeners,o=this.platform,s=(p,h)=>{o.addEventListener(this,p,h),a[p]=h},r=(p,h)=>{if(a[p])o.removeEventListener(this,p,h),delete a[p]},l=(p,h)=>{if(this.canvas)this.resize(p,h)},u,d=()=>{r("attach",d),this.attached=!0,this.resize(),s("resize",l),s("detach",u)};if(u=()=>{this.attached=!1,r("resize",l),this._stop(),this._resize(0,0),s("attach",d)},o.isAttached(this.canvas))d();else u()}unbindEvents(){Lt(this._listeners,(a,o)=>{this.platform.removeEventListener(this,o,a)}),this._listeners={},Lt(this._responsiveListeners,(a,o)=>{this.platform.removeEventListener(this,o,a)}),this._responsiveListeners=void 0}updateHoverStyle(a,o,s){let r=s?"set":"remove",l,u,d,p;if(o==="dataset")l=this.getDatasetMeta(a[0].datasetIndex),l.controller["_"+r+"DatasetHoverStyle"]();for(d=0,p=a.length;d<p;++d){u=a[d];let h=u&&this.getDatasetMeta(u.datasetIndex).controller;if(h)h[r+"HoverStyle"](u.element,u.datasetIndex,u.index)}}getActiveElements(){return this._active||[]}setActiveElements(a){let o=this._active||[],s=a.map(({datasetIndex:l,index:u})=>{let d=this.getDatasetMeta(l);if(!d)throw Error("No dataset found at index "+l);return{datasetIndex:l,element:d.data[u],index:u}});if(!Pd(s,o))this._active=s,this._lastEvent=null,this._updateHoverStyles(s,o)}notifyPlugins(a,o,s){return this._plugins.notify(this,a,o,s)}isPluginEnabled(a){return this._plugins._cache.filter((o)=>o.plugin.id===a).length===1}_updateHoverStyles(a,o,s){let r=this.options.hover,l=(p,h)=>p.filter((g)=>!h.some((y)=>g.datasetIndex===y.datasetIndex&&g.index===y.index)),u=l(o,a),d=s?a:l(a,o);if(u.length)this.updateHoverStyle(u,r.mode,!1);if(d.length&&r.mode)this.updateHoverStyle(d,r.mode,!0)}_eventHandler(a,o){let s={event:a,replay:o,cancelable:!0,inChartArea:this.isPointInArea(a)},r=(u)=>(u.options.events||this.options.events).includes(a.native.type);if(this.notifyPlugins("beforeEvent",s,r)===!1)return;let l=this._handleEvent(a,o,s.inChartArea);if(s.cancelable=!1,this.notifyPlugins("afterEvent",s,r),l||s.changed)this.render();return this}_handleEvent(a,o,s){let{_active:r=[],options:l}=this,u=o,d=this._getActiveElements(a,r,s,u),p=gk(a),h=LB(a,this._lastEvent,s,p);if(s){if(this._lastEvent=null,Ot(l.onHover,[a,d,this],this),p)Ot(l.onClick,[a,d,this],this)}let g=!Pd(d,r);if(g||o)this._active=d,this._updateHoverStyles(d,r,o);return this._lastEvent=h,g}_getActiveElements(a,o,s,r){if(a.type==="mouseout")return[];if(!s)return o;let l=this.options.hover;return this.getElementsAtEventForMode(a,l.mode,l,r)}}function xM(){return Lt(dl.instances,(a)=>a._plugins.invalidate())}function sI(a,o,s=o){a.lineCap=Ke(s.borderCapStyle,o.borderCapStyle),a.setLineDash(Ke(s.borderDash,o.borderDash)),a.lineDashOffset=Ke(s.borderDashOffset,o.borderDashOffset),a.lineJoin=Ke(s.borderJoinStyle,o.borderJoinStyle),a.lineWidth=Ke(s.borderWidth,o.borderWidth),a.strokeStyle=Ke(s.borderColor,o.borderColor)}function CB(a,o,s){a.lineTo(s.x,s.y)}function TB(a){if(a.stepped)return _k;if(a.tension||a.cubicInterpolationMode==="monotone")return Ek;return CB}function rI(a,o,s={}){let r=a.length,{start:l=0,end:u=r-1}=s,{start:d,end:p}=o,h=Math.max(l,d),g=Math.min(u,p),y=l<d&&u<d||l>p&&u>p;return{count:r,start:h,loop:o.loop,ilen:g<h&&!y?r+g-h:g-h}}function wB(a,o,s,r){let{points:l,options:u}=o,{count:d,start:p,loop:h,ilen:g}=rI(l,s,r),y=TB(u),{move:b=!0,reverse:v}=r||{},T,M,I;for(T=0;T<=g;++T){if(M=l[(p+(v?g-T:T))%d],M.skip)continue;else if(b)a.moveTo(M.x,M.y),b=!1;else y(a,I,M,v,u.stepped);I=M}if(h)M=l[(p+(v?g:0))%d],y(a,I,M,v,u.stepped);return!!h}function kB(a,o,s,r){let l=o.points,{count:u,start:d,ilen:p}=rI(l,s,r),{move:h=!0,reverse:g}=r||{},y=0,b=0,v,T,M,I,w,A,B=(H)=>(d+(g?p-H:H))%u,z=()=>{if(I!==w)a.lineTo(y,w),a.lineTo(y,I),a.lineTo(y,A)};if(h)T=l[B(0)],a.moveTo(T.x,T.y);for(v=0;v<=p;++v){if(T=l[B(v)],T.skip)continue;let H=T.x,q=T.y,j=H|0;if(j===M){if(q<I)I=q;else if(q>w)w=q;y=(b*y+H)/++b}else z(),a.lineTo(H,q),M=j,b=0,I=w=q;A=q}z()}function Cv(a){let o=a.options,s=o.borderDash&&o.borderDash.length;return!a._decimated&&!a._loop&&!o.tension&&o.cubicInterpolationMode!=="monotone"&&!o.stepped&&!s?kB:wB}function MB(a){if(a.stepped)return qk;if(a.tension||a.cubicInterpolationMode==="monotone")return Vk;return $r}function IB(a,o,s,r){let l=o._path;if(!l){if(l=o._path=new Path2D,o.path(l,s,r))l.closePath()}sI(a,o.options),a.stroke(l)}function AB(a,o,s,r){let{segments:l,options:u}=o,d=Cv(o);for(let p of l){if(sI(a,u,p.style),a.beginPath(),d(a,o,p,{start:s,end:s+r-1}))a.closePath();a.stroke()}}var RB=typeof Path2D==="function";function DB(a,o,s,r){if(RB&&!o.options.segment)IB(a,o,s,r);else AB(a,o,s,r)}class Hu extends Gs{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:(a)=>a!=="borderDash"&&a!=="fill"};constructor(a){super();if(this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,a)Object.assign(this,a)}updateControlPoints(a,o){let s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){let r=s.spanGaps?this._loop:this._fullLoop;Hk(this._points,s,a,r,o),this._pointsUpdated=!0}}set points(a){this._points=a,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Gk(this,this.options.segment))}first(){let a=this.segments,o=this.points;return a.length&&o[a[0].start]}last(){let a=this.segments,o=this.points,s=a.length;return s&&o[a[s-1].end]}interpolate(a,o){let s=this.options,r=a[o],l=this.points,u=lv(this,{property:o,start:r,end:r});if(!u.length)return;let d=[],p=MB(s),h,g;for(h=0,g=u.length;h<g;++h){let{start:y,end:b}=u[h],v=l[y],T=l[b];if(v===T){d.push(v);continue}let M=Math.abs((r-v[o])/(T[o]-v[o])),I=p(v,T,M,s.stepped);I[o]=a[o],d.push(I)}return d.length===1?d[0]:d}pathSegment(a,o,s){return Cv(this)(a,this,o,s)}path(a,o,s){let r=this.segments,l=Cv(this),u=this._loop;o=o||0,s=s||this.points.length-o;for(let d of r)u&=l(a,this,d,{start:o,end:o+s-1});return!!u}draw(a,o,s,r){let l=this.options||{};if((this.points||[]).length&&l.borderWidth)a.save(),DB(a,this,s,r),a.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function vM(a,o,s,r){let l=a.options,{[s]:u}=a.getProps([s],r);return Math.abs(o-u)<l.radius+l.hitRadius}class Ov extends Gs{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(a){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,a)Object.assign(this,a)}inRange(a,o,s){let r=this.options,{x:l,y:u}=this.getProps(["x","y"],s);return Math.pow(a-l,2)+Math.pow(o-u,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(a,o){return vM(this,a,"x",o)}inYRange(a,o){return vM(this,a,"y",o)}getCenterPoint(a){let{x:o,y:s}=this.getProps(["x","y"],a);return{x:o,y:s}}size(a){a=a||this.options||{};let o=a.radius||0;o=Math.max(o,o&&a.hoverRadius||0);let s=o&&a.borderWidth||0;return(o+s)*2}draw(a,o){let s=this.options;if(this.skip||s.radius<0.1||!as(this,o,this.size(s)/2))return;a.strokeStyle=s.borderColor,a.lineWidth=s.borderWidth,a.fillStyle=s.backgroundColor,um(a,s,this.x,this.y)}getRange(){let a=this.options||{};return a.radius+a.hitRadius}}function iI(a,o){let{x:s,y:r,base:l,width:u,height:d}=a.getProps(["x","y","base","width","height"],o),p,h,g,y,b;if(a.horizontal)b=d/2,p=Math.min(s,l),h=Math.max(s,l),g=r-b,y=r+b;else b=u/2,p=s-b,h=s+b,g=Math.min(r,l),y=Math.max(r,l);return{left:p,top:g,right:h,bottom:y}}function ai(a,o,s,r){return a?0:mo(o,s,r)}function _B(a,o,s){let r=a.options.borderWidth,l=a.borderSkipped,u=Jx(r);return{t:ai(l.top,u.top,0,s),r:ai(l.right,u.right,0,o),b:ai(l.bottom,u.bottom,0,s),l:ai(l.left,u.left,0,o)}}function EB(a,o,s){let{enableBorderRadius:r}=a.getProps(["enableBorderRadius"]),l=a.options.borderRadius,u=ei(l),d=Math.min(o,s),p=a.borderSkipped,h=r||it(l);return{topLeft:ai(!h||p.top||p.left,u.topLeft,0,d),topRight:ai(!h||p.top||p.right,u.topRight,0,d),bottomLeft:ai(!h||p.bottom||p.left,u.bottomLeft,0,d),bottomRight:ai(!h||p.bottom||p.right,u.bottomRight,0,d)}}function OB(a){let o=iI(a),s=o.right-o.left,r=o.bottom-o.top,l=_B(a,s/2,r/2),u=EB(a,s/2,r/2);return{outer:{x:o.left,y:o.top,w:s,h:r,radius:u},inner:{x:o.left+l.l,y:o.top+l.t,w:s-l.l-l.r,h:r-l.t-l.b,radius:{topLeft:Math.max(0,u.topLeft-Math.max(l.t,l.l)),topRight:Math.max(0,u.topRight-Math.max(l.t,l.r)),bottomLeft:Math.max(0,u.bottomLeft-Math.max(l.b,l.l)),bottomRight:Math.max(0,u.bottomRight-Math.max(l.b,l.r))}}}}function bv(a,o,s,r){let l=o===null,u=s===null,p=a&&!(l&&u)&&iI(a,r);return p&&(l||Fs(o,p.left,p.right))&&(u||Fs(s,p.top,p.bottom))}function PB(a){return a.topLeft||a.topRight||a.bottomLeft||a.bottomRight}function BB(a,o){a.rect(o.x,o.y,o.w,o.h)}function yv(a,o,s={}){let r=a.x!==s.x?-o:0,l=a.y!==s.y?-o:0,u=(a.x+a.w!==s.x+s.w?o:0)-r,d=(a.y+a.h!==s.y+s.h?o:0)-l;return{x:a.x+r,y:a.y+l,w:a.w+u,h:a.h+d,radius:a.radius}}class Pv extends Gs{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(a){super();if(this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,a)Object.assign(this,a)}draw(a){let{inflateAmount:o,options:{borderColor:s,backgroundColor:r}}=this,{inner:l,outer:u}=OB(this),d=PB(u.radius)?zu:BB;if(a.save(),u.w!==l.w||u.h!==l.h)a.beginPath(),d(a,yv(u,o,l)),a.clip(),d(a,yv(l,-o,u)),a.fillStyle=s,a.fill("evenodd");a.beginPath(),d(a,yv(l,o)),a.fillStyle=r,a.fill(),a.restore()}inRange(a,o,s){return bv(this,a,o,s)}inXRange(a,o){return bv(this,a,null,o)}inYRange(a,o){return bv(this,null,a,o)}getCenterPoint(a){let{x:o,y:s,base:r,horizontal:l}=this.getProps(["x","y","base","horizontal"],a);return{x:l?(o+r)/2:o,y:l?s:(s+r)/2}}getRange(a){return a==="x"?this.width/2:this.height/2}}function NB(a,o,s){let{segments:r,points:l}=a,u=o.points,d=[];for(let p of r){let{start:h,end:g}=p;g=Cm(h,g,l);let y=Tv(s,l[h],l[g],p.loop);if(!o.segments){d.push({source:p,target:y,start:l[h],end:l[g]});continue}let b=lv(o,y);for(let v of b){let T=Tv(s,u[v.start],u[v.end],v.loop),M=iv(p,l,T);for(let I of M)d.push({source:I,target:v,start:{[s]:SM(y,T,"start",Math.max)},end:{[s]:SM(y,T,"end",Math.min)}})}}return d}function Tv(a,o,s,r){if(r)return;let l=o[a],u=s[a];if(a==="angle")l=fo(l),u=fo(u);return{property:a,start:l,end:u}}function zB(a,o){let{x:s=null,y:r=null}=a||{},l=o.points,u=[];return o.segments.forEach(({start:d,end:p})=>{p=Cm(d,p,l);let h=l[d],g=l[p];if(r!==null)u.push({x:h.x,y:r}),u.push({x:g.x,y:r});else if(s!==null)u.push({x:s,y:h.y}),u.push({x:s,y:g.y})}),u}function Cm(a,o,s){for(;o>a;o--){let r=s[o];if(!isNaN(r.x)&&!isNaN(r.y))break}return o}function SM(a,o,s,r){if(a&&o)return r(a[s],o[s]);return a?a[s]:o?o[s]:0}function lI(a,o){let s=[],r=!1;if(zt(a))r=!0,s=a;else s=zB(a,o);return s.length?new Hu({points:s,options:{tension:0},_loop:r,_fullLoop:r}):null}function LM(a){return a&&a.fill!==!1}function HB(a,o,s){let l=a[o].fill,u=[o],d;if(!s)return l;while(l!==!1&&u.indexOf(l)===-1){if(!Kt(l))return l;if(d=a[l],!d)return!1;if(d.visible)return l;u.push(l),l=d.fill}return!1}function UB(a,o,s){let r=jB(a);if(it(r))return isNaN(r.value)?!1:r;let l=parseFloat(r);if(Kt(l)&&Math.floor(l)===l)return FB(r[0],o,l,s);return["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function FB(a,o,s,r){if(a==="-"||a==="+")s=o+s;if(s===o||s<0||s>=r)return!1;return s}function qB(a,o){let s=null;if(a==="start")s=o.bottom;else if(a==="end")s=o.top;else if(it(a))s=o.getPixelForValue(a.value);else if(o.getBasePixel)s=o.getBasePixel();return s}function VB(a,o,s){let r;if(a==="start")r=s;else if(a==="end")r=o.options.reverse?o.min:o.max;else if(it(a))r=a.value;else r=o.getBaseValue();return r}function jB(a){let o=a.options,s=o.fill,r=Ke(s&&s.target,s);if(r===void 0)r=!!o.backgroundColor;if(r===!1||r===null)return!1;if(r===!0)return"origin";return r}function GB(a){let{scale:o,index:s,line:r}=a,l=[],{segments:u,points:d}=r,p=XB(o,s);p.push(lI({x:null,y:o.bottom},r));for(let h=0;h<u.length;h++){let g=u[h];for(let y=g.start;y<=g.end;y++)YB(l,d[y],p)}return new Hu({points:l,options:{}})}function XB(a,o){let s=[],r=a.getMatchingVisibleMetas("line");for(let l=0;l<r.length;l++){let u=r[l];if(u.index===o)break;if(!u.hidden)s.unshift(u.dataset)}return s}function YB(a,o,s){let r=[];for(let l=0;l<s.length;l++){let u=s[l],{first:d,last:p,point:h}=$B(u,o,"x");if(!h||d&&p)continue;if(d)r.unshift(h);else if(a.push(h),!p)break}a.push(...r)}function $B(a,o,s){let r=a.interpolate(o,s);if(!r)return{};let l=r[s],{segments:u,points:d}=a,p=!1,h=!1;for(let g=0;g<u.length;g++){let y=u[g],b=d[y.start][s],v=d[y.end][s];if(Fs(l,b,v)){p=l===b,h=l===v;break}}return{first:p,last:h,point:r}}class Bv{constructor(a){this.x=a.x,this.y=a.y,this.radius=a.radius}pathSegment(a,o,s){let{x:r,y:l,radius:u}=this;return o=o||{start:0,end:ho},a.arc(r,l,u,o.end,o.start,!0),!s.bounds}interpolate(a){let{x:o,y:s,radius:r}=this,l=a.angle;return{x:o+Math.cos(l)*r,y:s+Math.sin(l)*r,angle:l}}}function WB(a){let{chart:o,fill:s,line:r}=a;if(Kt(s))return ZB(o,s);if(s==="stack")return GB(a);if(s==="shape")return!0;let l=QB(a);if(l instanceof Bv)return l;return lI(l,r)}function ZB(a,o){let s=a.getDatasetMeta(o);return s&&a.isDatasetVisible(o)?s.dataset:null}function QB(a){if((a.scale||{}).getPointPositionForValue)return JB(a);return KB(a)}function KB(a){let{scale:o={},fill:s}=a,r=qB(s,o);if(Kt(r)){let l=o.isHorizontal();return{x:l?r:null,y:l?null:r}}return null}function JB(a){let{scale:o,fill:s}=a,r=o.options,l=o.getLabels().length,u=r.reverse?o.max:o.min,d=VB(s,o,u),p=[];if(r.grid.circular){let h=o.getPointPositionForValue(0,u);return new Bv({x:h.x,y:h.y,radius:o.getDistanceFromCenterForValue(d)})}for(let h=0;h<l;++h)p.push(o.getPointPositionForValue(h,d));return p}function xv(a,o,s){let r=WB(o),{chart:l,index:u,line:d,scale:p,axis:h}=o,g=d.options,{fill:y,backgroundColor:b}=g,{above:v=b,below:T=b}=y||{},M=l.getDatasetMeta(u),I=uv(l,M);if(r&&d.points.length)Nd(a,s),eN(a,{line:d,target:r,above:v,below:T,area:s,scale:p,axis:h,clip:I}),zd(a)}function eN(a,o){let{line:s,target:r,above:l,below:u,area:d,scale:p,clip:h}=o,g=s._loop?"angle":o.axis;a.save();let y=u;if(u!==l){if(g==="x")CM(a,r,d.top),vv(a,{line:s,target:r,color:l,scale:p,property:g,clip:h}),a.restore(),a.save(),CM(a,r,d.bottom);else if(g==="y")TM(a,r,d.left),vv(a,{line:s,target:r,color:u,scale:p,property:g,clip:h}),a.restore(),a.save(),TM(a,r,d.right),y=l}vv(a,{line:s,target:r,color:y,scale:p,property:g,clip:h}),a.restore()}function CM(a,o,s){let{segments:r,points:l}=o,u=!0,d=!1;a.beginPath();for(let p of r){let{start:h,end:g}=p,y=l[h],b=l[Cm(h,g,l)];if(u)a.moveTo(y.x,y.y),u=!1;else a.lineTo(y.x,s),a.lineTo(y.x,y.y);if(d=!!o.pathSegment(a,p,{move:d}),d)a.closePath();else a.lineTo(b.x,s)}a.lineTo(o.first().x,s),a.closePath(),a.clip()}function TM(a,o,s){let{segments:r,points:l}=o,u=!0,d=!1;a.beginPath();for(let p of r){let{start:h,end:g}=p,y=l[h],b=l[Cm(h,g,l)];if(u)a.moveTo(y.x,y.y),u=!1;else a.lineTo(s,y.y),a.lineTo(y.x,y.y);if(d=!!o.pathSegment(a,p,{move:d}),d)a.closePath();else a.lineTo(s,b.y)}a.lineTo(s,o.first().y),a.closePath(),a.clip()}function vv(a,o){let{line:s,target:r,property:l,color:u,scale:d,clip:p}=o,h=NB(s,r,l);for(let{source:g,target:y,start:b,end:v}of h){let{style:{backgroundColor:T=u}={}}=g,M=r!==!0;a.save(),a.fillStyle=T,tN(a,d,p,M&&Tv(l,b,v)),a.beginPath();let I=!!s.pathSegment(a,g),w;if(M){if(I)a.closePath();else wM(a,r,v,l);let A=!!r.pathSegment(a,y,{move:I,reverse:!0});if(w=I&&A,!w)wM(a,r,b,l)}a.closePath(),a.fill(w?"evenodd":"nonzero"),a.restore()}}function tN(a,o,s,r){let l=o.chart.chartArea,{property:u,start:d,end:p}=r||{};if(u==="x"||u==="y"){let h,g,y,b;if(u==="x")h=d,g=l.top,y=p,b=l.bottom;else h=l.left,g=d,y=l.right,b=p;if(a.beginPath(),s)h=Math.max(h,s.left),y=Math.min(y,s.right),g=Math.max(g,s.top),b=Math.min(b,s.bottom);a.rect(h,g,y-h,b-g),a.clip()}}function wM(a,o,s,r){let l=o.interpolate(s,r);if(l)a.lineTo(l.x,l.y)}var uI={id:"filler",afterDatasetsUpdate(a,o,s){let r=(a.data.datasets||[]).length,l=[],u,d,p,h;for(d=0;d<r;++d){if(u=a.getDatasetMeta(d),p=u.dataset,h=null,p&&p.options&&p instanceof Hu)h={visible:a.isDatasetVisible(d),index:d,fill:UB(p,d,r),chart:a,axis:u.controller.options.indexAxis,scale:u.vScale,line:p};u.$filler=h,l.push(h)}for(d=0;d<r;++d){if(h=l[d],!h||h.fill===!1)continue;h.fill=HB(l,d,s.propagate)}},beforeDraw(a,o,s){let r=s.drawTime==="beforeDraw",l=a.getSortedVisibleDatasetMetas(),u=a.chartArea;for(let d=l.length-1;d>=0;--d){let p=l[d].$filler;if(!p)continue;if(p.line.updateControlPoints(u,p.axis),r&&p.fill)xv(a.ctx,p,u)}},beforeDatasetsDraw(a,o,s){if(s.drawTime!=="beforeDatasetsDraw")return;let r=a.getSortedVisibleDatasetMetas();for(let l=r.length-1;l>=0;--l){let u=r[l].$filler;if(LM(u))xv(a.ctx,u,a.chartArea)}},beforeDatasetDraw(a,o,s){let r=o.meta.$filler;if(!LM(r)||s.drawTime!=="beforeDatasetDraw")return;xv(a.ctx,r,a.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},kM=(a,o)=>{let{boxHeight:s=o,boxWidth:r=o}=a;if(a.usePointStyle)s=Math.min(s,o),r=a.pointStyleWidth||Math.min(r,o);return{boxWidth:r,boxHeight:s,itemHeight:Math.max(o,s)}},aN=(a,o)=>a!==null&&o!==null&&a.datasetIndex===o.datasetIndex&&a.index===o.index;class wv extends Gs{constructor(a){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=a.chart,this.options=a.options,this.ctx=a.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(a,o,s){this.maxWidth=a,this.maxHeight=o,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width;else this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height}buildLabels(){let a=this.options.labels||{},o=Ot(a.generateLabels,[this.chart],this)||[];if(a.filter)o=o.filter((s)=>a.filter(s,this.chart.data));if(a.sort)o=o.sort((s,r)=>a.sort(s,r,this.chart.data));if(this.options.reverse)o.reverse();this.legendItems=o}fit(){let{options:a,ctx:o}=this;if(!a.display){this.width=this.height=0;return}let s=a.labels,r=ha(s.font),l=r.size,u=this._computeTitleHeight(),{boxWidth:d,itemHeight:p}=kM(s,l),h,g;if(o.font=r.string,this.isHorizontal())h=this.maxWidth,g=this._fitRows(u,l,d,p)+10;else g=this.maxHeight,h=this._fitCols(u,r,d,p)+10;this.width=Math.min(h,a.maxWidth||this.maxWidth),this.height=Math.min(g,a.maxHeight||this.maxHeight)}_fitRows(a,o,s,r){let{ctx:l,maxWidth:u,options:{labels:{padding:d}}}=this,p=this.legendHitBoxes=[],h=this.lineWidths=[0],g=r+d,y=a;l.textAlign="left",l.textBaseline="middle";let b=-1,v=-g;return this.legendItems.forEach((T,M)=>{let I=s+o/2+l.measureText(T.text).width;if(M===0||h[h.length-1]+I+2*d>u)y+=g,h[h.length-(M>0?0:1)]=0,v+=g,b++;p[M]={left:0,top:v,row:b,width:I,height:r},h[h.length-1]+=I+d}),y}_fitCols(a,o,s,r){let{ctx:l,maxHeight:u,options:{labels:{padding:d}}}=this,p=this.legendHitBoxes=[],h=this.columnSizes=[],g=u-a,y=d,b=0,v=0,T=0,M=0;return this.legendItems.forEach((I,w)=>{let{itemWidth:A,itemHeight:B}=oN(s,o,l,I,r);if(w>0&&v+B+2*d>g)y+=b+d,h.push({width:b,height:v}),T+=b+d,M++,b=v=0;p[w]={left:T,top:v,col:M,width:A,height:B},b=Math.max(b,A),v+=B+d}),y+=b,h.push({width:b,height:v}),y}adjustHitBoxes(){if(!this.options.display)return;let a=this._computeTitleHeight(),{legendHitBoxes:o,options:{align:s,labels:{padding:r},rtl:l}}=this,u=il(l,this.left,this.width);if(this.isHorizontal()){let d=0,p=Ba(s,this.left+r,this.right-this.lineWidths[d]);for(let h of o){if(d!==h.row)d=h.row,p=Ba(s,this.left+r,this.right-this.lineWidths[d]);h.top+=this.top+a+r,h.left=u.leftForLtr(u.x(p),h.width),p+=h.width+r}}else{let d=0,p=Ba(s,this.top+a+r,this.bottom-this.columnSizes[d].height);for(let h of o){if(h.col!==d)d=h.col,p=Ba(s,this.top+a+r,this.bottom-this.columnSizes[d].height);h.top=p,h.left+=this.left+r,h.left=u.leftForLtr(u.x(h.left),h.width),p+=h.height+r}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let a=this.ctx;Nd(a,this),this._draw(),zd(a)}}_draw(){let{options:a,columnSizes:o,lineWidths:s,ctx:r}=this,{align:l,labels:u}=a,d=Jt.color,p=il(a.rtl,this.left,this.width),h=ha(u.font),{padding:g}=u,y=h.size,b=y/2,v;this.drawTitle(),r.textAlign=p.textAlign("left"),r.textBaseline="middle",r.lineWidth=0.5,r.font=h.string;let{boxWidth:T,boxHeight:M,itemHeight:I}=kM(u,y),w=function(q,j,G){if(isNaN(T)||T<=0||isNaN(M)||M<0)return;r.save();let Y=Ke(G.lineWidth,1);if(r.fillStyle=Ke(G.fillStyle,d),r.lineCap=Ke(G.lineCap,"butt"),r.lineDashOffset=Ke(G.lineDashOffset,0),r.lineJoin=Ke(G.lineJoin,"miter"),r.lineWidth=Y,r.strokeStyle=Ke(G.strokeStyle,d),r.setLineDash(Ke(G.lineDash,[])),u.usePointStyle){let J={radius:M*Math.SQRT2/2,pointStyle:G.pointStyle,rotation:G.rotation,borderWidth:Y},X=p.xPlus(q,T/2),se=j+b;Qx(r,J,X,se,u.pointStyleWidth&&T)}else{let J=j+Math.max((y-M)/2,0),X=p.leftForLtr(q,T),se=ei(G.borderRadius);if(r.beginPath(),Object.values(se).some((ge)=>ge!==0))zu(r,{x:X,y:J,w:T,h:M,radius:se});else r.rect(X,J,T,M);if(r.fill(),Y!==0)r.stroke()}r.restore()},A=function(q,j,G){Jr(r,G.text,q,j+I/2,h,{strikethrough:G.hidden,textAlign:p.textAlign(G.textAlign)})},B=this.isHorizontal(),z=this._computeTitleHeight();if(B)v={x:Ba(l,this.left+g,this.right-s[0]),y:this.top+g+z,line:0};else v={x:this.left+g,y:Ba(l,this.top+z+g,this.bottom-o[0].height),line:0};sv(this.ctx,a.textDirection);let H=I+g;this.legendItems.forEach((q,j)=>{r.strokeStyle=q.fontColor,r.fillStyle=q.fontColor;let G=r.measureText(q.text).width,Y=p.textAlign(q.textAlign||(q.textAlign=u.textAlign)),J=T+b+G,X=v.x,se=v.y;if(p.setWidth(this.width),B){if(j>0&&X+J+g>this.right)se=v.y+=H,v.line++,X=v.x=Ba(l,this.left+g,this.right-s[v.line])}else if(j>0&&se+H>this.bottom)X=v.x=X+o[v.line].width+g,v.line++,se=v.y=Ba(l,this.top+z+g,this.bottom-o[v.line].height);let ge=p.x(X);if(w(ge,se,q),X=kk(Y,X+T+b,B?X+J:this.right,a.rtl),A(p.x(X),se,q),B)v.x+=J+g;else if(typeof q.text!=="string"){let be=h.lineHeight;v.y+=cI(q,be)+g}else v.y+=H}),rv(this.ctx,a.textDirection)}drawTitle(){let a=this.options,o=a.title,s=ha(o.font),r=Na(o.padding);if(!o.display)return;let l=il(a.rtl,this.left,this.width),u=this.ctx,d=o.position,p=s.size/2,h=r.top+p,g,y=this.left,b=this.width;if(this.isHorizontal())b=Math.max(...this.lineWidths),g=this.top+h,y=Ba(a.align,y,this.right-b);else{let T=this.columnSizes.reduce((M,I)=>Math.max(M,I.height),0);g=h+Ba(a.align,this.top,this.bottom-T-a.labels.padding-this._computeTitleHeight())}let v=Ba(d,y,y+b);u.textAlign=l.textAlign(rm(d)),u.textBaseline="middle",u.strokeStyle=o.color,u.fillStyle=o.color,u.font=s.string,Jr(u,o.text,v,g,s)}_computeTitleHeight(){let a=this.options.title,o=ha(a.font),s=Na(a.padding);return a.display?o.lineHeight+s.height:0}_getLegendItemAt(a,o){let s,r,l;if(Fs(a,this.left,this.right)&&Fs(o,this.top,this.bottom)){l=this.legendHitBoxes;for(s=0;s<l.length;++s)if(r=l[s],Fs(a,r.left,r.left+r.width)&&Fs(o,r.top,r.top+r.height))return this.legendItems[s]}return null}handleEvent(a){let o=this.options;if(!rN(a.type,o))return;let s=this._getLegendItemAt(a.x,a.y);if(a.type==="mousemove"||a.type==="mouseout"){let r=this._hoveredItem,l=aN(r,s);if(r&&!l)Ot(o.onLeave,[a,r,this],this);if(this._hoveredItem=s,s&&!l)Ot(o.onHover,[a,s,this],this)}else if(s)Ot(o.onClick,[a,s,this],this)}}function oN(a,o,s,r,l){let u=nN(r,a,o,s),d=sN(l,r,o.lineHeight);return{itemWidth:u,itemHeight:d}}function nN(a,o,s,r){let l=a.text;if(l&&typeof l!=="string")l=l.reduce((u,d)=>u.length>d.length?u:d);return o+s.size/2+r.measureText(l).width}function sN(a,o,s){let r=a;if(typeof o.text!=="string")r=cI(o,s);return r}function cI(a,o){let s=a.text?a.text.length:0;return o*s}function rN(a,o){if((a==="mousemove"||a==="mouseout")&&(o.onHover||o.onLeave))return!0;if(o.onClick&&(a==="click"||a==="mouseup"))return!0;return!1}var dI={id:"legend",_element:wv,start(a,o,s){let r=a.legend=new wv({ctx:a.ctx,options:s,chart:a});nn.configure(a,r,s),nn.addBox(a,r)},stop(a){nn.removeBox(a,a.legend),delete a.legend},beforeUpdate(a,o,s){let r=a.legend;nn.configure(a,r,s),r.options=s},afterUpdate(a){let o=a.legend;o.buildLabels(),o.adjustHitBoxes()},afterEvent(a,o){if(!o.replay)a.legend.handleEvent(o.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(a,o,s){let r=o.datasetIndex,l=s.chart;if(l.isDatasetVisible(r))l.hide(r),o.hidden=!0;else l.show(r),o.hidden=!1},onHover:null,onLeave:null,labels:{color:(a)=>a.chart.options.color,boxWidth:40,padding:10,generateLabels(a){let o=a.data.datasets,{labels:{usePointStyle:s,pointStyle:r,textAlign:l,color:u,useBorderRadius:d,borderRadius:p}}=a.legend.options;return a._getSortedDatasetMetas().map((h)=>{let g=h.controller.getStyle(s?0:void 0),y=Na(g.borderWidth);return{text:o[h.index].label,fillStyle:g.backgroundColor,fontColor:u,hidden:!h.visible,lineCap:g.borderCapStyle,lineDash:g.borderDash,lineDashOffset:g.borderDashOffset,lineJoin:g.borderJoinStyle,lineWidth:(y.width+y.height)/4,strokeStyle:g.borderColor,pointStyle:r||g.pointStyle,rotation:g.rotation,textAlign:l||g.textAlign,borderRadius:d&&(p||g.borderRadius),datasetIndex:h.index}},this)}},title:{color:(a)=>a.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(a)=>!a.startsWith("on"),labels:{_scriptable:(a)=>!["generateLabels","filter","sort"].includes(a)}}};class Nv extends Gs{constructor(a){super();this.chart=a.chart,this.options=a.options,this.ctx=a.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(a,o){let s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=a,this.height=this.bottom=o;let r=zt(s.text)?s.text.length:1;this._padding=Na(s.padding);let l=r*ha(s.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=l;else this.width=l}isHorizontal(){let a=this.options.position;return a==="top"||a==="bottom"}_drawArgs(a){let{top:o,left:s,bottom:r,right:l,options:u}=this,d=u.align,p=0,h,g,y;if(this.isHorizontal())g=Ba(d,s,l),y=o+a,h=l-s;else{if(u.position==="left")g=s+a,y=Ba(d,r,o),p=sa*-0.5;else g=l-a,y=Ba(d,o,r),p=sa*0.5;h=r-o}return{titleX:g,titleY:y,maxWidth:h,rotation:p}}draw(){let a=this.ctx,o=this.options;if(!o.display)return;let s=ha(o.font),l=s.lineHeight/2+this._padding.top,{titleX:u,titleY:d,maxWidth:p,rotation:h}=this._drawArgs(l);Jr(a,o.text,0,0,s,{color:o.color,maxWidth:p,rotation:h,textAlign:rm(o.align),textBaseline:"middle",translation:[u,d]})}}function iN(a,o){let s=new Nv({ctx:a.ctx,options:o,chart:a});nn.configure(a,s,o),nn.addBox(a,s),a.titleBlock=s}var fI={id:"title",_element:Nv,start(a,o,s){iN(a,s)},stop(a){let o=a.titleBlock;nn.removeBox(a,o),delete a.titleBlock},beforeUpdate(a,o,s){let r=a.titleBlock;nn.configure(a,r,s),r.options=s},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2000},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};var Yd={average(a){if(!a.length)return!1;let o,s,r=new Set,l=0,u=0;for(o=0,s=a.length;o<s;++o){let p=a[o].element;if(p&&p.hasValue()){let h=p.tooltipPosition();r.add(h.x),l+=h.y,++u}}if(u===0||r.size===0)return!1;return{x:[...r].reduce((p,h)=>p+h)/r.size,y:l/u}},nearest(a,o){if(!a.length)return!1;let{x:s,y:r}=o,l=Number.POSITIVE_INFINITY,u,d,p;for(u=0,d=a.length;u<d;++u){let h=a[u].element;if(h&&h.hasValue()){let g=h.getCenterPoint(),y=tm(o,g);if(y<l)l=y,p=h}}if(p){let h=p.tooltipPosition();s=h.x,r=h.y}return{x:s,y:r}}};function ns(a,o){if(o)if(zt(o))Array.prototype.push.apply(a,o);else a.push(o);return a}function js(a){if((typeof a==="string"||a instanceof String)&&a.indexOf(`
256
- `)>-1)return a.split(`
257
- `);return a}function lN(a,o){let{element:s,datasetIndex:r,index:l}=o,u=a.getDatasetMeta(r).controller,{label:d,value:p}=u.getLabelAndValue(l);return{chart:a,label:d,parsed:u.getParsed(l),raw:a.data.datasets[r].data[l],formattedValue:p,dataset:u.getDataset(),dataIndex:l,datasetIndex:r,element:s}}function MM(a,o){let s=a.chart.ctx,{body:r,footer:l,title:u}=a,{boxWidth:d,boxHeight:p}=o,h=ha(o.bodyFont),g=ha(o.titleFont),y=ha(o.footerFont),b=u.length,v=l.length,T=r.length,M=Na(o.padding),I=M.height,w=0,A=r.reduce((H,q)=>H+q.before.length+q.lines.length+q.after.length,0);if(A+=a.beforeBody.length+a.afterBody.length,b)I+=b*g.lineHeight+(b-1)*o.titleSpacing+o.titleMarginBottom;if(A){let H=o.displayColors?Math.max(p,h.lineHeight):h.lineHeight;I+=T*H+(A-T)*h.lineHeight+(A-1)*o.bodySpacing}if(v)I+=o.footerMarginTop+v*y.lineHeight+(v-1)*o.footerSpacing;let B=0,z=function(H){w=Math.max(w,s.measureText(H).width+B)};return s.save(),s.font=g.string,Lt(a.title,z),s.font=h.string,Lt(a.beforeBody.concat(a.afterBody),z),B=o.displayColors?d+2+o.boxPadding:0,Lt(r,(H)=>{Lt(H.before,z),Lt(H.lines,z),Lt(H.after,z)}),B=0,s.font=y.string,Lt(a.footer,z),s.restore(),w+=M.width,{width:w,height:I}}function uN(a,o){let{y:s,height:r}=o;if(s<r/2)return"top";else if(s>a.height-r/2)return"bottom";return"center"}function cN(a,o,s,r){let{x:l,width:u}=r,d=s.caretSize+s.caretPadding;if(a==="left"&&l+u+d>o.width)return!0;if(a==="right"&&l-u-d<0)return!0}function dN(a,o,s,r){let{x:l,width:u}=s,{width:d,chartArea:{left:p,right:h}}=a,g="center";if(r==="center")g=l<=(p+h)/2?"left":"right";else if(l<=u/2)g="left";else if(l>=d-u/2)g="right";if(cN(g,a,o,s))g="center";return g}function IM(a,o,s){let r=s.yAlign||o.yAlign||uN(a,s);return{xAlign:s.xAlign||o.xAlign||dN(a,o,s,r),yAlign:r}}function fN(a,o){let{x:s,width:r}=a;if(o==="right")s-=r;else if(o==="center")s-=r/2;return s}function pN(a,o,s){let{y:r,height:l}=a;if(o==="top")r+=s;else if(o==="bottom")r-=l+s;else r-=l/2;return r}function AM(a,o,s,r){let{caretSize:l,caretPadding:u,cornerRadius:d}=a,{xAlign:p,yAlign:h}=s,g=l+u,{topLeft:y,topRight:b,bottomLeft:v,bottomRight:T}=ei(d),M=fN(o,p),I=pN(o,h,g);if(h==="center"){if(p==="left")M+=g;else if(p==="right")M-=g}else if(p==="left")M-=Math.max(y,v)+l;else if(p==="right")M+=Math.max(b,T)+l;return{x:mo(M,0,r.width-o.width),y:mo(I,0,r.height-o.height)}}function bm(a,o,s){let r=Na(s.padding);return o==="center"?a.x+a.width/2:o==="right"?a.x+a.width-r.right:a.x+r.left}function RM(a){return ns([],js(a))}function hN(a,o,s){return qs(a,{tooltip:o,tooltipItems:s,type:"tooltip"})}function DM(a,o){let s=o&&o.dataset&&o.dataset.tooltip&&o.dataset.tooltip.callbacks;return s?a.override(s):a}var pI={beforeTitle:os,title(a){if(a.length>0){let o=a[0],s=o.chart.data.labels,r=s?s.length:0;if(this&&this.options&&this.options.mode==="dataset")return o.dataset.label||"";else if(o.label)return o.label;else if(r>0&&o.dataIndex<r)return s[o.dataIndex]}return""},afterTitle:os,beforeBody:os,beforeLabel:os,label(a){if(this&&this.options&&this.options.mode==="dataset")return a.label+": "+a.formattedValue||a.formattedValue;let o=a.dataset.label||"";if(o)o+=": ";let s=a.formattedValue;if(!ht(s))o+=s;return o},labelColor(a){let s=a.chart.getDatasetMeta(a.datasetIndex).controller.getStyle(a.dataIndex);return{borderColor:s.borderColor,backgroundColor:s.backgroundColor,borderWidth:s.borderWidth,borderDash:s.borderDash,borderDashOffset:s.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(a){let s=a.chart.getDatasetMeta(a.datasetIndex).controller.getStyle(a.dataIndex);return{pointStyle:s.pointStyle,rotation:s.rotation}},afterLabel:os,afterBody:os,beforeFooter:os,footer:os,afterFooter:os};function bo(a,o,s,r){let l=a[o].call(s,r);if(typeof l>"u")return pI[o].call(s,r);return l}class kv extends Gs{static positioners=Yd;constructor(a){super();this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=a.chart,this.options=a.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(a){this.options=a,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let a=this._cachedAnimations;if(a)return a;let o=this.chart,s=this.options.setContext(this.getContext()),r=s.enabled&&o.options.animation&&s.animations,l=new Av(this.chart,r);if(r._cacheable)this._cachedAnimations=Object.freeze(l);return l}getContext(){return this.$context||(this.$context=hN(this.chart.getContext(),this,this._tooltipItems))}getTitle(a,o){let{callbacks:s}=o,r=bo(s,"beforeTitle",this,a),l=bo(s,"title",this,a),u=bo(s,"afterTitle",this,a),d=[];return d=ns(d,js(r)),d=ns(d,js(l)),d=ns(d,js(u)),d}getBeforeBody(a,o){return RM(bo(o.callbacks,"beforeBody",this,a))}getBody(a,o){let{callbacks:s}=o,r=[];return Lt(a,(l)=>{let u={before:[],lines:[],after:[]},d=DM(s,l);ns(u.before,js(bo(d,"beforeLabel",this,l))),ns(u.lines,bo(d,"label",this,l)),ns(u.after,js(bo(d,"afterLabel",this,l))),r.push(u)}),r}getAfterBody(a,o){return RM(bo(o.callbacks,"afterBody",this,a))}getFooter(a,o){let{callbacks:s}=o,r=bo(s,"beforeFooter",this,a),l=bo(s,"footer",this,a),u=bo(s,"afterFooter",this,a),d=[];return d=ns(d,js(r)),d=ns(d,js(l)),d=ns(d,js(u)),d}_createItems(a){let o=this._active,s=this.chart.data,r=[],l=[],u=[],d=[],p,h;for(p=0,h=o.length;p<h;++p)d.push(lN(this.chart,o[p]));if(a.filter)d=d.filter((g,y,b)=>a.filter(g,y,b,s));if(a.itemSort)d=d.sort((g,y)=>a.itemSort(g,y,s));return Lt(d,(g)=>{let y=DM(a.callbacks,g);r.push(bo(y,"labelColor",this,g)),l.push(bo(y,"labelPointStyle",this,g)),u.push(bo(y,"labelTextColor",this,g))}),this.labelColors=r,this.labelPointStyles=l,this.labelTextColors=u,this.dataPoints=d,d}update(a,o){let s=this.options.setContext(this.getContext()),r=this._active,l,u=[];if(!r.length){if(this.opacity!==0)l={opacity:0}}else{let d=Yd[s.position].call(this,r,this._eventPosition);u=this._createItems(s),this.title=this.getTitle(u,s),this.beforeBody=this.getBeforeBody(u,s),this.body=this.getBody(u,s),this.afterBody=this.getAfterBody(u,s),this.footer=this.getFooter(u,s);let p=this._size=MM(this,s),h=Object.assign({},d,p),g=IM(this.chart,s,h),y=AM(s,h,g,this.chart);this.xAlign=g.xAlign,this.yAlign=g.yAlign,l={opacity:1,x:y.x,y:y.y,width:p.width,height:p.height,caretX:d.x,caretY:d.y}}if(this._tooltipItems=u,this.$context=void 0,l)this._resolveAnimations().update(this,l);if(a&&s.external)s.external.call(this,{chart:this.chart,tooltip:this,replay:o})}drawCaret(a,o,s,r){let l=this.getCaretPosition(a,s,r);o.lineTo(l.x1,l.y1),o.lineTo(l.x2,l.y2),o.lineTo(l.x3,l.y3)}getCaretPosition(a,o,s){let{xAlign:r,yAlign:l}=this,{caretSize:u,cornerRadius:d}=s,{topLeft:p,topRight:h,bottomLeft:g,bottomRight:y}=ei(d),{x:b,y:v}=a,{width:T,height:M}=o,I,w,A,B,z,H;if(l==="center"){if(z=v+M/2,r==="left")I=b,w=I-u,B=z+u,H=z-u;else I=b+T,w=I+u,B=z-u,H=z+u;A=I}else{if(r==="left")w=b+Math.max(p,g)+u;else if(r==="right")w=b+T-Math.max(h,y)-u;else w=this.caretX;if(l==="top")B=v,z=B-u,I=w-u,A=w+u;else B=v+M,z=B+u,I=w+u,A=w-u;H=B}return{x1:I,x2:w,x3:A,y1:B,y2:z,y3:H}}drawTitle(a,o,s){let r=this.title,l=r.length,u,d,p;if(l){let h=il(s.rtl,this.x,this.width);a.x=bm(this,s.titleAlign,s),o.textAlign=h.textAlign(s.titleAlign),o.textBaseline="middle",u=ha(s.titleFont),d=s.titleSpacing,o.fillStyle=s.titleColor,o.font=u.string;for(p=0;p<l;++p)if(o.fillText(r[p],h.x(a.x),a.y+u.lineHeight/2),a.y+=u.lineHeight+d,p+1===l)a.y+=s.titleMarginBottom-d}}_drawColorBox(a,o,s,r,l){let u=this.labelColors[s],d=this.labelPointStyles[s],{boxHeight:p,boxWidth:h}=l,g=ha(l.bodyFont),y=bm(this,"left",l),b=r.x(y),v=p<g.lineHeight?(g.lineHeight-p)/2:0,T=o.y+v;if(l.usePointStyle){let M={radius:Math.min(h,p)/2,pointStyle:d.pointStyle,rotation:d.rotation,borderWidth:1},I=r.leftForLtr(b,h)+h/2,w=T+p/2;a.strokeStyle=l.multiKeyBackground,a.fillStyle=l.multiKeyBackground,um(a,M,I,w),a.strokeStyle=u.borderColor,a.fillStyle=u.backgroundColor,um(a,M,I,w)}else{a.lineWidth=it(u.borderWidth)?Math.max(...Object.values(u.borderWidth)):u.borderWidth||1,a.strokeStyle=u.borderColor,a.setLineDash(u.borderDash||[]),a.lineDashOffset=u.borderDashOffset||0;let M=r.leftForLtr(b,h),I=r.leftForLtr(r.xPlus(b,1),h-2),w=ei(u.borderRadius);if(Object.values(w).some((A)=>A!==0))a.beginPath(),a.fillStyle=l.multiKeyBackground,zu(a,{x:M,y:T,w:h,h:p,radius:w}),a.fill(),a.stroke(),a.fillStyle=u.backgroundColor,a.beginPath(),zu(a,{x:I,y:T+1,w:h-2,h:p-2,radius:w}),a.fill();else a.fillStyle=l.multiKeyBackground,a.fillRect(M,T,h,p),a.strokeRect(M,T,h,p),a.fillStyle=u.backgroundColor,a.fillRect(I,T+1,h-2,p-2)}a.fillStyle=this.labelTextColors[s]}drawBody(a,o,s){let{body:r}=this,{bodySpacing:l,bodyAlign:u,displayColors:d,boxHeight:p,boxWidth:h,boxPadding:g}=s,y=ha(s.bodyFont),b=y.lineHeight,v=0,T=il(s.rtl,this.x,this.width),M=function(G){o.fillText(G,T.x(a.x+v),a.y+b/2),a.y+=b+l},I=T.textAlign(u),w,A,B,z,H,q,j;o.textAlign=u,o.textBaseline="middle",o.font=y.string,a.x=bm(this,I,s),o.fillStyle=s.bodyColor,Lt(this.beforeBody,M),v=d&&I!=="right"?u==="center"?h/2+g:h+2+g:0;for(z=0,q=r.length;z<q;++z){if(w=r[z],A=this.labelTextColors[z],o.fillStyle=A,Lt(w.before,M),B=w.lines,d&&B.length)this._drawColorBox(o,a,z,T,s),b=Math.max(y.lineHeight,p);for(H=0,j=B.length;H<j;++H)M(B[H]),b=y.lineHeight;Lt(w.after,M)}v=0,b=y.lineHeight,Lt(this.afterBody,M),a.y-=l}drawFooter(a,o,s){let r=this.footer,l=r.length,u,d;if(l){let p=il(s.rtl,this.x,this.width);a.x=bm(this,s.footerAlign,s),a.y+=s.footerMarginTop,o.textAlign=p.textAlign(s.footerAlign),o.textBaseline="middle",u=ha(s.footerFont),o.fillStyle=s.footerColor,o.font=u.string;for(d=0;d<l;++d)o.fillText(r[d],p.x(a.x),a.y+u.lineHeight/2),a.y+=u.lineHeight+s.footerSpacing}}drawBackground(a,o,s,r){let{xAlign:l,yAlign:u}=this,{x:d,y:p}=a,{width:h,height:g}=s,{topLeft:y,topRight:b,bottomLeft:v,bottomRight:T}=ei(r.cornerRadius);if(o.fillStyle=r.backgroundColor,o.strokeStyle=r.borderColor,o.lineWidth=r.borderWidth,o.beginPath(),o.moveTo(d+y,p),u==="top")this.drawCaret(a,o,s,r);if(o.lineTo(d+h-b,p),o.quadraticCurveTo(d+h,p,d+h,p+b),u==="center"&&l==="right")this.drawCaret(a,o,s,r);if(o.lineTo(d+h,p+g-T),o.quadraticCurveTo(d+h,p+g,d+h-T,p+g),u==="bottom")this.drawCaret(a,o,s,r);if(o.lineTo(d+v,p+g),o.quadraticCurveTo(d,p+g,d,p+g-v),u==="center"&&l==="left")this.drawCaret(a,o,s,r);if(o.lineTo(d,p+y),o.quadraticCurveTo(d,p,d+y,p),o.closePath(),o.fill(),r.borderWidth>0)o.stroke()}_updateAnimationTarget(a){let o=this.chart,s=this.$animations,r=s&&s.x,l=s&&s.y;if(r||l){let u=Yd[a.position].call(this,this._active,this._eventPosition);if(!u)return;let d=this._size=MM(this,a),p=Object.assign({},u,this._size),h=IM(o,a,p),g=AM(a,p,h,o);if(r._to!==g.x||l._to!==g.y)this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=d.width,this.height=d.height,this.caretX=u.x,this.caretY=u.y,this._resolveAnimations().update(this,g)}}_willRender(){return!!this.opacity}draw(a){let o=this.options.setContext(this.getContext()),s=this.opacity;if(!s)return;this._updateAnimationTarget(o);let r={width:this.width,height:this.height},l={x:this.x,y:this.y};s=Math.abs(s)<0.001?0:s;let u=Na(o.padding),d=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(o.enabled&&d)a.save(),a.globalAlpha=s,this.drawBackground(l,a,r,o),sv(a,o.textDirection),l.y+=u.top,this.drawTitle(l,a,o),this.drawBody(l,a,o),this.drawFooter(l,a,o),rv(a,o.textDirection),a.restore()}getActiveElements(){return this._active||[]}setActiveElements(a,o){let s=this._active,r=a.map(({datasetIndex:d,index:p})=>{let h=this.chart.getDatasetMeta(d);if(!h)throw Error("Cannot find a dataset at index "+d);return{datasetIndex:d,element:h.data[p],index:p}}),l=!Pd(s,r),u=this._positionChanged(r,o);if(l||u)this._active=r,this._eventPosition=o,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(a,o,s=!0){if(o&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,l=this._active||[],u=this._getActiveElements(a,l,o,s),d=this._positionChanged(u,a),p=o||!Pd(u,l)||d;if(p){if(this._active=u,r.enabled||r.external)this._eventPosition={x:a.x,y:a.y},this.update(!0,o)}return p}_getActiveElements(a,o,s,r){let l=this.options;if(a.type==="mouseout")return[];if(!r)return o.filter((d)=>this.chart.data.datasets[d.datasetIndex]&&this.chart.getDatasetMeta(d.datasetIndex).controller.getParsed(d.index)!==void 0);let u=this.chart.getElementsAtEventForMode(a,l.mode,l,s);if(l.reverse)u.reverse();return u}_positionChanged(a,o){let{caretX:s,caretY:r,options:l}=this,u=Yd[l.position].call(this,a,o);return u!==!1&&(s!==u.x||r!==u.y)}}var hI={id:"tooltip",_element:kv,positioners:Yd,afterInit(a,o,s){if(s)a.tooltip=new kv({chart:a,options:s})},beforeUpdate(a,o,s){if(a.tooltip)a.tooltip.initialize(s)},reset(a,o,s){if(a.tooltip)a.tooltip.initialize(s)},afterDraw(a){let o=a.tooltip;if(o&&o._willRender()){let s={tooltip:o};if(a.notifyPlugins("beforeTooltipDraw",{...s,cancelable:!0})===!1)return;o.draw(a.ctx),a.notifyPlugins("afterTooltipDraw",s)}},afterEvent(a,o){if(a.tooltip){let s=o.replay;if(a.tooltip.handleEvent(o.event,s,o.inChartArea))o.changed=!0}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(a,o)=>o.bodyFont.size,boxWidth:(a,o)=>o.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:pI},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(a)=>a!=="filter"&&a!=="itemSort"&&a!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var mN=(a,o,s,r)=>{if(typeof o==="string")s=a.push(o)-1,r.unshift({index:s,label:o});else if(isNaN(o))s=null;return s};function gN(a,o,s,r){let l=a.indexOf(o);if(l===-1)return mN(a,o,s,r);let u=a.lastIndexOf(o);return l!==u?s:l}var bN=(a,o)=>a===null?null:mo(Math.round(a),0,o);function _M(a){let o=this.getLabels();if(a>=0&&a<o.length)return o[a];return a}class zv extends cl{static id="category";static defaults={ticks:{callback:_M}};constructor(a){super(a);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(a){let o=this._addedLabels;if(o.length){let s=this.getLabels();for(let{index:r,label:l}of o)if(s[r]===l)s.splice(r,1);this._addedLabels=[]}super.init(a)}parse(a,o){if(ht(a))return null;let s=this.getLabels();return o=isFinite(o)&&s[o]===a?o:gN(s,a,Ke(o,a),this._addedLabels),bN(o,s.length-1)}determineDataLimits(){let{minDefined:a,maxDefined:o}=this.getUserBounds(),{min:s,max:r}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!a)s=0;if(!o)r=this.getLabels().length-1}this.min=s,this.max=r}buildTicks(){let a=this.min,o=this.max,s=this.options.offset,r=[],l=this.getLabels();l=a===0&&o===l.length-1?l:l.slice(a,o+1),this._valueRange=Math.max(l.length-(s?0:1),1),this._startValue=this.min-(s?0.5:0);for(let u=a;u<=o;u++)r.push({value:u});return r}getLabelForValue(a){return _M.call(this,a)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(a){if(typeof a!=="number")a=this.parse(a);return a===null?NaN:this.getPixelForDecimal((a-this._startValue)/this._valueRange)}getPixelForTick(a){let o=this.ticks;if(a<0||a>o.length-1)return null;return this.getPixelForValue(o[a].value)}getValueForPixel(a){return Math.round(this._startValue+this.getDecimalForPixel(a)*this._valueRange)}getBasePixel(){return this.bottom}}function yN(a,o){let s=[],r=0.00000000000001,{bounds:l,step:u,min:d,max:p,precision:h,count:g,maxTicks:y,maxDigits:b,includeBounds:v}=a,T=u||1,M=y-1,{min:I,max:w}=o,A=!ht(d),B=!ht(p),z=!ht(g),H=(w-I)/(b+1),q=Ux((w-I)/M/T)*T,j,G,Y,J;if(q<0.00000000000001&&!A&&!B)return[{value:I},{value:w}];if(J=Math.ceil(w/q)-Math.floor(I/q),J>M)q=Ux(J*q/M/T)*T;if(!ht(h))j=Math.pow(10,h),q=Math.ceil(q*j)/j;if(l==="ticks")G=Math.floor(I/q)*q,Y=Math.ceil(w/q)*q;else G=I,Y=w;if(A&&B&&u&&yk((p-d)/u,q/1000))J=Math.round(Math.min((p-d)/q,y)),q=(p-d)/J,G=d,Y=p;else if(z)G=A?d:G,Y=B?p:Y,J=g-1,q=(Y-G)/J;else if(J=(Y-G)/q,Bu(J,Math.round(J),q/1000))J=Math.round(J);else J=Math.ceil(J);let X=Math.max(qx(q),qx(G));j=Math.pow(10,ht(h)?X:h),G=Math.round(G*j)/j,Y=Math.round(Y*j)/j;let se=0;if(A){if(v&&G!==d){if(s.push({value:d}),G<d)se++;if(Bu(Math.round((G+se*q)*j)/j,d,EM(d,H,a)))se++}else if(G<d)se++}for(;se<J;++se){let ge=Math.round((G+se*q)*j)/j;if(B&&ge>p)break;s.push({value:ge})}if(B&&v&&Y!==p)if(s.length&&Bu(s[s.length-1].value,p,EM(p,H,a)))s[s.length-1].value=p;else s.push({value:p});else if(!B||Y===p)s.push({value:Y});return s}function EM(a,o,{horizontal:s,minRotation:r}){let l=Us(r),u=(s?Math.sin(l):Math.cos(l))||0.001,d=0.75*o*(""+a).length;return Math.min(o/u,d)}class Wd extends cl{constructor(a){super(a);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(a,o){if(ht(a))return null;if((typeof a==="number"||a instanceof Number)&&!isFinite(+a))return null;return+a}handleTickRangeOptions(){let{beginAtZero:a}=this.options,{minDefined:o,maxDefined:s}=this.getUserBounds(),{min:r,max:l}=this,u=(p)=>r=o?r:p,d=(p)=>l=s?l:p;if(a){let p=Ln(r),h=Ln(l);if(p<0&&h<0)d(0);else if(p>0&&h>0)u(0)}if(r===l){let p=l===0?1:Math.abs(l*0.05);if(d(l+p),!a)u(r-p)}this.min=r,this.max=l}getTickLimit(){let a=this.options.ticks,{maxTicksLimit:o,stepSize:s}=a,r;if(s){if(r=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,r>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${r} ticks. Limiting to 1000.`),r=1000}else r=this.computeTickLimit(),o=o||11;if(o)r=Math.min(o,r);return r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let a=this.options,o=a.ticks,s=this.getTickLimit();s=Math.max(2,s);let r={maxTicks:s,bounds:a.bounds,min:a.min,max:a.max,precision:o.precision,step:o.stepSize,count:o.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:o.minRotation||0,includeBounds:o.includeBounds!==!1},l=this._range||this,u=yN(r,l);if(a.bounds==="ticks")Fx(u,this,"value");if(a.reverse)u.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return u}configure(){let a=this.ticks,o=this.min,s=this.max;if(super.configure(),this.options.offset&&a.length){let r=(s-o)/Math.max(a.length-1,1)/2;o-=r,s+=r}this._startValue=o,this._endValue=s,this._valueRange=s-o}getLabelForValue(a){return im(a,this.chart.options.locale,this.options.ticks.format)}}class Hv extends Wd{static id="linear";static defaults={ticks:{callback:Bd.formatters.numeric}};determineDataLimits(){let{min:a,max:o}=this.getMinMax(!0);this.min=Kt(a)?a:0,this.max=Kt(o)?o:1,this.handleTickRangeOptions()}computeTickLimit(){let a=this.isHorizontal(),o=a?this.width:this.height,s=Us(this.options.ticks.minRotation),r=(a?Math.sin(s):Math.cos(s))||0.001,l=this._resolveTickFontOptions(0);return Math.ceil(o/Math.min(40,l.lineHeight/r))}getPixelForValue(a){return a===null?NaN:this.getPixelForDecimal((a-this._startValue)/this._valueRange)}getValueForPixel(a){return this._startValue+this.getDecimalForPixel(a)*this._valueRange}}var Zd=(a)=>Math.floor(Hs(a)),ul=(a,o)=>Math.pow(10,Zd(a)+o);function OM(a){return a/Math.pow(10,Zd(a))===1}function PM(a,o,s){let r=Math.pow(10,s),l=Math.floor(a/r);return Math.ceil(o/r)-l}function xN(a,o){let s=o-a,r=Zd(s);while(PM(a,o,r)>10)r++;while(PM(a,o,r)<10)r--;return Math.min(r,Zd(a))}function vN(a,{min:o,max:s}){o=go(a.min,o);let r=[],l=Zd(o),u=xN(o,s),d=u<0?Math.pow(10,Math.abs(u)):1,p=Math.pow(10,u),h=l>u?Math.pow(10,l):0,g=Math.round((o-h)*d)/d,y=Math.floor((o-h)/p/10)*p*10,b=Math.floor((g-y)/Math.pow(10,u)),v=go(a.min,Math.round((h+y+b*Math.pow(10,u))*d)/d);while(v<s){if(r.push({value:v,major:OM(v),significand:b}),b>=10)b=b<15?15:20;else b++;if(b>=20)u++,b=2,d=u>=0?1:d;v=Math.round((h+y+b*Math.pow(10,u))*d)/d}let T=go(a.max,v);return r.push({value:T,major:OM(T),significand:b}),r}class SN extends cl{static id="logarithmic";static defaults={ticks:{callback:Bd.formatters.logarithmic,major:{enabled:!0}}};constructor(a){super(a);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(a,o){let s=Wd.prototype.parse.apply(this,[a,o]);if(s===0){this._zero=!0;return}return Kt(s)&&s>0?s:null}determineDataLimits(){let{min:a,max:o}=this.getMinMax(!0);if(this.min=Kt(a)?Math.max(0,a):null,this.max=Kt(o)?Math.max(0,o):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!Kt(this._userMin))this.min=a===ul(this.min,0)?ul(this.min,-1):ul(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:a,maxDefined:o}=this.getUserBounds(),s=this.min,r=this.max,l=(d)=>s=a?s:d,u=(d)=>r=o?r:d;if(s===r)if(s<=0)l(1),u(10);else l(ul(s,-1)),u(ul(r,1));if(s<=0)l(ul(r,-1));if(r<=0)u(ul(s,1));this.min=s,this.max=r}buildTicks(){let a=this.options,o={min:this._userMin,max:this._userMax},s=vN(o,this);if(a.bounds==="ticks")Fx(s,this,"value");if(a.reverse)s.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return s}getLabelForValue(a){return a===void 0?"0":im(a,this.chart.options.locale,this.options.ticks.format)}configure(){let a=this.min;super.configure(),this._startValue=Hs(a),this._valueRange=Hs(this.max)-Hs(a)}getPixelForValue(a){if(a===void 0||a===0)a=this.min;if(a===null||isNaN(a))return NaN;return this.getPixelForDecimal(a===this.min?0:(Hs(a)-this._startValue)/this._valueRange)}getValueForPixel(a){let o=this.getDecimalForPixel(a);return Math.pow(10,this._startValue+o*this._valueRange)}}function Mv(a){let o=a.ticks;if(o.display&&a.display){let s=Na(o.backdropPadding);return Ke(o.font&&o.font.size,Jt.font.size)+s.height}return 0}function LN(a,o,s){return s=zt(s)?s:[s],{w:Dk(a,o.string,s),h:s.length*o.lineHeight}}function BM(a,o,s,r,l){if(a===r||a===l)return{start:o-s/2,end:o+s/2};else if(a<r||a>l)return{start:o-s,end:o};return{start:o,end:o+s}}function CN(a){let o={l:a.left+a._padding.left,r:a.right-a._padding.right,t:a.top+a._padding.top,b:a.bottom-a._padding.bottom},s=Object.assign({},o),r=[],l=[],u=a._pointLabels.length,d=a.options.pointLabels,p=d.centerPointLabels?sa/u:0;for(let h=0;h<u;h++){let g=d.setContext(a.getPointLabelContext(h));l[h]=g.padding;let y=a.getPointPosition(h,a.drawingArea+l[h],p),b=ha(g.font),v=LN(a.ctx,b,a._pointLabels[h]);r[h]=v;let T=fo(a.getIndexAngle(h)+p),M=Math.round(nm(T)),I=BM(M,y.x,v.w,0,180),w=BM(M,y.y,v.h,90,270);TN(s,o,T,I,w)}a.setCenterPoint(o.l-s.l,s.r-o.r,o.t-s.t,s.b-o.b),a._pointLabelItems=MN(a,r,l)}function TN(a,o,s,r,l){let u=Math.abs(Math.sin(s)),d=Math.abs(Math.cos(s)),p=0,h=0;if(r.start<o.l)p=(o.l-r.start)/u,a.l=Math.min(a.l,o.l-p);else if(r.end>o.r)p=(r.end-o.r)/u,a.r=Math.max(a.r,o.r+p);if(l.start<o.t)h=(o.t-l.start)/d,a.t=Math.min(a.t,o.t-h);else if(l.end>o.b)h=(l.end-o.b)/d,a.b=Math.max(a.b,o.b+h)}function wN(a,o,s){let r=a.drawingArea,{extra:l,additionalAngle:u,padding:d,size:p}=s,h=a.getPointPosition(o,r+l+d,u),g=Math.round(nm(fo(h.angle+po))),y=RN(h.y,p.h,g),b=IN(g),v=AN(h.x,p.w,b);return{visible:!0,x:h.x,y,textAlign:b,left:v,top:y,right:v+p.w,bottom:y+p.h}}function kN(a,o){if(!o)return!0;let{left:s,top:r,right:l,bottom:u}=a;return!(as({x:s,y:r},o)||as({x:s,y:u},o)||as({x:l,y:r},o)||as({x:l,y:u},o))}function MN(a,o,s){let r=[],l=a._pointLabels.length,u=a.options,{centerPointLabels:d,display:p}=u.pointLabels,h={extra:Mv(u)/2,additionalAngle:d?sa/l:0},g;for(let y=0;y<l;y++){h.padding=s[y],h.size=o[y];let b=wN(a,y,h);if(r.push(b),p==="auto"){if(b.visible=kN(b,g),b.visible)g=b}}return r}function IN(a){if(a===0||a===180)return"center";else if(a<180)return"left";return"right"}function AN(a,o,s){if(s==="right")a-=o;else if(s==="center")a-=o/2;return a}function RN(a,o,s){if(s===90||s===270)a-=o/2;else if(s>270||s<90)a-=o;return a}function DN(a,o,s){let{left:r,top:l,right:u,bottom:d}=s,{backdropColor:p}=o;if(!ht(p)){let h=ei(o.borderRadius),g=Na(o.backdropPadding);a.fillStyle=p;let y=r-g.left,b=l-g.top,v=u-r+g.width,T=d-l+g.height;if(Object.values(h).some((M)=>M!==0))a.beginPath(),zu(a,{x:y,y:b,w:v,h:T,radius:h}),a.fill();else a.fillRect(y,b,v,T)}}function _N(a,o){let{ctx:s,options:{pointLabels:r}}=a;for(let l=o-1;l>=0;l--){let u=a._pointLabelItems[l];if(!u.visible)continue;let d=r.setContext(a.getPointLabelContext(l));DN(s,d,u);let p=ha(d.font),{x:h,y:g,textAlign:y}=u;Jr(s,a._pointLabels[l],h,g+p.lineHeight/2,p,{color:d.color,textAlign:y,textBaseline:"middle"})}}function mI(a,o,s,r){let{ctx:l}=a;if(s)l.arc(a.xCenter,a.yCenter,o,0,ho);else{let u=a.getPointPosition(0,o);l.moveTo(u.x,u.y);for(let d=1;d<r;d++)u=a.getPointPosition(d,o),l.lineTo(u.x,u.y)}}function EN(a,o,s,r,l){let u=a.ctx,d=o.circular,{color:p,lineWidth:h}=o;if(!d&&!r||!p||!h||s<0)return;u.save(),u.strokeStyle=p,u.lineWidth=h,u.setLineDash(l.dash||[]),u.lineDashOffset=l.dashOffset,u.beginPath(),mI(a,s,d,r),u.closePath(),u.stroke(),u.restore()}function ON(a,o,s){return qs(a,{label:s,index:o,type:"pointLabel"})}class PN extends Wd{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Bd.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(a){return a},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(a){super(a);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let a=this._padding=Na(Mv(this.options)/2),o=this.width=this.maxWidth-a.width,s=this.height=this.maxHeight-a.height;this.xCenter=Math.floor(this.left+o/2+a.left),this.yCenter=Math.floor(this.top+s/2+a.top),this.drawingArea=Math.floor(Math.min(o,s)/2)}determineDataLimits(){let{min:a,max:o}=this.getMinMax(!1);this.min=Kt(a)&&!isNaN(a)?a:0,this.max=Kt(o)&&!isNaN(o)?o:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Mv(this.options))}generateTickLabels(a){Wd.prototype.generateTickLabels.call(this,a),this._pointLabels=this.getLabels().map((o,s)=>{let r=Ot(this.options.pointLabels.callback,[o,s],this);return r||r===0?r:""}).filter((o,s)=>this.chart.getDataVisibility(s))}fit(){let a=this.options;if(a.display&&a.pointLabels.display)CN(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(a,o,s,r){this.xCenter+=Math.floor((a-o)/2),this.yCenter+=Math.floor((s-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(a,o,s,r))}getIndexAngle(a){let o=ho/(this._pointLabels.length||1),s=this.options.startAngle||0;return fo(a*o+Us(s))}getDistanceFromCenterForValue(a){if(ht(a))return NaN;let o=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-a)*o;return(a-this.min)*o}getValueForDistanceFromCenter(a){if(ht(a))return NaN;let o=a/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-o:this.min+o}getPointLabelContext(a){let o=this._pointLabels||[];if(a>=0&&a<o.length){let s=o[a];return ON(this.getContext(),a,s)}}getPointPosition(a,o,s=0){let r=this.getIndexAngle(a)-po+s;return{x:Math.cos(r)*o+this.xCenter,y:Math.sin(r)*o+this.yCenter,angle:r}}getPointPositionForValue(a,o){return this.getPointPosition(a,this.getDistanceFromCenterForValue(o))}getBasePosition(a){return this.getPointPositionForValue(a||0,this.getBaseValue())}getPointLabelPosition(a){let{left:o,top:s,right:r,bottom:l}=this._pointLabelItems[a];return{left:o,top:s,right:r,bottom:l}}drawBackground(){let{backgroundColor:a,grid:{circular:o}}=this.options;if(a){let s=this.ctx;s.save(),s.beginPath(),mI(this,this.getDistanceFromCenterForValue(this._endValue),o,this._pointLabels.length),s.closePath(),s.fillStyle=a,s.fill(),s.restore()}}drawGrid(){let a=this.ctx,o=this.options,{angleLines:s,grid:r,border:l}=o,u=this._pointLabels.length,d,p,h;if(o.pointLabels.display)_N(this,u);if(r.display)this.ticks.forEach((g,y)=>{if(y!==0||y===0&&this.min<0){p=this.getDistanceFromCenterForValue(g.value);let b=this.getContext(y),v=r.setContext(b),T=l.setContext(b);EN(this,v,p,u,T)}});if(s.display){a.save();for(d=u-1;d>=0;d--){let g=s.setContext(this.getPointLabelContext(d)),{color:y,lineWidth:b}=g;if(!b||!y)continue;a.lineWidth=b,a.strokeStyle=y,a.setLineDash(g.borderDash),a.lineDashOffset=g.borderDashOffset,p=this.getDistanceFromCenterForValue(o.reverse?this.min:this.max),h=this.getPointPosition(d,p),a.beginPath(),a.moveTo(this.xCenter,this.yCenter),a.lineTo(h.x,h.y),a.stroke()}a.restore()}}drawBorder(){}drawLabels(){let a=this.ctx,o=this.options,s=o.ticks;if(!s.display)return;let r=this.getIndexAngle(0),l,u;a.save(),a.translate(this.xCenter,this.yCenter),a.rotate(r),a.textAlign="center",a.textBaseline="middle",this.ticks.forEach((d,p)=>{if(p===0&&this.min>=0&&!o.reverse)return;let h=s.setContext(this.getContext(p)),g=ha(h.font);if(l=this.getDistanceFromCenterForValue(this.ticks[p].value),h.showLabelBackdrop){a.font=g.string,u=a.measureText(d.label).width,a.fillStyle=h.backdropColor;let y=Na(h.backdropPadding);a.fillRect(-u/2-y.left,-l-g.size/2-y.top,u+y.width,g.size+y.height)}Jr(a,d.label,0,-l,g,{color:h.color,strokeColor:h.textStrokeColor,strokeWidth:h.textStrokeWidth})}),a.restore()}drawTitle(){}}var Tm={millisecond:{common:!0,size:1,steps:1000},second:{common:!0,size:1000,steps:60},minute:{common:!0,size:60000,steps:60},hour:{common:!0,size:3600000,steps:24},day:{common:!0,size:86400000,steps:30},week:{common:!1,size:604800000,steps:4},month:{common:!0,size:2628000000,steps:12},quarter:{common:!1,size:7884000000,steps:4},year:{common:!0,size:31540000000}},yo=Object.keys(Tm);function NM(a,o){return a-o}function zM(a,o){if(ht(o))return null;let s=a._adapter,{parser:r,round:l,isoWeekday:u}=a._parseOpts,d=o;if(typeof r==="function")d=r(d);if(!Kt(d))d=typeof r==="string"?s.parse(d,r):s.parse(d);if(d===null)return null;if(l)d=l==="week"&&(Nu(u)||u===!0)?s.startOf(d,"isoWeek",u):s.startOf(d,l);return+d}function HM(a,o,s,r){let l=yo.length;for(let u=yo.indexOf(a);u<l-1;++u){let d=Tm[yo[u]],p=d.steps?d.steps:Number.MAX_SAFE_INTEGER;if(d.common&&Math.ceil((s-o)/(p*d.size))<=r)return yo[u]}return yo[l-1]}function BN(a,o,s,r,l){for(let u=yo.length-1;u>=yo.indexOf(s);u--){let d=yo[u];if(Tm[d].common&&a._adapter.diff(l,r,d)>=o-1)return d}return yo[s?yo.indexOf(s):0]}function NN(a){for(let o=yo.indexOf(a)+1,s=yo.length;o<s;++o)if(Tm[yo[o]].common)return yo[o]}function UM(a,o,s){if(!s)a[o]=!0;else if(s.length){let{lo:r,hi:l}=sm(s,o),u=s[r]>=o?s[r]:s[l];a[u]=!0}}function zN(a,o,s,r){let l=a._adapter,u=+l.startOf(o[0].value,r),d=o[o.length-1].value,p,h;for(p=u;p<=d;p=+l.add(p,1,r))if(h=s[p],h>=0)o[h].major=!0;return o}function FM(a,o,s){let r=[],l={},u=o.length,d,p;for(d=0;d<u;++d)p=o[d],l[p]=d,r.push({value:p,major:!1});return u===0||!s?r:zN(a,r,l,s)}class Iv extends cl{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(a){super(a);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(a,o={}){let s=a.time||(a.time={}),r=this._adapter=new xP._date(a.adapters.date);r.init(o),Ou(s.displayFormats,r.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(a),this._normalized=o.normalized}parse(a,o){if(a===void 0)return null;return zM(this,a)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let a=this.options,o=this._adapter,s=a.time.unit||"day",{min:r,max:l,minDefined:u,maxDefined:d}=this.getUserBounds();function p(h){if(!u&&!isNaN(h.min))r=Math.min(r,h.min);if(!d&&!isNaN(h.max))l=Math.max(l,h.max)}if(!u||!d){if(p(this._getLabelBounds()),a.bounds!=="ticks"||a.ticks.source!=="labels")p(this.getMinMax(!1))}r=Kt(r)&&!isNaN(r)?r:+o.startOf(Date.now(),s),l=Kt(l)&&!isNaN(l)?l:+o.endOf(Date.now(),s)+1,this.min=Math.min(r,l-1),this.max=Math.max(r+1,l)}_getLabelBounds(){let a=this.getLabelTimestamps(),{POSITIVE_INFINITY:o,NEGATIVE_INFINITY:s}=Number;if(a.length)o=a[0],s=a[a.length-1];return{min:o,max:s}}buildTicks(){let a=this.options,{time:o,ticks:s}=a,r=s.source==="labels"?this.getLabelTimestamps():this._generate();if(a.bounds==="ticks"&&r.length)this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1];let l=this.min,u=this.max,d=Lk(r,l,u);if(this._unit=o.unit||(s.autoSkip?HM(o.minUnit,this.min,this.max,this._getLabelCapacity(l)):BN(this,d.length,o.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:NN(this._unit),this.initOffsets(r),a.reverse)d.reverse();return FM(this,d,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((a)=>+a.value))}initOffsets(a=[]){let o=0,s=0,r,l;if(this.options.offset&&a.length){if(r=this.getDecimalForValue(a[0]),a.length===1)o=1-r;else o=(this.getDecimalForValue(a[1])-r)/2;if(l=this.getDecimalForValue(a[a.length-1]),a.length===1)s=l;else s=(l-this.getDecimalForValue(a[a.length-2]))/2}let u=a.length<3?0.5:0.25;o=mo(o,0,u),s=mo(s,0,u),this._offsets={start:o,end:s,factor:1/(o+1+s)}}_generate(){let a=this._adapter,o=this.min,s=this.max,r=this.options,l=r.time,u=l.unit||HM(l.minUnit,o,s,this._getLabelCapacity(o)),d=Ke(r.ticks.stepSize,1),p=u==="week"?l.isoWeekday:!1,h=Nu(p)||p===!0,g={},y=o,b,v;if(h)y=+a.startOf(y,"isoWeek",p);if(y=+a.startOf(y,h?"day":u),a.diff(s,o,u)>1e5*d)throw Error(o+" and "+s+" are too far apart with stepSize of "+d+" "+u);let T=r.ticks.source==="data"&&this.getDataTimestamps();for(b=y,v=0;b<s;b=+a.add(b,d,u),v++)UM(g,b,T);if(b===s||r.bounds==="ticks"||v===1)UM(g,b,T);return Object.keys(g).sort(NM).map((M)=>+M)}getLabelForValue(a){let o=this._adapter,s=this.options.time;if(s.tooltipFormat)return o.format(a,s.tooltipFormat);return o.format(a,s.displayFormats.datetime)}format(a,o){let r=this.options.time.displayFormats,l=this._unit,u=o||r[l];return this._adapter.format(a,u)}_tickFormatFunction(a,o,s,r){let l=this.options,u=l.ticks.callback;if(u)return Ot(u,[a,o,s],this);let d=l.time.displayFormats,p=this._unit,h=this._majorUnit,g=p&&d[p],y=h&&d[h],b=s[o],v=h&&y&&b&&b.major;return this._adapter.format(a,r||(v?y:g))}generateTickLabels(a){let o,s,r;for(o=0,s=a.length;o<s;++o)r=a[o],r.label=this._tickFormatFunction(r.value,o,a)}getDecimalForValue(a){return a===null?NaN:(a-this.min)/(this.max-this.min)}getPixelForValue(a){let o=this._offsets,s=this.getDecimalForValue(a);return this.getPixelForDecimal((o.start+s)*o.factor)}getValueForPixel(a){let o=this._offsets,s=this.getDecimalForPixel(a)/o.factor-o.end;return this.min+s*(this.max-this.min)}_getLabelSize(a){let o=this.options.ticks,s=this.ctx.measureText(a).width,r=Us(this.isHorizontal()?o.maxRotation:o.minRotation),l=Math.cos(r),u=Math.sin(r),d=this._resolveTickFontOptions(0).size;return{w:s*l+d*u,h:s*u+d*l}}_getLabelCapacity(a){let o=this.options.time,s=o.displayFormats,r=s[o.unit]||s.millisecond,l=this._tickFormatFunction(a,0,FM(this,[a],this._majorUnit),r),u=this._getLabelSize(l),d=Math.floor(this.isHorizontal()?this.width/u.w:this.height/u.h)-1;return d>0?d:1}getDataTimestamps(){let a=this._cache.data||[],o,s;if(a.length)return a;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(o=0,s=r.length;o<s;++o)a=a.concat(r[o].controller.getAllParsedValues(this));return this._cache.data=this.normalize(a)}getLabelTimestamps(){let a=this._cache.labels||[],o,s;if(a.length)return a;let r=this.getLabels();for(o=0,s=r.length;o<s;++o)a.push(zM(this,r[o]));return this._cache.labels=this._normalized?a:this.normalize(a)}normalize(a){return Gx(a.sort(NM))}}function ym(a,o,s){let r=0,l=a.length-1,u,d,p,h;if(s){if(o>=a[r].pos&&o<=a[l].pos)({lo:r,hi:l}=Wr(a,"pos",o));({pos:u,time:p}=a[r]),{pos:d,time:h}=a[l]}else{if(o>=a[r].time&&o<=a[l].time)({lo:r,hi:l}=Wr(a,"time",o));({time:u,pos:p}=a[r]),{time:d,pos:h}=a[l]}let g=d-u;return g?p+(h-p)*(o-u)/g:p}class HN extends Iv{static id="timeseries";static defaults=Iv.defaults;constructor(a){super(a);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let a=this._getTimestampsForTable(),o=this._table=this.buildLookupTable(a);this._minPos=ym(o,this.min),this._tableRange=ym(o,this.max)-this._minPos,super.initOffsets(a)}buildLookupTable(a){let{min:o,max:s}=this,r=[],l=[],u,d,p,h,g;for(u=0,d=a.length;u<d;++u)if(h=a[u],h>=o&&h<=s)r.push(h);if(r.length<2)return[{time:o,pos:0},{time:s,pos:1}];for(u=0,d=r.length;u<d;++u)if(g=r[u+1],p=r[u-1],h=r[u],Math.round((g+p)/2)!==h)l.push({time:h,pos:u/(d-1)});return l}_generate(){let a=this.min,o=this.max,s=super.getDataTimestamps();if(!s.includes(a)||!s.length)s.splice(0,0,a);if(!s.includes(o)||s.length===1)s.push(o);return s.sort((r,l)=>r-l)}_getTimestampsForTable(){let a=this._cache.all||[];if(a.length)return a;let o=this.getDataTimestamps(),s=this.getLabelTimestamps();if(o.length&&s.length)a=this.normalize(o.concat(s));else a=o.length?o:s;return a=this._cache.all=a,a}getDecimalForValue(a){return(ym(this._table,a)-this._minPos)/this._tableRange}getValueForPixel(a){let o=this._offsets,s=this.getDecimalForPixel(a)/o.factor-o.end;return ym(this._table,s*this._tableRange+this._minPos,!0)}}dl.register(zv,Hv,Pv,Hu,Ov,fI,hI,dI,uI);var jR=Q(vI(),1);var Js=Q(dt(),1);var Im=Q(dt(),1);var SI=(a)=>a?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function LI(a,o,s=[]){if(o==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:SI(a),size:24,node:o,...s.length>0?{aliases:s}:{}}}var CI=(a)=>{let o="",s=!1;for(let r of a){if(r==="-"||r==="_"||r<=" "){s=o.length>0;continue}if(o.length===0)o+=r.toLowerCase();else o+=s?r.toUpperCase():r;s=!1}return o};var TI=(a)=>{let o=CI(a);return o.charAt(0).toUpperCase()+o.slice(1)};var Jd=Q(dt(),1);var Kd=(...a)=>a.filter((o,s,r)=>Boolean(o)&&o.trim()!==""&&r.indexOf(o)===s).join(" ").trim();var oi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function qv(a){return a!==null&&a!==void 0}function wI(a,o={}){let s=o.attributeNames??{},r=(v)=>s[v]??v,l=a.size??a.width??oi.width,u=a.size??a.height??oi.height,d=a.aliases?.filter((v)=>typeof v==="string"&&v.trim()!=="").map((v)=>`lucide-${v}`)??[],p=[...a.name?[`lucide-${a.name}`]:[],...d],h=o.className?.split(" ").filter(Boolean)??[],g=o.includeDefaultClasses===!1?Kd(...h):Kd("lucide",...p,...h),y=o.absoluteStrokeWidth?Number(o.strokeWidth??oi["stroke-width"])*Number(a.size??a.width??oi.width)/Number(o.size??o.width??oi.width):o.strokeWidth??oi["stroke-width"];return["svg",{...Object.entries(oi).reduce((v,[T,M])=>(v[r(T)]=M,v),{}),..."color"in o&&o.color&&{[r("stroke")]:o.color},..."size"in o&&qv(o.size)&&{[r("width")]:o.size,[r("height")]:o.size},..."width"in o&&qv(o.width)&&{[r("width")]:o.width},..."height"in o&&qv(o.height)&&{[r("height")]:o.height},[r("stroke-width")]:y,...g&&{[r("class")]:g},[r("viewBox")]:`0 0 ${l} ${u}`,...o.hasA11yProp===!1?{[r("aria-hidden")]:"true"}:{},..."attributes"in o&&o.attributes},a.node.map((v)=>{let[T,M,I]=v,w=o.nonScalingStroke?{[r("vector-effect")]:"non-scaling-stroke",...M}:M;return I?[T,w,I]:[T,w]})]}function kI(a,o={}){return wI(a,{...o,attributeNames:{...o.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var MI=(a)=>{for(let o in a)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};var qu=Q(dt(),1),GN=qu.createContext({});var II=()=>qu.useContext(GN);var AI=Jd.forwardRef(({color:a,size:o,width:s,height:r,strokeWidth:l,absoluteStrokeWidth:u,nonScalingStroke:d,className:p="",children:h,iconNode:g=[],icon:y={node:g,aliases:[],size:24},...b},v)=>{let{size:T=24,strokeWidth:M=2,absoluteStrokeWidth:I=!1,nonScalingStroke:w=!1,color:A="currentColor",className:B=""}=II()??{},z=Boolean(h)||MI(b),[H,q,j=[]]=kI(y,{color:a??A,width:s??o??T,height:r??o??T,strokeWidth:l??M,absoluteStrokeWidth:u??I,nonScalingStroke:d??w,className:Kd(B,p),hasA11yProp:z,attributes:b});return Jd.createElement(H,{ref:v,...q},[...j.map(([G,Y])=>Jd.createElement(G,Y)),...Array.isArray(h)?h:[h]])});function we(a,o=[],s=[]){let r=typeof a==="string"?LI(a,o,s):a,l=Im.forwardRef(({className:u,...d},p)=>Im.createElement(AI,{ref:p,icon:r,className:u,...d}));if(r.name)l.displayName=TI(r.name);return l}var RI={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};RI.node;var ni=we(RI);var DI={name:"face-slightly-smiling",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M16.472 15a6 6 0 01-8.943 0",key:"7qomzy"}],["path",{d:"M9 10V9",key:"1lazqi"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["smile"]};DI.node;var si=we(DI);var _I={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};_I.node;var ef=we(_I);var EI={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};EI.node;var tf=we(EI);var OI={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};OI.node;var pl=we(OI);var PI={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};PI.node;var Xs=we(PI);var BI={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};BI.node;var hl=we(BI);var NI={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};NI.node;var af=we(NI);var zI={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};zI.node;var of=we(zI);var HI={name:"coins",size:24,node:[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]};HI.node;var ml=we(HI);var UI={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};UI.node;var gl=we(UI);var FI={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};FI.node;var nf=we(FI);var qI={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};qI.node;var sf=we(qI);var VI={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};VI.node;var rf=we(VI);var jI={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};jI.node;var lf=we(jI);var GI={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};GI.node;var uf=we(GI);var XI={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]};XI.node;var cf=we(XI);var YI={name:"list-tree",size:24,node:[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]]};YI.node;var df=we(YI);var $I={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};$I.node;var ff=we($I);var WI={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};WI.node;var pf=we(WI);var ZI={name:"moon",size:24,node:[["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"}]]};ZI.node;var hf=we(ZI);var QI={name:"plug",size:24,node:[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]};QI.node;var mf=we(QI);var KI={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};KI.node;var bl=we(KI);var JI={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};JI.node;var gf=we(JI);var eA={name:"sun",size:24,node:[["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"}]]};eA.node;var bf=we(eA);var tA={name:"trending-up",size:24,node:[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]};tA.node;var yf=we(tA);var aA={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};aA.node;var xf=we(aA);var oA={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};oA.node;var Ys=we(oA);var nA={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};nA.node;var vf=we(nA);var RA=Q(dt(),1);var Am=[{id:"overview",label:"Overview",icon:cf},{id:"requests",label:"Requests",icon:ef},{id:"traces",label:"Traces",icon:df},{id:"errors",label:"Errors",icon:ni},{id:"models",label:"Models",icon:nf},{id:"providers",label:"Providers",icon:mf},{id:"tools",label:"Tools",icon:xf},{id:"costs",label:"Costs",icon:ml},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:si},{id:"projects",label:"Projects",icon:sf},{id:"gain",label:"Gain",icon:yf}];var sn=Q(de(),1);function Vv({activeSection:a,onSectionChange:o,className:s=""}){return sn.jsxDEV("aside",{className:`stats-nav-rail ${s}`,children:[sn.jsxDEV("div",{className:"stats-nav-rail-header",children:sn.jsxDEV("div",{className:"stats-logo-container",children:[sn.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),sn.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),sn.jsxDEV("nav",{className:"stats-nav-rail-menu",children:Am.map((r)=>{let l=r.id===a,u=r.icon;return sn.jsxDEV("button",{type:"button",onClick:()=>o(r.id),className:"stats-nav-rail-item","data-active":l?"true":"false","aria-current":l?"page":void 0,children:[sn.jsxDEV(u,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),sn.jsxDEV("span",{className:"stats-nav-rail-item-label",children:r.label},void 0,!1,void 0,this)]},r.id,!0,void 0,this)})},void 0,!1,void 0,this),sn.jsxDEV("div",{className:"stats-nav-rail-footer",children:sn.jsxDEV("span",{className:"stats-version-tag",children:"OMP Stats v1.0.0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var jv=Q(de(),1),YN=[{value:"1h",label:"1h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"},{value:"30d",label:"30d"},{value:"90d",label:"90d"},{value:"all",label:"All"}];function sA({value:a,onChange:o,className:s=""}){return jv.jsxDEV("div",{className:`stats-range-control ${s}`,role:"radiogroup","aria-label":"Select time range",children:YN.map((r)=>{let l=r.value===a;return jv.jsxDEV("button",{type:"button",role:"radio","aria-checked":l,"data-active":l?"true":"false",className:"stats-range-control-btn",onClick:()=>o(r.value),children:r.label},r.value,!1,void 0,this)})},void 0,!1,void 0,this)}var Gv=Q(dt(),1);class rA extends Error{status;endpoint;constructor(a,o,s){super(s);this.name="ApiError",this.status=a,this.endpoint=o}}async function ao(a,o){let s=await fetch(a,o);if(!s.ok)throw new rA(s.status,a,`HTTP error ${s.status} on ${a}`);return s.json()}async function iA(a="24h",o){return ao(`/api/stats/overview?range=${encodeURIComponent(a)}`,{signal:o})}async function lA(a="24h",o){return ao(`/api/stats/model-dashboard?range=${encodeURIComponent(a)}`,{signal:o})}async function uA(a="24h",o){return ao(`/api/stats/costs?range=${encodeURIComponent(a)}`,{signal:o})}async function Rm(a=50,o){return ao(`/api/stats/recent?limit=${a}`,{signal:o})}async function cA(a="24h",o=50,s){return ao(`/api/stats/errors?range=${encodeURIComponent(a)}&limit=${o}`,{signal:s})}async function dA(a,o){return ao(`/api/request/${a}`,{signal:o})}async function fA(a){return ao("/api/sync",{signal:a})}async function pA(a="24h",o){return ao(`/api/stats/behavior?range=${encodeURIComponent(a)}`,{signal:o})}async function hA(a="24h",o){return ao(`/api/stats/folders?range=${encodeURIComponent(a)}`,{signal:o})}async function mA(a="24h",o,s){let r=new URLSearchParams({range:a});if(o)r.set("project",o);return ao(`/api/stats/gain?${r}`,{signal:s})}async function gA(a="24h",o){return ao(`/api/stats/tools?range=${encodeURIComponent(a)}`,{signal:o})}async function bA(a="24h",o){return ao(`/api/stats/providers?range=${encodeURIComponent(a)}`,{signal:o})}async function yA(a=100,o,s){let r=new URLSearchParams({limit:String(a)});if(o)r.set("q",o);return ao(`/api/sessions?${r}`,{signal:s})}async function xA(a,o){return ao(`/api/session/trace?file=${encodeURIComponent(a)}`,{signal:o})}async function vA(a,o,s){return ao(`/api/session/entry?file=${encodeURIComponent(a)}&id=${encodeURIComponent(o)}`,{signal:s})}var Sf=Q(de(),1);function SA({onSyncStart:a,onSyncComplete:o,className:s=""}){let[r,l]=Gv.useState(!1),[u,d]=Gv.useState(null),p=async()=>{if(r)return;if(l(!0),d(null),a)a();try{let h=await fA(),g={processed:typeof h?.processed==="number"?h.processed:0,files:typeof h?.files==="number"?h.files:0,totalMessages:typeof h?.totalMessages==="number"?h.totalMessages:0};if(d({type:"success",message:`Synced: ${g.processed} new request${g.processed===1?"":"s"} found.`}),o)o({success:!0,data:g})}catch(h){let g=h instanceof Error?h.message:String(h);if(d({type:"error",message:`Sync failed: ${g}`}),o)o({success:!1,error:g})}finally{l(!1)}};return Sf.jsxDEV("div",{className:`stats-sync-container ${s}`,children:[u&&Sf.jsxDEV("span",{className:"stats-sync-status-msg","data-type":u.type,children:u.message},void 0,!1,void 0,this),Sf.jsxDEV("button",{type:"button",onClick:p,disabled:r,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":r,children:[Sf.jsxDEV(bl,{size:14,className:`stats-sync-icon ${r?"stats-spin":""}`},void 0,!1,void 0,this),r?"Syncing...":"Sync DB"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Dm=Q(dt(),1),LA="omp-stats-theme",CA="(prefers-color-scheme: dark)";function $N(){if(typeof localStorage>"u")return"system";let a=localStorage.getItem(LA);return a==="light"||a==="dark"||a==="system"?a:"system"}function TA(){if(typeof window>"u")return"dark";return window.matchMedia(CA).matches?"dark":"light"}var xl=$N(),Lf=xl==="system"?TA():xl,Xv=new Set;function wA(){for(let a of Xv)a()}function Yv(){if(Lf=xl==="system"?TA():xl,typeof document<"u")document.documentElement.dataset.theme=Lf,document.documentElement.style.colorScheme=Lf}if(typeof window<"u")Yv(),window.matchMedia(CA).addEventListener("change",()=>{if(xl==="system")Yv(),wA()});function WN(a){if(xl=a,typeof localStorage<"u")localStorage.setItem(LA,a);Yv(),wA()}function $v(a){return Xv.add(a),()=>Xv.delete(a)}function $t(){return Dm.useSyncExternalStore($v,()=>Lf,()=>"dark")}function kA(){let a=Dm.useSyncExternalStore($v,()=>xl,()=>"system"),o=Dm.useSyncExternalStore($v,()=>Lf,()=>"dark");return{preference:a,resolved:o,setPreference:WN}}var Wv=Q(de(),1),ZN={system:"light",light:"dark",dark:"system"},QN={system:pf,light:bf,dark:hf},MA={system:"System theme",light:"Light theme",dark:"Dark theme"};function IA(){let{preference:a,setPreference:o}=kA(),s=QN[a];return Wv.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>o(ZN[a]),"aria-label":`${MA[a]} (click to switch)`,title:`${MA[a]} — click to switch`,children:Wv.jsxDEV(s,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var rn=Q(de(),1);function AA({activeSection:a,range:o,onRangeChange:s,updatedAt:r,onSyncStart:l,onSyncComplete:u,onMenuToggle:d,className:p=""}){let g=Am.find((b)=>b.id===a)?.label||"Observability",y=(b)=>{if(!b)return"Not updated";return`Updated ${new Date(b).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return rn.jsxDEV("header",{className:`stats-top-bar ${p}`,children:[rn.jsxDEV("div",{className:"stats-top-bar-left",children:[d&&rn.jsxDEV("button",{type:"button",onClick:d,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:rn.jsxDEV(ff,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),rn.jsxDEV("h1",{className:"stats-page-title",children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),rn.jsxDEV("div",{className:"stats-top-bar-right",children:[rn.jsxDEV("div",{className:"stats-top-bar-meta",children:rn.jsxDEV("span",{className:"stats-last-updated",title:r?new Date(r).toLocaleString():void 0,children:y(r)},void 0,!1,void 0,this)},void 0,!1,void 0,this),rn.jsxDEV(sA,{value:o,onChange:s},void 0,!1,void 0,this),rn.jsxDEV(IA,{},void 0,!1,void 0,this),rn.jsxDEV(SA,{onSyncStart:l,onSyncComplete:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Ga=Q(de(),1);function DA({activeSection:a,onSectionChange:o,range:s,onRangeChange:r,updatedAt:l,onSyncStart:u,onSyncComplete:d,children:p}){let[h,g]=RA.useState(!1),y=(b)=>{o(b),g(!1)};return Ga.jsxDEV("div",{className:"stats-app-container",children:[Ga.jsxDEV(Vv,{activeSection:a,onSectionChange:y,className:"stats-desktop-nav"},void 0,!1,void 0,this),h&&Ga.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>g(!1),role:"presentation",children:Ga.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(b)=>b.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[Ga.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[Ga.jsxDEV("div",{className:"stats-logo-container",children:[Ga.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),Ga.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ga.jsxDEV("button",{type:"button",onClick:()=>g(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:Ga.jsxDEV(Ys,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ga.jsxDEV(Vv,{activeSection:a,onSectionChange:y,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ga.jsxDEV("div",{className:"stats-main-pane",children:[Ga.jsxDEV(AA,{activeSection:a,range:s,onRangeChange:r,updatedAt:l,onSyncStart:u,onSyncComplete:d,onMenuToggle:()=>g(!0)},void 0,!1,void 0,this),Ga.jsxDEV("main",{className:"stats-content-area",children:Ga.jsxDEV("div",{className:"stats-content-inner",children:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var rs=Q(dt(),1),KN=["overview","requests","traces","errors","models","providers","tools","costs","behavior","projects","gain"],_A=["1h","24h","7d","30d","90d","all"];function Zv(a){let o=a.replace(/^#\/?/,""),[s,r]=o.split("?"),l=KN.includes(s)?s:"overview",u="24h",d=null;if(r){let p=new URLSearchParams(r),h=p.get("range");if(_A.includes(h))u=h;d=p.get("s")}return{section:l,range:u,session:d}}function Qv(a,o,s){let r=s?`&s=${encodeURIComponent(s)}`:"";return`/${a}?range=${o}${r}`}function EA(){let[a,o]=rs.useState(()=>Zv(window.location.hash));rs.useEffect(()=>{let d=()=>{o(Zv(window.location.hash))};return window.addEventListener("hashchange",d),()=>{window.removeEventListener("hashchange",d)}},[]);let s=rs.useCallback((d,p,h)=>{window.location.hash=Qv(d,p,h)},[]),r=rs.useCallback((d)=>{s(d,a.range,d==="traces"?a.session:null)},[a.range,a.session,s]),l=rs.useCallback((d)=>{let p=_A.includes(d)?d:"24h";s(a.section,p,a.session)},[a.section,a.session,s]),u=rs.useCallback((d)=>{s(a.section,a.range,d)},[a.section,a.range,s]);return rs.useEffect(()=>{let d=window.location.hash,p=Zv(d),h=`#${Qv(p.section,p.range,p.session)}`;if(d!==h)window.location.hash=Qv(p.section,p.range,p.session)},[]),{section:a.section,setSection:r,range:a.range,setRange:l,session:a.session,setSession:u}}var OA=["January","February","March","April","May","June","July","August","September","October","November","December"],PA=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],JN=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function ri(a,o=2){return String(a).padStart(o,"0")}function ez(a,o){let s=a.getMonth(),r=a.getDay(),l=a.getHours(),u=l%12||12;switch(o){case"yyyy":return ri(a.getFullYear(),4);case"yy":return ri(a.getFullYear()%100);case"MMMM":return OA[s];case"MMM":return OA[s].slice(0,3);case"MM":return ri(s+1);case"M":return String(s+1);case"dd":return ri(a.getDate());case"d":return String(a.getDate());case"EEEE":return PA[r];case"EEE":return PA[r].slice(0,3);case"HH":return ri(l);case"H":return String(l);case"hh":return ri(u);case"h":return String(u);case"mm":return ri(a.getMinutes());case"m":return String(a.getMinutes());case"ss":return ri(a.getSeconds());case"s":return String(a.getSeconds());case"a":return l<12?"AM":"PM"}}function NA(a){let o=a instanceof Date?new Date(a.getTime()):new Date(a);if(Number.isNaN(o.getTime()))throw RangeError("Invalid time value");return o}function Cn(a,o){let s=NA(a),r="";for(let l=0;l<o.length;){if(o[l]==="'"){if(o[l+1]==="'"){r+="'",l+=2;continue}l++;while(l<o.length){if(o[l]!=="'"){r+=o[l++];continue}if(o[l+1]==="'"){r+="'",l+=2;continue}l++;break}continue}let u=o.slice(l),d=JN.find((h)=>u.startsWith(h));if(d){r+=ez(s,d),l+=d.length;continue}let p=o[l++];if(/[A-Za-z]/.test(p))throw RangeError(`Format string contains an unescaped latin alphabet character \`${p}\``);r+=p}return r}function ii(a,o){return`${a} ${a===1?o:`${o}s`}`}function tz(a,o){let s=(o.getFullYear()-a.getFullYear())*12+o.getMonth()-a.getMonth();if(s===0)return 0;let r=new Date(a);r.setDate(1),r.setFullYear(a.getFullYear(),a.getMonth()+s,1);let l=new Date(r.getFullYear(),r.getMonth()+1,0).getDate();if(r.setDate(Math.min(a.getDate(),l)),r.getTime()>o.getTime())s--;return s}function BA(a,o){let s=(o.getTime()-a.getTime())/1000,r=(o.getTimezoneOffset()-a.getTimezoneOffset())*60,l=Math.round((s-r)/60);if(l<2)return l===0?"less than a minute":"1 minute";if(l<45)return ii(l,"minute");if(l<90)return"about 1 hour";if(l<1440)return`about ${ii(Math.round(l/60),"hour")}`;if(l<2520)return"1 day";if(l<43200)return ii(Math.round(l/1440),"day");if(l<86400)return`about ${ii(Math.round(l/43200),"month")}`;let u=tz(a,o);if(u<12)return ii(Math.round(l/43200),"month");let d=Math.trunc(u/12),p=u%12;if(p<3)return`about ${ii(d,"year")}`;if(p<9)return`over ${ii(d,"year")}`;return`almost ${ii(d+1,"year")}`}function zA(a,o={}){let s=NA(a),r=new Date(Date.now()),l=s.getTime()>r.getTime(),u=l?BA(r,s):BA(s,r);if(!o.addSuffix)return u;return l?`in ${u}`:`${u} ago`}var xa=Q(dt(),1);var Kv=Q(HA(),1),Ho=Q(dt(),1);var FA="label";function UA(a,o){if(typeof a==="function")a(o);else if(a)a.current=o}function oz(a,o){let s=a.options;if(s&&o)Object.assign(s,o)}function qA(a,o){a.labels=o}function VA(a,o,s=FA){let r=[];a.datasets=o.map((l)=>{let u=a.datasets.find((d)=>d[s]===l[s]);if(!u||!l.data||r.includes(u))return{...l};return r.push(u),Object.assign(u,l),u})}function nz(a,o=FA){let s={labels:[],datasets:[]};return qA(s,a.labels),VA(s,a.datasets,o),s}function sz(a,o){let{height:s=150,width:r=300,redraw:l=!1,datasetIdKey:u,type:d,data:p,options:h,plugins:g=[],fallbackContent:y,updateMode:b,...v}=a,T=Ho.useRef(null),M=Ho.useRef(null),I=()=>{if(!T.current)return;M.current=new dl(T.current,{type:d,data:nz(p,u),options:h&&{...h},plugins:g}),UA(o,M.current)},w=()=>{if(UA(o,null),M.current)M.current.destroy(),M.current=null};return Ho.useEffect(()=>{if(!l&&M.current&&h)oz(M.current,h)},[l,h]),Ho.useEffect(()=>{if(!l&&M.current)qA(M.current.config.data,p.labels)},[l,p.labels]),Ho.useEffect(()=>{if(!l&&M.current&&p.datasets)VA(M.current.config.data,p.datasets,u)},[l,p.datasets]),Ho.useEffect(()=>{if(!M.current)return;if(l)w(),setTimeout(I);else M.current.update(b)},[l,h,p.labels,p.datasets,b]),Ho.useEffect(()=>{if(!M.current)return;w(),setTimeout(I)},[d]),Ho.useEffect(()=>(I(),()=>w()),[]),Kv.jsx("canvas",{ref:T,role:"img",height:s,width:r,...v,children:y})}var rz=Ho.forwardRef(sz);function jA(a,o){return dl.register(o),Ho.forwardRef((s,r)=>Kv.jsx(rz,{...s,ref:r,type:a}))}var Xa=jA("line",Dv),li=jA("bar",Rv);var yt=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"];function GA(a){let o=[...a].sort((s,r)=>r.totalRequests-s.totalRequests||`${s.model}::${s.provider}`.localeCompare(`${r.model}::${r.provider}`));return new Map(o.map((s,r)=>[`${s.model}::${s.provider}`,yt[r%yt.length]]))}var ra={dark:{legendLabel:"#a89fb3",tooltipBackground:"#241a2e",tooltipTitle:"#eae5ef",tooltipBody:"#a89fb3",tooltipBorder:"rgba(255, 255, 255, 0.12)",grid:"rgba(255, 255, 255, 0.06)",tick:"#867a93"},light:{legendLabel:"#5a5462",tooltipBackground:"#ffffff",tooltipTitle:"#241a2e",tooltipBody:"#5a5462",tooltipBorder:"rgba(20, 12, 28, 0.15)",grid:"rgba(20, 12, 28, 0.08)",tick:"#6a6275"}};function is(a){let{chartTheme:o,showLegend:s,defaultLabel:r,formatValue:l,footer:u}=a;return{legend:{display:s,position:"top",align:"start",labels:{color:o.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:o.tooltipBackground,titleColor:o.tooltipTitle,bodyColor:o.tooltipBody,borderColor:o.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(d)=>{let p=d.dataset.label??r,h=d.parsed.y??0;return`${p}: ${l(h)}`},...u?{footer:u}:{}}}}}function ls(a){let{chartTheme:o,formatY:s}=a,r={grid:{color:o.grid,drawBorder:!1},ticks:{color:o.tick,font:{size:11}}},l={...r,ticks:{...r.ticks,callback:(u)=>s(Number(u))},min:0};return{sharedScaleBase:r,yScale:l}}function Vu(a){return{borderColor:a,backgroundColor:`${a}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function Sl(a){return{backgroundColor:a,borderColor:a,borderWidth:0,borderRadius:4,maxBarThickness:56}}function ui(a,o){return a.datasets.map((s,r)=>({label:s.label,data:s.data,...o(r)}))}function _m(a,o,s){if(a.length===0)return{labels:[],datasets:[]};let{initBucket:r,accumulate:l,bucketToValue:u}=s,d=new Map;for(let h of a){let g=d.get(h.timestamp)??r();l(g,h),d.set(h.timestamp,g)}let p=[...d.entries()].sort((h,g)=>h[0]-g[0]);return{labels:p.map(([h])=>Cn(new Date(h),"MMM d")),datasets:[{label:o,data:p.map(([,h])=>u(h))}]}}function ju(a,o){if(a.length===0)return{labels:[],datasets:[]};let{topN:s=5,rankWeight:r,initBucket:l,accumulate:u,bucketToValue:d}=o,p=new Map;for(let A of a){let B=`${A.model}::${A.provider}`,z=p.get(B);if(z)z.weight+=r(A);else p.set(B,{model:A.model,provider:A.provider,weight:r(A)})}let g=[...p.entries()].sort((A,B)=>B[1].weight-A[1].weight).slice(0,s),y=new Set(g.map(([A])=>A)),b=new Map;for(let[,{model:A}]of g)b.set(A,(b.get(A)??0)+1);let v=new Map;for(let[A,{model:B,provider:z}]of g)v.set(A,(b.get(B)??0)>1?`${B} (${z})`:B);let T=[...new Set(a.map((A)=>A.timestamp))].sort((A,B)=>A-B),M=g.map(([A])=>v.get(A)??A);if(a.some((A)=>!y.has(`${A.model}::${A.provider}`)))M.push("Other");let w=new Map;for(let A of T)w.set(A,{});for(let A of a){let B=`${A.model}::${A.provider}`,z=y.has(B)?v.get(B)??A.model:"Other",H=w.get(A.timestamp);if(!H)continue;let q=H[z]??l();u(q,A),H[z]=q}return{labels:T.map((A)=>Cn(new Date(A),"MMM d")),datasets:M.map((A)=>({label:A,data:T.map((B)=>{let z=w.get(B)?.[A];return z?d(z):0})}))}}var Wt=Q(de(),1);function $s(a){return{borderColor:a,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function Em({timestamps:a,values:o,color:s}){let r={labels:a.map((u)=>Cn(new Date(u),"MMM d")),datasets:[{data:o,...$s(s)}]};return Wt.jsxDEV(Xa,{data:r,options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1}},scales:{x:{display:!1},y:{display:!1,min:0}}}},void 0,!1,void 0,this)}function Om(a){return{legend:{display:!0,position:"top",labels:{color:a.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:a.tooltipBackground,titleColor:a.tooltipTitle,bodyColor:a.tooltipBody,borderColor:a.tooltipBorder,borderWidth:1,cornerRadius:8}}}function XA(a){return{x:{grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}}},y:{grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}},min:0}}}function YA(a){return{x:{grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:a.tick,font:{size:11}}}}}function Pm({title:a,subtitle:o,children:s}){return Wt.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[Wt.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[Wt.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:a},void 0,!1,void 0,this),o?Wt.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:o},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),Wt.jsxDEV("div",{className:"overflow-x-auto",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function iz(a){if(a==="right")return"text-right";if(a==="center")return"text-center";return""}function Bm({columns:a,gridTemplate:o}){return Wt.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:o},children:[a.map((s)=>Wt.jsxDEV("div",{className:iz(s.align),children:s.label},s.label,!1,void 0,this)),Wt.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Nm({children:a}){return Wt.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:a},void 0,!1,void 0,this)}function zm({model:a,provider:o}){return Wt.jsxDEV("div",{children:[Wt.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:a},void 0,!1,void 0,this),Wt.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:o},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Hm({gridTemplate:a,cells:o,trendCell:s,isExpanded:r,onToggle:l,expandedContent:u}){return Wt.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[Wt.jsxDEV("button",{type:"button",onClick:l,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:Wt.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:a},children:[o,Wt.jsxDEV("div",{className:"h-10",children:s},void 0,!1,void 0,this),Wt.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:r?Wt.jsxDEV(af,{size:16},void 0,!1,void 0,this):Wt.jsxDEV(Xs,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),r?Wt.jsxDEV("div",{className:"px-5 py-4 bg-[var(--bg-elevated)] border-t border-[var(--border-subtle)]",children:u},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function Um(){return Wt.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function Fm({message:a="No data available"}){return Wt.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:a},void 0,!1,void 0,this)}function Ce(a){return a.toLocaleString()}function lt(a){return a.toLocaleString(void 0,{notation:"compact"})}function Cf(a,o){if(a===0)return"$0";let s=o!==void 0?o:a>0&&a<0.01?4:2;return`$${a.toLocaleString(void 0,{minimumFractionDigits:s,maximumFractionDigits:s})}`}function ea(a,o,s){return a===0&&o>0?"N/A":Cf(a,s)}function ln(a,o){let s=a.usage.totalTokens>0&&a.usage.cost.total===0&&(a.provider==="xai-oauth"||a.costUnpriced===!0)?1:0;return ea(a.usage.cost.total,s,o)}function Ht(a,o=1){return`${(a*100).toFixed(o)}%`}function rt(a,o){if(a===null)return"-";let s=a/1000,r=o!==void 0?o:s<1?2:1;return`${s.toFixed(r)}s`}function qm(a){if(a===null)return"-";return a.toFixed(1)}function za(a){return zA(new Date(a),{addSuffix:!0})}function Jv(a){if(a>=1e9)return`${(a/1e9).toFixed(1)} GB`;if(a>=1e6)return`${(a/1e6).toFixed(1)} MB`;if(a>=1000)return`${(a/1000).toFixed(1)} KB`;return`${a} B`}var Ha=Q(dt(),1),ci=new Map,lz=64;function Vt(a,o,s){let r=JSON.stringify(a),[l,u]=Ha.useState(()=>ci.get(r)?.data??null),[d,p]=Ha.useState(null),[h,g]=Ha.useState(()=>!ci.has(r)),[y,b]=Ha.useState(!1),[v,T]=Ha.useState(()=>ci.get(r)?.updatedAt??null),M=Ha.useRef(o);M.current=o;let I=Ha.useRef(r);I.current=r;let w=s?.enabled??!0,A=s?.pollMs,B=Ha.useRef(null),z=Ha.useRef(!1);z.current=l!==null;let H=Ha.useCallback(async(j)=>{if(B.current)B.current.abort();let G=new AbortController;if(B.current=G,j)b(!0);else g(!0),u(null);p(null);try{let Y=await M.current(G.signal);if(G.signal.aborted)return;if(ci.set(I.current,{data:Y,updatedAt:Date.now()}),ci.size>lz){let J=ci.keys().next().value;if(J!==void 0)ci.delete(J)}u(Y),T(Date.now()),p(null)}catch(Y){if(G.signal.aborted)return;p(Y instanceof Error?Y:Error(String(Y)))}finally{if(!G.signal.aborted){if(g(!1),b(!1),B.current===G)B.current=null}}},[]);Ha.useEffect(()=>{if(!w){g(!1),b(!1);return}let j=ci.get(r);if(j)u(j.data),T(j.updatedAt),g(!1),H(!0);else H(z.current);return()=>{if(B.current)B.current.abort(),B.current=null}},[r,w,H]),Ha.useEffect(()=>{if(!w||!A)return;let j=setInterval(()=>{if(document.hidden)return;H(!0)},A);return()=>{clearInterval(j)}},[w,A,H]);let q=Ha.useCallback(async()=>{await H(!0)},[H]);return{data:l,error:d,loading:h,refreshing:y,refetch:q,updatedAt:v}}var $A=3600000,Vm=24*$A,uz=300000,WA={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:uz,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:$A,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:Vm,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:Vm,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:Vm,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:Vm,bucketCount:0,tickFormat:"MMM d"}};function Ll(a){return WA[a]}function Tf(a,o){return Cn(new Date(a),WA[o].tickFormat)}var cz=["main","subagent","advisor"];function jm(a){return a.totalInputTokens+a.totalOutputTokens+a.totalCacheReadTokens+a.totalCacheWriteTokens}function ZA(a){let o=new Map;for(let d of a)o.set(d.agentType,d);let s=cz.map((d)=>o.get(d)).filter((d)=>d!==void 0),r=s.reduce((d,p)=>d+jm(p),0),l=s.reduce((d,p)=>d+p.totalCost,0),u=s.map((d)=>{let p=jm(d);return{agentType:d.agentType,tokens:p,requests:d.totalRequests,cost:d.totalCost,share:r>0?p/r:0}});return{totalTokens:r,totalCost:l,segments:u}}function QA(a){let o=a.reduce((h,g)=>h+g.cost,0),s=a.reduce((h,g)=>h+g.unpricedRequests,0),r=new Set(a.map((h)=>h.timestamp)).size,l=r>0?o/r:0,u=new Map;for(let h of a)u.set(h.model,(u.get(h.model)??0)+h.cost);let d="",p=0;for(let[h,g]of u)if(g>p)d=h,p=g;return{totalCost:o,unpricedRequests:s,avgDailyCost:l,topModelName:d,topModelCost:p}}function KA(a,o){if(a.length===0)return new Map;let s=Ll(o),{bucketMs:r,bucketCount:l}=s,u=l>0?(()=>{let h=a.reduce((b,v)=>Math.max(b,v.timestamp),0),y=(h>0?h:Math.floor(Date.now()/r)*r)-(l-1)*r;return Array.from({length:l},(b,v)=>y+v*r)})():Array.from(new Set(a.map((h)=>h.timestamp))).sort((h,g)=>h-g),d=new Map(u.map((h,g)=>[h,g])),p=new Map;for(let h of a){let g=`${h.model}::${h.provider}`,y=p.get(g);if(!y)y={label:`${h.model} (${h.provider})`,data:u.map((v)=>({timestamp:v,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},p.set(g,y);let b=d.get(h.timestamp);if(b===void 0)continue;y.data[b]={timestamp:h.timestamp,avgTtftSeconds:h.avgTtft!==null?h.avgTtft/1000:null,avgTokensPerSecond:h.avgTokensPerSecond,requests:h.requests}}return p}function JA(a,o){let s=a.totalNegation+a.totalRepetition+a.totalBlame,r=new Map;for(let u of o){let d=`${u.model}::${u.provider}`,p=r.get(d),h=u.yelling+u.profanity+u.anguish+u.negation+u.repetition+u.blame;if(p)p.score+=h;else r.set(d,{model:u.model,provider:u.provider,score:h})}let l=null;for(let u of r.values())if(!l||u.score>l.score)l=u;return{totalMessages:a.totalMessages,totalYelling:a.totalYelling,totalProfanity:a.totalProfanity,totalAnguish:a.totalAnguish,totalFrustration:s,highestFrictionModel:l}}function eR(a){let o=[...a].sort((l,u)=>{if(u.totalCost!==l.totalCost)return u.totalCost-l.totalCost;return u.totalRequests-l.totalRequests}),s=o.reduce((l,u)=>Math.max(l,u.totalCost),0),r=o.reduce((l,u)=>Math.max(l,u.totalRequests),0);return o.map((l)=>({...l,costPercentage:s>0?l.totalCost/s*100:0,requestsPercentage:r>0?l.totalRequests/r*100:0}))}function tR(a){let o=a.reduce((s,r)=>Math.max(s,r.calls),0);return a.map((s)=>({...s,errorRate:s.calls>0?s.errors/s.calls:0,callsPercentage:o>0?s.calls/o*100:0}))}var Gm=Q(de(),1);function Gu({message:a="No data available",icon:o=uf,className:s=""}){return Gm.jsxDEV("div",{className:`stats-empty-state ${s}`,children:[Gm.jsxDEV(o,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),Gm.jsxDEV("p",{className:"stats-empty-state-message",children:a},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Xu=Q(de(),1);function aR({error:a,onRetry:o,className:s=""}){return Xu.jsxDEV("div",{className:`stats-error-state ${s}`,children:Xu.jsxDEV("div",{className:"stats-error-state-content",children:[Xu.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),a&&Xu.jsxDEV("p",{className:"stats-error-state-message",children:a.message},void 0,!1,void 0,this),o&&Xu.jsxDEV("button",{type:"button",onClick:o,className:"stats-button stats-button-secondary stats-error-state-btn",children:"Retry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var oR=Q(de(),1);function Ua({variant:a="text",width:o,height:s,className:r=""}){let l={width:o!==void 0?typeof o==="number"?`${o}px`:o:void 0,height:s!==void 0?typeof s==="number"?`${s}px`:s:void 0};return oR.jsxDEV("div",{className:`stats-skeleton ${r}`,"data-variant":a,style:l},void 0,!1,void 0,this)}var Uo=Q(de(),1);function Rt({loading:a,error:o,data:s,empty:r=!1,emptyText:l="No data available",fallback:u,onRetry:d,children:p}){if(o&&s===null)return Uo.jsxDEV(aR,{error:o,onRetry:d},void 0,!1,void 0,this);if(a&&s===null){if(u)return Uo.jsxDEV(Uo.Fragment,{children:u},void 0,!1,void 0,this);return Uo.jsxDEV("div",{className:"stats-boundary-skeleton",children:[Uo.jsxDEV(Ua,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),Uo.jsxDEV(Ua,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),Uo.jsxDEV(Ua,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),Uo.jsxDEV(Ua,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!a&&(r||s===null))return Uo.jsxDEV(Gu,{message:l},void 0,!1,void 0,this);return Uo.jsxDEV(Uo.Fragment,{children:p},void 0,!1,void 0,this)}var xo=Q(de(),1);function Ma({columns:a,data:o,keyExtractor:s,onRowClick:r,renderMobileCard:l,emptyText:u="No data available"}){let d=(p,h)=>{if(r&&(p.key==="Enter"||p.key===" "))p.preventDefault(),r(h)};if(o.length===0)return xo.jsxDEV("div",{className:"stats-table-empty",children:u},void 0,!1,void 0,this);return xo.jsxDEV("div",{className:"stats-table-wrapper",children:[l&&xo.jsxDEV("div",{className:"stats-table-mobile-only",children:xo.jsxDEV("div",{className:"stats-table-mobile-list",children:o.map((p)=>{let h=String(s(p));return xo.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:l(p,r?()=>r(p):void 0)},h,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),xo.jsxDEV("div",{className:l?"stats-table-desktop-only":"stats-table-container",children:xo.jsxDEV("table",{className:"stats-table",children:[xo.jsxDEV("thead",{children:xo.jsxDEV("tr",{children:a.map((p)=>{let h=["stats-table-th",p.numeric?"stats-text-right":"stats-text-left",p.className||""].filter(Boolean).join(" ");return xo.jsxDEV("th",{className:h,children:p.header},p.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),xo.jsxDEV("tbody",{children:o.map((p)=>{let h=String(s(p)),g=typeof r==="function",y=["stats-table-tr",g?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return xo.jsxDEV("tr",{className:y,onClick:g?()=>r(p):void 0,onKeyDown:g?(b)=>d(b,p):void 0,tabIndex:g?0:void 0,role:g?"button":void 0,children:a.map((b)=>{let v=["stats-table-td",b.numeric?"stats-text-right":"stats-text-left",b.className||""].filter(Boolean).join(" ");return xo.jsxDEV("td",{className:v,children:b.render?b.render(p):p[b.key]},b.key,!1,void 0,this)})},h,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Cl=Q(dt(),1),un=Q(de(),1);function wf({data:a,title:o,initialCollapsed:s=!1}){let[r,l]=Cl.useState(s),[u,d]=Cl.useState(!1),p=Cl.useRef(0),h=JSON.stringify(a,null,2);return Cl.useEffect(()=>()=>window.clearTimeout(p.current),[]),un.jsxDEV("div",{className:"stats-json-block",children:[un.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>l(!r),onKeyDown:(b)=>{if(b.key==="Enter"||b.key===" ")b.preventDefault(),l(!r)},tabIndex:0,role:"button","aria-expanded":!r,children:[un.jsxDEV("span",{className:"stats-json-block-title",children:o||"JSON"},void 0,!1,void 0,this),un.jsxDEV("div",{className:"stats-json-actions",children:[un.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(b)=>{b.stopPropagation();try{await navigator.clipboard.writeText(h),d(!0),window.clearTimeout(p.current),p.current=window.setTimeout(()=>d(!1),1500)}catch{}},"aria-label":u?"Copied to clipboard":"Copy JSON to clipboard",children:[u?un.jsxDEV(pl,{size:13},void 0,!1,void 0,this):un.jsxDEV(gl,{size:13},void 0,!1,void 0,this),u?"Copied":"Copy"]},void 0,!0,void 0,this),un.jsxDEV("span",{className:"stats-json-block-toggle-indicator","data-collapsed":r,children:r?"▶ Show":"▼ Hide"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!r&&un.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:un.jsxDEV("pre",{className:"stats-json-block-content",children:un.jsxDEV("code",{children:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var qe=Q(de(),1);function nR({stats:a}){let o=jm(a);return qe.jsxDEV("div",{className:"stats-metric-cluster",children:[qe.jsxDEV("div",{className:"stats-metric-primary-grid",children:[qe.jsxDEV("div",{className:"stats-metric-card primary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:ea(a.totalCost,a.unpricedRequests,a.totalCost>0&&a.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card primary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:Ce(a.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card primary",title:"Prompt-input cost saved versus billing the same tokens uncached; cache writes can make this negative",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Cache Savings"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:Ht(a.cacheSavings)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card primary",title:"Prompt input served from cache: cache reads / (uncached input + cache reads)",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:Ht(a.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card primary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:Ht(a.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[qe.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input not served from cache",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Uncached Input"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:lt(a.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input read from the prompt cache",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Cache Read"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:lt(a.totalCacheReadTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:lt(a.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",title:"Uncached input + cache reads + cache writes + output",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Conversation Total"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:lt(o)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:Ce(a.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:qm(a.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:rt(a.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:rt(a.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var di=Q(de(),1);function ut({title:a,subtitle:o,actions:s,children:r,className:l="",...u}){return di.jsxDEV("div",{className:`stats-panel ${l}`,...u,children:[(a||o||s)&&di.jsxDEV("div",{className:"stats-panel-header",children:[di.jsxDEV("div",{className:"stats-panel-header-titles",children:[a&&di.jsxDEV("h3",{className:"stats-panel-title",children:a},void 0,!1,void 0,this),o&&di.jsxDEV("p",{className:"stats-panel-subtitle",children:o},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s&&di.jsxDEV("div",{className:"stats-panel-actions",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),di.jsxDEV("div",{className:"stats-panel-body",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var us=Q(dt(),1);var sR=Q(de(),1);function ya({variant:a,children:o,className:s=""}){return sR.jsxDEV("span",{className:`stats-status-pill ${s}`,"data-variant":a,children:o},void 0,!1,void 0,this)}var ke=Q(de(),1);function rR({id:a,onClose:o}){let[s,r]=us.useState(null),[l,u]=us.useState(!1),[d,p]=us.useState(null),h=us.useRef(null),g=us.useRef(null);if(us.useEffect(()=>{if(a===null){r(null);return}h.current=document.activeElement,u(!0),p(null),r(null);let b=new AbortController;return dA(a,b.signal).then((v)=>{if(b.signal.aborted)return;r(v),setTimeout(()=>g.current?.focus(),50)}).catch((v)=>{if(b.signal.aborted)return;p(v instanceof Error?v:Error(String(v)))}).finally(()=>{if(!b.signal.aborted)u(!1)}),()=>b.abort()},[a]),us.useEffect(()=>{if(a===null)return;let b=(v)=>{if(v.key==="Escape")o()};return window.addEventListener("keydown",b),()=>{if(window.removeEventListener("keydown",b),h.current)h.current.focus()}},[a,o]),a===null)return null;return ke.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(b)=>{if(b.target===b.currentTarget)o()},role:"presentation",children:ke.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[ke.jsxDEV("div",{className:"stats-drawer-header",children:[ke.jsxDEV("div",{className:"stats-drawer-header-left",children:[ke.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),s&&ke.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",a]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("button",{ref:g,type:"button",onClick:o,className:"stats-drawer-close-btn","aria-label":"Close request details",children:ke.jsxDEV(Ys,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-body",children:[l&&ke.jsxDEV("div",{className:"stats-drawer-loading",children:[ke.jsxDEV(Ua,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),ke.jsxDEV(Ua,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),ke.jsxDEV(Ua,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),ke.jsxDEV(Ua,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),d&&ke.jsxDEV("div",{className:"stats-drawer-error",children:[ke.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),ke.jsxDEV("p",{className:"stats-drawer-error-message",children:d.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s&&ke.jsxDEV("div",{className:"stats-drawer-content",children:[ke.jsxDEV("div",{className:"stats-drawer-status-card",children:[ke.jsxDEV("div",{className:"stats-drawer-status-row",children:[ke.jsxDEV("div",{children:[ke.jsxDEV("div",{className:"stats-drawer-model",children:s.model},void 0,!1,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-provider",children:s.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV(ya,{variant:s.errorMessage?"danger":"success",children:s.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s.errorMessage&&ke.jsxDEV("div",{className:"stats-drawer-error-block",children:[ke.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-error-text",children:s.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ke.jsxDEV(ml,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"API-equivalent estimate"]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-value",children:ln(s,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ke.jsxDEV(gf,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-value",children:Ce(s.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ke.jsxDEV(lf,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-value",children:Ce(s.usage.totalTokens)},void 0,!1,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[Ce(s.usage.input)," in · ",Ce(s.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ke.jsxDEV(of,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-value",children:rt(s.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ke.jsxDEV(vf,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-value",children:rt(s.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s.duration&&s.usage.output>0&&ke.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ke.jsxDEV(rf,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-value",children:(s.usage.output*1000/s.duration).toFixed(1)},void 0,!1,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-sub",children:"tokens/second"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[ke.jsxDEV(wf,{data:s.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),ke.jsxDEV(wf,{data:s,title:"Raw Request Metadata",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var e0=Q(de(),1);function Ws({options:a,value:o,onChange:s,className:r=""}){return e0.jsxDEV("div",{className:`stats-segmented-control ${r}`,role:"radiogroup",children:a.map((l)=>{let u=l.value===o;return e0.jsxDEV("button",{type:"button",role:"radio","aria-checked":u,"data-active":u?"true":"false",className:"stats-segmented-control-btn",title:l.title,onClick:()=>s(l.value),children:l.label},String(l.value),!1,void 0,this)})},void 0,!1,void 0,this)}var Me=Q(de(),1);function fR({active:a,range:o,refreshTrigger:s}){let{data:r,error:l,loading:u}=Vt(["behavior",o,s],(d)=>pA(o,d),{pollMs:30000,enabled:a});return Me.jsxDEV("div",{className:"stats-route-container space-y-6",children:Me.jsxDEV(Rt,{loading:u,error:l,data:r,children:r&&Me.jsxDEV(Me.Fragment,{children:[Me.jsxDEV(dz,{overall:r.overall,behaviorSeries:r.behaviorSeries},void 0,!1,void 0,this),Me.jsxDEV(fz,{behaviorSeries:r.behaviorSeries},void 0,!1,void 0,this),Me.jsxDEV(pz,{models:r.byModel,behaviorSeries:r.behaviorSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Xm(a,o){if(o<=0)return;return`${(a/o).toFixed(2)} / msg`}function dz({overall:a,behaviorSeries:o}){let s=xa.useMemo(()=>JA(a,o),[a,o]),r=a.totalMessages,l=[{label:"User Messages",value:Ce(a.totalMessages),sub:r>0?"in range":void 0},{label:"Yelling (CAPS)",value:Ce(a.totalYelling),sub:Xm(a.totalYelling,r)},{label:"Profanity Hits",value:Ce(a.totalProfanity),sub:Xm(a.totalProfanity,r)},{label:"Anguish Signals",value:Ce(a.totalAnguish),sub:Xm(a.totalAnguish,r)},{label:"Friction Signals",value:Ce(s.totalFrustration),sub:Xm(s.totalFrustration,r)},{label:"Highest Friction Model",value:s.highestFrictionModel?.model??"—",sub:s.highestFrictionModel?`${Ce(s.highestFrictionModel.score)} hits`:void 0}];return Me.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:l.map((u)=>Me.jsxDEV(ut,{className:"stats-behavior-summary-card py-3 px-4",children:[Me.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium truncate",children:u.label},void 0,!1,void 0,this),Me.jsxDEV("p",{className:"text-lg font-bold stats-text-primary truncate",title:u.value,children:u.value},void 0,!1,void 0,this),u.sub&&Me.jsxDEV("p",{className:"text-xs stats-text-muted mt-0.5",children:u.sub},void 0,!1,void 0,this)]},u.label,!0,void 0,this))},void 0,!1,void 0,this)}var t0=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, ugh, dude, ':(')"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong, makes no sense)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, why did you, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function iR(a){if(!Number.isFinite(a))return"-";if(a===0)return"0%";if(Math.abs(a)<1)return`${a.toFixed(1)}%`;return`${a.toFixed(0)}%`}function lR(a,o){if(o==="frustration")return a.negation+a.repetition+a.blame;if(o==="total")return a.yelling+a.profanity+a.anguish+a.negation+a.repetition+a.blame;return a[o]}function uR(a,o){if(o<=0)return 0;return a/o*100}function fz({behaviorSeries:a}){let[o,s]=xa.useState(!1),[r,l]=xa.useState("total"),u=$t(),d=ra[u],p=xa.useMemo(()=>{if(o)return ju(a,{rankWeight:(B)=>B.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(B,z)=>{B.hits+=lR(z,r),B.messages+=z.messages},bucketToValue:(B)=>uR(B.hits,B.messages)});let A=t0.find((B)=>B.value===r)?.title??"Hits";return _m(a,A,{initBucket:()=>({hits:0,messages:0}),accumulate:(B,z)=>{B.hits+=lR(z,r),B.messages+=z.messages},bucketToValue:(B)=>uR(B.hits,B.messages)})},[a,o,r]),h=xa.useMemo(()=>is({chartTheme:d,showLegend:o,defaultLabel:"Hits",formatValue:iR}),[d,o]),{sharedScaleBase:g,yScale:y}=xa.useMemo(()=>ls({chartTheme:d,formatY:iR}),[d]),b=xa.useMemo(()=>t0.find((A)=>A.value===r)?.title??"",[r]),v=xa.useMemo(()=>{if(!o)return null;return{labels:p.labels,datasets:ui(p,(A)=>Vu(yt[A%yt.length]))}},[p,o]),T=xa.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:h,scales:{x:g,y}}),[h,g,y]),M=xa.useMemo(()=>{if(o)return null;return{labels:p.labels,datasets:ui(p,(A)=>Sl(yt[A%yt.length]))}},[p,o]),I=xa.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:h,scales:{x:{...g,stacked:!0},y:{...y,stacked:!0}},layout:{padding:{top:8}}}),[h,g,y]),w=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return Me.jsxDEV(ut,{title:"User Friction Signals",subtitle:`${b} as % of user messages per day`,actions:Me.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[Me.jsxDEV(Ws,{options:t0.map((A)=>({value:A.value,label:A.label,title:A.title})),value:r,onChange:l},void 0,!1,void 0,this),Me.jsxDEV(Ws,{options:w,value:o,onChange:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:Me.jsxDEV("div",{className:"h-[300px]",children:p.labels.length===0?Me.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No friction signal data available"},void 0,!1,void 0,this):o&&v?Me.jsxDEV(Xa,{data:v,options:T},void 0,!1,void 0,this):M?Me.jsxDEV(li,{data:M,options:I},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var cR="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function dR(a){if(a.totalMessages===0)return 0;return(a.totalYelling+a.totalProfanity+a.totalAnguish+a.totalNegation+a.totalRepetition+a.totalBlame)/a.totalMessages}function Yu(a,o){if(o===0)return"-";let s=a/o*100;if(s===0)return"0%";if(s<1)return`${s.toFixed(1)}%`;return`${s.toFixed(0)}%`}function pz({models:a,behaviorSeries:o}){let[s,r]=xa.useState(null),l=$t(),u=ra[l],d=xa.useMemo(()=>mz(o),[o]),p=xa.useMemo(()=>[...a].sort((h,g)=>{if(g.totalMessages!==h.totalMessages)return g.totalMessages-h.totalMessages;return dR(g)-dR(h)}),[a]);return Me.jsxDEV(Pm,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[Me.jsxDEV(Bm,{gridTemplate:cR,columns:[{label:"Model"},{label:"Messages",align:"right"},{label:"CAPS %",align:"right"},{label:"Profanity %",align:"right"},{label:"Anguish %",align:"right"},{label:"Frustration %",align:"right"},{label:"Hits %",align:"right"},{label:"Trend",align:"center"}]},void 0,!1,void 0,this),Me.jsxDEV(Nm,{children:[p.map((h,g)=>{let y=`${h.model}::${h.provider}`,b=d.get(y)?.data??[],v=yt[g%yt.length],T=s===y,M=h.totalNegation+h.totalRepetition+h.totalBlame,I=h.totalYelling+h.totalProfanity+h.totalAnguish+M;return Me.jsxDEV(Hm,{gridTemplate:cR,isExpanded:T,onToggle:()=>r(T?null:y),cells:[Me.jsxDEV(zm,{model:h.model,provider:h.provider},"name",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Ce(h.totalMessages)},"messages",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Yu(h.totalYelling,h.totalMessages)},"caps",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Yu(h.totalProfanity,h.totalMessages)},"profanity",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Yu(h.totalAnguish,h.totalMessages)},"anguish",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Yu(M,h.totalMessages)},"frustration",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Yu(I,h.totalMessages)},"hits",!1,void 0,this)],trendCell:b.length===0?Me.jsxDEV(Um,{},void 0,!1,void 0,this):Me.jsxDEV(Em,{timestamps:b.map((w)=>w.timestamp),values:b.map((w)=>w.total),color:v},void 0,!1,void 0,this),expandedContent:Me.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[Me.jsxDEV("div",{className:"space-y-4 text-sm",children:[Me.jsxDEV(Tl,{label:"Yelling (CAPS)",total:h.totalYelling,messages:h.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),Me.jsxDEV(Tl,{label:"Profanity",total:h.totalProfanity,messages:h.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),Me.jsxDEV(Tl,{label:"Anguish (!!!, nooo, dude, ..)",total:h.totalAnguish,messages:h.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),Me.jsxDEV(Tl,{label:"Negation (no/nope/wrong)",total:h.totalNegation,messages:h.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),Me.jsxDEV(Tl,{label:"Repetition (i meant, still doesnt)",total:h.totalRepetition,messages:h.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),Me.jsxDEV(Tl,{label:"Blame (you didnt, stop X-ing)",total:h.totalBlame,messages:h.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),Me.jsxDEV(Tl,{label:"Avg chars / msg",total:h.totalChars,messages:h.totalMessages,valueClass:"stats-text-secondary",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV("div",{className:"h-[200px]",children:b.length===0?Me.jsxDEV(Fm,{},void 0,!1,void 0,this):Me.jsxDEV(hz,{data:b,chartTheme:u},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},y,!1,void 0,this)}),p.length===0?Me.jsxDEV("div",{className:"border-t border-[var(--border-subtle)] px-5 py-8 text-center text-[var(--text-muted)] text-sm",children:"No user behavior recorded for this range yet."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Tl({label:a,total:o,messages:s,valueClass:r,mode:l="rate"}){let u=l==="rate"?"% of msgs":"Per msg",d=xa.useMemo(()=>{if(s===0)return"-";return l==="rate"?Yu(o,s):(o/s).toFixed(0)},[o,s,l]);return Me.jsxDEV("div",{children:[Me.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:a},void 0,!1,void 0,this),Me.jsxDEV("div",{className:"space-y-0.5 text-[var(--text-secondary)]",children:[Me.jsxDEV("div",{className:"flex items-center justify-between",children:[Me.jsxDEV("span",{className:"stats-text-muted text-xs",children:"Total"},void 0,!1,void 0,this),Me.jsxDEV("span",{className:`font-mono text-xs ${r}`,children:Ce(o)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV("div",{className:"flex items-center justify-between",children:[Me.jsxDEV("span",{className:"stats-text-muted text-xs",children:u},void 0,!1,void 0,this),Me.jsxDEV("span",{className:"font-mono text-xs stats-text-primary",children:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Ym={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function hz({data:a,chartTheme:o}){let s=xa.useMemo(()=>({labels:a.map((l)=>Cn(new Date(l.timestamp),"MMM d")),datasets:[{label:"CAPS",data:a.map((l)=>l.yelling),...$s(Ym.yelling)},{label:"Profanity",data:a.map((l)=>l.profanity),...$s(Ym.profanity)},{label:"Anguish",data:a.map((l)=>l.anguish),...$s(Ym.anguish)},{label:"Frustration",data:a.map((l)=>l.frustration),...$s(Ym.frustration)}]}),[a]),r=xa.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,plugins:Om(o),scales:XA(o)}),[o]);return Me.jsxDEV(Xa,{data:s,options:r},void 0,!1,void 0,this)}function mz(a){if(a.length===0)return new Map;let o=[...new Set(a.map((l)=>l.timestamp))].sort((l,u)=>l-u),s=new Map;for(let l of a){let u=`${l.model}::${l.provider}`,d=s.get(u);if(!d)d=new Map,s.set(u,d);let p=d.get(l.timestamp)??{timestamp:l.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};p.yelling+=l.yelling,p.profanity+=l.profanity,p.anguish+=l.anguish,p.frustration+=l.negation+l.repetition+l.blame,p.total=p.yelling+p.profanity+p.anguish+p.frustration,d.set(l.timestamp,p)}let r=new Map;for(let[l,u]of s){let d=o.map((p)=>u.get(p)??{timestamp:p,yelling:0,profanity:0,anguish:0,frustration:0,total:0});r.set(l,{data:d})}return r}var Fo=Q(dt(),1);var va=Q(de(),1);function pR({active:a,range:o,refreshTrigger:s}){let{data:r,error:l,loading:u}=Vt(["costs",o,s],(d)=>uA(o,d),{pollMs:30000,enabled:a});return va.jsxDEV("div",{className:"stats-route-container space-y-6",children:va.jsxDEV(Rt,{loading:u,error:l,data:r,children:r&&va.jsxDEV(va.Fragment,{children:[va.jsxDEV(gz,{costSeries:r.costSeries},void 0,!1,void 0,this),va.jsxDEV(xz,{costSeries:r.costSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function gz({costSeries:a}){let o=Fo.useMemo(()=>QA(a),[a]),s=[{label:"API-equivalent estimate",value:ea(o.totalCost,o.unpricedRequests),sub:o.unpricedRequests>0?`Excludes ${o.unpricedRequests.toLocaleString()} unpriced subscription request${o.unpricedRequests===1?"":"s"}`:void 0},{label:"Average estimate / Day",value:ea(o.avgDailyCost,o.unpricedRequests)},{label:"Top Model",value:o.topModelName||"—",sub:o.topModelName?`API-equivalent estimate: ${Cf(o.topModelCost)}`:void 0}];return va.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:s.map((r)=>va.jsxDEV(ut,{className:"stats-cost-overview-card py-4 px-5",children:[va.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:r.label},void 0,!1,void 0,this),va.jsxDEV("p",{className:"text-2xl font-bold stats-text-primary truncate",title:r.value,children:r.value},void 0,!1,void 0,this),r.sub&&va.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:r.sub},void 0,!1,void 0,this)]},r.label,!0,void 0,this))},void 0,!1,void 0,this)}var bz={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function yz(a){return{id:"costBarLabels",afterDatasetsDraw(o){let{ctx:s}=o;if(!o.data.datasets[0])return;let l=o.getDatasetMeta(0);s.save(),s.font="11px system-ui, sans-serif",s.fillStyle=a,s.textAlign="center",s.textBaseline="bottom";for(let u of l.data){let d=u.$context.parsed.y;if(!d)continue;let p=`$${Math.round(d)}`,{x:h,y:g}=u.getProps(["x","y"],!0);s.fillText(p,h,g-3)}s.restore()}}}function xz({costSeries:a}){let[o,s]=Fo.useState(!1),r=$t(),l=ra[r],u=Fo.useMemo(()=>a.reduce((w,A)=>w+A.unpricedRequests,0),[a]),d=Fo.useMemo(()=>{if(o)return ju(a,{rankWeight:(w)=>w.cost,initBucket:()=>({total:0}),accumulate:(w,A)=>{w.total+=A.cost},bucketToValue:(w)=>w.total});return _m(a,"API-equivalent estimate",{initBucket:()=>({total:0}),accumulate:(w,A)=>{w.total+=A.cost},bucketToValue:(w)=>w.total})},[a,o]),p=Fo.useMemo(()=>is({chartTheme:l,showLegend:o,defaultLabel:"API-equivalent estimate",formatValue:(w)=>`$${w.toFixed(2)}`,footer:(w)=>{if(!o||w.length<2)return;return`Total: $${w.reduce((B,z)=>B+(z.parsed.y??0),0).toFixed(2)}`}}),[l,o]),{sharedScaleBase:h,yScale:g}=Fo.useMemo(()=>ls({chartTheme:l,formatY:(w)=>`$${Math.round(w)}`}),[l]),y=Fo.useMemo(()=>yz(bz[r]),[r]),b=Fo.useMemo(()=>{if(!o)return null;return{labels:d.labels,datasets:ui(d,(w)=>Vu(yt[w%yt.length]))}},[d,o]),v=Fo.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:p,scales:{x:h,y:g}}),[p,h,g]),T=Fo.useMemo(()=>{if(o)return null;return{labels:d.labels,datasets:ui(d,(w)=>Sl(yt[w%yt.length]))}},[d,o]),M=Fo.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...p,costBarLabels:{}},scales:{x:{...h,stacked:!0},y:{...g,stacked:!0}},layout:{padding:{top:24}}}),[p,h,g]),I=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return va.jsxDEV(ut,{title:"Daily API-equivalent estimate",subtitle:u>0?`Public API rate-card value over time; excludes ${u.toLocaleString()} unpriced subscription request${u===1?"":"s"}`:"Public API rate-card value over time",actions:va.jsxDEV(Ws,{options:I,value:o,onChange:s},void 0,!1,void 0,this),children:va.jsxDEV("div",{className:"h-[300px]",children:d.labels.length===0?va.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No API-equivalent estimate data available"},void 0,!1,void 0,this):o&&b?va.jsxDEV(Xa,{data:b,options:v},void 0,!1,void 0,this):T?va.jsxDEV(li,{data:T,options:M,plugins:[y]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var hR=Q(dt(),1);var Ut=Q(de(),1);function mR({active:a,range:o,refreshTrigger:s,onRequestClick:r}){let{data:l,error:u,loading:d}=Vt(["recent-errors-dense",o,s],(g)=>cA(o,50,g),{pollMs:30000,enabled:a}),p=hR.useMemo(()=>[{key:"model",header:"Model",render:(g)=>Ut.jsxDEV("div",{children:[Ut.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:g.model},void 0,!1,void 0,this),Ut.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:g.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(g)=>za(g.timestamp)},{key:"errorMessage",header:"Error Message",render:(g)=>Ut.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:g.errorMessage||"",children:g.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(g)=>Ce(g.usage.totalTokens)},{key:"cost",header:"API-equivalent estimate",numeric:!0,render:(g)=>ln(g,4)}],[]);return Ut.jsxDEV("div",{className:"stats-route-container",children:Ut.jsxDEV(ut,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:Ut.jsxDEV(Rt,{loading:d,error:u,data:l,emptyText:"No recent failures in the local stats database",children:Ut.jsxDEV(Ma,{columns:p,data:l||[],keyExtractor:(g)=>g.id||`${g.sessionFile}-${g.entryId}`,onRowClick:(g)=>g.id&&r(g.id),renderMobileCard:(g,y)=>Ut.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:y,children:[Ut.jsxDEV("div",{className:"stats-mobile-card-header",children:[Ut.jsxDEV("div",{children:[Ut.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:g.model},void 0,!1,void 0,this),Ut.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:g.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ut.jsxDEV(ya,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ut.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Ut.jsxDEV("div",{children:[Ut.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),Ut.jsxDEV("div",{className:"stats-mobile-card-value",children:za(g.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ut.jsxDEV("div",{children:[Ut.jsxDEV("div",{className:"stats-mobile-card-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),Ut.jsxDEV("div",{className:"stats-mobile-card-value",children:ln(g,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ut.jsxDEV("div",{children:[Ut.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),Ut.jsxDEV("div",{className:"stats-mobile-card-value",children:Ce(g.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g.errorMessage&&Ut.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:g.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent failures in the local stats database"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var $m=Q(dt(),1);var _e=Q(de(),1);function gR({active:a,range:o,refreshTrigger:s}){let[r,l]=$m.useState(null),{data:u,error:d,loading:p}=Vt(["gain",o,s,r],(h)=>mA(o,r,h),{pollMs:30000,enabled:a});return _e.jsxDEV("div",{className:"stats-route-container space-y-6",children:_e.jsxDEV(Rt,{loading:p,error:d,data:u,children:u&&_e.jsxDEV(_e.Fragment,{children:[_e.jsxDEV(vz,{projects:u.projects,selected:r,onChange:l},void 0,!1,void 0,this),_e.jsxDEV(Sz,{overall:u.overall},void 0,!1,void 0,this),_e.jsxDEV(Cz,{bySource:u.bySource},void 0,!1,void 0,this),_e.jsxDEV(wz,{timeSeries:u.timeSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function vz({projects:a,selected:o,onChange:s}){if(a.length===0)return null;return _e.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[_e.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),_e.jsxDEV("select",{className:"stats-select",value:o??"",onChange:(r)=>s(r.target.value||null),style:{maxWidth:"480px",flex:1},children:[_e.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),a.map((r)=>_e.jsxDEV("option",{value:r,children:r},r,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Sz({overall:a}){return _e.jsxDEV(ut,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:_e.jsxDEV("div",{className:"stats-metric-primary-grid",children:[_e.jsxDEV("div",{className:"stats-metric-card primary",children:[_e.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),_e.jsxDEV("div",{className:"stats-metric-value",children:lt(a.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_e.jsxDEV("div",{className:"stats-metric-card primary",children:[_e.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),_e.jsxDEV("div",{className:"stats-metric-value",children:Jv(a.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_e.jsxDEV("div",{className:"stats-metric-card primary",children:[_e.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),_e.jsxDEV("div",{className:"stats-metric-value",children:a.reductionPercent!==null?Ht(a.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_e.jsxDEV("div",{className:"stats-metric-card primary",children:[_e.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),_e.jsxDEV("div",{className:"stats-metric-value",children:Ce(a.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Lz({title:a,totals:o}){return _e.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[_e.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:a},void 0,!1,void 0,this),_e.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[_e.jsxDEV("div",{children:[_e.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),_e.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:lt(o.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_e.jsxDEV("div",{children:[_e.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),_e.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:Jv(o.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_e.jsxDEV("div",{children:[_e.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),_e.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:Ce(o.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_e.jsxDEV("div",{children:[_e.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),_e.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:o.reductionPercent!==null?Ht(o.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Cz({bySource:a}){return _e.jsxDEV(ut,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:_e.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:_e.jsxDEV(Lz,{title:"Snapcompact",totals:a.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Tz={snapcompact:"rgb(34, 197, 94)"};function wz({timeSeries:a}){let o=$t(),s=ra[o],{data:r,options:l}=$m.useMemo(()=>{let u=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),p={labels:a.map((b)=>u.format(new Date(`${b.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:a.map((b)=>b.snapcompact),...Vu(Tz.snapcompact)}]},{sharedScaleBase:h,yScale:g}=ls({chartTheme:s,formatY:(b)=>lt(b)}),y={responsive:!0,maintainAspectRatio:!1,plugins:is({chartTheme:s,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:lt}),scales:{x:{...h,stacked:!0},y:{...g,stacked:!0}}};return{data:p,options:y}},[a,s]);return _e.jsxDEV(ut,{title:"Savings Over Time",subtitle:"Daily token savings",children:_e.jsxDEV("div",{style:{height:240},children:a.length===0?_e.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):_e.jsxDEV(Xa,{data:r,options:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Tn=Q(dt(),1);var Ee=Q(de(),1);function yR({active:a,range:o,refreshTrigger:s}){let{data:r,error:l,loading:u}=Vt(["models",o,s],(p)=>lA(o,p),{pollMs:30000,enabled:a}),d=Tn.useMemo(()=>GA(r?.byModel??[]),[r?.byModel]);return Ee.jsxDEV("div",{className:"stats-route-container space-y-6",children:Ee.jsxDEV(Rt,{loading:u,error:l,data:r,children:r&&Ee.jsxDEV(Ee.Fragment,{children:[Ee.jsxDEV(kz,{modelSeries:r.modelSeries,timeRange:o,colorLookup:d},void 0,!1,void 0,this),Ee.jsxDEV(Iz,{models:r.byModel,performanceSeries:r.modelPerformanceSeries,timeRange:o,colorLookup:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function kz({modelSeries:a,timeRange:o,colorLookup:s}){let r=$t(),l=ra[r],u=Ll(o),d=Tn.useMemo(()=>Mz(a),[a]),p=Tn.useMemo(()=>({labels:d.data.map((g)=>Tf(g.timestamp,o)),datasets:d.series.map((g,y)=>{let b=yt[y%yt.length],v=g.key?s.get(g.key)??b:b,T=g.key??g.label;return{label:g.label,data:d.data.map((M)=>M[T]??0),borderColor:v,backgroundColor:`${v}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}})}),[d,s,o]),h=Tn.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:l.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:l.tooltipBackground,titleColor:l.tooltipTitle,bodyColor:l.tooltipBody,borderColor:l.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(g)=>{let y=g.dataset.label??"",b=g.parsed.y;return`${y}: ${(b??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:l.grid,drawBorder:!1},ticks:{color:l.tick,font:{size:11}}},y:{grid:{color:l.grid,drawBorder:!1},ticks:{color:l.tick,font:{size:11},callback:(g)=>`${g}%`},min:0,max:100}}}),[l]);return Ee.jsxDEV(ut,{title:"Model Preference",subtitle:`Share of requests over ${u.windowLabel}`,children:Ee.jsxDEV("div",{className:"h-[280px]",children:d.data.length===0?Ee.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):Ee.jsxDEV(Xa,{data:p,options:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Mz(a,o=5){if(a.length===0)return{data:[],series:[]};let s=new Map;for(let b of a){let v=`${b.model}::${b.provider}`,T=s.get(v);if(T)T.total+=b.requests;else s.set(v,{model:b.model,provider:b.provider,total:b.requests})}let l=[...s.entries()].map(([b,v])=>({key:b,...v})).sort((b,v)=>v.total-b.total).slice(0,o),u=new Set(l.map((b)=>b.key)),d=new Map;for(let b of l)d.set(b.model,(d.get(b.model)??0)+1);let p=new Map;for(let b of l){let v=(d.get(b.model)??0)>1;p.set(b.key,v?`${b.model} (${b.provider})`:b.model)}let h=new Map;for(let b of a){let v=`${b.model}::${b.provider}`,T=h.get(b.timestamp)??{timestamp:b.timestamp,total:0};T.total+=b.requests;let M=u.has(v)?v:"Other";T[M]=(T[M]??0)+b.requests,h.set(b.timestamp,T)}let g=l.map((b)=>({key:b.key,label:p.get(b.key)??b.model}));if([...h.values()].some((b)=>(b.Other??0)>0))g.push({label:"Other"});return{data:[...h.values()].sort((b,v)=>(b.timestamp??0)-(v.timestamp??0)).map((b)=>{let v=b.total??0;for(let T of g){let M=T.key??T.label;b[M]=v>0?(b[M]??0)/v*100:0}return b}),series:g}}var bR="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function Iz({models:a,performanceSeries:o,timeRange:s,colorLookup:r}){let[l,u]=Tn.useState(null),d=Ll(s),p=Tn.useMemo(()=>KA(o,s),[o,s]),h=$t(),g=ra[h],y=Tn.useMemo(()=>[...a].sort((b,v)=>v.totalInputTokens+v.totalOutputTokens-(b.totalInputTokens+b.totalOutputTokens)),[a]);return Ee.jsxDEV(Pm,{title:"Model Statistics",children:[Ee.jsxDEV(Bm,{gridTemplate:bR,columns:[{label:"Model"},{label:"Requests",align:"right"},{label:"API-equivalent estimate",align:"right"},{label:"Tokens",align:"right"},{label:"Tokens/s",align:"right"},{label:"TTFT",align:"right"},{label:d.trendLabel,align:"center"}]},void 0,!1,void 0,this),Ee.jsxDEV(Nm,{children:y.map((b,v)=>{let T=`${b.model}::${b.provider}`,I=p.get(T)?.data??[],w=r.get(T)??yt[v%yt.length],A=l===T,B=b.errorRate*100;return Ee.jsxDEV(Hm,{gridTemplate:bR,isExpanded:A,onToggle:()=>u(A?null:T),cells:[Ee.jsxDEV(zm,{model:b.model,provider:b.provider},"name",!1,void 0,this),Ee.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:b.totalRequests.toLocaleString()},"requests",!1,void 0,this),Ee.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:ea(b.totalCost,b.unpricedRequests)},"cost",!1,void 0,this),Ee.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(b.totalInputTokens+b.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),Ee.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:b.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),Ee.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:b.avgTtft?`${(b.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:I.length===0?Ee.jsxDEV(Um,{},void 0,!1,void 0,this):Ee.jsxDEV(Em,{timestamps:I.map((z)=>z.timestamp),values:I.map((z)=>z.avgTokensPerSecond??0),color:w},void 0,!1,void 0,this),expandedContent:Ee.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[Ee.jsxDEV("div",{className:"space-y-4 text-sm",children:[Ee.jsxDEV("div",{children:[Ee.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Efficiency"},void 0,!1,void 0,this),Ee.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[Ee.jsxDEV("div",{className:"flex items-center justify-between",children:[Ee.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:B>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[B.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV("div",{className:"flex items-center justify-between",children:[Ee.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"font-mono",children:[(b.cacheRate*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV("div",{className:"flex items-center justify-between",children:[Ee.jsxDEV("span",{children:"Cache savings"},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:b.cacheSavings<0?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[(b.cacheSavings*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV("div",{children:[Ee.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),Ee.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[Ee.jsxDEV("div",{className:"flex items-center justify-between",children:[Ee.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"font-mono",children:b.avgDuration?`${(b.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV("div",{className:"flex items-center justify-between",children:[Ee.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"font-mono",children:b.avgTtft?`${(b.avgTtft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV("div",{className:"h-[200px]",children:I.length===0?Ee.jsxDEV(Fm,{},void 0,!1,void 0,this):Ee.jsxDEV(Az,{data:I,color:w,chartTheme:g,timeRange:s},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},T,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Az({data:a,color:o,chartTheme:s,timeRange:r}){let l=Tn.useMemo(()=>({labels:a.map((d)=>Tf(d.timestamp,r)),datasets:[{label:"TTFT",data:a.map((d)=>d.avgTtftSeconds??null),...$s("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:a.map((d)=>d.avgTokensPerSecond??null),...$s(o),yAxisID:"y1"}]}),[a,o,r]),u=Tn.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,plugins:Om(s),scales:YA(s)}),[s]);return Ee.jsxDEV(Xa,{data:l,options:u},void 0,!1,void 0,this)}var kf=Q(dt(),1);var xR=Q(dt(),1);var vo=Q(de(),1),Wm={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function vR({stats:a}){let o=xR.useMemo(()=>ZA(a),[a]);if(o.totalTokens===0)return vo.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No token usage in this range"},void 0,!1,void 0,this);return vo.jsxDEV("div",{className:"space-y-4",children:[vo.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:o.segments.map((s)=>s.share>0&&vo.jsxDEV("div",{className:"h-full",style:{width:`${s.share*100}%`,background:Wm[s.agentType].color},title:`${Wm[s.agentType].label}: ${Ht(s.share)}`},s.agentType,!1,void 0,this))},void 0,!1,void 0,this),vo.jsxDEV("div",{className:"space-y-2",children:o.segments.map((s)=>vo.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[vo.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[vo.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:Wm[s.agentType].color}},void 0,!1,void 0,this),vo.jsxDEV("span",{className:"stats-text-primary truncate",children:Wm[s.agentType].label},void 0,!1,void 0,this),vo.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[Ce(s.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),vo.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[vo.jsxDEV("span",{className:"stats-text-secondary",children:[lt(s.tokens)," tok"]},void 0,!0,void 0,this),vo.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:Ht(s.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},s.agentType,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ve=Q(de(),1);function SR({active:a,range:o,refreshTrigger:s,onRequestClick:r}){let{data:l,error:u,loading:d}=Vt(["overview",o,s],(A)=>iA(o,A),{pollMs:30000,enabled:a}),{data:p,error:h,loading:g}=Vt(["recent-requests",s],(A)=>Rm(50,A),{pollMs:30000,enabled:a}),y=$t(),b=ra[y],v=kf.useMemo(()=>{if(!l?.timeSeries)return{labels:[],datasets:[]};let A=l.timeSeries.map((z)=>Cn(new Date(z.timestamp),o==="1h"||o==="24h"?"HH:mm":"MMM d")),B=l.timeSeries.length<=2?3:0;return{labels:A,datasets:[{label:"Requests",data:l.timeSeries.map((z)=>z.requests),borderColor:"#5ad8e6",backgroundColor:"rgba(90, 216, 230, 0.12)",tension:0.2,borderWidth:2,pointRadius:B,pointHoverRadius:4,fill:!0},{label:"Errors",data:l.timeSeries.map((z)=>z.errors),borderColor:"#ff6b7d",backgroundColor:"rgba(255, 107, 125, 0.12)",tension:0.2,borderWidth:2,pointRadius:B,pointHoverRadius:4,fill:!0}]}},[l?.timeSeries,o]),T=kf.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:b.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:b.tooltipBackground,titleColor:b.tooltipTitle,bodyColor:b.tooltipBody,borderColor:b.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:b.grid,drawBorder:!1},ticks:{color:b.tick,font:{size:10}}},y:{grid:{color:b.grid,drawBorder:!1},ticks:{color:b.tick,font:{size:10}},min:0}}}),[b]),M=kf.useMemo(()=>[{key:"model",header:"Model",render:(A)=>ve.jsxDEV("div",{children:[ve.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:A.model},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:A.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(A)=>za(A.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(A)=>Ce(A.usage.totalTokens)},{key:"cost",header:"API-equivalent estimate",numeric:!0,render:(A)=>ln(A,4)},{key:"duration",header:"Duration",numeric:!0,render:(A)=>rt(A.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(A)=>ve.jsxDEV(ya,{variant:A.errorMessage?"danger":"success",children:A.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),I=(A,B)=>ve.jsxDEV("div",{className:"stats-mobile-card",onClick:B,children:[ve.jsxDEV("div",{className:"stats-mobile-card-header",children:[ve.jsxDEV("div",{children:[ve.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:A.model},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:A.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV(ya,{variant:A.errorMessage?"danger":"success",children:A.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV("div",{className:"stats-mobile-card-grid",children:[ve.jsxDEV("div",{children:[ve.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-mobile-card-value",children:za(A.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV("div",{children:[ve.jsxDEV("div",{className:"stats-mobile-card-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-mobile-card-value",children:ln(A,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV("div",{children:[ve.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-mobile-card-value",children:Ce(A.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV("div",{children:[ve.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-mobile-card-value",children:rt(A.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A.errorMessage&&ve.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:A.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w=kf.useMemo(()=>{if(!p)return[];return p.slice(0,10)},[p]);return ve.jsxDEV("div",{className:"stats-route-container space-y-6",children:[ve.jsxDEV(Rt,{loading:d,error:u,data:l,children:l&&ve.jsxDEV(nR,{stats:l.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),ve.jsxDEV(ut,{title:"Conversation Tokens by Agent",subtitle:"Uncached input + cache reads + cache writes + output, grouped by agent type",children:ve.jsxDEV(Rt,{loading:d,error:u,data:l,children:l&&ve.jsxDEV(vR,{stats:l.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[ve.jsxDEV("div",{className:"lg:col-span-2",children:ve.jsxDEV(ut,{title:"System Throughput",subtitle:"Request volume and errors over time",children:ve.jsxDEV(Rt,{loading:d,error:u,data:l,children:ve.jsxDEV("div",{className:"h-[280px]",children:l?.timeSeries&&l.timeSeries.length>0?ve.jsxDEV(Xa,{data:v,options:T},void 0,!1,void 0,this):ve.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No time-series data available"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ve.jsxDEV("div",{children:ve.jsxDEV(ut,{title:"Operational Feed",subtitle:"Real-time request log",children:ve.jsxDEV(Rt,{loading:g,error:h,data:p,fallback:ve.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((A,B)=>ve.jsxDEV("div",{className:"flex items-center gap-3",children:[ve.jsxDEV(Ua,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"flex-1",children:[ve.jsxDEV(Ua,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),ve.jsxDEV(Ua,{variant:"text",width:"40%",height:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},B,!0,void 0,this))},void 0,!1,void 0,this),children:ve.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[w.map((A)=>{let B=!!A.errorMessage;return ve.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>A.id&&r(A.id),children:[ve.jsxDEV("div",{className:`w-2 h-2 mt-1.5 rounded-full flex-shrink-0 ${B?"bg-stats-danger":"bg-stats-success"}`},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"flex-1 min-w-0",children:[ve.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[ve.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:A.model},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:za(A.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[ve.jsxDEV("div",{children:A.provider},void 0,!1,void 0,this),ve.jsxDEV("div",{children:[A.duration?rt(A.duration):""," ",A.usage.totalTokens>0?`· ${ln(A,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B&&ve.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:A.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},A.id||`${A.sessionFile}-${A.entryId}`,!0,void 0,this)}),w.length===0&&ve.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No recent requests found"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV(ut,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:ve.jsxDEV("a",{href:`#/requests?range=${o}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:ve.jsxDEV(Rt,{loading:g,error:h,data:p,children:ve.jsxDEV(Ma,{columns:M,data:w,keyExtractor:(A)=>A.id||`${A.sessionFile}-${A.entryId}`,onRowClick:(A)=>A.id&&r(A.id),renderMobileCard:I,emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var a0=Q(dt(),1);var ot=Q(de(),1);function LR({active:a,range:o,refreshTrigger:s}){let{data:r,error:l,loading:u}=Vt(["projects",o,s],(g)=>hA(o,g),{pollMs:30000,enabled:a}),d=a0.useMemo(()=>{if(!r)return[];return eR(r)},[r]),p=a0.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(g)=>ot.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate max-w-[440px]",title:g.folder||"(root)",children:g.folder||"(root)"},void 0,!1,void 0,this)},{key:"totalRequests",header:"Requests",numeric:!0,render:(g)=>ot.jsxDEV("div",{className:"stats-text-right",children:[ot.jsxDEV("div",{className:"font-mono",children:Ce(g.totalRequests)},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:ot.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${g.requestsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalCost",header:"API-equivalent estimate",numeric:!0,render:(g)=>ot.jsxDEV("div",{className:"stats-text-right",children:[ot.jsxDEV("div",{className:"font-mono",children:ea(g.totalCost,g.unpricedRequests)},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:ot.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"success",style:{width:`${g.costPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalTokens",header:"Tokens",numeric:!0,render:(g)=>ot.jsxDEV("div",{className:"font-mono",children:Ce(g.totalInputTokens+g.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(g)=>ot.jsxDEV("span",{className:"font-mono",children:Ht(g.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:"Cache Savings",numeric:!0,render:(g)=>ot.jsxDEV("span",{className:`${g.cacheSavings<0?"stats-text-danger":"stats-text-success"} font-medium`,children:Ht(g.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(g)=>ot.jsxDEV(ya,{variant:g.errorRate>0.1?"danger":g.errorRate>0?"warning":"success",children:Ht(g.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(g)=>rt(g.avgDuration)}],[]);return ot.jsxDEV("div",{className:"stats-route-container",children:ot.jsxDEV(ut,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:ot.jsxDEV(Rt,{loading:u,error:l,data:r,emptyText:"No project folders recorded for this range.",children:ot.jsxDEV(Ma,{columns:p,data:d,keyExtractor:(g)=>g.folder,renderMobileCard:(g)=>ot.jsxDEV("div",{className:"stats-mobile-card",children:[ot.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[ot.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:g.folder||"(root)"},void 0,!1,void 0,this),ot.jsxDEV(ya,{variant:g.errorRate>0.1?"danger":g.errorRate>0?"warning":"success",children:[Ht(g.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("div",{className:"stats-mobile-card-grid",children:[ot.jsxDEV("div",{children:[ot.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:Ce(g.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("div",{children:[ot.jsxDEV("div",{className:"stats-mobile-card-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:ea(g.totalCost,g.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("div",{children:[ot.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache Rate"},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-mobile-card-value",children:Ht(g.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("div",{children:[ot.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache Savings"},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-mobile-card-value",children:Ht(g.cacheSavings)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("div",{children:[ot.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-mobile-card-value",children:rt(g.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No project folders recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ia=Q(dt(),1);var $e=Q(de(),1);function CR({active:a,range:o,refreshTrigger:s}){let{data:r,error:l,loading:u}=Vt(["providers",o,s],(d)=>bA(o,d),{pollMs:30000,enabled:a});return $e.jsxDEV("div",{className:"stats-route-container space-y-6",children:$e.jsxDEV(Rt,{loading:u,error:l,data:r,children:r&&$e.jsxDEV($e.Fragment,{children:[$e.jsxDEV(Rz,{providers:r.providers},void 0,!1,void 0,this),$e.jsxDEV(Dz,{stats:r},void 0,!1,void 0,this),$e.jsxDEV(_z,{hourly:r.hourly,providers:r.providers},void 0,!1,void 0,this),$e.jsxDEV(Ez,{insights:r.windowInsights},void 0,!1,void 0,this),$e.jsxDEV(Oz,{usageSeries:r.usageSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Rz({providers:a}){let o=Ia.useMemo(()=>a.reduce((l,u)=>l+u.totalTokens,0),[a]),s=Ia.useMemo(()=>a.reduce((l,u)=>l+u.unpricedRequests,0),[a]),r=[{key:"provider",header:"Provider",render:(l)=>$e.jsxDEV("span",{className:"font-medium",children:l.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",numeric:!0,render:(l)=>Ce(l.totalRequests)},{key:"errors",header:"Error Rate",numeric:!0,render:(l)=>Ht(l.totalRequests>0?l.failedRequests/l.totalRequests:0)},{key:"models",header:"Models",numeric:!0,render:(l)=>Ce(l.models)},{key:"tokens",header:"Tokens",numeric:!0,render:(l)=>$e.jsxDEV("span",{title:`Input ${lt(l.totalInputTokens)} · Output ${lt(l.totalOutputTokens)} · Cache read ${lt(l.totalCacheReadTokens)} · Cache write ${lt(l.totalCacheWriteTokens)}`,children:lt(l.totalTokens)},void 0,!1,void 0,this)},{key:"share",header:"Share",numeric:!0,render:(l)=>Ht(o>0?l.totalTokens/o:0)},{key:"cost",header:"API-equivalent estimate",numeric:!0,render:(l)=>ea(l.totalCost,l.unpricedRequests)},{key:"tps",header:"Tok/s",numeric:!0,render:(l)=>qm(l.avgTokensPerSecond)}];return $e.jsxDEV(ut,{title:"Provider Totals",subtitle:s>0?`Token, request, and API-equivalent estimates; excludes ${s.toLocaleString()} unpriced subscription request${s===1?"":"s"}`:"Token, request, and API-equivalent estimates over the active range",children:$e.jsxDEV(Ma,{columns:r,data:a,keyExtractor:(l)=>l.provider,emptyText:"No requests recorded in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Dz({stats:a}){let[o,s]=Ia.useState("tokens"),r=$t(),l=ra[r],u=Ia.useMemo(()=>a.providers.reduce((y,b)=>y+b.unpricedRequests,0),[a.providers]),d=Ia.useMemo(()=>{let y=a.series.map((b)=>({...b,model:b.provider}));return ju(y,{topN:6,rankWeight:(b)=>o==="tokens"?b.totalTokens:b.cost,initBucket:()=>({total:0}),accumulate:(b,v)=>{b.total+=o==="tokens"?v.totalTokens:v.cost},bucketToValue:(b)=>b.total})},[a.series,o]),p=o==="tokens"?lt:(y)=>Cf(y),h=Ia.useMemo(()=>{let{sharedScaleBase:y,yScale:b}=ls({chartTheme:l,formatY:p});return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:is({chartTheme:l,showLegend:!0,defaultLabel:o==="tokens"?"Tokens":"API-equivalent estimate",formatValue:p,footer:(v)=>{if(v.length<2)return;let T=v.reduce((M,I)=>M+(I.parsed.y??0),0);return`Total: ${p(T)}`}}),scales:{x:{...y,stacked:!0},y:{...b,stacked:!0}}}},[l,o,p]),g=Ia.useMemo(()=>({labels:d.labels,datasets:ui(d,(y)=>Sl(yt[y%yt.length]))}),[d]);return $e.jsxDEV(ut,{title:"Burn by Provider",subtitle:o==="cost"&&u>0?`API-equivalent estimates over time; excludes ${u.toLocaleString()} unpriced subscription request${u===1?"":"s"}`:"Stacked token or API-equivalent estimate burn over time",actions:$e.jsxDEV(Ws,{options:[{value:"tokens",label:"Tokens"},{value:"cost",label:"API-equivalent estimate"}],value:o,onChange:s},void 0,!1,void 0,this),children:$e.jsxDEV("div",{className:"h-[300px]",children:d.labels.length===0?$e.jsxDEV(Gu,{message:"No provider activity in this range"},void 0,!1,void 0,this):$e.jsxDEV(li,{data:g,options:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var o0="__all__";function _z({hourly:a,providers:o}){let[s,r]=Ia.useState(o0),l=$t(),u=ra[l],{tokensByHour:d,peakHour:p}=Ia.useMemo(()=>{let b=Array(24).fill(0);for(let T of a){if(s!==o0&&T.provider!==s)continue;b[T.hour]+=T.totalTokens}let v=0;for(let T=1;T<24;T++)if(b[T]>b[v])v=T;return{tokensByHour:b,peakHour:v}},[a,s]),h=d.some((b)=>b>0),g=Ia.useMemo(()=>({labels:Array.from({length:24},(b,v)=>`${String(v).padStart(2,"0")}:00`),datasets:[{label:"Tokens",data:d,...Sl(yt[2]),backgroundColor:d.map((b,v)=>v===p?yt[0]:yt[2])}]}),[d,p]),y=Ia.useMemo(()=>{let{sharedScaleBase:b,yScale:v}=ls({chartTheme:u,formatY:lt});return{responsive:!0,maintainAspectRatio:!1,plugins:is({chartTheme:u,showLegend:!1,defaultLabel:"Tokens",formatValue:lt}),scales:{x:b,y:v}}},[u]);return $e.jsxDEV(ut,{title:"Peak Burn Hours",subtitle:h?`Token burn by local hour of day — peak at ${String(p).padStart(2,"0")}:00`:"Token burn by local hour of day",actions:$e.jsxDEV("select",{className:"stats-select",value:s,onChange:(b)=>r(b.target.value),"aria-label":"Provider",children:[$e.jsxDEV("option",{value:o0,children:"All providers"},void 0,!1,void 0,this),o.map((b)=>$e.jsxDEV("option",{value:b.provider,children:b.provider},b.provider,!1,void 0,this))]},void 0,!0,void 0,this),children:$e.jsxDEV("div",{className:"h-[260px]",children:h?$e.jsxDEV(li,{data:g,options:y},void 0,!1,void 0,this):$e.jsxDEV(Gu,{message:"No activity in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Ez({insights:a}){return $e.jsxDEV(ut,{title:"Subscription Windows",subtitle:"What each usage window buys you, and how many accounts peak demand needs",children:$e.jsxDEV(Ma,{columns:[{key:"provider",header:"Provider",render:(s)=>$e.jsxDEV("span",{className:"font-medium",children:s.provider},void 0,!1,void 0,this)},{key:"window",header:"Window",render:(s)=>s.windowLabel},{key:"accounts",header:"Accounts",numeric:!0,render:(s)=>Ce(s.accounts)},{key:"consumed",header:"Windows Burned",numeric:!0,render:(s)=>$e.jsxDEV("span",{title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",children:s.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Est. Tokens / Window",numeric:!0,render:(s)=>$e.jsxDEV("span",{title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",children:s.estTokensPerWindow!==null?lt(s.estTokensPerWindow):"—"},void 0,!1,void 0,this)},{key:"peak",header:"Peak Utilization",numeric:!0,render:(s)=>$e.jsxDEV("span",{title:"Peak of summed used fraction across accounts at any sampled instant",children:Ht(s.peakConcurrentFraction)},void 0,!1,void 0,this)},{key:"ideal",header:"Ideal Accounts",numeric:!0,render:(s)=>$e.jsxDEV("span",{title:"Accounts needed to keep peak demand under 90% of fleet capacity",className:s.idealAccounts>s.accounts?"stats-text-warning font-semibold":void 0,children:[Ce(s.idealAccounts),s.idealAccounts>s.accounts?` (have ${s.accounts})`:""]},void 0,!0,void 0,this)},{key:"exhausted",header:"Exhaustions",numeric:!0,render:(s)=>$e.jsxDEV("span",{className:s.exhaustedEvents>0?"stats-text-warning":void 0,children:Ce(s.exhaustedEvents)},void 0,!1,void 0,this)}],data:a,keyExtractor:(s)=>`${s.provider}::${s.windowKey}`,emptyText:"No usage snapshots recorded yet — they accumulate whenever usage is fetched (TUI footer, /usage, omp usage)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var n0={ok:"#62d394",warning:"#f5c14b",exhausted:"#ff6b7d"};function Oz({usageSeries:a}){let o=Ia.useMemo(()=>[...new Set(a.map((y)=>y.provider))],[a]),[s,r]=Ia.useState(null),l=s!==null&&o.includes(s)?s:o[0]??null,u=$t(),d=ra[u],p=Ia.useMemo(()=>a.filter((y)=>y.provider===l).map((y)=>{let b=[...y.points].reverse().find((v)=>v.usedFraction!==null);return b?{label:`${y.windowLabel} · ${y.accountLabel}`,fraction:b.usedFraction??0,exhausted:b.exhausted,recordedAt:b.timestamp}:null}).filter((y)=>y!==null).sort((y,b)=>b.fraction-y.fraction),[a,l]),h=Ia.useMemo(()=>({labels:p.map((y)=>y.label),datasets:[{label:"Used",data:p.map((y)=>y.fraction*100),backgroundColor:p.map((y)=>y.exhausted?n0.exhausted:y.fraction>=0.8?n0.warning:n0.ok),borderWidth:0,borderRadius:4,barThickness:18}]}),[p]),g=Ia.useMemo(()=>{let{sharedScaleBase:y,yScale:b}=ls({chartTheme:d,formatY:(M)=>`${Math.round(M)}%`}),v=Math.max(100,...p.map((M)=>M.fraction*100)),T=is({chartTheme:d,showLegend:!1,defaultLabel:"Used",formatValue:(M)=>`${M.toFixed(1)}%`});return{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{...T,tooltip:{...T.tooltip,callbacks:{label:(M)=>{let I=p[M.dataIndex],w=`${(M.parsed.x??0).toFixed(1)}% used`;return I?`${w} · recorded ${za(I.recordedAt)}`:w}}}},scales:{x:{...b,max:v},y:{...y,grid:{display:!1}}}}},[d,p]);return $e.jsxDEV(ut,{title:"Window Utilization",subtitle:"Latest recorded limit utilization per account and window — red bars are exhausted, amber above 80%",actions:o.length>1?$e.jsxDEV("select",{className:"stats-select",value:l??"",onChange:(y)=>r(y.target.value),"aria-label":"Provider",children:o.map((y)=>$e.jsxDEV("option",{value:y,children:y},y,!1,void 0,this))},void 0,!1,void 0,this):void 0,children:$e.jsxDEV("div",{style:{height:Math.max(160,p.length*34+60)},children:p.length===0?$e.jsxDEV(Gu,{message:"No usage snapshots recorded yet — they accumulate whenever usage is fetched"},void 0,!1,void 0,this):$e.jsxDEV(li,{data:h,options:g},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var TR=Q(dt(),1);var Tt=Q(de(),1);function wR({active:a,refreshTrigger:o,onRequestClick:s}){let{data:r,error:l,loading:u}=Vt(["recent-requests-dense",o],(h)=>Rm(50,h),{pollMs:30000,enabled:a}),d=TR.useMemo(()=>[{key:"model",header:"Model",render:(h)=>Tt.jsxDEV("div",{children:[Tt.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:h.model},void 0,!1,void 0,this),Tt.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:h.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(h)=>za(h.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(h)=>Ce(h.usage.totalTokens)},{key:"cost",header:"API-equivalent estimate",numeric:!0,render:(h)=>ln(h,4)},{key:"duration",header:"Duration",numeric:!0,render:(h)=>rt(h.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(h)=>Tt.jsxDEV(ya,{variant:h.errorMessage?"danger":"success",children:h.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return Tt.jsxDEV("div",{className:"stats-route-container",children:Tt.jsxDEV(ut,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:Tt.jsxDEV(Rt,{loading:u,error:l,data:r,children:Tt.jsxDEV(Ma,{columns:d,data:r||[],keyExtractor:(h)=>h.id||`${h.sessionFile}-${h.entryId}`,onRowClick:(h)=>h.id&&s(h.id),renderMobileCard:(h,g)=>Tt.jsxDEV("div",{className:"stats-mobile-card",onClick:g,children:[Tt.jsxDEV("div",{className:"stats-mobile-card-header",children:[Tt.jsxDEV("div",{children:[Tt.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:h.model},void 0,!1,void 0,this),Tt.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:h.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Tt.jsxDEV(ya,{variant:h.errorMessage?"danger":"success",children:h.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Tt.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Tt.jsxDEV("div",{children:[Tt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),Tt.jsxDEV("div",{className:"stats-mobile-card-value",children:za(h.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Tt.jsxDEV("div",{children:[Tt.jsxDEV("div",{className:"stats-mobile-card-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),Tt.jsxDEV("div",{className:"stats-mobile-card-value",children:ln(h,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Tt.jsxDEV("div",{children:[Tt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),Tt.jsxDEV("div",{className:"stats-mobile-card-value",children:Ce(h.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Tt.jsxDEV("div",{children:[Tt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),Tt.jsxDEV("div",{className:"stats-mobile-card-value",children:rt(h.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h.errorMessage&&Tt.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:h.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var cn=Q(dt(),1);var re=Q(de(),1);function kR({active:a,range:o,refreshTrigger:s}){let{data:r,error:l,loading:u}=Vt(["tools",o,s],(d)=>gA(o,d),{pollMs:30000,enabled:a});return re.jsxDEV("div",{className:"stats-route-container space-y-6",children:re.jsxDEV(Rt,{loading:u,error:l,data:r,emptyText:"No tool calls recorded for this range.",children:r&&re.jsxDEV(re.Fragment,{children:[re.jsxDEV(Pz,{byTool:r.byTool},void 0,!1,void 0,this),re.jsxDEV(zz,{series:r.series,timeRange:o},void 0,!1,void 0,this),re.jsxDEV(Hz,{byTool:r.byTool},void 0,!1,void 0,this),re.jsxDEV(Uz,{byToolModel:r.byToolModel},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Pz({byTool:a}){let o=cn.useMemo(()=>{let s=0,r=0,l=0,u=0,d=0,p=0,h=0,g=0;for(let y of a)s+=y.calls,r+=y.errors,l+=y.totalTokensShare,u+=y.outputTokensShare,d+=y.costShare,p+=y.unpricedRequestsShare,h+=y.resultChars,g+=y.argsChars;return{calls:s,errors:r,tokens:l,output:u,cost:d,unpricedRequests:p,resultChars:h,argsChars:g,tools:a.length}},[a]);return re.jsxDEV(ut,{title:"Tool Usage",subtitle:"Tokens and API-equivalent estimates are split from invoking turns across each turn's tool calls",children:re.jsxDEV("div",{className:"stats-metric-cluster",children:[re.jsxDEV("div",{className:"stats-metric-primary-grid",children:[re.jsxDEV("div",{className:"stats-metric-card primary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Tool Calls"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:Ce(o.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-card primary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Tools Used"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:Ce(o.tools)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-card primary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:Ht(o.calls>0?o.errors/o.calls:0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-card primary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Attributed API-equivalent estimate"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:ea(o.cost,o.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[re.jsxDEV("div",{className:"stats-metric-card secondary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Tokens"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:lt(Math.round(o.tokens))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-card secondary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Output"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:lt(Math.round(o.output))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-card secondary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Result Text"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:[lt(o.resultChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-card secondary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Call Arguments"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:[lt(o.argsChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Bz=6;function Nz(a){let o=new Map;for(let g of a)o.set(g.tool,(o.get(g.tool)??0)+g.calls);let s=[...o.entries()].sort((g,y)=>y[1]-g[1]),r=s.slice(0,Bz).map(([g])=>g),l=new Set(r),d=s.length>r.length?[...r,"Other"]:r,p=[...new Set(a.map((g)=>g.timestamp))].sort((g,y)=>g-y),h=new Map;for(let g of p)h.set(g,{});for(let g of a){let y=l.has(g.tool)?g.tool:"Other",b=h.get(g.timestamp);if(b)b[y]=(b[y]??0)+g.calls}return{buckets:p,tools:d,data:h}}function zz({series:a,timeRange:o}){let s=$t(),r=ra[s],l=Ll(o),u=cn.useMemo(()=>Nz(a),[a]),d=cn.useMemo(()=>({labels:u.buckets.map((h)=>Tf(h,o)),datasets:u.tools.map((h,g)=>({label:h,data:u.buckets.map((y)=>u.data.get(y)?.[h]??0),borderColor:yt[g%yt.length],backgroundColor:`${yt[g%yt.length]}30`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[u,o]),p=cn.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:r.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:r.tooltipBackground,titleColor:r.tooltipTitle,bodyColor:r.tooltipBody,borderColor:r.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(h)=>`${h.dataset.label??""}: ${Ce(h.parsed.y??0)} calls`}}},scales:{x:{stacked:!0,grid:{color:r.grid,drawBorder:!1},ticks:{color:r.tick,font:{size:11}}},y:{stacked:!0,grid:{color:r.grid,drawBorder:!1},ticks:{color:r.tick,font:{size:11},precision:0},min:0}}}),[r]);return re.jsxDEV(ut,{title:"Calls Over Time",subtitle:`Tool calls over ${l.windowLabel}, stacked by tool`,children:re.jsxDEV("div",{className:"h-[280px]",children:u.buckets.length===0?re.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):re.jsxDEV(Xa,{data:d,options:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function s0(a){return a>0.1?"danger":a>0?"warning":"success"}function Hz({byTool:a}){let o=cn.useMemo(()=>tR(a),[a]),s=cn.useMemo(()=>[{key:"tool",header:"Tool",render:(l)=>re.jsxDEV("div",{className:"stats-font-medium stats-text-primary font-mono truncate max-w-[280px]",title:l.tool,children:l.tool},void 0,!1,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(l)=>re.jsxDEV("div",{className:"stats-text-right",children:[re.jsxDEV("div",{className:"font-mono",children:Ce(l.calls)},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:re.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${l.callsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(l)=>re.jsxDEV(ya,{variant:s0(l.errorRate),children:Ht(l.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(l)=>re.jsxDEV("span",{className:"font-mono",title:"Invoking turns' total tokens, split across each turn's calls",children:lt(Math.round(l.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. API-equivalent estimate",numeric:!0,render:(l)=>re.jsxDEV("span",{className:"font-mono",children:ea(l.costShare,l.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"resultChars",header:"Result Text",numeric:!0,render:(l)=>re.jsxDEV("span",{className:"font-mono",title:"Characters of tool-result text fed back into context",children:lt(l.resultChars)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last Used",numeric:!0,render:(l)=>re.jsxDEV("span",{className:"stats-text-secondary",children:za(l.lastUsed)},void 0,!1,void 0,this)}],[]);return re.jsxDEV(ut,{title:"By Tool",subtitle:"Usage per tool, most called first",children:re.jsxDEV(Ma,{columns:s,data:o,keyExtractor:(l)=>l.tool,renderMobileCard:(l)=>re.jsxDEV("div",{className:"stats-mobile-card",children:[re.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[re.jsxDEV("div",{className:"stats-font-semibold stats-text-primary font-mono",children:l.tool},void 0,!1,void 0,this),re.jsxDEV(ya,{variant:s0(l.errorRate),children:[Ht(l.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-mobile-card-grid",children:[re.jsxDEV("div",{children:[re.jsxDEV("div",{className:"stats-mobile-card-label",children:"Calls"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:Ce(l.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{children:[re.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Tokens"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:lt(Math.round(l.totalTokensShare))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{children:[re.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. API-equivalent estimate"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:ea(l.costShare,l.unpricedRequestsShare)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{children:[re.jsxDEV("div",{className:"stats-mobile-card-label",children:"Result Text"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:lt(l.resultChars)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Uz({byToolModel:a}){let[o,s]=cn.useState(null),r=cn.useMemo(()=>[...new Set(a.map((d)=>d.tool))].sort(),[a]),l=cn.useMemo(()=>(o?a.filter((p)=>p.tool===o):a).map((p)=>({...p,errorRate:p.calls>0?p.errors/p.calls:0})),[a,o]),u=cn.useMemo(()=>[{key:"tool",header:"Tool",render:(d)=>re.jsxDEV("span",{className:"stats-font-medium stats-text-primary font-mono",children:d.tool},void 0,!1,void 0,this)},{key:"model",header:"Model",render:(d)=>re.jsxDEV("div",{children:[re.jsxDEV("div",{className:"stats-text-primary",children:d.model||"(unknown)"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-text-secondary text-xs",children:d.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(d)=>re.jsxDEV("span",{className:"font-mono",children:Ce(d.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(d)=>re.jsxDEV(ya,{variant:s0(d.errorRate),children:Ht(d.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(d)=>re.jsxDEV("span",{className:"font-mono",children:lt(Math.round(d.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. API-equivalent estimate",numeric:!0,render:(d)=>re.jsxDEV("span",{className:"font-mono",children:ea(d.costShare,d.unpricedRequestsShare)},void 0,!1,void 0,this)}],[]);return re.jsxDEV(ut,{title:"By Model",subtitle:"Which models call which tools",children:[re.jsxDEV("div",{className:"mb-4",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[re.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Tool"},void 0,!1,void 0,this),re.jsxDEV("select",{className:"stats-select",value:o??"",onChange:(d)=>s(d.target.value||null),style:{maxWidth:"320px",flex:1},children:[re.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),r.map((d)=>re.jsxDEV("option",{value:d,children:d},d,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV(Ma,{columns:u,data:l,keyExtractor:(d)=>`${d.tool}::${d.model}::${d.provider}`,emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Rf=Q(dt(),1);var wt=Q(dt(),1);var Zm=Q(dt(),1);var Zs=Q(de(),1);function MR({toolStats:a}){let[o,s]=Zm.useState(!1),r=Zm.useMemo(()=>[{key:"tool",header:"Tool",render:(l)=>l.tool},{key:"calls",header:"Calls",numeric:!0,render:(l)=>Ce(l.calls)},{key:"errors",header:"Errors",numeric:!0,render:(l)=>Ce(l.errors)},{key:"total",header:"Total",numeric:!0,render:(l)=>rt(l.totalMs)},{key:"avg",header:"Avg",numeric:!0,render:(l)=>rt(l.calls>0?l.totalMs/l.calls:0)},{key:"max",header:"Max",numeric:!0,render:(l)=>rt(l.maxMs)}],[]);if(a.length===0)return null;return Zs.jsxDEV("div",{className:"stats-panel",children:[Zs.jsxDEV("button",{type:"button",onClick:()=>s((l)=>!l),"aria-expanded":o,style:{display:"flex",alignItems:"center",gap:6,width:"100%",background:"none",border:"none",padding:"10px 14px",cursor:"pointer",textAlign:"left"},children:[o?Zs.jsxDEV(Xs,{size:14,className:"stats-text-muted","aria-hidden":"true"},void 0,!1,void 0,this):Zs.jsxDEV(hl,{size:14,className:"stats-text-muted","aria-hidden":"true"},void 0,!1,void 0,this),Zs.jsxDEV("span",{className:"stats-panel-title",children:"Tool Aggregates"},void 0,!1,void 0,this),Zs.jsxDEV("span",{className:"stats-text-muted",style:{fontSize:11},children:[a.length," tools"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),o&&Zs.jsxDEV("div",{className:"stats-panel-body",children:Zs.jsxDEV(Ma,{columns:r,data:a,keyExtractor:(l)=>l.tool,emptyText:"No tool calls"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var wn=Q(dt(),1);var $u={dark:{category:{turn:"#34d399",model:"#a78bfa",tool:"#fbbf24",subagent:"#38bdf8",background:"#94a3b8"},error:"#f87171",marker:"#facc15",turnBand:"rgba(255, 255, 255, 0.035)",surface:"transparent",grid:"rgba(255, 255, 255, 0.06)",tick:"#867a93",spanText:"#16121c",selection:"#5ad8e6",tooltipBackground:"#241a2e",tooltipTitle:"#eae5ef",tooltipBody:"#a89fb3",tooltipBorder:"rgba(255, 255, 255, 0.12)"},light:{category:{turn:"#059669",model:"#7c3aed",tool:"#d97706",subagent:"#0284c7",background:"#64748b"},error:"#ef4444",marker:"#ca8a04",turnBand:"rgba(0, 0, 0, 0.04)",surface:"transparent",grid:"rgba(20, 12, 28, 0.08)",tick:"#6a6275",spanText:"#ffffff",selection:"#0e7490",tooltipBackground:"#ffffff",tooltipTitle:"#241a2e",tooltipBody:"#5a5462",tooltipBorder:"rgba(20, 12, 28, 0.15)"}};var RR=Q(de(),1),fi=44,r0=["turn","model","tool","subagent"],IR=6,Wu=10;function AR({tracks:a,scale:o,viewport:s,onViewportChange:r}){let l=$t(),u=$u[l],d=wn.useRef(null),[p,h]=wn.useState(800),g=wn.useRef(null);wn.useEffect(()=>{let B=d.current;if(!B)return;let z=new ResizeObserver((H)=>{h(Math.max(100,Math.floor(H[0].contentRect.width)))});return z.observe(B),()=>z.disconnect()},[]);let[y,b]=o.domain,v=Math.max(b-y,0.000000001),T=wn.useCallback((B)=>(B-y)/v*p,[y,v,p]),M=wn.useCallback((B)=>y+B/Math.max(p,1)*v,[y,v,p]);wn.useEffect(()=>{let B=d.current;if(!B)return;let z=B.getContext("2d");if(!z)return;let H=devicePixelRatio;z.setTransform(H,0,0,H,0,0),z.clearRect(0,0,p,fi);let q=fi/r0.length;for(let Y=0;Y<r0.length;Y++){let J=r0[Y],X=new Float32Array(p);for(let se of a)for(let ge of se.spans){if(ge.kind!==J)continue;let be=Math.max(0,Math.floor(T(o.toU(ge.start)))),Se=Math.min(p-1,Math.ceil(T(o.toU(ge.end))));for(let K=be;K<=Se;K++)X[K]=Math.min(1,X[K]+0.34)}z.fillStyle=u.category[J];for(let se=0;se<p;se++){if(X[se]<=0)continue;z.globalAlpha=0.25+X[se]*0.75,z.fillRect(se,Y*q+1,1,q-2)}z.globalAlpha=1}let j=T(s.u0),G=T(s.u1);z.fillStyle=l==="dark"?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.06)",z.fillRect(j,0,G-j,fi),z.strokeStyle=u.selection,z.strokeRect(j+0.5,0.5,G-j-1,fi-1),z.fillStyle=u.selection,z.fillRect(j,0,2,fi),z.fillRect(G-2,0,2,fi)},[a,o,s,u,l,p,T]);let I=(B)=>{let z=B.currentTarget.getBoundingClientRect(),H=B.clientX-z.left,q=T(s.u0),j=T(s.u1),G;if(Math.abs(H-q)<=IR)G="left";else if(Math.abs(H-j)<=IR)G="right";else if(H>q&&H<j)G="move";else{G="create";let Y=M(H);r(Mf({u0:Y,u1:Y+Wu},y,b))}g.current={mode:G,startX:H,startViewport:s},B.currentTarget.setPointerCapture(B.pointerId)},w=(B)=>{let z=g.current;if(!z)return;let H=B.currentTarget.getBoundingClientRect(),q=B.clientX-H.left,j=M(q)-M(z.startX),{u0:G,u1:Y}=z.startViewport;if(z.mode==="move")r(Mf({u0:G+j,u1:Y+j},y,b));else if(z.mode==="left")r(Mf({u0:Math.min(G+j,Y-Wu),u1:Y},y,b));else if(z.mode==="right")r(Mf({u0:G,u1:Math.max(Y+j,G+Wu)},y,b));else{let J=M(z.startX),X=M(q);r(Mf({u0:Math.min(J,X),u1:Math.max(J,X,Math.min(J,X)+Wu)},y,b))}},A=()=>{g.current=null};return RR.jsxDEV("canvas",{ref:d,width:Math.floor(p*devicePixelRatio),height:Math.floor(fi*devicePixelRatio),style:{width:"100%",height:fi,display:"block",cursor:"crosshair",borderRadius:4,border:"1px solid var(--border)",touchAction:"none"},role:"slider","aria-label":"Timeline overview brush","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((s.u0-y)/v*100),tabIndex:-1,onPointerDown:I,onPointerMove:w,onPointerUp:A},void 0,!1,void 0,this)}function Mf(a,o,s){let r=Math.max(Wu,a.u1-a.u0);r=Math.min(r,s-o||Wu);let l=a.u0;if(l<o)l=o;if(l+r>s)l=s-r;return{u0:l,u1:l+r}}var kn=Q(dt(),1);var Te=Q(de(),1);function Fz(a){let o=[];if(typeof a==="string"){if(a.trim())o.push({kind:"text",text:a});return o}if(!Array.isArray(a))return o;for(let s of a){if(!s||typeof s!=="object"||!("type"in s))continue;if((s.type==="text"||s.type==="thinking")&&"text"in s&&typeof s.text==="string")o.push({kind:String(s.type),text:s.text})}return o}function DR({span:a,track:o,onClose:s,onOpenChildTrack:r}){let[l,u]=kn.useState(null),[d,p]=kn.useState(!1),[h,g]=kn.useState(null),[y,b]=kn.useState(!1),v=kn.useRef(null),T=kn.useRef(null);if(kn.useEffect(()=>{if(u(null),g(null),b(!1),!a||!o||!a.entryId)return;T.current=document.activeElement instanceof HTMLElement?document.activeElement:null,p(!0);let z=new AbortController;return vA(o.file,a.entryId,z.signal).then((H)=>{if(z.signal.aborted)return;u(H.entry),setTimeout(()=>v.current?.focus(),50)}).catch((H)=>{if(z.signal.aborted)return;g(H instanceof Error?H:Error(String(H)))}).finally(()=>{if(!z.signal.aborted)p(!1)}),()=>z.abort()},[a,o]),kn.useEffect(()=>{if(!a)return;let z=(H)=>{if(H.key==="Escape")s()};return window.addEventListener("keydown",z),()=>{window.removeEventListener("keydown",z),T.current?.focus()}},[a,s]),!a)return null;let M=(z)=>{if(z.target===z.currentTarget)s()},I=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(l??a,null,2)),b(!0),setTimeout(()=>b(!1),1500)}catch{}},A=(l&&typeof l==="object"?l:{}).message,B=A?.usage;return Te.jsxDEV("div",{className:"stats-drawer-overlay",onClick:M,role:"presentation",children:Te.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Span details",children:[Te.jsxDEV("div",{className:"stats-drawer-header",children:[Te.jsxDEV("div",{className:"stats-drawer-header-left",children:[Te.jsxDEV("h2",{className:"stats-drawer-title truncate",style:{maxWidth:320},children:a.label},void 0,!1,void 0,this),Te.jsxDEV(ya,{variant:a.isError?"danger":"success",children:a.kind},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{style:{display:"flex",gap:8},children:[Te.jsxDEV("button",{type:"button",onClick:I,className:"stats-drawer-close-btn","aria-label":"Copy raw JSON",title:"Copy raw JSON",children:y?Te.jsxDEV(pl,{size:16},void 0,!1,void 0,this):Te.jsxDEV(gl,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),Te.jsxDEV("button",{ref:v,type:"button",onClick:s,className:"stats-drawer-close-btn","aria-label":"Close span details",children:Te.jsxDEV(Ys,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-body",children:Te.jsxDEV("div",{className:"stats-drawer-content",children:[Te.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-card",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"Duration"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-value",children:rt(a.end-a.start)},void 0,!1,void 0,this),a.unterminated&&Te.jsxDEV("div",{className:"stats-drawer-metric-sub",children:"unterminated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-card",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"Start"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-value",style:{fontSize:13},children:new Date(a.start).toLocaleTimeString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a.kind==="model"&&Te.jsxDEV(Te.Fragment,{children:[Te.jsxDEV("div",{className:"stats-drawer-metric-card",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"Tokens"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-value",children:Ce(a.tokens??0)},void 0,!1,void 0,this),B&&Te.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[Ce(B.input??0)," in · ",Ce(B.output??0)," out ·"," ",Ce(B.cacheRead??0)," cached"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-card",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"Cost"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-value",children:["$",(a.cost??0).toFixed(4)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-card",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"TTFT"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-value",children:rt(a.ttft??null)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-card",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"Model"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-value",style:{fontSize:12},children:A?.model??a.model??"-"},void 0,!1,void 0,this),A?.provider&&Te.jsxDEV("div",{className:"stats-drawer-metric-sub",children:A.provider},void 0,!1,void 0,this),A?.stopReason&&Te.jsxDEV("div",{className:"stats-drawer-metric-sub",children:["stop: ",A.stopReason]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A?.errorMessage&&Te.jsxDEV("div",{className:"stats-drawer-error-block",children:[Te.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-error-text",children:A.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a.kind==="subagent"&&Te.jsxDEV("div",{children:[a.detail&&Te.jsxDEV("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,background:"var(--surface-2)",borderRadius:6,padding:10},children:a.detail},void 0,!1,void 0,this),a.childTrackId&&r&&Te.jsxDEV("button",{type:"button",className:"stats-segmented-control-btn",style:{marginTop:8,border:"1px solid var(--border)",borderRadius:6},onClick:()=>r(a.childTrackId??""),children:["Open child track ",a.childTrackId]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),a.kind==="tool"&&a.detail&&Te.jsxDEV("div",{children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"Args"},void 0,!1,void 0,this),Te.jsxDEV("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,background:"var(--surface-2)",borderRadius:6,padding:10},children:a.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),d&&Te.jsxDEV("div",{children:[Te.jsxDEV(Ua,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),Te.jsxDEV(Ua,{variant:"rect",width:"100%",height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h&&Te.jsxDEV("div",{className:"stats-drawer-error",children:[Te.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load entry"},void 0,!1,void 0,this),Te.jsxDEV("p",{className:"stats-drawer-error-message",children:h.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!d&&l!==null&&Fz(A?.content).map((z,H)=>Te.jsxDEV("div",{children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",style:{textTransform:"capitalize"},children:z.kind},void 0,!1,void 0,this),Te.jsxDEV("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,background:"var(--surface-2)",borderRadius:6,padding:10,maxHeight:360,overflowY:"auto"},children:z.text},void 0,!1,void 0,this)]},`${z.kind}-${H}`,!0,void 0,this)),!d&&l!==null&&Te.jsxDEV("div",{className:"stats-drawer-json-blocks",children:Te.jsxDEV(wf,{data:l,title:"Raw Entry",initialCollapsed:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var If=Q(de(),1);function _R({summary:a}){let o=[{label:"Wall",value:rt(a.wallMs)},{label:"Model",value:rt(a.modelMs)},{label:"Tools",value:rt(a.toolMs)},{label:"Idle",value:rt(a.idleMs)},{label:"Turns",value:Ce(a.turns)},{label:"Requests",value:Ce(a.requests)},{label:"Tool Calls",value:Ce(a.toolCalls)},{label:"Agents",value:Ce(a.subagents)},{label:"Tokens",value:lt(a.totalTokens)},{label:"Cost",value:ea(a.costTotal,a.unpricedRequests)}];return If.jsxDEV("div",{className:"stats-trace-summary",children:o.map((s)=>If.jsxDEV("div",{className:"stats-trace-summary-cell",children:[If.jsxDEV("span",{className:"stats-trace-summary-label",children:s.label},void 0,!1,void 0,this),If.jsxDEV("span",{className:"stats-trace-summary-value",children:s.value},void 0,!1,void 0,this)]},s.label,!0,void 0,this))},void 0,!1,void 0,this)}var jt=Q(dt(),1);function Qm(a,o){let s=a.length,r=[o[0],o[s-1]],l=(u,d)=>{let p=0,h=s-1;while(p<h){let g=p+h+1>>1;if(u[g]<=d)p=g;else h=g-1}return Math.min(p,s-2)};return{toU(u){if(u<=a[0])return o[0];if(u>=a[s-1])return o[s-1];let d=l(a,u),p=a[d+1]-a[d];if(p<=0)return o[d];return o[d]+(u-a[d])/p*(o[d+1]-o[d])},toT(u){if(u<=o[0])return a[0];if(u>=o[s-1])return a[s-1];let d=l(o,u),p=o[d+1]-o[d];if(p<=0)return a[d];return a[d]+(u-o[d])/p*(a[d+1]-a[d])},domain:r,gaps:[]}}function qz(a){let o=[];for(let s of a)for(let r of s.spans)o.push([r.start,r.end]);return o.sort((s,r)=>s[0]-r[0]),o}function Vz(a){let{POSITIVE_INFINITY:o,NEGATIVE_INFINITY:s}=Number;for(let r of a)for(let l of r.spans){if(l.start<o)o=l.start;if(l.end>s)s=l.end}if(!Number.isFinite(o))return[0,1];return[o,Math.max(s,o+1)]}function ER(a,o,s){let r=[...new Set(a.filter((p)=>p>=o&&p<=s))].sort((p,h)=>p-h);if(r[0]!==o)r.unshift(o);if(r[r.length-1]!==s)r.push(s);if(r.length<2)return Qm([o,s],[o,s]);let u=(s-o)/(r.length-1),d=r.map((p,h)=>o+h*u);return Qm(r,d)}function jz(a,o,s){let r=qz(a),l=[];for(let[y,b]of r){let v=y-2000,T=b+2000,M=l[l.length-1];if(M&&v<=M[1]){if(T>M[1])M[1]=T}else l.push([v,T])}if(l.length===0)l.push([o,s]);l[0][0]=Math.max(l[0][0],o),l[l.length-1][1]=Math.min(Math.max(l[l.length-1][1],l[l.length-1][0]),s);let u=[],d=[],p=[],h=l[0][0];for(let y=0;y<l.length;y++){let[b,v]=l[y];if(y===0)u.push(b),d.push(h);else{let T=l[y-1][1],M=b-T;if(M>30000)h+=8000,p.push({t0:T,t1:b,uMid:h-4000});else h+=M;u.push(b),d.push(h)}h+=Math.max(0,v-b),u.push(v),d.push(h)}return{...Qm(u,d),gaps:p}}function OR(a,o,s){let[r,l]=Vz(a);if(o==="turns"){let d=(a.find((p)=>p.id==="main")?.spans??[]).filter((p)=>p.kind==="turn").map((p)=>p.start);return ER(d,r,l)}if(o==="calls"){let u=[];for(let d of a)for(let p of d.spans)if(p.kind==="model"||p.kind==="tool"||p.kind==="background")u.push(p.start,p.end);return ER(u,r,l)}if(s)return jz(a,r,l);return Qm([r,l],[r,l])}var Gz=90;function Xz(a){let o=10**Math.floor(Math.log10(Math.max(a,1)));for(let s of[1,2,5,10])if(o*s>=a)return o*s;return o*10}function Yz(a){let o=new Date(a),s=String(o.getHours()).padStart(2,"0"),r=String(o.getMinutes()).padStart(2,"0"),l=String(o.getSeconds()).padStart(2,"0");return`${s}:${r}:${l}`}function Zu(a){let o=a<0?"-":"+",s=Math.abs(a),r=Math.floor(s/3600000),l=Math.floor(s%3600000/60000),u=Math.floor(s%60000/1000),d=Math.floor(s%1000),p=s%1000!==0,h=`${String(l).padStart(2,"0")}:${String(u).padStart(2,"0")}${p?".":""}${p?String(d).padStart(3,"0"):""}`;return r>0?`${o}${r}:${h}`:`${o}${h}`}function PR(a,o,s,r){let l=s-o;if(l<=0||r<=0)return[];let u=[],d=a.domain[0],p=Xz(l*Gz/r),h=d+Math.ceil((o-d)/p)*p,g=0;for(let y=h;y<=s&&g<200;y+=p,g++){let b=a.toT(y),v=Math.round((y-d)/p)%5===0;u.push({u:y,label:v?Yz(b):Zu(y-d),major:v})}return u}var xt=Q(de(),1),Qs=28,l0=22,So=18,BR=3,$z=14,NR=200,i0=10,Wz=2,Zz=4,Qz=56,zR=3,Kz=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tools"},{kind:"subagent",label:"Agents"},{kind:"background",label:"Bg"}];function Jz(a,o){let s=new Map(a.map((h)=>[h.id,h])),r=new Set;for(let h of a)if(h.parentId)r.add(h.parentId);let l=(h)=>{let g=h.parentId;while(g){if(o.has(g))return!0;g=s.get(g)?.parentId??null}return!1},u=[],d=[],p=Qs+6;for(let h of a){if(l(h))continue;let g=h.id==="main"?0:h.id.split("/").length,y={track:h,depth:g,hasChildren:r.has(h.id),headerY:p,lanes:[],y0:p,y1:p};p+=l0;for(let{kind:b,label:v}of Kz){let T=h.spans.filter((w)=>w.kind===b),M=b==="turn"||b==="model"||b==="tool";if(T.length===0&&!(h.id==="main"&&M))continue;let I={track:h,kind:b,label:v,y:p,spans:T};y.lanes.push(I),d.push(I),p+=So+BR}y.y1=p-BR,u.push(y),p+=$z}return{blocks:u,lanes:d,totalHeight:Math.max(p,Qs+48)}}function HR({tracks:a,scale:o,viewport:s,onViewportChange:r,selection:l,onSelect:u,search:d,collapsed:p,onToggleCollapse:h,traceStart:g}){let y=$t(),b=$u[y],v=jt.useRef(null),T=jt.useRef(null),[M,I]=jt.useState(800),[w,A]=jt.useState(null),B=jt.useRef([]),z=jt.useRef(null),H=jt.useRef(null),q=jt.useRef(s);q.current=s;let j=jt.useMemo(()=>Jz(a,p),[a,p]);jt.useEffect(()=>{let k=v.current;if(!k)return;let W=new ResizeObserver((ee)=>{let ne=Math.max(100,Math.floor(ee[0].contentRect.width-NR));I(ne)});return W.observe(k),()=>W.disconnect()},[]);let G=jt.useCallback((k,W)=>{let[ee,ne]=o.domain,te=Math.max(i0,W-k);te=Math.min(te,ne-ee||i0);let le=k;if(le<ee)le=ee;if(le+te>ne)le=ne-te;return{u0:le,u1:le+te}},[o]),Y=jt.useCallback((k)=>{q.current=k,r(k)},[r]),J=jt.useCallback((k,W)=>{let ee=M,{u0:ne,u1:te}=q.current,le=te-ne,fe=W===null?0.5:Math.min(1,Math.max(0,W/ee)),et=ne+le*fe,tt=le*k;Y(G(et-tt*fe,et+tt*(1-fe)))},[M,Y,G]),X=jt.useCallback((k)=>{let{u0:W,u1:ee}=q.current;Y(G(W+k,ee+k))},[Y,G]),se=jt.useCallback((k)=>{let W=o.toU(k.start),ee=o.toU(k.end),ne=Math.max((ee-W)*0.1,i0/2);Y(G(W-ne,ee+ne))},[o,Y,G]);jt.useEffect(()=>{let k=T.current;if(!k)return;let W=(ee)=>{ee.preventDefault();let ne=k.getBoundingClientRect(),te=ee.clientX-ne.left;H.current=te,A(null);let le=k.clientWidth||1,fe=()=>q.current.u1-q.current.u0;if(ee.shiftKey){let et=Math.abs(ee.deltaY)>=Math.abs(ee.deltaX)?ee.deltaY:ee.deltaX;X(et/le*fe());return}if(ee.deltaX!==0)X(ee.deltaX/le*fe());if(ee.deltaY!==0)J(1.0015**ee.deltaY,te)};return k.addEventListener("wheel",W,{passive:!1}),()=>k.removeEventListener("wheel",W)},[J,X]);let ge=jt.useCallback((k,W)=>{let ee=T.current;if(!ee)return null;let ne=ee.getBoundingClientRect(),te=k-ne.left,le=W-ne.top,fe=B.current;for(let et=fe.length-1;et>=0;et--){let tt=fe[et];if(te>=tt.x&&te<=tt.x+tt.w&&le>=tt.y&&le<=tt.y+tt.h)return tt}return null},[]),be=(k)=>{k.currentTarget.setPointerCapture(k.pointerId),z.current={pointerId:k.pointerId,lastX:k.clientX,moved:!1},k.currentTarget.focus()},Se=(k)=>{let W=k.currentTarget.getBoundingClientRect();H.current=k.clientX-W.left;let ee=z.current;if(ee&&ee.pointerId===k.pointerId){let te=k.clientX-ee.lastX;if(Math.abs(te)>0){if(Math.abs(te)>2)ee.moved=!0;ee.lastX=k.clientX;let le=q.current.u1-q.current.u0;X(-te/(M||1)*le)}A(null);return}let ne=ge(k.clientX,k.clientY);A(ne?{hit:ne,clientX:k.clientX,clientY:k.clientY}:null)},K=(k)=>{let W=z.current;if(z.current=null,W?.moved)return;let ee=ge(k.clientX,k.clientY);if(ee?.kind==="span")u(ee.span.id);else u(null)},pe=(k)=>{let W=ge(k.clientX,k.clientY);if(W?.kind==="span")se(W.span)},ye=jt.useCallback((k)=>{if(!l)return;for(let W of j.lanes){let ee=W.spans.findIndex((le)=>le.id===l);if(ee===-1)continue;let ne=W.spans[ee+k];if(!ne)return;u(ne.id);let te=o.toU(ne.start);if(te<s.u0||te>s.u1){let le=s.u1-s.u0;r(G(te-le/2,te+le/2))}return}},[l,j,u,o,s,r,G]),Ue=(k)=>{let W=s.u1-s.u0;switch(k.key){case"w":case"W":J(0.7692307692307692,H.current);break;case"s":case"S":J(1.3,H.current);break;case"a":case"A":X(-W*0.2);break;case"d":case"D":X(W*0.2);break;case"0":r({u0:o.domain[0],u1:o.domain[1]});break;case"f":case"F":{if(!l)break;let ee=a.flatMap((ne)=>ne.spans).find((ne)=>ne.id===l);if(ee)se(ee);break}case"Escape":u(null);break;case",":ye(-1);break;case".":ye(1);break;default:return}k.preventDefault()};jt.useEffect(()=>{T.current?.focus({preventScroll:!0})},[]),jt.useEffect(()=>{let k=T.current;if(!k)return;let W=requestAnimationFrame(()=>{eH(k,j,o,s,b,{width:M,selection:l,hoverId:w?.hit.kind==="span"?w.hit.span.id:null,search:d,hits:B})});return()=>cancelAnimationFrame(W)},[j,o,s,b,M,l,w,d]);let He=w?tH(w,g):null;return xt.jsxDEV("div",{ref:v,className:"stats-trace-timeline",children:[xt.jsxDEV("div",{style:{width:NR,flexShrink:0,position:"relative",height:j.totalHeight},children:j.blocks.map((k)=>xt.jsxDEV("div",{children:[xt.jsxDEV("div",{style:{position:"absolute",top:k.headerY,left:4+k.depth*14,right:8,height:l0,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[k.hasChildren?xt.jsxDEV("button",{type:"button",onClick:()=>h(k.track.id),"aria-label":p.has(k.track.id)?`Expand ${k.track.label}`:`Collapse ${k.track.label}`,className:"stats-trace-chevron",children:p.has(k.track.id)?xt.jsxDEV(hl,{size:12},void 0,!1,void 0,this):xt.jsxDEV(Xs,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):xt.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),xt.jsxDEV("span",{className:"stats-trace-gutter-track truncate",style:{minWidth:0},children:k.track.label},void 0,!1,void 0,this),k.track.model&&xt.jsxDEV("span",{className:"stats-trace-gutter-model truncate",style:{flexShrink:1,minWidth:0},children:k.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k.lanes.map((W)=>xt.jsxDEV("div",{className:"stats-trace-gutter-lane",style:{top:W.y,left:20+k.depth*14,lineHeight:`${So}px`},children:W.label},`${W.track.id}:${W.kind}`,!1,void 0,this))]},k.track.id,!0,void 0,this))},void 0,!1,void 0,this),xt.jsxDEV("canvas",{ref:T,className:"stats-trace-canvas",width:Math.floor(M*devicePixelRatio),height:Math.floor(j.totalHeight*devicePixelRatio),style:{width:M,height:j.totalHeight},tabIndex:0,role:"application","aria-label":"Trace timeline. W and S zoom, A and D pan, 0 fits all, F focuses the selection.",onPointerDown:be,onPointerMove:Se,onPointerUp:K,onPointerLeave:()=>{H.current=null,A(null)},onDoubleClick:pe,onKeyDown:Ue},void 0,!1,void 0,this),He]},void 0,!0,void 0,this)}function Af(a,o,s,r,l){if(a.beginPath(),r>=zR*2+1)a.roundRect(o,s,r,l,zR);else a.rect(o,s,r,l)}function eH(a,o,s,r,l,u){let d=a.getContext("2d");if(!d)return;let{width:p,selection:h,hoverId:g,search:y,hits:b}=u,v=o.totalHeight,T=devicePixelRatio;d.setTransform(T,0,0,T,0,0),d.clearRect(0,0,p,v);let{u0:M,u1:I}=r,w=Math.max(I-M,0.000000001),A=(H)=>(H-M)/w*p,B=y.trim().toLowerCase(),z=[];for(let H of o.blocks){let q=H.track.spans.filter((j)=>j.kind==="turn");for(let j=0;j<q.length;j++){let G=A(s.toU(q[j].start)),Y=j+1<q.length?A(s.toU(q[j+1].start)):p;if(Y<0||G>p)continue;if(j%2===1)d.fillStyle=l.turnBand,d.fillRect(Math.max(0,G),H.y0,Math.min(p,Y)-Math.max(0,G),H.y1-H.y0);if(G>=0&&G<=p)d.strokeStyle=l.grid,d.beginPath(),d.moveTo(Math.round(G)+0.5,H.y0),d.lineTo(Math.round(G)+0.5,H.y1),d.stroke()}}for(let H of s.gaps){let q=A(H.uMid);if(q<-24||q>p+24)continue;d.save(),d.strokeStyle=l.grid,d.setLineDash([2,4]),d.beginPath(),d.moveTo(q,Qs),d.lineTo(q,v),d.stroke(),d.restore(),d.fillStyle=l.tick,d.font="9px system-ui, sans-serif",d.textAlign="center",d.fillText(`⋯ ${rt(H.t1-H.t0)}`,q,Qs-4),d.textAlign="left"}d.font="9px system-ui, sans-serif";for(let H of PR(s,M,I,p)){let q=Math.round(A(H.u))+0.5;if(d.strokeStyle=l.grid,d.beginPath(),H.major)d.moveTo(q,4),d.lineTo(q,v);else d.moveTo(q,Qs-8),d.lineTo(q,Qs);if(d.stroke(),d.fillStyle=l.tick,H.major)d.fillText(H.label,q+4,11);else d.globalAlpha=0.75,d.fillText(H.label,q+3,Qs-10),d.globalAlpha=1}d.strokeStyle=l.grid,d.beginPath(),d.moveTo(0,Qs+0.5),d.lineTo(p,Qs+0.5),d.stroke();for(let H of o.lanes){let q=H.kind==="turn";for(let j of H.spans){let G=s.toU(j.start);if(G>I)break;let Y=s.toU(j.end);if(Y<M)continue;let J=A(G),X=Math.max(Wz,A(Y)-J),se=H.y,ge=B===""||`${j.label} ${j.detail??""}`.toLowerCase().includes(B),be=l.category[j.kind];if(d.globalAlpha=ge?1:0.3,q)d.fillStyle=`${be}3a`,Af(d,J,se,X,So),d.fill(),d.fillStyle=be,d.fillRect(J,se,2,So);else d.fillStyle=be,Af(d,J,se,X,So),d.fill();if(j.isError)d.fillStyle=`${l.error}55`,Af(d,J,se,X,So),d.fill(),d.fillStyle=l.error,d.fillRect(J,se,2,So);if(j.kind==="model"&&typeof j.ttft==="number"&&j.ttft>0&&X>20){let K=A(s.toU(j.start+j.ttft));if(K>J+1&&K<J+X-1)d.fillStyle="rgba(0,0,0,0.5)",d.fillRect(K,se+3,1,So-6)}if(j.unterminated)d.save(),d.strokeStyle=l.tick,d.setLineDash([2,2]),d.beginPath(),d.moveTo(J+X-0.5,se),d.lineTo(J+X-0.5,se+So),d.stroke(),d.restore();if(g===j.id)d.fillStyle="rgba(255,255,255,0.16)",Af(d,J,se,X,So),d.fill();if(h===j.id)d.strokeStyle=l.selection,d.lineWidth=1.5,Af(d,J-1,se-1,X+2,So+2),d.stroke(),d.lineWidth=1;if(X>Qz)d.save(),d.beginPath(),d.rect(J+3,se,X-6,So),d.clip(),d.fillStyle=q?l.tick:l.spanText,d.font="10px system-ui, sans-serif",d.fillText(j.label,J+5,se+So-5),d.restore();d.globalAlpha=1;let Se=Math.max(X,Zz);z.push({kind:"span",x:J-(Se-X)/2,y:se,w:Se,h:So,span:j,track:H.track})}}for(let H of o.blocks)for(let q of H.track.markers){let j=A(s.toU(q.time));if(j<-6||j>p+6)continue;let G=H.headerY+l0/2;d.fillStyle=l.marker,d.beginPath(),d.moveTo(j,G-4),d.lineTo(j+4,G),d.lineTo(j,G+4),d.lineTo(j-4,G),d.closePath(),d.fill(),z.push({kind:"marker",x:j-5,y:G-5,w:10,h:10,marker:q,track:H.track})}b.current=z}function tH(a,o){let s=Math.min(a.clientX+14,window.innerWidth-320),r=a.clientY+16>window.innerHeight-140?a.clientY-120:a.clientY+16,l={position:"fixed",left:s,top:r,zIndex:60,maxWidth:300,pointerEvents:"none",background:"var(--surface-2)",border:"1px solid var(--border-strong)",borderRadius:6,padding:"7px 10px",fontSize:11,lineHeight:1.5,boxShadow:"0 1px 2px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.25)"};if(a.hit.kind==="marker"){let{marker:d}=a.hit;return xt.jsxDEV("div",{style:l,children:[xt.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:d.label},void 0,!1,void 0,this),xt.jsxDEV("div",{className:"stats-text-muted",children:[new Date(d.time).toLocaleTimeString()," (",Zu(d.time-o),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:u}=a.hit;return xt.jsxDEV("div",{style:l,children:[xt.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate",children:u.label},void 0,!1,void 0,this),xt.jsxDEV("div",{className:"stats-text-muted",children:[rt(u.end-u.start)," · ",new Date(u.start).toLocaleTimeString()," (",Zu(u.start-o),")",u.unterminated?" · unterminated":""]},void 0,!0,void 0,this),u.kind==="model"&&xt.jsxDEV("div",{className:"stats-text-muted",children:[u.tokens!==void 0&&xt.jsxDEV(xt.Fragment,{children:[u.tokens.toLocaleString()," tok"]},void 0,!0,void 0,this),u.cost!==void 0&&xt.jsxDEV(xt.Fragment,{children:[" · $",u.cost.toFixed(4)]},void 0,!0,void 0,this),u.ttft!==void 0&&xt.jsxDEV(xt.Fragment,{children:[" · TTFT ",rt(u.ttft)]},void 0,!0,void 0,this),u.isError&&xt.jsxDEV(xt.Fragment,{children:" · error"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u.kind==="subagent"&&u.model&&xt.jsxDEV("div",{className:"stats-text-muted",children:u.model},void 0,!1,void 0,this),u.detail&&xt.jsxDEV("div",{className:"stats-text-secondary",style:{wordBreak:"break-word"},children:u.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ks=Q(dt(),1);var Aa=Q(de(),1),Qu=28,UR=20,aH=340;function oH(a){let o=[];for(let s of a){let r=s.id==="main"?0:s.id.split("/").length;for(let l of s.spans)o.push({key:l.id,time:l.start,span:l,track:s,depth:r});for(let l=0;l<s.markers.length;l++){let u=s.markers[l];o.push({key:`${s.id}:marker:${l}`,time:u.time,marker:u,track:s,depth:r})}}return o.sort((s,r)=>s.time-r.time),o}function FR({tracks:a,selection:o,onSelect:s,search:r,traceStart:l}){let u=$t(),d=$u[u],p=Ks.useRef(null),[h,g]=Ks.useState(0),y=Ks.useMemo(()=>oH(a),[a]),b=Ks.useMemo(()=>{let I=r.trim().toLowerCase();if(!I)return y;return y.filter((w)=>(w.span?`${w.span.label} ${w.span.detail??""}`:w.marker?.label??"").toLowerCase().includes(I))},[y,r]);Ks.useEffect(()=>{if(!o)return;let I=p.current;if(!I)return;let w=b.findIndex((B)=>B.span?.id===o);if(w===-1)return;let A=w*Qu;if(A<I.scrollTop||A+Qu>I.scrollTop+I.clientHeight)I.scrollTop=Math.max(0,A-I.clientHeight/2)},[o,b]);let v=Math.max(0,Math.floor(h/Qu)-UR),T=Math.min(b.length,Math.ceil((h+aH)/Qu)+UR),M=b.slice(v,T);return Aa.jsxDEV("div",{ref:p,onScroll:(I)=>g(I.currentTarget.scrollTop),className:"stats-trace-list",children:[Aa.jsxDEV("div",{style:{height:b.length*Qu,position:"relative"},children:Aa.jsxDEV("div",{style:{position:"absolute",top:v*Qu,left:0,right:0},children:M.map((I)=>{let w=I.span,A=w!==void 0&&w.id===o,B=I.span?d.category[I.span.kind]:d.marker,z=I.span?.label??I.marker?.label??"",H=I.span?.detail,q=I.span?rt(I.span.end-I.span.start):"",j=I.span?.kind??I.marker?.kind??"",G=Aa.jsxDEV(Aa.Fragment,{children:[Aa.jsxDEV("span",{className:"stats-trace-kind",style:{color:B,background:`${B}1c`},children:j},void 0,!1,void 0,this),I.depth>0&&Aa.jsxDEV("span",{className:"stats-text-muted truncate",style:{flexShrink:0,maxWidth:90,fontSize:9},title:I.track.label,children:I.track.id},void 0,!1,void 0,this),Aa.jsxDEV("span",{className:"stats-text-primary truncate",style:{fontSize:11,minWidth:0,flexShrink:1},children:z},void 0,!1,void 0,this),H&&Aa.jsxDEV("span",{className:"stats-text-muted truncate",style:{fontSize:10,minWidth:0,flex:1},children:H},void 0,!1,void 0,this),Aa.jsxDEV("span",{className:"stats-trace-row-meta",children:[I.span?.isError&&Aa.jsxDEV("span",{style:{color:d.error},children:"error"},void 0,!1,void 0,this),Aa.jsxDEV("span",{children:q},void 0,!1,void 0,this),Aa.jsxDEV("span",{children:Zu(I.time-l)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y={paddingLeft:12+I.depth*12};return w?Aa.jsxDEV("button",{type:"button",onClick:()=>s(w.id),className:"stats-trace-row","data-selected":A?"true":"false",style:Y,children:G},I.key,!1,void 0,this):Aa.jsxDEV("div",{className:"stats-trace-row stats-trace-row-static",style:Y,children:G},I.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),b.length===0&&Aa.jsxDEV("div",{className:"stats-text-muted",style:{padding:16,fontSize:12},children:"No matching events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ft=Q(de(),1),nH=[{value:"time",label:"Duration",title:"Real wall-clock time"},{value:"turns",label:"Turns",title:"Equal width per user turn"},{value:"calls",label:"Calls",title:"Equal width per model/tool call boundary"}];function qR({file:a,active:o,onBack:s}){let{data:r,error:l,loading:u,refetch:d,refreshing:p}=Vt(["trace",a],(te)=>xA(a,te),{pollMs:15000,enabled:o}),[h,g]=wt.useState("time"),[y,b]=wt.useState(!0),[v,T]=wt.useState(null),[M,I]=wt.useState(!1),[w,A]=wt.useState(""),[B,z]=wt.useState(0),[H,q]=wt.useState(new Set),[j,G]=wt.useState(null),Y=wt.useMemo(()=>r?.tracks??[],[r]),J=wt.useMemo(()=>OR(Y,h,y),[Y,h,y]),X=wt.useRef(J),se=wt.useRef(null);wt.useEffect(()=>{if(!r)return;if(se.current===r.file)return;se.current=r.file,T(null),A(""),G(null);let te=new Set;for(let le of r.tracks)if((le.id==="main"?0:le.id.split("/").length)>=1)te.add(le.id);q(te)},[r]),wt.useEffect(()=>{let te=X.current;X.current=J,G((le)=>{if(!le)return le;let fe=te.toT(le.u0),et=te.toT(le.u1),tt=J.toU(fe),Gt=J.toU(et);return Gt-tt>0?{u0:tt,u1:Gt}:null})},[J]);let ge=j??{u0:J.domain[0],u1:J.domain[1]},be=wt.useMemo(()=>{let te=[];for(let le of Y)for(let fe of le.spans)te.push({span:fe,track:le});return te.sort((le,fe)=>le.span.start-fe.span.start),te},[Y]),Se=wt.useMemo(()=>{let te=w.trim().toLowerCase();if(!te)return[];return be.filter(({span:le})=>`${le.label} ${le.detail??""}`.toLowerCase().includes(te))},[be,w]),K=wt.useCallback((te)=>{let le=J.toU(te.start),fe=J.toU(te.end);G((et)=>{let tt=et??{u0:J.domain[0],u1:J.domain[1]};if(le>=tt.u0&&fe<=tt.u1)return et;let Gt=tt.u1-tt.u0,er=(le+fe)/2,[me,cs]=J.domain,oo=er-Gt/2;if(oo<me)oo=me;if(oo+Gt>cs)oo=Math.max(me,cs-Gt);return{u0:oo,u1:oo+Gt}})},[J]),pe=wt.useCallback((te)=>{T(te);let le=be.find(({span:fe})=>fe.id===te);if(le)K(le.span)},[be,K]),ye=wt.useCallback((te)=>{T(te),I(te!==null)},[]),Ue=wt.useCallback((te)=>{if(Se.length===0)return;let le=((B+te)%Se.length+Se.length)%Se.length;z(le),pe(Se[le].span.id)},[Se,B,pe]),He=wt.useCallback((te)=>{q((le)=>{let fe=new Set(le);if(fe.has(te))fe.delete(te);else fe.add(te);return fe})},[]),k=wt.useMemo(()=>{if(!v)return null;return be.find(({span:te})=>te.id===v)??null},[v,be]),W=wt.useCallback((te)=>{let le=Y.find((et)=>et.id===te),fe=le?.spans[0];if(q((et)=>{let tt=new Set(et),Gt=le;while(Gt?.parentId)tt.delete(Gt.parentId),Gt=Y.find((er)=>er.id===Gt?.parentId);return tt}),fe)pe(fe.id)},[Y,pe]),ee=wt.useCallback((te)=>{if(!te){q(new Set);return}let le=new Set;for(let fe of Y)if(fe.id!=="main")le.add(fe.id);q(le)},[Y]),ne=r?.startedAt??0;return ft.jsxDEV("div",{className:"stats-trace-view",children:[ft.jsxDEV("div",{className:"stats-trace-header",children:[ft.jsxDEV("button",{type:"button",onClick:s,className:"stats-trace-back",children:[ft.jsxDEV(tf,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this),ft.jsxDEV("h2",{className:"stats-trace-title",style:{maxWidth:480,margin:0},children:r?.title??a.split("/").pop()},void 0,!1,void 0,this),r?.cwd&&ft.jsxDEV("span",{className:"stats-trace-cwd",children:r.cwd},void 0,!1,void 0,this),ft.jsxDEV("button",{type:"button",onClick:()=>void d(),className:"stats-trace-icon-btn","aria-label":"Refresh trace",title:"Refresh trace",style:{marginLeft:"auto"},children:ft.jsxDEV(bl,{size:14,className:p?"stats-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ft.jsxDEV(Rt,{loading:u,error:l,data:r,children:r&&ft.jsxDEV(ft.Fragment,{children:[ft.jsxDEV(_R,{summary:r.summary},void 0,!1,void 0,this),ft.jsxDEV("div",{className:"stats-trace-toolbar",children:[ft.jsxDEV(Ws,{options:nH,value:h,onChange:g},void 0,!1,void 0,this),h==="time"&&ft.jsxDEV("label",{className:"stats-trace-check",children:[ft.jsxDEV("input",{type:"checkbox",checked:y,onChange:(te)=>b(te.target.checked)},void 0,!1,void 0,this),"Compress idle"]},void 0,!0,void 0,this),ft.jsxDEV("div",{style:{display:"inline-flex",alignItems:"center",gap:4},children:[ft.jsxDEV("input",{type:"search",value:w,onChange:(te)=>{A(te.target.value),z(0)},placeholder:"Search spans…","aria-label":"Search spans",spellCheck:!1,className:"stats-trace-input",style:{width:190}},void 0,!1,void 0,this),w.trim()&&ft.jsxDEV(ft.Fragment,{children:[ft.jsxDEV("span",{className:"stats-text-muted",style:{fontSize:11,fontVariantNumeric:"tabular-nums"},children:Se.length===0?"0":`${B%Math.max(Se.length,1)+1}/${Se.length}`},void 0,!1,void 0,this),ft.jsxDEV("button",{type:"button",onClick:()=>Ue(-1),className:"stats-trace-icon-btn","aria-label":"Previous match",disabled:Se.length===0,children:"‹"},void 0,!1,void 0,this),ft.jsxDEV("button",{type:"button",onClick:()=>Ue(1),className:"stats-trace-icon-btn","aria-label":"Next match",disabled:Se.length===0,children:"›"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ft.jsxDEV("div",{style:{marginLeft:"auto",display:"inline-flex",gap:6},children:[ft.jsxDEV("button",{type:"button",onClick:()=>ee(!1),className:"stats-trace-back",children:"Expand all"},void 0,!1,void 0,this),ft.jsxDEV("button",{type:"button",onClick:()=>ee(!0),className:"stats-trace-back",children:"Collapse all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ft.jsxDEV("div",{className:"stats-trace-timeline-card",children:[ft.jsxDEV(AR,{tracks:Y,scale:J,viewport:ge,onViewportChange:G},void 0,!1,void 0,this),ft.jsxDEV(HR,{tracks:Y,scale:J,viewport:ge,onViewportChange:G,selection:v,onSelect:ye,search:w,collapsed:H,onToggleCollapse:He,traceStart:ne},void 0,!1,void 0,this),ft.jsxDEV("div",{className:"stats-trace-toolbar-hint",style:{marginLeft:0},children:"W/S zoom · A/D pan · drag pan · wheel zoom · 0 fit · F focus selection · dbl-click focus · Esc deselect"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ft.jsxDEV(FR,{tracks:Y,selection:v,onSelect:(te)=>{pe(te),I(!0)},search:w,traceStart:ne},void 0,!1,void 0,this),ft.jsxDEV(MR,{toolStats:r.summary.toolStats},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),ft.jsxDEV(DR,{span:M?k?.span??null:null,track:k?.track??null,onClose:()=>I(!1),onOpenChildTrack:W},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var kt=Q(de(),1);function sH({models:a}){let o=a.slice(0,3);return kt.jsxDEV("div",{style:{display:"flex",gap:4,flexWrap:"wrap"},children:[o.map((s)=>kt.jsxDEV("span",{className:"stats-text-muted truncate",style:{fontSize:10,border:"1px solid var(--border)",borderRadius:999,padding:"1px 6px",maxWidth:140},children:s},s,!1,void 0,this)),a.length>3&&kt.jsxDEV("span",{className:"stats-text-muted",style:{fontSize:10},children:["+",a.length-3]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function VR({active:a,session:o,onOpenSession:s,refreshTrigger:r}){let[l,u]=Rf.useState(""),{data:d,error:p,loading:h}=Vt(["sessions",r],(v)=>yA(200,void 0,v),{pollMs:30000,enabled:a&&o===null}),g=Rf.useMemo(()=>{if(!d)return[];let v=l.trim().toLowerCase();if(!v)return d;return d.filter((T)=>(T.title??"").toLowerCase().includes(v)||T.folder.toLowerCase().includes(v)||T.models.some((M)=>M.toLowerCase().includes(v)))},[d,l]),y=Rf.useMemo(()=>[{key:"title",header:"Title",render:(v)=>kt.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate",style:{maxWidth:280},children:v.title??v.file.split("/").pop()},void 0,!1,void 0,this)},{key:"folder",header:"Project",render:(v)=>kt.jsxDEV("span",{className:"stats-text-muted truncate",style:{maxWidth:160,display:"inline-block"},children:v.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},{key:"started",header:"Started",render:(v)=>za(v.startedAt)},{key:"duration",header:"Duration",numeric:!0,render:(v)=>rt(v.endedAt-v.startedAt)},{key:"requests",header:"Requests",numeric:!0,render:(v)=>v.requests},{key:"toolCalls",header:"Tools",numeric:!0,render:(v)=>v.toolCalls},{key:"subagents",header:"Agents",numeric:!0,render:(v)=>v.subagents},{key:"tokens",header:"Tokens",numeric:!0,render:(v)=>lt(v.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(v)=>ea(v.costTotal,v.unpricedRequests)},{key:"models",header:"Models",render:(v)=>kt.jsxDEV(sH,{models:v.models},void 0,!1,void 0,this)}],[]),b=(v,T)=>kt.jsxDEV("div",{className:"stats-mobile-card",onClick:T,children:[kt.jsxDEV("div",{className:"stats-mobile-card-header",children:kt.jsxDEV("div",{className:"stats-font-semibold stats-text-primary truncate",children:v.title??v.file.split("/").pop()},void 0,!1,void 0,this)},void 0,!1,void 0,this),kt.jsxDEV("div",{className:"stats-mobile-card-grid",children:[kt.jsxDEV("div",{children:[kt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Started"},void 0,!1,void 0,this),kt.jsxDEV("div",{className:"stats-mobile-card-value",children:za(v.startedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kt.jsxDEV("div",{children:[kt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),kt.jsxDEV("div",{className:"stats-mobile-card-value",children:rt(v.endedAt-v.startedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kt.jsxDEV("div",{children:[kt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),kt.jsxDEV("div",{className:"stats-mobile-card-value",children:v.requests},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kt.jsxDEV("div",{children:[kt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),kt.jsxDEV("div",{className:"stats-mobile-card-value",children:ea(v.costTotal,v.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(o!==null)return kt.jsxDEV(qR,{file:o,active:a,onBack:()=>s(null)},void 0,!1,void 0,this);return kt.jsxDEV("div",{className:"stats-route-container",children:kt.jsxDEV(ut,{title:"Sessions",subtitle:"Recent sessions with subagent activity folded in — click one to open its trace",actions:kt.jsxDEV("input",{type:"search",value:l,onChange:(v)=>u(v.target.value),placeholder:"Filter by title, project, model…","aria-label":"Filter sessions",spellCheck:!1,className:"stats-trace-input",style:{width:220}},void 0,!1,void 0,this),children:kt.jsxDEV(Rt,{loading:h,error:p,data:d,children:kt.jsxDEV(Ma,{columns:y,data:g,keyExtractor:(v)=>v.file,onRowClick:(v)=>s(v.file),renderMobileCard:b,emptyText:"No sessions found — run a Sync to index recent activity"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ra=Q(de(),1);function u0(){let{section:a,setSection:o,range:s,setRange:r,session:l,setSession:u}=EA(),[d,p]=Js.useState(0),[h,g]=Js.useState(null),[y,b]=Js.useState(()=>Date.now()),v=Js.useCallback((A)=>{if(A.success)p((B)=>B+1),b(Date.now())},[]),T=Js.useCallback(()=>g(null),[]),M=a,I=Js.useRef(new Set);I.current.add(M);let w=(A)=>{let B=A===M;switch(A){case"overview":return Ra.jsxDEV(SR,{active:B,range:s,refreshTrigger:d,onRequestClick:g},void 0,!1,void 0,this);case"requests":return Ra.jsxDEV(wR,{active:B,range:s,refreshTrigger:d,onRequestClick:g},void 0,!1,void 0,this);case"traces":return Ra.jsxDEV(VR,{active:B,session:l,onOpenSession:u,refreshTrigger:d},void 0,!1,void 0,this);case"errors":return Ra.jsxDEV(mR,{active:B,range:s,refreshTrigger:d,onRequestClick:g},void 0,!1,void 0,this);case"models":return Ra.jsxDEV(yR,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this);case"providers":return Ra.jsxDEV(CR,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this);case"tools":return Ra.jsxDEV(kR,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this);case"costs":return Ra.jsxDEV(pR,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this);case"behavior":return Ra.jsxDEV(fR,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this);case"projects":return Ra.jsxDEV(LR,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this);case"gain":return Ra.jsxDEV(gR,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this)}};return Ra.jsxDEV(Ra.Fragment,{children:[Ra.jsxDEV(DA,{activeSection:M,onSectionChange:o,range:s,onRangeChange:r,updatedAt:y,onSyncComplete:v,children:[...I.current].map((A)=>Ra.jsxDEV("div",{hidden:A!==M,children:w(A)},A,!1,void 0,this))},void 0,!1,void 0,this),Ra.jsxDEV(rR,{id:h,onClose:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var GR=Q(de(),1),rH=jR.createRoot(document.getElementById("root"));rH.render(GR.jsxDEV(u0,{},void 0,!1,void 0,this));
235
+ <%s key={someKey} {...props} />`,ne,Ye,V,Ye),ae[Ye+ne]=!0)}if(Ye=null,se!==void 0&&(u(se),Ye=""+se),p(ue)&&(u(ue.key),Ye=""+ue.key),"key"in ue){se={};for(var Pe in ue)Pe!=="key"&&(se[Pe]=ue[Pe])}else se=ue;return Ye&&b(se,typeof P==="function"?P.displayName||P.name||"Unknown":P),k(P,Ye,se,f(),pe,Lt)}function x(P){C(P)?P._store&&(P._store.validated=1):typeof P==="object"&&P!==null&&P.$$typeof===Z&&(P._payload.status==="fulfilled"?C(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function C(P){return typeof P==="object"&&P!==null&&P.$$typeof===R}var R=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),K=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),ge=js.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=Object.prototype.hasOwnProperty,Ce=Array.isArray,Be=console.createTask?console.createTask:function(){return null};js={react_stack_bottom_frame:function(P){return P()}};var te,ve={},ke=js.react_stack_bottom_frame.bind(js,v)(),je=Be(c(v)),ae={};uA.Fragment=D,uA.jsxDEV=function(P,ue,se,ne){var pe=1e4>ge.recentlyCreatedOwnerStacks++;return h(P,ue,se,ne,pe?Error("react-stack-top-frame"):ke,pe?Be(c(P)):je)}})()});var sT=Y(I1(),1);var Ii=Y(ut(),1);var dm=Y(ut(),1);var R1=(r)=>r?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function M1(r,i,u=[]){if(i==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:R1(r),size:24,node:i,...u.length>0?{aliases:u}:{}}}var A1=(r)=>{let i="",u=!1;for(let c of r){if(c==="-"||c==="_"||c<=" "){u=i.length>0;continue}if(i.length===0)i+=c.toLowerCase();else i+=u?c.toUpperCase():c;u=!1}return i};var D1=(r)=>{let i=A1(r);return i.charAt(0).toUpperCase()+i.slice(1)};var uc=Y(ut(),1);var sc=(...r)=>r.filter((i,u,c)=>Boolean(i)&&i.trim()!==""&&c.indexOf(i)===u).join(" ").trim();var _r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function hb(r){return r!==null&&r!==void 0}function E1(r,i={}){let u=i.attributeNames??{},c=(C)=>u[C]??C,f=r.size??r.width??_r.width,v=r.size??r.height??_r.height,p=r.aliases?.filter((C)=>typeof C==="string"&&C.trim()!=="").map((C)=>`lucide-${C}`)??[],b=[...r.name?[`lucide-${r.name}`]:[],...p],S=i.className?.split(" ").filter(Boolean)??[],k=i.includeDefaultClasses===!1?sc(...S):sc("lucide",...b,...S),h=i.absoluteStrokeWidth?Number(i.strokeWidth??_r["stroke-width"])*Number(r.size??r.width??_r.width)/Number(i.size??i.width??_r.width):i.strokeWidth??_r["stroke-width"];return["svg",{...Object.entries(_r).reduce((C,[R,L])=>(C[c(R)]=L,C),{}),..."color"in i&&i.color&&{[c("stroke")]:i.color},..."size"in i&&hb(i.size)&&{[c("width")]:i.size,[c("height")]:i.size},..."width"in i&&hb(i.width)&&{[c("width")]:i.width},..."height"in i&&hb(i.height)&&{[c("height")]:i.height},[c("stroke-width")]:h,...k&&{[c("class")]:k},[c("viewBox")]:`0 0 ${f} ${v}`,...i.hasA11yProp===!1?{[c("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},r.node.map((C)=>{let[R,L,D]=C,_=i.nonScalingStroke?{[c("vector-effect")]:"non-scaling-stroke",...L}:L;return D?[R,_,D]:[R,_]})]}function O1(r,i={}){return E1(r,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var q1=(r)=>{for(let i in r)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};var di=Y(ut(),1),tA=di.createContext({});var B1=()=>di.useContext(tA);var N1=uc.forwardRef(({color:r,size:i,width:u,height:c,strokeWidth:f,absoluteStrokeWidth:v,nonScalingStroke:p,className:b="",children:S,iconNode:k=[],icon:h={node:k,aliases:[],size:24},...x},C)=>{let{size:R=24,strokeWidth:L=2,absoluteStrokeWidth:D=!1,nonScalingStroke:_=!1,color:z="currentColor",className:F=""}=B1()??{},K=Boolean(S)||q1(x),[N,oe,B=[]]=O1(h,{color:r??z,width:u??i??R,height:c??i??R,strokeWidth:f??L,absoluteStrokeWidth:v??D,nonScalingStroke:p??_,className:sc(F,b),hasA11yProp:K,attributes:x});return uc.createElement(N,{ref:C,...oe},[...B.map(([ee,Z])=>uc.createElement(ee,Z)),...Array.isArray(S)?S:[S]])});function xe(r,i=[],u=[]){let c=typeof r==="string"?M1(r,i,u):r,f=dm.forwardRef(({className:v,...p},b)=>dm.createElement(N1,{ref:b,icon:c,className:v,...p}));if(c.name)f.displayName=D1(c.name);return f}var U1={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};U1.node;var Hr=xe(U1);var P1={name:"face-slightly-frowning",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M9 10V9",key:"1lazqi"}],["path",{d:"M9 16a5 5 0 016 0",key:"34mdxb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["frown"]};P1.node;var Fr=xe(P1);var z1={name:"plug-zap",size:24,node:[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],aliases:["plug-zap-2"]};z1.node;var Gr=xe(z1);var _1={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};_1.node;var on=xe(_1);var H1={name:"square-chart-gantt",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]],aliases:["gantt-chart-square","square-gantt-chart"]};H1.node;var bl=xe(H1);var F1={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};F1.node;var Vr=xe(F1);var G1={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};G1.node;var ic=xe(G1);var V1={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};V1.node;var dc=xe(V1);var $1={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};$1.node;var cc=xe($1);var X1={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};X1.node;var fc=xe(X1);var j1={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};j1.node;var pc=xe(j1);var Y1={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Y1.node;var mc=xe(Y1);var Q1={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Q1.node;var Vs=xe(Q1);var Z1={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Z1.node;var $s=xe(Z1);var W1={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};W1.node;var hc=xe(W1);var K1={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};K1.node;var vl=xe(K1);var J1={name:"coins",size:24,node:[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]};J1.node;var gc=xe(J1);var ek={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};ek.node;var Xs=xe(ek);var tk={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};tk.node;var yc=xe(tk);var ak={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};ak.node;var bc=xe(ak);var ok={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};ok.node;var vc=xe(ok);var lk={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};lk.node;var Sc=xe(lk);var nk={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};nk.node;var xc=xe(nk);var rk={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};rk.node;var Lc=xe(rk);var sk={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};sk.node;var Cc=xe(sk);var uk={name:"moon",size:24,node:[["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"}]]};uk.node;var kc=xe(uk);var ik={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};ik.node;var $r=xe(ik);var dk={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};dk.node;var wc=xe(dk);var ck={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};ck.node;var Tc=xe(ck);var fk={name:"sun",size:24,node:[["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"}]]};fk.node;var Ic=xe(fk);var pk={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};pk.node;var Rc=xe(pk);var mk={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};mk.node;var al=xe(mk);var vi=Y(ut(),1);var hk=["January","February","March","April","May","June","July","August","September","October","November","December"],gk=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],aA=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function Xr(r,i=2){return String(r).padStart(i,"0")}function oA(r,i){let u=r.getMonth(),c=r.getDay(),f=r.getHours(),v=f%12||12;switch(i){case"yyyy":return Xr(r.getFullYear(),4);case"yy":return Xr(r.getFullYear()%100);case"MMMM":return hk[u];case"MMM":return hk[u].slice(0,3);case"MM":return Xr(u+1);case"M":return String(u+1);case"dd":return Xr(r.getDate());case"d":return String(r.getDate());case"EEEE":return gk[c];case"EEE":return gk[c].slice(0,3);case"HH":return Xr(f);case"H":return String(f);case"hh":return Xr(v);case"h":return String(v);case"mm":return Xr(r.getMinutes());case"m":return String(r.getMinutes());case"ss":return Xr(r.getSeconds());case"s":return String(r.getSeconds());case"a":return f<12?"AM":"PM"}}function bk(r){let i=r instanceof Date?new Date(r.getTime()):new Date(r);if(Number.isNaN(i.getTime()))throw RangeError("Invalid time value");return i}function ln(r,i){let u=bk(r),c="";for(let f=0;f<i.length;){if(i[f]==="'"){if(i[f+1]==="'"){c+="'",f+=2;continue}f++;while(f<i.length){if(i[f]!=="'"){c+=i[f++];continue}if(i[f+1]==="'"){c+="'",f+=2;continue}f++;break}continue}let v=i.slice(f),p=aA.find((S)=>v.startsWith(S));if(p){c+=oA(u,p),f+=p.length;continue}let b=i[f++];if(/[A-Za-z]/.test(b))throw RangeError(`Format string contains an unescaped latin alphabet character \`${b}\``);c+=b}return c}function jr(r,i){return`${r} ${r===1?i:`${i}s`}`}function lA(r,i){let u=(i.getFullYear()-r.getFullYear())*12+i.getMonth()-r.getMonth();if(u===0)return 0;let c=new Date(r);c.setDate(1),c.setFullYear(r.getFullYear(),r.getMonth()+u,1);let f=new Date(c.getFullYear(),c.getMonth()+1,0).getDate();if(c.setDate(Math.min(r.getDate(),f)),c.getTime()>i.getTime())u--;return u}function yk(r,i){let u=(i.getTime()-r.getTime())/1000,c=(i.getTimezoneOffset()-r.getTimezoneOffset())*60,f=Math.round((u-c)/60);if(f<2)return f===0?"less than a minute":"1 minute";if(f<45)return jr(f,"minute");if(f<90)return"about 1 hour";if(f<1440)return`about ${jr(Math.round(f/60),"hour")}`;if(f<2520)return"1 day";if(f<43200)return jr(Math.round(f/1440),"day");if(f<86400)return`about ${jr(Math.round(f/43200),"month")}`;let v=lA(r,i);if(v<12)return jr(Math.round(f/43200),"month");let p=Math.trunc(v/12),b=v%12;if(b<3)return`about ${jr(p,"year")}`;if(b<9)return`over ${jr(p,"year")}`;return`almost ${jr(p+1,"year")}`}function vk(r,i={}){let u=bk(r),c=new Date(Date.now()),f=u.getTime()>c.getTime(),v=f?yk(c,u):yk(u,c);if(!i.addSuffix)return v;return f?`in ${v}`:`${v} ago`}var Sk=60000,cm=60*Sk,nn=24*cm,gb={"1h":{label:"1h",windowLabel:"the last hour",spanMs:cm,bucketMs:5*Sk},"24h":{label:"24h",windowLabel:"the last 24 hours",spanMs:nn,bucketMs:cm},"7d":{label:"7d",windowLabel:"the last 7 days",spanMs:7*nn,bucketMs:nn},"30d":{label:"30d",windowLabel:"the last 30 days",spanMs:30*nn,bucketMs:nn},"90d":{label:"90d",windowLabel:"the last 90 days",spanMs:90*nn,bucketMs:nn},all:{label:"All",windowLabel:"all time",spanMs:null,bucketMs:nn}},nA=1500,ci=["1h","24h","7d","30d","90d","all"];function na(r){return gb[r]}function fm(r,i){if(i<nn)return ln(new Date(r),i<cm?"HH:mm":"MMM d HH:mm");return ln(new Date(r),"MMM d")}function pm(r,i){if(i<nn)return ln(new Date(r),"HH:mm");return ln(new Date(r),"MMM d")}function Po(r,i,u=gb[r].bucketMs,c=Date.now()){let f=Math.floor(c/u)*u,v=gb[r].spanMs,p;if(v!==null)p=Math.floor((c-v)/u)*u;else{p=f;for(let S of i)if(S<p)p=S;p=Math.floor(p/u)*u}p=Math.max(p,f-(nA-1)*u);let b=[];for(let S=p;S<=f;S+=u)b.push(S);return b}var zo=Y(ut(),1);class xk extends Error{status;endpoint;constructor(r,i,u){super(u);this.name="ApiError",this.status=r,this.endpoint=i}}async function rA(r,i){try{let u=await r.json();if(typeof u==="object"&&u!==null&&"error"in u&&typeof u.error==="string")return u.error}catch{}return`HTTP error ${r.status} on ${i}`}async function Da(r,i){let u=await fetch(r,i);if(!u.ok)throw new xk(u.status,r,await rA(u,r));return u.json()}var Lk={"X-Omp-Stats-Action":"1"};async function Ck(r="24h",i){return Da(`/api/stats/overview?range=${encodeURIComponent(r)}`,{signal:i})}async function kk(r="24h",i){return Da(`/api/stats/model-dashboard?range=${encodeURIComponent(r)}`,{signal:i})}async function wk(r="24h",i){return Da(`/api/stats/costs?range=${encodeURIComponent(r)}`,{signal:i})}async function mm(r=50,i){return Da(`/api/stats/recent?limit=${r}`,{signal:i})}async function Tk(r="24h",i=50,u){return Da(`/api/stats/errors?range=${encodeURIComponent(r)}&limit=${i}`,{signal:u})}async function Ik(r,i){return Da(`/api/request/${r}`,{signal:i})}async function Rk(){return Da("/api/sync",{method:"POST"})}async function Mk(r="24h",i){return Da(`/api/stats/frustration?range=${encodeURIComponent(r)}`,{signal:i})}async function Ak(r,i){return Da(`/api/frustration/estimate?range=${encodeURIComponent(r)}`,{signal:i})}async function Dk(r){return Da(`/api/frustration/judge?range=${encodeURIComponent(r)}`,{method:"POST",headers:Lk})}async function Ek(){return Da("/api/frustration/cancel",{method:"POST",headers:Lk})}async function Ok(r="24h",i){return Da(`/api/stats/folders?range=${encodeURIComponent(r)}`,{signal:i})}async function qk(r="24h",i,u){let c=new URLSearchParams({range:r});if(i)c.set("project",i);return Da(`/api/stats/gain?${c}`,{signal:u})}async function Bk(r="24h",i){return Da(`/api/stats/tools?range=${encodeURIComponent(r)}`,{signal:i})}async function Nk(r="24h",i){return Da(`/api/stats/providers?range=${encodeURIComponent(r)}`,{signal:i})}async function yb(r,i,u){let c=new URLSearchParams({range:r});if(i!==null)c.set("provider",i);return Da(`/api/stats/provider-windows?${c}`,{signal:u})}async function Uk(r=100,i,u){let c=new URLSearchParams({limit:String(r)});if(i)c.set("q",i);return Da(`/api/sessions?${c}`,{signal:u})}async function Pk(r,i){return Da(`/api/session/trace?file=${encodeURIComponent(r)}`,{signal:i})}async function zk(r,i,u){return Da(`/api/session/entry?file=${encodeURIComponent(r)}&id=${encodeURIComponent(i)}`,{signal:u})}var Gk=Y(ce(),1),_k={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null},Hk=zo.createContext({version:0,sync:_k,indexingHours:0,connected:!1,requestSync:()=>{}});function Fk({children:r}){let[i,u]=zo.useState({server:null,version:0}),[c,f]=zo.useState(!1);zo.useEffect(()=>{let b=new EventSource("/api/events");return b.onopen=()=>f(!0),b.onerror=()=>f(!1),b.onmessage=(S)=>{let k=JSON.parse(S.data);u((h)=>({server:k,version:h.server&&h.server.version===k.version?h.version:h.version+1}))},()=>b.close()},[]);let v=zo.useCallback(()=>{Rk().catch(()=>{})},[]),p=zo.useMemo(()=>({version:Math.max(0,i.version-1),sync:i.server?.sync??_k,indexingHours:i.server?.indexingHours??0,connected:c,requestSync:v}),[i,c,v]);return Gk.jsxDEV(Hk.Provider,{value:p,children:r},void 0,!1,void 0,this)}function fi(){return zo.useContext(Hk)}var hm=Y(ce(),1);function wt({tone:r="neutral",mono:i,children:u}){return hm.jsxDEV("span",{className:"badge","data-tone":r,"data-mono":i??!1,children:u},void 0,!1,void 0,this)}function rn({tone:r="neutral",pulse:i}){return hm.jsxDEV("span",{className:"dot","data-tone":r,"data-pulse":i??!1},void 0,!1,void 0,this)}function Sl({color:r}){return hm.jsxDEV("span",{className:"swatch",style:{background:r}},void 0,!1,void 0,this)}function sn(r){if(r>=0.05)return"bad";if(r>=0.01)return"warn";return"ok"}var vo=Y(ce(),1);function Ve({title:r,description:i,actions:u,flush:c,footer:f,className:v,index:p,stale:b,children:S}){let k=r!==void 0||i!==void 0||u!==void 0;return vo.jsxDEV("section",{className:v?`card rise ${v}`:"card rise",style:p!==void 0?{"--i":p}:void 0,children:[k&&vo.jsxDEV("header",{className:"card-header",children:[vo.jsxDEV("div",{className:"card-titles",children:[r!==void 0&&vo.jsxDEV("h2",{className:"card-title",children:r},void 0,!1,void 0,this),i!==void 0&&vo.jsxDEV("p",{className:"card-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u!==void 0&&vo.jsxDEV("div",{className:"card-actions",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),vo.jsxDEV("div",{className:"card-body","data-flush":c??!1,"data-stale":b??!1,children:S},void 0,!1,void 0,this),f!==void 0&&vo.jsxDEV("footer",{className:"card-footer",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ta({title:r,description:i,actions:u}){return vo.jsxDEV("header",{className:"page-header rise",children:[vo.jsxDEV("div",{children:[vo.jsxDEV("h1",{className:"page-title",children:r},void 0,!1,void 0,this),i!==void 0&&vo.jsxDEV("p",{className:"page-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u!==void 0&&vo.jsxDEV("div",{className:"page-actions",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Mc=Y(ut(),1),Vk=Y(rc(),1),Ya=Y(ce(),1);function gm({open:r,onClose:i,title:u,subtitle:c,actions:f,width:v,children:p}){let b=Mc.useRef(i);b.current=i;let S=Mc.useRef(null);if(Mc.useEffect(()=>{if(!r)return;let k=document.activeElement instanceof HTMLElement?document.activeElement:null;S.current?.focus();let h=(x)=>{if(x.key==="Escape")x.preventDefault(),b.current()};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h),k?.focus()}},[r]),!r)return null;return Vk.createPortal(Ya.jsxDEV(Ya.Fragment,{children:[Ya.jsxDEV("div",{className:"drawer-scrim",onClick:i,role:"presentation"},void 0,!1,void 0,this),Ya.jsxDEV("div",{ref:S,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:v!==void 0?{"--drawer-w":`${v}px`}:void 0,children:[Ya.jsxDEV("header",{className:"drawer-header",children:[Ya.jsxDEV("div",{className:"drawer-titles",children:[Ya.jsxDEV("h2",{className:"drawer-title",children:u},void 0,!1,void 0,this),c!==void 0&&Ya.jsxDEV("div",{className:"drawer-subtitle",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f,Ya.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:i,"aria-label":"Close",children:Ya.jsxDEV(al,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ya.jsxDEV("div",{className:"drawer-body",children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),document.body)}function _o({items:r}){return Ya.jsxDEV("dl",{className:"kv",style:{margin:0},children:r.map((i)=>Ya.jsxDEV("div",{className:"kv-item",children:[Ya.jsxDEV("dt",{className:"kv-key",children:i.label},void 0,!1,void 0,this),Ya.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:i.value},void 0,!1,void 0,this)]},i.key,!0,void 0,this))},void 0,!1,void 0,this)}var Ys=Y(ut(),1),xl=Y(ce(),1);function pi({data:r,title:i="JSON",initialCollapsed:u=!1}){let[c,f]=Ys.useState(u),[v,p]=Ys.useState(!1),b=Ys.useRef(0),S=JSON.stringify(r,null,2);return Ys.useEffect(()=>()=>window.clearTimeout(b.current),[]),xl.jsxDEV("div",{className:"stack",style:{gap:6},children:[xl.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[xl.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>f((h)=>!h),"aria-expanded":!c,children:[c?xl.jsxDEV(vl,{size:13},void 0,!1,void 0,this):xl.jsxDEV($s,{size:13},void 0,!1,void 0,this),i]},void 0,!0,void 0,this),xl.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(S),p(!0),window.clearTimeout(b.current),b.current=window.setTimeout(()=>p(!1),1500)}catch{}},children:[v?xl.jsxDEV(Vs,{size:13},void 0,!1,void 0,this):xl.jsxDEV(Xs,{size:13},void 0,!1,void 0,this),v?"Copied":"Copy"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!c&&xl.jsxDEV("pre",{className:"code-block",children:xl.jsxDEV("code",{children:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Qs=Y(ut(),1),$k=Y(rc(),1);var Ll=Y(ce(),1);function Xk({open:r,title:i,onClose:u,primaryAction:c,cancelLabel:f="Cancel",children:v}){let p=Qs.useRef(null),b=Qs.useRef(null),S=Qs.useRef(u);S.current=u,Qs.useEffect(()=>{if(!r)return;let C=document.activeElement instanceof HTMLElement?document.activeElement:null,R=(L)=>{if(L.key==="Escape")L.preventDefault(),S.current()};return window.addEventListener("keydown",R),()=>{window.removeEventListener("keydown",R),C?.focus()}},[r]);let k=c!==void 0,h=c?.disabled??!1;if(Qs.useEffect(()=>{if(!r)return;(k&&!h?p.current:b.current)?.focus()},[r,k,h]),!r)return null;return $k.createPortal(Ll.jsxDEV("div",{className:"modal-overlay",onClick:(C)=>{if(C.target===C.currentTarget)u()},role:"presentation",children:Ll.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[Ll.jsxDEV("div",{className:"modal-header",children:[Ll.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:i},void 0,!1,void 0,this),Ll.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:u,"aria-label":"Close",children:Ll.jsxDEV(al,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ll.jsxDEV("div",{className:"modal-body",children:v},void 0,!1,void 0,this),Ll.jsxDEV("div",{className:"modal-footer",children:[Ll.jsxDEV("button",{ref:b,type:"button",className:"btn",onClick:u,children:f},void 0,!1,void 0,this),c&&Ll.jsxDEV("button",{ref:p,type:"button",className:"btn","data-variant":"primary",onClick:c.onClick,disabled:c.disabled,children:c.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),document.body)}var ym=Y(ce(),1);function un({value:r,onChange:i,placeholder:u="Filter…",width:c}){return ym.jsxDEV("label",{className:"search",children:[ym.jsxDEV(Tc,{size:14},void 0,!1,void 0,this),ym.jsxDEV("input",{className:"input",type:"search",value:r,placeholder:u,onChange:(f)=>i(f.target.value),style:c!==void 0?{width:c}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var mi=Y(ut(),1),bm=Y(ce(),1);function za({options:r,value:i,onChange:u,size:c="md","aria-label":f}){let v=mi.useRef(null),[p,b]=mi.useState(null);return mi.useLayoutEffect(()=>{let S=v.current,k=S?.querySelector('[data-active="true"]');if(!S||!k){b(null);return}let h=()=>b({left:k.offsetLeft,width:k.offsetWidth});h();let x=new ResizeObserver(h);return x.observe(S),()=>x.disconnect()},[i,r]),bm.jsxDEV("div",{ref:v,className:"segmented","data-size":c,role:"radiogroup","aria-label":f,children:[p&&bm.jsxDEV("span",{className:"segmented-thumb",style:{left:p.left,width:p.width}},void 0,!1,void 0,this),r.map((S)=>bm.jsxDEV("button",{type:"button",role:"radio","aria-checked":S.value===i,className:"segmented-option","data-active":S.value===i,title:S.title,onClick:()=>u(S.value),children:S.label},S.value,!1,void 0,this))]},void 0,!0,void 0,this)}var yi=Y(ut(),1);var hi=Y(ut(),1);function vm(){let r=hi.useRef(null),[i,u]=hi.useState(0);return hi.useLayoutEffect(()=>{let c=r.current;if(!c)return;u(c.clientWidth);let f=new ResizeObserver((v)=>{let p=Math.round(v[0]?.contentRect.width??0);u((b)=>b===p?b:p)});return f.observe(c),()=>f.disconnect()},[]),[r,i]}var Ac=Y(ce(),1);function gi({values:r,color:i="var(--chart-primary)",height:u=28,width:c,area:f=!0}){let[v,p]=vm(),b=c??p,S=Math.max(0,...r),k=r.length,h="";if(b>0&&k>0){let x=k>1?b/(k-1):0;for(let C=0;C<k;C++){let R=k>1?C*x:b/2,L=S>0?u-2-r[C]/S*(u-4):u-2;h+=`${C===0?"M":"L"}${R.toFixed(1)},${L.toFixed(1)}`}}return Ac.jsxDEV("div",{ref:v,className:"sparkline",style:{width:c??"100%",height:u},children:b>0&&k>0&&Ac.jsxDEV("svg",{width:b,height:u,"aria-hidden":"true",children:[f&&Ac.jsxDEV("path",{className:"area",d:`${h}L${b},${u}L0,${u}Z`,fill:i},void 0,!1,void 0,this),Ac.jsxDEV("path",{className:"chart-line",d:h,stroke:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var ol=Y(ce(),1);function fe({label:r,value:i,hint:u,delta:c,spark:f,sparkColor:v,size:p="md",title:b}){let S=dA(typeof i==="string"||typeof i==="number"?i:null);return ol.jsxDEV("div",{className:"stat","data-size":p,title:b,children:[ol.jsxDEV("div",{className:"stat-label",children:r},void 0,!1,void 0,this),ol.jsxDEV("div",{className:"stat-value","data-flash":S,children:i},void 0,!1,void 0,this),(u!==void 0||c)&&ol.jsxDEV("div",{className:"stat-foot",children:[c&&ol.jsxDEV(iA,{...c},void 0,!1,void 0,this),u!==void 0&&ol.jsxDEV("span",{className:"truncate",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&f.length>1&&ol.jsxDEV("div",{className:"stat-spark",children:ol.jsxDEV(gi,{values:f,color:v},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aa({min:r,children:i}){return ol.jsxDEV("div",{className:"stat-grid rise",style:r!==void 0?{"--stat-min":`${r}px`}:void 0,children:i},void 0,!1,void 0,this)}function iA({change:r,good:i="up"}){if(r===null||!Number.isFinite(r))return ol.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let u=Math.abs(r)<0.0005?0:r,c=u===0?void 0:u>0===(i==="up")?"good":"bad",f=u>0?"+":u<0?"−":"±",v=Math.abs(u)*100;return ol.jsxDEV("span",{className:"delta","data-tone":c,children:[f,v>=100?v.toFixed(0):v.toFixed(1),"%"]},void 0,!0,void 0,this)}function dA(r){let i=yi.useRef(r),[u,c]=yi.useState(!1);return yi.useEffect(()=>{if(i.current===r)return;let f=i.current!==null;if(i.current=r,!f)return;c(!0);let v=setTimeout(()=>c(!1),900);return()=>clearTimeout(v)},[r]),u}var fa=Y(ce(),1);function mt({title:r="Nothing here yet",hint:i}){return fa.jsxDEV("div",{className:"empty",children:[fa.jsxDEV(Sc,{size:20},void 0,!1,void 0,this),fa.jsxDEV("div",{className:"empty-title",children:r},void 0,!1,void 0,this),i!==void 0&&fa.jsxDEV("div",{className:"empty-hint",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bi({error:r,onRetry:i}){return fa.jsxDEV("div",{className:"error-state",role:"alert",children:[fa.jsxDEV(Vr,{size:15},void 0,!1,void 0,this),fa.jsxDEV("span",{className:"error-state-message",children:typeof r==="string"?r:r.message},void 0,!1,void 0,this),i&&fa.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:i,children:[fa.jsxDEV(wc,{size:13},void 0,!1,void 0,this)," Retry"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ea({width:r="100%",height:i=14,style:u}){return fa.jsxDEV("div",{className:"skeleton",style:{width:r,height:i,...u}},void 0,!1,void 0,this)}function Tt({height:r=220}){return fa.jsxDEV(Ea,{height:r,style:{borderRadius:8}},void 0,!1,void 0,this)}function ra({rows:r=6}){return fa.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:r},(i,u)=>fa.jsxDEV(Ea,{height:16,width:`${92-u*13%30}%`},u,!1,void 0,this))},void 0,!1,void 0,this)}function _e({query:r,skeleton:i,isEmpty:u,empty:c,children:f}){if(r.data===null){if(r.error)return fa.jsxDEV(bi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this);return fa.jsxDEV(fa.Fragment,{children:i},void 0,!1,void 0,this)}return fa.jsxDEV(fa.Fragment,{children:[r.error&&fa.jsxDEV(bi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this),u?.(r.data)?c??fa.jsxDEV(mt,{},void 0,!1,void 0,this):f(r.data)]},void 0,!0,void 0,this)}var Zs=Y(ut(),1);var vt=Y(ce(),1);function zt({columns:r,rows:i,rowKey:u,onRowClick:c,selectedKey:f,initialSort:v,limit:p,dense:b,empty:S,expanded:k}){let[h,x]=Zs.useState(v??null),[C,R]=Zs.useState(p??Number.POSITIVE_INFINITY),L=Zs.useMemo(()=>{let z=h?r.find((N)=>N.key===h.key):void 0;if(!h||!z?.sort)return i;let F=z.sort,K=h.dir==="asc"?1:-1;return[...i].sort((N,oe)=>{let B=F(N),ee=F(oe);if(typeof B==="number"&&typeof ee==="number")return(B-ee)*K;return String(B).localeCompare(String(ee))*K})},[i,r,h]);if(i.length===0)return vt.jsxDEV(vt.Fragment,{children:S??vt.jsxDEV(mt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let D=L.length>C?L.slice(0,C):L,_=(z)=>{if(!z.sort)return;x((F)=>F?.key===z.key?{key:z.key,dir:F.dir==="asc"?"desc":"asc"}:{key:z.key,dir:z.align==="right"?"desc":"asc"})};return vt.jsxDEV(vt.Fragment,{children:[vt.jsxDEV("div",{className:"table-wrap",children:vt.jsxDEV("table",{className:"table","data-dense":b??!1,children:[vt.jsxDEV("thead",{children:vt.jsxDEV("tr",{children:r.map((z)=>{let F=h?.key===z.key?h.dir:void 0;return vt.jsxDEV("th",{"data-align":z.align??"left","data-sortable":z.sort!==void 0,"data-sorted":F,style:z.width!==void 0?{width:z.width}:void 0,title:z.title,onClick:()=>_(z),"aria-sort":F==="asc"?"ascending":F==="desc"?"descending":void 0,children:[z.header,F&&vt.jsxDEV("span",{className:"sort-arrow",children:F==="asc"?vt.jsxDEV(mc,{size:11},void 0,!1,void 0,this):vt.jsxDEV(dc,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},z.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),vt.jsxDEV("tbody",{children:D.map((z)=>{let F=u(z),K=k?.(z)??null;return vt.jsxDEV(Zs.Fragment,{children:[vt.jsxDEV("tr",{"data-clickable":c!==void 0,"data-selected":f===F,onClick:c?()=>c(z):void 0,onKeyDown:c?(N)=>{if(N.key==="Enter"||N.key===" ")N.preventDefault(),c(z)}:void 0,tabIndex:c?0:void 0,children:r.map((N)=>vt.jsxDEV("td",{"data-align":N.align??"left","data-wrap":N.wrap??!1,children:N.render(z)},N.key,!1,void 0,this))},void 0,!1,void 0,this),K!==null&&vt.jsxDEV("tr",{children:vt.jsxDEV("td",{colSpan:r.length,"data-wrap":"true",style:{padding:0},children:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},F,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),p!==void 0&&L.length>p&&vt.jsxDEV("div",{className:"table-more",children:[vt.jsxDEV("span",{className:"micro",children:[D.length.toLocaleString()," of ",L.length.toLocaleString()]},void 0,!0,void 0,this),L.length>C&&vt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>R((z)=>z+p*4),children:"Show more"},void 0,!1,void 0,this),C>p&&vt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>R(p),children:"Show fewer"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function sa({value:r,max:i,display:u,color:c}){let f=i>0?Math.min(100,r/i*100):0;return vt.jsxDEV("div",{className:"meter-cell",children:[vt.jsxDEV("span",{className:"num",children:u},void 0,!1,void 0,this),vt.jsxDEV("div",{className:"meter",children:vt.jsxDEV("div",{className:"meter-fill",style:{width:`${f}%`,background:c}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _a({primary:r,secondary:i,lead:u}){return vt.jsxDEV("div",{className:"row",style:{gap:10},children:[u,vt.jsxDEV("div",{className:"stack",style:{gap:0},children:[vt.jsxDEV("span",{className:"cell-primary truncate",children:r},void 0,!1,void 0,this),i!==void 0&&vt.jsxDEV("span",{className:"cell-secondary truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Sm=Y(ut(),1);function q(r){return r.toLocaleString()}function Me(r){return r.toLocaleString(void 0,{notation:"compact"})}function ua(r,i){if(r===0)return"$0";let u=i!==void 0?i:r>0&&r<0.01?4:2;return`$${r.toLocaleString(void 0,{minimumFractionDigits:u,maximumFractionDigits:u})}`}function Ot(r,i,u){return r===0&&i>0?"N/A":ua(r,u)}function bb(r){return r.usage.totalTokens>0&&r.usage.cost.total===0&&(r.provider==="xai-oauth"||r.costUnpriced===!0)}function Yr(r,i){return Ot(r.usage.cost.total,bb(r)?1:0,i)}function Re(r,i=1){return`${(r*100).toFixed(i)}%`}function St(r,i){if(r===null)return"-";let u=r/1000,c=i!==void 0?i:u<1?2:1;return`${u.toFixed(c)}s`}function Ws(r){if(r<60000)return St(r);let i=Math.floor(r/60000);if(i<60)return`${i}m ${String(Math.floor(r%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(i/60)}h ${String(i%60).padStart(2,"0")}m`}function dn(r){if(r===null)return"-";return r.toFixed(1)}function ia(r){return vk(new Date(r),{addSuffix:!0})}function ll(r){return ln(new Date(r),"MMM d, HH:mm:ss")}function cn(r){return r.replace(/^\/+|\/+$/g,"")||"(root)"}function vb(r){if(r>=1e9)return`${(r/1e9).toFixed(1)} GB`;if(r>=1e6)return`${(r/1e6).toFixed(1)} MB`;if(r>=1000)return`${(r/1000).toFixed(1)} KB`;return`${r} B`}var Xt=Y(ce(),1);function jk(){let{sync:r,indexingHours:i,connected:u,requestSync:c}=fi(),f=fA(r.phase==="idle"?15000:null),v,p;if(!u)v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(rn,{tone:"warn"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Reconnecting"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p="Lost the live connection to the stats server; retrying";else if(r.phase==="syncing")v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV($r,{size:13,className:"spin"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Syncing"},void 0,!1,void 0,this),r.total>0&&Xt.jsxDEV("span",{className:"live-chip-count",children:[q(r.current),"/",q(r.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p="Ingesting session files";else if(r.phase==="error")v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(rn,{tone:"bad"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Sync failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p=`${r.error??"Sync failed"} — click to retry`;else if(i>cA)v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV($r,{size:13,className:"spin"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Indexing"},void 0,!1,void 0,this),Xt.jsxDEV("span",{className:"live-chip-count",children:[q(i),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p="Building hourly rollups; older ranges fill in as it goes";else v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(rn,{tone:"live",pulse:!0},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Live"},void 0,!1,void 0,this),r.lastSyncedAt!==null&&Xt.jsxDEV("span",{className:"live-chip-count",children:pA(f-r.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p="Click to sync session files now";return Xt.jsxDEV("button",{type:"button",className:"live-chip",onClick:c,disabled:r.phase==="syncing",title:p,children:v},void 0,!1,void 0,this)}var cA=24;function fA(r){let[i,u]=Sm.useState(Date.now);return Sm.useEffect(()=>{if(r===null)return;u(Date.now());let c=setInterval(()=>u(Date.now()),r);return()=>clearInterval(c)},[r]),i}function pA(r){let i=Math.max(0,Math.round(r/1000));if(i<45)return"just now";let u=Math.round(i/60);if(u<60)return`${u}m ago`;let c=Math.round(u/60);return c<24?`${c}h ago`:`${Math.round(c/24)}d ago`}var xm=[{heading:"Usage",items:[{id:"overview",label:"Overview",icon:xc,hotkey:"o"},{id:"models",label:"Models",icon:yc,hotkey:"m"},{id:"providers",label:"Providers",icon:Gr,hotkey:"p"},{id:"costs",label:"Costs",icon:gc,hotkey:"c"}]},{heading:"Activity",items:[{id:"requests",label:"Requests",icon:ic,hotkey:"r"},{id:"errors",label:"Errors",icon:Hr,hotkey:"e"},{id:"traces",label:"Traces",icon:bl,hotkey:"t"}]},{heading:"Insights",items:[{id:"tools",label:"Tools",icon:Rc,hotkey:"l"},{id:"frustration",label:"Frustration",icon:Fr,hotkey:"f"},{id:"projects",label:"Projects",icon:bc,hotkey:"j"},{id:"gain",label:"Gain",icon:on,hotkey:"g"}]}],mA=xm.flatMap((r)=>r.items),Yk=mA.map((r)=>r.id);var Lm=Y(ut(),1),Qk="omp-stats-theme",Zk="(prefers-color-scheme: dark)";function hA(){if(typeof localStorage>"u")return"system";let r=localStorage.getItem(Qk);return r==="light"||r==="dark"||r==="system"?r:"system"}function Wk(){if(typeof window>"u")return"dark";return window.matchMedia(Zk).matches?"dark":"light"}var Ks=hA(),Dc=Ks==="system"?Wk():Ks,Sb=new Set;function Kk(){for(let r of Sb)r()}function xb(){if(Dc=Ks==="system"?Wk():Ks,typeof document<"u")document.documentElement.dataset.theme=Dc,document.documentElement.style.colorScheme=Dc}if(typeof window<"u")xb(),window.matchMedia(Zk).addEventListener("change",()=>{if(Ks==="system")xb(),Kk()});function gA(r){if(Ks=r,typeof localStorage<"u")localStorage.setItem(Qk,r);xb(),Kk()}function Lb(r){return Sb.add(r),()=>Sb.delete(r)}function Jk(){return Lm.useSyncExternalStore(Lb,()=>Dc,()=>"dark")}function ew(){let r=Lm.useSyncExternalStore(Lb,()=>Ks,()=>"system"),i=Lm.useSyncExternalStore(Lb,()=>Dc,()=>"dark");return{preference:r,resolved:i,setPreference:gA}}var Cb=Y(ce(),1),yA={system:"light",light:"dark",dark:"system"},bA={system:Cc,light:Ic,dark:kc},tw={system:"System theme",light:"Light theme",dark:"Dark theme"};function aw(){let{preference:r,setPreference:i}=ew(),u=bA[r];return Cb.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>i(yA[r]),"aria-label":`${tw[r]} (click to switch)`,title:`${tw[r]} — click to switch`,children:Cb.jsxDEV(u,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ke=Y(ce(),1),vA=ci.map((r,i)=>({value:r,label:na(r).label,title:`${na(r).windowLabel} (${i+1})`}));function ow({section:r,onSectionChange:i,range:u,onRangeChange:c,children:f}){let[v,p]=vi.useState(!1),b=SA(),{sync:S}=fi();xA(i,c);let k=(x)=>{i(x),p(!1),window.scrollTo({top:0})},h=S.phase==="syncing"?S.total>0?S.current/S.total:null:void 0;return Ke.jsxDEV(Ke.Fragment,{children:[Ke.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),Ke.jsxDEV("header",{className:"topbar","data-scrolled":b,children:[Ke.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>p(!0),"aria-label":"Open navigation",children:Ke.jsxDEV(Lc,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV("div",{className:"topbar-brand",children:[Ke.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[Ke.jsxDEV("defs",{children:Ke.jsxDEV("linearGradient",{id:"omp-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[Ke.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),Ke.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),Ke.jsxDEV("stop",{offset:"1",stopColor:"oklch(0.81 0.14 200)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV("path",{fill:"url(#omp-mark-grad)",d:"M10 14h44v9H43v33h-9V23h-9v22h-9V23H10z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("span",{children:"omp"},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"topbar-title",children:"stats"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),Ke.jsxDEV("div",{className:"topbar-actions",children:[Ke.jsxDEV("span",{className:"topbar-hide-narrow",children:Ke.jsxDEV(jk,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV(za,{options:vA,value:u,onChange:c,"aria-label":"Time range"},void 0,!1,void 0,this),Ke.jsxDEV(aw,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h!==void 0&&Ke.jsxDEV("div",{className:"topbar-progress",children:Ke.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":h===null,style:{width:`${(h??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v&&Ke.jsxDEV("div",{className:"drawer-scrim",onClick:()=>p(!1),role:"presentation"},void 0,!1,void 0,this),Ke.jsxDEV("nav",{className:"sidebar","data-open":v,"aria-label":"Pages",children:[xm.map((x)=>Ke.jsxDEV("div",{className:"nav-group",children:[Ke.jsxDEV("div",{className:"nav-heading",children:x.heading},void 0,!1,void 0,this),x.items.map((C)=>Ke.jsxDEV("button",{type:"button",className:"nav-row","data-active":C.id===r,"aria-current":C.id===r?"page":void 0,onClick:()=>k(C.id),children:[Ke.jsxDEV(C.icon,{size:15},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"nav-row-label",children:C.label},void 0,!1,void 0,this),Ke.jsxDEV("kbd",{children:["G ",C.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},C.id,!0,void 0,this))]},x.heading,!0,void 0,this)),Ke.jsxDEV("div",{className:"sidebar-foot micro",children:[Ke.jsxDEV("span",{children:[Ke.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",Ke.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," range"]},void 0,!0,void 0,this),Ke.jsxDEV("span",{children:[Ke.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," then letter to jump"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("main",{className:"shell-panel",children:Ke.jsxDEV("div",{className:"shell-content",children:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function SA(){let[r,i]=vi.useState(!1);return vi.useEffect(()=>{let u=()=>i(window.scrollY>4);return u(),window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),r}function xA(r,i){vi.useEffect(()=>{let u=0,c=(f)=>{if(f.metaKey||f.ctrlKey||f.altKey||f.defaultPrevented)return;let v=f.target;if(v instanceof HTMLElement&&(v.isContentEditable||v.tagName==="INPUT"||v.tagName==="TEXTAREA"||v.tagName==="SELECT"))return;if(document.querySelector('[aria-modal="true"]'))return;let p=f.key.toLowerCase();if(u&&Date.now()-u<1200){u=0;let S=xm.flatMap((k)=>k.items).find((k)=>k.hotkey===p);if(S)f.preventDefault(),r(S.id),window.scrollTo({top:0});return}if(p==="g"){u=Date.now();return}let b=Number(p)-1;if(Number.isInteger(b)&&b>=0&&b<ci.length)f.preventDefault(),i(ci[b])};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[r,i])}var Gn=Y(ut(),1);function Ec(r){let[i,u]=r.replace(/^#\/?/,"").split("?"),c=Yk.includes(i)?i:"overview",f=new URLSearchParams(u??""),v=f.get("range"),p=ci.includes(v??"")?v:"24h";return{section:c,range:p,session:f.get("s")}}function Cm({section:r,range:i,session:u}){let c=u?`&s=${encodeURIComponent(u)}`:"";return`#/${r}?range=${i}${c}`}function lw(){let[r,i]=Gn.useState(()=>Ec(window.location.hash));Gn.useEffect(()=>{let p=()=>i(Ec(window.location.hash));window.addEventListener("hashchange",p),window.addEventListener("popstate",p);let b=Cm(Ec(window.location.hash));if(window.location.hash!==b)history.replaceState(null,"",b);return()=>{window.removeEventListener("hashchange",p),window.removeEventListener("popstate",p)}},[]);let u=Gn.useCallback((p)=>{i(p);let b=Cm(p);if(window.location.hash!==b)history.pushState(null,"",b)},[]),c=Gn.useCallback((p)=>u({...r,section:p,session:p==="traces"?r.session:null}),[r,u]),f=Gn.useCallback((p)=>u({...r,range:p}),[r,u]),v=Gn.useCallback((p)=>u({...r,session:p}),[r,u]);return{...r,setSection:c,setRange:f,setSession:v}}var Tm=Y(ut(),1);var fn=Y(ce(),1);function Oc({items:r,max:i,onSelect:u}){let c=i??Math.max(0,...r.map((f)=>f.value));return fn.jsxDEV("div",{className:"bar-list",children:r.map((f)=>{let v=c>0?Math.max(0.5,f.value/c*100):0,p=fn.jsxDEV(fn.Fragment,{children:[fn.jsxDEV("span",{className:"bar-list-fill",style:{width:`${v}%`,background:f.color??"var(--chart-primary)"}},void 0,!1,void 0,this),fn.jsxDEV("span",{className:"bar-list-label",children:f.label},void 0,!1,void 0,this),fn.jsxDEV("span",{className:"bar-list-value",children:f.display??f.value.toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u?fn.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>u(f.key),children:p},f.key,!1,void 0,this):fn.jsxDEV("div",{className:"bar-list-row",children:p},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}var Vn=Y(ut(),1);var ct=Y(ce(),1),Js=10,LA=24,CA=68,kA=4;function Cl({slots:r,tickLabel:i,tooltipTitle:u,series:c,kind:f="bars",stacked:v=!0,height:p=220,format:b=Me,formatRight:S,formatTooltip:k,yMax:h,yMaxRight:x,hidden:C,showTotal:R,references:L,onSelect:D,emptyLabel:_="No data in this range",tooltipExtra:z}){let[F,K]=vm(),[N,oe]=Vn.useState(null),B=Vn.useId().replace(/:/g,""),ee=Vn.useMemo(()=>c.filter((V)=>!C?.has(V.key)),[c,C]),Z=Vn.useMemo(()=>{let V=ee.filter((Et)=>Et.axis!=="right"),Pe=ee.filter((Et)=>Et.axis==="right"),Mt=(Et)=>v&&(Et.kind??f)!=="line",pa=new Map,re=Array.from({length:r},()=>0),ma=0;for(let Et of V)if(Mt(Et)){let Ee=re.slice();pa.set(Et.key,Ee);for(let rl=0;rl<r;rl++)re[rl]+=Et.values[rl]??0}else for(let Ee=0;Ee<r;Ee++)ma=Math.max(ma,Et.values[Ee]??0);for(let Et of re)ma=Math.max(ma,Et);let Ia=0;for(let Et of Pe)for(let Ee=0;Ee<r;Ee++)Ia=Math.max(Ia,Et.values[Ee]??0);for(let Et of L??[])if(Et.axis==="right")Ia=Math.max(Ia,Et.value);else ma=Math.max(ma,Et.value);let Kt=nw(h??ma),Yt=Pe.length>0?nw(x??Ia):null,gt=ee.every((Et)=>Et.values.every((Ee)=>!Ee));return{left:V,right:Pe,bases:pa,stackable:Mt,leftScale:Kt,rightScale:Yt,empty:gt}},[ee,r,v,f,h,x,L]),W=Z.leftScale.ticks.map((V)=>b(V)),X=Z.rightScale?.ticks.map((V)=>(S??b)(V))??[],ge=Math.max(28,rw(W)+12),Ne=Z.rightScale?Math.max(28,rw(X)+12):8,Ce=Math.max(0,K-ge-Ne),Be=p-Js-LA,te=r>0?Ce/r:0,ve=(V)=>Js+Be-V/Z.leftScale.max*Be,ke=(V)=>Js+Be-V/(Z.rightScale?.max??1)*Be,je=(V)=>ge+(V+0.5)*te,ae=ee.filter((V)=>(V.kind??f)==="bars"),P=ae.filter((V)=>!Z.stackable(V)||V.axis==="right"),ue=Math.max(1,Math.min(56,te*(te>6?0.72:0.9))),se=Math.max(1,Math.ceil(r/Math.max(1,Math.floor(Ce/CA)))),ne=(V)=>{let Pe=V.currentTarget.getBoundingClientRect(),Mt=Math.floor((V.clientX-Pe.left)/(Pe.width/r));oe(Mt>=0&&Mt<r?Mt:null)},pe=N===null?[]:ee.filter((V)=>V.tooltip!==!1).map((V)=>({s:V,v:V.values[N]})).filter((V)=>V.v!==null&&V.v!==void 0&&(V.v!==0||ee.length===1)).sort((V,Pe)=>ee.length>1?Pe.v-V.v:0),Lt=pe.filter((V)=>V.s.axis!=="right").reduce((V,Pe)=>V+Pe.v,0),Ye=R??(v&&Z.left.length>1);return ct.jsxDEV("div",{className:"chart",ref:F,"data-hovering":N!==null,style:{height:p},children:[K>0&&ct.jsxDEV("svg",{width:K,height:p,role:"img",children:[ct.jsxDEV("defs",{children:ee.filter((V)=>V.pattern==="hatch").map((V)=>ct.jsxDEV("pattern",{id:`${B}-${kb(V.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[ct.jsxDEV("rect",{width:"5",height:"5",fill:V.color,fillOpacity:"0.14"},void 0,!1,void 0,this),ct.jsxDEV("rect",{width:"1.6",height:"5",fill:V.color},void 0,!1,void 0,this)]},V.key,!0,void 0,this))},void 0,!1,void 0,this),ct.jsxDEV("g",{className:"chart-grid",children:Z.leftScale.ticks.map((V)=>ct.jsxDEV("line",{x1:ge,x2:ge+Ce,y1:ve(V),y2:ve(V)},V,!1,void 0,this))},void 0,!1,void 0,this),ct.jsxDEV("g",{className:"chart-axis",children:[Z.leftScale.ticks.map((V,Pe)=>ct.jsxDEV("text",{x:ge-8,y:ve(V),dy:"0.32em",textAnchor:"end",children:W[Pe]},V,!1,void 0,this)),Z.rightScale?.ticks.map((V,Pe)=>ct.jsxDEV("text",{x:ge+Ce+8,y:ke(V),dy:"0.32em",textAnchor:"start",children:X[Pe]},V,!1,void 0,this)),Array.from({length:r},(V,Pe)=>Pe%se===0?ct.jsxDEV("text",{x:je(Pe),y:p-6,textAnchor:"middle",children:i(Pe)},Pe,!1,void 0,this):null)]},void 0,!0,void 0,this),N!==null&&ct.jsxDEV("rect",{className:"chart-cursor",x:ge+N*te,y:Js,width:te,height:Be},void 0,!1,void 0,this),ee.filter((V)=>(V.kind??f)==="area").map((V)=>{let Pe=V.axis==="right"?ke:ve,Mt=Z.bases.get(V.key),pa=(Kt)=>(Mt?.[Kt]??0)+(V.values[Kt]??0),re=sw(r,je,(Kt)=>Pe(pa(Kt))),ma=Array.from({length:r},(Kt,Yt)=>r-1-Yt).map((Kt)=>`L${je(Kt).toFixed(1)},${Pe(Mt?.[Kt]??0).toFixed(1)}`).join(""),Ia=V.pattern==="hatch"?`url(#${B}-${kb(V.key)})`:V.color;return ct.jsxDEV("g",{children:[ct.jsxDEV("path",{d:`${re}${ma}Z`,fill:Ia,fillOpacity:V.pattern?1:0.2},void 0,!1,void 0,this),ct.jsxDEV("path",{className:"chart-line",d:re,stroke:V.color},void 0,!1,void 0,this)]},V.key,!0,void 0,this)}),ae.map((V)=>{let Pe=V.axis==="right"?ke:ve,Mt=Z.bases.get(V.key),pa=P.indexOf(V),re=pa>=0?ue/P.length:ue,ma=V.pattern==="hatch"?`url(#${B}-${kb(V.key)})`:V.color;return ct.jsxDEV("g",{children:V.values.map((Ia,Kt)=>{if(!Ia)return null;let Yt=pa>=0?0:Mt?.[Kt]??0,gt=Pe(Yt),Et=Pe(Yt+Ia),Ee=je(Kt)-ue/2+(pa>=0?pa*re:0);return ct.jsxDEV("rect",{className:"chart-bar","data-hover":N===Kt,x:Ee,y:Math.min(gt,Et),width:Math.max(1,re-(pa>=0&&P.length>1?1:0)),height:Math.max(Ia>0?1:0,Math.abs(gt-Et)),fill:ma},Kt,!1,void 0,this)})},V.key,!1,void 0,this)}),ee.filter((V)=>(V.kind??f)==="line").map((V)=>{let Pe=V.axis==="right"?ke:ve,Mt=(pa)=>{let re=V.values[pa];return re===null||re===void 0?null:Pe(re)};return ct.jsxDEV("g",{children:[ct.jsxDEV("path",{className:"chart-line",d:sw(r,je,Mt),stroke:V.color,strokeDasharray:V.dashed?"4 3":void 0},void 0,!1,void 0,this),V.values.map((pa,re)=>{let ma=Mt(re);if(ma===null||re>0&&Mt(re-1)!==null||re<r-1&&Mt(re+1)!==null)return null;return ct.jsxDEV("circle",{cx:je(re),cy:ma,r:2.5,fill:V.color},re,!1,void 0,this)})]},V.key,!0,void 0,this)}),L?.map((V)=>{let Pe=V.axis==="right"?ke(V.value):ve(V.value);return ct.jsxDEV("g",{className:"chart-axis",children:[ct.jsxDEV("line",{x1:ge,x2:ge+Ce,y1:Pe,y2:Pe,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),V.label&&ct.jsxDEV("text",{x:ge+Ce-4,y:Pe-5,textAnchor:"end",children:V.label},void 0,!1,void 0,this)]},`${V.axis??"left"}:${V.value}`,!0,void 0,this)}),ct.jsxDEV("line",{className:"chart-baseline",x1:ge,x2:ge+Ce,y1:ve(0),y2:ve(0)},void 0,!1,void 0,this),ct.jsxDEV("rect",{x:ge,y:Js,width:Ce,height:Be,fill:"transparent",onPointerMove:ne,onPointerLeave:()=>oe(null),onClick:D&&N!==null?()=>D(N):void 0,style:{cursor:D?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.empty&&ct.jsxDEV("div",{className:"chart-empty",children:_},void 0,!1,void 0,this),N!==null&&!Z.empty&&ct.jsxDEV("div",{className:"chart-tooltip",style:je(N)>K/2?{right:K-je(N)+Math.min(te/2,24)+8,top:Js}:{left:je(N)+Math.min(te/2,24)+8,top:Js},children:[ct.jsxDEV("div",{className:"chart-tooltip-title",children:(u??i)(N)},void 0,!1,void 0,this),pe.map(({s:V,v:Pe})=>ct.jsxDEV("div",{className:"chart-tooltip-row",children:[ct.jsxDEV("span",{className:"swatch",style:{background:V.color}},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-label",children:V.label},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-value",children:V.axis==="right"?(S??b)(Pe):(k??b)(Pe)},void 0,!1,void 0,this)]},V.key,!0,void 0,this)),Ye&&pe.length>1&&ct.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[ct.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-value",children:(k??b)(Lt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z&&ct.jsxDEV(Vn.Fragment,{children:z(N)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function nw(r){if(!(r>0))return{max:1,ticks:[0]};let i=r/kA,u=10**Math.floor(Math.log10(i)),c=[1,2,2.5,5,10].map((p)=>p*u).find((p)=>p>=i)??10*u,f=Math.ceil(r/c)*c,v=[];for(let p=0;p<=f+c/2;p+=c)v.push(Number(p.toPrecision(12)));return{max:f,ticks:v}}function rw(r){return r.reduce((i,u)=>Math.max(i,u.length*6.3),0)}function sw(r,i,u){let c="",f=!1;for(let v=0;v<r;v++){let p=u(v);if(p===null){f=!1;continue}c+=`${f?"L":"M"}${i(v).toFixed(1)},${p.toFixed(1)}`,f=!0}return c}function kb(r){return r.replace(/[^a-zA-Z0-9_-]/g,"_")}var km=Y(ut(),1),pn=Y(ce(),1);function Qa({items:r,hidden:i,onToggle:u}){return pn.jsxDEV("div",{className:"legend",children:r.map((c)=>{let f=pn.jsxDEV(pn.Fragment,{children:[pn.jsxDEV("span",{className:"swatch",style:{background:c.color}},void 0,!1,void 0,this),pn.jsxDEV("span",{className:"truncate",children:c.label},void 0,!1,void 0,this),c.value&&pn.jsxDEV("span",{className:"legend-value",children:c.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u?pn.jsxDEV("button",{type:"button",className:"legend-item","data-off":i?.has(c.key)??!1,onClick:()=>u(c.key),title:c.label,children:f},c.key,!1,void 0,this):pn.jsxDEV("span",{className:"legend-item",title:c.label,children:f},c.key,!1,void 0,this)})},void 0,!1,void 0,this)}function nl(){let[r,i]=km.useState(()=>new Set),u=km.useCallback((c)=>{i((f)=>{let v=new Set(f);if(!v.delete(c))v.add(c);return v})},[]);return[r,u]}var wb=Y(ce(),1);function Qr({segments:r,height:i=8}){let u=r.reduce((c,f)=>c+Math.max(0,f.value),0);return wb.jsxDEV("div",{className:"share-bar",style:{height:i},role:"img",children:u>0&&r.filter((c)=>c.value>0).map((c)=>wb.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:c.value/u,background:c.color},title:`${c.label}: ${(c.value/u*100).toFixed(1)}%`},c.key,!1,void 0,this))},void 0,!1,void 0,this)}var uw=Y(ce(),1);function $n({buckets:r,bucketMs:i,onSelectBucket:u,...c}){return uw.jsxDEV(Cl,{...c,slots:r.length,tickLabel:(f)=>pm(r[f],i),tooltipTitle:(f)=>fm(r[f],i),onSelect:u?(f)=>u(r[f]):void 0},void 0,!1,void 0,this)}var Ha=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],eo="#6c6c74";function ya(r,i){return`${r}::${i}`}function wm(r){return qc(r.map((i)=>({key:ya(i.model,i.provider),weight:i.totalRequests})))}function qc(r){let i=[...r].sort((u,c)=>c.weight-u.weight||u.key.localeCompare(c.key));return new Map(i.map((u,c)=>[u.key,Ha[c%Ha.length]]))}var Oa=Y(ut(),1);var wA=128,TA=1500,eu=new Map,Tb=new Map;function IA(r,i){if(eu.delete(r),eu.set(r,i),eu.size>wA){let u=eu.keys().next().value;if(u!==void 0)eu.delete(u)}}function RA(r,i,u){let c=Tb.get(r);if(c)return c;let f=i().then((v)=>(IA(r,{data:v,updatedAt:Date.now(),version:u}),v)).finally(()=>{Tb.delete(r)});return Tb.set(r,f),f}function qt(r,i,u){let c=JSON.stringify(r),f=u?.enabled??!0,v=u?.pollMs,{version:p}=fi(),[,b]=Oa.useReducer((B)=>B+1,0),[S,k]=Oa.useState(null),[h,x]=Oa.useState(!1),C=Oa.useRef(i);C.current=i;let R=Oa.useRef(c);R.current=c;let L=Oa.useRef(p);L.current=p;let D=Oa.useRef(null),_=Oa.useRef(0),z=Oa.useCallback((B)=>{_.current=Date.now(),x(!0),RA(B,()=>C.current(),L.current).then(()=>{if(R.current!==B)return;Oa.startTransition(()=>{k(null),b()})}).catch((ee)=>{if(R.current!==B)return;k({key:B,error:ee instanceof Error?ee:Error(String(ee))})}).finally(()=>{if(R.current===B)x(!1)})},[]);Oa.useEffect(()=>{if(!f)return;let B=eu.get(c);if(B&&B.version>=p)return;let ee=B?_.current+TA-Date.now():0;if(ee<=0){z(c);return}let Z=setTimeout(()=>z(c),ee);return()=>clearTimeout(Z)},[c,f,p,z]),Oa.useEffect(()=>{if(!f||!v)return;let B=setInterval(()=>{if(!document.hidden)z(R.current)},v);return()=>clearInterval(B)},[f,v,z]);let F=Oa.useCallback(()=>z(R.current),[z]),K=eu.get(c);if(K)D.current={key:c,data:K.data,updatedAt:K.updatedAt};let N=D.current,oe=S?.key===c?S.error:null;return{data:N?.data??null,error:oe,loading:!N&&!oe,stale:!!N&&N.key!==c,refreshing:h,updatedAt:N?.updatedAt??null,refetch:F}}function ba(r,i,u){let c=iw(i),f=Array.from({length:i.length},()=>0);for(let v of r){let p=c.get(v.timestamp);if(p!==void 0)f[p]+=u(v)}return f}function mn(r,i){let u=iw(i.buckets),c=new Map;for(let k of r){let h=u.get(k.timestamp);if(h===void 0)continue;let x=i.key(k),C=c.get(x);if(!C)C=Array.from({length:i.buckets.length},()=>0),c.set(x,C);C[h]+=i.value(k)}let f=[...c.entries()].map(([k,h])=>({key:k,values:h,total:h.reduce((x,C)=>x+C,0)})).filter((k)=>k.total!==0).sort((k,h)=>h.total-k.total||k.key.localeCompare(h.key)),v=i.limit??Number.POSITIVE_INFINITY,p=f.slice(0,v),b=f.slice(v),S=p.map((k,h)=>({key:k.key,label:i.label?i.label(k.key):k.key,color:i.colors?.get(k.key)??Ha[h%Ha.length],values:k.values}));if(b.length>0){let k=Array.from({length:i.buckets.length},()=>0);for(let h of b)for(let x=0;x<k.length;x++)k[x]+=h.values[x];S.push({key:"__other__",label:`Other (${b.length})`,color:eo,values:k})}return S}function iw(r){let i=new Map;for(let u=0;u<r.length;u++)i.set(r[u],u);return i}var MA=["main","subagent","advisor"];function Zr(r){return r.totalInputTokens+r.totalOutputTokens+r.totalCacheReadTokens+r.totalCacheWriteTokens}function fw(r){let i=new Map;for(let p of r)i.set(p.agentType,p);let u=MA.map((p)=>i.get(p)).filter((p)=>p!==void 0),c=u.reduce((p,b)=>p+Zr(b),0),f=u.reduce((p,b)=>p+b.totalCost,0),v=u.map((p)=>{let b=Zr(p);return{agentType:p.agentType,tokens:b,requests:p.totalRequests,cost:p.totalCost,share:c>0?b/c:0}});return{totalTokens:c,totalCost:f,segments:v}}function pw(r){let i={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(r.map((f)=>f.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},u=new Map;for(let f of r){let v=ya(f.model,f.provider),p=u.get(v);if(!p)p={key:v,model:f.model,provider:f.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},u.set(v,p);dw(p,f),dw(i,f),p.cost+=f.cost,i.totalCost+=f.cost}i.avgDailyCost=i.activeDays>0?i.totalCost/i.activeDays:0,i.models=[...u.values()].sort((f,v)=>v.cost-f.cost||v.requests-f.requests||f.key.localeCompare(v.key));for(let f of i.models)f.share=i.totalCost>0?f.cost/i.totalCost:0;let c=i.models[0];return i.topModel=c!==void 0&&c.cost>0?c:null,i}function dw(r,i){r.costInput+=i.costInput,r.costOutput+=i.costOutput,r.costCacheRead+=i.costCacheRead,r.costCacheWrite+=i.costCacheWrite,r.requests+=i.requests,r.unpricedRequests+=i.unpricedRequests}function mw(r){let i=new Map;for(let u of r){let c=ya(u.model,u.provider),f=i.get(c);if(!f)f=[],i.set(c,f);f.push({timestamp:u.timestamp,avgTtftSeconds:u.avgTtft!==null?u.avgTtft/1000:null,avgTokensPerSecond:u.avgTokensPerSecond,requests:u.requests})}for(let u of i.values())u.sort((c,f)=>c.timestamp-f.timestamp);return i}var AA=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function hw(r){let i=0,u=0,c=0,f=0,v=0,p=0,b=0,S=0,k=0;for(let C of r){if(i+=C.totalRequests,u+=C.failedRequests,c+=C.totalCost,f+=C.unpricedRequests,v+=C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,p+=C.totalInputTokens,b+=C.totalCacheReadTokens,C.totalRequests>S)S=C.totalRequests;if(C.totalCost>k)k=C.totalCost}let h=0;return{rows:r.map((C)=>{let R=AA.test(C.folder);if(R)h++;return{...C,conversationTokens:C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,requestShare:i>0?C.totalRequests/i:0,costShare:c>0?C.totalCost/c:0,temporary:R}}),totalRequests:i,failedRequests:u,totalCost:c,unpricedRequests:f,conversationTokens:v,cacheRate:p+b>0?b/(p+b):0,maxRequests:S,maxCost:k,temporaryCount:h}}function gw(r){let i=0,u=0,c=0;for(let f of r)i+=f.calls,u+=f.totalTokensShare,c+=f.costShare;return r.map((f)=>({...f,errorRate:f.calls>0?f.errors/f.calls:0,callFraction:i>0?f.calls/i:0,tokenFraction:u>0?f.totalTokensShare/u:0,costFraction:c>0?f.costShare/c:0,avgResultChars:f.calls>0?f.resultChars/f.calls:0}))}function Xn(r){if(r.stopReason==="aborted")return"aborted";if(r.stopReason==="error"||r.errorMessage)return"failed";return"ok"}function Ib(r,i){if(r.length===0)return null;return r[Math.min(r.length-1,Math.max(0,Math.ceil(i*r.length)-1))]}function yw(r){let i=0,u=0,c=0,f=0,v=0,p=null,b=null,S=[],k=[];for(let h of r){let x=Xn(h);if(x==="failed")i++;else if(x==="aborted")u++;if(c+=h.usage.totalTokens,f+=h.usage.cost.total,bb(h))v++;if(h.duration!==null)S.push(h.duration);if(h.ttft!==null)k.push(h.ttft);if(p===null||h.timestamp<p)p=h.timestamp;if(b===null||h.timestamp>b)b=h.timestamp}return S.sort((h,x)=>h-x),k.sort((h,x)=>h-x),{requests:r.length,failed:i,aborted:u,tokens:c,cost:f,unpriced:v,medianDuration:Ib(S,0.5),p95Duration:Ib(S,0.95),medianTtft:Ib(k,0.5),oldest:p,newest:b}}var cw=180,DA=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,EA=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,OA=/\b[0-9a-f]{12,}\b/gi,qA=/(?<![\w.-])\d+(?:\.\d+)?/g,BA=/^[1-5]\d\d$/;function Rb(r){if(!r?.trim())return"Unknown error";let i=r.replace(/\s+/g," ").trim().replace(DA,"<id>").replace(EA,"<id>").replace(OA,"<hex>").replace(qA,(u)=>BA.test(u)?u:"N");return i.length>cw?`${i.slice(0,cw-1)}…`:i}function bw(r){let i=new Map;for(let u of r){let c=Rb(u.errorMessage),f=i.get(c);if(!f)f={signature:c,count:0,firstSeen:u.timestamp,lastSeen:u.timestamp,latest:u,models:[],byModel:new Map},i.set(c,f);if(f.count++,u.timestamp<f.firstSeen)f.firstSeen=u.timestamp;if(u.timestamp>f.lastSeen)f.lastSeen=u.timestamp,f.latest=u;let v=ya(u.model,u.provider),p=f.byModel.get(v);if(p)p.count++;else f.byModel.set(v,{model:u.model,provider:u.provider,count:1})}return[...i.values()].map(({byModel:u,...c})=>({...c,models:[...u.values()].sort((f,v)=>v.count-f.count||f.model.localeCompare(v.model))})).sort((u,c)=>c.count-u.count||c.lastSeen-u.lastSeen)}var Ae=Y(ce(),1),NA=[{value:"model",label:"By model"},{value:"component",label:"By component"}],UA=6,PA=86400000,Bc=[{key:"costInput",label:"Input",color:"#5b8cff"},{key:"costOutput",label:"Output",color:"var(--chart-secondary)"},{key:"costCacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"costCacheWrite",label:"Cache write",color:"#f5b54a"}],zA=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),_A=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function vw({active:r,range:i}){let u=qt(["costs",i],()=>wk(i),{enabled:r}),c=na(i),[f,v]=Tm.useState("model"),[p,b]=nl(),S=Tm.useMemo(()=>u.data?HA(u.data,i):null,[u.data,i]),k=(x)=>x.costSeries.length===0,h=Ae.jsxDEV(mt,{title:"No usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return Ae.jsxDEV("div",{className:"page",children:[Ae.jsxDEV(ta,{title:"Costs",description:`What ${c.windowLabel} of usage would cost at public API rates. Subscription usage without a public price is counted as unpriced, not free.`},void 0,!1,void 0,this),Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(Ea,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Ae.jsxDEV(FA,{view:S,stale:u.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae.jsxDEV("div",{className:"grid grid-main-side",children:[Ae.jsxDEV(Ve,{index:1,title:"Daily estimate",description:f==="model"?"Per UTC day, stacked by model":"Per UTC day, stacked by billing component",actions:Ae.jsxDEV(za,{size:"sm",options:NA,value:f,onChange:v,"aria-label":"Split by"},void 0,!1,void 0,this),stale:u.stale,children:Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(Tt,{height:280},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>{if(!S)return null;let x=f==="model"?S.modelSeries:S.componentSeries;return Ae.jsxDEV("div",{className:"stack",style:{gap:12},children:[Ae.jsxDEV(Cl,{slots:S.buckets.length,tickLabel:(C)=>zA.format(S.buckets[C]),tooltipTitle:(C)=>_A.format(S.buckets[C]),series:x,hidden:p,height:280,format:(C)=>ua(C,Number.isInteger(C)?0:2),formatTooltip:(C)=>ua(C),emptyLabel:"No priced usage in this range",tooltipExtra:(C)=>S.unpricedPerDay[C]>0?Ae.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Ae.jsxDEV("span",{className:"chart-tooltip-label",children:"Unpriced requests"},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"chart-tooltip-value",children:q(S.unpricedPerDay[C])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),Ae.jsxDEV(Qa,{items:x.map((C)=>({key:C.key,label:C.label,color:C.color,value:ua($A(C.values))})),hidden:p,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae.jsxDEV(Ve,{index:2,title:"Where it went",description:"Estimate by billing component",stale:u.stale,children:Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(Tt,{height:280},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Ae.jsxDEV(GA,{summary:S.summary},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ae.jsxDEV(Ve,{index:3,title:"By model",description:"Estimate per model with its input, output and cache split",stale:u.stale,flush:!0,children:Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Ae.jsxDEV(zt,{rows:S.summary.models,rowKey:(x)=>x.key,columns:VA(S),initialSort:{key:"cost",dir:"desc"},limit:20},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function HA(r,i){let u=r.costSeries,c=pw(u),f=wm(c.models.map((k)=>({model:k.model,provider:k.provider,totalRequests:k.requests}))),v=new Map(c.models.map((k)=>[k.key,k])),p=Po(i,u.map((k)=>k.timestamp),PA),b=mn(u,{buckets:p,key:(k)=>ya(k.model,k.provider),label:(k)=>v.get(k)?.model??k,value:(k)=>k.cost,limit:UA,colors:f}).map((k)=>({...k,values:k.values.map((h)=>h||null)})),S=new Set;for(let k of b){if(k.key==="__other__")continue;if(S.has(k.color))k.color=Ha.find((h)=>!S.has(h))??k.color;S.add(k.color)}return{summary:c,swatches:new Map(b.filter((k)=>k.key!=="__other__").map((k)=>[k.key,k.color])),buckets:p,dailyTotals:ba(u,p,(k)=>k.cost),unpricedPerDay:ba(u,p,(k)=>k.unpricedRequests),modelSeries:b,componentSeries:Bc.map((k)=>({key:k.key,label:k.label,color:k.color,values:ba(u,p,(h)=>h[k.key]).map((h)=>h||null)})),maxModelCost:c.models[0]?.cost??0}}function FA({view:r,stale:i}){let{summary:u}=r,c=u.requests-u.unpricedRequests,f=u.topModel;return Ae.jsxDEV("div",{"data-stale":i,children:Ae.jsxDEV(aa,{min:180,children:[Ae.jsxDEV(fe,{label:"API-equivalent estimate",title:"What this usage would cost at public API rates",value:Ot(u.totalCost,u.unpricedRequests),hint:`${q(u.requests)} requests`,spark:r.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Average per day",title:"Estimate ÷ days with any usage",value:Ot(u.avgDailyCost,u.unpricedRequests),hint:`over ${q(u.activeDays)} active day${u.activeDays===1?"":"s"}`},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Top model",title:f?`${f.model} (${f.provider})`:void 0,value:f?f.model:"–",hint:f?`${ua(f.cost)} · ${Re(f.share)} of estimate`:"Nothing priced yet"},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Per priced request",title:"Estimate ÷ requests that have a public price",value:c>0?Sw(u.totalCost/c):"–",hint:`${q(c)} priced`},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Unpriced requests",title:"Subscription usage with no public-equivalent price; excluded from the estimate",value:q(u.unpricedRequests),hint:u.unpricedRequests>0?"excluded from the estimate":"all usage priced"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function GA({summary:r}){return Ae.jsxDEV("div",{className:"stack",style:{gap:14},children:[Ae.jsxDEV(Qr,{height:10,segments:Bc.map((i)=>({key:i.key,label:i.label,value:r[i.key],color:i.color}))},void 0,!1,void 0,this),Ae.jsxDEV("div",{className:"costs-components",children:[Bc.map((i)=>Ae.jsxDEV("div",{className:"costs-component-row",children:[Ae.jsxDEV("span",{className:"row",children:[Ae.jsxDEV(Sl,{color:i.color},void 0,!1,void 0,this),i.label]},void 0,!0,void 0,this),Ae.jsxDEV("span",{className:"num",children:ua(r[i.key])},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"num dim costs-component-share",children:r.totalCost>0?Re(r[i.key]/r.totalCost):"–"},void 0,!1,void 0,this)]},i.key,!0,void 0,this)),Ae.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[Ae.jsxDEV("span",{children:"Total"},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"num",children:Ot(r.totalCost,r.unpricedRequests)},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"costs-component-share"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r.unpricedRequests>0&&Ae.jsxDEV("p",{className:"micro dim",children:[q(r.unpricedRequests)," unpriced subscription request",r.unpricedRequests===1?" is":"s are"," not included."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function VA(r){let i=Bc.map((u)=>({key:u.key,header:u.label,align:"right",sort:(c)=>c[u.key],render:(c)=>Ae.jsxDEV("span",{className:"num",children:ua(c[u.key])},void 0,!1,void 0,this)}));return[{key:"model",header:"Model",sort:(u)=>u.model,render:(u)=>Ae.jsxDEV(_a,{lead:Ae.jsxDEV(Sl,{color:r.swatches.get(u.key)??eo},void 0,!1,void 0,this),primary:Ae.jsxDEV("span",{className:"mono",children:u.model},void 0,!1,void 0,this),secondary:u.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(u)=>u.requests,render:(u)=>Ae.jsxDEV("span",{className:"num",children:q(u.requests)},void 0,!1,void 0,this)},{key:"cost",header:"Estimate",title:"API-equivalent estimate at public rates",align:"right",sort:(u)=>u.cost,render:(u)=>Ae.jsxDEV(sa,{value:u.cost,max:r.maxModelCost,display:Ot(u.cost,u.unpricedRequests),color:r.swatches.get(u.key)??eo},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(u)=>u.share,render:(u)=>Ae.jsxDEV("span",{className:"num muted",children:u.cost>0?Re(u.share):"–"},void 0,!1,void 0,this)},{key:"split",header:"Split",title:"Input · output · cache read · cache write",width:150,render:(u)=>u.cost>0?Ae.jsxDEV(Qr,{segments:Bc.map((c)=>({key:c.key,label:c.label,value:u[c.key],color:c.color}))},void 0,!1,void 0,this):Ae.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...i,{key:"perRequest",header:"Per request",title:"Estimate ÷ priced requests",align:"right",sort:(u)=>u.requests>u.unpricedRequests?u.cost/(u.requests-u.unpricedRequests):-1,render:(u)=>Ae.jsxDEV("span",{className:"num",children:u.requests>u.unpricedRequests?Sw(u.cost/(u.requests-u.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:"Unpriced",title:"Requests with no public-equivalent price",align:"right",sort:(u)=>u.unpricedRequests,render:(u)=>u.unpricedRequests>0?Ae.jsxDEV("span",{className:"num tone-warn",children:q(u.unpricedRequests)},void 0,!1,void 0,this):Ae.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function Sw(r){return r>0&&r<0.0001?"<$0.0001":ua(r)}function $A(r){let i=0;for(let u of r)i+=u??0;return i}var jn=Y(ut(),1);var Se=Y(ce(),1),Mb=[50,200,1000];function xw({active:r,range:i,onRequestClick:u}){let[c,f]=jn.useState(0),v=Mb[c],p=qt(["errors",i,v],()=>Tk(i,v),{enabled:r}),[b,S]=jn.useState(null),[k,h]=jn.useState(null),[x,C]=jn.useState(""),R=na(i),L=jn.useMemo(()=>{let W=(p.data??[]).map((Be)=>({row:Be,signature:Rb(Be.errorMessage)})),X=bw(p.data??[]),ge=new Map;for(let{row:Be}of W){let te=ya(Be.model,Be.provider),ve=ge.get(te);if(ve)ve.count++;else ge.set(te,{model:Be.model,provider:Be.provider,count:1})}let Ne=[...ge.entries()].map(([Be,te])=>({key:Be,...te})).sort((Be,te)=>te.count-Be.count||Be.model.localeCompare(te.model)),Ce=W.reduce((Be,{row:te})=>!Be||te.timestamp>Be.timestamp?te:Be,null);return{rows:W,groups:X,models:Ne,newest:Ce}},[p.data]),D=L.groups.some((W)=>W.signature===b)?b:null,_=L.models.some((W)=>W.key===k)?k:null,z=jn.useMemo(()=>{let W=x.trim().toLowerCase();return L.rows.filter((X)=>(D===null||X.signature===D)&&(_===null||ya(X.row.model,X.row.provider)===_)&&(W===""||X.row.model.toLowerCase().includes(W)||X.row.provider.toLowerCase().includes(W)||X.row.folder.toLowerCase().includes(W)||(X.row.errorMessage??"").toLowerCase().includes(W))).map((X)=>X.row)},[L.rows,D,_,x]),F=p.data?.length??0,K=!p.stale&&F<v,N=c+1<Mb.length?Mb[c+1]:null,oe=p.data!==null&&!K?Se.jsxDEV(Se.Fragment,{children:[Se.jsxDEV("span",{children:["Showing the latest ",q(F)," failures in ",R.windowLabel,"; older ones are not loaded."]},void 0,!0,void 0,this),N!==null&&Se.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:p.refreshing,onClick:()=>f(c+1),children:p.refreshing&&p.stale?"Loading…":`Load latest ${q(N)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,B=L.groups[0]?.count??0,ee=jn.useMemo(()=>XA(B),[B]),Z=L.models.find((W)=>W.key===_);return Se.jsxDEV("div",{className:"page",children:[Se.jsxDEV(ta,{title:"Errors",description:`Failed model requests in ${R.windowLabel}, grouped by error signature. Open a failure for its full payload.`},void 0,!1,void 0,this),Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(Ea,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Se.jsxDEV("div",{"data-stale":p.stale,children:Se.jsxDEV(aa,{min:170,children:[Se.jsxDEV(fe,{label:"Failures",value:q(F),hint:K?`in ${R.windowLabel}`:`latest ${q(F)} loaded`},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Signatures",title:"Distinct error messages after normalizing ids and numbers",value:q(L.groups.length),hint:L.groups[0]?`top: ${q(L.groups[0].count)} failures`:void 0},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Affected models",value:q(L.models.length),hint:L.models[0]?.model},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Last failure",value:L.newest?ia(L.newest.timestamp):"–",hint:L.newest?ll(L.newest.timestamp):`none in ${R.windowLabel}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se.jsxDEV("div",{className:"grid grid-main-side",children:[Se.jsxDEV(Ve,{index:1,title:"Error signatures",description:"Same message with ids and counters normalized. Select one to filter the failures below.",flush:!0,stale:p.stale,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:`No failures in ${R.windowLabel}`,hint:"Every request succeeded or was aborted."},void 0,!1,void 0,this),children:()=>Se.jsxDEV(zt,{rows:L.groups,rowKey:(W)=>W.signature,columns:ee,onRowClick:(W)=>S(D===W.signature?null:W.signature),selectedKey:D,expanded:(W)=>W.signature===D?Se.jsxDEV(jA,{group:W,onRequestClick:u},void 0,!1,void 0,this):null,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se.jsxDEV(Ve,{index:2,title:"By model",description:"Failures per model. Select one to filter.",stale:p.stale,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(Ea,{height:180},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:"No affected models"},void 0,!1,void 0,this),children:()=>Se.jsxDEV(Oc,{items:L.models.slice(0,12).map((W)=>({key:W.key,label:Se.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[Se.jsxDEV("span",{className:"mono truncate",children:W.model},void 0,!1,void 0,this),Se.jsxDEV("span",{className:"dim truncate",children:W.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:W.count,color:W.key===_?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(W)=>h(_===W?null:W)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV(Ve,{index:3,title:"Failures",description:p.data===null?"Loading failures…":`${q(z.length)} of ${q(F)} failures, newest first`,actions:Se.jsxDEV(Se.Fragment,{children:[D!==null&&Se.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>S(null),title:D,children:[Se.jsxDEV("span",{className:"mono truncate",children:D},void 0,!1,void 0,this),Se.jsxDEV(al,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z&&Se.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>h(null),children:[Se.jsxDEV("span",{className:"mono truncate",children:Z.model},void 0,!1,void 0,this),Se.jsxDEV(al,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV(un,{value:x,onChange:C,placeholder:"Message, model or project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:p.stale,footer:oe,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:`No failures in ${R.windowLabel}`},void 0,!1,void 0,this),children:()=>Se.jsxDEV(zt,{rows:z,rowKey:(W)=>W.id??`${W.sessionFile}:${W.entryId}`,onRowClick:(W)=>W.id!==void 0&&u(W.id),columns:YA,initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:Se.jsxDEV(mt,{title:"No failures match",hint:"Clear the search or the selected filters."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function XA(r){return[{key:"signature",header:"Signature",wrap:!0,sort:(i)=>i.signature,render:(i)=>Se.jsxDEV("span",{className:"errors-signature",title:i.latest.errorMessage??void 0,children:i.signature},void 0,!1,void 0,this)},{key:"models",header:"Models",sort:(i)=>i.models.length,render:(i)=>Se.jsxDEV(_a,{primary:Se.jsxDEV("span",{className:"mono",children:i.models[0]?.model},void 0,!1,void 0,this),secondary:i.models.length>1?`+${i.models.length-1} more`:i.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:"Last seen",sort:(i)=>i.lastSeen,render:(i)=>Se.jsxDEV("span",{className:"muted",title:ll(i.lastSeen),children:ia(i.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:"Failures",align:"right",width:120,sort:(i)=>i.count,render:(i)=>Se.jsxDEV(sa,{value:i.count,max:r,display:q(i.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function jA({group:r,onRequestClick:i}){let u=r.latest.id;return Se.jsxDEV("div",{className:"errors-detail",children:[Se.jsxDEV("pre",{className:"code-block errors-detail-message",children:r.latest.errorMessage??"Unknown error"},void 0,!1,void 0,this),Se.jsxDEV("div",{className:"errors-detail-meta",children:[Se.jsxDEV("span",{className:"muted",children:[q(r.count)," failures · first ",ll(r.firstSeen)," · last"," ",ll(r.lastSeen)]},void 0,!0,void 0,this),u!==void 0&&Se.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>i(u),children:["Open latest ",Se.jsxDEV(pc,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV("div",{className:"errors-detail-models",children:r.models.map((c)=>Se.jsxDEV("span",{className:"badge","data-mono":"true",children:[c.model," ",Se.jsxDEV("span",{className:"dim",children:c.provider},void 0,!1,void 0,this)," ",Se.jsxDEV("span",{className:"num",children:Me(c.count)},void 0,!1,void 0,this)]},ya(c.model,c.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var YA=[{key:"time",header:"When",width:120,sort:(r)=>r.timestamp,render:(r)=>Se.jsxDEV("span",{className:"muted",title:ll(r.timestamp),children:ia(r.timestamp)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>Se.jsxDEV(_a,{primary:Se.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"error",header:"Error",sort:(r)=>r.errorMessage??"",render:(r)=>Se.jsxDEV("span",{className:"errors-message",title:r.errorMessage??void 0,children:r.errorMessage??"Unknown error"},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(r)=>r.folder,render:(r)=>Se.jsxDEV("span",{className:"mono muted",title:r.folder,children:cn(r.folder)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",sort:(r)=>r.usage.totalTokens,render:(r)=>Se.jsxDEV("span",{className:"num",children:q(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>Se.jsxDEV("span",{className:"num",children:Yr(r,4)},void 0,!1,void 0,this)}];var It=Y(ut(),1);var j=Y(ce(),1),QA=1000,Im=50,Db=0.5,Nc="*";function Cw({active:r,range:i}){let[u,c]=It.useState(!1),f=qt(["frustration",i],()=>Mk(i),{enabled:r,pollMs:u?QA:void 0}),v=na(i),p=f.data?.job.state;It.useEffect(()=>{if(p!==void 0)c(p==="running")},[p]);let{refetch:b}=f,S=It.useCallback(()=>{c(!0),b()},[b]);return j.jsxDEV("div",{className:"page",children:[j.jsxDEV(ta,{title:"Frustration",description:`How often your messages sound annoyed, per model version, in ${v.windowLabel}.`},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),children:(k)=>j.jsxDEV("div",{"data-stale":f.stale,children:j.jsxDEV(ZA,{overall:k.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Tt,{height:120},void 0,!1,void 0,this),children:(k)=>j.jsxDEV(WA,{active:r,range:i,judgeAvailable:k.judgeAvailable,job:k.job,onRunStarted:S,onRunChanged:b},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Ve,{index:2,title:"Frustration by model version",children:[j.jsxDEV(Tt,{height:340},void 0,!1,void 0,this),j.jsxDEV(ra,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(k)=>j.jsxDEV(s2,{models:k.byModel,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function kl(r,i){return i>0?Re(r/i):"–"}function Ab(r){return r instanceof Error?r.message:String(r)}function kw(r){let i=Math.max(0,Math.floor(r/1000)),u=Math.floor(i/60),c=i%60;return u>0?`${u}m ${String(c).padStart(2,"0")}s`:`${c}s`}function ZA({overall:r}){let i=r.messages-r.judged;return j.jsxDEV(aa,{min:170,children:[j.jsxDEV(fe,{label:"User messages",title:"User messages with prose in range",value:q(r.messages)},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Judge coverage",title:"Messages with a cached judge verdict; the rest use regex signals",value:kl(r.judged,r.messages),hint:`${q(r.judged)} judged · ${q(i)} regex`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Annoyed",title:"Messages annoyed at any target",value:kl(r.annoyed,r.messages),hint:`${q(r.annoyed)} messages`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"At assistant",title:"Messages annoyed at the assistant",value:kl(r.atAssistant,r.messages),hint:`${q(r.atAssistant)} messages`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Angry",title:"Messages angry or hostile toward the assistant",value:kl(r.angry,r.messages),hint:`${q(r.angry)} messages`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Lw="Judging needs the omp host process: open the dashboard with omp stats and configure a judge model. Until then messages are classified by regex signals.";function WA({active:r,range:i,judgeAvailable:u,job:c,onRunStarted:f,onRunChanged:v}){let[p,b]=It.useState(!1),[S,k]=It.useState({status:"loading"}),[h,x]=It.useState(!1),[C,R]=It.useState(null),[L,D]=It.useState(!1),[_,z]=It.useState(null),F=It.useRef(null),K=c.state==="running",N=It.useCallback(()=>{F.current?.abort(),F.current=null,b(!1)},[]);It.useEffect(()=>{if(!r)N()},[r,N]),It.useEffect(()=>()=>F.current?.abort(),[]);let oe=()=>{F.current?.abort();let X=new AbortController;F.current=X;let ge=i;k({status:"loading"}),R(null),z(null),b(!0),Ak(ge,X.signal).then((Ne)=>{if(!X.signal.aborted)k({status:"ready",estimate:Ne,range:ge})},(Ne)=>{if(!X.signal.aborted)k({status:"error",message:Ab(Ne)})})},B=async()=>{if(S.status!=="ready")return;x(!0),R(null);try{await Dk(S.range),N(),f()}catch(X){R(Ab(X))}finally{x(!1)}},ee=async()=>{D(!0),z(null);try{await Ek(),v()}catch(X){z(Ab(X))}finally{D(!1)}},Z=S.status==="ready"?S.estimate:null,W=S.status==="loading"?{label:"Proceed",onClick:B,disabled:!0}:Z?.available?{label:h?"Starting…":"Proceed",onClick:B,disabled:h||Z.messages===0}:void 0;return j.jsxDEV(Ve,{index:1,title:j.jsxDEV(j.Fragment,{children:["Judge classification ",j.jsxDEV(KA,{job:c,judgeAvailable:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:"Cached LLM verdicts replace the regex heuristics; unjudged messages fall back to regex signals.",actions:j.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:oe,disabled:!u||K,title:!u?Lw:K?"A judge run is in progress":"Quote the cost of judging every unjudged message in range",children:[j.jsxDEV(on,{size:13},void 0,!1,void 0,this)," Classify with judge"]},void 0,!0,void 0,this),children:[j.jsxDEV("div",{className:"stack frustration-judge",children:[K?j.jsxDEV(e2,{job:c,cancelling:L,onCancel:ee},void 0,!1,void 0,this):j.jsxDEV(t2,{job:c},void 0,!1,void 0,this),!u&&j.jsxDEV("p",{className:"micro dim",children:Lw},void 0,!1,void 0,this),_&&j.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(Xk,{open:p,title:"Classify with judge",onClose:N,primaryAction:W,children:[j.jsxDEV(JA,{estimate:S},void 0,!1,void 0,this),C&&j.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function KA({job:r,judgeAvailable:i}){switch(r.state){case"running":return j.jsxDEV(wt,{tone:"ok",children:[j.jsxDEV(rn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Running"]},void 0,!0,void 0,this);case"done":return j.jsxDEV(wt,{tone:"ok",children:"Last run done"},void 0,!1,void 0,this);case"cancelled":return j.jsxDEV(wt,{tone:"warn",children:"Last run cancelled"},void 0,!1,void 0,this);case"failed":return j.jsxDEV(wt,{tone:"bad",children:"Last run failed"},void 0,!1,void 0,this);case"idle":return j.jsxDEV(wt,{children:i?"Not run yet":"Regex only"},void 0,!1,void 0,this)}}function JA({estimate:r}){if(r.status==="loading")return j.jsxDEV("p",{className:"muted",children:"Estimating cost…"},void 0,!1,void 0,this);if(r.status==="error")return j.jsxDEV("p",{className:"tone-bad",children:r.message},void 0,!1,void 0,this);let i=r.estimate;if(!i.available)return j.jsxDEV("p",{children:i.reason},void 0,!1,void 0,this);if(i.messages===0)return j.jsxDEV("p",{children:"Everything in this range is already judged. There is nothing left to classify."},void 0,!1,void 0,this);return j.jsxDEV(j.Fragment,{children:[j.jsxDEV("div",{className:"frustration-quote",children:[j.jsxDEV("span",{className:"dim micro",children:"Estimated cost"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",ua(i.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(_o,{items:[{key:"messages",label:"Unjudged unique messages",value:q(i.messages)},{key:"chars",label:"Prose characters",value:q(i.chars)},{key:"tokens",label:"Estimated input tokens",value:q(i.inputTokens)},{key:"judge",label:"Judge",value:i.judge}]},void 0,!1,void 0,this),j.jsxDEV("p",{className:"micro dim",children:"Identical messages share one verdict, and verdicts are cached, so later runs only pay for new messages. Nothing is spent until you proceed."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function e2({job:r,cancelling:i,onCancel:u}){let c=r.done+r.failed,f=r.total>0?Math.min(1,c/r.total):0;return j.jsxDEV("div",{className:"stack frustration-progress",children:[j.jsxDEV("div",{className:"row frustration-progress-head",children:[j.jsxDEV("span",{className:"num",children:[q(r.done),"/",q(r.total)," judged"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"num dim",children:Re(f)},void 0,!1,void 0,this),j.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),j.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:u,disabled:i,children:i?"Cancelling…":"Cancel run"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":r.total,"aria-valuenow":c,children:j.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${f*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[j.jsxDEV("span",{className:r.failed>0?"tone-bad":void 0,children:[q(r.failed)," failed"]},void 0,!0,void 0,this),j.jsxDEV("span",{children:["cost so far ",j.jsxDEV("span",{className:"num",children:ua(r.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.judge&&j.jsxDEV("span",{className:"mono",children:r.judge},void 0,!1,void 0,this),r.startedAt!==null&&j.jsxDEV("span",{children:["elapsed ",kw(Date.now()-r.startedAt)]},void 0,!0,void 0,this),r.startedAt!==null&&r.done>0&&j.jsxDEV("span",{className:"num",children:[(r.done/Math.max(1,(Date.now()-r.startedAt)/1000)).toFixed(0),"/s"]},void 0,!0,void 0,this),r.concurrency>0&&j.jsxDEV("span",{className:"num",children:[q(r.concurrency)," in flight"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function t2({job:r}){let i=`${q(r.done)}/${q(r.total)} messages`,u=r.failed>0?`, ${q(r.failed)} failed`:"",c=r.judge?` with ${r.judge}`:"",f=r.startedAt!==null&&r.finishedAt!==null?` in ${kw(r.finishedAt-r.startedAt)}`:"";switch(r.state){case"idle":return j.jsxDEV("p",{className:"muted",children:"No judge run yet. Classify the unjudged messages to replace regex estimates with verdicts."},void 0,!1,void 0,this);case"running":return null;case"done":return j.jsxDEV("p",{className:"muted",children:["Last run judged ",i,u,c,f," for ",j.jsxDEV("span",{className:"num",children:ua(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"cancelled":return j.jsxDEV("p",{className:"muted",children:["Last run cancelled after ",i,u,"; spent ",j.jsxDEV("span",{className:"num",children:ua(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"failed":return j.jsxDEV("p",{className:"muted",children:["Last run failed after ",i,u,": ",j.jsxDEV("span",{className:"tone-bad",children:r.error??"unknown error"},void 0,!1,void 0,this),". Spent"," ",j.jsxDEV("span",{className:"num",children:ua(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this)}}function Pc(r){return`${r.modelClass}/${r.family??"unclassified"}`}function Si(r){return r.messages>0&&r.judged/r.messages<Db}function a2(r){let i=2166136261;for(let u=0;u<r.length;u++)i^=r.charCodeAt(u),i=Math.imul(i,16777619);return i>>>0}function o2(r){let i=[...new Set(r.map(Pc))].sort(),u=new Set,c=new Map;for(let f of i){let v=a2(f)%Ha.length;for(let p=0;p<Ha.length&&u.has(v);p++)v=(v+1)%Ha.length;u.add(v),c.set(f,Ha[v])}return c}function l2(r,i){if(i==="angry")return`color-mix(in srgb, ${r} 55%, black)`;if(i==="other")return`color-mix(in srgb, ${r} 32%, transparent)`;return r}var n2=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function r2(r,i){if(i==="angry")return r.angry;if(i==="assistant")return r.atAssistant-r.angry;return r.annoyed-r.atAssistant}function Uc(r,i){return i>0?r/i*100:0}function s2({models:r,stale:i}){let[u,c]=It.useState(null),[f,v]=nl(),[p,b]=It.useState(!1),[S,k]=It.useState(!1),h=It.useMemo(()=>o2(r),[r]),x=It.useMemo(()=>{let B=new Map;for(let ee of r)B.set(ee.modelClass,(B.get(ee.modelClass)??0)+ee.messages);return B},[r]),C=It.useMemo(()=>{let B=null,ee=-1;for(let[Z,W]of x)if(W>ee)B=Z,ee=W;return B??Nc},[x]),R=u!==null&&(u===Nc||x.has(u))?u:C,L=It.useMemo(()=>[{value:Nc,label:"All",title:"Every model class"},...[...x].map(([B,ee])=>({value:B,label:B,title:`${q(ee)} messages`}))],[x]),D=It.useMemo(()=>R===Nc?r:r.filter((B)=>B.modelClass===R),[r,R]),_=It.useMemo(()=>{let B=new Map;for(let ee of D){let Z=Pc(ee),W=B.get(Z);if(W){W.messages+=ee.messages;continue}let X=ee.family??"unclassified";B.set(Z,{key:Z,label:R===Nc?`${ee.modelClass} · ${X}`:X,messages:ee.messages})}return[...B.values()]},[D,R]),z=It.useMemo(()=>D.filter((B)=>!f.has(Pc(B))),[D,f]),F=z.filter((B)=>B.messages<Im).length,K=z.filter(Si).length,N=It.useMemo(()=>z.filter((B)=>(p||B.messages>=Im)&&!(S&&Si(B))),[z,p,S]);if(r.length===0)return j.jsxDEV(Ve,{index:2,title:"Frustration by model version",stale:i,children:j.jsxDEV(mt,{title:"No user messages in this range",hint:"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this);let oe=N.some(Si);return j.jsxDEV(j.Fragment,{children:[j.jsxDEV(Ve,{index:2,title:"Frustration by model version",description:"Share of user messages per model version. Each bar reaches the annoyed rate; the subsets aimed at the assistant stack inside it.",stale:i,children:j.jsxDEV("div",{className:"stack frustration-chart-body",children:[j.jsxDEV("div",{className:"frustration-classes",children:j.jsxDEV(za,{size:"sm","aria-label":"Model class",options:L,value:R,onChange:c},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV("div",{className:"row frustration-filters",children:[j.jsxDEV(Qa,{items:_.map((B)=>({key:B.key,label:B.label,color:h.get(B.key)??Ha[0],value:q(B.messages)})),hidden:f,onToggle:v},void 0,!1,void 0,this),j.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),j.jsxDEV("label",{className:"check",title:`Models with fewer than ${Im} messages have noisy rates`,children:[j.jsxDEV("input",{type:"checkbox",checked:p,onChange:(B)=>b(B.target.checked)},void 0,!1,void 0,this),"Include < ",Im," messages",F>0?` (${F})`:""]},void 0,!0,void 0,this),j.jsxDEV("label",{className:"check",title:`Hide models with under ${Db*100}% judged messages (rates from regex signals)`,children:[j.jsxDEV("input",{type:"checkbox",checked:S,onChange:(B)=>k(B.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",K>0?` (${K})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(u2,{hasRegexRows:oe},void 0,!1,void 0,this),j.jsxDEV(i2,{rows:N,familyColors:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(d2,{rows:N,familyColors:h,stale:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function u2({hasRegexRows:r}){return j.jsxDEV("div",{className:"legend frustration-key",children:[j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"angry"},void 0,!1,void 0,this),"Angry at assistant"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"other"},void 0,!1,void 0,this),"Annoyed at other targets"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),"At assistant trend"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item frustration-key-wide",title:`Under ${Db*100}% of these messages are judged; their rates come from regex signals`,children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),"Hatched: mostly regex fallback",r?" (run the judge)":""]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item dim",children:"Hue = model family"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function i2({rows:r,familyColors:i}){let u=It.useMemo(()=>{let c=new Map;r.forEach((v,p)=>{let b=Pc(v),S=Si(v),k=`${b}|${S?"regex":"judged"}`,h=c.get(k);if(h)h.slots.push(p);else c.set(k,{family:b,regex:S,slots:[p]})});let f=[];for(let v of n2)for(let[p,b]of c){let S=r.map(()=>null);for(let k of b.slots)S[k]=Uc(r2(r[k],v.key),r[k].messages);f.push({key:`${v.key}|${p}`,label:v.label,color:l2(i.get(b.family)??Ha[0],v.key),values:S,pattern:b.regex?"hatch":void 0})}return f.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:r.map((v)=>Uc(v.atAssistant,v.messages)),kind:"line",tooltip:!1}),f},[r,i]);if(r.length===0)return j.jsxDEV("div",{className:"frustration-chart-empty",children:j.jsxDEV(mt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return j.jsxDEV(Cl,{slots:r.length,tickLabel:(c)=>r[c].label,series:u,height:340,format:(c)=>`${c}%`,formatTooltip:(c)=>`${c.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(c)=>{let f=r[c];return j.jsxDEV("div",{className:"frustration-tooltip-extra",children:[j.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[j.jsxDEV("span",{className:"chart-tooltip-label",children:"Annoyed, any target"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"chart-tooltip-value",children:kl(f.annoyed,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV("div",{className:"micro dim",children:[q(f.messages)," messages · judged ",q(f.judged)," (",kl(f.judged,f.messages),")",Si(f)?" · mostly regex fallback":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function d2({rows:r,familyColors:i,stale:u}){let c=It.useMemo(()=>[{key:"model",header:"Model",sort:(f)=>f.label,render:(f)=>j.jsxDEV("span",{className:"row",title:f.key,children:[j.jsxDEV("span",{className:"swatch",style:{background:i.get(Pc(f))??Ha[0]}},void 0,!1,void 0,this),j.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:"Model IDs",wrap:!0,render:(f)=>j.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:"Messages",align:"right",sort:(f)=>f.messages,render:(f)=>j.jsxDEV("span",{className:"num",children:q(f.messages)},void 0,!1,void 0,this)},{key:"judged",header:"Judged",align:"right",sort:(f)=>f.messages>0?f.judged/f.messages:0,render:(f)=>Si(f)?j.jsxDEV("span",{className:"row frustration-judged",title:"Mostly regex fallback: run the judge for accurate rates",children:[j.jsxDEV(wt,{tone:"warn",children:"regex"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"num dim",children:kl(f.judged,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):j.jsxDEV("span",{className:"num",children:kl(f.judged,f.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:"Annoyed",align:"right",sort:(f)=>Uc(f.annoyed,f.messages),render:(f)=>j.jsxDEV("span",{className:"num",title:`${q(f.annoyed)} messages`,children:kl(f.annoyed,f.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:"At assistant",align:"right",sort:(f)=>Uc(f.atAssistant,f.messages),render:(f)=>j.jsxDEV("span",{className:"num",title:`${q(f.atAssistant)} messages`,children:kl(f.atAssistant,f.messages)},void 0,!1,void 0,this)},{key:"angry",header:"Angry",align:"right",sort:(f)=>Uc(f.angry,f.messages),render:(f)=>j.jsxDEV("span",{className:f.angry>0?"num tone-bad":"num",title:`${q(f.angry)} messages`,children:kl(f.angry,f.messages)},void 0,!1,void 0,this)}],[i]);return j.jsxDEV(Ve,{index:3,title:"Model versions",description:"Rates are shares of user messages; rows follow the chart filters.",flush:!0,stale:u,children:j.jsxDEV(zt,{rows:r,rowKey:(f)=>f.key,columns:c,dense:!0,empty:j.jsxDEV(mt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var zc=Y(ut(),1);var xt=Y(ce(),1),c2=86400000,f2={snapcompact:"Snapcompact"},p2=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function ww({active:r,range:i}){let[u,c]=zc.useState(null),f=qt(["gain",i,u],()=>qk(i,u),{enabled:r}),v=na(i),p=f.data,b=zc.useMemo(()=>{let R=(p?.timeSeries??[]).map((F)=>({...F,timestamp:Date.parse(`${F.date}T00:00:00Z`)})),L=Po(i,R.map((F)=>F.timestamp),c2),D=ba(R,L,(F)=>F.snapcompact),_=0,z=D.map((F)=>_+=F);return{buckets:L,daily:D,cumulative:z}},[p,i]),S=zc.useMemo(()=>{if(!p)return[];let R=p.overall.savedTokens;return Object.keys(p.bySource).map((L)=>({...p.bySource[L],source:L,share:R>0?p.bySource[L].savedTokens/R:0}))},[p]),k=p?.projects??[],h=u!==null&&!k.includes(u)?[u,...k]:k,x=u?` for ${u}`:"",C=[{key:"daily",label:"Saved per day",color:"var(--chart-primary)",values:b.daily},{key:"cumulative",label:"Cumulative",color:"var(--chart-secondary)",values:b.cumulative,kind:"line",axis:"right"}];return xt.jsxDEV("div",{className:"page",children:[xt.jsxDEV(ta,{title:"Gain",description:`Tokens snapcompact kept out of context${x} in ${v.windowLabel}.`,actions:h.length>0&&xt.jsxDEV("select",{className:"input","aria-label":"Project",value:u??"",onChange:(R)=>c(R.target.value||null),style:{maxWidth:320},children:[xt.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),h.map((R)=>xt.jsxDEV("option",{value:R,children:R},R,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(_e,{query:f,skeleton:xt.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),isEmpty:(R)=>R.overall.hits===0&&R.timeSeries.length===0,empty:xt.jsxDEV(Ve,{children:xt.jsxDEV(mt,{title:`No savings recorded${x} in ${v.windowLabel}`,hint:i==="all"?"Savings appear here once snapcompact compacts tool output.":"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:R})=>xt.jsxDEV(xt.Fragment,{children:[xt.jsxDEV("div",{"data-stale":f.stale,children:xt.jsxDEV(aa,{min:180,children:[xt.jsxDEV(fe,{label:"Saved tokens",value:Me(R.savedTokens),hint:q(R.savedTokens),spark:b.daily},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Saved bytes",value:vb(R.savedBytes)},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Reduction",title:"Saved bytes ÷ original bytes, when the original size is known",value:R.reductionPercent!==null?Re(R.reductionPercent):"–",hint:R.reductionPercent===null?"original size not recorded":void 0},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Hits",value:q(R.hits)},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Saved per hit",value:R.hits>0?Me(R.savedTokens/R.hits):"–",hint:"tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(Ve,{index:1,title:"Savings over time",description:"Tokens saved per UTC day, with the running total",actions:xt.jsxDEV(Qa,{items:C.map((L)=>({key:L.key,label:L.label,color:L.color}))},void 0,!1,void 0,this),stale:f.stale,children:xt.jsxDEV(Cl,{slots:b.buckets.length,tickLabel:(L)=>p2.format(b.buckets[L]),series:C,height:260,formatTooltip:q,formatRight:Me},void 0,!1,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(Ve,{index:2,title:"By source",description:"Savings per subsystem",flush:!0,stale:f.stale,children:xt.jsxDEV(zt,{rows:S,rowKey:(L)=>L.source,columns:m2},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var m2=[{key:"source",header:"Source",sort:(r)=>r.source,render:(r)=>xt.jsxDEV("span",{className:"cell-primary",children:f2[r.source]},void 0,!1,void 0,this)},{key:"tokens",header:"Saved tokens",align:"right",sort:(r)=>r.savedTokens,render:(r)=>xt.jsxDEV("span",{title:q(r.savedTokens),children:xt.jsxDEV(sa,{value:r.share,max:1,display:Me(r.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(r)=>r.share,render:(r)=>xt.jsxDEV("span",{className:"num muted",children:Re(r.share)},void 0,!1,void 0,this)},{key:"bytes",header:"Saved bytes",align:"right",sort:(r)=>r.savedBytes,render:(r)=>xt.jsxDEV("span",{className:"num",children:vb(r.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:"Hits",align:"right",sort:(r)=>r.hits,render:(r)=>xt.jsxDEV("span",{className:"num",children:q(r.hits)},void 0,!1,void 0,this)},{key:"reduction",header:"Reduction",align:"right",sort:(r)=>r.reductionPercent??-1,render:(r)=>xt.jsxDEV("span",{className:"num",children:r.reductionPercent!==null?Re(r.reductionPercent):"–"},void 0,!1,void 0,this)}];var _c=Y(ut(),1);var Le=Y(ce(),1),h2=[{value:"share",label:"Share"},{value:"requests",label:"Requests"}],g2=6;function Iw({active:r,range:i}){let u=qt(["models",i],()=>kk(i),{enabled:r}),c=na(i),[f,v]=_c.useState("share"),[p,b]=nl(),[S,k]=_c.useState(null),h=_c.useMemo(()=>u.data?y2(u.data,i):null,[u.data,i]),x=x2(c.bucketMs),C=(L)=>L.byModel.length===0,R=Le.jsxDEV(mt,{title:"No model usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return Le.jsxDEV("div",{className:"page",children:[Le.jsxDEV(ta,{title:"Models",description:`Which models did the work in ${c.windowLabel}, and how fast they answered.`},void 0,!1,void 0,this),Le.jsxDEV(_e,{query:u,skeleton:Le.jsxDEV(Ea,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV("div",{"data-stale":u.stale,children:Le.jsxDEV(aa,{min:200,children:[Le.jsxDEV(fe,{label:"Models used",value:q(h.models.length),hint:`across ${q(h.providerCount)} provider${h.providerCount===1?"":"s"}`},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"Most used",title:h.top?`${h.top.model} (${h.top.provider})`:void 0,value:h.top?h.top.model:"–",hint:h.top?`${Re(h.top.totalRequests/Math.max(1,h.totalRequests))} of requests · ${h.top.provider}`:void 0},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"Requests",value:q(h.totalRequests),hint:`${q(h.failedRequests)} failed`,spark:h.requestTotals},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${q(h.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV(Ve,{index:1,title:"Request share",description:f==="share"?`Each model's share of requests per ${x}`:`Requests per ${x}, stacked by model`,actions:Le.jsxDEV(za,{size:"sm",options:h2,value:f,onChange:v,"aria-label":"Share chart mode"},void 0,!1,void 0,this),stale:u.stale,children:Le.jsxDEV(_e,{query:u,skeleton:Le.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV("div",{className:"stack",style:{gap:12},children:[Le.jsxDEV($n,{buckets:h.buckets,bucketMs:c.bucketMs,series:f==="share"?h.shareSeries:h.countSeries,hidden:p,height:260,yMax:f==="share"?1:void 0,format:f==="share"?(L)=>Re(L,0):Me,formatTooltip:f==="share"?(L)=>Re(L):q,showTotal:f==="requests"},void 0,!1,void 0,this),Le.jsxDEV(Qa,{items:h.countSeries.map((L)=>({key:L.key,label:L.label,color:L.color,value:Re(Tw(L.values)/Math.max(1,Tw(h.requestTotals)))})),hidden:p,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV(Ve,{index:2,title:"All models",description:"Click a row for latency and throughput over time",stale:u.stale,flush:!0,children:Le.jsxDEV(_e,{query:u,skeleton:Le.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV(zt,{rows:h.models,rowKey:(L)=>ya(L.model,L.provider),columns:v2(h,S,x),initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(L)=>{let D=ya(L.model,L.provider);k((_)=>_===D?null:D)},selectedKey:S,expanded:(L)=>{let D=ya(L.model,L.provider);return D===S?Le.jsxDEV(S2,{model:L,color:h.swatches.get(D)??"var(--chart-primary)",points:h.performance.get(D)??[],bucketMs:c.bucketMs,bucketWord:x},void 0,!1,void 0,this):null}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function y2(r,i){let u=r.byModel,c=wm(u),f=b2(u),v=Po(i,r.modelSeries.map((_)=>_.timestamp)),p=ba(r.modelSeries,v,(_)=>_.requests),b={buckets:v,key:(_)=>ya(_.model,_.provider),label:(_)=>f.get(_)??_,value:(_)=>_.requests,colors:c},S=mn(r.modelSeries,{...b,limit:g2}).map((_)=>({..._,values:_.values.map((z)=>z||null)})),k=S.map((_)=>({..._,values:_.values.map((z,F)=>z===null?null:z/p[F])})),h=new Map(mn(r.modelSeries,b).map((_)=>[_.key,_.values])),x,C=0,R=0,L=0,D=0;for(let _ of u){if(!x||_.totalRequests>x.totalRequests)x=_;C+=_.totalRequests,R+=_.failedRequests,L+=_.totalCost,D+=_.unpricedRequests}return{models:u,top:x,swatches:new Map(S.filter((_)=>_.key!=="__other__").map((_)=>[_.key,_.color])),labels:f,providerCount:new Set(u.map((_)=>_.provider)).size,totalRequests:C,failedRequests:R,totalCost:L,unpricedRequests:D,maxRequests:x?.totalRequests??0,buckets:v,requestTotals:p,countSeries:S,shareSeries:k,trends:h,performance:mw(r.modelPerformanceSeries)}}function b2(r){let i=new Map;for(let u of r)i.set(u.model,(i.get(u.model)??0)+1);return new Map(r.map((u)=>[ya(u.model,u.provider),(i.get(u.model)??0)>1?`${u.model} · ${u.provider}`:u.model]))}function v2(r,i,u){return[{key:"expand",header:"",width:28,render:(c)=>Le.jsxDEV("span",{className:"models-chevron","data-open":ya(c.model,c.provider)===i,children:Le.jsxDEV(vl,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(c)=>c.model,render:(c)=>Le.jsxDEV(_a,{lead:Le.jsxDEV(Sl,{color:r.swatches.get(ya(c.model,c.provider))??eo},void 0,!1,void 0,this),primary:Le.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this),secondary:c.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(c)=>c.totalRequests,render:(c)=>Le.jsxDEV(sa,{value:c.totalRequests,max:r.maxRequests,display:q(c.totalRequests),color:r.swatches.get(ya(c.model,c.provider))??eo},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate at public rates",align:"right",sort:(c)=>c.totalCost,render:(c)=>Le.jsxDEV("span",{className:"num",children:Ot(c.totalCost,c.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(c)=>Zr(c),render:(c)=>{let f=Zr(c);return Le.jsxDEV("span",{className:"num",title:q(f),children:Me(f)},void 0,!1,void 0,this)}},{key:"cache",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(c)=>c.cacheRate,render:(c)=>Le.jsxDEV("span",{className:"num",children:Re(c.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:"Errors",align:"right",sort:(c)=>c.errorRate,render:(c)=>c.failedRequests===0?Le.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):Le.jsxDEV("span",{title:`${q(c.failedRequests)} failed`,children:Le.jsxDEV(wt,{tone:sn(c.errorRate),mono:!0,children:Re(c.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output tokens per second",align:"right",sort:(c)=>c.avgTokensPerSecond??-1,render:(c)=>Le.jsxDEV("span",{className:"num",children:dn(c.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Average time to first token",align:"right",sort:(c)=>c.avgTtft??-1,render:(c)=>Le.jsxDEV("span",{className:"num",children:St(c.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:"Trend",title:`Requests per ${u}`,width:112,render:(c)=>{let f=ya(c.model,c.provider),v=r.trends.get(f);return v?Le.jsxDEV(gi,{values:v.map((p)=>p??0),color:r.swatches.get(f)??eo,width:96,height:22},void 0,!1,void 0,this):Le.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function S2({model:r,color:i,points:u,bucketMs:c,bucketWord:f}){let[v,p]=nl(),b=[{key:"tps",label:"Tokens/s",color:i,kind:u.length>1?"line":"bars",values:u.map((S)=>S.avgTokensPerSecond)},{key:"ttft",label:"TTFT",color:eo,kind:u.length>1?"line":"bars",axis:"right",dashed:!0,values:u.map((S)=>S.avgTtftSeconds)}];return Le.jsxDEV("div",{className:"models-detail",children:[Le.jsxDEV("div",{className:"models-detail-facts",children:[Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Efficiency"},void 0,!1,void 0,this),Le.jsxDEV(_o,{items:[{key:"err",label:"Error rate",value:Le.jsxDEV("span",{className:`tone-${sn(r.errorRate)}`,children:[Re(r.errorRate)," ",Le.jsxDEV("span",{className:"dim",children:["(",q(r.failedRequests)," failed)"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:"Cache rate",value:Re(r.cacheRate)},{key:"savings",label:"Cache savings",value:Le.jsxDEV("span",{className:r.cacheSavings<0?"tone-bad":void 0,children:Re(r.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:"Premium requests",value:q(Math.round(r.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Latency"},void 0,!1,void 0,this),Le.jsxDEV(_o,{items:[{key:"dur",label:"Avg duration",value:St(r.avgDuration)},{key:"ttft",label:"Avg TTFT",value:St(r.avgTtft)},{key:"tps",label:"Tokens/s",value:dn(r.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),Le.jsxDEV(_o,{items:[{key:"in",label:"Uncached input",value:Me(r.totalInputTokens)},{key:"cr",label:"Cache read",value:Me(r.totalCacheReadTokens)},{key:"cw",label:"Cache write",value:Me(r.totalCacheWriteTokens)},{key:"out",label:"Output",value:Me(r.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"micro dim",children:["First seen ",ia(r.firstTimestamp)," · last seen"," ",ia(r.lastTimestamp)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"models-detail-chart",children:[Le.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Le.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:["Performance per active ",f]},void 0,!0,void 0,this),Le.jsxDEV(Qa,{items:b.map((S)=>({key:S.key,label:S.label,color:S.color})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u.length===0?Le.jsxDEV(mt,{title:"No performance samples",hint:"Timing is recorded for streamed responses."},void 0,!1,void 0,this):Le.jsxDEV($n,{buckets:u.map((S)=>S.timestamp),bucketMs:c,series:b,hidden:v,stacked:!1,height:240,format:Me,formatTooltip:(S)=>`${dn(S)} tok/s`,formatRight:(S)=>`${Number(S.toFixed(2))}s`,tooltipExtra:(S)=>Le.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Le.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),Le.jsxDEV("span",{className:"chart-tooltip-value",children:q(u[S].requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function x2(r){if(r<3600000)return"5 minutes";if(r<86400000)return"hour";return"day"}function Tw(r){let i=0;for(let u of r)i+=u??0;return i}var Rm=Y(ut(),1);var Ie=Y(ce(),1),L2=[{value:"requests",label:"Requests"},{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],Rw={main:"Main agent",subagent:"Subagents",advisor:"Advisor"},Mw={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},Aw=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}];function Dw({active:r,range:i,onRequestClick:u}){let c=qt(["overview",i],()=>Ck(i),{enabled:r}),f=qt(["recent-requests"],()=>mm(12),{enabled:r}),[v,p]=Rm.useState("requests"),b=na(i),S=Rm.useMemo(()=>{let h=c.data?.timeSeries??[],x=Po(i,h.map((C)=>C.timestamp));return{buckets:x,requests:ba(h,x,(C)=>C.requests-C.errors),errors:ba(h,x,(C)=>C.errors),tokens:ba(h,x,(C)=>C.tokens),cost:ba(h,x,(C)=>C.cost),all:ba(h,x,(C)=>C.requests)}},[c.data,i]),k=v==="requests"?[{key:"ok",label:"Succeeded",color:"var(--chart-primary)",values:S.requests},{key:"err",label:"Failed",color:"var(--bad)",values:S.errors}]:v==="tokens"?[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:S.tokens}]:[{key:"cost",label:"API-equivalent",color:"var(--chart-secondary)",values:S.cost}];return Ie.jsxDEV("div",{className:"page",children:[Ie.jsxDEV(ta,{title:"Overview",description:`Everything omp did across your sessions in ${b.windowLabel}.`},void 0,!1,void 0,this),Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:({overall:h})=>Ie.jsxDEV("div",{"data-stale":c.stale,className:"stack",style:{gap:16},children:[Ie.jsxDEV(aa,{min:190,children:[Ie.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${q(h.unpricedRequests)} unpriced`:void 0,spark:S.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Requests",value:q(h.totalRequests),hint:`${q(h.failedRequests)} failed`,spark:S.all},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Me(Zr(h)),hint:`${Me(h.totalOutputTokens)} output`,spark:S.tokens},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",value:Re(h.cacheRate),hint:`${Re(h.cacheSavings)} saved`},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Error rate",value:Re(h.errorRate),hint:`${q(h.successfulRequests)} succeeded`,spark:S.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV(aa,{min:140,children:[Ie.jsxDEV(fe,{size:"sm",label:"Uncached input",value:Me(h.totalInputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Cache read",value:Me(h.totalCacheReadTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Cache write",value:Me(h.totalCacheWriteTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Output",value:Me(h.totalOutputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Premium requests",value:q(Math.round(h.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Tokens/s",value:dn(h.avgTokensPerSecond)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Avg latency",value:St(h.avgDuration)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Avg TTFT",value:St(h.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"grid grid-main-side",children:[Ie.jsxDEV(Ve,{index:1,title:"Activity",description:`Per ${b.bucketMs<3600000?"5 minutes":b.bucketMs<86400000?"hour":"day"}`,actions:Ie.jsxDEV(za,{size:"sm",options:L2,value:v,onChange:p},void 0,!1,void 0,this),stale:c.stale,children:Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>Ie.jsxDEV($n,{buckets:S.buckets,bucketMs:b.bucketMs,series:k,height:260,format:v==="cost"?(h)=>Ot(h,0):Me},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV(Ve,{index:2,title:"Token mix",description:"Where conversation tokens went",stale:c.stale,children:Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:({overall:h,byAgentType:x})=>{let C={input:h.totalInputTokens,cacheRead:h.totalCacheReadTokens,cacheWrite:h.totalCacheWriteTokens,output:h.totalOutputTokens},R=Zr(h),L=fw(x);return Ie.jsxDEV("div",{className:"stack",style:{gap:18},children:[Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV(Qr,{segments:Aw.map((D)=>({key:D.key,label:D.label,value:C[D.key],color:D.color}))},void 0,!1,void 0,this),Ie.jsxDEV(Qa,{items:Aw.map((D)=>({key:D.key,label:D.label,color:D.color,value:R>0?Re(C[D.key]/R,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:"By agent"},void 0,!1,void 0,this),Ie.jsxDEV(Qr,{segments:L.segments.map((D)=>({key:D.agentType,label:Rw[D.agentType],value:D.tokens,color:Mw[D.agentType]}))},void 0,!1,void 0,this),L.segments.map((D)=>Ie.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"swatch",style:{background:Mw[D.agentType]}},void 0,!1,void 0,this),Rw[D.agentType],Ie.jsxDEV("span",{className:"dim num",children:[q(D.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"dim num",children:Me(D.tokens)},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:Re(D.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},D.agentType,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV(Ve,{index:3,title:Ie.jsxDEV(Ie.Fragment,{children:[Ie.jsxDEV(rn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Latest requests"]},void 0,!0,void 0,this),description:"Most recent model calls across every session",actions:Ie.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${i}`,children:["All requests ",Ie.jsxDEV(fc,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Ie.jsxDEV(_e,{query:f,skeleton:Ie.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),children:(h)=>Ie.jsxDEV(zt,{rows:h,rowKey:(x)=>x.id??`${x.sessionFile}:${x.entryId}`,onRowClick:(x)=>x.id!==void 0&&u(x.id),columns:C2,dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var C2=[{key:"model",header:"Model",render:(r)=>Ie.jsxDEV(_a,{primary:r.model,secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:"When",render:(r)=>Ie.jsxDEV("span",{className:"muted",children:ia(r.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:q(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:Yr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:St(r.duration)},void 0,!1,void 0,this)},{key:"status",header:"Status",align:"right",render:(r)=>r.errorMessage?Ie.jsxDEV(wt,{tone:"bad",children:"Failed"},void 0,!1,void 0,this):Ie.jsxDEV(wt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}];var wl=Y(ut(),1);var He=Y(ce(),1),k2=100,Ew=8;function Ow({active:r,range:i}){let u=qt(["projects",i],()=>Ok(i),{enabled:r}),[c,f]=wl.useState(""),[v,p]=wl.useState(!0),b=wl.useDeferredValue(c.trim().toLowerCase()),S=na(i),k=wl.useMemo(()=>hw(u.data??[]),[u.data]),h=wl.useMemo(()=>v?k.rows.filter((D)=>!D.temporary):k.rows,[k,v]),x=wl.useMemo(()=>b?h.filter((D)=>D.folder.toLowerCase().includes(b)):h,[h,b]),C=wl.useMemo(()=>({cost:[...h].sort((D,_)=>_.totalCost-D.totalCost).slice(0,Ew),requests:[...h].sort((D,_)=>_.totalRequests-D.totalRequests).slice(0,Ew)}),[h]),R=He.jsxDEV(mt,{title:k.rows.length===0?"No project folders in this range":"Only temporary folders in this range"},void 0,!1,void 0,this),L=wl.useMemo(()=>w2(k.maxRequests,k.maxCost),[k]);return He.jsxDEV("div",{className:"page",children:[He.jsxDEV(ta,{title:"Projects",description:`Usage by session folder in ${S.windowLabel}.`},void 0,!1,void 0,this),He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),children:()=>He.jsxDEV("div",{"data-stale":u.stale,children:He.jsxDEV(aa,{min:180,children:[He.jsxDEV(fe,{label:"Folders",value:q(k.rows.length),hint:k.temporaryCount>0?`${q(k.temporaryCount)} temporary`:void 0},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Requests",value:q(k.totalRequests),hint:`${q(k.failedRequests)} failed`},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(k.totalCost,k.unpricedRequests),hint:k.unpricedRequests>0?`${q(k.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Me(k.conversationTokens)},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads), across every folder",value:Re(k.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),He.jsxDEV("div",{className:"grid grid-2",children:[He.jsxDEV(Ve,{index:1,title:"Top by cost",description:"Share of API-equivalent cost",stale:u.stale,children:He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(Tt,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.cost.length===0,empty:R,children:()=>He.jsxDEV(Oc,{items:C.cost.map((D)=>({key:D.folder,label:He.jsxDEV("span",{className:"mono",children:cn(D.folder)},void 0,!1,void 0,this),value:D.totalCost,display:`${Ot(D.totalCost,D.unpricedRequests)} · ${Re(D.costShare)}`,color:"var(--chart-secondary)"})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),He.jsxDEV(Ve,{index:2,title:"Top by requests",description:"Share of all requests",stale:u.stale,children:He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(Tt,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.requests.length===0,empty:R,children:()=>He.jsxDEV(Oc,{items:C.requests.map((D)=>({key:D.folder,label:He.jsxDEV("span",{className:"mono",children:cn(D.folder)},void 0,!1,void 0,this),value:D.totalRequests,display:`${q(D.totalRequests)} · ${Re(D.requestShare)}`})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),He.jsxDEV(Ve,{index:3,title:"Folders",description:u.data?x.length===k.rows.length?`${q(k.rows.length)} folders`:`${q(x.length)} of ${q(k.rows.length)} folders`:void 0,actions:He.jsxDEV(He.Fragment,{children:[k.temporaryCount>0&&He.jsxDEV("label",{className:"check",title:"Session folders under /tmp or /var/folders",children:[He.jsxDEV("input",{type:"checkbox",checked:v,onChange:(D)=>p(D.target.checked)},void 0,!1,void 0,this),"Hide temporary (",q(k.temporaryCount),")"]},void 0,!0,void 0,this),He.jsxDEV(un,{value:c,onChange:f,placeholder:"Filter folders…",width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:u.stale,children:He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),children:()=>He.jsxDEV(zt,{rows:x,rowKey:(D)=>D.folder,columns:L,initialSort:{key:"cost",dir:"desc"},limit:k2,dense:!0,empty:He.jsxDEV(mt,{title:k.rows.length===0?"No project folders in this range":"No folders match",hint:k.rows.length===0?"Try a longer range.":v&&k.temporaryCount>0?"Temporary folders are hidden.":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function w2(r,i){return[{key:"folder",header:"Folder",sort:(u)=>u.folder,render:(u)=>He.jsxDEV("span",{className:"row projects-folder",title:u.folder||"(root)",children:[He.jsxDEV("span",{className:"mono truncate",children:cn(u.folder)},void 0,!1,void 0,this),u.temporary&&He.jsxDEV(wt,{children:"temp"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(u)=>u.totalRequests,render:(u)=>He.jsxDEV("span",{title:`${Re(u.requestShare)} of all requests`,children:He.jsxDEV(sa,{value:u.totalRequests,max:r,display:q(u.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent cost at public API rates",align:"right",sort:(u)=>u.totalCost,render:(u)=>He.jsxDEV("span",{title:`${Re(u.costShare)} of all cost`,children:He.jsxDEV(sa,{value:u.totalCost,max:i,display:Ot(u.totalCost,u.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(u)=>u.conversationTokens,render:(u)=>He.jsxDEV("span",{className:"num",title:q(u.conversationTokens),children:Me(u.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(u)=>u.cacheRate,render:(u)=>He.jsxDEV("span",{className:"num",children:Re(u.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:"Cache savings",title:"Prompt-input cost saved versus billing the same tokens uncached",align:"right",sort:(u)=>u.cacheSavings,render:(u)=>He.jsxDEV("span",{className:`num ${u.cacheSavings<0?"tone-bad":"muted"}`,children:Re(u.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(u)=>u.errorRate,render:(u)=>He.jsxDEV("span",{title:`${q(u.failedRequests)} failed`,children:He.jsxDEV(wt,{tone:u.failedRequests>0?sn(u.errorRate):"neutral",mono:!0,children:Re(u.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:"Avg duration",align:"right",sort:(u)=>u.avgDuration??-1,render:(u)=>He.jsxDEV("span",{className:"num",children:St(u.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:"Last active",align:"right",sort:(u)=>u.lastTimestamp,render:(u)=>He.jsxDEV("span",{className:"dim",children:ia(u.lastTimestamp)},void 0,!1,void 0,this)}]}var co=Y(ut(),1);var J=Y(ce(),1),T2=[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost",title:"API-equivalent estimate"},{value:"requests",label:"Requests"}],qw=6,Bw=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}],Nw="Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, omp usage).";function Uw({active:r,range:i}){let u=qt(["providers",i],()=>Nk(i),{enabled:r}),[c,f]=co.useState("tokens"),[v,p]=nl(),b=na(i),S=qt(["provider-windows",i],()=>yb(i,null),{enabled:r}),[k,h]=co.useState(null),x=I2(S.data?.windowInsights??[],k),C=x?.provider??null,R=qt(["provider-windows",i,C],()=>yb(i,C),{enabled:r&&C!==null}),L=co.useMemo(()=>{let F=u.data?.providers??[],K=u.data?.series??[],N=qc(F.map((Z)=>({key:Z.provider,weight:Z.totalTokens}))),oe=Po(i,K.map((Z)=>Z.timestamp)),B={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let Z of F)B.requests+=Z.totalRequests,B.failed+=Z.failedRequests,B.tokens+=Z.totalTokens,B.cost+=Z.totalCost,B.unpriced+=Z.unpricedRequests;let ee=(Z)=>mn(K,{buckets:oe,key:(W)=>W.provider,value:Z,limit:qw,colors:N}).map((W)=>({...W,values:W.values.map((X)=>X||null)}));return{colors:N,buckets:oe,totals:B,burn:{tokens:ee((Z)=>Z.totalTokens),cost:ee((Z)=>Z.cost),requests:ee((Z)=>Z.requests)},spark:{tokens:ba(K,oe,(Z)=>Z.totalTokens),cost:ba(K,oe,(Z)=>Z.cost),requests:ba(K,oe,(Z)=>Z.requests)},topProvider:F.reduce((Z,W)=>Z===null||W.totalTokens>Z.totalTokens?W:Z,null)}},[u.data,i]),D=L.burn[c],_=c==="cost"?(F)=>ua(F):Me,z=L.totals;return J.jsxDEV("div",{className:"page",children:[J.jsxDEV(ta,{title:"Providers",description:`Burn, reliability and subscription headroom per provider over ${b.windowLabel}.`},void 0,!1,void 0,this),J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:({providers:F})=>J.jsxDEV("div",{"data-stale":u.stale,children:J.jsxDEV(aa,{min:190,children:[J.jsxDEV(fe,{label:"Providers",value:q(F.length),hint:L.topProvider?`Most tokens: ${L.topProvider.provider}`:void 0},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Requests",value:q(z.requests),hint:`${q(z.failed)} failed`,spark:L.spark.requests},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Tokens",title:"Uncached input + cache reads + cache writes + output",value:Me(z.tokens),spark:L.spark.tokens},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(z.cost,z.unpriced),hint:z.unpriced>0?`${q(z.unpriced)} unpriced`:void 0,spark:L.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Error rate",value:Re(z.requests>0?z.failed/z.requests:0),hint:`${q(z.requests-z.failed)} succeeded`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(Ve,{index:1,title:"Provider totals",description:z.unpriced>0?`Cost is an API-equivalent estimate and excludes ${q(z.unpriced)} unpriced subscription request${z.unpriced===1?"":"s"}. Select a row for its token mix.`:"Cost is an API-equivalent estimate. Select a row for its token mix.",flush:!0,stale:u.stale,children:J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(ra,{rows:6},void 0,!1,void 0,this),children:({providers:F})=>J.jsxDEV(R2,{providers:F,colors:L.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV("div",{className:"grid grid-main-side",children:[J.jsxDEV(Ve,{index:2,title:"Burn by provider",description:c==="cost"&&z.unpriced>0?`API-equivalent estimate per ${b.bucketMs<86400000?"hour":"day"}; excludes unpriced subscription requests`:`Per ${b.bucketMs<3600000?"5 minutes":b.bucketMs<86400000?"hour":"day"}, top ${qw} providers stacked`,actions:J.jsxDEV(za,{size:"sm",options:T2,value:c,onChange:f},void 0,!1,void 0,this),stale:u.stale,children:J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>J.jsxDEV("div",{className:"stack",style:{gap:12},children:[J.jsxDEV($n,{buckets:L.buckets,bucketMs:b.bucketMs,series:D,hidden:v,height:260,format:_,formatTooltip:c==="cost"?(F)=>ua(F):q,emptyLabel:"No provider activity in this range"},void 0,!1,void 0,this),J.jsxDEV(Qa,{items:D.map((F)=>({key:F.key,label:F.label,color:F.color,value:_(F.values.reduce((K,N)=>K+(N??0),0))})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(Tt,{height:320},void 0,!1,void 0,this),children:({hourly:F,providers:K})=>J.jsxDEV(A2,{hourly:F,providers:K,stale:u.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Ve,{index:4,title:"Subscription windows",description:"What one usage window buys you and how many accounts peak demand needs. Select a row to chart it.",flush:!0,stale:S.stale,children:J.jsxDEV(_e,{query:S,skeleton:J.jsxDEV(ra,{rows:6},void 0,!1,void 0,this),children:(F)=>J.jsxDEV(D2,{insights:F.windowInsights,selected:x,onSelect:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(N2,{insights:S.data?.windowInsights??null,accounts:R,selected:x,onSelect:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function I2(r,i){if(i&&r.some((c)=>c.provider===i.provider&&c.windowKey===i.windowKey))return i;let u=i&&r.find((c)=>c.provider===i.provider)||r.reduce((c,f)=>c===void 0||f.fractionConsumed>c.fractionConsumed?f:c,void 0);return u?{provider:u.provider,windowKey:u.windowKey}:null}function R2({providers:r,colors:i}){let[u,c]=co.useState(null),f=co.useMemo(()=>{let v=0,p=0,b=0;for(let S of r)v=Math.max(v,S.totalRequests),p=Math.max(p,S.totalTokens),b+=S.totalTokens;return[{key:"provider",header:"Provider",sort:(S)=>S.provider,render:(S)=>J.jsxDEV("span",{className:"row",style:{gap:8},children:[J.jsxDEV(Sl,{color:i.get(S.provider)??eo},void 0,!1,void 0,this),J.jsxDEV("span",{className:"mono cell-primary",children:S.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(S)=>S.totalRequests,render:(S)=>J.jsxDEV(sa,{value:S.totalRequests,max:v,display:q(S.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:"Error rate",align:"right",sort:(S)=>S.totalRequests>0?S.failedRequests/S.totalRequests:0,render:(S)=>{let k=S.totalRequests>0?S.failedRequests/S.totalRequests:0;return J.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[J.jsxDEV("span",{className:"num dim",children:q(S.failedRequests)},void 0,!1,void 0,this),J.jsxDEV(wt,{tone:S.failedRequests>0?sn(k):"neutral",mono:!0,children:Re(k)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:"Models",title:"Distinct models used through this provider",align:"right",sort:(S)=>S.models,render:(S)=>J.jsxDEV("span",{className:"num",children:q(S.models)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(S)=>S.totalTokens,render:(S)=>J.jsxDEV(sa,{value:S.totalTokens,max:p,display:Me(S.totalTokens),color:i.get(S.provider)},void 0,!1,void 0,this)},{key:"share",header:"Share",title:"Fraction of all tokens in range",align:"right",sort:(S)=>S.totalTokens,render:(S)=>J.jsxDEV("span",{className:"num muted",children:Re(b>0?S.totalTokens/b:0)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(S)=>S.totalCost,render:(S)=>J.jsxDEV("span",{className:"num",title:S.unpricedRequests>0?`${q(S.unpricedRequests)} unpriced`:void 0,children:Ot(S.totalCost,S.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output throughput",align:"right",sort:(S)=>S.avgTokensPerSecond??-1,render:(S)=>J.jsxDEV("span",{className:"num",children:dn(S.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:"Premium",title:"Premium requests (subscription multiplier units)",align:"right",sort:(S)=>S.totalPremiumRequests,render:(S)=>J.jsxDEV("span",{className:S.totalPremiumRequests>0?"num":"num dim",children:q(Math.round(S.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[r,i]);return J.jsxDEV(zt,{rows:r,rowKey:(v)=>v.provider,columns:f,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:u,onRowClick:(v)=>c((p)=>p===v.provider?null:v.provider),expanded:(v)=>v.provider===u?J.jsxDEV(M2,{provider:v},void 0,!1,void 0,this):null,empty:J.jsxDEV(mt,{title:"No requests in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function M2({provider:r}){let i={input:r.totalInputTokens,cacheRead:r.totalCacheReadTokens,cacheWrite:r.totalCacheWriteTokens,output:r.totalOutputTokens};return J.jsxDEV("div",{className:"providers-mix",children:[J.jsxDEV(Qr,{segments:Bw.map((u)=>({key:u.key,label:u.label,value:i[u.key],color:u.color}))},void 0,!1,void 0,this),J.jsxDEV(Qa,{items:Bw.map((u)=>({key:u.key,label:u.label,color:u.color,value:`${Me(i[u.key])} · ${r.totalTokens>0?Re(i[u.key]/r.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Hc="";function A2({hourly:r,providers:i,stale:u}){let[c,f]=co.useState(Hc),v=c===Hc||i.some((S)=>S.provider===c)?c:Hc,p=co.useMemo(()=>{let S=Array.from({length:24},()=>0),k=Array.from({length:24},()=>0),h=Array.from({length:24},()=>0);for(let L of r){if(v!==Hc&&L.provider!==v)continue;S[L.hour]+=L.totalTokens,k[L.hour]+=L.outputTokens,h[L.hour]+=L.requests}let x=0;for(let L=1;L<24;L++)if(S[L]>S[x])x=L;let C=S[x]>0;return{series:[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:S.map((L,D)=>C&&D===x?null:L)},{key:"peak",label:"Tokens (peak hour)",color:"var(--chart-secondary)",values:S.map((L,D)=>C&&D===x?L:null)}],output:k,requests:h,peak:x,hasData:C}},[r,v]),b=(S)=>`${String(S).padStart(2,"0")}:00`;return J.jsxDEV(Ve,{index:3,title:"Peak burn hours",description:p.hasData?`Tokens by local hour of day; peak at ${b(p.peak)}`:"Tokens by local hour of day",actions:J.jsxDEV("select",{className:"input providers-select",value:v,onChange:(S)=>f(S.target.value),"aria-label":"Provider",children:[J.jsxDEV("option",{value:Hc,children:"All providers"},void 0,!1,void 0,this),i.map((S)=>J.jsxDEV("option",{value:S.provider,children:S.provider},S.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:u,children:J.jsxDEV(Cl,{slots:24,tickLabel:(S)=>String(S).padStart(2,"0"),tooltipTitle:(S)=>`${b(S)}–${b((S+1)%24)}`,series:p.series,height:260,showTotal:!1,formatTooltip:q,emptyLabel:"No activity in this range",tooltipExtra:(S)=>J.jsxDEV(J.Fragment,{children:[J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label",children:"Output"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:q(p.output[S])},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:q(p.requests[S])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function D2({insights:r,selected:i,onSelect:u}){return J.jsxDEV(zt,{rows:r,rowKey:(c)=>`${c.provider}::${c.windowKey}`,columns:E2,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:i?`${i.provider}::${i.windowKey}`:null,onRowClick:(c)=>u({provider:c.provider,windowKey:c.windowKey}),empty:J.jsxDEV(mt,{title:"No usage snapshots in this range",hint:Nw},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var E2=[{key:"window",header:"Window",sort:(r)=>`${r.provider} ${r.windowLabel}`,render:(r)=>J.jsxDEV(_a,{primary:r.windowLabel,secondary:J.jsxDEV("span",{className:"mono",children:r.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:"Accounts",title:"Accounts with at least one snapshot for this window in range",align:"right",sort:(r)=>r.accounts,render:(r)=>J.jsxDEV("span",{className:"num",children:q(r.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:"Resets",title:"Window resets observed (drops in used fraction)",align:"right",sort:(r)=>r.cycles,render:(r)=>J.jsxDEV("span",{className:"num muted",children:q(r.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:"Windows burned",title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",align:"right",sort:(r)=>r.fractionConsumed,render:(r)=>J.jsxDEV("span",{className:"num",children:r.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Tokens / window",title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",align:"right",sort:(r)=>r.estTokensPerWindow??-1,render:(r)=>r.estTokensPerWindow!==null?J.jsxDEV("span",{className:"num",children:Me(r.estTokensPerWindow)},void 0,!1,void 0,this):J.jsxDEV("span",{className:"dim",title:"Too little of the window was consumed to extrapolate",children:"–"},void 0,!1,void 0,this)},{key:"peak",header:"Peak utilization",title:"Peak of summed used fraction across accounts at any sampled instant; the bar is relative to fleet capacity",align:"right",sort:(r)=>r.peakConcurrentFraction,render:(r)=>{let i=r.accounts>0?r.peakConcurrentFraction/r.accounts:0;return J.jsxDEV(sa,{value:r.peakConcurrentFraction,max:r.accounts,display:Re(r.peakConcurrentFraction,0),color:i>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:"Accounts needed",title:"Accounts needed to keep peak demand under 90% of fleet capacity",align:"right",sort:(r)=>r.idealAccounts-r.accounts,render:(r)=>r.idealAccounts>r.accounts?J.jsxDEV(wt,{tone:"warn",mono:!0,children:[q(r.idealAccounts)," · have ",q(r.accounts)]},void 0,!0,void 0,this):J.jsxDEV("span",{className:"num",children:q(r.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:"Exhaustions",title:"Transitions into an exhausted state observed in range",align:"right",sort:(r)=>r.exhaustedEvents,render:(r)=>r.exhaustedEvents>0?J.jsxDEV(wt,{tone:"warn",mono:!0,children:[q(r.exhaustedEvents)," exhausted"]},void 0,!0,void 0,this):J.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}],Mm=60000,Yn=60*Mm,Am=24*Yn,O2=[5*Mm,15*Mm,30*Mm,Yn,2*Yn,3*Yn,6*Yn,12*Yn,Am],q2=240,B2=6*Yn;function N2({insights:r,accounts:i,selected:u,onSelect:c}){let[f,v]=nl(),p=co.useMemo(()=>[...new Set((r??[]).map((L)=>L.provider))],[r]),b=co.useMemo(()=>(r??[]).filter((L)=>L.provider===u?.provider).map((L)=>({key:L.windowKey,label:L.windowLabel})),[r,u?.provider]),S=co.useMemo(()=>(i.data?.usageSeries??[]).filter((L)=>L.provider===u?.provider),[i.data,u?.provider]),k=S.length===0&&(i.loading||i.stale),h=co.useMemo(()=>{let L=new Map;for(let _ of S){let z=L.get(_.accountLabel)??[];if(!z.includes(_.accountKey))z.push(_.accountKey);L.set(_.accountLabel,z)}let D=new Map;for(let[_,z]of L)z.sort(),z.forEach((F,K)=>D.set(F,z.length>1?`${_} #${K+1}`:_));return D},[S]),x=co.useMemo(()=>U2(S.filter((L)=>L.windowKey===u?.windowKey),h),[S,h,u?.windowKey]),C=co.useMemo(()=>{let L=new Map(x.series.map((D)=>[D.key,D.color]));return S.map((D)=>{let _=null,z=null;for(let N of D.points){if(N.usedFraction===null)continue;if(z=Math.max(z??0,N.usedFraction),!_||N.timestamp>=_.timestamp)_={fraction:N.usedFraction,exhausted:N.exhausted,timestamp:N.timestamp}}let F=D.windowKey===u?.windowKey?L.get(D.accountKey)??null:null,K=h.get(D.accountKey)??D.accountLabel;return{series:D,name:K,color:F,latest:_,peak:z,samples:D.points.length}}).sort((D,_)=>Number(_.color!==null)-Number(D.color!==null)||D.series.windowLabel.localeCompare(_.series.windowLabel)||(_.latest?.fraction??-1)-(D.latest?.fraction??-1))},[S,h,x.series,u?.windowKey]),R=b.find((L)=>L.key===u?.windowKey)?.label;return J.jsxDEV(Ve,{index:5,title:"Window utilization",description:x.buckets.length>0?`${R??"Window"} used fraction per account, ${ln(new Date(x.first),"MMM d HH:mm")} – ${ln(new Date(x.last),"MMM d HH:mm")}`:"Recorded limit utilization per account",actions:u&&J.jsxDEV("div",{className:"row",style:{gap:6},children:[J.jsxDEV("select",{className:"input providers-select",value:u.provider,onChange:(L)=>{let D=L.target.value,_=r?.find((z)=>z.provider===D);if(_)c({provider:D,windowKey:_.windowKey})},"aria-label":"Provider",children:p.map((L)=>J.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))},void 0,!1,void 0,this),J.jsxDEV("select",{className:"input providers-select",value:u.windowKey,onChange:(L)=>c({provider:u.provider,windowKey:L.target.value}),"aria-label":"Window",children:b.map((L)=>J.jsxDEV("option",{value:L.key,children:L.label},L.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:i.stale,children:r===null?J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this):u===null?J.jsxDEV(mt,{title:"No usage snapshots in this range",hint:Nw},void 0,!1,void 0,this):J.jsxDEV(_e,{query:i,skeleton:J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>k?J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this):J.jsxDEV("div",{className:"stack",style:{gap:16},children:[J.jsxDEV("div",{className:"stack",style:{gap:12},children:[J.jsxDEV(Cl,{slots:x.buckets.length,tickLabel:(L)=>pm(x.buckets[L],x.last-x.first>Am?Am:x.bucketMs),tooltipTitle:(L)=>fm(x.buckets[L],Yn),series:x.series,hidden:f,kind:"line",stacked:!1,height:260,yMax:Math.max(1,x.max),format:(L)=>Re(L,0),formatTooltip:(L)=>Re(L,1),references:[{value:1,label:"100%"}],emptyLabel:"No utilization readings for this window",tooltipExtra:(L)=>{let D=x.exhausted[L];return D.length>0?J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:"Exhausted"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:D.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),x.series.length>1&&J.jsxDEV(Qa,{items:x.series.map((L)=>({key:L.key,label:L.label,color:L.color})),hidden:f,onToggle:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV("div",{className:"providers-accounts",children:J.jsxDEV(zt,{rows:C,rowKey:(L)=>`${L.series.windowKey}::${L.series.accountKey}`,columns:z2,limit:16,onRowClick:(L)=>c({provider:L.series.provider,windowKey:L.series.windowKey}),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function U2(r,i){let{POSITIVE_INFINITY:u,NEGATIVE_INFINITY:c}=Number;for(let R of r)for(let L of R.points){if(L.timestamp<u)u=L.timestamp;if(L.timestamp>c)c=L.timestamp}if(!(c>=u))return{buckets:[],bucketMs:Yn,first:0,last:0,max:0,series:[],exhausted:[]};let f=c-u,v=O2.find((R)=>f/R<q2)??Am,p=Po("all",[u],v,c),b=(R)=>Math.floor((R-p[0])/v),S=p.map(()=>[]),k=0,h=(R)=>i.get(R.accountKey)??R.accountLabel,C=[...r].sort((R,L)=>h(R).localeCompare(h(L))).map((R,L)=>{let D=p.map(()=>null),_=p.map(()=>0);for(let K of R.points){let N=b(K.timestamp);if(N<0||N>=p.length)continue;if(K.exhausted&&!S[N].includes(h(R)))S[N].push(h(R));if(K.usedFraction===null||K.timestamp<_[N])continue;D[N]=K.usedFraction,_[N]=K.timestamp,k=Math.max(k,K.usedFraction)}let z=null,F=0;for(let K=0;K<p.length;K++)if(D[K]!==null)z=D[K],F=_[K];else if(z!==null&&p[K]-F<=B2)D[K]=z;return{key:R.accountKey,label:h(R),color:Ha[L%Ha.length],values:D}});return{buckets:p,bucketMs:v,first:u,last:c,max:k,series:C,exhausted:S}}function P2(r){if(!r)return J.jsxDEV("span",{className:"dim",children:"No reading"},void 0,!1,void 0,this);if(r.exhausted)return J.jsxDEV(wt,{tone:"bad",children:"Exhausted"},void 0,!1,void 0,this);if(r.fraction>=0.8)return J.jsxDEV(wt,{tone:"warn",children:"High"},void 0,!1,void 0,this);return J.jsxDEV(wt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}var z2=[{key:"account",header:"Account",sort:(r)=>r.name,render:(r)=>J.jsxDEV("span",{className:"row",style:{gap:8},children:[J.jsxDEV("span",{className:"providers-swatch-slot",children:r.color&&J.jsxDEV(Sl,{color:r.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV("span",{className:"truncate providers-account",title:r.series.accountKey,children:r.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"window",header:"Window",sort:(r)=>r.series.windowLabel,render:(r)=>J.jsxDEV("span",{className:r.color?void 0:"muted",children:r.series.windowLabel},void 0,!1,void 0,this)},{key:"latest",header:"Latest used",align:"right",sort:(r)=>r.latest?.fraction??-1,render:(r)=>r.latest?J.jsxDEV(sa,{value:r.latest.fraction,max:1,display:Re(r.latest.fraction,0),color:r.latest.exhausted?"var(--bad)":r.latest.fraction>=0.8?"var(--warn)":"var(--ok)"},void 0,!1,void 0,this):J.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(r)=>r.latest?.exhausted?2:(r.latest?.fraction??0)>=0.8?1:0,render:(r)=>P2(r.latest)},{key:"peak",header:"Peak in range",align:"right",sort:(r)=>r.peak??-1,render:(r)=>J.jsxDEV("span",{className:"num",children:r.peak===null?"–":Re(r.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:"Snapshots",align:"right",sort:(r)=>r.samples,render:(r)=>J.jsxDEV("span",{className:"num muted",children:q(r.samples)},void 0,!1,void 0,this)},{key:"recorded",header:"Recorded",align:"right",sort:(r)=>r.latest?.timestamp??0,render:(r)=>J.jsxDEV("span",{className:"muted",children:r.latest?ia(r.latest.timestamp):"–"},void 0,!1,void 0,this)}];var tu=Y(ut(),1);var Je=Y(ce(),1),Dm={ok:{label:"OK",tone:"ok"},aborted:{label:"Aborted",tone:"warn"},failed:{label:"Failed",tone:"bad"}};function Pw({id:r,onClose:i}){let u=qt(["request",r],()=>Ik(r??0),{enabled:r!==null}),c=u.stale?null:u.data,f=c?Dm[Xn(c)]:null;return Je.jsxDEV(gm,{open:r!==null,onClose:i,width:620,title:c?Je.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this):"Request",subtitle:c?Je.jsxDEV(Je.Fragment,{children:[c.provider," ·"," ",Je.jsxDEV("span",{title:ll(c.timestamp),children:ia(c.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):r!==null?Je.jsxDEV("span",{className:"mono",children:["#",r]},void 0,!0,void 0,this):void 0,actions:c&&f?Je.jsxDEV("div",{className:"row",style:{gap:6},children:[Je.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:Cm({...Ec(window.location.hash),section:"traces",session:c.sessionFile}),onClick:i,title:"Open this request's session in the trace view",children:[Je.jsxDEV(vc,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),Je.jsxDEV(wt,{tone:f.tone,children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:c?Je.jsxDEV(_2,{details:c,aborted:Xn(c)==="aborted"},void 0,!1,void 0,this):u.error?Je.jsxDEV(bi,{error:u.error,onRetry:u.refetch},void 0,!1,void 0,this):Je.jsxDEV("div",{className:"stack",style:{gap:12},children:[Je.jsxDEV(Ea,{height:56},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:120},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:120},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function _2({details:r,aborted:i}){let{usage:u}=r,c=r.duration!==null&&r.duration>0&&u.output>0?u.output*1000/r.duration:null,{messages:f,output:v,...p}=r;return Je.jsxDEV(Je.Fragment,{children:[r.errorMessage&&Je.jsxDEV("section",{className:"request-drawer-error","data-tone":i?"warn":"bad",role:"note",children:[Je.jsxDEV("div",{className:"request-drawer-error-label",children:i?"Aborted":"Error"},void 0,!1,void 0,this),Je.jsxDEV("pre",{className:"request-drawer-error-text",children:r.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Timing"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"at",label:"Started",value:ll(r.timestamp)},{key:"duration",label:"Duration",value:St(r.duration)},{key:"ttft",label:"Time to first token",value:St(r.ttft)},{key:"tps",label:"Output tokens/s",value:dn(c)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"input",label:"Uncached input",value:q(u.input)},{key:"cacheRead",label:"Cache read",value:q(u.cacheRead)},{key:"cacheWrite",label:"Cache write",value:q(u.cacheWrite)},{key:"output",label:"Output",value:q(u.output)},{key:"total",label:"Total",value:q(u.totalTokens)},{key:"premium",label:"Premium requests",value:q(Math.round((u.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"API-equivalent cost"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"total",label:"Total",value:Yr(r,4)},{key:"input",label:"Input",value:ua(u.cost.input,4)},{key:"cacheRead",label:"Cache read",value:ua(u.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:ua(u.cost.cacheWrite,4)},{key:"output",label:"Output",value:ua(u.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Identity"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"id",label:"Request id",value:r.id??"–"},{key:"entry",label:"Entry id",value:r.entryId},{key:"stop",label:"Stop reason",value:r.stopReason},{key:"api",label:"API",value:r.api},{key:"project",label:"Project",value:Je.jsxDEV("span",{title:r.folder,children:cn(r.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"request-drawer-file",children:[Je.jsxDEV("span",{className:"kv-key",children:"Session file"},void 0,!1,void 0,this),Je.jsxDEV("span",{className:"kv-value",children:r.sessionFile},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV(pi,{data:v,title:"Output message"},void 0,!1,void 0,this),Je.jsxDEV(pi,{data:f,title:"Session entry",initialCollapsed:!0},void 0,!1,void 0,this),Je.jsxDEV(pi,{data:p,title:"Stats row",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Qe=Y(ce(),1),Eb=[500,2000,1e4];function zw({active:r,range:i,onRequestClick:u}){let[c,f]=tu.useState(0),v=Eb[c],p=qt(["requests-log",v],()=>mm(v),{enabled:r}),[b,S]=tu.useState(""),[k,h]=tu.useState("all"),x=na(i),C=tu.useMemo(()=>{let N=p.data??[],oe=x.spanMs===null?null:Date.now()-x.spanMs,B=oe===null?N:N.filter((W)=>W.timestamp>=oe),ee=!p.stale&&(N.length<v||oe!==null&&B.length<N.length),Z={all:B.length,ok:0,aborted:0,failed:0};for(let W of B)Z[Xn(W)]++;return{loaded:N.length,inRange:B,complete:ee,counts:Z,summary:yw(B)}},[p.data,p.stale,v,x.spanMs]),R=tu.useMemo(()=>{let N=b.trim().toLowerCase();return C.inRange.filter((oe)=>(k==="all"||Xn(oe)===k)&&(N===""||oe.model.toLowerCase().includes(N)||oe.provider.toLowerCase().includes(N)||oe.folder.toLowerCase().includes(N)))},[C.inRange,b,k]),{summary:L,counts:D,complete:_}=C,z=c+1<Eb.length?Eb[c+1]:null,F=z!==null?Qe.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:p.refreshing,onClick:()=>f(c+1),children:p.refreshing&&p.stale?"Loading…":`Load latest ${q(z)}`},void 0,!1,void 0,this):void 0,K=["all","ok","aborted","failed"].map((N)=>({value:N,label:Qe.jsxDEV(Qe.Fragment,{children:[N==="all"?"All":Dm[N].label," ",Qe.jsxDEV("span",{className:"dim num",children:Me(D[N])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return Qe.jsxDEV("div",{className:"page",children:[Qe.jsxDEV(ta,{title:"Requests",description:`Every model call omp made in ${x.windowLabel}, newest first. Open a row for its full payload.`},void 0,!1,void 0,this),Qe.jsxDEV(_e,{query:p,skeleton:Qe.jsxDEV(Ea,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Qe.jsxDEV("div",{"data-stale":p.stale,children:Qe.jsxDEV(aa,{min:160,children:[Qe.jsxDEV(fe,{label:"Requests",value:q(L.requests),hint:L.oldest===null?`none in ${x.windowLabel}`:`since ${ia(L.oldest)}`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Failed",value:q(L.failed),hint:`${L.requests>0?Re(L.failed/L.requests):"–"} · ${q(L.aborted)} aborted`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Tokens",title:"Total tokens across these requests",value:Me(L.tokens)},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"API-equivalent cost",title:"What these requests would cost at public API rates",value:Ot(L.cost,L.unpriced),hint:L.unpriced>0?`${q(L.unpriced)} unpriced`:void 0},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Median duration",value:St(L.medianDuration),hint:`p95 ${St(L.p95Duration)}`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Median TTFT",title:"Time to first token",value:St(L.medianTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Qe.jsxDEV(Ve,{index:1,title:"Request log",description:p.data===null?"Loading the latest requests…":_?`${q(R.length)} of ${q(L.requests)} requests in ${x.windowLabel}`:`${q(R.length)} of the latest ${q(L.requests)} requests`,actions:Qe.jsxDEV(Qe.Fragment,{children:[Qe.jsxDEV(un,{value:b,onChange:S,placeholder:"Model, provider or project"},void 0,!1,void 0,this),Qe.jsxDEV(za,{size:"sm","aria-label":"Status",options:K,value:k,onChange:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:p.stale,footer:p.data!==null&&!_?Qe.jsxDEV(Qe.Fragment,{children:[Qe.jsxDEV("span",{children:["Showing the latest ",q(C.loaded)," requests, back to"," ",L.oldest===null?"–":ll(L.oldest),". Older requests in"," ",x.windowLabel," are not loaded."]},void 0,!0,void 0,this),F]},void 0,!0,void 0,this):void 0,children:Qe.jsxDEV(_e,{query:p,skeleton:Qe.jsxDEV(ra,{rows:12},void 0,!1,void 0,this),children:()=>Qe.jsxDEV(zt,{rows:R,rowKey:(N)=>N.id??`${N.sessionFile}:${N.entryId}`,onRowClick:(N)=>N.id!==void 0&&u(N.id),columns:H2,initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:Qe.jsxDEV(mt,{title:L.requests===0?`No requests in ${x.windowLabel}`:"No requests match",hint:L.requests===0?void 0:"Clear the search or status filter."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var H2=[{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>Qe.jsxDEV(_a,{primary:Qe.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:"When",sort:(r)=>r.timestamp,render:(r)=>Qe.jsxDEV("span",{className:"muted",title:ll(r.timestamp),children:ia(r.timestamp)},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(r)=>r.folder,render:(r)=>Qe.jsxDEV("span",{className:"mono muted truncate",title:r.folder,style:{display:"block",maxWidth:180},children:cn(r.folder)},void 0,!1,void 0,this)},{key:"input",header:"Input",title:"Uncached input tokens",align:"right",sort:(r)=>r.usage.input,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Me(r.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:"Cache read",title:"Cache read tokens (hover a cell for cache writes)",align:"right",sort:(r)=>r.usage.cacheRead,render:(r)=>Qe.jsxDEV("span",{className:"num",title:`Cache write: ${q(r.usage.cacheWrite)}`,children:Me(r.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:"Output",align:"right",sort:(r)=>r.usage.output,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Me(r.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Yr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",sort:(r)=>r.duration??-1,render:(r)=>Qe.jsxDEV("span",{className:"num",children:St(r.duration)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Time to first token",align:"right",sort:(r)=>r.ttft??-1,render:(r)=>Qe.jsxDEV("span",{className:"num muted",children:St(r.ttft)},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(r)=>Xn(r),render:(r)=>{let i=Dm[Xn(r)];return Qe.jsxDEV("span",{title:r.errorMessage??void 0,children:Qe.jsxDEV(_a,{lead:Qe.jsxDEV(rn,{tone:i.tone},void 0,!1,void 0,this),primary:i.label,secondary:Qe.jsxDEV("span",{className:"mono",children:r.stopReason},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}}];var ou=Y(ut(),1);var be=Y(ce(),1),F2=[{value:"calls",label:"Calls"},{value:"errors",label:"Errors"}],_w=6,au="Tokens and API-equivalent cost of each invoking turn, split evenly across that turn's tool calls",Ob=be.jsxDEV(mt,{title:"No tool calls in this range"},void 0,!1,void 0,this);function Hw({active:r,range:i}){let u=qt(["tools",i],()=>Bk(i),{enabled:r}),[c,f]=ou.useState("calls"),[v,p]=nl(),[b,S]=ou.useState(null),k=na(i),h=ou.useMemo(()=>G2(u.data,i),[u.data,i]),x=b!==null&&h.toolNames.includes(b)?b:null,C=c==="calls"?h.callSeries:h.errorSeries,R=(L)=>L.byTool.length===0;return be.jsxDEV("div",{className:"page",children:[be.jsxDEV(ta,{title:"Tools",description:`Which tools omp called in ${k.windowLabel}, how often they failed, and what they cost.`},void 0,!1,void 0,this),be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:()=>{let L=h.totals;return be.jsxDEV("div",{"data-stale":u.stale,className:"stack",style:{gap:16},children:[be.jsxDEV(aa,{min:190,children:[be.jsxDEV(fe,{label:"Tool calls",value:q(L.calls),hint:`${q(L.errors)} failed`,spark:h.totalCalls},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Distinct tools",value:q(L.tools),hint:h.rows[0]?`Most used: ${h.rows[0].tool}`:void 0},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Error rate",title:"Tool results that came back flagged as errors",value:Re(L.calls>0?L.errors/L.calls:0),hint:`${q(L.calls-L.errors)} succeeded`,spark:h.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Attributed tokens",title:au,value:Me(Math.round(L.tokens)),hint:`${Me(Math.round(L.output))} output`},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Attributed cost",title:`${au}; API-equivalent estimate`,value:Ot(L.cost,L.unpriced),hint:L.unpriced>0?`${q(Math.round(L.unpriced))} unpriced requests`:"API-equivalent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(aa,{min:150,children:[be.jsxDEV(fe,{size:"sm",label:"Result text",title:"Characters of tool-result text fed back into context",value:`${Me(L.resultChars)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Call arguments",title:"Characters of serialized tool-call arguments",value:`${Me(L.argsChars)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Avg result per call",value:`${Me(L.calls>0?Math.round(L.resultChars/L.calls):0)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Avg arguments per call",value:`${Me(L.calls>0?Math.round(L.argsChars/L.calls):0)} chars`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:1,title:c==="calls"?"Calls over time":"Errors over time",description:`Per ${k.bucketMs<3600000?"5 minutes":k.bucketMs<86400000?"hour":"day"}, top ${_w} tools stacked`,actions:be.jsxDEV(za,{size:"sm",options:F2,value:c,onChange:f},void 0,!1,void 0,this),stale:u.stale,children:be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),isEmpty:R,empty:Ob,children:()=>be.jsxDEV("div",{className:"stack",style:{gap:12},children:[be.jsxDEV($n,{buckets:h.buckets,bucketMs:k.bucketMs,series:C,hidden:v,height:260,formatTooltip:q,emptyLabel:c==="errors"?"No tool errors in this range":void 0},void 0,!1,void 0,this),be.jsxDEV(Qa,{items:C.map((L)=>({key:L.key,label:L.label,color:L.color,value:Me(L.values.reduce((D,_)=>D+(_??0),0))})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:2,title:"By tool",description:`${au}. Select a tool to break it down by model.`,flush:!0,stale:u.stale,children:be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:R,empty:Ob,children:()=>be.jsxDEV(zt,{rows:h.rows,rowKey:(L)=>L.tool,columns:h.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:x,onRowClick:(L)=>S((D)=>D===L.tool?null:L.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:3,title:"By tool and model",description:"Which models call which tools, and how often those calls fail",flush:!0,stale:u.stale,actions:be.jsxDEV("div",{className:"row",style:{gap:6},children:[be.jsxDEV("select",{className:"input tools-filter",value:x??"",onChange:(L)=>S(L.target.value||null),"aria-label":"Filter by tool",children:[be.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),h.toolNames.map((L)=>be.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))]},void 0,!0,void 0,this),x!==null&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:"Clear tool filter","aria-label":"Clear tool filter",onClick:()=>S(null),children:be.jsxDEV(al,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:R,empty:Ob,children:(L)=>be.jsxDEV($2,{rows:L.byToolModel,tool:x,colors:h.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function G2(r,i){let u=r?.byTool??[],c=r?.series??[],f=gw(u).sort((R,L)=>L.calls-R.calls),v=qc(u.map((R)=>({key:R.tool,weight:R.calls}))),p=Po(i,c.map((R)=>R.timestamp)),b={calls:0,errors:0,tools:u.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let R of u)b.calls+=R.calls,b.errors+=R.errors,b.tokens+=R.totalTokensShare,b.output+=R.outputTokensShare,b.cost+=R.costShare,b.unpriced+=R.unpricedRequestsShare,b.resultChars+=R.resultChars,b.argsChars+=R.argsChars;let[S,k]=[(R)=>R.calls,(R)=>R.errors].map((R)=>mn(c,{buckets:p,key:(L)=>L.tool,value:R,limit:_w,colors:v}).map((L)=>({...L,values:L.values.map((D)=>D||null)}))),h=new Map(mn(c,{buckets:p,key:(R)=>R.tool,value:(R)=>R.calls}).map((R)=>[R.key,R.values])),x=f[0]?.calls??0,C=V2(x,v,h);return{rows:f,colors:v,buckets:p,totals:b,callSeries:S,errorSeries:k,totalCalls:ba(c,p,(R)=>R.calls),totalErrors:ba(c,p,(R)=>R.errors),toolNames:f.map((R)=>R.tool).sort((R,L)=>R.localeCompare(L)),toolColumns:C}}function V2(r,i,u){return[{key:"tool",header:"Tool",sort:(c)=>c.tool,render:(c)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(Sl,{color:i.get(c.tool)??eo},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:c.tool,children:c.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:"Trend",title:"Calls per bucket over the range",render:(c)=>{let f=u.get(c.tool);return f&&f.length>1?be.jsxDEV(gi,{values:f,width:80,height:20,color:i.get(c.tool)??eo},void 0,!1,void 0,this):be.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:"Calls",align:"right",sort:(c)=>c.calls,render:(c)=>be.jsxDEV(sa,{value:c.calls,max:r,display:be.jsxDEV("span",{title:`${Re(c.callFraction)} of all tool calls`,children:[q(c.calls),be.jsxDEV("span",{className:"dim tools-share",children:Re(c.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",title:"Calls whose result came back flagged as an error",align:"right",sort:(c)=>c.errorRate,render:(c)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:q(c.errors)},void 0,!1,void 0,this),be.jsxDEV(wt,{tone:c.errors>0?sn(c.errorRate):"neutral",mono:!0,children:Re(c.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:"Args",title:"Characters of serialized tool-call arguments",align:"right",sort:(c)=>c.argsChars,render:(c)=>be.jsxDEV("span",{className:"num",children:Me(c.argsChars)},void 0,!1,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(c)=>c.resultChars,render:(c)=>be.jsxDEV("span",{className:"num",children:Me(c.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:"Result / call",title:"Mean tool-result characters per call",align:"right",sort:(c)=>c.avgResultChars,render:(c)=>be.jsxDEV("span",{className:"num muted",children:Me(Math.round(c.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:au,align:"right",sort:(c)=>c.totalTokensShare,render:(c)=>be.jsxDEV("span",{className:"num",title:`${Re(c.tokenFraction)} of attributed tokens`,children:[Me(Math.round(c.totalTokensShare)),be.jsxDEV("span",{className:"dim tools-share",children:Re(c.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:"Attr. cost",title:`${au}; API-equivalent estimate`,align:"right",sort:(c)=>c.costShare,render:(c)=>be.jsxDEV("span",{className:"num",title:`${Re(c.costFraction)} of attributed cost`,children:[Ot(c.costShare,c.unpricedRequestsShare),be.jsxDEV("span",{className:"dim tools-share",children:Re(c.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(c)=>c.lastUsed,render:(c)=>be.jsxDEV("span",{className:"muted",children:ia(c.lastUsed)},void 0,!1,void 0,this)}]}function $2({rows:r,tool:i,colors:u}){let c=ou.useMemo(()=>(i===null?r:r.filter((v)=>v.tool===i)).map((v)=>({...v,errorRate:v.calls>0?v.errors/v.calls:0})),[r,i]),f=ou.useMemo(()=>{let v=c.reduce((p,b)=>Math.max(p,b.calls),0);return[{key:"tool",header:"Tool",sort:(p)=>p.tool,render:(p)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(Sl,{color:u.get(p.tool)??eo},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:p.tool,children:p.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:"Model",sort:(p)=>p.model,render:(p)=>be.jsxDEV(_a,{primary:be.jsxDEV("span",{className:"mono",children:p.model||"(unknown)"},void 0,!1,void 0,this),secondary:p.provider},void 0,!1,void 0,this)},{key:"calls",header:"Calls",align:"right",sort:(p)=>p.calls,render:(p)=>be.jsxDEV(sa,{value:p.calls,max:v,display:q(p.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(p)=>p.errorRate,render:(p)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:q(p.errors)},void 0,!1,void 0,this),be.jsxDEV(wt,{tone:p.errors>0?sn(p.errorRate):"neutral",mono:!0,children:Re(p.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(p)=>p.resultChars,render:(p)=>be.jsxDEV("span",{className:"num",children:Me(p.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:au,align:"right",sort:(p)=>p.totalTokensShare,render:(p)=>be.jsxDEV("span",{className:"num",children:Me(Math.round(p.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. cost",title:`${au}; API-equivalent estimate`,align:"right",sort:(p)=>p.costShare,render:(p)=>be.jsxDEV("span",{className:"num",children:Ot(p.costShare,p.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(p)=>p.lastUsed,render:(p)=>be.jsxDEV("span",{className:"muted",children:ia(p.lastUsed)},void 0,!1,void 0,this)}]},[c,u]);return be.jsxDEV(zt,{rows:c,rowKey:(v)=>`${v.tool}::${v.model}::${v.provider}`,columns:f,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:be.jsxDEV(mt,{title:i?`No calls to ${i} in this range`:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ti=Y(ut(),1);var Bt=Y(ut(),1);var hn=Y(ce(),1);function Fw({toolStats:r,index:i}){if(r.length===0)return null;let u=Math.max(...r.map((f)=>f.totalMs)),c=[{key:"tool",header:"Tool",render:(f)=>hn.jsxDEV("span",{className:"mono",children:f.tool},void 0,!1,void 0,this),sort:(f)=>f.tool},{key:"calls",header:"Calls",align:"right",render:(f)=>hn.jsxDEV("span",{className:"num",children:q(f.calls)},void 0,!1,void 0,this),sort:(f)=>f.calls},{key:"errors",header:"Errors",align:"right",render:(f)=>f.errors>0?hn.jsxDEV(wt,{tone:"bad",children:[q(f.errors)," failed"]},void 0,!0,void 0,this):hn.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(f)=>f.errors},{key:"total",header:"Total",align:"right",width:200,render:(f)=>hn.jsxDEV(sa,{value:f.totalMs,max:u,display:St(f.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(f)=>f.totalMs},{key:"avg",header:"Avg",align:"right",render:(f)=>hn.jsxDEV("span",{className:"num",children:St(f.calls>0?f.totalMs/f.calls:0)},void 0,!1,void 0,this),sort:(f)=>f.calls>0?f.totalMs/f.calls:0},{key:"max",header:"Max",align:"right",render:(f)=>hn.jsxDEV("span",{className:"num",children:St(f.maxMs)},void 0,!1,void 0,this),sort:(f)=>f.maxMs}];return hn.jsxDEV(Ve,{title:"Tool aggregates",description:`${r.length} tools, by total time`,flush:!0,index:i,children:hn.jsxDEV(zt,{columns:c,rows:r,rowKey:(f)=>f.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Tl=Y(ut(),1);var xi=Y(ut(),1);var lu={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function X2(){let r=getComputedStyle(document.documentElement),i=(u,c)=>r.getPropertyValue(u).trim()||c;return{category:{turn:i(lu.turn,"#a0a0a8"),model:i(lu.model,"#5ad8e6"),tool:i(lu.tool,"#f5a524"),subagent:i(lu.subagent,"#ed4abf"),background:i(lu.background,"#46464c")},error:i("--bad","#ff6166"),errorSoft:i("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:i("--ink-1","#ededef"),turnBand:i("--hover","rgba(255, 255, 255, 0.035)"),grid:i("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:i("--chart-axis","#5c5c64"),spanText:i("--ink-inverse","#0a0a0b"),selection:i("--focus","#5ad8e6"),brush:i("--selected","rgba(255, 255, 255, 0.075)"),fontSans:i("--font-sans","system-ui, sans-serif"),fontMono:i("--font-mono","ui-monospace, monospace")}}function Li(){let r=Jk(),[i,u]=xi.useState(0);return xi.useEffect(()=>{let c=new MutationObserver(()=>u((f)=>f+1));return c.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>c.disconnect()},[]),xi.useMemo(X2,[r,i])}var $w=Y(ce(),1),Wr=44,qb=["turn","model","tool","subagent"],Gw=6,Ci=10;function Vw({tracks:r,scale:i,viewport:u,onViewportChange:c}){let f=Li(),v=Tl.useRef(null),[p,b]=Tl.useState(800),S=Tl.useRef(null);Tl.useEffect(()=>{let z=v.current;if(!z)return;let F=new ResizeObserver((K)=>{b(Math.max(100,Math.floor(K[0].contentRect.width)))});return F.observe(z),()=>F.disconnect()},[]);let[k,h]=i.domain,x=Math.max(h-k,0.000000001),C=Tl.useCallback((z)=>(z-k)/x*p,[k,x,p]),R=Tl.useCallback((z)=>k+z/Math.max(p,1)*x,[k,x,p]);Tl.useEffect(()=>{let z=v.current;if(!z)return;let F=z.getContext("2d");if(!F)return;let K=devicePixelRatio;F.setTransform(K,0,0,K,0,0),F.clearRect(0,0,p,Wr);let N=Wr/qb.length;for(let ee=0;ee<qb.length;ee++){let Z=qb[ee],W=new Float32Array(p);for(let X of r)for(let ge of X.spans){if(ge.kind!==Z)continue;let Ne=Math.max(0,Math.floor(C(i.toU(ge.start)))),Ce=Math.min(p-1,Math.ceil(C(i.toU(ge.end))));for(let Be=Ne;Be<=Ce;Be++)W[Be]=Math.min(1,W[Be]+0.34)}F.fillStyle=f.category[Z];for(let X=0;X<p;X++){if(W[X]<=0)continue;F.globalAlpha=0.25+W[X]*0.75,F.fillRect(X,ee*N+1,1,N-2)}F.globalAlpha=1}let oe=C(u.u0),B=C(u.u1);F.fillStyle=f.brush,F.fillRect(oe,0,B-oe,Wr),F.strokeStyle=f.selection,F.strokeRect(oe+0.5,0.5,B-oe-1,Wr-1),F.fillStyle=f.selection,F.fillRect(oe,0,2,Wr),F.fillRect(B-2,0,2,Wr)},[r,i,u,f,p,C]);let L=(z)=>{let F=z.currentTarget.getBoundingClientRect(),K=z.clientX-F.left,N=C(u.u0),oe=C(u.u1),B;if(Math.abs(K-N)<=Gw)B="left";else if(Math.abs(K-oe)<=Gw)B="right";else if(K>N&&K<oe)B="move";else{B="create";let ee=R(K);c(Fc({u0:ee,u1:ee+Ci},k,h))}S.current={mode:B,startX:K,startViewport:u},z.currentTarget.setPointerCapture(z.pointerId)},D=(z)=>{let F=S.current;if(!F)return;let K=z.currentTarget.getBoundingClientRect(),N=z.clientX-K.left,oe=R(N)-R(F.startX),{u0:B,u1:ee}=F.startViewport;if(F.mode==="move")c(Fc({u0:B+oe,u1:ee+oe},k,h));else if(F.mode==="left")c(Fc({u0:Math.min(B+oe,ee-Ci),u1:ee},k,h));else if(F.mode==="right")c(Fc({u0:B,u1:Math.max(ee+oe,B+Ci)},k,h));else{let Z=R(F.startX),W=R(N);c(Fc({u0:Math.min(Z,W),u1:Math.max(Z,W,Math.min(Z,W)+Ci)},k,h))}},_=()=>{S.current=null};return $w.jsxDEV("canvas",{ref:v,width:Math.floor(p*devicePixelRatio),height:Math.floor(Wr*devicePixelRatio),className:"traces-minimap",style:{height:Wr},role:"slider","aria-label":"Timeline overview brush","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((u.u0-k)/x*100),tabIndex:-1,onPointerDown:L,onPointerMove:D,onPointerUp:_},void 0,!1,void 0,this)}function Fc(r,i,u){let c=Math.max(Ci,r.u1-r.u0);c=Math.min(c,u-i||Ci);let f=r.u0;if(f<i)f=i;if(f+c>u)f=u-c;return{u0:f,u1:f+c}}var gn=Y(ut(),1);var et=Y(ce(),1);function j2(r){let i=[];if(typeof r==="string"){if(r.trim())i.push({kind:"text",text:r});return i}if(!Array.isArray(r))return i;for(let u of r){if(!u||typeof u!=="object"||!("type"in u))continue;if((u.type==="text"||u.type==="thinking")&&"text"in u&&typeof u.text==="string")i.push({kind:String(u.type),text:u.text})}return i}function Xw({span:r,track:i,onClose:u,onOpenChildTrack:c}){let[f,v]=gn.useState(null),[p,b]=gn.useState(!1),[S,k]=gn.useState(null),[h,x]=gn.useState(!1),C=gn.useRef(0);if(gn.useEffect(()=>{if(v(null),k(null),x(!1),b(!1),!r||!i||!r.entryId)return;b(!0);let F=new AbortController;return zk(i.file,r.entryId,F.signal).then((K)=>{if(!F.signal.aborted)v(K.entry)}).catch((K)=>{if(F.signal.aborted)return;k(K instanceof Error?K:Error(String(K)))}).finally(()=>{if(!F.signal.aborted)b(!1)}),()=>F.abort()},[r,i]),gn.useEffect(()=>()=>window.clearTimeout(C.current),[]),!r)return null;let R=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(f??r,null,2)),x(!0),window.clearTimeout(C.current),C.current=window.setTimeout(()=>x(!1),1500)}catch{}},D=(f&&typeof f==="object"?f:{}).message,_=D?.usage,z=[{key:"duration",label:"Duration",value:et.jsxDEV("span",{className:"num",children:[St(r.end-r.start),r.unterminated&&et.jsxDEV("span",{className:"muted",children:" · unterminated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:"Start",value:et.jsxDEV("span",{className:"num",children:new Date(r.start).toLocaleTimeString()},void 0,!1,void 0,this)},{key:"track",label:"Track",value:et.jsxDEV("span",{className:"mono",children:i?.label??"-"},void 0,!1,void 0,this)}];if(r.kind==="model"){if(z.push({key:"tokens",label:"Tokens",value:et.jsxDEV("span",{className:"num",children:q(r.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:"Cost",value:et.jsxDEV("span",{className:"num",children:["$",(r.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:"TTFT",value:et.jsxDEV("span",{className:"num",children:St(r.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:"Model",value:et.jsxDEV("span",{className:"mono",children:D?.model??r.model??"-"},void 0,!1,void 0,this)}),_)z.push({key:"split",label:"Input / output / cached",value:et.jsxDEV("span",{className:"num",children:[q(_.input??0)," / ",q(_.output??0)," /"," ",q(_.cacheRead??0)]},void 0,!0,void 0,this)});if(D?.provider)z.push({key:"provider",label:"Provider",value:et.jsxDEV("span",{className:"mono",children:D.provider},void 0,!1,void 0,this)});if(D?.stopReason)z.push({key:"stop",label:"Stop reason",value:et.jsxDEV("span",{className:"mono",children:D.stopReason},void 0,!1,void 0,this)})}return et.jsxDEV(gm,{open:!0,onClose:u,title:r.label,subtitle:et.jsxDEV("span",{className:"row",style:{gap:6},children:et.jsxDEV(wt,{tone:r.isError?"bad":"neutral",children:r.isError?`${r.kind} · error`:r.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:et.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:R,"aria-label":"Copy raw JSON",title:"Copy raw JSON",children:h?et.jsxDEV(Vs,{size:15},void 0,!1,void 0,this):et.jsxDEV(Xs,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:et.jsxDEV("div",{className:"stack traces-drawer",children:[et.jsxDEV(_o,{items:z},void 0,!1,void 0,this),D?.errorMessage&&et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label tone-bad",children:"Error message"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="subagent"&&et.jsxDEV("div",{className:"stack",style:{gap:8},children:[r.detail&&et.jsxDEV(et.Fragment,{children:[et.jsxDEV("div",{className:"section-label",children:"Task"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.childTrackId&&c&&et.jsxDEV("div",{children:et.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>c(r.childTrackId??""),children:["Open child track ",et.jsxDEV("span",{className:"mono",children:r.childTrackId},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="tool"&&r.detail&&et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label",children:"Args"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&et.jsxDEV("div",{className:"stack",children:[et.jsxDEV(Ea,{height:80},void 0,!1,void 0,this),et.jsxDEV(Ea,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&et.jsxDEV(bi,{error:`Failed to load entry: ${S.message}`},void 0,!1,void 0,this),!p&&f!==null&&j2(D?.content).map((F,K)=>et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label",children:F.kind==="thinking"?"Thinking":"Text"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:F.text},void 0,!1,void 0,this)]},`${F.kind}-${K}`,!0,void 0,this)),!p&&f!==null&&et.jsxDEV(pi,{data:f,title:"Raw entry",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Il=Y(ce(),1);function jw({summary:r}){let i=(u)=>r.wallMs>0?`${Re(u/r.wallMs)} of wall`:void 0;return Il.jsxDEV(aa,{min:112,children:[Il.jsxDEV(fe,{size:"sm",label:"Wall time",value:Ws(r.wallMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Model time",value:Ws(r.modelMs),hint:i(r.modelMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Tool time",value:Ws(r.toolMs),hint:i(r.toolMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Idle",value:Ws(r.idleMs),hint:i(r.idleMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Turns",value:q(r.turns)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Requests",value:q(r.requests),hint:`${q(r.toolCalls)} tool calls`},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Agents",value:q(r.subagents)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Tokens",value:Me(r.totalTokens)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Cost",value:Ot(r.costTotal,r.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Wt=Y(ut(),1),eT=Y(rc(),1);function Em(r,i){let u=r.length,c=[i[0],i[u-1]],f=(v,p)=>{let b=0,S=u-1;while(b<S){let k=b+S+1>>1;if(v[k]<=p)b=k;else S=k-1}return Math.min(b,u-2)};return{toU(v){if(v<=r[0])return i[0];if(v>=r[u-1])return i[u-1];let p=f(r,v),b=r[p+1]-r[p];if(b<=0)return i[p];return i[p]+(v-r[p])/b*(i[p+1]-i[p])},toT(v){if(v<=i[0])return r[0];if(v>=i[u-1])return r[u-1];let p=f(i,v),b=i[p+1]-i[p];if(b<=0)return r[p];return r[p]+(v-i[p])/b*(r[p+1]-r[p])},domain:c,gaps:[]}}function Y2(r){let i=[];for(let u of r)for(let c of u.spans)i.push([c.start,c.end]);return i.sort((u,c)=>u[0]-c[0]),i}function Q2(r){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:u}=Number;for(let c of r)for(let f of c.spans){if(f.start<i)i=f.start;if(f.end>u)u=f.end}if(!Number.isFinite(i))return[0,1];return[i,Math.max(u,i+1)]}function Yw(r,i,u){let c=[...new Set(r.filter((b)=>b>=i&&b<=u))].sort((b,S)=>b-S);if(c[0]!==i)c.unshift(i);if(c[c.length-1]!==u)c.push(u);if(c.length<2)return Em([i,u],[i,u]);let v=(u-i)/(c.length-1),p=c.map((b,S)=>i+S*v);return Em(c,p)}function Z2(r,i,u){let c=Y2(r),f=[];for(let[h,x]of c){let C=h-2000,R=x+2000,L=f[f.length-1];if(L&&C<=L[1]){if(R>L[1])L[1]=R}else f.push([C,R])}if(f.length===0)f.push([i,u]);f[0][0]=Math.max(f[0][0],i),f[f.length-1][1]=Math.min(Math.max(f[f.length-1][1],f[f.length-1][0]),u);let v=[],p=[],b=[],S=f[0][0];for(let h=0;h<f.length;h++){let[x,C]=f[h];if(h===0)v.push(x),p.push(S);else{let R=f[h-1][1],L=x-R;if(L>30000)S+=8000,b.push({t0:R,t1:x,uMid:S-4000});else S+=L;v.push(x),p.push(S)}S+=Math.max(0,C-x),v.push(C),p.push(S)}return{...Em(v,p),gaps:b}}function Qw(r,i,u){let[c,f]=Q2(r);if(i==="turns"){let p=(r.find((b)=>b.id==="main")?.spans??[]).filter((b)=>b.kind==="turn").map((b)=>b.start);return Yw(p,c,f)}if(i==="calls"){let v=[];for(let p of r)for(let b of p.spans)if(b.kind==="model"||b.kind==="tool"||b.kind==="background")v.push(b.start,b.end);return Yw(v,c,f)}if(u)return Z2(r,c,f);return Em([c,f],[c,f])}var W2=90;function K2(r){let i=10**Math.floor(Math.log10(Math.max(r,1)));for(let u of[1,2,5,10])if(i*u>=r)return i*u;return i*10}function J2(r){let i=new Date(r),u=String(i.getHours()).padStart(2,"0"),c=String(i.getMinutes()).padStart(2,"0"),f=String(i.getSeconds()).padStart(2,"0");return`${u}:${c}:${f}`}function ki(r){let i=r<0?"-":"+",u=Math.abs(r),c=Math.floor(u/3600000),f=Math.floor(u%3600000/60000),v=Math.floor(u%60000/1000),p=Math.floor(u%1000),b=u%1000!==0,S=`${String(f).padStart(2,"0")}:${String(v).padStart(2,"0")}${b?".":""}${b?String(p).padStart(3,"0"):""}`;return c>0?`${i}${c}:${S}`:`${i}${S}`}function Zw(r,i,u,c){let f=u-i;if(f<=0||c<=0)return[];let v=[],p=r.domain[0],b=K2(f*W2/c),S=p+Math.ceil((i-p)/b)*b,k=0;for(let h=S;h<=u&&k<200;h+=b,k++){let x=r.toT(h),C=Math.round((h-p)/b)%5===0;v.push({u:h,label:C?J2(x):ki(h-p),major:C})}return v}var Rt=Y(ce(),1),Qn=28,Nb=22,So=18,Ww=3,eD=14,Kw=200,Bb=10,tD=2,aD=4,oD=56,Jw=3,lD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tools"},{kind:"subagent",label:"Agents"},{kind:"background",label:"Bg"}];function nD(r,i){let u=new Map(r.map((S)=>[S.id,S])),c=new Set;for(let S of r)if(S.parentId)c.add(S.parentId);let f=(S)=>{let k=S.parentId;while(k){if(i.has(k))return!0;k=u.get(k)?.parentId??null}return!1},v=[],p=[],b=Qn+6;for(let S of r){if(f(S))continue;let k=S.id==="main"?0:S.id.split("/").length,h={track:S,depth:k,hasChildren:c.has(S.id),headerY:b,lanes:[],y0:b,y1:b};b+=Nb;for(let{kind:x,label:C}of lD){let R=S.spans.filter((_)=>_.kind===x),L=x==="turn"||x==="model"||x==="tool";if(R.length===0&&!(S.id==="main"&&L))continue;let D={track:S,kind:x,label:C,y:b,spans:R};h.lanes.push(D),p.push(D),b+=So+Ww}h.y1=b-Ww,v.push(h),b+=eD}return{blocks:v,lanes:p,totalHeight:Math.max(b,Qn+48)}}function tT({tracks:r,scale:i,viewport:u,onViewportChange:c,selection:f,onSelect:v,search:p,collapsed:b,onToggleCollapse:S,traceStart:k}){let h=Li(),x=Wt.useRef(null),C=Wt.useRef(null),[R,L]=Wt.useState(800),[D,_]=Wt.useState(null),z=Wt.useRef([]),F=Wt.useRef(null),K=Wt.useRef(null),N=Wt.useRef(u);N.current=u;let oe=Wt.useMemo(()=>nD(r,b),[r,b]);Wt.useEffect(()=>{let ae=x.current;if(!ae)return;let P=new ResizeObserver((ue)=>{let se=Math.max(100,Math.floor(ue[0].contentRect.width-Kw));L(se)});return P.observe(ae),()=>P.disconnect()},[]);let B=Wt.useCallback((ae,P)=>{let[ue,se]=i.domain,ne=Math.max(Bb,P-ae);ne=Math.min(ne,se-ue||Bb);let pe=ae;if(pe<ue)pe=ue;if(pe+ne>se)pe=se-ne;return{u0:pe,u1:pe+ne}},[i]),ee=Wt.useCallback((ae)=>{N.current=ae,c(ae)},[c]),Z=Wt.useCallback((ae,P)=>{let ue=R,{u0:se,u1:ne}=N.current,pe=ne-se,Lt=P===null?0.5:Math.min(1,Math.max(0,P/ue)),Ye=se+pe*Lt,V=pe*ae;ee(B(Ye-V*Lt,Ye+V*(1-Lt)))},[R,ee,B]),W=Wt.useCallback((ae)=>{let{u0:P,u1:ue}=N.current;ee(B(P+ae,ue+ae))},[ee,B]),X=Wt.useCallback((ae)=>{let P=i.toU(ae.start),ue=i.toU(ae.end),se=Math.max((ue-P)*0.1,Bb/2);ee(B(P-se,ue+se))},[i,ee,B]);Wt.useEffect(()=>{let ae=C.current;if(!ae)return;let P=(ue)=>{ue.preventDefault();let se=ae.getBoundingClientRect(),ne=ue.clientX-se.left;K.current=ne,_(null);let pe=ae.clientWidth||1,Lt=()=>N.current.u1-N.current.u0;if(ue.shiftKey){let Ye=Math.abs(ue.deltaY)>=Math.abs(ue.deltaX)?ue.deltaY:ue.deltaX;W(Ye/pe*Lt());return}if(ue.deltaX!==0)W(ue.deltaX/pe*Lt());if(ue.deltaY!==0)Z(1.0015**ue.deltaY,ne)};return ae.addEventListener("wheel",P,{passive:!1}),()=>ae.removeEventListener("wheel",P)},[Z,W]);let ge=Wt.useCallback((ae,P)=>{let ue=C.current;if(!ue)return null;let se=ue.getBoundingClientRect(),ne=ae-se.left,pe=P-se.top,Lt=z.current;for(let Ye=Lt.length-1;Ye>=0;Ye--){let V=Lt[Ye];if(ne>=V.x&&ne<=V.x+V.w&&pe>=V.y&&pe<=V.y+V.h)return V}return null},[]),Ne=(ae)=>{ae.currentTarget.setPointerCapture(ae.pointerId),F.current={pointerId:ae.pointerId,lastX:ae.clientX,moved:!1},ae.currentTarget.focus()},Ce=(ae)=>{let P=ae.currentTarget.getBoundingClientRect();K.current=ae.clientX-P.left;let ue=F.current;if(ue&&ue.pointerId===ae.pointerId){let ne=ae.clientX-ue.lastX;if(Math.abs(ne)>0){if(Math.abs(ne)>2)ue.moved=!0;ue.lastX=ae.clientX;let pe=N.current.u1-N.current.u0;W(-ne/(R||1)*pe)}_(null);return}let se=ge(ae.clientX,ae.clientY);_(se?{hit:se,clientX:ae.clientX,clientY:ae.clientY}:null)},Be=(ae)=>{let P=F.current;if(F.current=null,P?.moved)return;let ue=ge(ae.clientX,ae.clientY);if(ue?.kind==="span")v(ue.span.id);else v(null)},te=(ae)=>{let P=ge(ae.clientX,ae.clientY);if(P?.kind==="span")X(P.span)},ve=Wt.useCallback((ae)=>{if(!f)return;for(let P of oe.lanes){let ue=P.spans.findIndex((pe)=>pe.id===f);if(ue===-1)continue;let se=P.spans[ue+ae];if(!se)return;v(se.id);let ne=i.toU(se.start);if(ne<u.u0||ne>u.u1){let pe=u.u1-u.u0;c(B(ne-pe/2,ne+pe/2))}return}},[f,oe,v,i,u,c,B]),ke=(ae)=>{let P=u.u1-u.u0;switch(ae.key){case"w":case"W":Z(0.7692307692307692,K.current);break;case"s":case"S":Z(1.3,K.current);break;case"a":case"A":W(-P*0.2);break;case"d":case"D":W(P*0.2);break;case"0":c({u0:i.domain[0],u1:i.domain[1]});break;case"f":case"F":{if(!f)break;let ue=r.flatMap((se)=>se.spans).find((se)=>se.id===f);if(ue)X(ue);break}case"Escape":v(null);break;case",":ve(-1);break;case".":ve(1);break;default:return}ae.preventDefault()};Wt.useEffect(()=>{C.current?.focus({preventScroll:!0})},[]),Wt.useEffect(()=>{let ae=C.current;if(!ae)return;let P=requestAnimationFrame(()=>{rD(ae,oe,i,u,h,{width:R,selection:f,hoverId:D?.hit.kind==="span"?D.hit.span.id:null,search:p,hits:z})});return()=>cancelAnimationFrame(P)},[oe,i,u,h,R,f,D,p]);let je=D?sD(D,k):null;return Rt.jsxDEV("div",{ref:x,className:"traces-timeline",children:[Rt.jsxDEV("div",{style:{width:Kw,flexShrink:0,position:"relative",height:oe.totalHeight},children:oe.blocks.map((ae)=>Rt.jsxDEV("div",{children:[Rt.jsxDEV("div",{style:{position:"absolute",top:ae.headerY,left:4+ae.depth*14,right:8,height:Nb,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[ae.hasChildren?Rt.jsxDEV("button",{type:"button",onClick:()=>S(ae.track.id),"aria-label":b.has(ae.track.id)?`Expand ${ae.track.label}`:`Collapse ${ae.track.label}`,className:"traces-chevron",children:b.has(ae.track.id)?Rt.jsxDEV(vl,{size:12},void 0,!1,void 0,this):Rt.jsxDEV($s,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):Rt.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),Rt.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:ae.track.label},void 0,!1,void 0,this),ae.track.model&&Rt.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:ae.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.lanes.map((P)=>Rt.jsxDEV("div",{className:"traces-gutter-lane",style:{top:P.y,left:20+ae.depth*14,lineHeight:`${So}px`},children:P.label},`${P.track.id}:${P.kind}`,!1,void 0,this))]},ae.track.id,!0,void 0,this))},void 0,!1,void 0,this),Rt.jsxDEV("canvas",{ref:C,className:"traces-canvas",width:Math.floor(R*devicePixelRatio),height:Math.floor(oe.totalHeight*devicePixelRatio),style:{width:R,height:oe.totalHeight},tabIndex:0,role:"application","aria-label":"Trace timeline. W and S zoom, A and D pan, 0 fits all, F focuses the selection.",onPointerDown:Ne,onPointerMove:Ce,onPointerUp:Be,onPointerLeave:()=>{K.current=null,_(null)},onDoubleClick:te,onKeyDown:ke},void 0,!1,void 0,this),je&&eT.createPortal(je,document.body)]},void 0,!0,void 0,this)}function Gc(r,i,u,c,f){if(r.beginPath(),c>=Jw*2+1)r.roundRect(i,u,c,f,Jw);else r.rect(i,u,c,f)}function rD(r,i,u,c,f,v){let p=r.getContext("2d");if(!p)return;let{width:b,selection:S,hoverId:k,search:h,hits:x}=v,C=i.totalHeight,R=devicePixelRatio;p.setTransform(R,0,0,R,0,0),p.clearRect(0,0,b,C);let{u0:L,u1:D}=c,_=Math.max(D-L,0.000000001),z=(N)=>(N-L)/_*b,F=h.trim().toLowerCase(),K=[];for(let N of i.blocks){let oe=N.track.spans.filter((B)=>B.kind==="turn");for(let B=0;B<oe.length;B++){let ee=z(u.toU(oe[B].start)),Z=B+1<oe.length?z(u.toU(oe[B+1].start)):b;if(Z<0||ee>b)continue;if(B%2===1)p.fillStyle=f.turnBand,p.fillRect(Math.max(0,ee),N.y0,Math.min(b,Z)-Math.max(0,ee),N.y1-N.y0);if(ee>=0&&ee<=b)p.strokeStyle=f.grid,p.beginPath(),p.moveTo(Math.round(ee)+0.5,N.y0),p.lineTo(Math.round(ee)+0.5,N.y1),p.stroke()}}for(let N of u.gaps){let oe=z(N.uMid);if(oe<-24||oe>b+24)continue;p.save(),p.strokeStyle=f.grid,p.setLineDash([2,4]),p.beginPath(),p.moveTo(oe,Qn),p.lineTo(oe,C),p.stroke(),p.restore(),p.fillStyle=f.tick,p.font=`9px ${f.fontMono}`,p.textAlign="center",p.fillText(`⋯ ${St(N.t1-N.t0)}`,oe,Qn-4),p.textAlign="left"}p.font=`9px ${f.fontMono}`;for(let N of Zw(u,L,D,b)){let oe=Math.round(z(N.u))+0.5;if(p.strokeStyle=f.grid,p.beginPath(),N.major)p.moveTo(oe,4),p.lineTo(oe,C);else p.moveTo(oe,Qn-8),p.lineTo(oe,Qn);if(p.stroke(),p.fillStyle=f.tick,N.major)p.fillText(N.label,oe+4,11);else p.globalAlpha=0.75,p.fillText(N.label,oe+3,Qn-10),p.globalAlpha=1}p.strokeStyle=f.grid,p.beginPath(),p.moveTo(0,Qn+0.5),p.lineTo(b,Qn+0.5),p.stroke();for(let N of i.lanes){let oe=N.kind==="turn";for(let B of N.spans){let ee=u.toU(B.start);if(ee>D)break;let Z=u.toU(B.end);if(Z<L)continue;let W=z(ee),X=Math.max(tD,z(Z)-W),ge=N.y,Ne=F===""||`${B.label} ${B.detail??""}`.toLowerCase().includes(F),Ce=f.category[B.kind];if(p.globalAlpha=Ne?1:0.3,oe)p.fillStyle=Ce,p.globalAlpha=(Ne?1:0.3)*0.23,Gc(p,W,ge,X,So),p.fill(),p.globalAlpha=Ne?1:0.3,p.fillStyle=Ce,p.fillRect(W,ge,2,So);else p.fillStyle=Ce,Gc(p,W,ge,X,So),p.fill();if(B.isError)p.fillStyle=f.errorSoft,Gc(p,W,ge,X,So),p.fill(),p.fillStyle=f.error,p.fillRect(W,ge,2,So);if(B.kind==="model"&&typeof B.ttft==="number"&&B.ttft>0&&X>20){let te=z(u.toU(B.start+B.ttft));if(te>W+1&&te<W+X-1)p.fillStyle="rgba(0,0,0,0.5)",p.fillRect(te,ge+3,1,So-6)}if(B.unterminated)p.save(),p.strokeStyle=f.tick,p.setLineDash([2,2]),p.beginPath(),p.moveTo(W+X-0.5,ge),p.lineTo(W+X-0.5,ge+So),p.stroke(),p.restore();if(k===B.id)p.fillStyle="rgba(255,255,255,0.16)",Gc(p,W,ge,X,So),p.fill();if(S===B.id)p.strokeStyle=f.selection,p.lineWidth=1.5,Gc(p,W-1,ge-1,X+2,So+2),p.stroke(),p.lineWidth=1;if(X>oD)p.save(),p.beginPath(),p.rect(W+3,ge,X-6,So),p.clip(),p.fillStyle=oe?f.tick:f.spanText,p.font=`10px ${f.fontSans}`,p.fillText(B.label,W+5,ge+So-5),p.restore();p.globalAlpha=1;let Be=Math.max(X,aD);K.push({kind:"span",x:W-(Be-X)/2,y:ge,w:Be,h:So,span:B,track:N.track})}}for(let N of i.blocks)for(let oe of N.track.markers){let B=z(u.toU(oe.time));if(B<-6||B>b+6)continue;let ee=N.headerY+Nb/2;p.fillStyle=f.marker,p.beginPath(),p.moveTo(B,ee-4),p.lineTo(B+4,ee),p.lineTo(B,ee+4),p.lineTo(B-4,ee),p.closePath(),p.fill(),K.push({kind:"marker",x:B-5,y:ee-5,w:10,h:10,marker:oe,track:N.track})}x.current=K}function sD(r,i){let u=Math.min(r.clientX+14,window.innerWidth-320),c=r.clientY+16>window.innerHeight-140?r.clientY-120:r.clientY+16,f={left:u,top:c};if(r.hit.kind==="marker"){let{marker:p}=r.hit;return Rt.jsxDEV("div",{className:"traces-tooltip",style:f,children:[Rt.jsxDEV("div",{className:"traces-tooltip-title",children:p.label},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"muted num",children:[new Date(p.time).toLocaleTimeString()," (",ki(p.time-i),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:v}=r.hit;return Rt.jsxDEV("div",{className:"traces-tooltip",style:f,children:[Rt.jsxDEV("div",{className:"traces-tooltip-title truncate",children:v.label},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"muted num",children:[St(v.end-v.start)," · ",new Date(v.start).toLocaleTimeString()," (",ki(v.start-i),")",v.unterminated?" · unterminated":""]},void 0,!0,void 0,this),v.kind==="model"&&Rt.jsxDEV("div",{className:"muted num",children:[v.tokens!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[v.tokens.toLocaleString()," tok"]},void 0,!0,void 0,this),v.cost!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[" · $",v.cost.toFixed(4)]},void 0,!0,void 0,this),v.ttft!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[" · TTFT ",St(v.ttft)]},void 0,!0,void 0,this),v.isError&&Rt.jsxDEV(Rt.Fragment,{children:" · error"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v.kind==="subagent"&&v.model&&Rt.jsxDEV("div",{className:"muted num",children:v.model},void 0,!1,void 0,this),v.detail&&Rt.jsxDEV("div",{className:"traces-tooltip-detail",children:v.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Zn=Y(ut(),1);var Fa=Y(ce(),1),wi=28,aT=20,uD=340;function iD(r){let i=[];for(let u of r){let c=u.id==="main"?0:u.id.split("/").length;for(let f of u.spans)i.push({key:f.id,time:f.start,span:f,track:u,depth:c});for(let f=0;f<u.markers.length;f++){let v=u.markers[f];i.push({key:`${u.id}:marker:${f}`,time:v.time,marker:v,track:u,depth:c})}}return i.sort((u,c)=>u.time-c.time),i}function oT({tracks:r,selection:i,onSelect:u,search:c,traceStart:f}){let v=Li(),p=Zn.useRef(null),[b,S]=Zn.useState(0),k=Zn.useMemo(()=>iD(r),[r]),h=Zn.useMemo(()=>{let L=c.trim().toLowerCase();if(!L)return k;return k.filter((D)=>(D.span?`${D.span.label} ${D.span.detail??""}`:D.marker?.label??"").toLowerCase().includes(L))},[k,c]);Zn.useEffect(()=>{if(!i)return;let L=p.current;if(!L)return;let D=h.findIndex((z)=>z.span?.id===i);if(D===-1)return;let _=D*wi;if(_<L.scrollTop||_+wi>L.scrollTop+L.clientHeight)L.scrollTop=Math.max(0,_-L.clientHeight/2)},[i,h]);let x=Math.max(0,Math.floor(b/wi)-aT),C=Math.min(h.length,Math.ceil((b+uD)/wi)+aT),R=h.slice(x,C);return Fa.jsxDEV("div",{ref:p,onScroll:(L)=>S(L.currentTarget.scrollTop),className:"traces-list",children:[Fa.jsxDEV("div",{style:{height:h.length*wi,position:"relative"},children:Fa.jsxDEV("div",{style:{position:"absolute",top:x*wi,left:0,right:0},children:R.map((L)=>{let D=L.span,_=D!==void 0&&D.id===i,z=L.span?v.category[L.span.kind]:v.marker,F=L.span?.label??L.marker?.label??"",K=L.span?.detail,N=L.span?St(L.span.end-L.span.start):"",oe=L.span?.kind??L.marker?.kind??"",B=Fa.jsxDEV(Fa.Fragment,{children:[Fa.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":z},children:oe},void 0,!1,void 0,this),L.depth>0&&Fa.jsxDEV("span",{className:"traces-row-track mono truncate",title:L.track.label,children:L.track.id},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-label truncate",children:F},void 0,!1,void 0,this),K&&Fa.jsxDEV("span",{className:"traces-row-detail truncate",children:K},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-meta num",children:[L.span?.isError&&Fa.jsxDEV("span",{className:"tone-bad",children:"error"},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:N},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:ki(L.time-f)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ee={paddingLeft:12+L.depth*12};return D?Fa.jsxDEV("button",{type:"button",onClick:()=>u(D.id),className:"traces-row","data-selected":_?"true":"false",style:ee,children:B},L.key,!1,void 0,this):Fa.jsxDEV("div",{className:"traces-row","data-static":"true",style:ee,children:B},L.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),h.length===0&&Fa.jsxDEV(mt,{title:"No matching events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ze=Y(ce(),1),dD=[{value:"time",label:"Duration",title:"Real wall-clock time"},{value:"turns",label:"Turns",title:"Equal width per user turn"},{value:"calls",label:"Calls",title:"Equal width per model/tool call boundary"}],cD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tool"},{kind:"subagent",label:"Agent"},{kind:"background",label:"Background"}];function lT({file:r,active:i,onBack:u}){let c=qt(["trace",r],()=>Pk(r),{pollMs:15000,enabled:i}),f=c.stale?null:c.data,[v,p]=Bt.useState("time"),[b,S]=Bt.useState(!0),[k,h]=Bt.useState(null),[x,C]=Bt.useState(!1),[R,L]=Bt.useState(""),[D,_]=Bt.useState(0),[z,F]=Bt.useState(new Set),[K,N]=Bt.useState(null),oe=Bt.useMemo(()=>f?.tracks??[],[f]),B=Bt.useMemo(()=>Qw(oe,v,b),[oe,v,b]),ee=Bt.useRef(B),Z=Bt.useRef(null);Bt.useEffect(()=>{if(!f)return;if(Z.current===f.file)return;Z.current=f.file,h(null),L(""),N(null);let se=new Set;for(let ne of f.tracks)if((ne.id==="main"?0:ne.id.split("/").length)>=1)se.add(ne.id);F(se)},[f]),Bt.useEffect(()=>{let se=ee.current;ee.current=B,N((ne)=>{if(!ne)return ne;let pe=se.toT(ne.u0),Lt=se.toT(ne.u1),Ye=B.toU(pe),V=B.toU(Lt);return V-Ye>0?{u0:Ye,u1:V}:null})},[B]);let W=K??{u0:B.domain[0],u1:B.domain[1]},X=Bt.useMemo(()=>{let se=[];for(let ne of oe)for(let pe of ne.spans)se.push({span:pe,track:ne});return se.sort((ne,pe)=>ne.span.start-pe.span.start),se},[oe]),ge=Bt.useMemo(()=>{let se=R.trim().toLowerCase();if(!se)return[];return X.filter(({span:ne})=>`${ne.label} ${ne.detail??""}`.toLowerCase().includes(se))},[X,R]),Ne=Bt.useCallback((se)=>{let ne=B.toU(se.start),pe=B.toU(se.end);N((Lt)=>{let Ye=Lt??{u0:B.domain[0],u1:B.domain[1]};if(ne>=Ye.u0&&pe<=Ye.u1)return Lt;let V=Ye.u1-Ye.u0,Pe=(ne+pe)/2,[Mt,pa]=B.domain,re=Pe-V/2;if(re<Mt)re=Mt;if(re+V>pa)re=Math.max(Mt,pa-V);return{u0:re,u1:re+V}})},[B]),Ce=Bt.useCallback((se)=>{h(se);let ne=X.find(({span:pe})=>pe.id===se);if(ne)Ne(ne.span)},[X,Ne]),Be=Bt.useCallback((se)=>{h(se),C(se!==null)},[]),te=Bt.useCallback((se)=>{if(ge.length===0)return;let ne=((D+se)%ge.length+ge.length)%ge.length;_(ne),Ce(ge[ne].span.id)},[ge,D,Ce]),ve=Bt.useCallback((se)=>{F((ne)=>{let pe=new Set(ne);if(pe.has(se))pe.delete(se);else pe.add(se);return pe})},[]),ke=Bt.useMemo(()=>{if(!k)return null;return X.find(({span:se})=>se.id===k)??null},[k,X]),je=Bt.useCallback((se)=>{let ne=oe.find((Lt)=>Lt.id===se),pe=ne?.spans[0];if(F((Lt)=>{let Ye=new Set(Lt),V=ne;while(V?.parentId)Ye.delete(V.parentId),V=oe.find((Pe)=>Pe.id===V?.parentId);return Ye}),pe)Ce(pe.id)},[oe,Ce]),ae=Bt.useCallback((se)=>{if(!se){F(new Set);return}let ne=new Set;for(let pe of oe)if(pe.id!=="main")ne.add(pe.id);F(ne)},[oe]),P=f?.startedAt??0,ue={...c,data:f};return Ze.jsxDEV("div",{className:"stack traces-view",children:[Ze.jsxDEV("div",{children:Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:u,children:[Ze.jsxDEV(cc,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(ta,{title:Ze.jsxDEV("span",{className:"traces-title truncate",children:f?.title??r.split("/").pop()},void 0,!1,void 0,this),description:f?.cwd?Ze.jsxDEV("span",{className:"mono",children:f.cwd},void 0,!1,void 0,this):void 0,actions:Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:c.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:Ze.jsxDEV($r,{size:14,className:c.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(_e,{query:ue,skeleton:Ze.jsxDEV(Tt,{height:420},void 0,!1,void 0,this),children:(se)=>Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV(jw,{summary:se.summary},void 0,!1,void 0,this),Ze.jsxDEV(Ve,{index:1,title:"Timeline",description:"W/S zoom · A/D pan · drag pan · wheel zoom · 0 fit · F focus selection · dbl-click focus · Esc deselect",actions:Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ae(!1),children:"Expand all"},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ae(!0),children:"Collapse all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:Ze.jsxDEV("div",{className:"stack",children:[Ze.jsxDEV("div",{className:"traces-toolbar",children:[Ze.jsxDEV(za,{options:dD,value:v,onChange:p,size:"sm","aria-label":"Axis mode"},void 0,!1,void 0,this),v==="time"&&Ze.jsxDEV("label",{className:"traces-check",children:[Ze.jsxDEV("input",{type:"checkbox",checked:b,onChange:(ne)=>S(ne.target.checked)},void 0,!1,void 0,this),"Compress idle"]},void 0,!0,void 0,this),Ze.jsxDEV("div",{className:"traces-search",children:[Ze.jsxDEV(un,{value:R,onChange:(ne)=>{L(ne),_(0)},placeholder:"Search spans…",width:200},void 0,!1,void 0,this),R.trim()&&Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV("span",{className:"num muted traces-match-count",children:ge.length===0?"0":`${D%Math.max(ge.length,1)+1}/${ge.length}`},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>te(-1),"aria-label":"Previous match",disabled:ge.length===0,children:Ze.jsxDEV(hc,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>te(1),"aria-label":"Next match",disabled:ge.length===0,children:Ze.jsxDEV(vl,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV("div",{className:"traces-legend",children:cD.map((ne)=>Ze.jsxDEV("span",{className:"traces-legend-item",children:[Ze.jsxDEV("span",{className:"swatch",style:{background:`var(${lu[ne.kind]})`}},void 0,!1,void 0,this),ne.label]},ne.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV(Vw,{tracks:oe,scale:B,viewport:W,onViewportChange:N},void 0,!1,void 0,this),Ze.jsxDEV(tT,{tracks:oe,scale:B,viewport:W,onViewportChange:N,selection:k,onSelect:Be,search:R,collapsed:z,onToggleCollapse:ve,traceStart:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(Ve,{index:2,title:"Transcript",description:"Every span and marker in order; click to inspect",flush:!0,children:Ze.jsxDEV(oT,{tracks:oe,selection:k,onSelect:(ne)=>{Ce(ne),C(!0)},search:R,traceStart:P},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(Fw,{toolStats:se.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(Xw,{span:x?ke?.span??null:null,track:ke?.track??null,onClose:()=>C(!1),onOpenChildTrack:je},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var jt=Y(ce(),1),nT=200;function fD({models:r}){if(r.length===0)return jt.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return jt.jsxDEV("span",{className:"traces-models",title:r.join(`
236
+ `),children:[jt.jsxDEV("span",{className:"mono truncate",children:r[0]},void 0,!1,void 0,this),r.length>1&&jt.jsxDEV("span",{className:"badge",children:["+",r.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function rT({active:r,session:i,onOpenSession:u}){let[c,f]=Ti.useState(""),v=qt(["sessions",nT],()=>Uk(nT),{pollMs:30000,enabled:r&&i===null}),p=Ti.useMemo(()=>{let h=v.data??[],x=c.trim().toLowerCase();if(!x)return h;return h.filter((C)=>(C.title??"").toLowerCase().includes(x)||C.folder.toLowerCase().includes(x)||C.models.some((R)=>R.toLowerCase().includes(x)))},[v.data,c]),b=Ti.useMemo(()=>Math.max(0,...p.map((h)=>h.costTotal)),[p]),S=Ti.useMemo(()=>[{key:"title",header:"Session",width:"32%",render:(h)=>jt.jsxDEV(_a,{primary:h.title??h.file.split("/").pop(),secondary:jt.jsxDEV("span",{className:"mono",children:h.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},void 0,!1,void 0,this),sort:(h)=>(h.title??h.file).toLowerCase()},{key:"models",header:"Models",render:(h)=>jt.jsxDEV(fD,{models:h.models},void 0,!1,void 0,this)},{key:"started",header:"Started",align:"right",render:(h)=>jt.jsxDEV("span",{className:"muted",title:new Date(h.startedAt).toLocaleString(),children:ia(h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.startedAt},{key:"duration",header:"Duration",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:Ws(h.endedAt-h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.endedAt-h.startedAt},{key:"requests",header:"Requests",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:q(h.requests)},void 0,!1,void 0,this),sort:(h)=>h.requests},{key:"toolCalls",header:"Tools",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:q(h.toolCalls)},void 0,!1,void 0,this),sort:(h)=>h.toolCalls},{key:"subagents",header:"Agents",align:"right",render:(h)=>h.subagents>0?jt.jsxDEV("span",{className:"num",children:q(h.subagents)},void 0,!1,void 0,this):jt.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(h)=>h.subagents},{key:"tokens",header:"Tokens",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:Me(h.totalTokens)},void 0,!1,void 0,this),sort:(h)=>h.totalTokens},{key:"cost",header:"Cost",align:"right",width:150,render:(h)=>jt.jsxDEV(sa,{value:h.costTotal,max:b,display:Ot(h.costTotal,h.unpricedRequests)},void 0,!1,void 0,this),sort:(h)=>h.costTotal}],[b]);if(i!==null)return jt.jsxDEV(lT,{file:i,active:r,onBack:()=>u(null)},void 0,!1,void 0,this);let k=v.data?.length??0;return jt.jsxDEV("div",{className:"stack traces-page",children:[jt.jsxDEV(ta,{title:"Traces",description:"Recent sessions with subagent activity folded in. Open one to inspect its timeline."},void 0,!1,void 0,this),jt.jsxDEV(Ve,{title:"Sessions",description:v.data?c.trim()?`${q(p.length)} of ${q(k)} most recent`:`${q(k)} most recent`:void 0,actions:jt.jsxDEV(un,{value:c,onChange:f,placeholder:"Filter by title, project, model…",width:260},void 0,!1,void 0,this),flush:!0,index:0,stale:v.stale,children:jt.jsxDEV(_e,{query:v,skeleton:jt.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),isEmpty:(h)=>h.length===0,empty:jt.jsxDEV(mt,{title:"No sessions found",hint:"Run a sync to index recent activity."},void 0,!1,void 0,this),children:()=>jt.jsxDEV(zt,{columns:S,rows:p,rowKey:(h)=>h.file,onRowClick:(h)=>u(h.file),initialSort:{key:"started",dir:"desc"},limit:50,empty:jt.jsxDEV(mt,{title:"No matching sessions",hint:"Try a different filter."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ta=Y(ce(),1);function Ub(){return Ta.jsxDEV(Fk,{children:Ta.jsxDEV(pD,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function pD(){let{section:r,setSection:i,range:u,setRange:c,session:f,setSession:v}=lw(),[p,b]=Ii.useState(null),S=Ii.useCallback(()=>b(null),[]),k=Ii.useRef(new Set);k.current.add(r);let h=(x)=>{let C=x===r;switch(x){case"overview":return Ta.jsxDEV(Dw,{active:C,range:u,onRequestClick:b},void 0,!1,void 0,this);case"requests":return Ta.jsxDEV(zw,{active:C,range:u,onRequestClick:b},void 0,!1,void 0,this);case"errors":return Ta.jsxDEV(xw,{active:C,range:u,onRequestClick:b},void 0,!1,void 0,this);case"traces":return Ta.jsxDEV(rT,{active:C,session:f,onOpenSession:v},void 0,!1,void 0,this);case"models":return Ta.jsxDEV(Iw,{active:C,range:u},void 0,!1,void 0,this);case"providers":return Ta.jsxDEV(Uw,{active:C,range:u},void 0,!1,void 0,this);case"costs":return Ta.jsxDEV(vw,{active:C,range:u},void 0,!1,void 0,this);case"tools":return Ta.jsxDEV(Hw,{active:C,range:u},void 0,!1,void 0,this);case"frustration":return Ta.jsxDEV(Cw,{active:C,range:u},void 0,!1,void 0,this);case"projects":return Ta.jsxDEV(Ow,{active:C,range:u},void 0,!1,void 0,this);case"gain":return Ta.jsxDEV(ww,{active:C,range:u},void 0,!1,void 0,this)}};return Ta.jsxDEV(Ta.Fragment,{children:[Ta.jsxDEV(ow,{section:r,onSectionChange:i,range:u,onRangeChange:c,children:[...k.current].map((x)=>Ta.jsxDEV("div",{hidden:x!==r,children:h(x)},x,!1,void 0,this))},void 0,!1,void 0,this),Ta.jsxDEV(Pw,{id:p,onClose:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var iT=Y(ce(),1),uT=document.getElementById("root");if(!uT)throw Error("missing #root");sT.createRoot(uT).render(iT.jsxDEV(Ub,{},void 0,!1,void 0,this));