@dudousxd/nestjs-agent-dashboard 0.14.1 → 0.15.1

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.
@@ -1,4 +1,4 @@
1
- var Ch=Object.defineProperty;var _h=(e,t,l)=>t in e?Ch(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;var Ci=(e,t,l)=>_h(e,typeof t!="symbol"?t+"":t,l);import{r as ne,j as c,a as Rh,u as Bh,T as Hh,h as qh,i as Gh,k as Yh,l as Xh,m as Qh,D as Lh,n as Vh,o as Zh,p as wh,q as kh,s as Kh,t as Jh,S as $h,v as Wh,x as Fh,y as Ih,z as Ph,A as eg,B as tg,C as lg,E as ag,F as ng,G as ug,H as ig,I as cg}from"./base-ui-CKhU3I2F.js";import{c as ar,P as sg,a as og,C as fg,T as ms,R as nr,b as rg,d as ur,X as ir,Y as cr,A as sr,L as dg,e as mg}from"./recharts-CPMXF7sD.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const u of n)if(u.type==="childList")for(const i of u.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function l(n){const u={};return n.integrity&&(u.integrity=n.integrity),n.referrerPolicy&&(u.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?u.credentials="include":n.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(n){if(n.ep)return;n.ep=!0;const u=l(n);fetch(n.href,u)}})();function or(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var fr=ne.createContext(or()),Ov=()=>ne.useContext(fr),hg=({children:e})=>{const[t]=ne.useState(()=>or());return c.jsx(fr.Provider,{value:t,children:typeof e=="function"?e(t):e})},rr={exports:{}},hi={},dr={exports:{}},mr={};/**
1
+ var Ch=Object.defineProperty;var _h=(e,t,l)=>t in e?Ch(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;var Ci=(e,t,l)=>_h(e,typeof t!="symbol"?t+"":t,l);import{r as ne,j as c,a as Rh,u as Bh,T as Hh,h as qh,i as Gh,k as Yh,l as Xh,m as Qh,D as Lh,n as Vh,o as Zh,p as wh,q as kh,s as Kh,t as Jh,S as $h,v as Wh,x as Fh,y as Ih,z as Ph,A as eg,B as tg,C as lg,E as ag,F as ng,G as ug,H as ig,I as cg}from"./base-ui-Bj5tb_Ph.js";import{c as ar,P as sg,a as og,C as fg,T as ms,R as nr,b as rg,d as ur,X as ir,Y as cr,A as sr,L as dg,e as mg}from"./recharts-DPC0gOrj.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const u of n)if(u.type==="childList")for(const i of u.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function l(n){const u={};return n.integrity&&(u.integrity=n.integrity),n.referrerPolicy&&(u.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?u.credentials="include":n.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(n){if(n.ep)return;n.ep=!0;const u=l(n);fetch(n.href,u)}})();function or(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var fr=ne.createContext(or()),Uv=()=>ne.useContext(fr),hg=({children:e})=>{const[t]=ne.useState(()=>or());return c.jsx(fr.Provider,{value:t,children:typeof e=="function"?e(t):e})},rr={exports:{}},hi={},dr={exports:{}},mr={};/**
2
2
  * @license React
3
3
  * scheduler.production.js
4
4
  *
@@ -22,4 +22,4 @@ var Ch=Object.defineProperty;var _h=(e,t,l)=>t in e?Ch(e,t,{enumerable:!0,config
22
22
  `+o[a].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),g}while(1<=a&&0<=n);break}}}finally{Ri=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?zl(l):""}function jg(e,t){switch(e.tag){case 26:case 27:case 5:return zl(e.type);case 16:return zl("Lazy");case 13:return e.child!==t&&t!==null?zl("Suspense Fallback"):zl("Suspense");case 19:return zl("SuspenseList");case 0:case 15:return Bi(e.type,!1);case 11:return Bi(e.type.render,!1);case 1:return Bi(e.type,!0);case 31:return zl("Activity");default:return""}}function jo(e){try{var t="",l=null;do t+=jg(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
23
23
  Error generating stack: `+a.message+`
24
24
  `+a.stack}}var Nc=Object.prototype.hasOwnProperty,xs=ve.unstable_scheduleCallback,Hi=ve.unstable_cancelCallback,Sg=ve.unstable_shouldYield,Ng=ve.unstable_requestPaint,ke=ve.unstable_now,zg=ve.unstable_getCurrentPriorityLevel,jr=ve.unstable_ImmediatePriority,Sr=ve.unstable_UserBlockingPriority,Bu=ve.unstable_NormalPriority,Tg=ve.unstable_LowPriority,Nr=ve.unstable_IdlePriority,Ag=ve.log,Mg=ve.unstable_setDisableYieldValue,Cn=null,Ke=null;function It(e){if(typeof Ag=="function"&&Mg(e),Ke&&typeof Ke.setStrictMode=="function")try{Ke.setStrictMode(Cn,e)}catch{}}var Je=Math.clz32?Math.clz32:Og,Eg=Math.log,Dg=Math.LN2;function Og(e){return e>>>=0,e===0?32:31-(Eg(e)/Dg|0)|0}var Pn=256,eu=262144,tu=4194304;function Tl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function gi(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=a&134217727;return s!==0?(a=s&~u,a!==0?n=Tl(a):(i&=s,i!==0?n=Tl(i):l||(l=s&~e,l!==0&&(n=Tl(l))))):(s=a&~u,s!==0?n=Tl(s):i!==0?n=Tl(i):l||(l=a&~e,l!==0&&(n=Tl(l)))),n===0?0:t!==0&&t!==n&&!(t&u)&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function _n(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ug(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zr(){var e=tu;return tu<<=1,!(tu&62914560)&&(tu=4194304),e}function qi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Rn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Cg(e,t,l,a,n,u){var i=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var s=e.entanglements,o=e.expirationTimes,f=e.hiddenUpdates;for(l=i&~l;0<l;){var g=31-Je(l),h=1<<g;s[g]=0,o[g]=-1;var d=f[g];if(d!==null)for(f[g]=null,g=0;g<d.length;g++){var b=d[g];b!==null&&(b.lane&=-536870913)}l&=~h}a!==0&&Tr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(i&~t))}function Tr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Je(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Ar(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Je(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Mr(e,t){var l=t&-t;return l=l&42?1:bs(l),l&(e.suspendedLanes|t)?0:l}function bs(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 vs(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Er(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Fm(e.type))}function So(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var bl=Math.random().toString(36).slice(2),Te="__reactFiber$"+bl,Ye="__reactProps$"+bl,Ca="__reactContainer$"+bl,zc="__reactEvents$"+bl,_g="__reactListeners$"+bl,Rg="__reactHandles$"+bl,No="__reactResources$"+bl,Bn="__reactMarker$"+bl;function ys(e){delete e[Te],delete e[Ye],delete e[zc],delete e[_g],delete e[Rg]}function ta(e){var t=e[Te];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ca]||l[Te]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Uf(e);e!==null;){if(l=e[Te])return l;e=Uf(e)}return t}e=l,l=e.parentNode}return null}function _a(e){if(e=e[Te]||e[Ca]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ia(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(p(33))}function ra(e){var t=e[No];return t||(t=e[No]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function je(e){e[Bn]=!0}var Dr=new Set,Or={};function Xl(e,t){ja(e,t),ja(e+"Capture",t)}function ja(e,t){for(Or[e]=t,e=0;e<t.length;e++)Dr.add(t[e])}var Bg=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]*$"),zo={},To={};function Hg(e){return Nc.call(To,e)?!0:Nc.call(zo,e)?!1:Bg.test(e)?To[e]=!0:(zo[e]=!0,!1)}function xu(e,t,l){if(Hg(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function lu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function zt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Pe(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ur(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qg(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tc(e){if(!e._valueTracker){var t=Ur(e)?"checked":"value";e._valueTracker=qg(e,t,""+e[t])}}function Cr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Ur(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Hu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Gg=/[\n"\\]/g;function lt(e){return e.replace(Gg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ac(e,t,l,a,n,u,i,s){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Pe(t)):e.value!==""+Pe(t)&&(e.value=""+Pe(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?Mc(e,i,Pe(t)):l!=null?Mc(e,i,Pe(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Pe(s):e.removeAttribute("name")}function _r(e,t,l,a,n,u,i,s){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Tc(e);return}l=l!=null?""+Pe(l):"",t=t!=null?""+Pe(t):l,s||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),Tc(e)}function Mc(e,t,l){t==="number"&&Hu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function da(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Pe(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Rr(e,t,l){if(t!=null&&(t=""+Pe(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Pe(l):""}function Br(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(p(92));if(Fa(a)){if(1<a.length)throw Error(p(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Pe(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Tc(e)}function Sa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Yg=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ao(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Yg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Hr(e,t,l){if(t!=null&&typeof t!="object")throw Error(p(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Ao(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Ao(e,u,t[u])}function ps(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xg=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"]]),Qg=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function bu(e){return Qg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _t(){}var Ec=null;function js(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var la=null,ma=null;function Mo(e){var t=_a(e);if(t&&(e=t.stateNode)){var l=e[Ye]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ac(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+lt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Ye]||null;if(!n)throw Error(p(90));Ac(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Cr(a)}break e;case"textarea":Rr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&da(e,!!l.multiple,t,!1)}}}var Gi=!1;function qr(e,t,l){if(Gi)return e(t,l);Gi=!0;try{var a=e(t);return a}finally{if(Gi=!1,(la!==null||ma!==null)&&(Mi(),la&&(t=la,e=ma,ma=la=null,Mo(t),e)))for(t=0;t<e.length;t++)Mo(e[t])}}function xn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Ye]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(p(231,t,typeof l));return l}var Gt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dc=!1;if(Gt)try{var La={};Object.defineProperty(La,"passive",{get:function(){Dc=!0}}),window.addEventListener("test",La,La),window.removeEventListener("test",La,La)}catch{Dc=!1}var Pt=null,Ss=null,vu=null;function Gr(){if(vu)return vu;var e,t=Ss,l=t.length,a,n="value"in Pt?Pt.value:Pt.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var i=l-e;for(a=1;a<=i&&t[l-a]===n[u-a];a++);return vu=n.slice(e,1<a?1-a:void 0)}function yu(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 au(){return!0}function Eo(){return!1}function Xe(e){function t(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(l=e[s],this[s]=l?l(u):u[s]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?au:Eo,this.isPropagationStopped=Eo,this}return le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=au)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=au)},persist:function(){},isPersistent:au}),t}var Ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xi=Xe(Ql),Hn=le({},Ql,{view:0,detail:0}),Lg=Xe(Hn),Yi,Xi,Va,bi=le({},Hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ns,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Va&&(Va&&e.type==="mousemove"?(Yi=e.screenX-Va.screenX,Xi=e.screenY-Va.screenY):Xi=Yi=0,Va=e),Yi)},movementY:function(e){return"movementY"in e?e.movementY:Xi}}),Do=Xe(bi),Vg=le({},bi,{dataTransfer:0}),Zg=Xe(Vg),wg=le({},Hn,{relatedTarget:0}),Qi=Xe(wg),kg=le({},Ql,{animationName:0,elapsedTime:0,pseudoElement:0}),Kg=Xe(kg),Jg=le({},Ql,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$g=Xe(Jg),Wg=le({},Ql,{data:0}),Oo=Xe(Wg),Fg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ig={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"},Pg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function e0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pg[e])?!!t[e]:!1}function Ns(){return e0}var t0=le({},Hn,{key:function(e){if(e.key){var t=Fg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ig[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ns,charCode:function(e){return e.type==="keypress"?yu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),l0=Xe(t0),a0=le({},bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uo=Xe(a0),n0=le({},Hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ns}),u0=Xe(n0),i0=le({},Ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),c0=Xe(i0),s0=le({},bi,{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}),o0=Xe(s0),f0=le({},Ql,{newState:0,oldState:0}),r0=Xe(f0),d0=[9,13,27,32],zs=Gt&&"CompositionEvent"in window,tn=null;Gt&&"documentMode"in document&&(tn=document.documentMode);var m0=Gt&&"TextEvent"in window&&!tn,Yr=Gt&&(!zs||tn&&8<tn&&11>=tn),Co=" ",_o=!1;function Xr(e,t){switch(e){case"keyup":return d0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function h0(e,t){switch(e){case"compositionend":return Qr(t);case"keypress":return t.which!==32?null:(_o=!0,Co);case"textInput":return e=t.data,e===Co&&_o?null:e;default:return null}}function g0(e,t){if(aa)return e==="compositionend"||!zs&&Xr(e,t)?(e=Gr(),vu=Ss=Pt=null,aa=!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 Yr&&t.locale!=="ko"?null:t.data;default:return null}}var x0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ro(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!x0[e.type]:t==="textarea"}function Lr(e,t,l,a){la?ma?ma.push(a):ma=[a]:la=a,t=ei(t,"onChange"),0<t.length&&(l=new xi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var ln=null,bn=null;function b0(e){qm(e,0)}function vi(e){var t=Ia(e);if(Cr(t))return e}function Bo(e,t){if(e==="change")return t}var Vr=!1;if(Gt){var Li;if(Gt){var Vi="oninput"in document;if(!Vi){var Ho=document.createElement("div");Ho.setAttribute("oninput","return;"),Vi=typeof Ho.oninput=="function"}Li=Vi}else Li=!1;Vr=Li&&(!document.documentMode||9<document.documentMode)}function qo(){ln&&(ln.detachEvent("onpropertychange",Zr),bn=ln=null)}function Zr(e){if(e.propertyName==="value"&&vi(bn)){var t=[];Lr(t,bn,e,js(e)),qr(b0,t)}}function v0(e,t,l){e==="focusin"?(qo(),ln=t,bn=l,ln.attachEvent("onpropertychange",Zr)):e==="focusout"&&qo()}function y0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vi(bn)}function p0(e,t){if(e==="click")return vi(t)}function j0(e,t){if(e==="input"||e==="change")return vi(t)}function S0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var We=typeof Object.is=="function"?Object.is:S0;function vn(e,t){if(We(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Nc.call(t,n)||!We(e[n],t[n]))return!1}return!0}function Go(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yo(e,t){var l=Go(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Go(l)}}function wr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Hu(e.document)}return t}function Ts(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var N0=Gt&&"documentMode"in document&&11>=document.documentMode,na=null,Oc=null,an=null,Uc=!1;function Xo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Uc||na==null||na!==Hu(a)||(a=na,"selectionStart"in a&&Ts(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),an&&vn(an,a)||(an=a,a=ei(Oc,"onSelect"),0<a.length&&(t=new xi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=na)))}function Sl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ua={animationend:Sl("Animation","AnimationEnd"),animationiteration:Sl("Animation","AnimationIteration"),animationstart:Sl("Animation","AnimationStart"),transitionrun:Sl("Transition","TransitionRun"),transitionstart:Sl("Transition","TransitionStart"),transitioncancel:Sl("Transition","TransitionCancel"),transitionend:Sl("Transition","TransitionEnd")},Zi={},Kr={};Gt&&(Kr=document.createElement("div").style,"AnimationEvent"in window||(delete ua.animationend.animation,delete ua.animationiteration.animation,delete ua.animationstart.animation),"TransitionEvent"in window||delete ua.transitionend.transition);function Ll(e){if(Zi[e])return Zi[e];if(!ua[e])return e;var t=ua[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Kr)return Zi[e]=t[l];return e}var Jr=Ll("animationend"),$r=Ll("animationiteration"),Wr=Ll("animationstart"),z0=Ll("transitionrun"),T0=Ll("transitionstart"),A0=Ll("transitioncancel"),Fr=Ll("transitionend"),Ir=new Map,Cc="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(" ");Cc.push("scrollEnd");function mt(e,t){Ir.set(e,t),Xl(t,[e])}var qu=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)},Ie=[],ia=0,As=0;function yi(){for(var e=ia,t=As=ia=0;t<e;){var l=Ie[t];Ie[t++]=null;var a=Ie[t];Ie[t++]=null;var n=Ie[t];Ie[t++]=null;var u=Ie[t];if(Ie[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&Pr(l,n,u)}}function pi(e,t,l,a){Ie[ia++]=e,Ie[ia++]=t,Ie[ia++]=l,Ie[ia++]=a,As|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ms(e,t,l,a){return pi(e,t,l,a),Gu(e)}function Vl(e,t){return pi(e,null,null,t),Gu(e)}function Pr(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-Je(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function Gu(e){if(50<mn)throw mn=0,Pc=null,Error(p(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ca={};function M0(e,t,l,a){this.tag=e,this.key=l,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ze(e,t,l,a){return new M0(e,t,l,a)}function Es(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bt(e,t){var l=e.alternate;return l===null?(l=Ze(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function ed(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pu(e,t,l,a,n,u){var i=0;if(a=e,typeof e=="function")Es(e)&&(i=1);else if(typeof e=="string")i=Cx(e,l,pt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case yc:return e=Ze(31,l,t,n),e.elementType=yc,e.lanes=u,e;case Pl:return Dl(l.children,n,u,t);case yr:i=8,n|=24;break;case xc:return e=Ze(12,l,t,n|2),e.elementType=xc,e.lanes=u,e;case bc:return e=Ze(13,l,t,n),e.elementType=bc,e.lanes=u,e;case vc:return e=Ze(19,l,t,n),e.elementType=vc,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ct:i=10;break e;case pr:i=9;break e;case hs:i=11;break e;case gs:i=14;break e;case kt:i=16,a=null;break e}i=29,l=Error(p(130,e===null?"null":typeof e,"")),a=null}return t=Ze(i,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Dl(e,t,l,a){return e=Ze(7,e,a,t),e.lanes=l,e}function wi(e,t,l){return e=Ze(6,e,null,t),e.lanes=l,e}function td(e){var t=Ze(18,null,null,0);return t.stateNode=e,t}function ki(e,t,l){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qo=new WeakMap;function at(e,t){if(typeof e=="object"&&e!==null){var l=Qo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:jo(t)},Qo.set(e,t),t)}return{value:e,source:t,stack:jo(t)}}var sa=[],oa=0,Yu=null,yn=0,et=[],tt=0,ml=null,bt=1,vt="";function Ot(e,t){sa[oa++]=yn,sa[oa++]=Yu,Yu=e,yn=t}function ld(e,t,l){et[tt++]=bt,et[tt++]=vt,et[tt++]=ml,ml=e;var a=bt;e=vt;var n=32-Je(a)-1;a&=~(1<<n),l+=1;var u=32-Je(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,bt=1<<32-Je(t)+n|l<<n|a,vt=u+e}else bt=1<<u|l<<n|a,vt=e}function Ds(e){e.return!==null&&(Ot(e,1),ld(e,1,0))}function Os(e){for(;e===Yu;)Yu=sa[--oa],sa[oa]=null,yn=sa[--oa],sa[oa]=null;for(;e===ml;)ml=et[--tt],et[tt]=null,vt=et[--tt],et[tt]=null,bt=et[--tt],et[tt]=null}function ad(e,t){et[tt++]=bt,et[tt++]=vt,et[tt++]=ml,bt=t.id,vt=t.overflow,ml=e}var Ae=null,te=null,Q=!1,nl=null,nt=!1,_c=Error(p(519));function hl(e){var t=Error(p(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pn(at(t,e)),_c}function Lo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Te]=e,t[Ye]=a,l){case"dialog":G("cancel",t),G("close",t);break;case"iframe":case"object":case"embed":G("load",t);break;case"video":case"audio":for(l=0;l<zn.length;l++)G(zn[l],t);break;case"source":G("error",t);break;case"img":case"image":case"link":G("error",t),G("load",t);break;case"details":G("toggle",t);break;case"input":G("invalid",t),_r(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":G("invalid",t);break;case"textarea":G("invalid",t),Br(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Ym(t.textContent,l)?(a.popover!=null&&(G("beforetoggle",t),G("toggle",t)),a.onScroll!=null&&G("scroll",t),a.onScrollEnd!=null&&G("scrollend",t),a.onClick!=null&&(t.onclick=_t),t=!0):t=!1,t||hl(e,!0)}function Vo(e){for(Ae=e.return;Ae;)switch(Ae.tag){case 5:case 31:case 13:nt=!1;return;case 27:case 3:nt=!0;return;default:Ae=Ae.return}}function Kl(e){if(e!==Ae)return!1;if(!Q)return Vo(e),Q=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ns(e.type,e.memoizedProps)),l=!l),l&&te&&hl(e),Vo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(p(317));te=Of(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(p(317));te=Of(e)}else t===27?(t=te,vl(e.type)?(e=ss,ss=null,te=e):te=t):te=Ae?ct(e.stateNode.nextSibling):null;return!0}function _l(){te=Ae=null,Q=!1}function Ki(){var e=nl;return e!==null&&(He===null?He=e:He.push.apply(He,e),nl=null),e}function pn(e){nl===null?nl=[e]:nl.push(e)}var Rc=St(null),Zl=null,Rt=null;function Jt(e,t,l){I(Rc,t._currentValue),t._currentValue=l}function Ht(e){e._currentValue=Rc.current,Ne(Rc)}function Bc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Hc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;e:for(;u!==null;){var s=u;u=n;for(var o=0;o<t.length;o++)if(s.context===t[o]){u.lanes|=l,s=u.alternate,s!==null&&(s.lanes|=l),Bc(u.return,l,e),a||(i=null);break e}u=s.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(p(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),Bc(i,l,e),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function Ra(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if(n.flags&524288)u=!0;else if(n.flags&262144)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(p(387));if(i=i.memoizedProps,i!==null){var s=n.type;We(n.pendingProps.value,i.value)||(e!==null?e.push(s):e=[s])}}else if(n===Cu.current){if(i=n.alternate,i===null)throw Error(p(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(An):e=[An])}n=n.return}e!==null&&Hc(t,e,l,a),t.flags|=262144}function Xu(e){for(e=e.firstContext;e!==null;){if(!We(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Rl(e){Zl=e,Rt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Me(e){return nd(Zl,e)}function nu(e,t){return Zl===null&&Rl(e),nd(e,t)}function nd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Rt===null){if(e===null)throw Error(p(308));Rt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Rt=Rt.next=t;return l}var E0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},D0=ve.unstable_scheduleCallback,O0=ve.unstable_NormalPriority,me={$$typeof:Ct,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Us(){return{controller:new E0,data:new Map,refCount:0}}function qn(e){e.refCount--,e.refCount===0&&D0(O0,function(){e.controller.abort()})}var nn=null,qc=0,Na=0,ha=null;function U0(e,t){if(nn===null){var l=nn=[];qc=0,Na=lo(),ha={status:"pending",value:void 0,then:function(a){l.push(a)}}}return qc++,t.then(Zo,Zo),t}function Zo(){if(--qc===0&&nn!==null){ha!==null&&(ha.status="fulfilled");var e=nn;nn=null,Na=0,ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function C0(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var wo=U.S;U.S=function(e,t){vm=ke(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&U0(e,t),wo!==null&&wo(e,t)};var Ol=St(null);function Cs(){var e=Ol.current;return e!==null?e:F.pooledCache}function ju(e,t){t===null?I(Ol,Ol.current):I(Ol,t.pool)}function ud(){var e=Cs();return e===null?null:{parent:me._currentValue,pool:e}}var Ba=Error(p(460)),_s=Error(p(474)),ji=Error(p(542)),Qu={then:function(){}};function ko(e){return e=e.status,e==="fulfilled"||e==="rejected"}function id(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(_t,_t),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jo(e),e;default:if(typeof t.status=="string")t.then(_t,_t);else{if(e=F,e!==null&&100<e.shellSuspendCounter)throw Error(p(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jo(e),e}throw Ul=t,Ba}}function Al(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ul=l,Ba):l}}var Ul=null;function Ko(){if(Ul===null)throw Error(p(459));var e=Ul;return Ul=null,e}function Jo(e){if(e===Ba||e===ji)throw Error(p(483))}var ga=null,jn=0;function uu(e){var t=jn;return jn+=1,ga===null&&(ga=[]),id(ga,e,t)}function Za(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function iu(e,t){throw t.$$typeof===vg?Error(p(525)):(e=Object.prototype.toString.call(t),Error(p(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function cd(e){function t(m,r){if(e){var x=m.deletions;x===null?(m.deletions=[r],m.flags|=16):x.push(r)}}function l(m,r){if(!e)return null;for(;r!==null;)t(m,r),r=r.sibling;return null}function a(m){for(var r=new Map;m!==null;)m.key!==null?r.set(m.key,m):r.set(m.index,m),m=m.sibling;return r}function n(m,r){return m=Bt(m,r),m.index=0,m.sibling=null,m}function u(m,r,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<r?(m.flags|=67108866,r):x):(m.flags|=67108866,r)):(m.flags|=1048576,r)}function i(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function s(m,r,x,y){return r===null||r.tag!==6?(r=wi(x,m.mode,y),r.return=m,r):(r=n(r,x),r.return=m,r)}function o(m,r,x,y){var M=x.type;return M===Pl?g(m,r,x.props.children,y,x.key):r!==null&&(r.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===kt&&Al(M)===r.type)?(r=n(r,x.props),Za(r,x),r.return=m,r):(r=pu(x.type,x.key,x.props,null,m.mode,y),Za(r,x),r.return=m,r)}function f(m,r,x,y){return r===null||r.tag!==4||r.stateNode.containerInfo!==x.containerInfo||r.stateNode.implementation!==x.implementation?(r=ki(x,m.mode,y),r.return=m,r):(r=n(r,x.children||[]),r.return=m,r)}function g(m,r,x,y,M){return r===null||r.tag!==7?(r=Dl(x,m.mode,y,M),r.return=m,r):(r=n(r,x),r.return=m,r)}function h(m,r,x){if(typeof r=="string"&&r!==""||typeof r=="number"||typeof r=="bigint")return r=wi(""+r,m.mode,x),r.return=m,r;if(typeof r=="object"&&r!==null){switch(r.$$typeof){case In:return x=pu(r.type,r.key,r.props,null,m.mode,x),Za(x,r),x.return=m,x;case Wa:return r=ki(r,m.mode,x),r.return=m,r;case kt:return r=Al(r),h(m,r,x)}if(Fa(r)||Qa(r))return r=Dl(r,m.mode,x,null),r.return=m,r;if(typeof r.then=="function")return h(m,uu(r),x);if(r.$$typeof===Ct)return h(m,nu(m,r),x);iu(m,r)}return null}function d(m,r,x,y){var M=r!==null?r.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return M!==null?null:s(m,r,""+x,y);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case In:return x.key===M?o(m,r,x,y):null;case Wa:return x.key===M?f(m,r,x,y):null;case kt:return x=Al(x),d(m,r,x,y)}if(Fa(x)||Qa(x))return M!==null?null:g(m,r,x,y,null);if(typeof x.then=="function")return d(m,r,uu(x),y);if(x.$$typeof===Ct)return d(m,r,nu(m,x),y);iu(m,x)}return null}function b(m,r,x,y,M){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return m=m.get(x)||null,s(r,m,""+y,M);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case In:return m=m.get(y.key===null?x:y.key)||null,o(r,m,y,M);case Wa:return m=m.get(y.key===null?x:y.key)||null,f(r,m,y,M);case kt:return y=Al(y),b(m,r,x,y,M)}if(Fa(y)||Qa(y))return m=m.get(x)||null,g(r,m,y,M,null);if(typeof y.then=="function")return b(m,r,x,uu(y),M);if(y.$$typeof===Ct)return b(m,r,x,nu(r,y),M);iu(r,y)}return null}function S(m,r,x,y){for(var M=null,C=null,z=r,j=r=0,O=null;z!==null&&j<x.length;j++){z.index>j?(O=z,z=null):O=z.sibling;var q=d(m,z,x[j],y);if(q===null){z===null&&(z=O);break}e&&z&&q.alternate===null&&t(m,z),r=u(q,r,j),C===null?M=q:C.sibling=q,C=q,z=O}if(j===x.length)return l(m,z),Q&&Ot(m,j),M;if(z===null){for(;j<x.length;j++)z=h(m,x[j],y),z!==null&&(r=u(z,r,j),C===null?M=z:C.sibling=z,C=z);return Q&&Ot(m,j),M}for(z=a(z);j<x.length;j++)O=b(z,m,j,x[j],y),O!==null&&(e&&O.alternate!==null&&z.delete(O.key===null?j:O.key),r=u(O,r,j),C===null?M=O:C.sibling=O,C=O);return e&&z.forEach(function(Oe){return t(m,Oe)}),Q&&Ot(m,j),M}function v(m,r,x,y){if(x==null)throw Error(p(151));for(var M=null,C=null,z=r,j=r=0,O=null,q=x.next();z!==null&&!q.done;j++,q=x.next()){z.index>j?(O=z,z=null):O=z.sibling;var Oe=d(m,z,q.value,y);if(Oe===null){z===null&&(z=O);break}e&&z&&Oe.alternate===null&&t(m,z),r=u(Oe,r,j),C===null?M=Oe:C.sibling=Oe,C=Oe,z=O}if(q.done)return l(m,z),Q&&Ot(m,j),M;if(z===null){for(;!q.done;j++,q=x.next())q=h(m,q.value,y),q!==null&&(r=u(q,r,j),C===null?M=q:C.sibling=q,C=q);return Q&&Ot(m,j),M}for(z=a(z);!q.done;j++,q=x.next())q=b(z,m,j,q.value,y),q!==null&&(e&&q.alternate!==null&&z.delete(q.key===null?j:q.key),r=u(q,r,j),C===null?M=q:C.sibling=q,C=q);return e&&z.forEach(function(Qe){return t(m,Qe)}),Q&&Ot(m,j),M}function D(m,r,x,y){if(typeof x=="object"&&x!==null&&x.type===Pl&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case In:e:{for(var M=x.key;r!==null;){if(r.key===M){if(M=x.type,M===Pl){if(r.tag===7){l(m,r.sibling),y=n(r,x.props.children),y.return=m,m=y;break e}}else if(r.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===kt&&Al(M)===r.type){l(m,r.sibling),y=n(r,x.props),Za(y,x),y.return=m,m=y;break e}l(m,r);break}else t(m,r);r=r.sibling}x.type===Pl?(y=Dl(x.props.children,m.mode,y,x.key),y.return=m,m=y):(y=pu(x.type,x.key,x.props,null,m.mode,y),Za(y,x),y.return=m,m=y)}return i(m);case Wa:e:{for(M=x.key;r!==null;){if(r.key===M)if(r.tag===4&&r.stateNode.containerInfo===x.containerInfo&&r.stateNode.implementation===x.implementation){l(m,r.sibling),y=n(r,x.children||[]),y.return=m,m=y;break e}else{l(m,r);break}else t(m,r);r=r.sibling}y=ki(x,m.mode,y),y.return=m,m=y}return i(m);case kt:return x=Al(x),D(m,r,x,y)}if(Fa(x))return S(m,r,x,y);if(Qa(x)){if(M=Qa(x),typeof M!="function")throw Error(p(150));return x=M.call(x),v(m,r,x,y)}if(typeof x.then=="function")return D(m,r,uu(x),y);if(x.$$typeof===Ct)return D(m,r,nu(m,x),y);iu(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,r!==null&&r.tag===6?(l(m,r.sibling),y=n(r,x),y.return=m,m=y):(l(m,r),y=wi(x,m.mode,y),y.return=m,m=y),i(m)):l(m,r)}return function(m,r,x,y){try{jn=0;var M=D(m,r,x,y);return ga=null,M}catch(z){if(z===Ba||z===ji)throw z;var C=Ze(29,z,null,m.mode);return C.lanes=y,C.return=m,C}finally{}}}var Bl=cd(!0),sd=cd(!1),Kt=!1;function Rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gc(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 ul(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function il(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,L&2){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Gu(e),Pr(e,null,l),t}return pi(e,a,t,l),Gu(e)}function un(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ar(e,l)}}function Ji(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Yc=!1;function cn(){if(Yc){var e=ha;if(e!==null)throw e}}function sn(e,t,l,a){Yc=!1;var n=e.updateQueue;Kt=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var o=s,f=o.next;o.next=null,i===null?u=f:i.next=f,i=o;var g=e.alternate;g!==null&&(g=g.updateQueue,s=g.lastBaseUpdate,s!==i&&(s===null?g.firstBaseUpdate=f:s.next=f,g.lastBaseUpdate=o))}if(u!==null){var h=n.baseState;i=0,g=f=o=null,s=u;do{var d=s.lane&-536870913,b=d!==s.lane;if(b?(X&d)===d:(a&d)===d){d!==0&&d===Na&&(Yc=!0),g!==null&&(g=g.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var S=e,v=s;d=t;var D=l;switch(v.tag){case 1:if(S=v.payload,typeof S=="function"){h=S.call(D,h,d);break e}h=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=v.payload,d=typeof S=="function"?S.call(D,h,d):S,d==null)break e;h=le({},h,d);break e;case 2:Kt=!0}}d=s.callback,d!==null&&(e.flags|=64,b&&(e.flags|=8192),b=n.callbacks,b===null?n.callbacks=[d]:b.push(d))}else b={lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},g===null?(f=g=b,o=h):g=g.next=b,i|=d;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;b=s,s=b.next,b.next=null,n.lastBaseUpdate=b,n.shared.pending=null}}while(!0);g===null&&(o=h),n.baseState=o,n.firstBaseUpdate=f,n.lastBaseUpdate=g,u===null&&(n.shared.lanes=0),xl|=i,e.lanes=i,e.memoizedState=h}}function od(e,t){if(typeof e!="function")throw Error(p(191,e));e.call(t)}function fd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)od(l[e],t)}var za=St(null),Lu=St(0);function $o(e,t){e=Lt,I(Lu,e),I(za,t),Lt=e|t.baseLanes}function Xc(){I(Lu,Lt),I(za,za.current)}function Bs(){Lt=Lu.current,Ne(za),Ne(Lu)}var Fe=St(null),it=null;function $t(e){var t=e.alternate;I(se,se.current&1),I(Fe,e),it===null&&(t===null||za.current!==null||t.memoizedState!==null)&&(it=e)}function Qc(e){I(se,se.current),I(Fe,e),it===null&&(it=e)}function rd(e){e.tag===22?(I(se,se.current),I(Fe,e),it===null&&(it=e)):Wt()}function Wt(){I(se,se.current),I(Fe,Fe.current)}function Ve(e){Ne(Fe),it===e&&(it=null),Ne(se)}var se=St(0);function Vu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||is(l)||cs(l)))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)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Yt=0,B=null,W=null,re=null,Zu=!1,xa=!1,Hl=!1,wu=0,Sn=0,ba=null,_0=0;function ue(){throw Error(p(321))}function Hs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!We(e[l],t[l]))return!1;return!0}function qs(e,t,l,a,n,u){return Yt=u,B=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Ld:Js,Hl=!1,u=l(a,n),Hl=!1,xa&&(u=md(t,l,a,n)),dd(e),u}function dd(e){U.H=Nn;var t=W!==null&&W.next!==null;if(Yt=0,re=W=B=null,Zu=!1,Sn=0,ba=null,t)throw Error(p(300));e===null||he||(e=e.dependencies,e!==null&&Xu(e)&&(he=!0))}function md(e,t,l,a){B=e;var n=0;do{if(xa&&(ba=null),Sn=0,xa=!1,25<=n)throw Error(p(301));if(n+=1,re=W=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=Vd,u=t(l,a)}while(xa);return u}function R0(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Gn(t):t,e=e.useState()[0],(W!==null?W.memoizedState:null)!==e&&(B.flags|=1024),t}function Gs(){var e=wu!==0;return wu=0,e}function Ys(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Xs(e){if(Zu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zu=!1}Yt=0,re=W=B=null,xa=!1,Sn=wu=0,ba=null}function Ce(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return re===null?B.memoizedState=re=e:re=re.next=e,re}function oe(){if(W===null){var e=B.alternate;e=e!==null?e.memoizedState:null}else e=W.next;var t=re===null?B.memoizedState:re.next;if(t!==null)re=t,W=e;else{if(e===null)throw B.alternate===null?Error(p(467)):Error(p(310));W=e,e={memoizedState:W.memoizedState,baseState:W.baseState,baseQueue:W.baseQueue,queue:W.queue,next:null},re===null?B.memoizedState=re=e:re=re.next=e}return re}function Si(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gn(e){var t=Sn;return Sn+=1,ba===null&&(ba=[]),e=id(ba,e,t),t=B,(re===null?t.memoizedState:re.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Ld:Js),e}function Ni(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Gn(e);if(e.$$typeof===Ct)return Me(e)}throw Error(p(438,String(e)))}function Qs(e){var t=null,l=B.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=B.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Si(),B.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=yg;return t.index++,l}function Xt(e,t){return typeof t=="function"?t(e):t}function Su(e){var t=oe();return Ls(t,W,e)}function Ls(e,t,l){var a=e.queue;if(a===null)throw Error(p(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var s=i=null,o=null,f=t,g=!1;do{var h=f.lane&-536870913;if(h!==f.lane?(X&h)===h:(Yt&h)===h){var d=f.revertLane;if(d===0)o!==null&&(o=o.next={lane:0,revertLane:0,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),h===Na&&(g=!0);else if((Yt&d)===d){f=f.next,d===Na&&(g=!0);continue}else h={lane:0,revertLane:f.revertLane,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},o===null?(s=o=h,i=u):o=o.next=h,B.lanes|=d,xl|=d;h=f.action,Hl&&l(u,h),u=f.hasEagerState?f.eagerState:l(u,h)}else d={lane:h,revertLane:f.revertLane,gesture:f.gesture,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},o===null?(s=o=d,i=u):o=o.next=d,B.lanes|=h,xl|=h;f=f.next}while(f!==null&&f!==t);if(o===null?i=u:o.next=s,!We(u,e.memoizedState)&&(he=!0,g&&(l=ha,l!==null)))throw l;e.memoizedState=u,e.baseState=i,e.baseQueue=o,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function $i(e){var t=oe(),l=t.queue;if(l===null)throw Error(p(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=e(u,i.action),i=i.next;while(i!==n);We(u,t.memoizedState)||(he=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function hd(e,t,l){var a=B,n=oe(),u=Q;if(u){if(l===void 0)throw Error(p(407));l=l()}else l=t();var i=!We((W||n).memoizedState,l);if(i&&(n.memoizedState=l,he=!0),n=n.queue,Vs(bd.bind(null,a,n,e),[e]),n.getSnapshot!==t||i||re!==null&&re.memoizedState.tag&1){if(a.flags|=2048,Ta(9,{destroy:void 0},xd.bind(null,a,n,l,t),null),F===null)throw Error(p(349));u||Yt&127||gd(a,t,l)}return l}function gd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=B.updateQueue,t===null?(t=Si(),B.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function xd(e,t,l,a){t.value=l,t.getSnapshot=a,vd(t)&&yd(e)}function bd(e,t,l){return l(function(){vd(t)&&yd(e)})}function vd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!We(e,l)}catch{return!0}}function yd(e){var t=Vl(e,2);t!==null&&Ge(t,e,2)}function Lc(e){var t=Ce();if(typeof e=="function"){var l=e;if(e=l(),Hl){It(!0);try{l()}finally{It(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:e},t}function pd(e,t,l,a){return e.baseState=l,Ls(e,W,typeof a=="function"?a:Xt)}function B0(e,t,l,a,n){if(Ti(e))throw Error(p(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};U.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,jd(t,u)):(u.next=l.next,t.pending=l.next=u)}}function jd(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=U.T,i={};U.T=i;try{var s=l(n,a),o=U.S;o!==null&&o(i,s),Wo(e,t,s)}catch(f){Vc(e,t,f)}finally{u!==null&&i.types!==null&&(u.types=i.types),U.T=u}}else try{u=l(n,a),Wo(e,t,u)}catch(f){Vc(e,t,f)}}function Wo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Fo(e,t,a)},function(a){return Vc(e,t,a)}):Fo(e,t,l)}function Fo(e,t,l){t.status="fulfilled",t.value=l,Sd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,jd(e,l)))}function Vc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Sd(t),t=t.next;while(t!==a)}e.action=null}function Sd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Nd(e,t){return t}function Io(e,t){if(Q){var l=F.formState;if(l!==null){e:{var a=B;if(Q){if(te){t:{for(var n=te,u=nt;n.nodeType!==8;){if(!u){n=null;break t}if(n=ct(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){te=ct(n.nextSibling),a=n.data==="F!";break e}}hl(a)}a=!1}a&&(t=l[0])}}return l=Ce(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nd,lastRenderedState:t},l.queue=a,l=Yd.bind(null,B,a),a.dispatch=l,a=Lc(!1),u=Ks.bind(null,B,!1,a.queue),a=Ce(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=B0.bind(null,B,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Po(e){var t=oe();return zd(t,W,e)}function zd(e,t,l){if(t=Ls(e,t,Nd)[0],e=Su(Xt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Gn(t)}catch(i){throw i===Ba?ji:i}else a=t;t=oe();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(B.flags|=2048,Ta(9,{destroy:void 0},H0.bind(null,n,l),null)),[a,u,e]}function H0(e,t){e.action=t}function ef(e){var t=oe(),l=W;if(l!==null)return zd(t,l,e);oe(),t=t.memoizedState,l=oe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ta(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=B.updateQueue,t===null&&(t=Si(),B.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Td(){return oe().memoizedState}function Nu(e,t,l,a){var n=Ce();B.flags|=e,n.memoizedState=Ta(1|t,{destroy:void 0},l,a===void 0?null:a)}function zi(e,t,l,a){var n=oe();a=a===void 0?null:a;var u=n.memoizedState.inst;W!==null&&a!==null&&Hs(a,W.memoizedState.deps)?n.memoizedState=Ta(t,u,l,a):(B.flags|=e,n.memoizedState=Ta(1|t,u,l,a))}function tf(e,t){Nu(8390656,8,e,t)}function Vs(e,t){zi(2048,8,e,t)}function q0(e){B.flags|=4;var t=B.updateQueue;if(t===null)t=Si(),B.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Ad(e){var t=oe().memoizedState;return q0({ref:t,nextImpl:e}),function(){if(L&2)throw Error(p(440));return t.impl.apply(void 0,arguments)}}function Md(e,t){return zi(4,2,e,t)}function Ed(e,t){return zi(4,4,e,t)}function Dd(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Od(e,t,l){l=l!=null?l.concat([e]):null,zi(4,4,Dd.bind(null,t,e),l)}function Zs(){}function Ud(e,t){var l=oe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Hs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Cd(e,t){var l=oe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Hs(t,a[1]))return a[0];if(a=e(),Hl){It(!0);try{e()}finally{It(!1)}}return l.memoizedState=[a,t],a}function ws(e,t,l){return l===void 0||Yt&1073741824&&!(X&261930)?e.memoizedState=t:(e.memoizedState=l,e=pm(),B.lanes|=e,xl|=e,l)}function _d(e,t,l,a){return We(l,t)?l:za.current!==null?(e=ws(e,l,a),We(e,t)||(he=!0),e):!(Yt&42)||Yt&1073741824&&!(X&261930)?(he=!0,e.memoizedState=l):(e=pm(),B.lanes|=e,xl|=e,t)}function Rd(e,t,l,a,n){var u=V.p;V.p=u!==0&&8>u?u:8;var i=U.T,s={};U.T=s,Ks(e,!1,t,l);try{var o=n(),f=U.S;if(f!==null&&f(s,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var g=C0(o,a);on(e,t,g,$e(e))}else on(e,t,a,$e(e))}catch(h){on(e,t,{then:function(){},status:"rejected",reason:h},$e())}finally{V.p=u,i!==null&&s.types!==null&&(i.types=s.types),U.T=i}}function G0(){}function Zc(e,t,l,a){if(e.tag!==5)throw Error(p(476));var n=Bd(e).queue;Rd(e,n,t,El,l===null?G0:function(){return Hd(e),l(a)})}function Bd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:El,baseState:El,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:El},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Hd(e){var t=Bd(e);t.next===null&&(t=e.alternate.memoizedState),on(e,t.next.queue,{},$e())}function ks(){return Me(An)}function qd(){return oe().memoizedState}function Gd(){return oe().memoizedState}function Y0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=$e();e=ul(l);var a=il(t,e,l);a!==null&&(Ge(a,t,l),un(a,t,l)),t={cache:Us()},e.payload=t;return}t=t.return}}function X0(e,t,l){var a=$e();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ti(e)?Xd(t,l):(l=Ms(e,t,l,a),l!==null&&(Ge(l,e,a),Qd(l,t,a)))}function Yd(e,t,l){var a=$e();on(e,t,l,a)}function on(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ti(e))Xd(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,s=u(i,l);if(n.hasEagerState=!0,n.eagerState=s,We(s,i))return pi(e,t,n,0),F===null&&yi(),!1}catch{}finally{}if(l=Ms(e,t,n,a),l!==null)return Ge(l,e,a),Qd(l,t,a),!0}return!1}function Ks(e,t,l,a){if(a={lane:2,revertLane:lo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ti(e)){if(t)throw Error(p(479))}else t=Ms(e,l,a,2),t!==null&&Ge(t,e,2)}function Ti(e){var t=e.alternate;return e===B||t!==null&&t===B}function Xd(e,t){xa=Zu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Qd(e,t,l){if(l&4194048){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ar(e,l)}}var Nn={readContext:Me,use:Ni,useCallback:ue,useContext:ue,useEffect:ue,useImperativeHandle:ue,useLayoutEffect:ue,useInsertionEffect:ue,useMemo:ue,useReducer:ue,useRef:ue,useState:ue,useDebugValue:ue,useDeferredValue:ue,useTransition:ue,useSyncExternalStore:ue,useId:ue,useHostTransitionStatus:ue,useFormState:ue,useActionState:ue,useOptimistic:ue,useMemoCache:ue,useCacheRefresh:ue};Nn.useEffectEvent=ue;var Ld={readContext:Me,use:Ni,useCallback:function(e,t){return Ce().memoizedState=[e,t===void 0?null:t],e},useContext:Me,useEffect:tf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Nu(4194308,4,Dd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Nu(4194308,4,e,t)},useInsertionEffect:function(e,t){Nu(4,2,e,t)},useMemo:function(e,t){var l=Ce();t=t===void 0?null:t;var a=e();if(Hl){It(!0);try{e()}finally{It(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Ce();if(l!==void 0){var n=l(t);if(Hl){It(!0);try{l(t)}finally{It(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=X0.bind(null,B,e),[a.memoizedState,e]},useRef:function(e){var t=Ce();return e={current:e},t.memoizedState=e},useState:function(e){e=Lc(e);var t=e.queue,l=Yd.bind(null,B,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Zs,useDeferredValue:function(e,t){var l=Ce();return ws(l,e,t)},useTransition:function(){var e=Lc(!1);return e=Rd.bind(null,B,e.queue,!0,!1),Ce().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=B,n=Ce();if(Q){if(l===void 0)throw Error(p(407));l=l()}else{if(l=t(),F===null)throw Error(p(349));X&127||gd(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,tf(bd.bind(null,a,u,e),[e]),a.flags|=2048,Ta(9,{destroy:void 0},xd.bind(null,a,u,l,t),null),l},useId:function(){var e=Ce(),t=F.identifierPrefix;if(Q){var l=vt,a=bt;l=(a&~(1<<32-Je(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=wu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=_0++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ks,useFormState:Io,useActionState:Io,useOptimistic:function(e){var t=Ce();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Ks.bind(null,B,!0,l),l.dispatch=t,[e,t]},useMemoCache:Qs,useCacheRefresh:function(){return Ce().memoizedState=Y0.bind(null,B)},useEffectEvent:function(e){var t=Ce(),l={impl:e};return t.memoizedState=l,function(){if(L&2)throw Error(p(440));return l.impl.apply(void 0,arguments)}}},Js={readContext:Me,use:Ni,useCallback:Ud,useContext:Me,useEffect:Vs,useImperativeHandle:Od,useInsertionEffect:Md,useLayoutEffect:Ed,useMemo:Cd,useReducer:Su,useRef:Td,useState:function(){return Su(Xt)},useDebugValue:Zs,useDeferredValue:function(e,t){var l=oe();return _d(l,W.memoizedState,e,t)},useTransition:function(){var e=Su(Xt)[0],t=oe().memoizedState;return[typeof e=="boolean"?e:Gn(e),t]},useSyncExternalStore:hd,useId:qd,useHostTransitionStatus:ks,useFormState:Po,useActionState:Po,useOptimistic:function(e,t){var l=oe();return pd(l,W,e,t)},useMemoCache:Qs,useCacheRefresh:Gd};Js.useEffectEvent=Ad;var Vd={readContext:Me,use:Ni,useCallback:Ud,useContext:Me,useEffect:Vs,useImperativeHandle:Od,useInsertionEffect:Md,useLayoutEffect:Ed,useMemo:Cd,useReducer:$i,useRef:Td,useState:function(){return $i(Xt)},useDebugValue:Zs,useDeferredValue:function(e,t){var l=oe();return W===null?ws(l,e,t):_d(l,W.memoizedState,e,t)},useTransition:function(){var e=$i(Xt)[0],t=oe().memoizedState;return[typeof e=="boolean"?e:Gn(e),t]},useSyncExternalStore:hd,useId:qd,useHostTransitionStatus:ks,useFormState:ef,useActionState:ef,useOptimistic:function(e,t){var l=oe();return W!==null?pd(l,W,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Qs,useCacheRefresh:Gd};Vd.useEffectEvent=Ad;function Wi(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:le({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var wc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=$e(),n=ul(a);n.payload=t,l!=null&&(n.callback=l),t=il(e,n,a),t!==null&&(Ge(t,e,a),un(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=$e(),n=ul(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=il(e,n,a),t!==null&&(Ge(t,e,a),un(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=$e(),a=ul(l);a.tag=2,t!=null&&(a.callback=t),t=il(e,a,l),t!==null&&(Ge(t,e,l),un(t,e,l))}};function lf(e,t,l,a,n,u,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!vn(l,a)||!vn(n,u):!0}function af(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&wc.enqueueReplaceState(t,t.state,null)}function ql(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=le({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Zd(e){qu(e)}function wd(e){console.error(e)}function kd(e){qu(e)}function ku(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function nf(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function kc(e,t,l){return l=ul(l),l.tag=3,l.payload={element:null},l.callback=function(){ku(e,t)},l}function Kd(e){return e=ul(e),e.tag=3,e}function Jd(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){nf(t,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){nf(t,l,a),typeof n!="function"&&(cl===null?cl=new Set([this]):cl.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function Q0(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ra(t,l,n,!0),l=Fe.current,l!==null){switch(l.tag){case 31:case 13:return it===null?Fu():l.alternate===null&&ie===0&&(ie=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Qu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),cc(e,a,n)),!1;case 22:return l.flags|=65536,a===Qu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),cc(e,a,n)),!1}throw Error(p(435,l.tag))}return cc(e,a,n),Fu(),!1}if(Q)return t=Fe.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==_c&&(e=Error(p(422),{cause:a}),pn(at(e,l)))):(a!==_c&&(t=Error(p(423),{cause:a}),pn(at(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=at(a,l),n=kc(e.stateNode,a,n),Ji(e,n),ie!==4&&(ie=2)),!1;var u=Error(p(520),{cause:a});if(u=at(u,l),dn===null?dn=[u]:dn.push(u),ie!==4&&(ie=2),t===null)return!0;a=at(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=kc(l.stateNode,a,e),Ji(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(cl===null||!cl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Kd(n),Jd(n,e,l,a),Ji(l,n),!1}l=l.return}while(l!==null);return!1}var $s=Error(p(461)),he=!1;function ze(e,t,l,a){t.child=e===null?sd(t,null,l,a):Bl(t,e.child,l,a)}function uf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var i={};for(var s in a)s!=="ref"&&(i[s]=a[s])}else i=a;return Rl(t),a=qs(e,t,l,i,u,n),s=Gs(),e!==null&&!he?(Ys(e,t,n),Qt(e,t,n)):(Q&&s&&Ds(t),t.flags|=1,ze(e,t,a,n),t.child)}function cf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Es(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,$d(e,t,u,a,n)):(e=pu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Ws(e,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:vn,l(i,a)&&e.ref===t.ref)return Qt(e,t,n)}return t.flags|=1,e=Bt(u,a),e.ref=t.ref,e.return=t,t.child=e}function $d(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(vn(u,a)&&e.ref===t.ref)if(he=!1,t.pendingProps=a=u,Ws(e,n))e.flags&131072&&(he=!0);else return t.lanes=e.lanes,Qt(e,t,n)}return Kc(e,t,l,a,n)}function Wd(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if(t.flags&128){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return sf(e,t,u,l,a)}if(l&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ju(t,u!==null?u.cachePool:null),u!==null?$o(t,u):Xc(),rd(t);else return a=t.lanes=536870912,sf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(ju(t,u.cachePool),$o(t,u),Wt(),t.memoizedState=null):(e!==null&&ju(t,null),Xc(),Wt());return ze(e,t,n,l),t.child}function Pa(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sf(e,t,l,a,n){var u=Cs();return u=u===null?null:{parent:me._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&ju(t,null),Xc(),rd(t),e!==null&&Ra(e,t,a,!0),t.childLanes=n,null}function zu(e,t){return t=Ku({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function of(e,t,l){return Bl(t,e.child,null,l),e=zu(t,t.pendingProps),e.flags|=2,Ve(t),t.memoizedState=null,e}function L0(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Q){if(a.mode==="hidden")return e=zu(t,a),t.lanes=536870912,Pa(null,e);if(Qc(t),(e=te)?(e=Lm(e,nt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ml!==null?{id:bt,overflow:vt}:null,retryLane:536870912,hydrationErrors:null},l=td(e),l.return=t,t.child=l,Ae=t,te=null)):e=null,e===null)throw hl(t);return t.lanes=536870912,null}return zu(t,a)}var u=e.memoizedState;if(u!==null){var i=u.dehydrated;if(Qc(t),n)if(t.flags&256)t.flags&=-257,t=of(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(p(558));else if(he||Ra(e,t,l,!1),n=(l&e.childLanes)!==0,he||n){if(a=F,a!==null&&(i=Mr(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Vl(e,i),Ge(a,e,i),$s;Fu(),t=of(e,t,l)}else e=u.treeContext,te=ct(i.nextSibling),Ae=t,Q=!0,nl=null,nt=!1,e!==null&&ad(t,e),t=zu(t,a),t.flags|=4096;return t}return e=Bt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(p(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Kc(e,t,l,a,n){return Rl(t),l=qs(e,t,l,a,void 0,n),a=Gs(),e!==null&&!he?(Ys(e,t,n),Qt(e,t,n)):(Q&&a&&Ds(t),t.flags|=1,ze(e,t,l,n),t.child)}function ff(e,t,l,a,n,u){return Rl(t),t.updateQueue=null,l=md(t,a,l,n),dd(e),a=Gs(),e!==null&&!he?(Ys(e,t,u),Qt(e,t,u)):(Q&&a&&Ds(t),t.flags|=1,ze(e,t,l,u),t.child)}function rf(e,t,l,a,n){if(Rl(t),t.stateNode===null){var u=ca,i=l.contextType;typeof i=="object"&&i!==null&&(u=Me(i)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=wc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Rs(t),i=l.contextType,u.context=typeof i=="object"&&i!==null?Me(i):ca,u.state=t.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(Wi(t,l,i,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&wc.enqueueReplaceState(u,u.state,null),sn(t,a,u,n),cn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var s=t.memoizedProps,o=ql(l,s);u.props=o;var f=u.context,g=l.contextType;i=ca,typeof g=="object"&&g!==null&&(i=Me(g));var h=l.getDerivedStateFromProps;g=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,g||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s||f!==i)&&af(t,u,a,i),Kt=!1;var d=t.memoizedState;u.state=d,sn(t,a,u,n),cn(),f=t.memoizedState,s||d!==f||Kt?(typeof h=="function"&&(Wi(t,l,h,a),f=t.memoizedState),(o=Kt||lf(t,l,o,a,d,f,i))?(g||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=f),u.props=a,u.state=f,u.context=i,a=o):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Gc(e,t),i=t.memoizedProps,g=ql(l,i),u.props=g,h=t.pendingProps,d=u.context,f=l.contextType,o=ca,typeof f=="object"&&f!==null&&(o=Me(f)),s=l.getDerivedStateFromProps,(f=typeof s=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==h||d!==o)&&af(t,u,a,o),Kt=!1,d=t.memoizedState,u.state=d,sn(t,a,u,n),cn();var b=t.memoizedState;i!==h||d!==b||Kt||e!==null&&e.dependencies!==null&&Xu(e.dependencies)?(typeof s=="function"&&(Wi(t,l,s,a),b=t.memoizedState),(g=Kt||lf(t,l,g,a,d,b,o)||e!==null&&e.dependencies!==null&&Xu(e.dependencies))?(f||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,b,o),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,b,o)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=b),u.props=a,u.state=b,u.context=o,a=g):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Tu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Bl(t,e.child,null,n),t.child=Bl(t,null,l,n)):ze(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Qt(e,t,n),e}function df(e,t,l,a){return _l(),t.flags|=256,ze(e,t,l,a),t.child}var Fi={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ii(e){return{baseLanes:e,cachePool:ud()}}function Pi(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=we),e}function Fd(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(se.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Q){if(n?$t(t):Wt(),(e=te)?(e=Lm(e,nt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ml!==null?{id:bt,overflow:vt}:null,retryLane:536870912,hydrationErrors:null},l=td(e),l.return=t,t.child=l,Ae=t,te=null)):e=null,e===null)throw hl(t);return cs(e)?t.lanes=32:t.lanes=536870912,null}var s=a.children;return a=a.fallback,n?(Wt(),n=t.mode,s=Ku({mode:"hidden",children:s},n),a=Dl(a,n,l,null),s.return=t,a.return=t,s.sibling=a,t.child=s,a=t.child,a.memoizedState=Ii(l),a.childLanes=Pi(e,i,l),t.memoizedState=Fi,Pa(null,a)):($t(t),Jc(t,s))}var o=e.memoizedState;if(o!==null&&(s=o.dehydrated,s!==null)){if(u)t.flags&256?($t(t),t.flags&=-257,t=ec(e,t,l)):t.memoizedState!==null?(Wt(),t.child=e.child,t.flags|=128,t=null):(Wt(),s=a.fallback,n=t.mode,a=Ku({mode:"visible",children:a.children},n),s=Dl(s,n,l,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,Bl(t,e.child,null,l),a=t.child,a.memoizedState=Ii(l),a.childLanes=Pi(e,i,l),t.memoizedState=Fi,t=Pa(null,a));else if($t(t),cs(s)){if(i=s.nextSibling&&s.nextSibling.dataset,i)var f=i.dgst;i=f,a=Error(p(419)),a.stack="",a.digest=i,pn({value:a,source:null,stack:null}),t=ec(e,t,l)}else if(he||Ra(e,t,l,!1),i=(l&e.childLanes)!==0,he||i){if(i=F,i!==null&&(a=Mr(i,l),a!==0&&a!==o.retryLane))throw o.retryLane=a,Vl(e,a),Ge(i,e,a),$s;is(s)||Fu(),t=ec(e,t,l)}else is(s)?(t.flags|=192,t.child=e.child,t=null):(e=o.treeContext,te=ct(s.nextSibling),Ae=t,Q=!0,nl=null,nt=!1,e!==null&&ad(t,e),t=Jc(t,a.children),t.flags|=4096);return t}return n?(Wt(),s=a.fallback,n=t.mode,o=e.child,f=o.sibling,a=Bt(o,{mode:"hidden",children:a.children}),a.subtreeFlags=o.subtreeFlags&65011712,f!==null?s=Bt(f,s):(s=Dl(s,n,l,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,Pa(null,a),a=t.child,s=e.child.memoizedState,s===null?s=Ii(l):(n=s.cachePool,n!==null?(o=me._currentValue,n=n.parent!==o?{parent:o,pool:o}:n):n=ud(),s={baseLanes:s.baseLanes|l,cachePool:n}),a.memoizedState=s,a.childLanes=Pi(e,i,l),t.memoizedState=Fi,Pa(e.child,a)):($t(t),l=e.child,e=l.sibling,l=Bt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l)}function Jc(e,t){return t=Ku({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ku(e,t){return e=Ze(22,e,null,t),e.lanes=0,e}function ec(e,t,l){return Bl(t,e.child,null,l),e=Jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Bc(e.return,t,l)}function tc(e,t,l,a,n,u){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function Id(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=se.current,s=(i&2)!==0;if(s?(i=i&1|2,t.flags|=128):i&=1,I(se,i),ze(e,t,a,l),a=Q?yn:0,!s&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mf(e,l,t);else if(e.tag===19)mf(e,l,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(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Vu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),tc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Vu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}tc(t,!0,l,null,u,a);break;case"together":tc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Qt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),xl|=t.lanes,!(l&t.childLanes))if(e!==null){if(Ra(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(p(153));if(t.child!==null){for(e=t.child,l=Bt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Bt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ws(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Xu(e)))}function V0(e,t,l){switch(t.tag){case 3:_u(t,t.stateNode.containerInfo),Jt(t,me,e.memoizedState.cache),_l();break;case 27:case 5:Sc(t);break;case 4:_u(t,t.stateNode.containerInfo);break;case 10:Jt(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?($t(t),t.flags|=128,null):l&t.child.childLanes?Fd(e,t,l):($t(t),e=Qt(e,t,l),e!==null?e.sibling:null);$t(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ra(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Id(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),I(se,se.current),a)break;return null;case 22:return t.lanes=0,Wd(e,t,l,t.pendingProps);case 24:Jt(t,me,e.memoizedState.cache)}return Qt(e,t,l)}function Pd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)he=!0;else{if(!Ws(e,l)&&!(t.flags&128))return he=!1,V0(e,t,l);he=!!(e.flags&131072)}else he=!1,Q&&t.flags&1048576&&ld(t,yn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Al(t.elementType),t.type=e,typeof e=="function")Es(e)?(a=ql(e,a),t.tag=1,t=rf(null,t,e,a,l)):(t.tag=0,t=Kc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===hs){t.tag=11,t=uf(null,t,e,a,l);break e}else if(n===gs){t.tag=14,t=cf(null,t,e,a,l);break e}}throw t=pc(e)||e,Error(p(306,t,""))}}return t;case 0:return Kc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ql(a,t.pendingProps),rf(e,t,a,n,l);case 3:e:{if(_u(t,t.stateNode.containerInfo),e===null)throw Error(p(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Gc(e,t),sn(t,a,null,l);var i=t.memoizedState;if(a=i.cache,Jt(t,me,a),a!==u.cache&&Hc(t,[me],l,!0),cn(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=df(e,t,a,l);break e}else if(a!==n){n=at(Error(p(424)),t),pn(n),t=df(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(te=ct(e.firstChild),Ae=t,Q=!0,nl=null,nt=!0,l=sd(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(_l(),a===n){t=Qt(e,t,l);break e}ze(e,t,a,l)}t=t.child}return t;case 26:return Tu(e,t),e===null?(l=_f(t.type,null,t.pendingProps,null))?t.memoizedState=l:Q||(l=t.type,e=t.pendingProps,a=ti(al.current).createElement(l),a[Te]=t,a[Ye]=e,Ee(a,l,e),je(a),t.stateNode=a):t.memoizedState=_f(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Sc(t),e===null&&Q&&(a=t.stateNode=Vm(t.type,t.pendingProps,al.current),Ae=t,nt=!0,n=te,vl(t.type)?(ss=n,te=ct(a.firstChild)):te=n),ze(e,t,t.pendingProps.children,l),Tu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Q&&((n=a=te)&&(a=yx(a,t.type,t.pendingProps,nt),a!==null?(t.stateNode=a,Ae=t,te=ct(a.firstChild),nt=!1,n=!0):n=!1),n||hl(t)),Sc(t),n=t.type,u=t.pendingProps,i=e!==null?e.memoizedProps:null,a=u.children,ns(n,u)?a=null:i!==null&&ns(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=qs(e,t,R0,null,null,l),An._currentValue=n),Tu(e,t),ze(e,t,a,l),t.child;case 6:return e===null&&Q&&((e=l=te)&&(l=px(l,t.pendingProps,nt),l!==null?(t.stateNode=l,Ae=t,te=null,e=!0):e=!1),e||hl(t)),null;case 13:return Fd(e,t,l);case 4:return _u(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Bl(t,null,a,l):ze(e,t,a,l),t.child;case 11:return uf(e,t,t.type,t.pendingProps,l);case 7:return ze(e,t,t.pendingProps,l),t.child;case 8:return ze(e,t,t.pendingProps.children,l),t.child;case 12:return ze(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Jt(t,t.type,a.value),ze(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Rl(t),n=Me(n),a=a(n),t.flags|=1,ze(e,t,a,l),t.child;case 14:return cf(e,t,t.type,t.pendingProps,l);case 15:return $d(e,t,t.type,t.pendingProps,l);case 19:return Id(e,t,l);case 31:return L0(e,t,l);case 22:return Wd(e,t,l,t.pendingProps);case 24:return Rl(t),a=Me(me),e===null?(n=Cs(),n===null&&(n=F,u=Us(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},Rs(t),Jt(t,me,n)):(e.lanes&l&&(Gc(e,t),sn(t,null,null,l),cn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Jt(t,me,a)):(a=u.cache,Jt(t,me,a),a!==n.cache&&Hc(t,[me],l,!0))),ze(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(p(156,t.tag))}function Tt(e){e.flags|=4}function lc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Nm())e.flags|=8192;else throw Ul=Qu,_s}else e.flags&=-16777217}function hf(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!km(t))if(Nm())e.flags|=8192;else throw Ul=Qu,_s}function cu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?zr():536870912,e.lanes|=t,Aa|=t)}function wa(e,t){if(!Q)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ee(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Z0(e,t,l){var a=t.pendingProps;switch(Os(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ee(t),null;case 1:return ee(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ht(me),pa(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?Tt(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ki())),ee(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(Tt(t),u!==null?(ee(t),hf(t,u)):(ee(t),lc(t,n,null,a,l))):u?u!==e.memoizedState?(Tt(t),ee(t),hf(t,u)):(ee(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Tt(t),ee(t),lc(t,n,e,a,l)),null;case 27:if(Ru(t),l=al.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Tt(t);else{if(!a){if(t.stateNode===null)throw Error(p(166));return ee(t),null}e=pt.current,Kl(t)?Lo(t):(e=Vm(n,a,l),t.stateNode=e,Tt(t))}return ee(t),null;case 5:if(Ru(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Tt(t);else{if(!a){if(t.stateNode===null)throw Error(p(166));return ee(t),null}if(u=pt.current,Kl(t))Lo(t);else{var i=ti(al.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[Te]=t,u[Ye]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;e:switch(Ee(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Tt(t)}}return ee(t),lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Tt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(p(166));if(e=al.current,Kl(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Ae,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Te]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Ym(e.nodeValue,l)),e||hl(t,!0)}else e=ti(e).createTextNode(a),e[Te]=t,t.stateNode=e}return ee(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Kl(t),l!==null){if(e===null){if(!a)throw Error(p(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(p(557));e[Te]=t}else _l(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ee(t),e=!1}else l=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Ve(t),t):(Ve(t),null);if(t.flags&128)throw Error(p(558))}return ee(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Kl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(p(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(p(317));n[Te]=t}else _l(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ee(t),n=!1}else n=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Ve(t),t):(Ve(t),null)}return Ve(t),t.flags&128?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),cu(t,t.updateQueue),ee(t),null);case 4:return pa(),e===null&&ao(t.stateNode.containerInfo),ee(t),null;case 10:return Ht(t.type),ee(t),null;case 19:if(Ne(se),a=t.memoizedState,a===null)return ee(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)wa(a,!1);else{if(ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=Vu(e),u!==null){for(t.flags|=128,wa(a,!1),e=u.updateQueue,t.updateQueue=e,cu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)ed(l,e),l=l.sibling;return I(se,se.current&1|2),Q&&Ot(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ke()>$u&&(t.flags|=128,n=!0,wa(a,!1),t.lanes=4194304)}else{if(!n)if(e=Vu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,cu(t,e),wa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!Q)return ee(t),null}else 2*ke()-a.renderingStartTime>$u&&l!==536870912&&(t.flags|=128,n=!0,wa(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ke(),e.sibling=null,l=se.current,I(se,n?l&1|2:l&1),Q&&Ot(t,a.treeForkCount),e):(ee(t),null);case 22:case 23:return Ve(t),Bs(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?l&536870912&&!(t.flags&128)&&(ee(t),t.subtreeFlags&6&&(t.flags|=8192)):ee(t),l=t.updateQueue,l!==null&&cu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&Ne(Ol),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ht(me),ee(t),null;case 25:return null;case 30:return null}throw Error(p(156,t.tag))}function w0(e,t){switch(Os(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ht(me),pa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ru(t),null;case 31:if(t.memoizedState!==null){if(Ve(t),t.alternate===null)throw Error(p(340));_l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ve(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(p(340));_l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(se),null;case 4:return pa(),null;case 10:return Ht(t.type),null;case 22:case 23:return Ve(t),Bs(),e!==null&&Ne(Ol),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ht(me),null;case 25:return null;default:return null}}function em(e,t){switch(Os(t),t.tag){case 3:Ht(me),pa();break;case 26:case 27:case 5:Ru(t);break;case 4:pa();break;case 31:t.memoizedState!==null&&Ve(t);break;case 13:Ve(t);break;case 19:Ne(se);break;case 10:Ht(t.type);break;case 22:case 23:Ve(t),Bs(),e!==null&&Ne(Ol);break;case 24:Ht(me)}}function Yn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(s){J(t,t.return,s)}}function gl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var i=a.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,n=t;var o=l,f=s;try{f()}catch(g){J(n,o,g)}}}a=a.next}while(a!==u)}}catch(g){J(t,t.return,g)}}function tm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{fd(t,l)}catch(a){J(e,e.return,a)}}}function lm(e,t,l){l.props=ql(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){J(e,t,a)}}function fn(e,t){try{var l=e.ref;if(l!==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}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){J(e,t,n)}}function yt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){J(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){J(e,t,n)}else l.current=null}function am(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){J(e,e.return,n)}}function ac(e,t,l){try{var a=e.stateNode;mx(a,e.type,l,t),a[Ye]=t}catch(n){J(e,e.return,n)}}function nm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&vl(e.type)||e.tag===4}function nc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&vl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=_t));else if(a!==4&&(a===27&&vl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,l),e=e.sibling;e!==null;)$c(e,t,l),e=e.sibling}function Ju(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&vl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ju(e,t,l),e=e.sibling;e!==null;)Ju(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ee(t,a,l),t[Te]=e,t[Ye]=l}catch(u){J(e,e.return,u)}}var Ut=!1,de=!1,uc=!1,gf=typeof WeakSet=="function"?WeakSet:Set,pe=null;function k0(e,t){if(e=e.containerInfo,ls=ui,e=kr(e),Ts(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var i=0,s=-1,o=-1,f=0,g=0,h=e,d=null;t:for(;;){for(var b;h!==l||n!==0&&h.nodeType!==3||(s=i+n),h!==u||a!==0&&h.nodeType!==3||(o=i+a),h.nodeType===3&&(i+=h.nodeValue.length),(b=h.firstChild)!==null;)d=h,h=b;for(;;){if(h===e)break t;if(d===l&&++f===n&&(s=i),d===u&&++g===a&&(o=i),(b=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=b}l=s===-1||o===-1?null:{start:s,end:o}}else l=null}l=l||{start:0,end:0}}else l=null;for(as={focusedElem:e,selectionRange:l},ui=!1,pe=t;pe!==null;)if(t=pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pe=e;else for(;pe!==null;){switch(t=pe,u=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var S=ql(l.type,n);e=a.getSnapshotBeforeUpdate(S,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(v){J(l,l.return,v)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)us(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":us(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(p(163))}if(e=t.sibling,e!==null){e.return=t.return,pe=e;break}pe=t.return}}function im(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Mt(e,l),a&4&&Yn(5,l);break;case 1:if(Mt(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(i){J(l,l.return,i)}else{var n=ql(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){J(l,l.return,i)}}a&64&&tm(l),a&512&&fn(l,l.return);break;case 3:if(Mt(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{fd(e,t)}catch(i){J(l,l.return,i)}}break;case 27:t===null&&a&4&&um(l);case 26:case 5:Mt(e,l),t===null&&a&4&&am(l),a&512&&fn(l,l.return);break;case 12:Mt(e,l);break;case 31:Mt(e,l),a&4&&om(e,l);break;case 13:Mt(e,l),a&4&&fm(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=tx.bind(null,l),jx(e,l))));break;case 22:if(a=l.memoizedState!==null||Ut,!a){t=t!==null&&t.memoizedState!==null||de,n=Ut;var u=de;Ut=a,(de=t)&&!u?Dt(e,l,(l.subtreeFlags&8772)!==0):Mt(e,l),Ut=n,de=u}break;case 30:break;default:Mt(e,l)}}function cm(e){var t=e.alternate;t!==null&&(e.alternate=null,cm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ys(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ae=null,Be=!1;function At(e,t,l){for(l=l.child;l!==null;)sm(e,t,l),l=l.sibling}function sm(e,t,l){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount(Cn,l)}catch{}switch(l.tag){case 26:de||yt(l,t),At(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:de||yt(l,t);var a=ae,n=Be;vl(l.type)&&(ae=l.stateNode,Be=!1),At(e,t,l),hn(l.stateNode),ae=a,Be=n;break;case 5:de||yt(l,t);case 6:if(a=ae,n=Be,ae=null,At(e,t,l),ae=a,Be=n,ae!==null)if(Be)try{(ae.nodeType===9?ae.body:ae.nodeName==="HTML"?ae.ownerDocument.body:ae).removeChild(l.stateNode)}catch(u){J(l,t,u)}else try{ae.removeChild(l.stateNode)}catch(u){J(l,t,u)}break;case 18:ae!==null&&(Be?(e=ae,Ef(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Oa(e)):Ef(ae,l.stateNode));break;case 4:a=ae,n=Be,ae=l.stateNode.containerInfo,Be=!0,At(e,t,l),ae=a,Be=n;break;case 0:case 11:case 14:case 15:gl(2,l,t),de||gl(4,l,t),At(e,t,l);break;case 1:de||(yt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&lm(l,t,a)),At(e,t,l);break;case 21:At(e,t,l);break;case 22:de=(a=de)||l.memoizedState!==null,At(e,t,l),de=a;break;default:At(e,t,l)}}function om(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oa(e)}catch(l){J(t,t.return,l)}}}function fm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oa(e)}catch(l){J(t,t.return,l)}}function K0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gf),t;default:throw Error(p(435,e.tag))}}function su(e,t){var l=K0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=lx.bind(null,e,a);a.then(n,n)}})}function _e(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 27:if(vl(s.type)){ae=s.stateNode,Be=!1;break e}break;case 5:ae=s.stateNode,Be=!1;break e;case 3:case 4:ae=s.stateNode.containerInfo,Be=!0;break e}s=s.return}if(ae===null)throw Error(p(160));sm(u,i,n),ae=null,Be=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)rm(t,e),t=t.sibling}var rt=null;function rm(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_e(t,e),Re(e),a&4&&(gl(3,e,e.return),Yn(3,e),gl(5,e,e.return));break;case 1:_e(t,e),Re(e),a&512&&(de||l===null||yt(l,l.return)),a&64&&Ut&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=rt;if(_e(t,e),Re(e),a&512&&(de||l===null||yt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Bn]||u[Te]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ee(u,a,l),u[Te]=e,je(u),a=u;break e;case"link":var i=Bf("link","href",n).get(a+(l.href||""));if(i){for(var s=0;s<i.length;s++)if(u=i[s],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(s,1);break t}}u=n.createElement(a),Ee(u,a,l),n.head.appendChild(u);break;case"meta":if(i=Bf("meta","content",n).get(a+(l.content||""))){for(s=0;s<i.length;s++)if(u=i[s],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(s,1);break t}}u=n.createElement(a),Ee(u,a,l),n.head.appendChild(u);break;default:throw Error(p(468,a))}u[Te]=e,je(u),a=u}e.stateNode=a}else Hf(n,e.type,e.stateNode);else e.stateNode=Rf(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Hf(n,e.type,e.stateNode):Rf(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&ac(e,e.memoizedProps,l.memoizedProps)}break;case 27:_e(t,e),Re(e),a&512&&(de||l===null||yt(l,l.return)),l!==null&&a&4&&ac(e,e.memoizedProps,l.memoizedProps);break;case 5:if(_e(t,e),Re(e),a&512&&(de||l===null||yt(l,l.return)),e.flags&32){n=e.stateNode;try{Sa(n,"")}catch(S){J(e,e.return,S)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,ac(e,n,l!==null?l.memoizedProps:n)),a&1024&&(uc=!0);break;case 6:if(_e(t,e),Re(e),a&4){if(e.stateNode===null)throw Error(p(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(S){J(e,e.return,S)}}break;case 3:if(Eu=null,n=rt,rt=li(t.containerInfo),_e(t,e),rt=n,Re(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Oa(t.containerInfo)}catch(S){J(e,e.return,S)}uc&&(uc=!1,dm(e));break;case 4:a=rt,rt=li(e.stateNode.containerInfo),_e(t,e),Re(e),rt=a;break;case 12:_e(t,e),Re(e);break;case 31:_e(t,e),Re(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,su(e,a)));break;case 13:_e(t,e),Re(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ai=ke()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,su(e,a)));break;case 22:n=e.memoizedState!==null;var o=l!==null&&l.memoizedState!==null,f=Ut,g=de;if(Ut=f||n,de=g||o,_e(t,e),de=g,Ut=f,Re(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||o||Ut||de||Ml(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){o=l=t;try{if(u=o.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{s=o.stateNode;var h=o.memoizedProps.style,d=h!=null&&h.hasOwnProperty("display")?h.display:null;s.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(S){J(o,o.return,S)}}}else if(t.tag===6){if(l===null){o=t;try{o.stateNode.nodeValue=n?"":o.memoizedProps}catch(S){J(o,o.return,S)}}}else if(t.tag===18){if(l===null){o=t;try{var b=o.stateNode;n?Df(b,!0):Df(o.stateNode,!1)}catch(S){J(o,o.return,S)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,su(e,l))));break;case 19:_e(t,e),Re(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,su(e,a)));break;case 30:break;case 21:break;default:_e(t,e),Re(e)}}function Re(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(nm(a)){l=a;break}a=a.return}if(l==null)throw Error(p(160));switch(l.tag){case 27:var n=l.stateNode,u=nc(e);Ju(e,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(Sa(i,""),l.flags&=-33);var s=nc(e);Ju(e,s,i);break;case 3:case 4:var o=l.stateNode.containerInfo,f=nc(e);$c(e,f,o);break;default:throw Error(p(161))}}catch(g){J(e,e.return,g)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Mt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)im(e,t.alternate,t),t=t.sibling}function Ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:gl(4,t,t.return),Ml(t);break;case 1:yt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&lm(t,t.return,l),Ml(t);break;case 27:hn(t.stateNode);case 26:case 5:yt(t,t.return),Ml(t);break;case 22:t.memoizedState===null&&Ml(t);break;case 30:Ml(t);break;default:Ml(t)}e=e.sibling}}function Dt(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,i=u.flags;switch(u.tag){case 0:case 11:case 15:Dt(n,u,l),Yn(4,u);break;case 1:if(Dt(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(f){J(a,a.return,f)}if(a=u,n=a.updateQueue,n!==null){var s=a.stateNode;try{var o=n.shared.hiddenCallbacks;if(o!==null)for(n.shared.hiddenCallbacks=null,n=0;n<o.length;n++)od(o[n],s)}catch(f){J(a,a.return,f)}}l&&i&64&&tm(u),fn(u,u.return);break;case 27:um(u);case 26:case 5:Dt(n,u,l),l&&a===null&&i&4&&am(u),fn(u,u.return);break;case 12:Dt(n,u,l);break;case 31:Dt(n,u,l),l&&i&4&&om(n,u);break;case 13:Dt(n,u,l),l&&i&4&&fm(n,u);break;case 22:u.memoizedState===null&&Dt(n,u,l),fn(u,u.return);break;case 30:break;default:Dt(n,u,l)}t=t.sibling}}function Fs(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&qn(l))}function Is(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qn(e))}function ft(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)mm(e,t,l,a),t=t.sibling}function mm(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:ft(e,t,l,a),n&2048&&Yn(9,t);break;case 1:ft(e,t,l,a);break;case 3:ft(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qn(e)));break;case 12:if(n&2048){ft(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,i=u.id,s=u.onPostCommit;typeof s=="function"&&s(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(o){J(t,t.return,o)}}else ft(e,t,l,a);break;case 31:ft(e,t,l,a);break;case 13:ft(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,i=t.alternate,t.memoizedState!==null?u._visibility&2?ft(e,t,l,a):rn(e,t):u._visibility&2?ft(e,t,l,a):(u._visibility|=2,Fl(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Fs(i,t);break;case 24:ft(e,t,l,a),n&2048&&Is(t.alternate,t);break;default:ft(e,t,l,a)}}function Fl(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,i=t,s=l,o=a,f=i.flags;switch(i.tag){case 0:case 11:case 15:Fl(u,i,s,o,n),Yn(8,i);break;case 23:break;case 22:var g=i.stateNode;i.memoizedState!==null?g._visibility&2?Fl(u,i,s,o,n):rn(u,i):(g._visibility|=2,Fl(u,i,s,o,n)),n&&f&2048&&Fs(i.alternate,i);break;case 24:Fl(u,i,s,o,n),n&&f&2048&&Is(i.alternate,i);break;default:Fl(u,i,s,o,n)}t=t.sibling}}function rn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:rn(l,a),n&2048&&Fs(a.alternate,a);break;case 24:rn(l,a),n&2048&&Is(a.alternate,a);break;default:rn(l,a)}t=t.sibling}}var en=8192;function Jl(e,t,l){if(e.subtreeFlags&en)for(e=e.child;e!==null;)hm(e,t,l),e=e.sibling}function hm(e,t,l){switch(e.tag){case 26:Jl(e,t,l),e.flags&en&&e.memoizedState!==null&&_x(l,rt,e.memoizedState,e.memoizedProps);break;case 5:Jl(e,t,l);break;case 3:case 4:var a=rt;rt=li(e.stateNode.containerInfo),Jl(e,t,l),rt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=en,en=16777216,Jl(e,t,l),en=a):Jl(e,t,l));break;default:Jl(e,t,l)}}function gm(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 ka(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];pe=a,bm(a,e)}gm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xm(e),e=e.sibling}function xm(e){switch(e.tag){case 0:case 11:case 15:ka(e),e.flags&2048&&gl(9,e,e.return);break;case 3:ka(e);break;case 12:ka(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Au(e)):ka(e);break;default:ka(e)}}function Au(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];pe=a,bm(a,e)}gm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:gl(8,t,t.return),Au(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Au(t));break;default:Au(t)}e=e.sibling}}function bm(e,t){for(;pe!==null;){var l=pe;switch(l.tag){case 0:case 11:case 15:gl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:qn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,pe=a;else e:for(l=e;pe!==null;){a=pe;var n=a.sibling,u=a.return;if(cm(a),a===l){pe=null;break e}if(n!==null){n.return=u,pe=n;break e}pe=u}}}var J0={getCacheForType:function(e){var t=Me(me),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Me(me).controller.signal}},$0=typeof WeakMap=="function"?WeakMap:Map,L=0,F=null,Y=null,X=0,K=0,Le=null,el=!1,Ha=!1,Ps=!1,Lt=0,ie=0,xl=0,Cl=0,eo=0,we=0,Aa=0,dn=null,He=null,Wc=!1,Ai=0,vm=0,$u=1/0,Wu=null,cl=null,xe=0,sl=null,Ma=null,qt=0,Fc=0,Ic=null,ym=null,mn=0,Pc=null;function $e(){return L&2&&X!==0?X&-X:U.T!==null?lo():Er()}function pm(){if(we===0)if(!(X&536870912)||Q){var e=eu;eu<<=1,!(eu&3932160)&&(eu=262144),we=e}else we=536870912;return e=Fe.current,e!==null&&(e.flags|=32),we}function Ge(e,t,l){(e===F&&(K===2||K===9)||e.cancelPendingCommit!==null)&&(Ea(e,0),tl(e,X,we,!1)),Rn(e,l),(!(L&2)||e!==F)&&(e===F&&(!(L&2)&&(Cl|=l),ie===4&&tl(e,X,we,!1)),Nt(e))}function jm(e,t,l){if(L&6)throw Error(p(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||_n(e,t),n=a?I0(e,t):ic(e,t,!0),u=a;do{if(n===0){Ha&&!a&&tl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!W0(l)){n=ic(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var s=e;n=dn;var o=s.current.memoizedState.isDehydrated;if(o&&(Ea(s,i).flags|=256),i=ic(s,i,!1),i!==2){if(Ps&&!o){s.errorRecoveryDisabledLanes|=u,Cl|=u,n=4;break e}u=He,He=n,u!==null&&(He===null?He=u:He.push.apply(He,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){Ea(e,0),tl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(p(345));case 4:if((t&4194048)!==t)break;case 6:tl(a,t,we,!el);break e;case 2:He=null;break;case 3:case 5:break;default:throw Error(p(329))}if((t&62914560)===t&&(n=Ai+300-ke(),10<n)){if(tl(a,t,we,!el),gi(a,0,!0)!==0)break e;qt=t,a.timeoutHandle=Qm(xf.bind(null,a,l,He,Wu,Wc,t,we,Cl,Aa,el,u,"Throttled",-0,0),n);break e}xf(a,l,He,Wu,Wc,t,we,Cl,Aa,el,u,null,-0,0)}}break}while(!0);Nt(e)}function xf(e,t,l,a,n,u,i,s,o,f,g,h,d,b){if(e.timeoutHandle=-1,h=t.subtreeFlags,h&8192||(h&16785408)===16785408){h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_t},hm(t,u,h);var S=(u&62914560)===u?Ai-ke():(u&4194048)===u?vm-ke():0;if(S=Rx(h,S),S!==null){qt=u,e.cancelPendingCommit=S(vf.bind(null,e,t,u,l,a,n,i,s,o,g,h,null,d,b)),tl(e,u,i,!f);return}}vf(e,t,u,l,a,n,i,s,o)}function W0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!We(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 tl(e,t,l,a){t&=~eo,t&=~Cl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-Je(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&Tr(e,l,t)}function Mi(){return L&6?!0:(Xn(0),!1)}function to(){if(Y!==null){if(K===0)var e=Y.return;else e=Y,Rt=Zl=null,Xs(e),ga=null,jn=0,e=Y;for(;e!==null;)em(e.alternate,e),e=e.return;Y=null}}function Ea(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,xx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),qt=0,to(),F=e,Y=l=Bt(e.current,null),X=t,K=0,Le=null,el=!1,Ha=_n(e,t),Ps=!1,Aa=we=eo=Cl=xl=ie=0,He=dn=null,Wc=!1,t&8&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-Je(a),u=1<<n;t|=e[n],a&=~u}return Lt=t,yi(),l}function Sm(e,t){B=null,U.H=Nn,t===Ba||t===ji?(t=Ko(),K=3):t===_s?(t=Ko(),K=4):K=t===$s?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Le=t,Y===null&&(ie=1,ku(e,at(t,e.current)))}function Nm(){var e=Fe.current;return e===null?!0:(X&4194048)===X?it===null:(X&62914560)===X||X&536870912?e===it:!1}function zm(){var e=U.H;return U.H=Nn,e===null?Nn:e}function Tm(){var e=U.A;return U.A=J0,e}function Fu(){ie=4,el||(X&4194048)!==X&&Fe.current!==null||(Ha=!0),!(xl&134217727)&&!(Cl&134217727)||F===null||tl(F,X,we,!1)}function ic(e,t,l){var a=L;L|=2;var n=zm(),u=Tm();(F!==e||X!==t)&&(Wu=null,Ea(e,t)),t=!1;var i=ie;e:do try{if(K!==0&&Y!==null){var s=Y,o=Le;switch(K){case 8:to(),i=6;break e;case 3:case 2:case 9:case 6:Fe.current===null&&(t=!0);var f=K;if(K=0,Le=null,fa(e,s,o,f),l&&Ha){i=0;break e}break;default:f=K,K=0,Le=null,fa(e,s,o,f)}}F0(),i=ie;break}catch(g){Sm(e,g)}while(!0);return t&&e.shellSuspendCounter++,Rt=Zl=null,L=a,U.H=n,U.A=u,Y===null&&(F=null,X=0,yi()),i}function F0(){for(;Y!==null;)Am(Y)}function I0(e,t){var l=L;L|=2;var a=zm(),n=Tm();F!==e||X!==t?(Wu=null,$u=ke()+500,Ea(e,t)):Ha=_n(e,t);e:do try{if(K!==0&&Y!==null){t=Y;var u=Le;t:switch(K){case 1:K=0,Le=null,fa(e,t,u,1);break;case 2:case 9:if(ko(u)){K=0,Le=null,bf(t);break}t=function(){K!==2&&K!==9||F!==e||(K=7),Nt(e)},u.then(t,t);break e;case 3:K=7;break e;case 4:K=5;break e;case 7:ko(u)?(K=0,Le=null,bf(t)):(K=0,Le=null,fa(e,t,u,7));break;case 5:var i=null;switch(Y.tag){case 26:i=Y.memoizedState;case 5:case 27:var s=Y;if(i?km(i):s.stateNode.complete){K=0,Le=null;var o=s.sibling;if(o!==null)Y=o;else{var f=s.return;f!==null?(Y=f,Ei(f)):Y=null}break t}}K=0,Le=null,fa(e,t,u,5);break;case 6:K=0,Le=null,fa(e,t,u,6);break;case 8:to(),ie=6;break e;default:throw Error(p(462))}}P0();break}catch(g){Sm(e,g)}while(!0);return Rt=Zl=null,U.H=a,U.A=n,L=l,Y!==null?0:(F=null,X=0,yi(),ie)}function P0(){for(;Y!==null&&!Sg();)Am(Y)}function Am(e){var t=Pd(e.alternate,e,Lt);e.memoizedProps=e.pendingProps,t===null?Ei(e):Y=t}function bf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=ff(l,t,t.pendingProps,t.type,void 0,X);break;case 11:t=ff(l,t,t.pendingProps,t.type.render,t.ref,X);break;case 5:Xs(t);default:em(l,t),t=Y=ed(t,Lt),t=Pd(l,t,Lt)}e.memoizedProps=e.pendingProps,t===null?Ei(e):Y=t}function fa(e,t,l,a){Rt=Zl=null,Xs(t),ga=null,jn=0;var n=t.return;try{if(Q0(e,n,t,l,X)){ie=1,ku(e,at(l,e.current)),Y=null;return}}catch(u){if(n!==null)throw Y=n,u;ie=1,ku(e,at(l,e.current)),Y=null;return}t.flags&32768?(Q||a===1?e=!0:Ha||X&536870912?e=!1:(el=e=!0,(a===2||a===9||a===3||a===6)&&(a=Fe.current,a!==null&&a.tag===13&&(a.flags|=16384))),Mm(t,e)):Ei(t)}function Ei(e){var t=e;do{if(t.flags&32768){Mm(t,el);return}e=t.return;var l=Z0(t.alternate,t,Lt);if(l!==null){Y=l;return}if(t=t.sibling,t!==null){Y=t;return}Y=t=e}while(t!==null);ie===0&&(ie=5)}function Mm(e,t){do{var l=w0(e.alternate,e);if(l!==null){l.flags&=32767,Y=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Y=e;return}Y=e=l}while(e!==null);ie=6,Y=null}function vf(e,t,l,a,n,u,i,s,o){e.cancelPendingCommit=null;do Di();while(xe!==0);if(L&6)throw Error(p(327));if(t!==null){if(t===e.current)throw Error(p(177));if(u=t.lanes|t.childLanes,u|=As,Cg(e,l,u,i,s,o),e===F&&(Y=F=null,X=0),Ma=t,sl=e,qt=l,Fc=u,Ic=n,ym=a,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ax(Bu,function(){return Cm(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,t.subtreeFlags&13878||a){a=U.T,U.T=null,n=V.p,V.p=2,i=L,L|=4;try{k0(e,t,l)}finally{L=i,V.p=n,U.T=a}}xe=1,Em(),Dm(),Om()}}function Em(){if(xe===1){xe=0;var e=sl,t=Ma,l=(t.flags&13878)!==0;if(t.subtreeFlags&13878||l){l=U.T,U.T=null;var a=V.p;V.p=2;var n=L;L|=4;try{rm(t,e);var u=as,i=kr(e.containerInfo),s=u.focusedElem,o=u.selectionRange;if(i!==s&&s&&s.ownerDocument&&wr(s.ownerDocument.documentElement,s)){if(o!==null&&Ts(s)){var f=o.start,g=o.end;if(g===void 0&&(g=f),"selectionStart"in s)s.selectionStart=f,s.selectionEnd=Math.min(g,s.value.length);else{var h=s.ownerDocument||document,d=h&&h.defaultView||window;if(d.getSelection){var b=d.getSelection(),S=s.textContent.length,v=Math.min(o.start,S),D=o.end===void 0?v:Math.min(o.end,S);!b.extend&&v>D&&(i=D,D=v,v=i);var m=Yo(s,v),r=Yo(s,D);if(m&&r&&(b.rangeCount!==1||b.anchorNode!==m.node||b.anchorOffset!==m.offset||b.focusNode!==r.node||b.focusOffset!==r.offset)){var x=h.createRange();x.setStart(m.node,m.offset),b.removeAllRanges(),v>D?(b.addRange(x),b.extend(r.node,r.offset)):(x.setEnd(r.node,r.offset),b.addRange(x))}}}}for(h=[],b=s;b=b.parentNode;)b.nodeType===1&&h.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<h.length;s++){var y=h[s];y.element.scrollLeft=y.left,y.element.scrollTop=y.top}}ui=!!ls,as=ls=null}finally{L=n,V.p=a,U.T=l}}e.current=t,xe=2}}function Dm(){if(xe===2){xe=0;var e=sl,t=Ma,l=(t.flags&8772)!==0;if(t.subtreeFlags&8772||l){l=U.T,U.T=null;var a=V.p;V.p=2;var n=L;L|=4;try{im(e,t.alternate,t)}finally{L=n,V.p=a,U.T=l}}xe=3}}function Om(){if(xe===4||xe===3){xe=0,Ng();var e=sl,t=Ma,l=qt,a=ym;t.subtreeFlags&10256||t.flags&10256?xe=5:(xe=0,Ma=sl=null,Um(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(cl=null),vs(l),t=t.stateNode,Ke&&typeof Ke.onCommitFiberRoot=="function")try{Ke.onCommitFiberRoot(Cn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=U.T,n=V.p,V.p=2,U.T=null;try{for(var u=e.onRecoverableError,i=0;i<a.length;i++){var s=a[i];u(s.value,{componentStack:s.stack})}}finally{U.T=t,V.p=n}}qt&3&&Di(),Nt(e),n=e.pendingLanes,l&261930&&n&42?e===Pc?mn++:(mn=0,Pc=e):mn=0,Xn(0)}}function Um(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,qn(t)))}function Di(){return Em(),Dm(),Om(),Cm()}function Cm(){if(xe!==5)return!1;var e=sl,t=Fc;Fc=0;var l=vs(qt),a=U.T,n=V.p;try{V.p=32>l?32:l,U.T=null,l=Ic,Ic=null;var u=sl,i=qt;if(xe=0,Ma=sl=null,qt=0,L&6)throw Error(p(331));var s=L;if(L|=4,xm(u.current),mm(u,u.current,i,l),L=s,Xn(0,!1),Ke&&typeof Ke.onPostCommitFiberRoot=="function")try{Ke.onPostCommitFiberRoot(Cn,u)}catch{}return!0}finally{V.p=n,U.T=a,Um(e,t)}}function yf(e,t,l){t=at(l,t),t=kc(e.stateNode,t,2),e=il(e,t,2),e!==null&&(Rn(e,2),Nt(e))}function J(e,t,l){if(e.tag===3)yf(e,e,l);else for(;t!==null;){if(t.tag===3){yf(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(cl===null||!cl.has(a))){e=at(l,e),l=Kd(2),a=il(t,l,2),a!==null&&(Jd(l,a,t,e),Rn(a,2),Nt(a));break}}t=t.return}}function cc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new $0;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Ps=!0,n.add(l),e=ex.bind(null,e,t,l),t.then(e,e))}function ex(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,F===e&&(X&l)===l&&(ie===4||ie===3&&(X&62914560)===X&&300>ke()-Ai?!(L&2)&&Ea(e,0):eo|=l,Aa===X&&(Aa=0)),Nt(e)}function _m(e,t){t===0&&(t=zr()),e=Vl(e,t),e!==null&&(Rn(e,t),Nt(e))}function tx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),_m(e,l)}function lx(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(p(314))}a!==null&&a.delete(t),_m(e,l)}function ax(e,t){return xs(e,t)}var Iu=null,Il=null,es=!1,Pu=!1,sc=!1,ll=0;function Nt(e){e!==Il&&e.next===null&&(Il===null?Iu=Il=e:Il=Il.next=e),Pu=!0,es||(es=!0,ux())}function Xn(e,t){if(!sc&&Pu){sc=!0;do for(var l=!1,a=Iu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,s=a.pingedLanes;u=(1<<31-Je(42|e)+1)-1,u&=n&~(i&~s),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,pf(a,u))}else u=X,u=gi(a,a===F?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(u&3)||_n(a,u)||(l=!0,pf(a,u));a=a.next}while(l);sc=!1}}function nx(){Rm()}function Rm(){Pu=es=!1;var e=0;ll!==0&&gx()&&(e=ll);for(var t=ke(),l=null,a=Iu;a!==null;){var n=a.next,u=Bm(a,t);u===0?(a.next=null,l===null?Iu=n:l.next=n,n===null&&(Il=l)):(l=a,(e!==0||u&3)&&(Pu=!0)),a=n}xe!==0&&xe!==5||Xn(e),ll!==0&&(ll=0)}function Bm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var i=31-Je(u),s=1<<i,o=n[i];o===-1?(!(s&l)||s&a)&&(n[i]=Ug(s,t)):o<=t&&(e.expiredLanes|=s),u&=~s}if(t=F,l=X,l=gi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(K===2||K===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Hi(a),e.callbackNode=null,e.callbackPriority=0;if(!(l&3)||_n(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Hi(a),vs(l)){case 2:case 8:l=Sr;break;case 32:l=Bu;break;case 268435456:l=Nr;break;default:l=Bu}return a=Hm.bind(null,e),l=xs(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Hi(a),e.callbackPriority=2,e.callbackNode=null,2}function Hm(e,t){if(xe!==0&&xe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Di()&&e.callbackNode!==l)return null;var a=X;return a=gi(e,e===F?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(jm(e,a,t),Bm(e,ke()),e.callbackNode!=null&&e.callbackNode===l?Hm.bind(null,e):null)}function pf(e,t){if(Di())return null;jm(e,t,!0)}function ux(){bx(function(){L&6?xs(jr,nx):Rm()})}function lo(){if(ll===0){var e=Na;e===0&&(e=Pn,Pn<<=1,!(Pn&261888)&&(Pn=256)),ll=e}return ll}function jf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:bu(""+e)}function Sf(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function ix(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=jf((n[Ye]||null).action),i=a.submitter;i&&(t=(t=i[Ye]||null)?jf(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var s=new xi("action","action",null,a,n);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ll!==0){var o=i?Sf(n,i):new FormData(n);Zc(l,{pending:!0,data:o,method:n.method,action:u},null,o)}}else typeof u=="function"&&(s.preventDefault(),o=i?Sf(n,i):new FormData(n),Zc(l,{pending:!0,data:o,method:n.method,action:u},u,o))},currentTarget:n}]})}}for(var oc=0;oc<Cc.length;oc++){var fc=Cc[oc],cx=fc.toLowerCase(),sx=fc[0].toUpperCase()+fc.slice(1);mt(cx,"on"+sx)}mt(Jr,"onAnimationEnd");mt($r,"onAnimationIteration");mt(Wr,"onAnimationStart");mt("dblclick","onDoubleClick");mt("focusin","onFocus");mt("focusout","onBlur");mt(z0,"onTransitionRun");mt(T0,"onTransitionStart");mt(A0,"onTransitionCancel");mt(Fr,"onTransitionEnd");ja("onMouseEnter",["mouseout","mouseover"]);ja("onMouseLeave",["mouseout","mouseover"]);ja("onPointerEnter",["pointerout","pointerover"]);ja("onPointerLeave",["pointerout","pointerover"]);Xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zn="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(" "),ox=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zn));function qm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var i=a.length-1;0<=i;i--){var s=a[i],o=s.instance,f=s.currentTarget;if(s=s.listener,o!==u&&n.isPropagationStopped())break e;u=s,n.currentTarget=f;try{u(n)}catch(g){qu(g)}n.currentTarget=null,u=o}else for(i=0;i<a.length;i++){if(s=a[i],o=s.instance,f=s.currentTarget,s=s.listener,o!==u&&n.isPropagationStopped())break e;u=s,n.currentTarget=f;try{u(n)}catch(g){qu(g)}n.currentTarget=null,u=o}}}}function G(e,t){var l=t[zc];l===void 0&&(l=t[zc]=new Set);var a=e+"__bubble";l.has(a)||(Gm(t,e,2,!1),l.add(a))}function rc(e,t,l){var a=0;t&&(a|=4),Gm(l,e,a,t)}var ou="_reactListening"+Math.random().toString(36).slice(2);function ao(e){if(!e[ou]){e[ou]=!0,Dr.forEach(function(l){l!=="selectionchange"&&(ox.has(l)||rc(l,!1,e),rc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ou]||(t[ou]=!0,rc("selectionchange",!1,t))}}function Gm(e,t,l,a){switch(Fm(t)){case 2:var n=qx;break;case 8:n=Gx;break;default:n=co}l=n.bind(null,t,l,e),n=void 0,!Dc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function dc(e,t,l,a,n){var u=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var s=a.stateNode.containerInfo;if(s===n)break;if(i===4)for(i=a.return;i!==null;){var o=i.tag;if((o===3||o===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;s!==null;){if(i=ta(s),i===null)return;if(o=i.tag,o===5||o===6||o===26||o===27){a=u=i;continue e}s=s.parentNode}}a=a.return}qr(function(){var f=u,g=js(l),h=[];e:{var d=Ir.get(e);if(d!==void 0){var b=xi,S=e;switch(e){case"keypress":if(yu(l)===0)break e;case"keydown":case"keyup":b=l0;break;case"focusin":S="focus",b=Qi;break;case"focusout":S="blur",b=Qi;break;case"beforeblur":case"afterblur":b=Qi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":b=Do;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":b=Zg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":b=u0;break;case Jr:case $r:case Wr:b=Kg;break;case Fr:b=c0;break;case"scroll":case"scrollend":b=Lg;break;case"wheel":b=o0;break;case"copy":case"cut":case"paste":b=$g;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":b=Uo;break;case"toggle":case"beforetoggle":b=r0}var v=(t&4)!==0,D=!v&&(e==="scroll"||e==="scrollend"),m=v?d!==null?d+"Capture":null:d;v=[];for(var r=f,x;r!==null;){var y=r;if(x=y.stateNode,y=y.tag,y!==5&&y!==26&&y!==27||x===null||m===null||(y=xn(r,m),y!=null&&v.push(Tn(r,y,x))),D)break;r=r.return}0<v.length&&(d=new b(d,S,null,l,g),h.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",b=e==="mouseout"||e==="pointerout",d&&l!==Ec&&(S=l.relatedTarget||l.fromElement)&&(ta(S)||S[Ca]))break e;if((b||d)&&(d=g.window===g?g:(d=g.ownerDocument)?d.defaultView||d.parentWindow:window,b?(S=l.relatedTarget||l.toElement,b=f,S=S?ta(S):null,S!==null&&(D=Un(S),v=S.tag,S!==D||v!==5&&v!==27&&v!==6)&&(S=null)):(b=null,S=f),b!==S)){if(v=Do,y="onMouseLeave",m="onMouseEnter",r="mouse",(e==="pointerout"||e==="pointerover")&&(v=Uo,y="onPointerLeave",m="onPointerEnter",r="pointer"),D=b==null?d:Ia(b),x=S==null?d:Ia(S),d=new v(y,r+"leave",b,l,g),d.target=D,d.relatedTarget=x,y=null,ta(g)===f&&(v=new v(m,r+"enter",S,l,g),v.target=x,v.relatedTarget=D,y=v),D=y,b&&S)t:{for(v=fx,m=b,r=S,x=0,y=m;y;y=v(y))x++;y=0;for(var M=r;M;M=v(M))y++;for(;0<x-y;)m=v(m),x--;for(;0<y-x;)r=v(r),y--;for(;x--;){if(m===r||r!==null&&m===r.alternate){v=m;break t}m=v(m),r=v(r)}v=null}else v=null;b!==null&&Nf(h,d,b,v,!1),S!==null&&D!==null&&Nf(h,D,S,v,!0)}}e:{if(d=f?Ia(f):window,b=d.nodeName&&d.nodeName.toLowerCase(),b==="select"||b==="input"&&d.type==="file")var C=Bo;else if(Ro(d))if(Vr)C=j0;else{C=y0;var z=v0}else b=d.nodeName,!b||b.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?f&&ps(f.elementType)&&(C=Bo):C=p0;if(C&&(C=C(e,f))){Lr(h,C,l,g);break e}z&&z(e,d,f),e==="focusout"&&f&&d.type==="number"&&f.memoizedProps.value!=null&&Mc(d,"number",d.value)}switch(z=f?Ia(f):window,e){case"focusin":(Ro(z)||z.contentEditable==="true")&&(na=z,Oc=f,an=null);break;case"focusout":an=Oc=na=null;break;case"mousedown":Uc=!0;break;case"contextmenu":case"mouseup":case"dragend":Uc=!1,Xo(h,l,g);break;case"selectionchange":if(N0)break;case"keydown":case"keyup":Xo(h,l,g)}var j;if(zs)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else aa?Xr(e,l)&&(O="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(O="onCompositionStart");O&&(Yr&&l.locale!=="ko"&&(aa||O!=="onCompositionStart"?O==="onCompositionEnd"&&aa&&(j=Gr()):(Pt=g,Ss="value"in Pt?Pt.value:Pt.textContent,aa=!0)),z=ei(f,O),0<z.length&&(O=new Oo(O,e,null,l,g),h.push({event:O,listeners:z}),j?O.data=j:(j=Qr(l),j!==null&&(O.data=j)))),(j=m0?h0(e,l):g0(e,l))&&(O=ei(f,"onBeforeInput"),0<O.length&&(z=new Oo("onBeforeInput","beforeinput",null,l,g),h.push({event:z,listeners:O}),z.data=j)),ix(h,e,f,l,g)}qm(h,t)})}function Tn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ei(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=xn(e,l),n!=null&&a.unshift(Tn(e,n,u)),n=xn(e,t),n!=null&&a.push(Tn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function fx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Nf(e,t,l,a,n){for(var u=t._reactName,i=[];l!==null&&l!==a;){var s=l,o=s.alternate,f=s.stateNode;if(s=s.tag,o!==null&&o===a)break;s!==5&&s!==26&&s!==27||f===null||(o=f,n?(f=xn(l,u),f!=null&&i.unshift(Tn(l,f,o))):n||(f=xn(l,u),f!=null&&i.push(Tn(l,f,o)))),l=l.return}i.length!==0&&e.push({event:t,listeners:i})}var rx=/\r\n?/g,dx=/\u0000|\uFFFD/g;function zf(e){return(typeof e=="string"?e:""+e).replace(rx,`
25
- `).replace(dx,"")}function Ym(e,t){return t=zf(t),zf(e)===t}function $(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Sa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Sa(e,""+a);break;case"className":lu(e,"class",a);break;case"tabIndex":lu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":lu(e,l,a);break;case"style":Hr(e,a,u);break;case"data":if(t!=="object"){lu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=bu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&$(e,t,"name",n.name,n,null),$(e,t,"formEncType",n.formEncType,n,null),$(e,t,"formMethod",n.formMethod,n,null),$(e,t,"formTarget",n.formTarget,n,null)):($(e,t,"encType",n.encType,n,null),$(e,t,"method",n.method,n,null),$(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=bu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=_t);break;case"onScroll":a!=null&&G("scroll",e);break;case"onScrollEnd":a!=null&&G("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(p(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(p(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=bu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":G("beforetoggle",e),G("toggle",e),xu(e,"popover",a);break;case"xlinkActuate":zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":zt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":zt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":zt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":zt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":xu(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Xg.get(l)||l,xu(e,l,a))}}function ts(e,t,l,a,n,u){switch(l){case"style":Hr(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(p(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(p(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Sa(e,a):(typeof a=="number"||typeof a=="bigint")&&Sa(e,""+a);break;case"onScroll":a!=null&&G("scroll",e);break;case"onScrollEnd":a!=null&&G("scrollend",e);break;case"onClick":a!=null&&(e.onclick=_t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Or.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[Ye]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):xu(e,l,a)}}}function Ee(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":G("error",e),G("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(p(137,t));default:$(e,t,u,i,l,null)}}n&&$(e,t,"srcSet",l.srcSet,l,null),a&&$(e,t,"src",l.src,l,null);return;case"input":G("invalid",e);var s=u=i=n=null,o=null,f=null;for(a in l)if(l.hasOwnProperty(a)){var g=l[a];if(g!=null)switch(a){case"name":n=g;break;case"type":i=g;break;case"checked":o=g;break;case"defaultChecked":f=g;break;case"value":u=g;break;case"defaultValue":s=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(p(137,t));break;default:$(e,t,a,g,l,null)}}_r(e,u,s,o,f,i,n,!1);return;case"select":G("invalid",e),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(s=l[n],s!=null))switch(n){case"value":u=s;break;case"defaultValue":i=s;break;case"multiple":a=s;default:$(e,t,n,s,l,null)}t=u,l=i,e.multiple=!!a,t!=null?da(e,!!a,t,!1):l!=null&&da(e,!!a,l,!0);return;case"textarea":G("invalid",e),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(s=l[i],s!=null))switch(i){case"value":a=s;break;case"defaultValue":n=s;break;case"children":u=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(p(91));break;default:$(e,t,i,s,l,null)}Br(e,a,n,u);return;case"option":for(o in l)if(l.hasOwnProperty(o)&&(a=l[o],a!=null))switch(o){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:$(e,t,o,a,l,null)}return;case"dialog":G("beforetoggle",e),G("toggle",e),G("cancel",e),G("close",e);break;case"iframe":case"object":G("load",e);break;case"video":case"audio":for(a=0;a<zn.length;a++)G(zn[a],e);break;case"image":G("error",e),G("load",e);break;case"details":G("toggle",e);break;case"embed":case"source":case"link":G("error",e),G("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(f in l)if(l.hasOwnProperty(f)&&(a=l[f],a!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(p(137,t));default:$(e,t,f,a,l,null)}return;default:if(ps(t)){for(g in l)l.hasOwnProperty(g)&&(a=l[g],a!==void 0&&ts(e,t,g,a,l,void 0));return}}for(s in l)l.hasOwnProperty(s)&&(a=l[s],a!=null&&$(e,t,s,a,l,null))}function mx(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,s=null,o=null,f=null,g=null;for(b in l){var h=l[b];if(l.hasOwnProperty(b)&&h!=null)switch(b){case"checked":break;case"value":break;case"defaultValue":o=h;default:a.hasOwnProperty(b)||$(e,t,b,null,a,h)}}for(var d in a){var b=a[d];if(h=l[d],a.hasOwnProperty(d)&&(b!=null||h!=null))switch(d){case"type":u=b;break;case"name":n=b;break;case"checked":f=b;break;case"defaultChecked":g=b;break;case"value":i=b;break;case"defaultValue":s=b;break;case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(p(137,t));break;default:b!==h&&$(e,t,d,b,a,h)}}Ac(e,i,s,o,f,g,u,n);return;case"select":b=i=s=d=null;for(u in l)if(o=l[u],l.hasOwnProperty(u)&&o!=null)switch(u){case"value":break;case"multiple":b=o;default:a.hasOwnProperty(u)||$(e,t,u,null,a,o)}for(n in a)if(u=a[n],o=l[n],a.hasOwnProperty(n)&&(u!=null||o!=null))switch(n){case"value":d=u;break;case"defaultValue":s=u;break;case"multiple":i=u;default:u!==o&&$(e,t,n,u,a,o)}t=s,l=i,a=b,d!=null?da(e,!!l,d,!1):!!a!=!!l&&(t!=null?da(e,!!l,t,!0):da(e,!!l,l?[]:"",!1));return;case"textarea":b=d=null;for(s in l)if(n=l[s],l.hasOwnProperty(s)&&n!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:$(e,t,s,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":d=n;break;case"defaultValue":b=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(p(91));break;default:n!==u&&$(e,t,i,n,a,u)}Rr(e,d,b);return;case"option":for(var S in l)if(d=l[S],l.hasOwnProperty(S)&&d!=null&&!a.hasOwnProperty(S))switch(S){case"selected":e.selected=!1;break;default:$(e,t,S,null,a,d)}for(o in a)if(d=a[o],b=l[o],a.hasOwnProperty(o)&&d!==b&&(d!=null||b!=null))switch(o){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:$(e,t,o,d,a,b)}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 v in l)d=l[v],l.hasOwnProperty(v)&&d!=null&&!a.hasOwnProperty(v)&&$(e,t,v,null,a,d);for(f in a)if(d=a[f],b=l[f],a.hasOwnProperty(f)&&d!==b&&(d!=null||b!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(p(137,t));break;default:$(e,t,f,d,a,b)}return;default:if(ps(t)){for(var D in l)d=l[D],l.hasOwnProperty(D)&&d!==void 0&&!a.hasOwnProperty(D)&&ts(e,t,D,void 0,a,d);for(g in a)d=a[g],b=l[g],!a.hasOwnProperty(g)||d===b||d===void 0&&b===void 0||ts(e,t,g,d,a,b);return}}for(var m in l)d=l[m],l.hasOwnProperty(m)&&d!=null&&!a.hasOwnProperty(m)&&$(e,t,m,null,a,d);for(h in a)d=a[h],b=l[h],!a.hasOwnProperty(h)||d===b||d==null&&b==null||$(e,t,h,d,a,b)}function Tf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,s=n.duration;if(u&&s&&Tf(i)){for(i=0,s=n.responseEnd,a+=1;a<l.length;a++){var o=l[a],f=o.startTime;if(f>s)break;var g=o.transferSize,h=o.initiatorType;g&&Tf(h)&&(o=o.responseEnd,i+=g*(o<s?1:(s-f)/(o-f)))}if(--a,t+=8*(u+i)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ls=null,as=null;function ti(e){return e.nodeType===9?e:e.ownerDocument}function Af(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Xm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ns(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mc=null;function gx(){var e=window.event;return e&&e.type==="popstate"?e===mc?!1:(mc=e,!0):(mc=null,!1)}var Qm=typeof setTimeout=="function"?setTimeout:void 0,xx=typeof clearTimeout=="function"?clearTimeout:void 0,Mf=typeof Promise=="function"?Promise:void 0,bx=typeof queueMicrotask=="function"?queueMicrotask:typeof Mf<"u"?function(e){return Mf.resolve(null).then(e).catch(vx)}:Qm;function vx(e){setTimeout(function(){throw e})}function vl(e){return e==="head"}function Ef(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Oa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")hn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,hn(l);for(var u=l.firstChild;u;){var i=u.nextSibling,s=u.nodeName;u[Bn]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&hn(e.ownerDocument.body);l=n}while(l);Oa(t)}function Df(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function us(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":us(l),ys(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function yx(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Bn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=ct(e.nextSibling),e===null)break}return null}function px(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=ct(e.nextSibling),e===null))return null;return e}function Lm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ct(e.nextSibling),e===null))return null;return e}function is(e){return e.data==="$?"||e.data==="$~"}function cs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function jx(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function ct(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ss=null;function Of(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return ct(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Uf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Vm(e,t,l){switch(t=ti(l),e){case"html":if(e=t.documentElement,!e)throw Error(p(452));return e;case"head":if(e=t.head,!e)throw Error(p(453));return e;case"body":if(e=t.body,!e)throw Error(p(454));return e;default:throw Error(p(451))}}function hn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ys(e)}var st=new Map,Cf=new Set;function li(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Zt=V.d;V.d={f:Sx,r:Nx,D:zx,C:Tx,L:Ax,m:Mx,X:Dx,S:Ex,M:Ox};function Sx(){var e=Zt.f(),t=Mi();return e||t}function Nx(e){var t=_a(e);t!==null&&t.tag===5&&t.type==="form"?Hd(t):Zt.r(e)}var qa=typeof document>"u"?null:document;function Zm(e,t,l){var a=qa;if(a&&typeof t=="string"&&t){var n=lt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Cf.has(n)||(Cf.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ee(t,"link",e),je(t),a.head.appendChild(t)))}}function zx(e){Zt.D(e),Zm("dns-prefetch",e,null)}function Tx(e,t){Zt.C(e,t),Zm("preconnect",e,t)}function Ax(e,t,l){Zt.L(e,t,l);var a=qa;if(a&&e&&t){var n='link[rel="preload"][as="'+lt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+lt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+lt(l.imageSizes)+'"]')):n+='[href="'+lt(e)+'"]';var u=n;switch(t){case"style":u=Da(e);break;case"script":u=Ga(e)}st.has(u)||(e=le({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),st.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Qn(u))||t==="script"&&a.querySelector(Ln(u))||(t=a.createElement("link"),Ee(t,"link",e),je(t),a.head.appendChild(t)))}}function Mx(e,t){Zt.m(e,t);var l=qa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+lt(a)+'"][href="'+lt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ga(e)}if(!st.has(u)&&(e=le({rel:"modulepreload",href:e},t),st.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ln(u)))return}a=l.createElement("link"),Ee(a,"link",e),je(a),l.head.appendChild(a)}}}function Ex(e,t,l){Zt.S(e,t,l);var a=qa;if(a&&e){var n=ra(a).hoistableStyles,u=Da(e);t=t||"default";var i=n.get(u);if(!i){var s={loading:0,preload:null};if(i=a.querySelector(Qn(u)))s.loading=5;else{e=le({rel:"stylesheet",href:e,"data-precedence":t},l),(l=st.get(u))&&no(e,l);var o=i=a.createElement("link");je(o),Ee(o,"link",e),o._p=new Promise(function(f,g){o.onload=f,o.onerror=g}),o.addEventListener("load",function(){s.loading|=1}),o.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Mu(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:s},n.set(u,i)}}}function Dx(e,t){Zt.X(e,t);var l=qa;if(l&&e){var a=ra(l).hoistableScripts,n=Ga(e),u=a.get(n);u||(u=l.querySelector(Ln(n)),u||(e=le({src:e,async:!0},t),(t=st.get(n))&&uo(e,t),u=l.createElement("script"),je(u),Ee(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Ox(e,t){Zt.M(e,t);var l=qa;if(l&&e){var a=ra(l).hoistableScripts,n=Ga(e),u=a.get(n);u||(u=l.querySelector(Ln(n)),u||(e=le({src:e,async:!0,type:"module"},t),(t=st.get(n))&&uo(e,t),u=l.createElement("script"),je(u),Ee(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function _f(e,t,l,a){var n=(n=al.current)?li(n):null;if(!n)throw Error(p(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Da(l.href),l=ra(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Da(l.href);var u=ra(n).hoistableStyles,i=u.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,i),(u=n.querySelector(Qn(e)))&&!u._p&&(i.instance=u,i.state.loading=5),st.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},st.set(e,l),u||Ux(n,e,l,i.state))),t&&a===null)throw Error(p(528,""));return i}if(t&&a!==null)throw Error(p(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ga(l),l=ra(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(p(444,e))}}function Da(e){return'href="'+lt(e)+'"'}function Qn(e){return'link[rel="stylesheet"]['+e+"]"}function wm(e){return le({},e,{"data-precedence":e.precedence,precedence:null})}function Ux(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ee(t,"link",l),je(t),e.head.appendChild(t))}function Ga(e){return'[src="'+lt(e)+'"]'}function Ln(e){return"script[async]"+e}function Rf(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+lt(l.href)+'"]');if(a)return t.instance=a,je(a),a;var n=le({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),je(a),Ee(a,"style",n),Mu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Da(l.href);var u=e.querySelector(Qn(n));if(u)return t.state.loading|=4,t.instance=u,je(u),u;a=wm(l),(n=st.get(n))&&no(a,n),u=(e.ownerDocument||e).createElement("link"),je(u);var i=u;return i._p=new Promise(function(s,o){i.onload=s,i.onerror=o}),Ee(u,"link",a),t.state.loading|=4,Mu(u,l.precedence,e),t.instance=u;case"script":return u=Ga(l.src),(n=e.querySelector(Ln(u)))?(t.instance=n,je(n),n):(a=l,(n=st.get(u))&&(a=le({},l),uo(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),je(n),Ee(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(p(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,Mu(a,l.precedence,e));return t.instance}function Mu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var s=a[i];if(s.dataset.precedence===t)u=s;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function no(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function uo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Eu=null;function Bf(e,t,l){if(Eu===null){var a=new Map,n=Eu=new Map;n.set(l,a)}else n=Eu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Bn]||u[Te]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=e+i;var s=a.get(i);s?s.push(u):a.set(i,[u])}}return a}function Hf(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Cx(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function km(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function _x(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(l.state.loading&4)){if(l.instance===null){var n=Da(a.href),u=t.querySelector(Qn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ai.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,je(u);return}u=t.ownerDocument||t,a=wm(a),(n=st.get(n))&&no(a,n),u=u.createElement("link"),je(u);var i=u;i._p=new Promise(function(s,o){i.onload=s,i.onerror=o}),Ee(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&!(l.state.loading&3)&&(e.count++,l=ai.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var hc=0;function Rx(e,t){return e.stylesheets&&e.count===0&&Du(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Du(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&hc===0&&(hc=62500*hx());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Du(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>hc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ai(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Du(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ni=null;function Du(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ni=new Map,t.forEach(Bx,e),ni=null,ai.call(e))}function Bx(e,t){if(!(t.state.loading&4)){var l=ni.get(e);if(l)var a=l.get(null);else{l=new Map,ni.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=ai.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var An={$$typeof:Ct,Provider:null,Consumer:null,_currentValue:El,_currentValue2:El,_threadCount:0};function Hx(e,t,l,a,n,u,i,s,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qi(0),this.hiddenUpdates=qi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Km(e,t,l,a,n,u,i,s,o,f,g,h){return e=new Hx(e,t,l,i,o,f,g,h,s),t=1,u===!0&&(t|=24),u=Ze(3,null,null,t),e.current=u,u.stateNode=e,t=Us(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Rs(u),e}function Jm(e){return e?(e=ca,e):ca}function $m(e,t,l,a,n,u){n=Jm(n),a.context===null?a.context=n:a.pendingContext=n,a=ul(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=il(e,a,t),l!==null&&(Ge(l,e,t),un(l,e,t))}function qf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function io(e,t){qf(e,t),(e=e.alternate)&&qf(e,t)}function Wm(e){if(e.tag===13||e.tag===31){var t=Vl(e,67108864);t!==null&&Ge(t,e,67108864),io(e,67108864)}}function Gf(e){if(e.tag===13||e.tag===31){var t=$e();t=bs(t);var l=Vl(e,t);l!==null&&Ge(l,e,t),io(e,t)}}var ui=!0;function qx(e,t,l,a){var n=U.T;U.T=null;var u=V.p;try{V.p=2,co(e,t,l,a)}finally{V.p=u,U.T=n}}function Gx(e,t,l,a){var n=U.T;U.T=null;var u=V.p;try{V.p=8,co(e,t,l,a)}finally{V.p=u,U.T=n}}function co(e,t,l,a){if(ui){var n=os(a);if(n===null)dc(e,t,a,ii,l),Yf(e,a);else if(Xx(n,e,t,l,a))a.stopPropagation();else if(Yf(e,a),t&4&&-1<Yx.indexOf(e)){for(;n!==null;){var u=_a(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Tl(u.pendingLanes);if(i!==0){var s=u;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var o=1<<31-Je(i);s.entanglements[1]|=o,i&=~o}Nt(u),!(L&6)&&($u=ke()+500,Xn(0))}}break;case 31:case 13:s=Vl(u,2),s!==null&&Ge(s,u,2),Mi(),io(u,2)}if(u=os(a),u===null&&dc(e,t,a,ii,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else dc(e,t,a,null,l)}}function os(e){return e=js(e),so(e)}var ii=null;function so(e){if(ii=null,e=ta(e),e!==null){var t=Un(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=xr(t),e!==null)return e;e=null}else if(l===31){if(e=br(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ii=e,null}function Fm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(zg()){case jr:return 2;case Sr:return 8;case Bu:case Tg:return 32;case Nr:return 268435456;default:return 32}default:return 32}}var fs=!1,ol=null,fl=null,rl=null,Mn=new Map,En=new Map,Ft=[],Yx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Yf(e,t){switch(e){case"focusin":case"focusout":ol=null;break;case"dragenter":case"dragleave":fl=null;break;case"mouseover":case"mouseout":rl=null;break;case"pointerover":case"pointerout":Mn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":En.delete(t.pointerId)}}function Ka(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=_a(t),t!==null&&Wm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Xx(e,t,l,a,n){switch(t){case"focusin":return ol=Ka(ol,e,t,l,a,n),!0;case"dragenter":return fl=Ka(fl,e,t,l,a,n),!0;case"mouseover":return rl=Ka(rl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Mn.set(u,Ka(Mn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,En.set(u,Ka(En.get(u)||null,e,t,l,a,n)),!0}return!1}function Im(e){var t=ta(e.target);if(t!==null){var l=Un(t);if(l!==null){if(t=l.tag,t===13){if(t=xr(l),t!==null){e.blockedOn=t,So(e.priority,function(){Gf(l)});return}}else if(t===31){if(t=br(l),t!==null){e.blockedOn=t,So(e.priority,function(){Gf(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ou(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=os(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Ec=a,l.target.dispatchEvent(a),Ec=null}else return t=_a(l),t!==null&&Wm(t),e.blockedOn=l,!1;t.shift()}return!0}function Xf(e,t,l){Ou(e)&&l.delete(t)}function Qx(){fs=!1,ol!==null&&Ou(ol)&&(ol=null),fl!==null&&Ou(fl)&&(fl=null),rl!==null&&Ou(rl)&&(rl=null),Mn.forEach(Xf),En.forEach(Xf)}function fu(e,t){e.blockedOn===t&&(e.blockedOn=null,fs||(fs=!0,ve.unstable_scheduleCallback(ve.unstable_NormalPriority,Qx)))}var ru=null;function Qf(e){ru!==e&&(ru=e,ve.unstable_scheduleCallback(ve.unstable_NormalPriority,function(){ru===e&&(ru=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(so(a||l)===null)continue;break}var u=_a(l);u!==null&&(e.splice(t,3),t-=3,Zc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Oa(e){function t(o){return fu(o,e)}ol!==null&&fu(ol,e),fl!==null&&fu(fl,e),rl!==null&&fu(rl,e),Mn.forEach(t),En.forEach(t);for(var l=0;l<Ft.length;l++){var a=Ft[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ft.length&&(l=Ft[0],l.blockedOn===null);)Im(l),l.blockedOn===null&&Ft.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[Ye]||null;if(typeof u=="function")i||Qf(l);else if(i){var s=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Ye]||null)s=i.formAction;else if(so(n)!==null)continue}else s=i.action;typeof s=="function"?l[a+1]=s:(l.splice(a,3),a-=3),Qf(l)}}}function Pm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function oo(e){this._internalRoot=e}Oi.prototype.render=oo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(p(409));var l=t.current,a=$e();$m(l,a,e,t,null,null)};Oi.prototype.unmount=oo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$m(e.current,2,null,e,null,null),Mi(),t[Ca]=null}};function Oi(e){this._internalRoot=e}Oi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Er();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ft.length&&t!==0&&t<Ft[l].priority;l++);Ft.splice(l,0,e),l===0&&Im(e)}};var Lf=hr.version;if(Lf!=="19.2.5")throw Error(p(527,Lf,"19.2.5"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(p(188)):(e=Object.keys(e).join(","),Error(p(268,e)));return e=bg(t),e=e!==null?vr(e):null,e=e===null?null:e.stateNode,e};var Lx={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!du.isDisabled&&du.supportsFiber)try{Cn=du.inject(Lx),Ke=du}catch{}}hi.createRoot=function(e,t){if(!gr(e))throw Error(p(299));var l=!1,a="",n=Zd,u=wd,i=kd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Km(e,1,!1,null,null,l,a,null,n,u,i,Pm),e[Ca]=t.current,ao(e),new oo(t)};hi.hydrateRoot=function(e,t,l){if(!gr(e))throw Error(p(299));var a=!1,n="",u=Zd,i=wd,s=kd,o=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(s=l.onRecoverableError),l.formState!==void 0&&(o=l.formState)),t=Km(e,1,!0,t,l??null,a,n,o,u,i,s,Pm),t.context=Jm(null),l=t.current,a=$e(),a=bs(a),n=ul(a),n.callback=null,il(l,n,a),l=a,t.current.lanes=l,Rn(t,l),Nt(t),e[Ca]=t.current,ao(e),new Oi(t)};hi.version="19.2.5";function eh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eh)}catch(e){console.error(e)}}eh(),rr.exports=hi;var Uv=rr.exports;const Vx=200;function Cv(e,t,l,a=Vx){return[{...t,id:`${t.ts}-${l}`},...e].slice(0,a)}function Zx(e){if(e.event==="quota.exceeded")return!0;const t=e.payload.status;return typeof t=="string"&&/forbidden|denied|error|failed/i.test(t)}const Vf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zf=ar,th=(e,t)=>l=>{var a;if((t==null?void 0:t.variants)==null)return Zf(e,l==null?void 0:l.class,l==null?void 0:l.className);const{variants:n,defaultVariants:u}=t,i=Object.keys(n).map(f=>{const g=l==null?void 0:l[f],h=u==null?void 0:u[f];if(g===null)return null;const d=Vf(g)||Vf(h);return n[f][d]}),s=l&&Object.entries(l).reduce((f,g)=>{let[h,d]=g;return d===void 0||(f[h]=d),f},{}),o=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((f,g)=>{let{class:h,className:d,...b}=g;return Object.entries(b).every(S=>{let[v,D]=S;return Array.isArray(D)?D.includes({...u,...s}[v]):{...u,...s}[v]===D})?[...f,h,d]:f},[]);return Zf(e,i,o,l==null?void 0:l.class,l==null?void 0:l.className)},wx=(e,t)=>{const l=new Array(e.length+t.length);for(let a=0;a<e.length;a++)l[a]=e[a];for(let a=0;a<t.length;a++)l[e.length+a]=t[a];return l},kx=(e,t)=>({classGroupId:e,validator:t}),lh=(e=new Map,t=null,l)=>({nextPart:e,validators:t,classGroupId:l}),ci="-",wf=[],Kx="arbitrary..",Jx=e=>{const t=Wx(e),{conflictingClassGroups:l,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return $x(i);const s=i.split(ci),o=s[0]===""&&s.length>1?1:0;return ah(s,o,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const o=a[i],f=l[i];return o?f?wx(f,o):o:f||wf}return l[i]||wf}}},ah=(e,t,l)=>{if(e.length-t===0)return l.classGroupId;const n=e[t],u=l.nextPart.get(n);if(u){const f=ah(e,t+1,u);if(f)return f}const i=l.validators;if(i===null)return;const s=t===0?e.join(ci):e.slice(t).join(ci),o=i.length;for(let f=0;f<o;f++){const g=i[f];if(g.validator(s))return g.classGroupId}},$x=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),l=t.indexOf(":"),a=t.slice(0,l);return a?Kx+a:void 0})(),Wx=e=>{const{theme:t,classGroups:l}=e;return Fx(l,t)},Fx=(e,t)=>{const l=lh();for(const a in e){const n=e[a];fo(n,l,a,t)}return l},fo=(e,t,l,a)=>{const n=e.length;for(let u=0;u<n;u++){const i=e[u];Ix(i,t,l,a)}},Ix=(e,t,l,a)=>{if(typeof e=="string"){Px(e,t,l);return}if(typeof e=="function"){eb(e,t,l,a);return}tb(e,t,l,a)},Px=(e,t,l)=>{const a=e===""?t:nh(t,e);a.classGroupId=l},eb=(e,t,l,a)=>{if(lb(e)){fo(e(a),t,l,a);return}t.validators===null&&(t.validators=[]),t.validators.push(kx(l,e))},tb=(e,t,l,a)=>{const n=Object.entries(e),u=n.length;for(let i=0;i<u;i++){const[s,o]=n[i];fo(o,nh(t,s),l,a)}},nh=(e,t)=>{let l=e;const a=t.split(ci),n=a.length;for(let u=0;u<n;u++){const i=a[u];let s=l.nextPart.get(i);s||(s=lh(),l.nextPart.set(i,s)),l=s}return l},lb=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ab=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,l=Object.create(null),a=Object.create(null);const n=(u,i)=>{l[u]=i,t++,t>e&&(t=0,a=l,l=Object.create(null))};return{get(u){let i=l[u];if(i!==void 0)return i;if((i=a[u])!==void 0)return n(u,i),i},set(u,i){u in l?l[u]=i:n(u,i)}}},rs="!",kf=":",nb=[],Kf=(e,t,l,a,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:l,maybePostfixModifierPosition:a,isExternal:n}),ub=e=>{const{prefix:t,experimentalParseClassName:l}=e;let a=n=>{const u=[];let i=0,s=0,o=0,f;const g=n.length;for(let v=0;v<g;v++){const D=n[v];if(i===0&&s===0){if(D===kf){u.push(n.slice(o,v)),o=v+1;continue}if(D==="/"){f=v;continue}}D==="["?i++:D==="]"?i--:D==="("?s++:D===")"&&s--}const h=u.length===0?n:n.slice(o);let d=h,b=!1;h.endsWith(rs)?(d=h.slice(0,-1),b=!0):h.startsWith(rs)&&(d=h.slice(1),b=!0);const S=f&&f>o?f-o:void 0;return Kf(u,b,d,S)};if(t){const n=t+kf,u=a;a=i=>i.startsWith(n)?u(i.slice(n.length)):Kf(nb,!1,i,void 0,!0)}if(l){const n=a;a=u=>l({className:u,parseClassName:n})}return a},ib=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((l,a)=>{t.set(l,1e6+a)}),l=>{const a=[];let n=[];for(let u=0;u<l.length;u++){const i=l[u],s=i[0]==="[",o=t.has(i);s||o?(n.length>0&&(n.sort(),a.push(...n),n=[]),a.push(i)):n.push(i)}return n.length>0&&(n.sort(),a.push(...n)),a}},cb=e=>({cache:ab(e.cacheSize),parseClassName:ub(e),sortModifiers:ib(e),postfixLookupClassGroupIds:sb(e),...Jx(e)}),sb=e=>{const t=Object.create(null),l=e.postfixLookupClassGroups;if(l)for(let a=0;a<l.length;a++)t[l[a]]=!0;return t},ob=/\s+/,fb=(e,t)=>{const{parseClassName:l,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:u,postfixLookupClassGroupIds:i}=t,s=[],o=e.trim().split(ob);let f="";for(let g=o.length-1;g>=0;g-=1){const h=o[g],{isExternal:d,modifiers:b,hasImportantModifier:S,baseClassName:v,maybePostfixModifierPosition:D}=l(h);if(d){f=h+(f.length>0?" "+f:f);continue}let m=!!D,r;if(m){const z=v.substring(0,D);r=a(z);const j=r&&i[r]?a(v):void 0;j&&j!==r&&(r=j,m=!1)}else r=a(v);if(!r){if(!m){f=h+(f.length>0?" "+f:f);continue}if(r=a(v),!r){f=h+(f.length>0?" "+f:f);continue}m=!1}const x=b.length===0?"":b.length===1?b[0]:u(b).join(":"),y=S?x+rs:x,M=y+r;if(s.indexOf(M)>-1)continue;s.push(M);const C=n(r,m);for(let z=0;z<C.length;++z){const j=C[z];s.push(y+j)}f=h+(f.length>0?" "+f:f)}return f},rb=(...e)=>{let t=0,l,a,n="";for(;t<e.length;)(l=e[t++])&&(a=uh(l))&&(n&&(n+=" "),n+=a);return n},uh=e=>{if(typeof e=="string")return e;let t,l="";for(let a=0;a<e.length;a++)e[a]&&(t=uh(e[a]))&&(l&&(l+=" "),l+=t);return l},db=(e,...t)=>{let l,a,n,u;const i=o=>{const f=t.reduce((g,h)=>h(g),e());return l=cb(f),a=l.cache.get,n=l.cache.set,u=s,s(o)},s=o=>{const f=a(o);if(f)return f;const g=fb(o,l);return n(o,g),g};return u=i,(...o)=>u(rb(...o))},mb=[],ge=e=>{const t=l=>l[e]||mb;return t.isThemeGetter=!0,t},ih=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ch=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hb=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,gb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wt=e=>hb.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),gt=e=>!!e&&Number.isInteger(Number(e)),gc=e=>e.endsWith("%")&&H(e.slice(0,-1)),Et=e=>gb.test(e),sh=()=>!0,pb=e=>xb.test(e)&&!bb.test(e),ro=()=>!1,jb=e=>vb.test(e),Sb=e=>yb.test(e),Nb=e=>!A(e)&&!E(e),zb=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Tb=e=>yl(e,rh,ro),A=e=>ih.test(e),Nl=e=>yl(e,dh,pb),Jf=e=>yl(e,_b,H),Ab=e=>yl(e,hh,sh),Mb=e=>yl(e,mh,ro),$f=e=>yl(e,oh,ro),Eb=e=>yl(e,fh,Sb),mu=e=>yl(e,gh,jb),E=e=>ch.test(e),Ja=e=>wl(e,dh),Db=e=>wl(e,mh),Wf=e=>wl(e,oh),Ob=e=>wl(e,rh),Ub=e=>wl(e,fh),hu=e=>wl(e,gh,!0),Cb=e=>wl(e,hh,!0),yl=(e,t,l)=>{const a=ih.exec(e);return a?a[1]?t(a[1]):l(a[2]):!1},wl=(e,t,l=!1)=>{const a=ch.exec(e);return a?a[1]?t(a[1]):l:!1},oh=e=>e==="position"||e==="percentage",fh=e=>e==="image"||e==="url",rh=e=>e==="length"||e==="size"||e==="bg-size",dh=e=>e==="length",_b=e=>e==="number",mh=e=>e==="family-name",hh=e=>e==="number"||e==="weight",gh=e=>e==="shadow",Rb=()=>{const e=ge("color"),t=ge("font"),l=ge("text"),a=ge("font-weight"),n=ge("tracking"),u=ge("leading"),i=ge("breakpoint"),s=ge("container"),o=ge("spacing"),f=ge("radius"),g=ge("shadow"),h=ge("inset-shadow"),d=ge("text-shadow"),b=ge("drop-shadow"),S=ge("blur"),v=ge("perspective"),D=ge("aspect"),m=ge("ease"),r=ge("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...y(),E,A],C=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],j=()=>[E,A,o],O=()=>[wt,"full","auto",...j()],q=()=>[gt,"none","subgrid",E,A],Oe=()=>["auto",{span:["full",gt,E,A]},gt,E,A],Qe=()=>[gt,"auto",E,A],Ya=()=>["auto","min","max","fr",E,A],Xa=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ht=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...j()],_=()=>[wt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],R=()=>[wt,"screen","full","dvw","lvw","svw","min","max","fit",...j()],P=()=>[wt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],T=()=>[e,E,A],pl=()=>[...y(),Wf,$f,{position:[E,A]}],jl=()=>["no-repeat",{repeat:["","x","y","space","round"]}],kl=()=>["auto","cover","contain",Ob,Tb,{size:[E,A]}],ot=()=>[gc,Ja,Nl],fe=()=>["","none","full",f,E,A],Ue=()=>["",H,Ja,Nl],Jn=()=>["solid","dashed","dotted","double"],xo=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[H,gc,Wf,$f],bo=()=>["","none",S,E,A],$n=()=>["none",H,E,A],Wn=()=>["none",H,E,A],Ui=()=>[H,E,A],Fn=()=>[wt,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Et],breakpoint:[Et],color:[sh],container:[Et],"drop-shadow":[Et],ease:["in","out","in-out"],font:[Nb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Et],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Et],shadow:[Et],spacing:["px",H],text:[Et],"text-shadow":[Et],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wt,A,E,D]}],container:["container"],"container-type":[{"@container":["","normal","size",E,A]}],"container-named":[zb],columns:[{columns:[H,A,E,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{"inset-s":O(),start:O()}],end:[{"inset-e":O(),end:O()}],"inset-bs":[{"inset-bs":O()}],"inset-be":[{"inset-be":O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[gt,"auto",E,A]}],basis:[{basis:[wt,"full","auto",s,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[H,wt,"auto","initial","none",A]}],grow:[{grow:["",H,E,A]}],shrink:[{shrink:["",H,E,A]}],order:[{order:[gt,"first","last","none",E,A]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:Oe()}],"col-start":[{"col-start":Qe()}],"col-end":[{"col-end":Qe()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:Oe()}],"row-start":[{"row-start":Qe()}],"row-end":[{"row-end":Qe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ya()}],"auto-rows":[{"auto-rows":Ya()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...Xa(),"normal"]}],"justify-items":[{"justify-items":[...ht(),"normal"]}],"justify-self":[{"justify-self":["auto",...ht()]}],"align-content":[{content:["normal",...Xa()]}],"align-items":[{items:[...ht(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ht(),{baseline:["","last"]}]}],"place-content":[{"place-content":Xa()}],"place-items":[{"place-items":[...ht(),"baseline"]}],"place-self":[{"place-self":["auto",...ht()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],"inline-size":[{inline:["auto",...R()]}],"min-inline-size":[{"min-inline":["auto",...R()]}],"max-inline-size":[{"max-inline":["none",...R()]}],"block-size":[{block:["auto",...P()]}],"min-block-size":[{"min-block":["auto",...P()]}],"max-block-size":[{"max-block":["none",...P()]}],w:[{w:[s,"screen",..._()]}],"min-w":[{"min-w":[s,"screen","none",..._()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",l,Ja,Nl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Cb,Ab]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gc,A]}],"font-family":[{font:[Db,Mb,t]}],"font-features":[{"font-features":[A]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,E,A]}],"line-clamp":[{"line-clamp":[H,"none",E,Jf]}],leading:[{leading:[u,...j()]}],"list-image":[{"list-image":["none",E,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",E,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Jn(),"wavy"]}],"text-decoration-thickness":[{decoration:[H,"from-font","auto",E,Nl]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[H,"auto",E,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"tab-size":[{tab:[gt,E,A]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",E,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",E,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pl()}],"bg-repeat":[{bg:jl()}],"bg-size":[{bg:kl()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},gt,E,A],radial:["",E,A],conic:[gt,E,A]},Ub,Eb]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:ot()}],"gradient-via-pos":[{via:ot()}],"gradient-to-pos":[{to:ot()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:fe()}],"rounded-s":[{"rounded-s":fe()}],"rounded-e":[{"rounded-e":fe()}],"rounded-t":[{"rounded-t":fe()}],"rounded-r":[{"rounded-r":fe()}],"rounded-b":[{"rounded-b":fe()}],"rounded-l":[{"rounded-l":fe()}],"rounded-ss":[{"rounded-ss":fe()}],"rounded-se":[{"rounded-se":fe()}],"rounded-ee":[{"rounded-ee":fe()}],"rounded-es":[{"rounded-es":fe()}],"rounded-tl":[{"rounded-tl":fe()}],"rounded-tr":[{"rounded-tr":fe()}],"rounded-br":[{"rounded-br":fe()}],"rounded-bl":[{"rounded-bl":fe()}],"border-w":[{border:Ue()}],"border-w-x":[{"border-x":Ue()}],"border-w-y":[{"border-y":Ue()}],"border-w-s":[{"border-s":Ue()}],"border-w-e":[{"border-e":Ue()}],"border-w-bs":[{"border-bs":Ue()}],"border-w-be":[{"border-be":Ue()}],"border-w-t":[{"border-t":Ue()}],"border-w-r":[{"border-r":Ue()}],"border-w-b":[{"border-b":Ue()}],"border-w-l":[{"border-l":Ue()}],"divide-x":[{"divide-x":Ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Jn(),"hidden","none"]}],"divide-style":[{divide:[...Jn(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...Jn(),"none","hidden"]}],"outline-offset":[{"outline-offset":[H,E,A]}],"outline-w":[{outline:["",H,Ja,Nl]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",g,hu,mu]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",h,hu,mu]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:Ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[H,Nl]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":Ue()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",d,hu,mu]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[H,E,A]}],"mix-blend":[{"mix-blend":[...xo(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xo()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[E,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:pl()}],"mask-repeat":[{mask:jl()}],"mask-size":[{mask:kl()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",E,A]}],filter:[{filter:["","none",E,A]}],blur:[{blur:bo()}],brightness:[{brightness:[H,E,A]}],contrast:[{contrast:[H,E,A]}],"drop-shadow":[{"drop-shadow":["","none",b,hu,mu]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",H,E,A]}],"hue-rotate":[{"hue-rotate":[H,E,A]}],invert:[{invert:["",H,E,A]}],saturate:[{saturate:[H,E,A]}],sepia:[{sepia:["",H,E,A]}],"backdrop-filter":[{"backdrop-filter":["","none",E,A]}],"backdrop-blur":[{"backdrop-blur":bo()}],"backdrop-brightness":[{"backdrop-brightness":[H,E,A]}],"backdrop-contrast":[{"backdrop-contrast":[H,E,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",H,E,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,E,A]}],"backdrop-invert":[{"backdrop-invert":["",H,E,A]}],"backdrop-opacity":[{"backdrop-opacity":[H,E,A]}],"backdrop-saturate":[{"backdrop-saturate":[H,E,A]}],"backdrop-sepia":[{"backdrop-sepia":["",H,E,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",E,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[H,"initial",E,A]}],ease:[{ease:["linear","initial",m,E,A]}],delay:[{delay:[H,E,A]}],animate:[{animate:["none",r,E,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,E,A]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:$n()}],"rotate-x":[{"rotate-x":$n()}],"rotate-y":[{"rotate-y":$n()}],"rotate-z":[{"rotate-z":$n()}],scale:[{scale:Wn()}],"scale-x":[{"scale-x":Wn()}],"scale-y":[{"scale-y":Wn()}],"scale-z":[{"scale-z":Wn()}],"scale-3d":["scale-3d"],skew:[{skew:Ui()}],"skew-x":[{"skew-x":Ui()}],"skew-y":[{"skew-y":Ui()}],transform:[{transform:[E,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Fn()}],"translate-x":[{"translate-x":Fn()}],"translate-y":[{"translate-y":Fn()}],"translate-z":[{"translate-z":Fn()}],"translate-none":["translate-none"],zoom:[{zoom:[gt,E,A]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",E,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",E,A]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[H,Ja,Nl,Jf]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Bb=db(Rb);function Z(...e){return Bb(ar(e))}const Hb=th("mono inline-flex w-fit shrink-0 items-center gap-1 rounded border px-1 text-[10px] leading-4",{variants:{variant:{outline:"border-line text-muted-foreground",accent:"border-line text-brand",good:"border-good/50 text-good",warn:"border-warn/50 text-warn",bad:"border-bad/50 text-bad"}},defaultVariants:{variant:"outline"}});function Gl({className:e,variant:t,...l}){return c.jsx("span",{className:Z(Hb({variant:t}),e),...l})}const qb=th("inline-flex shrink-0 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:shrink-0",{variants:{variant:{default:"border-brand/50 bg-brand/10 text-foreground hover:bg-brand/20",outline:"border-line text-muted-foreground hover:border-brand/50 hover:text-foreground",ghost:"border-transparent text-muted-foreground hover:bg-panel-2 hover:text-foreground",accent:"border-brand/50 bg-brand/10 text-brand hover:bg-brand/20",success:"border-good/50 bg-good/10 text-good hover:bg-good/20",danger:"border-bad/50 bg-bad/10 text-bad hover:bg-bad/20"},size:{xs:"px-2 py-1 text-[10px]",sm:"px-2.5 py-1 text-[11px]",md:"px-3 py-1.5 text-xs",icon:"p-1.5"}},defaultVariants:{variant:"outline",size:"sm"}});function dt({className:e,variant:t,size:l,render:a,...n}){return Bh({defaultTagName:"button",...a===void 0?{}:{render:a},props:{...n,className:Z(qb({variant:t,size:l}),e)}})}function Vt({className:e,...t}){return c.jsx("section",{className:Z("rounded-xl border border-line bg-gradient-to-b from-panel-2 to-panel",e),...t})}function Gb({className:e,...t}){return c.jsx("header",{className:Z("flex items-start justify-between gap-3",e),...t})}function Yb({className:e,...t}){return c.jsx("h2",{className:Z("text-sm font-semibold tracking-tight",e),...t})}function Xb({className:e,...t}){return c.jsx("p",{className:Z("mt-0.5 text-xs text-muted-foreground",e),...t})}function Qb({className:e,...t}){return c.jsx("div",{className:Z(e),...t})}function Lb({className:e,...t}){return c.jsx("input",{className:Z("mono rounded-md border border-input bg-panel px-2 py-1 text-[11px] text-foreground outline-none transition-colors placeholder:text-muted-foreground focus:border-brand/50 disabled:opacity-50",e),...t})}function xh({className:e,...t}){return c.jsx("input",{className:Z("mono bg-transparent text-foreground outline-none placeholder:text-muted-foreground",e),...t})}const _v=Hh;function Dn({label:e,children:t,side:l="top",className:a,...n}){return e===""?t:c.jsxs(qh,{...n,children:[c.jsx(Gh,{render:t}),c.jsx(Yh,{children:c.jsx(Xh,{side:l,sideOffset:6,className:"z-50",children:c.jsx(Qh,{className:Z("mono max-w-[min(28rem,90vw)] origin-[var(--transform-origin)] break-words rounded-md border border-line bg-popover px-2 py-1 text-[10px] text-popover-foreground shadow-lg shadow-black/50","transition-[opacity,transform] duration-150 ease-out","data-[starting-style]:scale-95 data-[starting-style]:opacity-0","data-[ending-style]:scale-95 data-[ending-style]:opacity-0",a),children:e})})})]})}function ce({title:e,subtitle:t,right:l,children:a,className:n}){return c.jsxs(Vt,{className:Z("rise p-4",n),children:[(e||l)&&c.jsxs(Gb,{className:"mb-3",children:[c.jsxs("div",{children:[e&&c.jsx(Yb,{children:e}),t&&c.jsx(Xb,{children:t})]}),l]}),c.jsx(Qb,{children:a})]})}function ut({label:e,value:t,sub:l,icon:a,tone:n}){const u=n==="good"?"text-good":n==="warn"?"text-warn":n==="bad"?"text-bad":"text-foreground";return c.jsxs(Vt,{className:"p-4",children:[c.jsxs("div",{className:"mb-2 flex items-center gap-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:[a,e]}),c.jsx("div",{className:Z("mono tnum text-2xl font-semibold",u),children:t}),l&&c.jsx("div",{className:"mono mt-1 text-[11px] text-muted-foreground",children:l})]})}function bh({ratio:e,over:t,className:l}){const a=Math.max(0,Math.min(1,Number.isFinite(e)?e:0))*100;return c.jsx("div",{className:Z("h-2 overflow-hidden rounded-full bg-line",l),children:c.jsx("div",{className:Z("h-full rounded-full bg-gradient-to-r",t?"from-bad to-warn":"from-brand to-live"),style:{width:`${a}%`}})})}const vh={good:"text-good",live:"text-live",bad:"text-bad",warn:"text-warn"};function Vb(e){const t=e.toLowerCase();return/^(ok|completed|success|succeeded|executed|auto_executed|approved)$/.test(t)?"good":/^(running|pending|pending_approval|queued)$/.test(t)?"live":/^(forbidden|denied|failed|error|rejected|cancelled|canceled|timeout)$/.test(t)?"bad":"warn"}function yh({tone:e,className:t}){return c.jsx("span",{className:Z("dot",vh[e],e==="live"&&"live-pulse",t),"aria-hidden":!0})}function Ua({status:e}){const t=Vb(e);return c.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[11px]",children:[c.jsx(yh,{tone:t}),c.jsx("span",{className:Z("uppercase tracking-wider",vh[t]),children:e})]})}function si({label:e,onOpen:t,title:l}){const a=l??e;return t===void 0?c.jsx(Dn,{label:a,children:c.jsx("span",{className:"block truncate text-foreground",children:e})}):c.jsx(Dn,{label:a,children:c.jsx("button",{type:"button",onClick:t,className:"max-w-full truncate text-left text-foreground underline decoration-line decoration-dotted underline-offset-4 transition-colors hover:text-brand hover:decoration-brand",children:e})})}function Se({label:e}){return c.jsx("div",{className:"grid place-items-center rounded-lg border border-dashed border-line py-10 text-xs text-muted-foreground",children:e})}function oi({page:e,pageSize:t,total:l,onPage:a}){const n=Math.max(1,Math.ceil(l/t));return c.jsxs("div",{className:"mono mt-3 flex items-center justify-end gap-2 text-[11px] text-muted-foreground",children:[c.jsx(dt,{size:"xs",disabled:e<=1,onClick:()=>a(e-1),children:"Prev"}),c.jsxs("span",{className:"tnum",children:["page ",e," of ",n]}),c.jsx(dt,{size:"xs",disabled:e>=n,onClick:()=>a(e+1),children:"Next"})]})}function Uu({value:e,placeholder:t,onChange:l,delayMs:a=300,className:n}){const[u,i]=ne.useState(e);return ne.useEffect(()=>i(e),[e]),ne.useEffect(()=>{if(u===e)return;const s=setTimeout(()=>l(u),a);return()=>clearTimeout(s)},[u]),c.jsx(Lb,{value:u,onChange:s=>i(s.target.value),...t===void 0?{}:{placeholder:t},className:Z("w-28",n)})}function jt(e){const t=typeof e=="number"?e:Date.parse(e),l=Math.max(0,Math.round((Date.now()-t)/1e3));if(l<60)return`${l}s ago`;const a=Math.round(l/60);if(a<60)return`${a}m ago`;const n=Math.round(a/60);return n<24?`${n}h ago`:`${Math.round(n/24)}d ago`}function Zb(e){const t=e.payload;switch(e.event){case"run.started":return`run ${xt(t.runId)} started${t.agentName?` · ${xt(t.agentName)}`:""}`;case"run.finished":return`run ${xt(t.runId)} finished · ${$l(t.steps)} steps · ${$l(t.inputTokens)+$l(t.outputTokens)} tok`;case"message":return`${xt(t.role)} message · ${$l(t.textLength)} chars`;case"tool-call":return`${xt(t.toolName)} (${xt(t.toolType)}) · ${xt(t.status)}`;case"quota.exceeded":return`actor ${xt(t.actorId)} over budget · ${$l(t.usedTokens)}/${$l(t.limitTokens)} tok`;case"delegated":return`delegated to ${xt(t.toAgent)}${t.fromAgent?` from ${xt(t.fromAgent)}`:""}`;default:return e.event}}function xt(e){return typeof e=="string"?e:e===void 0?"":String(e)}function $l(e){return typeof e=="number"&&Number.isFinite(e)?e:0}function Rv({events:e,connected:t}){return c.jsx(ce,{title:"Live activity",subtitle:"Streaming aviary:agent:* diagnostics events",right:c.jsxs("span",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[c.jsx(yh,{tone:t?"live":"bad"}),t?"connected":"disconnected"]}),children:e.length===0?c.jsx(Se,{label:t?"Waiting for live events…":"Live stream not connected"}):c.jsx("ul",{className:"max-h-[520px] space-y-0.5 overflow-y-auto",children:e.map(l=>{const a=Zx(l);return c.jsxs("li",{className:"rise flex items-center gap-3 rounded-md px-2 py-1.5 text-xs hover:bg-panel-2",children:[c.jsx(Gl,{variant:a?"bad":"accent",className:"w-32 shrink-0 truncate px-1.5 py-0.5 uppercase tracking-wider",children:l.event}),c.jsx("span",{className:"mono truncate text-foreground",children:Zb(l)}),c.jsx("span",{className:"mono ml-auto shrink-0 text-[10px] text-muted-foreground",children:jt(l.ts)})]},l.id)})})})}const wb=/^(\d{3})\b/;function kb(e){const t=e instanceof Error?e.message:String(e),l=wb.exec(t);return(l==null?void 0:l[1])===void 0?null:Number(l[1])}function ph(e){const t=e instanceof Error&&e.message!==""?e.message:typeof e=="string"&&e!==""?e:"Unknown error",l=kb(e);return l===null?{status:null,message:t,hint:"The API did not answer at all — it may be down, or a proxy in front of it may be blocking the request.",retryable:!0}:l===401||l===403?{status:l,message:t,hint:"The console session was rejected. Reload the page to sign in again.",retryable:!1}:l===404?{status:l,message:t,hint:"The API answered, but not on this route — check that the dashboard module is mounted where the SPA thinks it is.",retryable:!1}:l===501?{status:l,message:t,hint:"This host has not bound the store this read needs, so there is nothing to retry — it is a configuration answer, not a failure.",retryable:!1}:l>=500?{status:l,message:t,hint:"The API reached this read and it failed. The server logs will say why.",retryable:!0}:{status:l,message:t,hint:"The API rejected this request. If a filter is set, it may be the filter.",retryable:!0}}const De={width:14,height:14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"};function Kb(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M12 2v20M17 6.5c0-2-2-3.5-5-3.5s-5 1.4-5 3.4c0 4.6 10 2.6 10 7.2 0 2-2 3.4-5 3.4s-5-1.5-5-3.5"})})}function Jb(e){return c.jsxs("svg",{...De,...e,"aria-hidden":"true",children:[c.jsx("rect",{x:"7",y:"7",width:"10",height:"10",rx:"1.5"}),c.jsx("path",{d:"M9 3v2M15 3v2M9 19v2M15 19v2M3 9h2M3 15h2M19 9h2M19 15h2"})]})}function Bv(e){return c.jsxs("svg",{...De,...e,"aria-hidden":"true",children:[c.jsx("circle",{cx:"9",cy:"8",r:"3"}),c.jsx("path",{d:"M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M16 5.5a3 3 0 0 1 0 5.5M21 20c0-2.5-1.5-4.6-3.6-5.5"})]})}function Hv(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M14.7 6.3a4 4 0 0 0-5.2 5.2L3 18l3 3 6.5-6.5a4 4 0 0 0 5.2-5.2l-2.6 2.6-2.4-2.4z"})})}function jh(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M3 12h4l3 8 4-16 3 8h4"})})}function Yl(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M12 3 2 20h20L12 3zM12 10v4M12 17.5v.5"})})}function $b(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M3 17l6-6 4 4 8-8M21 7v5M21 7h-5"})})}function qv(e){return c.jsxs("svg",{...De,...e,"aria-hidden":"true",children:[c.jsx("path",{d:"M20.5 13.5 12.6 21.4a2 2 0 0 1-2.8 0l-6.2-6.2a2 2 0 0 1 0-2.8L11.5 4.4a2 2 0 0 1 1.4-.6H19a1.5 1.5 0 0 1 1.5 1.5v6.8a2 2 0 0 1-.6 1.4z"}),c.jsx("circle",{cx:"16.2",cy:"7.8",r:"1.4",fill:"currentColor",stroke:"none"})]})}function Gv(e){return c.jsxs("svg",{...De,...e,"aria-hidden":"true",children:[c.jsx("path",{d:"M12 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z"}),c.jsx("path",{d:"M9 12l2 2 4-4"})]})}function Sh(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M3 12a9 9 0 0 1 15.4-6.4M21 12a9 9 0 0 1-15.4 6.4M3 5v5h5M21 19v-5h-5"})})}function Wb(e){return c.jsxs("svg",{...De,...e,"aria-hidden":"true",children:[c.jsx("circle",{cx:"12",cy:"12",r:"9"}),c.jsx("path",{d:"M12 7v5l3.5 2"})]})}function Nh(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M4 12.5 9.5 18 20 6"})})}function mo(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M5 5l14 14M19 5 5 19"})})}function Yv(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M3 12h4.5l1.5 3h6l1.5-3H21M4 12 5.6 5.8A2 2 0 0 1 7.5 4.3h9a2 2 0 0 1 1.9 1.5L20 12v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z"})})}function Fb(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"m6 9 6 6 6-6"})})}function Xv(e){return c.jsxs("svg",{...De,...e,"aria-hidden":"true",children:[c.jsx("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2"}),c.jsx("path",{d:"M3 10h18M8 3v4M16 3v4"})]})}function Qv({className:e}){return c.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",className:e,role:"img","aria-label":"ai gateway",children:[c.jsx("title",{children:"ai gateway"}),c.jsx("path",{d:"M12 2.5 21.5 12 12 21.5 2.5 12z",opacity:.35}),c.jsx("circle",{cx:"7",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"}),c.jsx("circle",{cx:"17",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"}),c.jsx("path",{d:"M8.6 12h2.2M13.2 12h2.2M12 9.5v5"})]})}function Lv({label:e,children:t}){return c.jsx(hg,{children:({reset:l})=>c.jsx(Ib,{onReset:l,fallback:(a,n)=>c.jsx(Pb,{label:e,error:a,onRetry:n}),children:c.jsx(ne.Suspense,{fallback:c.jsx(ev,{label:e}),children:t})})})}class Ib extends ne.Component{constructor(){super(...arguments);Ci(this,"state",{failed:!1,error:null});Ci(this,"retry",()=>{var l,a;(a=(l=this.props).onReset)==null||a.call(l),this.setState({failed:!1,error:null})})}static getDerivedStateFromError(l){return{failed:!0,error:l}}componentDidCatch(l,a){console.error("[ai-gateway] section failed to render",l,a.componentStack)}render(){return this.state.failed?this.props.fallback(this.state.error,this.retry):this.props.children}}function Pb({label:e,error:t,onRetry:l}){const a=ph(t);return c.jsx(Vt,{className:"rise border-bad/40 p-5",children:c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("span",{className:"mt-0.5 text-bad",children:c.jsx(Yl,{})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("h2",{className:"text-sm font-semibold tracking-tight text-bad",children:[e," failed to load"]}),c.jsx("p",{className:"mono mt-1 break-words text-[11px] text-foreground",children:a.message}),a.hint!==""&&c.jsx("p",{className:"mt-1.5 text-xs text-muted-foreground",children:a.hint})]}),a.retryable&&c.jsx(zh,{onRetry:l})]})})}function fi({label:e,error:t,onRetry:l}){const a=ph(t);return c.jsx("div",{className:"rounded-lg border border-dashed border-bad/50 p-4",children:c.jsxs("div",{className:"flex items-start gap-2.5",children:[c.jsx("span",{className:"mt-0.5 shrink-0 text-bad",children:c.jsx(Yl,{})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("p",{className:"text-xs text-bad",children:[e," failed to load"]}),c.jsx("p",{className:"mono mt-1 break-words text-[10px] text-muted-foreground",children:a.message}),a.hint!==""&&c.jsx("p",{className:"mt-1 text-[10px] text-muted-foreground",children:a.hint})]}),a.retryable&&c.jsx(zh,{onRetry:l,small:!0})]})})}function zh({onRetry:e,small:t}){return c.jsxs(dt,{onClick:e,size:t?"xs":"sm",className:"rounded-lg",children:[c.jsx(Sh,{})," Retry"]})}function ev({label:e}){return c.jsxs(Vt,{className:"animate-pulse p-6 text-sm text-muted-foreground","aria-busy":"true",children:["Loading ",e.toLowerCase(),"…"]})}function tv(e,t={}){return e.map(l=>{const a=t[l.actorRef],n=typeof a=="number"&&a>0,u=n?l.totalTokens/a:void 0;return{actorRef:l.actorRef,requests:l.requests,totalTokens:l.totalTokens,costUsd:l.costUsd,actorLabel:l.actorLabel,overBudget:u!==void 0&&u>=1,...n?{limitTokens:a}:{},...u!==void 0?{usageRatio:u}:{}}}).sort((l,a)=>a.costUsd-l.costUsd||a.totalTokens-l.totalTokens)}function qe(e){if(!Number.isFinite(e))return"$0.00";const t=Math.abs(e);return t>=1e6?`$${(e/1e6).toFixed(2)}M`:t>=1e3?`$${(e/1e3).toFixed(2)}k`:t>0&&t<.01?"<$0.01":`$${e.toFixed(2)}`}function be(e){if(!Number.isFinite(e))return"0";const t=Math.abs(e);return t>=1e9?`${(e/1e9).toFixed(1)}B`:t>=1e6?`${(e/1e6).toFixed(1)}M`:t>=1e3?`${(e/1e3).toFixed(1)}k`:`${Math.round(e)}`}function On(e){return Number.isFinite(e)?`${Math.round(e*100)}%`:"0%"}function dl(e){if(e===null||!Number.isFinite(e))return"—";const t=Math.abs(e);if(t<1e3)return`${Math.round(e)}ms`;if(t<6e4)return`${(e/1e3).toFixed(1)}s`;const l=Math.floor(t/6e4),a=Math.round(t%6e4/1e3);return`${l}m ${a}s`}function Vv({rows:e,budgets:t={}}){const l=tv(e,t);return c.jsx(ce,{title:"Actors & budgets",subtitle:"Spend per acting ref, with usage vs configured budget",children:l.length===0?c.jsx(Se,{label:"No actor activity in this range"}):c.jsx("ul",{className:"space-y-2.5",children:l.map(a=>c.jsxs("li",{className:"rounded-lg border border-line-soft p-3",children:[c.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c.jsx("span",{className:"flex min-w-0 items-baseline gap-2",children:a.actorLabel?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"truncate text-xs text-foreground",children:a.actorLabel}),c.jsx("span",{className:"mono truncate text-[10px] text-muted-foreground",children:a.actorRef})]}):c.jsx("span",{className:"mono truncate text-xs text-foreground",children:a.actorRef})}),c.jsxs("span",{className:"mono tnum flex items-center gap-3 text-xs text-muted-foreground",children:[c.jsxs("span",{children:[a.requests," req"]}),c.jsxs("span",{children:[be(a.totalTokens)," tok"]}),c.jsx("span",{className:"text-foreground",children:qe(a.costUsd)})]})]}),a.usageRatio!==void 0&&a.limitTokens!==void 0?c.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[c.jsx(bh,{ratio:a.usageRatio,over:a.overBudget,className:"flex-1"}),c.jsxs("span",{className:`mono tnum text-[10px] ${a.overBudget?"text-bad":"text-muted-foreground"}`,children:[be(a.totalTokens)," / ",be(a.limitTokens),a.overBudget?" · over":""]})]}):c.jsx("div",{className:"mono mt-2 text-[10px] text-muted-foreground",children:"no daily limit set"})]},a.actorRef))})})}const lv="501";function av({input:e}){return c.jsxs("details",{children:[c.jsx("summary",{className:"mono w-fit cursor-pointer select-none text-[10px] text-muted-foreground hover:text-foreground",children:"input"}),c.jsx("pre",{className:"mono mt-1 max-w-[420px] overflow-x-auto rounded border border-line bg-panel-2 p-2 text-[10px] text-foreground",children:JSON.stringify(e,null,2)})]})}function Zv({table:e,onPageChange:t,onDecide:l,onOpenRun:a}){const[n,u]=ne.useState(null),[i,s]=ne.useState(null),[o,f]=ne.useState(!1),{rows:g,total:h,page:d,pageSize:b}=e.page;async function S(v,D){let m;if(!D){const r=window.prompt("Reason for rejecting (optional):");if(m=r!==null&&r.trim().length>0?r.trim():void 0,r===null)return}s(null),u(v);try{await l(v,{approved:D,...m!==void 0?{reason:m}:{}})}catch(r){const x=r instanceof Error?r.message:"Failed to record the decision.";x.startsWith(lv)&&f(!0),s(x)}finally{u(null)}}return c.jsxs("div",{className:"flex flex-col gap-4",children:[o&&c.jsxs(Vt,{className:"flex items-center gap-2 border-warn/40 p-3 text-xs text-warn",children:[c.jsx(Yl,{}),c.jsxs("span",{children:["No approval port is bound on this host — the inbox is READ-ONLY. Import"," ",c.jsx("span",{className:"mono",children:"AgentModule"})," from"," ",c.jsx("span",{className:"mono",children:"@dudousxd/nestjs-agent"})," alongside this dashboard to enable Approve/Reject."]})]}),i&&!o&&c.jsxs(Vt,{className:"flex items-center gap-2 border-bad/40 p-3 text-xs text-bad",children:[c.jsx(Yl,{}),c.jsx("span",{children:i})]}),c.jsxs(ce,{title:"Approvals",subtitle:"Action tool calls awaiting a human decision, oldest first",right:c.jsx("span",{className:"mono tnum text-[11px] text-muted-foreground",children:g.length>0?`${g.length} of ${h} waiting`:`${h} waiting`}),children:[e.error!==null&&c.jsx("div",{className:"mb-3",children:c.jsx(fi,{label:"Approvals inbox",error:e.error,onRetry:e.retry})}),g.length===0?c.jsx(Se,{label:"No pending approvals"}):c.jsxs(c.Fragment,{children:[c.jsx("ul",{className:"space-y-2",children:g.map(v=>{const D=v.runId;return c.jsxs("li",{className:"rise flex flex-col gap-2 rounded-lg border border-line p-3 text-xs sm:flex-row sm:items-center",children:[c.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("span",{className:"mono min-w-0",children:c.jsx(si,{label:v.toolName,title:D??"No run recorded for this call",onOpen:a===void 0||D===null?void 0:()=>a(D)})}),c.jsx("span",{className:"truncate text-muted-foreground",children:v.threadTitle}),v.agentName&&c.jsx(Gl,{children:v.agentName})]}),c.jsxs("div",{className:"mono flex flex-wrap items-center gap-1.5 text-[10px] text-muted-foreground",children:[c.jsxs("span",{children:["asked by ",v.actorRef]}),c.jsxs("span",{children:["· waiting ",jt(v.requestedAt)]})]}),c.jsx(av,{input:v.input})]}),c.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[c.jsxs(dt,{variant:"success",className:"rounded-lg",disabled:o||n===v.toolCallId,onClick:()=>S(v.toolCallId,!0),children:[c.jsx(Nh,{})," Approve"]}),c.jsxs(dt,{variant:"danger",className:"rounded-lg",disabled:o||n===v.toolCallId,onClick:()=>S(v.toolCallId,!1),children:[c.jsx(mo,{})," Reject"]})]})]},v.toolCallId)})}),c.jsx(oi,{page:d,pageSize:b,total:h,onPage:t})]})]})]})}const nv=Lh,uv=wh,iv=Vh,cv=Zh;function sv({className:e,...t}){return c.jsxs(kh,{children:[c.jsx(Kh,{className:Z("fixed inset-0 z-50 bg-black/60 backdrop-blur-[2px] transition-opacity duration-200","data-[starting-style]:opacity-0 data-[ending-style]:opacity-0")}),c.jsx(Jh,{className:Z("fixed inset-y-0 right-0 z-50 flex h-dvh w-full max-w-[720px] flex-col overflow-hidden border-l border-line bg-panel-2 text-foreground outline-none","transition-transform duration-200 ease-out","data-[starting-style]:translate-x-full data-[ending-style]:translate-x-full",e),...t})]})}function wv({title:e,subtitle:t,onClose:l,onBack:a,children:n}){return c.jsx(nv,{open:!0,onOpenChange:u=>{u||l()},children:c.jsxs(sv,{"aria-label":e,children:[c.jsxs("header",{className:"flex items-start gap-3 border-b border-line px-5 py-4",children:[a&&c.jsx(dt,{size:"xs",onClick:a,className:"mono mt-0.5",children:"← Back"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx(iv,{className:"truncate text-sm font-semibold tracking-tight",children:e}),t!==void 0&&c.jsx(cv,{className:"mono mt-0.5 truncate text-[10px] text-muted-foreground",children:t})]}),c.jsx(uv,{render:c.jsx(dt,{size:"icon","aria-label":"Close",children:c.jsx(mo,{})})})]}),c.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-4",children:n})]})})}function kv({detail:e,onOpenThread:t}){const{run:l,thread:a,toolCalls:n}=e;return c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsxs(ce,{title:"Outcome",children:[c.jsxs("dl",{className:"grid grid-cols-2 gap-x-4 gap-y-3 text-xs sm:grid-cols-3",children:[c.jsx(Wl,{label:"Status",children:c.jsx(Ua,{status:l.status})}),c.jsx(Wl,{label:"Agent",children:l.agentName??"(default)"}),c.jsx(Wl,{label:"Duration",children:dl(l.durationMs)}),c.jsx(Wl,{label:"Retries",children:`${l.retries}`}),c.jsx(Wl,{label:"Started",children:jt(l.startedAt)}),c.jsx(Wl,{label:"Actor",children:l.actorRef})]}),l.errorMessage!==null&&c.jsxs("div",{className:"mt-3 rounded-lg border border-bad/40 bg-bad/5 p-3",children:[l.errorCode!==null&&c.jsx("div",{className:"mono text-[10px] uppercase tracking-wider text-bad",children:l.errorCode}),c.jsx("pre",{className:"mono mt-1 whitespace-pre-wrap break-words text-[11px] text-foreground",children:l.errorMessage})]}),l.promptHash!==null&&c.jsxs("div",{className:"mono mt-3 text-[10px] text-muted-foreground",children:["prompt sha256 ",c.jsx("span",{className:"text-foreground",children:l.promptHash})]})]}),c.jsx(ce,{title:"Thread",subtitle:"The conversation this run belongs to",right:t&&c.jsx(dt,{size:"xs",onClick:()=>t(a.threadId),children:"Open thread"}),children:c.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[c.jsx("span",{className:"text-foreground",children:a.title||a.threadId}),c.jsx("span",{className:"mono text-[10px] text-muted-foreground",children:a.actorLabel??a.actorRef}),a.deleted&&c.jsx(Gl,{variant:"warn",children:"deleted"})]})}),c.jsx(ce,{title:"Tool calls",subtitle:"Every call this run requested, oldest first",right:c.jsx("span",{className:"mono tnum text-[10px] text-muted-foreground",children:n.length}),children:n.length===0?c.jsx(Se,{label:"No tool calls recorded for this run"}):c.jsx("ul",{className:"space-y-1.5",children:n.map(u=>c.jsxs("li",{className:"rounded-md border border-line-soft px-2.5 py-2 text-xs",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2.5",children:[c.jsx(Ua,{status:u.status}),c.jsx("span",{className:"mono truncate text-foreground",children:u.toolName}),c.jsx(Gl,{children:u.toolType}),c.jsx("span",{className:"mono tnum ml-auto shrink-0 text-[10px] text-muted-foreground",children:dl(u.executionMs)})]}),c.jsxs("div",{className:"mono mt-1 flex flex-wrap items-center gap-2 text-[10px] text-muted-foreground",children:[c.jsx("span",{children:jt(u.createdAt)}),u.executedByRef!==null&&c.jsxs("span",{children:["· by ",u.executedByRef]})]}),u.error!==null&&c.jsx("pre",{className:"mono mt-1.5 whitespace-pre-wrap break-words text-[10px] text-bad",children:u.error})]},u.toolCallId))})})]})}function Wl({label:e,children:t}){return c.jsxs("div",{children:[c.jsx("dt",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:e}),c.jsx("dd",{className:"mono mt-1 truncate text-foreground",children:t})]})}function Kv({detail:e,onOpenRun:t,runsHref:l}){const{thread:a,deleted:n,usage:u,runs:i,runTotal:s,messages:o}=e,f=s-i.length,g=a.messageCount-o.length;return c.jsxs("div",{className:"flex flex-col gap-4",children:[n&&c.jsxs(Vt,{className:"flex items-center gap-2 border-warn/40 p-3 text-xs text-warn",children:[c.jsx(Yl,{}),c.jsx("span",{children:"This thread is soft-deleted. Its history is still readable here — the thread is not."})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-4",children:[c.jsx(ut,{label:"Lifetime cost",value:qe(u.costUsd),sub:`${u.requests} req`}),c.jsx(ut,{label:"Lifetime tokens",value:be(u.totalTokens),sub:`${be(u.inputTokens)} in · ${be(u.outputTokens)} out`}),c.jsx(ut,{label:"Runs",value:`${s}`,sub:"on this thread"}),c.jsx(ut,{label:"Messages",value:`${a.messageCount}`,sub:"on this thread"})]}),c.jsx(ce,{title:"Runs",subtitle:"Newest first",right:f>0&&l!==void 0&&c.jsxs(dt,{size:"xs",render:c.jsx("a",{href:l}),children:["Show all ",s," runs"]}),children:i.length===0?c.jsx(Se,{label:"No runs on this thread"}):c.jsxs(c.Fragment,{children:[c.jsx("ul",{className:"space-y-1",children:i.map(h=>c.jsx("li",{children:c.jsxs(ov,{onClick:t===void 0?void 0:()=>t(h.runId),children:[c.jsx(Ua,{status:h.status}),c.jsx("span",{className:"mono truncate text-muted-foreground",children:h.agentName??"(default)"}),h.errorCode!==null&&c.jsx("span",{className:"mono truncate text-[10px] text-bad",children:h.errorCode}),c.jsxs("span",{className:"mono tnum ml-auto shrink-0 text-[10px] text-muted-foreground",children:[dl(h.durationMs)," · ",jt(h.startedAt)]})]})},h.runId))}),f>0&&c.jsxs("p",{className:"mono mt-2 text-[10px] text-muted-foreground",children:["showing ",i.length," of ",s," — ",f," older not loaded"]})]})}),c.jsx(ce,{title:"Messages",subtitle:"Newest first, content capped server-side",children:o.length===0?c.jsx(Se,{label:"No messages on this thread"}):c.jsxs(c.Fragment,{children:[c.jsx("ul",{className:"space-y-2",children:o.map(h=>c.jsxs("li",{className:"rounded-md border border-line-soft px-2.5 py-2 text-xs",children:[c.jsxs("div",{className:"mono flex flex-wrap items-center gap-2 text-[10px] text-muted-foreground",children:[c.jsx("span",{className:"uppercase tracking-wider text-brand",children:h.role}),h.agentName!==null&&c.jsxs("span",{children:["· ",h.agentName]}),h.toolCallCount>0&&c.jsxs("span",{children:["· ",h.toolCallCount," tool call",h.toolCallCount===1?"":"s"]}),c.jsx("span",{className:"ml-auto",children:jt(h.createdAt)})]}),c.jsxs("p",{className:"mt-1 whitespace-pre-wrap break-words text-foreground",children:[h.content,h.truncated&&c.jsx("span",{className:"mono text-muted-foreground",children:" […truncated]"})]})]},h.messageId))}),g>0&&c.jsxs("p",{className:"mono mt-2 text-[10px] text-muted-foreground",children:["showing ",o.length," of ",a.messageCount]})]})})]})}function ov({onClick:e,children:t}){const l="flex w-full items-center gap-3 rounded-md px-2 py-1.5 text-left text-xs";return e===void 0?c.jsx("div",{className:l,children:t}):c.jsx("button",{type:"button",onClick:e,className:`${l} transition-colors hover:bg-panel-2`,children:t})}function ho(e){return e.includes("/")?e.slice(e.lastIndexOf("/")+1).replace(/^[a-z]{2}[a-z-]*\.[a-z0-9]+\./,""):e}function fv(e){const t={costUsd:0,inputTokens:0,outputTokens:0,totalTokens:0,requests:0};for(const l of e)t.costUsd+=l.costUsd,t.inputTokens+=l.inputTokens,t.outputTokens+=l.outputTokens,t.requests+=l.requests;return t.totalTokens=t.inputTokens+t.outputTokens,t}function Th(e){const t=e.reduce((n,u)=>n+u.costUsd,0),l=e.reduce((n,u)=>n+u.inputTokens+u.outputTokens,0),a=t>0?t:0;return e.map(n=>{const u=n.inputTokens+n.outputTokens,i=a>0?n.costUsd/a:l>0?u/l:0;return{...n,totalTokens:u,costShare:i}}).sort((n,u)=>u.costUsd-n.costUsd||u.totalTokens-n.totalTokens)}function rv(e){const t=[];let l=0;for(const a of e)a.costShare<=0||(t.push({modelId:a.modelId,value:a.costUsd,fraction:a.costShare,offset:l}),l+=a.costShare);return t}const ri={fill:"var(--muted)",fontSize:10,fontFamily:'"JetBrains Mono", ui-monospace, monospace'},Ah={stroke:"var(--line)"},Mh={stroke:"var(--line)",strokeWidth:1,strokeDasharray:"3 3"},Eh={stroke:"var(--line-soft)",vertical:!1};function go({title:e,children:t}){return c.jsxs(Vt,{className:"px-2.5 py-2 text-[11px] shadow-lg shadow-black/50",children:[c.jsx("div",{className:"mono mb-1.5 text-[10px] uppercase tracking-wider text-muted-foreground",children:e}),c.jsx("div",{className:"space-y-1",children:t})]})}function di({color:e,label:t,value:l}){return c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"h-2 w-2 shrink-0 rounded-sm",style:{background:e}}),c.jsx("span",{className:"min-w-0 truncate text-muted-foreground",children:t}),c.jsx("span",{className:"mono tnum ml-auto shrink-0 pl-4 text-foreground",children:l})]})}function Dh({children:e}){return c.jsx("figcaption",{className:"mono mt-2 flex flex-wrap items-center justify-between gap-x-4 gap-y-1 text-[10px] text-muted-foreground",children:e})}const Ff=["#a78bfa","#22d3ee","#34d399","#fbbf24","#f87171","#60a5fa","#f472b6","#a3e635"];function va(e){return Ff[e%Ff.length]??"#a78bfa"}function Oh({segments:e,size:t=168,thickness:l=20,centerLabel:a,centerSub:n,label:u="spend by model",formatValue:i=String}){const s=t/2-3,o=ne.useMemo(()=>new Map(e.map(g=>[g.modelId,g])),[e]),f=ne.useMemo(()=>new Map(e.map((g,h)=>[g.modelId,va(h)])),[e]);return c.jsxs("figure",{className:"relative m-0 shrink-0",style:{width:t,height:t},children:[c.jsx("figcaption",{className:"sr-only",children:u}),c.jsx("div",{className:"pointer-events-none absolute inset-[3px] rounded-full",style:{border:`${l}px solid var(--line)`}}),(a||n)&&c.jsx("div",{className:"pointer-events-none absolute inset-0 grid place-items-center text-center",children:c.jsxs("div",{children:[a&&c.jsx("div",{className:"mono tnum text-lg font-semibold text-foreground",children:a}),n&&c.jsx("div",{className:"mono text-[10px] text-muted-foreground",children:n})]})}),c.jsx("div",{className:"relative",children:c.jsxs(sg,{width:t,height:t,children:[c.jsx(og,{data:e,dataKey:"fraction",nameKey:"modelId",cx:"50%",cy:"50%",innerRadius:s-l,outerRadius:s,startAngle:90,endAngle:-270,paddingAngle:e.length>1?1:0,stroke:"none",isAnimationActive:!1,activeShape:{outerRadius:s+3},children:e.map((g,h)=>c.jsx(fg,{fill:va(h)},g.modelId))}),c.jsx(ms,{isAnimationActive:!1,allowEscapeViewBox:{x:!0,y:!0},content:g=>{var b,S;const h=(S=(b=g.payload)==null?void 0:b[0])==null?void 0:S.name,d=typeof h=="string"?o.get(h):void 0;return!g.active||!d?null:c.jsx(go,{title:On(d.fraction),children:c.jsx(di,{color:f.get(d.modelId)??va(0),label:d.modelId,value:i(d.value)})})}})]})})]})}function Vn({className:e,...t}){return c.jsx("div",{className:"w-full overflow-x-auto",children:c.jsx("table",{className:Z("w-full text-left text-xs",e),...t})})}function Zn({className:e,...t}){return c.jsx("thead",{className:Z("text-[10px] uppercase tracking-wider text-muted-foreground",e),...t})}function wn({className:e,...t}){return c.jsx("tbody",{className:Z("mono tnum",e),...t})}function kn({className:e,...t}){return c.jsx("tr",{className:Z("border-b border-line-soft",e),...t})}function Kn({className:e,...t}){return c.jsx("tr",{className:Z("border-b border-line",e),...t})}function w({className:e,...t}){return c.jsx("th",{className:Z("py-2 font-medium",e),...t})}function k({className:e,...t}){return c.jsx("td",{className:Z("py-2.5 text-muted-foreground",e),...t})}function Jv({rows:e}){const t=Th(e);return c.jsx(ce,{title:"Models",subtitle:"Requests, tokens and cost per model over the range",children:t.length===0?c.jsx(Se,{label:"No model usage in this range"}):c.jsxs(Vn,{className:"min-w-[640px]",children:[c.jsx(Zn,{children:c.jsxs(Kn,{children:[c.jsx(w,{children:"Model"}),c.jsx(w,{className:"text-right",children:"Requests"}),c.jsx(w,{className:"text-right",children:"Input"}),c.jsx(w,{className:"text-right",children:"Output"}),c.jsx(w,{className:"text-right",children:"Cost"}),c.jsx(w,{className:"pl-4",children:"Share"})]})}),c.jsx(wn,{children:t.map((l,a)=>c.jsxs(kn,{children:[c.jsx(k,{className:"pr-4",children:c.jsxs("span",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{background:va(a)}}),c.jsx(Dn,{label:l.modelId,children:c.jsx("span",{className:"block max-w-[240px] truncate text-foreground",children:ho(l.modelId)})})]})}),c.jsx(k,{className:"text-right",children:l.requests}),c.jsx(k,{className:"text-right",children:be(l.inputTokens)}),c.jsx(k,{className:"text-right",children:be(l.outputTokens)}),c.jsx(k,{className:"text-right text-foreground",children:qe(l.costUsd)}),c.jsx(k,{className:"pl-4",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(bh,{ratio:l.costShare,className:"w-24"}),c.jsxs("span",{className:"w-9 text-right",children:[Math.round(l.costShare*100),"%"]})]})})]},l.modelId))})]})})}const If={modelId:"",inputPricePer1m:0,outputPricePer1m:0};function $v({prices:e,loading:t,unavailable:l,onUpsert:a,saving:n}){return l?c.jsx(ce,{title:"Pricing",subtitle:"Per-model rates cost is priced against",children:c.jsx("div",{className:"rounded-lg border border-dashed border-line p-6 text-xs text-muted-foreground",children:"No pricing store is bound on the host — pricing CRUD is unavailable. Bind `AGENT_PRICING_STORE` (e.g. `MikroOrmPricingStore`) to enable it."})}):c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsx(ce,{title:"Set a price",subtitle:"Upserts the model's current rate, effective now",children:c.jsx(dv,{onUpsert:a,saving:n})}),c.jsx(ce,{title:"Current prices",subtitle:"One live row per model — the rate cost is priced against",children:t?c.jsx("div",{className:"animate-pulse text-xs text-muted-foreground",children:"Loading…"}):e.length===0?c.jsx(Se,{label:"No prices set yet"}):c.jsxs(Vn,{className:"min-w-[560px]",children:[c.jsx(Zn,{children:c.jsxs(Kn,{children:[c.jsx(w,{children:"Model"}),c.jsx(w,{className:"text-right",children:"Input / 1M"}),c.jsx(w,{className:"text-right",children:"Output / 1M"}),c.jsx(w,{className:"text-right",children:"Cache write / 1M"}),c.jsx(w,{className:"text-right",children:"Cache read / 1M"}),c.jsx(w,{className:"pl-4",children:"Effective"})]})}),c.jsx(wn,{children:e.map(u=>c.jsxs(kn,{children:[c.jsx(k,{className:"pr-4",children:c.jsx(Dn,{label:u.modelId,children:c.jsx("span",{className:"block max-w-[240px] truncate text-foreground",children:ho(u.modelId)})})}),c.jsx(k,{className:"text-right text-foreground",children:qe(u.inputPricePer1m)}),c.jsx(k,{className:"text-right text-foreground",children:qe(u.outputPricePer1m)}),c.jsx(k,{className:"text-right",children:u.cacheWritePricePer1m!==void 0?qe(u.cacheWritePricePer1m):"—"}),c.jsx(k,{className:"text-right",children:u.cacheReadPricePer1m!==void 0?qe(u.cacheReadPricePer1m):"—"}),c.jsx(k,{className:"pl-4 text-[10px]",children:jt(u.effectiveFrom)})]},u.modelId))})]})})]})}function dv({onUpsert:e,saving:t}){const[l,a]=ne.useState(If),[n,u]=ne.useState(null);async function i(s){s.preventDefault(),u(null);try{await e(l),a(If)}catch(o){u(o instanceof Error?o.message:"Failed to save the price.")}}return c.jsxs("form",{onSubmit:i,className:"flex flex-wrap items-end gap-3",children:[c.jsx($a,{label:"Model id",children:c.jsx(xh,{required:!0,value:l.modelId,onChange:s=>a({...l,modelId:s.target.value}),placeholder:"gpt-4o",className:"w-40"})}),c.jsx($a,{label:"Input / 1M",children:c.jsx(gu,{value:l.inputPricePer1m,onChange:s=>a({...l,inputPricePer1m:s??0})})}),c.jsx($a,{label:"Output / 1M",children:c.jsx(gu,{value:l.outputPricePer1m,onChange:s=>a({...l,outputPricePer1m:s??0})})}),c.jsx($a,{label:"Cache write / 1M (optional)",children:c.jsx(gu,{value:l.cacheWritePricePer1m,onChange:s=>a(Pf(l,"cacheWritePricePer1m",s))})}),c.jsx($a,{label:"Cache read / 1M (optional)",children:c.jsx(gu,{value:l.cacheReadPricePer1m,onChange:s=>a(Pf(l,"cacheReadPricePer1m",s))})}),c.jsx(dt,{type:"submit",variant:"default",size:"md",disabled:t,className:"rounded-lg",children:t?"Saving…":"Save price"}),n&&c.jsx("span",{className:"text-xs text-bad",children:n})]})}function Pf(e,t,l){if(l===void 0){const a={...e};return delete a[t],a}return{...e,[t]:l}}function $a({label:e,children:t}){return c.jsxs("label",{className:"flex flex-col gap-1 rounded-lg border border-line bg-panel px-2.5 py-1.5 text-[11px] text-muted-foreground",children:[c.jsx("span",{className:"uppercase tracking-wider",children:e}),t]})}function gu({value:e,onChange:t}){return c.jsx(xh,{type:"number",min:0,step:"0.01",value:e??"",onChange:l=>{const a=l.target.value;t(a===""?void 0:Number(a))},className:"tnum w-24"})}function mv(e){const t=e.reduce((u,i)=>u+i.count,0),l=[...e].sort((u,i)=>i.count-u.count),a=[];let n=0;for(const u of l){if(t<=0||u.count<=0)continue;const i=u.count/t;a.push({modelId:u.errorCode,value:u.count,fraction:i,offset:n}),n+=i}return a}const hv=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Uh(e){const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return null;const[,l,a,n]=t;if(!l||!a||!n)return null;const u=hv[Number(a)-1];return u?{year:l,month:u,day:Number(n)}:null}function mi(e){const t=Uh(e);return t?`${t.month} ${t.day}`:e}function ya(e){const t=Uh(e);return t?`${t.month} ${t.day}, ${t.year}`:e}function ds(e,t){const l=e[0],a=e[e.length-1];if(!l||!a)return{first:"",last:"",peak:0,peakDay:"",total:0};let n=Number.NEGATIVE_INFINITY,u=l.day,i=0;for(const s of e){const o=t(s);i+=o,o>n&&(n=o,u=s.day)}return{first:l.day,last:a.day,peak:n,peakDay:u,total:i}}function gv({points:e,height:t=200}){const l=ne.useId(),a=ne.useMemo(()=>new Map(e.map(i=>[i.day,i])),[e]),n=ne.useMemo(()=>ds(e,i=>i.runs),[e]),u=ne.useMemo(()=>ds(e,i=>i.failed),[e]);return c.jsxs("figure",{className:"m-0",children:[c.jsx("div",{className:"w-full",style:{height:t},children:c.jsx(nr,{width:"100%",height:"100%",children:c.jsxs(rg,{data:e,margin:{top:8,right:18,bottom:0,left:0},children:[c.jsx("defs",{children:c.jsxs("linearGradient",{id:l,x1:"0",y1:"0",x2:"0",y2:"1",children:[c.jsx("stop",{offset:"0%",stopColor:"var(--accent)",stopOpacity:.35}),c.jsx("stop",{offset:"100%",stopColor:"var(--accent)",stopOpacity:0})]})}),c.jsx(ur,{...Eh}),c.jsx(ir,{dataKey:"day",tickFormatter:mi,tick:ri,axisLine:Ah,tickLine:!1,minTickGap:28}),c.jsx(cr,{tickFormatter:be,tick:ri,axisLine:!1,tickLine:!1,width:44,allowDecimals:!1}),c.jsx(ms,{cursor:Mh,isAnimationActive:!1,content:i=>{const s=typeof i.label=="string"?i.label:null,o=s?a.get(s):void 0;if(!i.active||!o)return null;const f=o.runs>0?o.failed/o.runs:0;return c.jsxs(go,{title:ya(o.day),children:[c.jsx(di,{color:"var(--accent)",label:"runs",value:be(o.runs)}),c.jsx(di,{color:"var(--bad)",label:"failed",value:`${be(o.failed)} · ${On(f)}`})]})}}),c.jsx(sr,{type:"monotone",dataKey:"runs",name:"runs",stroke:"var(--accent)",strokeWidth:1.8,fill:`url(#${l})`,dot:!1,activeDot:{r:3.5,strokeWidth:0,fill:"var(--accent)"},isAnimationActive:!1}),c.jsx(dg,{type:"monotone",dataKey:"failed",name:"failed",stroke:"var(--bad)",strokeWidth:1.8,dot:!1,activeDot:{r:3.5,strokeWidth:0,fill:"var(--bad)"},isAnimationActive:!1})]})})}),c.jsxs(Dh,{children:[c.jsxs("span",{className:"flex items-center gap-3",children:[c.jsx(er,{color:"var(--accent)",label:"runs"}),c.jsx(er,{color:"var(--bad)",label:"failed"})]}),c.jsxs("span",{children:[ya(n.first)," – ",ya(n.last)]}),c.jsx("span",{children:`peak ${be(n.peak)} runs on ${mi(n.peakDay)} · ${be(u.total)} failed overall`})]})]})}function er({color:e,label:t}){return c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"h-2 w-2 rounded-sm",style:{background:e}}),t]})}const xv=$h,bv=Wh;function vv({className:e,children:t,...l}){return c.jsxs(Fh,{className:Z("mono flex items-center justify-between gap-1.5 rounded-md border border-input bg-panel px-2 py-1 text-[11px] text-foreground outline-none transition-colors focus-visible:border-brand/50 data-[popup-open]:border-brand/50",e),...l,children:[t,c.jsx(Ih,{render:c.jsx(Fb,{width:12,height:12,className:"text-muted-foreground"})})]})}function yv({className:e,children:t,sideOffset:l=4,...a}){return c.jsx(Ph,{children:c.jsx(eg,{sideOffset:l,alignItemWithTrigger:!1,className:"z-50 outline-none",children:c.jsx(tg,{className:Z("min-w-[var(--anchor-width)] origin-[var(--transform-origin)] overflow-hidden rounded-md border border-line bg-popover p-1 text-popover-foreground shadow-lg shadow-black/50","transition-[opacity,transform] duration-150 ease-out","data-[starting-style]:scale-95 data-[starting-style]:opacity-0","data-[ending-style]:scale-95 data-[ending-style]:opacity-0",e),...a,children:t})})})}function pv({className:e,children:t,...l}){return c.jsxs(lg,{className:Z("mono relative flex cursor-pointer select-none items-center gap-2 rounded-sm py-1 pl-6 pr-2 text-[11px] text-muted-foreground outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[selected]:text-foreground",e),...l,children:[c.jsx(ag,{className:"absolute left-1 flex items-center text-brand",children:c.jsx(Nh,{width:11,height:11})}),c.jsx(ng,{children:t})]})}const tr=[{value:"",label:"any status"},{value:"running",label:"running"},{value:"completed",label:"completed"},{value:"failed",label:"failed"}];function Wv({overview:e,runsTable:t,runsWhere:l,onRunsStatusChange:a,onRunsAgentNameChange:n,onRunsThreadIdClear:u,onRunsPageChange:i,onOpenRun:s}){const o=t.page,{metrics:f,byAgent:g,errors:h,trend:d}=e,b=f.runs>0?f.failed/f.runs:0,S=mv(h);return c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4",children:[c.jsx(ut,{label:"Success rate",value:On(f.successRate),sub:`${f.completed} / ${f.runs} runs`,icon:c.jsx(jh,{}),tone:"good"}),c.jsx(ut,{label:"Error rate",value:On(b),sub:`${f.failed} failed`,icon:c.jsx(Yl,{}),...f.failed>0?{tone:"bad"}:{}}),c.jsx(ut,{label:"Retries",value:`${f.retries}`,sub:"LLM-step attempts > 1",icon:c.jsx(Sh,{})}),c.jsx(ut,{label:"p95 duration",value:dl(f.durationP95Ms),sub:`p50 ${dl(f.durationP50Ms)}`,icon:c.jsx(Wb,{})})]}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-3",children:[c.jsx(ce,{title:"Failures by error code",subtitle:"Share of failed runs over the range",children:S.length===0?c.jsx(Se,{label:"No failed runs in this range"}):c.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row",children:[c.jsx(Oh,{segments:S,centerLabel:`${f.failed}`,centerSub:"failed",label:"failures by error code",formatValue:v=>`${v} runs`}),c.jsx("ul",{className:"flex-1 space-y-1.5",children:h.map((v,D)=>c.jsxs("li",{className:"flex items-center gap-2 text-xs",children:[c.jsx("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{background:va(D)}}),c.jsx("span",{className:"mono min-w-0 flex-1 truncate text-foreground",children:v.errorCode}),c.jsx("span",{className:"mono tnum ml-auto shrink-0 text-muted-foreground",children:v.count})]},v.errorCode))})]})}),c.jsx(ce,{className:"lg:col-span-2",title:"Run & failure trend",subtitle:"Daily total runs vs. failed runs across the range",children:d.length===0?c.jsx(Se,{label:"No runs recorded in this range"}):c.jsx(gv,{points:d})})]}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:[c.jsx(ce,{title:"Runs by agent",subtitle:"Volume, failures and retries per agent",children:g.length===0?c.jsx(Se,{label:"No runs in this range"}):c.jsx("ul",{className:"space-y-1",children:g.map(v=>c.jsxs("li",{className:"flex items-center gap-3 rounded-md px-2 py-1.5 text-xs hover:bg-panel-2",children:[c.jsx("span",{className:"mono truncate text-foreground",children:v.agentName}),c.jsxs("span",{className:"mono tnum ml-auto shrink-0 text-[10px] text-muted-foreground",children:[v.runs," runs · ",v.failed," failed · ",v.retries," retries"]})]},v.agentName))})}),c.jsxs(ce,{title:"Recent runs",subtitle:"Latest run outcomes across threads",right:c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsxs(xv,{items:tr,value:l.status??"",onValueChange:v=>a(String(v??"")),children:[c.jsx(vv,{"aria-label":"Filter by run status",className:"w-28",children:c.jsx(bv,{})}),c.jsx(yv,{children:tr.map(v=>c.jsx(pv,{value:v.value,children:v.label},v.value))})]}),c.jsx(Uu,{value:l.agentName??"",placeholder:"agent",onChange:n})]}),children:[l.threadId!==void 0&&c.jsxs(dt,{variant:"accent",size:"xs",onClick:u,className:"mono mb-3",children:["thread ",l.threadId,c.jsx(mo,{})]}),t.error!==null&&c.jsx("div",{className:"mb-3",children:c.jsx(fi,{label:"Runs",error:t.error,onRetry:t.retry})}),o.rows.length===0?c.jsx(Se,{label:"No runs yet"}):c.jsxs(c.Fragment,{children:[c.jsxs(Vn,{className:"min-w-[520px]",children:[c.jsx(Zn,{children:c.jsxs(Kn,{children:[c.jsx(w,{children:"Status"}),c.jsx(w,{children:"Agent"}),c.jsx(w,{className:"text-right",children:"Duration"}),c.jsx(w,{className:"pl-4",children:"Error"}),c.jsx(w,{className:"pl-4",children:"Prompt"}),c.jsx(w,{className:"pl-4 text-right",children:"Started"})]})}),c.jsx(wn,{children:o.rows.map(v=>c.jsxs(kn,{className:"hover:bg-panel-2",children:[c.jsx(k,{className:"pr-4",children:s===void 0?c.jsx(Ua,{status:v.status}):c.jsx("button",{type:"button",title:`Open run ${v.runId}`,onClick:()=>s(v.runId),className:"underline decoration-line decoration-dotted underline-offset-4 transition-colors hover:decoration-brand",children:c.jsx(Ua,{status:v.status})})}),c.jsx(k,{className:"pr-4",children:v.agentName??"(default)"}),c.jsx(k,{className:"text-right",children:dl(v.durationMs)}),c.jsx(k,{className:"pl-4",children:v.errorMessage?c.jsx("span",{className:"block max-w-[220px] truncate text-bad",title:v.errorMessage,children:v.errorCode?`${v.errorCode}: ${v.errorMessage}`:v.errorMessage}):"—"}),c.jsx(k,{className:"pl-4",children:v.promptHash?c.jsx(Gl,{title:v.promptHash,children:v.promptHash.slice(0,8)}):"—"}),c.jsx(k,{className:"pl-4 text-right text-[10px]",children:jt(v.startedAt)})]},v.runId))})]}),c.jsx(oi,{page:o.page,pageSize:o.pageSize,total:o.total,onPage:i})]})]})]})]})}function jv(e){return/forbidden|denied|error|failed|reject/i.test(e)}function Fv({toolCalls:e,toolCallsTable:t,toolCallsWhere:l,onToolCallsToolNameChange:a,onToolCallsStatusChange:n,onToolCallsPageChange:u,threadsTable:i,threadsWhere:s,onThreadsTitleChange:o,onThreadsPageChange:f,onOpenRun:g,onOpenThread:h}){const d=e.filter(v=>jv(v.status)),b=t.page,S=i.page;return c.jsxs("div",{className:"flex flex-col gap-4",children:[d.length>0&&c.jsxs(Vt,{className:"flex items-center gap-2 border-bad/40 p-3 text-xs text-bad",children:[c.jsx(Yl,{}),c.jsxs("span",{className:"mono",children:[d.length," recent tool call",d.length===1?"":"s"," blocked or failed"]})]}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:[c.jsxs(ce,{title:"Recent tool calls",subtitle:"Latest tool activity across threads",right:c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(Uu,{value:l.toolName??"",placeholder:"tool name",onChange:a}),c.jsx(Uu,{value:l.status??"",placeholder:"status",onChange:n})]}),children:[t.error!==null&&c.jsx("div",{className:"mb-3",children:c.jsx(fi,{label:"Tool calls",error:t.error,onRetry:t.retry})}),b.rows.length===0?c.jsx(Se,{label:"No tool calls yet"}):c.jsxs(c.Fragment,{children:[c.jsx("ul",{className:"space-y-1",children:b.rows.map(v=>{const D=v.runId;return c.jsxs("li",{className:"flex items-center gap-3 rounded-md px-2 py-1.5 text-xs hover:bg-panel-2",children:[c.jsx(Ua,{status:v.status}),c.jsx("span",{className:"mono min-w-0",children:c.jsx(si,{label:v.toolName,title:D??"No run recorded for this call",onOpen:g===void 0||D===null?void 0:()=>g(D)})}),c.jsx(Gl,{children:v.toolType}),c.jsx("span",{className:"mono ml-auto shrink-0 text-[10px] text-muted-foreground",children:jt(v.createdAt)})]},v.toolCallId)})}),c.jsx(oi,{page:b.page,pageSize:b.pageSize,total:b.total,onPage:u})]})]}),c.jsxs(ce,{title:"Recent threads",subtitle:"Latest conversations with rolled-up usage",right:c.jsx(Uu,{value:s.title??"",placeholder:"title",onChange:o}),children:[i.error!==null&&c.jsx("div",{className:"mb-3",children:c.jsx(fi,{label:"Threads",error:i.error,onRetry:i.retry})}),S.rows.length===0?c.jsx(Se,{label:"No threads yet"}):c.jsxs(c.Fragment,{children:[c.jsx("ul",{className:"space-y-1",children:S.rows.map(v=>c.jsxs("li",{className:"flex items-center gap-3 rounded-md px-2 py-1.5 text-xs hover:bg-panel-2",children:[c.jsx("span",{className:"min-w-0",children:c.jsx(si,{label:v.title||v.threadId,title:v.threadId,onOpen:h===void 0?void 0:()=>h(v.threadId)})}),c.jsxs("span",{className:"mono ml-auto shrink-0 text-[10px] text-muted-foreground",children:[v.messageCount," msg · ",be(v.totalTokens)," tok"]}),c.jsx("span",{className:"mono shrink-0 text-[10px] text-muted-foreground",children:jt(v.lastActivityAt)})]},v.threadId))}),c.jsx(oi,{page:S.page,pageSize:S.pageSize,total:S.total,onPage:f})]})]})]})]})}function Sv({rows:e,onOpenThread:t}){return c.jsx(ce,{title:"Top threads by cost",subtitle:"Highest-spend conversations over the range",children:e.length===0?c.jsx(Se,{label:"No thread spend in this range"}):c.jsxs(Vn,{className:"min-w-[640px]",children:[c.jsx(Zn,{children:c.jsxs(Kn,{children:[c.jsx(w,{children:"Thread"}),c.jsx(w,{children:"Actor"}),c.jsx(w,{className:"text-right",children:"Requests"}),c.jsx(w,{className:"text-right",children:"Tokens"}),c.jsx(w,{className:"text-right",children:"Cost"})]})}),c.jsx(wn,{children:e.map(l=>c.jsxs(kn,{children:[c.jsx(k,{className:"max-w-[260px]",children:c.jsx(si,{label:l.title||l.threadId,title:l.threadId,onOpen:t===void 0?void 0:()=>t(l.threadId)})}),c.jsx(k,{className:"truncate",children:l.actorLabel??l.actorRef}),c.jsx(k,{className:"text-right",children:l.requests}),c.jsx(k,{className:"text-right",children:be(l.totalTokens)}),c.jsx(k,{className:"text-right text-foreground",children:qe(l.costUsd)})]},l.threadId))})]})})}const Nv={costUsd:"Cost",totalTokens:"Tokens"};function zv({points:e,metric:t,height:l=200}){const a=ne.useId(),n=t==="costUsd"?qe:be,u=Nv[t],i=ne.useMemo(()=>new Map(e.map(o=>[o.day,o])),[e]),s=ne.useMemo(()=>ds(e,o=>o[t]),[e,t]);return c.jsxs("figure",{className:"m-0",children:[c.jsx("div",{className:"w-full",style:{height:l},children:c.jsx(nr,{width:"100%",height:"100%",children:c.jsxs(mg,{data:e,margin:{top:8,right:18,bottom:0,left:0},children:[c.jsx("defs",{children:c.jsxs("linearGradient",{id:a,x1:"0",y1:"0",x2:"0",y2:"1",children:[c.jsx("stop",{offset:"0%",stopColor:"var(--accent)",stopOpacity:.38}),c.jsx("stop",{offset:"100%",stopColor:"var(--accent)",stopOpacity:0})]})}),c.jsx(ur,{...Eh}),c.jsx(ir,{dataKey:"day",tickFormatter:mi,tick:ri,axisLine:Ah,tickLine:!1,minTickGap:28}),c.jsx(cr,{tickFormatter:n,tick:ri,axisLine:!1,tickLine:!1,width:56}),c.jsx(ms,{cursor:Mh,isAnimationActive:!1,content:o=>{const f=typeof o.label=="string"?o.label:null,g=f?i.get(f):void 0;return!o.active||!g?null:c.jsx(go,{title:ya(g.day),children:c.jsx(di,{color:"var(--accent)",label:u,value:n(g[t])})})}}),c.jsx(sr,{type:"monotone",dataKey:t,name:u,stroke:"var(--accent)",strokeWidth:1.8,fill:`url(#${a})`,dot:!1,activeDot:{r:3.5,strokeWidth:0,fill:"var(--accent)"},isAnimationActive:!1})]})})}),c.jsxs(Dh,{children:[c.jsxs("span",{children:[ya(s.first)," – ",ya(s.last)]}),c.jsxs("span",{children:["peak ",n(s.peak)," on ",mi(s.peakDay)]})]})]})}const Tv=ug;function Av({className:e,...t}){return c.jsx(ig,{className:Z("inline-flex items-center gap-1 rounded-md",e),...t})}function lr({className:e,...t}){return c.jsx(cg,{className:Z("rounded-md border border-transparent px-2 py-1 text-[11px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/50","data-[active]:border-brand data-[active]:bg-brand/10 data-[active]:text-foreground",e),...t})}function Iv({overview:e,topThreads:t,onOpenThread:l}){const[a,n]=ne.useState("costUsd"),u=fv(e.byModel),i=Th(e.byModel),s=rv(i);return c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4",children:[c.jsx(ut,{label:"Total spend",value:qe(u.costUsd),sub:`${u.requests} requests`,icon:c.jsx(Kb,{}),tone:"accent"}),c.jsx(ut,{label:"Total tokens",value:be(u.totalTokens),sub:`${be(u.inputTokens)} in · ${be(u.outputTokens)} out`,icon:c.jsx(jh,{})}),c.jsx(ut,{label:"Models used",value:`${e.byModel.length}`,sub:"distinct model ids",icon:c.jsx(Jb,{})}),c.jsx(ut,{label:"Avg cost / request",value:qe(u.requests>0?u.costUsd/u.requests:0),sub:"over the range",icon:c.jsx($b,{})})]}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-3",children:[c.jsx(ce,{title:"Spend by model",subtitle:"Share of cost across the range",children:s.length===0?c.jsx(Se,{label:"No spend recorded in this range"}):c.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row",children:[c.jsx(Oh,{segments:s,centerLabel:qe(u.costUsd),centerSub:"total",formatValue:qe}),c.jsx("ul",{className:"flex-1 space-y-1.5",children:i.slice(0,8).map((o,f)=>c.jsxs("li",{className:"flex items-center gap-2 text-xs",children:[c.jsx("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{background:va(f)}}),c.jsx("span",{className:"mono min-w-0 flex-1 truncate text-foreground",title:o.modelId,children:ho(o.modelId)}),c.jsx("span",{className:"mono tnum ml-auto shrink-0 text-muted-foreground",children:qe(o.costUsd)}),c.jsxs("span",{className:"mono tnum w-9 shrink-0 text-right text-muted-foreground",children:[Math.round(o.costShare*100),"%"]})]},o.modelId))})]})}),c.jsx(ce,{className:"lg:col-span-2",title:"Daily usage trend",subtitle:"Per-day spend / tokens across the range",right:c.jsx(Tv,{value:a,onValueChange:o=>n(o),"aria-label":"Trend metric",children:c.jsxs(Av,{children:[c.jsx(lr,{value:"costUsd",children:"Cost"}),c.jsx(lr,{value:"totalTokens",children:"Tokens"})]})}),children:e.trend.length===0?c.jsx(Se,{label:"No usage recorded in this range"}):c.jsx(zv,{points:e.trend,metric:a})})]}),c.jsx(Sv,{rows:t,onOpenThread:l})]})}function Pv({rows:e}){return c.jsx(ce,{title:"Tools",subtitle:"Per-tool call volume, failure/rejection rate and latency over the range",children:e.length===0?c.jsx(Se,{label:"No tool calls in this range"}):c.jsxs(Vn,{className:"min-w-[700px]",children:[c.jsx(Zn,{children:c.jsxs(Kn,{children:[c.jsx(w,{children:"Tool"}),c.jsx(w,{children:"Kind"}),c.jsx(w,{className:"text-right",children:"Calls"}),c.jsx(w,{className:"text-right",children:"Failure rate"}),c.jsx(w,{className:"text-right",children:"Rejected"}),c.jsx(w,{className:"pl-4 text-right",children:"p50 exec"}),c.jsx(w,{className:"pl-4 text-right",children:"p95 exec"})]})}),c.jsx(wn,{children:e.map(t=>{const l=t.calls>0?t.failed/t.calls:0;return c.jsxs(kn,{children:[c.jsx(k,{className:"pr-4",children:c.jsx(Dn,{label:t.toolName,children:c.jsx("span",{className:"block max-w-[240px] truncate text-foreground",children:t.toolName})})}),c.jsx(k,{className:"pr-4",children:c.jsx(Gl,{children:t.toolType})}),c.jsx(k,{className:"text-right",children:t.calls}),c.jsx(k,{className:`text-right ${t.failed>0?"text-bad":""}`,children:On(l)}),c.jsx(k,{className:"text-right",children:t.rejected}),c.jsx(k,{className:"pl-4 text-right text-foreground",children:dl(t.p50ExecutionMs)}),c.jsx(k,{className:"pl-4 text-right",children:dl(t.p95ExecutionMs)})]},t.toolName)})})]})})}export{Vv as A,dt as B,Vt as C,wv as D,Se as E,fi as I,Qv as L,Jv as M,$v as P,kv as R,Pb as S,Kv as T,Bv as U,Hv as W,Zv as a,Wv as b,Fv as c,Iv as d,Pv as e,Z as f,Kb as g,Jb as h,Gv as i,Yv as j,qv as k,jh as l,_v as m,Gl as n,Lv as o,Cv as p,yh as q,Rv as r,Xv as s,xh as t,Ov as u,Uv as v,ev as w};
25
+ `).replace(dx,"")}function Ym(e,t){return t=zf(t),zf(e)===t}function $(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Sa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Sa(e,""+a);break;case"className":lu(e,"class",a);break;case"tabIndex":lu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":lu(e,l,a);break;case"style":Hr(e,a,u);break;case"data":if(t!=="object"){lu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=bu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&$(e,t,"name",n.name,n,null),$(e,t,"formEncType",n.formEncType,n,null),$(e,t,"formMethod",n.formMethod,n,null),$(e,t,"formTarget",n.formTarget,n,null)):($(e,t,"encType",n.encType,n,null),$(e,t,"method",n.method,n,null),$(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=bu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=_t);break;case"onScroll":a!=null&&G("scroll",e);break;case"onScrollEnd":a!=null&&G("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(p(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(p(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=bu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":G("beforetoggle",e),G("toggle",e),xu(e,"popover",a);break;case"xlinkActuate":zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":zt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":zt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":zt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":zt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":xu(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Xg.get(l)||l,xu(e,l,a))}}function ts(e,t,l,a,n,u){switch(l){case"style":Hr(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(p(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(p(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Sa(e,a):(typeof a=="number"||typeof a=="bigint")&&Sa(e,""+a);break;case"onScroll":a!=null&&G("scroll",e);break;case"onScrollEnd":a!=null&&G("scrollend",e);break;case"onClick":a!=null&&(e.onclick=_t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Or.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[Ye]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):xu(e,l,a)}}}function Ee(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":G("error",e),G("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(p(137,t));default:$(e,t,u,i,l,null)}}n&&$(e,t,"srcSet",l.srcSet,l,null),a&&$(e,t,"src",l.src,l,null);return;case"input":G("invalid",e);var s=u=i=n=null,o=null,f=null;for(a in l)if(l.hasOwnProperty(a)){var g=l[a];if(g!=null)switch(a){case"name":n=g;break;case"type":i=g;break;case"checked":o=g;break;case"defaultChecked":f=g;break;case"value":u=g;break;case"defaultValue":s=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(p(137,t));break;default:$(e,t,a,g,l,null)}}_r(e,u,s,o,f,i,n,!1);return;case"select":G("invalid",e),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(s=l[n],s!=null))switch(n){case"value":u=s;break;case"defaultValue":i=s;break;case"multiple":a=s;default:$(e,t,n,s,l,null)}t=u,l=i,e.multiple=!!a,t!=null?da(e,!!a,t,!1):l!=null&&da(e,!!a,l,!0);return;case"textarea":G("invalid",e),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(s=l[i],s!=null))switch(i){case"value":a=s;break;case"defaultValue":n=s;break;case"children":u=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(p(91));break;default:$(e,t,i,s,l,null)}Br(e,a,n,u);return;case"option":for(o in l)if(l.hasOwnProperty(o)&&(a=l[o],a!=null))switch(o){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:$(e,t,o,a,l,null)}return;case"dialog":G("beforetoggle",e),G("toggle",e),G("cancel",e),G("close",e);break;case"iframe":case"object":G("load",e);break;case"video":case"audio":for(a=0;a<zn.length;a++)G(zn[a],e);break;case"image":G("error",e),G("load",e);break;case"details":G("toggle",e);break;case"embed":case"source":case"link":G("error",e),G("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(f in l)if(l.hasOwnProperty(f)&&(a=l[f],a!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(p(137,t));default:$(e,t,f,a,l,null)}return;default:if(ps(t)){for(g in l)l.hasOwnProperty(g)&&(a=l[g],a!==void 0&&ts(e,t,g,a,l,void 0));return}}for(s in l)l.hasOwnProperty(s)&&(a=l[s],a!=null&&$(e,t,s,a,l,null))}function mx(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,s=null,o=null,f=null,g=null;for(b in l){var h=l[b];if(l.hasOwnProperty(b)&&h!=null)switch(b){case"checked":break;case"value":break;case"defaultValue":o=h;default:a.hasOwnProperty(b)||$(e,t,b,null,a,h)}}for(var d in a){var b=a[d];if(h=l[d],a.hasOwnProperty(d)&&(b!=null||h!=null))switch(d){case"type":u=b;break;case"name":n=b;break;case"checked":f=b;break;case"defaultChecked":g=b;break;case"value":i=b;break;case"defaultValue":s=b;break;case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(p(137,t));break;default:b!==h&&$(e,t,d,b,a,h)}}Ac(e,i,s,o,f,g,u,n);return;case"select":b=i=s=d=null;for(u in l)if(o=l[u],l.hasOwnProperty(u)&&o!=null)switch(u){case"value":break;case"multiple":b=o;default:a.hasOwnProperty(u)||$(e,t,u,null,a,o)}for(n in a)if(u=a[n],o=l[n],a.hasOwnProperty(n)&&(u!=null||o!=null))switch(n){case"value":d=u;break;case"defaultValue":s=u;break;case"multiple":i=u;default:u!==o&&$(e,t,n,u,a,o)}t=s,l=i,a=b,d!=null?da(e,!!l,d,!1):!!a!=!!l&&(t!=null?da(e,!!l,t,!0):da(e,!!l,l?[]:"",!1));return;case"textarea":b=d=null;for(s in l)if(n=l[s],l.hasOwnProperty(s)&&n!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:$(e,t,s,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":d=n;break;case"defaultValue":b=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(p(91));break;default:n!==u&&$(e,t,i,n,a,u)}Rr(e,d,b);return;case"option":for(var S in l)if(d=l[S],l.hasOwnProperty(S)&&d!=null&&!a.hasOwnProperty(S))switch(S){case"selected":e.selected=!1;break;default:$(e,t,S,null,a,d)}for(o in a)if(d=a[o],b=l[o],a.hasOwnProperty(o)&&d!==b&&(d!=null||b!=null))switch(o){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:$(e,t,o,d,a,b)}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 v in l)d=l[v],l.hasOwnProperty(v)&&d!=null&&!a.hasOwnProperty(v)&&$(e,t,v,null,a,d);for(f in a)if(d=a[f],b=l[f],a.hasOwnProperty(f)&&d!==b&&(d!=null||b!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(p(137,t));break;default:$(e,t,f,d,a,b)}return;default:if(ps(t)){for(var D in l)d=l[D],l.hasOwnProperty(D)&&d!==void 0&&!a.hasOwnProperty(D)&&ts(e,t,D,void 0,a,d);for(g in a)d=a[g],b=l[g],!a.hasOwnProperty(g)||d===b||d===void 0&&b===void 0||ts(e,t,g,d,a,b);return}}for(var m in l)d=l[m],l.hasOwnProperty(m)&&d!=null&&!a.hasOwnProperty(m)&&$(e,t,m,null,a,d);for(h in a)d=a[h],b=l[h],!a.hasOwnProperty(h)||d===b||d==null&&b==null||$(e,t,h,d,a,b)}function Tf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,s=n.duration;if(u&&s&&Tf(i)){for(i=0,s=n.responseEnd,a+=1;a<l.length;a++){var o=l[a],f=o.startTime;if(f>s)break;var g=o.transferSize,h=o.initiatorType;g&&Tf(h)&&(o=o.responseEnd,i+=g*(o<s?1:(s-f)/(o-f)))}if(--a,t+=8*(u+i)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ls=null,as=null;function ti(e){return e.nodeType===9?e:e.ownerDocument}function Af(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Xm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ns(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mc=null;function gx(){var e=window.event;return e&&e.type==="popstate"?e===mc?!1:(mc=e,!0):(mc=null,!1)}var Qm=typeof setTimeout=="function"?setTimeout:void 0,xx=typeof clearTimeout=="function"?clearTimeout:void 0,Mf=typeof Promise=="function"?Promise:void 0,bx=typeof queueMicrotask=="function"?queueMicrotask:typeof Mf<"u"?function(e){return Mf.resolve(null).then(e).catch(vx)}:Qm;function vx(e){setTimeout(function(){throw e})}function vl(e){return e==="head"}function Ef(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Oa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")hn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,hn(l);for(var u=l.firstChild;u;){var i=u.nextSibling,s=u.nodeName;u[Bn]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&hn(e.ownerDocument.body);l=n}while(l);Oa(t)}function Df(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function us(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":us(l),ys(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function yx(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Bn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=ct(e.nextSibling),e===null)break}return null}function px(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=ct(e.nextSibling),e===null))return null;return e}function Lm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ct(e.nextSibling),e===null))return null;return e}function is(e){return e.data==="$?"||e.data==="$~"}function cs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function jx(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function ct(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ss=null;function Of(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return ct(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Uf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Vm(e,t,l){switch(t=ti(l),e){case"html":if(e=t.documentElement,!e)throw Error(p(452));return e;case"head":if(e=t.head,!e)throw Error(p(453));return e;case"body":if(e=t.body,!e)throw Error(p(454));return e;default:throw Error(p(451))}}function hn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ys(e)}var st=new Map,Cf=new Set;function li(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Zt=V.d;V.d={f:Sx,r:Nx,D:zx,C:Tx,L:Ax,m:Mx,X:Dx,S:Ex,M:Ox};function Sx(){var e=Zt.f(),t=Mi();return e||t}function Nx(e){var t=_a(e);t!==null&&t.tag===5&&t.type==="form"?Hd(t):Zt.r(e)}var qa=typeof document>"u"?null:document;function Zm(e,t,l){var a=qa;if(a&&typeof t=="string"&&t){var n=lt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Cf.has(n)||(Cf.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ee(t,"link",e),je(t),a.head.appendChild(t)))}}function zx(e){Zt.D(e),Zm("dns-prefetch",e,null)}function Tx(e,t){Zt.C(e,t),Zm("preconnect",e,t)}function Ax(e,t,l){Zt.L(e,t,l);var a=qa;if(a&&e&&t){var n='link[rel="preload"][as="'+lt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+lt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+lt(l.imageSizes)+'"]')):n+='[href="'+lt(e)+'"]';var u=n;switch(t){case"style":u=Da(e);break;case"script":u=Ga(e)}st.has(u)||(e=le({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),st.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Qn(u))||t==="script"&&a.querySelector(Ln(u))||(t=a.createElement("link"),Ee(t,"link",e),je(t),a.head.appendChild(t)))}}function Mx(e,t){Zt.m(e,t);var l=qa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+lt(a)+'"][href="'+lt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ga(e)}if(!st.has(u)&&(e=le({rel:"modulepreload",href:e},t),st.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ln(u)))return}a=l.createElement("link"),Ee(a,"link",e),je(a),l.head.appendChild(a)}}}function Ex(e,t,l){Zt.S(e,t,l);var a=qa;if(a&&e){var n=ra(a).hoistableStyles,u=Da(e);t=t||"default";var i=n.get(u);if(!i){var s={loading:0,preload:null};if(i=a.querySelector(Qn(u)))s.loading=5;else{e=le({rel:"stylesheet",href:e,"data-precedence":t},l),(l=st.get(u))&&no(e,l);var o=i=a.createElement("link");je(o),Ee(o,"link",e),o._p=new Promise(function(f,g){o.onload=f,o.onerror=g}),o.addEventListener("load",function(){s.loading|=1}),o.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Mu(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:s},n.set(u,i)}}}function Dx(e,t){Zt.X(e,t);var l=qa;if(l&&e){var a=ra(l).hoistableScripts,n=Ga(e),u=a.get(n);u||(u=l.querySelector(Ln(n)),u||(e=le({src:e,async:!0},t),(t=st.get(n))&&uo(e,t),u=l.createElement("script"),je(u),Ee(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Ox(e,t){Zt.M(e,t);var l=qa;if(l&&e){var a=ra(l).hoistableScripts,n=Ga(e),u=a.get(n);u||(u=l.querySelector(Ln(n)),u||(e=le({src:e,async:!0,type:"module"},t),(t=st.get(n))&&uo(e,t),u=l.createElement("script"),je(u),Ee(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function _f(e,t,l,a){var n=(n=al.current)?li(n):null;if(!n)throw Error(p(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Da(l.href),l=ra(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Da(l.href);var u=ra(n).hoistableStyles,i=u.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,i),(u=n.querySelector(Qn(e)))&&!u._p&&(i.instance=u,i.state.loading=5),st.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},st.set(e,l),u||Ux(n,e,l,i.state))),t&&a===null)throw Error(p(528,""));return i}if(t&&a!==null)throw Error(p(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ga(l),l=ra(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(p(444,e))}}function Da(e){return'href="'+lt(e)+'"'}function Qn(e){return'link[rel="stylesheet"]['+e+"]"}function wm(e){return le({},e,{"data-precedence":e.precedence,precedence:null})}function Ux(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ee(t,"link",l),je(t),e.head.appendChild(t))}function Ga(e){return'[src="'+lt(e)+'"]'}function Ln(e){return"script[async]"+e}function Rf(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+lt(l.href)+'"]');if(a)return t.instance=a,je(a),a;var n=le({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),je(a),Ee(a,"style",n),Mu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Da(l.href);var u=e.querySelector(Qn(n));if(u)return t.state.loading|=4,t.instance=u,je(u),u;a=wm(l),(n=st.get(n))&&no(a,n),u=(e.ownerDocument||e).createElement("link"),je(u);var i=u;return i._p=new Promise(function(s,o){i.onload=s,i.onerror=o}),Ee(u,"link",a),t.state.loading|=4,Mu(u,l.precedence,e),t.instance=u;case"script":return u=Ga(l.src),(n=e.querySelector(Ln(u)))?(t.instance=n,je(n),n):(a=l,(n=st.get(u))&&(a=le({},l),uo(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),je(n),Ee(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(p(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,Mu(a,l.precedence,e));return t.instance}function Mu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var s=a[i];if(s.dataset.precedence===t)u=s;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function no(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function uo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Eu=null;function Bf(e,t,l){if(Eu===null){var a=new Map,n=Eu=new Map;n.set(l,a)}else n=Eu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Bn]||u[Te]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=e+i;var s=a.get(i);s?s.push(u):a.set(i,[u])}}return a}function Hf(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Cx(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function km(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function _x(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(l.state.loading&4)){if(l.instance===null){var n=Da(a.href),u=t.querySelector(Qn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ai.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,je(u);return}u=t.ownerDocument||t,a=wm(a),(n=st.get(n))&&no(a,n),u=u.createElement("link"),je(u);var i=u;i._p=new Promise(function(s,o){i.onload=s,i.onerror=o}),Ee(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&!(l.state.loading&3)&&(e.count++,l=ai.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var hc=0;function Rx(e,t){return e.stylesheets&&e.count===0&&Du(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Du(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&hc===0&&(hc=62500*hx());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Du(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>hc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ai(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Du(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ni=null;function Du(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ni=new Map,t.forEach(Bx,e),ni=null,ai.call(e))}function Bx(e,t){if(!(t.state.loading&4)){var l=ni.get(e);if(l)var a=l.get(null);else{l=new Map,ni.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=ai.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var An={$$typeof:Ct,Provider:null,Consumer:null,_currentValue:El,_currentValue2:El,_threadCount:0};function Hx(e,t,l,a,n,u,i,s,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qi(0),this.hiddenUpdates=qi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Km(e,t,l,a,n,u,i,s,o,f,g,h){return e=new Hx(e,t,l,i,o,f,g,h,s),t=1,u===!0&&(t|=24),u=Ze(3,null,null,t),e.current=u,u.stateNode=e,t=Us(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Rs(u),e}function Jm(e){return e?(e=ca,e):ca}function $m(e,t,l,a,n,u){n=Jm(n),a.context===null?a.context=n:a.pendingContext=n,a=ul(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=il(e,a,t),l!==null&&(Ge(l,e,t),un(l,e,t))}function qf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function io(e,t){qf(e,t),(e=e.alternate)&&qf(e,t)}function Wm(e){if(e.tag===13||e.tag===31){var t=Vl(e,67108864);t!==null&&Ge(t,e,67108864),io(e,67108864)}}function Gf(e){if(e.tag===13||e.tag===31){var t=$e();t=bs(t);var l=Vl(e,t);l!==null&&Ge(l,e,t),io(e,t)}}var ui=!0;function qx(e,t,l,a){var n=U.T;U.T=null;var u=V.p;try{V.p=2,co(e,t,l,a)}finally{V.p=u,U.T=n}}function Gx(e,t,l,a){var n=U.T;U.T=null;var u=V.p;try{V.p=8,co(e,t,l,a)}finally{V.p=u,U.T=n}}function co(e,t,l,a){if(ui){var n=os(a);if(n===null)dc(e,t,a,ii,l),Yf(e,a);else if(Xx(n,e,t,l,a))a.stopPropagation();else if(Yf(e,a),t&4&&-1<Yx.indexOf(e)){for(;n!==null;){var u=_a(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Tl(u.pendingLanes);if(i!==0){var s=u;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var o=1<<31-Je(i);s.entanglements[1]|=o,i&=~o}Nt(u),!(L&6)&&($u=ke()+500,Xn(0))}}break;case 31:case 13:s=Vl(u,2),s!==null&&Ge(s,u,2),Mi(),io(u,2)}if(u=os(a),u===null&&dc(e,t,a,ii,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else dc(e,t,a,null,l)}}function os(e){return e=js(e),so(e)}var ii=null;function so(e){if(ii=null,e=ta(e),e!==null){var t=Un(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=xr(t),e!==null)return e;e=null}else if(l===31){if(e=br(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ii=e,null}function Fm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(zg()){case jr:return 2;case Sr:return 8;case Bu:case Tg:return 32;case Nr:return 268435456;default:return 32}default:return 32}}var fs=!1,ol=null,fl=null,rl=null,Mn=new Map,En=new Map,Ft=[],Yx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Yf(e,t){switch(e){case"focusin":case"focusout":ol=null;break;case"dragenter":case"dragleave":fl=null;break;case"mouseover":case"mouseout":rl=null;break;case"pointerover":case"pointerout":Mn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":En.delete(t.pointerId)}}function Ka(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=_a(t),t!==null&&Wm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Xx(e,t,l,a,n){switch(t){case"focusin":return ol=Ka(ol,e,t,l,a,n),!0;case"dragenter":return fl=Ka(fl,e,t,l,a,n),!0;case"mouseover":return rl=Ka(rl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Mn.set(u,Ka(Mn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,En.set(u,Ka(En.get(u)||null,e,t,l,a,n)),!0}return!1}function Im(e){var t=ta(e.target);if(t!==null){var l=Un(t);if(l!==null){if(t=l.tag,t===13){if(t=xr(l),t!==null){e.blockedOn=t,So(e.priority,function(){Gf(l)});return}}else if(t===31){if(t=br(l),t!==null){e.blockedOn=t,So(e.priority,function(){Gf(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ou(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=os(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Ec=a,l.target.dispatchEvent(a),Ec=null}else return t=_a(l),t!==null&&Wm(t),e.blockedOn=l,!1;t.shift()}return!0}function Xf(e,t,l){Ou(e)&&l.delete(t)}function Qx(){fs=!1,ol!==null&&Ou(ol)&&(ol=null),fl!==null&&Ou(fl)&&(fl=null),rl!==null&&Ou(rl)&&(rl=null),Mn.forEach(Xf),En.forEach(Xf)}function fu(e,t){e.blockedOn===t&&(e.blockedOn=null,fs||(fs=!0,ve.unstable_scheduleCallback(ve.unstable_NormalPriority,Qx)))}var ru=null;function Qf(e){ru!==e&&(ru=e,ve.unstable_scheduleCallback(ve.unstable_NormalPriority,function(){ru===e&&(ru=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(so(a||l)===null)continue;break}var u=_a(l);u!==null&&(e.splice(t,3),t-=3,Zc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Oa(e){function t(o){return fu(o,e)}ol!==null&&fu(ol,e),fl!==null&&fu(fl,e),rl!==null&&fu(rl,e),Mn.forEach(t),En.forEach(t);for(var l=0;l<Ft.length;l++){var a=Ft[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ft.length&&(l=Ft[0],l.blockedOn===null);)Im(l),l.blockedOn===null&&Ft.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[Ye]||null;if(typeof u=="function")i||Qf(l);else if(i){var s=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Ye]||null)s=i.formAction;else if(so(n)!==null)continue}else s=i.action;typeof s=="function"?l[a+1]=s:(l.splice(a,3),a-=3),Qf(l)}}}function Pm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function oo(e){this._internalRoot=e}Oi.prototype.render=oo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(p(409));var l=t.current,a=$e();$m(l,a,e,t,null,null)};Oi.prototype.unmount=oo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$m(e.current,2,null,e,null,null),Mi(),t[Ca]=null}};function Oi(e){this._internalRoot=e}Oi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Er();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ft.length&&t!==0&&t<Ft[l].priority;l++);Ft.splice(l,0,e),l===0&&Im(e)}};var Lf=hr.version;if(Lf!=="19.2.8")throw Error(p(527,Lf,"19.2.8"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(p(188)):(e=Object.keys(e).join(","),Error(p(268,e)));return e=bg(t),e=e!==null?vr(e):null,e=e===null?null:e.stateNode,e};var Lx={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!du.isDisabled&&du.supportsFiber)try{Cn=du.inject(Lx),Ke=du}catch{}}hi.createRoot=function(e,t){if(!gr(e))throw Error(p(299));var l=!1,a="",n=Zd,u=wd,i=kd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Km(e,1,!1,null,null,l,a,null,n,u,i,Pm),e[Ca]=t.current,ao(e),new oo(t)};hi.hydrateRoot=function(e,t,l){if(!gr(e))throw Error(p(299));var a=!1,n="",u=Zd,i=wd,s=kd,o=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(s=l.onRecoverableError),l.formState!==void 0&&(o=l.formState)),t=Km(e,1,!0,t,l??null,a,n,o,u,i,s,Pm),t.context=Jm(null),l=t.current,a=$e(),a=bs(a),n=ul(a),n.callback=null,il(l,n,a),l=a,t.current.lanes=l,Rn(t,l),Nt(t),e[Ca]=t.current,ao(e),new Oi(t)};hi.version="19.2.8";function eh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eh)}catch(e){console.error(e)}}eh(),rr.exports=hi;var Cv=rr.exports;const Vx=200;function _v(e,t,l,a=Vx){return[{...t,id:`${t.ts}-${l}`},...e].slice(0,a)}function Zx(e){if(e.event==="quota.exceeded")return!0;const t=e.payload.status;return typeof t=="string"&&/forbidden|denied|error|failed/i.test(t)}const Vf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zf=ar,th=(e,t)=>l=>{var a;if((t==null?void 0:t.variants)==null)return Zf(e,l==null?void 0:l.class,l==null?void 0:l.className);const{variants:n,defaultVariants:u}=t,i=Object.keys(n).map(f=>{const g=l==null?void 0:l[f],h=u==null?void 0:u[f];if(g===null)return null;const d=Vf(g)||Vf(h);return n[f][d]}),s=l&&Object.entries(l).reduce((f,g)=>{let[h,d]=g;return d===void 0||(f[h]=d),f},{}),o=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((f,g)=>{let{class:h,className:d,...b}=g;return Object.entries(b).every(S=>{let[v,D]=S;return Array.isArray(D)?D.includes({...u,...s}[v]):{...u,...s}[v]===D})?[...f,h,d]:f},[]);return Zf(e,i,o,l==null?void 0:l.class,l==null?void 0:l.className)},wx=(e,t)=>{const l=new Array(e.length+t.length);for(let a=0;a<e.length;a++)l[a]=e[a];for(let a=0;a<t.length;a++)l[e.length+a]=t[a];return l},kx=(e,t)=>({classGroupId:e,validator:t}),lh=(e=new Map,t=null,l)=>({nextPart:e,validators:t,classGroupId:l}),ci="-",wf=[],Kx="arbitrary..",Jx=e=>{const t=Wx(e),{conflictingClassGroups:l,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return $x(i);const s=i.split(ci),o=s[0]===""&&s.length>1?1:0;return ah(s,o,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const o=a[i],f=l[i];return o?f?wx(f,o):o:f||wf}return l[i]||wf}}},ah=(e,t,l)=>{if(e.length-t===0)return l.classGroupId;const n=e[t],u=l.nextPart.get(n);if(u){const f=ah(e,t+1,u);if(f)return f}const i=l.validators;if(i===null)return;const s=t===0?e.join(ci):e.slice(t).join(ci),o=i.length;for(let f=0;f<o;f++){const g=i[f];if(g.validator(s))return g.classGroupId}},$x=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),l=t.indexOf(":"),a=t.slice(0,l);return a?Kx+a:void 0})(),Wx=e=>{const{theme:t,classGroups:l}=e;return Fx(l,t)},Fx=(e,t)=>{const l=lh();for(const a in e){const n=e[a];fo(n,l,a,t)}return l},fo=(e,t,l,a)=>{const n=e.length;for(let u=0;u<n;u++){const i=e[u];Ix(i,t,l,a)}},Ix=(e,t,l,a)=>{if(typeof e=="string"){Px(e,t,l);return}if(typeof e=="function"){eb(e,t,l,a);return}tb(e,t,l,a)},Px=(e,t,l)=>{const a=e===""?t:nh(t,e);a.classGroupId=l},eb=(e,t,l,a)=>{if(lb(e)){fo(e(a),t,l,a);return}t.validators===null&&(t.validators=[]),t.validators.push(kx(l,e))},tb=(e,t,l,a)=>{const n=Object.entries(e),u=n.length;for(let i=0;i<u;i++){const[s,o]=n[i];fo(o,nh(t,s),l,a)}},nh=(e,t)=>{let l=e;const a=t.split(ci),n=a.length;for(let u=0;u<n;u++){const i=a[u];let s=l.nextPart.get(i);s||(s=lh(),l.nextPart.set(i,s)),l=s}return l},lb=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ab=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,l=Object.create(null),a=Object.create(null);const n=(u,i)=>{l[u]=i,t++,t>e&&(t=0,a=l,l=Object.create(null))};return{get(u){let i=l[u];if(i!==void 0)return i;if((i=a[u])!==void 0)return n(u,i),i},set(u,i){u in l?l[u]=i:n(u,i)}}},rs="!",kf=":",nb=[],Kf=(e,t,l,a,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:l,maybePostfixModifierPosition:a,isExternal:n}),ub=e=>{const{prefix:t,experimentalParseClassName:l}=e;let a=n=>{const u=[];let i=0,s=0,o=0,f;const g=n.length;for(let v=0;v<g;v++){const D=n[v];if(i===0&&s===0){if(D===kf){u.push(n.slice(o,v)),o=v+1;continue}if(D==="/"){f=v;continue}}D==="["?i++:D==="]"?i--:D==="("?s++:D===")"&&s--}const h=u.length===0?n:n.slice(o);let d=h,b=!1;h.endsWith(rs)?(d=h.slice(0,-1),b=!0):h.startsWith(rs)&&(d=h.slice(1),b=!0);const S=f&&f>o?f-o:void 0;return Kf(u,b,d,S)};if(t){const n=t+kf,u=a;a=i=>i.startsWith(n)?u(i.slice(n.length)):Kf(nb,!1,i,void 0,!0)}if(l){const n=a;a=u=>l({className:u,parseClassName:n})}return a},ib=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((l,a)=>{t.set(l,1e6+a)}),l=>{const a=[];let n=[];for(let u=0;u<l.length;u++){const i=l[u],s=i[0]==="[",o=t.has(i);s||o?(n.length>0&&(n.sort(),a.push(...n),n=[]),a.push(i)):n.push(i)}return n.length>0&&(n.sort(),a.push(...n)),a}},cb=e=>({cache:ab(e.cacheSize),parseClassName:ub(e),sortModifiers:ib(e),postfixLookupClassGroupIds:sb(e),...Jx(e)}),sb=e=>{const t=Object.create(null),l=e.postfixLookupClassGroups;if(l)for(let a=0;a<l.length;a++)t[l[a]]=!0;return t},ob=/\s+/,fb=(e,t)=>{const{parseClassName:l,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:u,postfixLookupClassGroupIds:i}=t,s=[],o=e.trim().split(ob);let f="";for(let g=o.length-1;g>=0;g-=1){const h=o[g],{isExternal:d,modifiers:b,hasImportantModifier:S,baseClassName:v,maybePostfixModifierPosition:D}=l(h);if(d){f=h+(f.length>0?" "+f:f);continue}let m=!!D,r;if(m){const z=v.substring(0,D);r=a(z);const j=r&&i[r]?a(v):void 0;j&&j!==r&&(r=j,m=!1)}else r=a(v);if(!r){if(!m){f=h+(f.length>0?" "+f:f);continue}if(r=a(v),!r){f=h+(f.length>0?" "+f:f);continue}m=!1}const x=b.length===0?"":b.length===1?b[0]:u(b).join(":"),y=S?x+rs:x,M=y+r;if(s.indexOf(M)>-1)continue;s.push(M);const C=n(r,m);for(let z=0;z<C.length;++z){const j=C[z];s.push(y+j)}f=h+(f.length>0?" "+f:f)}return f},rb=(...e)=>{let t=0,l,a,n="";for(;t<e.length;)(l=e[t++])&&(a=uh(l))&&(n&&(n+=" "),n+=a);return n},uh=e=>{if(typeof e=="string")return e;let t,l="";for(let a=0;a<e.length;a++)e[a]&&(t=uh(e[a]))&&(l&&(l+=" "),l+=t);return l},db=(e,...t)=>{let l,a,n,u;const i=o=>{const f=t.reduce((g,h)=>h(g),e());return l=cb(f),a=l.cache.get,n=l.cache.set,u=s,s(o)},s=o=>{const f=a(o);if(f)return f;const g=fb(o,l);return n(o,g),g};return u=i,(...o)=>u(rb(...o))},mb=[],ge=e=>{const t=l=>l[e]||mb;return t.isThemeGetter=!0,t},ih=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ch=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hb=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,gb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wt=e=>hb.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),gt=e=>!!e&&Number.isInteger(Number(e)),gc=e=>e.endsWith("%")&&H(e.slice(0,-1)),Et=e=>gb.test(e),sh=()=>!0,pb=e=>xb.test(e)&&!bb.test(e),ro=()=>!1,jb=e=>vb.test(e),Sb=e=>yb.test(e),Nb=e=>!A(e)&&!E(e),zb=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Tb=e=>yl(e,rh,ro),A=e=>ih.test(e),Nl=e=>yl(e,dh,pb),Jf=e=>yl(e,_b,H),Ab=e=>yl(e,hh,sh),Mb=e=>yl(e,mh,ro),$f=e=>yl(e,oh,ro),Eb=e=>yl(e,fh,Sb),mu=e=>yl(e,gh,jb),E=e=>ch.test(e),Ja=e=>wl(e,dh),Db=e=>wl(e,mh),Wf=e=>wl(e,oh),Ob=e=>wl(e,rh),Ub=e=>wl(e,fh),hu=e=>wl(e,gh,!0),Cb=e=>wl(e,hh,!0),yl=(e,t,l)=>{const a=ih.exec(e);return a?a[1]?t(a[1]):l(a[2]):!1},wl=(e,t,l=!1)=>{const a=ch.exec(e);return a?a[1]?t(a[1]):l:!1},oh=e=>e==="position"||e==="percentage",fh=e=>e==="image"||e==="url",rh=e=>e==="length"||e==="size"||e==="bg-size",dh=e=>e==="length",_b=e=>e==="number",mh=e=>e==="family-name",hh=e=>e==="number"||e==="weight",gh=e=>e==="shadow",Rb=()=>{const e=ge("color"),t=ge("font"),l=ge("text"),a=ge("font-weight"),n=ge("tracking"),u=ge("leading"),i=ge("breakpoint"),s=ge("container"),o=ge("spacing"),f=ge("radius"),g=ge("shadow"),h=ge("inset-shadow"),d=ge("text-shadow"),b=ge("drop-shadow"),S=ge("blur"),v=ge("perspective"),D=ge("aspect"),m=ge("ease"),r=ge("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...y(),E,A],C=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],j=()=>[E,A,o],O=()=>[wt,"full","auto",...j()],q=()=>[gt,"none","subgrid",E,A],Oe=()=>["auto",{span:["full",gt,E,A]},gt,E,A],Qe=()=>[gt,"auto",E,A],Ya=()=>["auto","min","max","fr",E,A],Xa=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ht=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...j()],_=()=>[wt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],R=()=>[wt,"screen","full","dvw","lvw","svw","min","max","fit",...j()],P=()=>[wt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],T=()=>[e,E,A],pl=()=>[...y(),Wf,$f,{position:[E,A]}],jl=()=>["no-repeat",{repeat:["","x","y","space","round"]}],kl=()=>["auto","cover","contain",Ob,Tb,{size:[E,A]}],ot=()=>[gc,Ja,Nl],fe=()=>["","none","full",f,E,A],Ue=()=>["",H,Ja,Nl],Jn=()=>["solid","dashed","dotted","double"],xo=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[H,gc,Wf,$f],bo=()=>["","none",S,E,A],$n=()=>["none",H,E,A],Wn=()=>["none",H,E,A],Ui=()=>[H,E,A],Fn=()=>[wt,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Et],breakpoint:[Et],color:[sh],container:[Et],"drop-shadow":[Et],ease:["in","out","in-out"],font:[Nb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Et],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Et],shadow:[Et],spacing:["px",H],text:[Et],"text-shadow":[Et],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wt,A,E,D]}],container:["container"],"container-type":[{"@container":["","normal","size",E,A]}],"container-named":[zb],columns:[{columns:[H,A,E,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{"inset-s":O(),start:O()}],end:[{"inset-e":O(),end:O()}],"inset-bs":[{"inset-bs":O()}],"inset-be":[{"inset-be":O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[gt,"auto",E,A]}],basis:[{basis:[wt,"full","auto",s,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[H,wt,"auto","initial","none",A]}],grow:[{grow:["",H,E,A]}],shrink:[{shrink:["",H,E,A]}],order:[{order:[gt,"first","last","none",E,A]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:Oe()}],"col-start":[{"col-start":Qe()}],"col-end":[{"col-end":Qe()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:Oe()}],"row-start":[{"row-start":Qe()}],"row-end":[{"row-end":Qe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ya()}],"auto-rows":[{"auto-rows":Ya()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...Xa(),"normal"]}],"justify-items":[{"justify-items":[...ht(),"normal"]}],"justify-self":[{"justify-self":["auto",...ht()]}],"align-content":[{content:["normal",...Xa()]}],"align-items":[{items:[...ht(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ht(),{baseline:["","last"]}]}],"place-content":[{"place-content":Xa()}],"place-items":[{"place-items":[...ht(),"baseline"]}],"place-self":[{"place-self":["auto",...ht()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],"inline-size":[{inline:["auto",...R()]}],"min-inline-size":[{"min-inline":["auto",...R()]}],"max-inline-size":[{"max-inline":["none",...R()]}],"block-size":[{block:["auto",...P()]}],"min-block-size":[{"min-block":["auto",...P()]}],"max-block-size":[{"max-block":["none",...P()]}],w:[{w:[s,"screen",..._()]}],"min-w":[{"min-w":[s,"screen","none",..._()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",l,Ja,Nl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Cb,Ab]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gc,A]}],"font-family":[{font:[Db,Mb,t]}],"font-features":[{"font-features":[A]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,E,A]}],"line-clamp":[{"line-clamp":[H,"none",E,Jf]}],leading:[{leading:[u,...j()]}],"list-image":[{"list-image":["none",E,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",E,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Jn(),"wavy"]}],"text-decoration-thickness":[{decoration:[H,"from-font","auto",E,Nl]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[H,"auto",E,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"tab-size":[{tab:[gt,E,A]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",E,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",E,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pl()}],"bg-repeat":[{bg:jl()}],"bg-size":[{bg:kl()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},gt,E,A],radial:["",E,A],conic:[gt,E,A]},Ub,Eb]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:ot()}],"gradient-via-pos":[{via:ot()}],"gradient-to-pos":[{to:ot()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:fe()}],"rounded-s":[{"rounded-s":fe()}],"rounded-e":[{"rounded-e":fe()}],"rounded-t":[{"rounded-t":fe()}],"rounded-r":[{"rounded-r":fe()}],"rounded-b":[{"rounded-b":fe()}],"rounded-l":[{"rounded-l":fe()}],"rounded-ss":[{"rounded-ss":fe()}],"rounded-se":[{"rounded-se":fe()}],"rounded-ee":[{"rounded-ee":fe()}],"rounded-es":[{"rounded-es":fe()}],"rounded-tl":[{"rounded-tl":fe()}],"rounded-tr":[{"rounded-tr":fe()}],"rounded-br":[{"rounded-br":fe()}],"rounded-bl":[{"rounded-bl":fe()}],"border-w":[{border:Ue()}],"border-w-x":[{"border-x":Ue()}],"border-w-y":[{"border-y":Ue()}],"border-w-s":[{"border-s":Ue()}],"border-w-e":[{"border-e":Ue()}],"border-w-bs":[{"border-bs":Ue()}],"border-w-be":[{"border-be":Ue()}],"border-w-t":[{"border-t":Ue()}],"border-w-r":[{"border-r":Ue()}],"border-w-b":[{"border-b":Ue()}],"border-w-l":[{"border-l":Ue()}],"divide-x":[{"divide-x":Ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Jn(),"hidden","none"]}],"divide-style":[{divide:[...Jn(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...Jn(),"none","hidden"]}],"outline-offset":[{"outline-offset":[H,E,A]}],"outline-w":[{outline:["",H,Ja,Nl]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",g,hu,mu]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",h,hu,mu]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:Ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[H,Nl]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":Ue()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",d,hu,mu]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[H,E,A]}],"mix-blend":[{"mix-blend":[...xo(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xo()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[E,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:pl()}],"mask-repeat":[{mask:jl()}],"mask-size":[{mask:kl()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",E,A]}],filter:[{filter:["","none",E,A]}],blur:[{blur:bo()}],brightness:[{brightness:[H,E,A]}],contrast:[{contrast:[H,E,A]}],"drop-shadow":[{"drop-shadow":["","none",b,hu,mu]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",H,E,A]}],"hue-rotate":[{"hue-rotate":[H,E,A]}],invert:[{invert:["",H,E,A]}],saturate:[{saturate:[H,E,A]}],sepia:[{sepia:["",H,E,A]}],"backdrop-filter":[{"backdrop-filter":["","none",E,A]}],"backdrop-blur":[{"backdrop-blur":bo()}],"backdrop-brightness":[{"backdrop-brightness":[H,E,A]}],"backdrop-contrast":[{"backdrop-contrast":[H,E,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",H,E,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,E,A]}],"backdrop-invert":[{"backdrop-invert":["",H,E,A]}],"backdrop-opacity":[{"backdrop-opacity":[H,E,A]}],"backdrop-saturate":[{"backdrop-saturate":[H,E,A]}],"backdrop-sepia":[{"backdrop-sepia":["",H,E,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",E,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[H,"initial",E,A]}],ease:[{ease:["linear","initial",m,E,A]}],delay:[{delay:[H,E,A]}],animate:[{animate:["none",r,E,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,E,A]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:$n()}],"rotate-x":[{"rotate-x":$n()}],"rotate-y":[{"rotate-y":$n()}],"rotate-z":[{"rotate-z":$n()}],scale:[{scale:Wn()}],"scale-x":[{"scale-x":Wn()}],"scale-y":[{"scale-y":Wn()}],"scale-z":[{"scale-z":Wn()}],"scale-3d":["scale-3d"],skew:[{skew:Ui()}],"skew-x":[{"skew-x":Ui()}],"skew-y":[{"skew-y":Ui()}],transform:[{transform:[E,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Fn()}],"translate-x":[{"translate-x":Fn()}],"translate-y":[{"translate-y":Fn()}],"translate-z":[{"translate-z":Fn()}],"translate-none":["translate-none"],zoom:[{zoom:[gt,E,A]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",E,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",E,A]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[H,Ja,Nl,Jf]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Bb=db(Rb);function Z(...e){return Bb(ar(e))}const Hb=th("mono inline-flex w-fit shrink-0 items-center gap-1 rounded border px-1 text-[10px] leading-4",{variants:{variant:{outline:"border-line text-muted-foreground",accent:"border-line text-brand",good:"border-good/50 text-good",warn:"border-warn/50 text-warn",bad:"border-bad/50 text-bad"}},defaultVariants:{variant:"outline"}});function Gl({className:e,variant:t,...l}){return c.jsx("span",{className:Z(Hb({variant:t}),e),...l})}const qb=th("inline-flex shrink-0 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:shrink-0",{variants:{variant:{default:"border-brand/50 bg-brand/10 text-foreground hover:bg-brand/20",outline:"border-line text-muted-foreground hover:border-brand/50 hover:text-foreground",ghost:"border-transparent text-muted-foreground hover:bg-panel-2 hover:text-foreground",accent:"border-brand/50 bg-brand/10 text-brand hover:bg-brand/20",success:"border-good/50 bg-good/10 text-good hover:bg-good/20",danger:"border-bad/50 bg-bad/10 text-bad hover:bg-bad/20"},size:{xs:"px-2 py-1 text-[10px]",sm:"px-2.5 py-1 text-[11px]",md:"px-3 py-1.5 text-xs",icon:"p-1.5"}},defaultVariants:{variant:"outline",size:"sm"}});function dt({className:e,variant:t,size:l,render:a,...n}){return Bh({defaultTagName:"button",...a===void 0?{}:{render:a},props:{...n,className:Z(qb({variant:t,size:l}),e)}})}function Vt({className:e,...t}){return c.jsx("section",{className:Z("rounded-xl border border-line bg-gradient-to-b from-panel-2 to-panel",e),...t})}function Gb({className:e,...t}){return c.jsx("header",{className:Z("flex items-start justify-between gap-3",e),...t})}function Yb({className:e,...t}){return c.jsx("h2",{className:Z("text-sm font-semibold tracking-tight",e),...t})}function Xb({className:e,...t}){return c.jsx("p",{className:Z("mt-0.5 text-xs text-muted-foreground",e),...t})}function Qb({className:e,...t}){return c.jsx("div",{className:Z(e),...t})}function Lb({className:e,...t}){return c.jsx("input",{className:Z("mono rounded-md border border-input bg-panel px-2 py-1 text-[11px] text-foreground outline-none transition-colors placeholder:text-muted-foreground focus:border-brand/50 disabled:opacity-50",e),...t})}function xh({className:e,...t}){return c.jsx("input",{className:Z("mono bg-transparent text-foreground outline-none placeholder:text-muted-foreground",e),...t})}const Rv=Hh;function Dn({label:e,children:t,side:l="top",className:a,...n}){return e===""?t:c.jsxs(qh,{...n,children:[c.jsx(Gh,{render:t}),c.jsx(Yh,{children:c.jsx(Xh,{side:l,sideOffset:6,className:"z-50",children:c.jsx(Qh,{className:Z("mono max-w-[min(28rem,90vw)] origin-[var(--transform-origin)] break-words rounded-md border border-line bg-popover px-2 py-1 text-[10px] text-popover-foreground shadow-lg shadow-black/50","transition-[opacity,transform] duration-150 ease-out","data-[starting-style]:scale-95 data-[starting-style]:opacity-0","data-[ending-style]:scale-95 data-[ending-style]:opacity-0",a),children:e})})})]})}function ce({title:e,subtitle:t,right:l,children:a,className:n}){return c.jsxs(Vt,{className:Z("rise p-4",n),children:[(e||l)&&c.jsxs(Gb,{className:"mb-3",children:[c.jsxs("div",{children:[e&&c.jsx(Yb,{children:e}),t&&c.jsx(Xb,{children:t})]}),l]}),c.jsx(Qb,{children:a})]})}function ut({label:e,value:t,sub:l,icon:a,tone:n}){const u=n==="good"?"text-good":n==="warn"?"text-warn":n==="bad"?"text-bad":"text-foreground";return c.jsxs(Vt,{className:"p-4",children:[c.jsxs("div",{className:"mb-2 flex items-center gap-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:[a,e]}),c.jsx("div",{className:Z("mono tnum text-2xl font-semibold",u),children:t}),l&&c.jsx("div",{className:"mono mt-1 text-[11px] text-muted-foreground",children:l})]})}function bh({ratio:e,over:t,className:l}){const a=Math.max(0,Math.min(1,Number.isFinite(e)?e:0))*100;return c.jsx("div",{className:Z("h-2 overflow-hidden rounded-full bg-line",l),children:c.jsx("div",{className:Z("h-full rounded-full bg-gradient-to-r",t?"from-bad to-warn":"from-brand to-live"),style:{width:`${a}%`}})})}const vh={good:"text-good",live:"text-live",bad:"text-bad",warn:"text-warn"};function Vb(e){const t=e.toLowerCase();return/^(ok|completed|success|succeeded|executed|auto_executed|approved)$/.test(t)?"good":/^(running|pending|pending_approval|queued)$/.test(t)?"live":/^(forbidden|denied|failed|error|rejected|cancelled|canceled|timeout)$/.test(t)?"bad":"warn"}function yh({tone:e,className:t}){return c.jsx("span",{className:Z("dot",vh[e],e==="live"&&"live-pulse",t),"aria-hidden":!0})}function Ua({status:e}){const t=Vb(e);return c.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[11px]",children:[c.jsx(yh,{tone:t}),c.jsx("span",{className:Z("uppercase tracking-wider",vh[t]),children:e})]})}function si({label:e,onOpen:t,title:l}){const a=l??e;return t===void 0?c.jsx(Dn,{label:a,children:c.jsx("span",{className:"block truncate text-foreground",children:e})}):c.jsx(Dn,{label:a,children:c.jsx("button",{type:"button",onClick:t,className:"max-w-full truncate text-left text-foreground underline decoration-line decoration-dotted underline-offset-4 transition-colors hover:text-brand hover:decoration-brand",children:e})})}function Se({label:e}){return c.jsx("div",{className:"grid place-items-center rounded-lg border border-dashed border-line py-10 text-xs text-muted-foreground",children:e})}function oi({page:e,pageSize:t,total:l,onPage:a}){const n=Math.max(1,Math.ceil(l/t));return c.jsxs("div",{className:"mono mt-3 flex items-center justify-end gap-2 text-[11px] text-muted-foreground",children:[c.jsx(dt,{size:"xs",disabled:e<=1,onClick:()=>a(e-1),children:"Prev"}),c.jsxs("span",{className:"tnum",children:["page ",e," of ",n]}),c.jsx(dt,{size:"xs",disabled:e>=n,onClick:()=>a(e+1),children:"Next"})]})}function Uu({value:e,placeholder:t,onChange:l,delayMs:a=300,className:n}){const[u,i]=ne.useState(e);return ne.useEffect(()=>i(e),[e]),ne.useEffect(()=>{if(u===e)return;const s=setTimeout(()=>l(u),a);return()=>clearTimeout(s)},[u]),c.jsx(Lb,{value:u,onChange:s=>i(s.target.value),...t===void 0?{}:{placeholder:t},className:Z("w-28",n)})}function jt(e){const t=typeof e=="number"?e:Date.parse(e),l=Math.max(0,Math.round((Date.now()-t)/1e3));if(l<60)return`${l}s ago`;const a=Math.round(l/60);if(a<60)return`${a}m ago`;const n=Math.round(a/60);return n<24?`${n}h ago`:`${Math.round(n/24)}d ago`}function Zb(e){const t=e.payload;switch(e.event){case"run.started":return`run ${xt(t.runId)} started${t.agentName?` · ${xt(t.agentName)}`:""}`;case"run.finished":return`run ${xt(t.runId)} finished · ${$l(t.steps)} steps · ${$l(t.inputTokens)+$l(t.outputTokens)} tok`;case"message":return`${xt(t.role)} message · ${$l(t.textLength)} chars`;case"tool-call":return`${xt(t.toolName)} (${xt(t.toolType)}) · ${xt(t.status)}`;case"quota.exceeded":return`actor ${xt(t.actorId)} over budget · ${$l(t.usedTokens)}/${$l(t.limitTokens)} tok`;case"delegated":return`delegated to ${xt(t.toAgent)}${t.fromAgent?` from ${xt(t.fromAgent)}`:""}`;default:return e.event}}function xt(e){return typeof e=="string"?e:e===void 0?"":String(e)}function $l(e){return typeof e=="number"&&Number.isFinite(e)?e:0}function Bv({events:e,connected:t}){return c.jsx(ce,{title:"Live activity",subtitle:"Streaming aviary:agent:* diagnostics events",right:c.jsxs("span",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[c.jsx(yh,{tone:t?"live":"bad"}),t?"connected":"disconnected"]}),children:e.length===0?c.jsx(Se,{label:t?"Waiting for live events…":"Live stream not connected"}):c.jsx("ul",{className:"max-h-[520px] space-y-0.5 overflow-y-auto",children:e.map(l=>{const a=Zx(l);return c.jsxs("li",{className:"rise flex items-center gap-3 rounded-md px-2 py-1.5 text-xs hover:bg-panel-2",children:[c.jsx(Gl,{variant:a?"bad":"accent",className:"w-32 shrink-0 truncate px-1.5 py-0.5 uppercase tracking-wider",children:l.event}),c.jsx("span",{className:"mono truncate text-foreground",children:Zb(l)}),c.jsx("span",{className:"mono ml-auto shrink-0 text-[10px] text-muted-foreground",children:jt(l.ts)})]},l.id)})})})}const wb=/^(\d{3})\b/;function kb(e){const t=e instanceof Error?e.message:String(e),l=wb.exec(t);return(l==null?void 0:l[1])===void 0?null:Number(l[1])}function ph(e){const t=e instanceof Error&&e.message!==""?e.message:typeof e=="string"&&e!==""?e:"Unknown error",l=kb(e);return l===null?{status:null,message:t,hint:"The API did not answer at all — it may be down, or a proxy in front of it may be blocking the request.",retryable:!0}:l===401||l===403?{status:l,message:t,hint:"The console session was rejected. Reload the page to sign in again.",retryable:!1}:l===404?{status:l,message:t,hint:"The API answered, but not on this route — check that the dashboard module is mounted where the SPA thinks it is.",retryable:!1}:l===501?{status:l,message:t,hint:"This host has not bound the store this read needs, so there is nothing to retry — it is a configuration answer, not a failure.",retryable:!1}:l>=500?{status:l,message:t,hint:"The API reached this read and it failed. The server logs will say why.",retryable:!0}:{status:l,message:t,hint:"The API rejected this request. If a filter is set, it may be the filter.",retryable:!0}}const De={width:14,height:14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"};function Kb(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M12 2v20M17 6.5c0-2-2-3.5-5-3.5s-5 1.4-5 3.4c0 4.6 10 2.6 10 7.2 0 2-2 3.4-5 3.4s-5-1.5-5-3.5"})})}function Jb(e){return c.jsxs("svg",{...De,...e,"aria-hidden":"true",children:[c.jsx("rect",{x:"7",y:"7",width:"10",height:"10",rx:"1.5"}),c.jsx("path",{d:"M9 3v2M15 3v2M9 19v2M15 19v2M3 9h2M3 15h2M19 9h2M19 15h2"})]})}function Hv(e){return c.jsxs("svg",{...De,...e,"aria-hidden":"true",children:[c.jsx("circle",{cx:"9",cy:"8",r:"3"}),c.jsx("path",{d:"M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M16 5.5a3 3 0 0 1 0 5.5M21 20c0-2.5-1.5-4.6-3.6-5.5"})]})}function qv(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M14.7 6.3a4 4 0 0 0-5.2 5.2L3 18l3 3 6.5-6.5a4 4 0 0 0 5.2-5.2l-2.6 2.6-2.4-2.4z"})})}function jh(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M3 12h4l3 8 4-16 3 8h4"})})}function Yl(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M12 3 2 20h20L12 3zM12 10v4M12 17.5v.5"})})}function $b(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M3 17l6-6 4 4 8-8M21 7v5M21 7h-5"})})}function Gv(e){return c.jsxs("svg",{...De,...e,"aria-hidden":"true",children:[c.jsx("path",{d:"M20.5 13.5 12.6 21.4a2 2 0 0 1-2.8 0l-6.2-6.2a2 2 0 0 1 0-2.8L11.5 4.4a2 2 0 0 1 1.4-.6H19a1.5 1.5 0 0 1 1.5 1.5v6.8a2 2 0 0 1-.6 1.4z"}),c.jsx("circle",{cx:"16.2",cy:"7.8",r:"1.4",fill:"currentColor",stroke:"none"})]})}function Yv(e){return c.jsxs("svg",{...De,...e,"aria-hidden":"true",children:[c.jsx("path",{d:"M12 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z"}),c.jsx("path",{d:"M9 12l2 2 4-4"})]})}function Sh(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M3 12a9 9 0 0 1 15.4-6.4M21 12a9 9 0 0 1-15.4 6.4M3 5v5h5M21 19v-5h-5"})})}function Wb(e){return c.jsxs("svg",{...De,...e,"aria-hidden":"true",children:[c.jsx("circle",{cx:"12",cy:"12",r:"9"}),c.jsx("path",{d:"M12 7v5l3.5 2"})]})}function Nh(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M4 12.5 9.5 18 20 6"})})}function mo(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M5 5l14 14M19 5 5 19"})})}function Xv(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"M3 12h4.5l1.5 3h6l1.5-3H21M4 12 5.6 5.8A2 2 0 0 1 7.5 4.3h9a2 2 0 0 1 1.9 1.5L20 12v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z"})})}function Fb(e){return c.jsx("svg",{...De,...e,"aria-hidden":"true",children:c.jsx("path",{d:"m6 9 6 6 6-6"})})}function Qv(e){return c.jsxs("svg",{...De,...e,"aria-hidden":"true",children:[c.jsx("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2"}),c.jsx("path",{d:"M3 10h18M8 3v4M16 3v4"})]})}function Lv({className:e}){return c.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",className:e,role:"img","aria-label":"ai gateway",children:[c.jsx("title",{children:"ai gateway"}),c.jsx("path",{d:"M12 2.5 21.5 12 12 21.5 2.5 12z",opacity:.35}),c.jsx("circle",{cx:"7",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"}),c.jsx("circle",{cx:"17",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"}),c.jsx("path",{d:"M8.6 12h2.2M13.2 12h2.2M12 9.5v5"})]})}function Vv({label:e,children:t}){return c.jsx(hg,{children:({reset:l})=>c.jsx(Ib,{onReset:l,fallback:(a,n)=>c.jsx(Pb,{label:e,error:a,onRetry:n}),children:c.jsx(ne.Suspense,{fallback:c.jsx(ev,{label:e}),children:t})})})}class Ib extends ne.Component{constructor(){super(...arguments);Ci(this,"state",{failed:!1,error:null});Ci(this,"retry",()=>{var l,a;(a=(l=this.props).onReset)==null||a.call(l),this.setState({failed:!1,error:null})})}static getDerivedStateFromError(l){return{failed:!0,error:l}}componentDidCatch(l,a){console.error("[ai-gateway] section failed to render",l,a.componentStack)}render(){return this.state.failed?this.props.fallback(this.state.error,this.retry):this.props.children}}function Pb({label:e,error:t,onRetry:l}){const a=ph(t);return c.jsx(Vt,{className:"rise border-bad/40 p-5",children:c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("span",{className:"mt-0.5 text-bad",children:c.jsx(Yl,{})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("h2",{className:"text-sm font-semibold tracking-tight text-bad",children:[e," failed to load"]}),c.jsx("p",{className:"mono mt-1 break-words text-[11px] text-foreground",children:a.message}),a.hint!==""&&c.jsx("p",{className:"mt-1.5 text-xs text-muted-foreground",children:a.hint})]}),a.retryable&&c.jsx(zh,{onRetry:l})]})})}function fi({label:e,error:t,onRetry:l}){const a=ph(t);return c.jsx("div",{className:"rounded-lg border border-dashed border-bad/50 p-4",children:c.jsxs("div",{className:"flex items-start gap-2.5",children:[c.jsx("span",{className:"mt-0.5 shrink-0 text-bad",children:c.jsx(Yl,{})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("p",{className:"text-xs text-bad",children:[e," failed to load"]}),c.jsx("p",{className:"mono mt-1 break-words text-[10px] text-muted-foreground",children:a.message}),a.hint!==""&&c.jsx("p",{className:"mt-1 text-[10px] text-muted-foreground",children:a.hint})]}),a.retryable&&c.jsx(zh,{onRetry:l,small:!0})]})})}function zh({onRetry:e,small:t}){return c.jsxs(dt,{onClick:e,size:t?"xs":"sm",className:"rounded-lg",children:[c.jsx(Sh,{})," Retry"]})}function ev({label:e}){return c.jsxs(Vt,{className:"animate-pulse p-6 text-sm text-muted-foreground","aria-busy":"true",children:["Loading ",e.toLowerCase(),"…"]})}function tv(e,t={}){return e.map(l=>{const a=t[l.actorRef],n=typeof a=="number"&&a>0,u=n?l.totalTokens/a:void 0;return{actorRef:l.actorRef,requests:l.requests,totalTokens:l.totalTokens,costUsd:l.costUsd,actorLabel:l.actorLabel,overBudget:u!==void 0&&u>=1,...n?{limitTokens:a}:{},...u!==void 0?{usageRatio:u}:{}}}).sort((l,a)=>a.costUsd-l.costUsd||a.totalTokens-l.totalTokens)}function qe(e){if(!Number.isFinite(e))return"$0.00";const t=Math.abs(e);return t>=1e6?`$${(e/1e6).toFixed(2)}M`:t>=1e3?`$${(e/1e3).toFixed(2)}k`:t>0&&t<.01?"<$0.01":`$${e.toFixed(2)}`}function be(e){if(!Number.isFinite(e))return"0";const t=Math.abs(e);return t>=1e9?`${(e/1e9).toFixed(1)}B`:t>=1e6?`${(e/1e6).toFixed(1)}M`:t>=1e3?`${(e/1e3).toFixed(1)}k`:`${Math.round(e)}`}function On(e){return Number.isFinite(e)?`${Math.round(e*100)}%`:"0%"}function dl(e){if(e===null||!Number.isFinite(e))return"—";const t=Math.abs(e);if(t<1e3)return`${Math.round(e)}ms`;if(t<6e4)return`${(e/1e3).toFixed(1)}s`;const l=Math.floor(t/6e4),a=Math.round(t%6e4/1e3);return`${l}m ${a}s`}function Zv({rows:e,budgets:t={}}){const l=tv(e,t);return c.jsx(ce,{title:"Actors & budgets",subtitle:"Spend per acting ref, with usage vs configured budget",children:l.length===0?c.jsx(Se,{label:"No actor activity in this range"}):c.jsx("ul",{className:"space-y-2.5",children:l.map(a=>c.jsxs("li",{className:"rounded-lg border border-line-soft p-3",children:[c.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c.jsx("span",{className:"flex min-w-0 items-baseline gap-2",children:a.actorLabel?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"truncate text-xs text-foreground",children:a.actorLabel}),c.jsx("span",{className:"mono truncate text-[10px] text-muted-foreground",children:a.actorRef})]}):c.jsx("span",{className:"mono truncate text-xs text-foreground",children:a.actorRef})}),c.jsxs("span",{className:"mono tnum flex items-center gap-3 text-xs text-muted-foreground",children:[c.jsxs("span",{children:[a.requests," req"]}),c.jsxs("span",{children:[be(a.totalTokens)," tok"]}),c.jsx("span",{className:"text-foreground",children:qe(a.costUsd)})]})]}),a.usageRatio!==void 0&&a.limitTokens!==void 0?c.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[c.jsx(bh,{ratio:a.usageRatio,over:a.overBudget,className:"flex-1"}),c.jsxs("span",{className:`mono tnum text-[10px] ${a.overBudget?"text-bad":"text-muted-foreground"}`,children:[be(a.totalTokens)," / ",be(a.limitTokens),a.overBudget?" · over":""]})]}):c.jsx("div",{className:"mono mt-2 text-[10px] text-muted-foreground",children:"no daily limit set"})]},a.actorRef))})})}const lv="501";function av({input:e}){return c.jsxs("details",{children:[c.jsx("summary",{className:"mono w-fit cursor-pointer select-none text-[10px] text-muted-foreground hover:text-foreground",children:"input"}),c.jsx("pre",{className:"mono mt-1 max-w-[420px] overflow-x-auto rounded border border-line bg-panel-2 p-2 text-[10px] text-foreground",children:JSON.stringify(e,null,2)})]})}function wv({table:e,onPageChange:t,onDecide:l,onOpenRun:a}){const[n,u]=ne.useState(null),[i,s]=ne.useState(null),[o,f]=ne.useState(!1),{rows:g,total:h,page:d,pageSize:b}=e.page;async function S(v,D){let m;if(!D){const r=window.prompt("Reason for rejecting (optional):");if(m=r!==null&&r.trim().length>0?r.trim():void 0,r===null)return}s(null),u(v);try{await l(v,{approved:D,...m!==void 0?{reason:m}:{}})}catch(r){const x=r instanceof Error?r.message:"Failed to record the decision.";x.startsWith(lv)&&f(!0),s(x)}finally{u(null)}}return c.jsxs("div",{className:"flex flex-col gap-4",children:[o&&c.jsxs(Vt,{className:"flex items-center gap-2 border-warn/40 p-3 text-xs text-warn",children:[c.jsx(Yl,{}),c.jsxs("span",{children:["No approval port is bound on this host — the inbox is READ-ONLY. Import"," ",c.jsx("span",{className:"mono",children:"AgentModule"})," from"," ",c.jsx("span",{className:"mono",children:"@dudousxd/nestjs-agent"})," alongside this dashboard to enable Approve/Reject."]})]}),i&&!o&&c.jsxs(Vt,{className:"flex items-center gap-2 border-bad/40 p-3 text-xs text-bad",children:[c.jsx(Yl,{}),c.jsx("span",{children:i})]}),c.jsxs(ce,{title:"Approvals",subtitle:"Action tool calls awaiting a human decision, oldest first",right:c.jsx("span",{className:"mono tnum text-[11px] text-muted-foreground",children:g.length>0?`${g.length} of ${h} waiting`:`${h} waiting`}),children:[e.error!==null&&c.jsx("div",{className:"mb-3",children:c.jsx(fi,{label:"Approvals inbox",error:e.error,onRetry:e.retry})}),g.length===0?c.jsx(Se,{label:"No pending approvals"}):c.jsxs(c.Fragment,{children:[c.jsx("ul",{className:"space-y-2",children:g.map(v=>{const D=v.runId;return c.jsxs("li",{className:"rise flex flex-col gap-2 rounded-lg border border-line p-3 text-xs sm:flex-row sm:items-center",children:[c.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("span",{className:"mono min-w-0",children:c.jsx(si,{label:v.toolName,title:D??"No run recorded for this call",onOpen:a===void 0||D===null?void 0:()=>a(D)})}),c.jsx("span",{className:"truncate text-muted-foreground",children:v.threadTitle}),v.agentName&&c.jsx(Gl,{children:v.agentName})]}),c.jsxs("div",{className:"mono flex flex-wrap items-center gap-1.5 text-[10px] text-muted-foreground",children:[c.jsxs("span",{children:["asked by ",v.actorRef]}),c.jsxs("span",{children:["· waiting ",jt(v.requestedAt)]})]}),c.jsx(av,{input:v.input})]}),c.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[c.jsxs(dt,{variant:"success",className:"rounded-lg",disabled:o||n===v.toolCallId,onClick:()=>S(v.toolCallId,!0),children:[c.jsx(Nh,{})," Approve"]}),c.jsxs(dt,{variant:"danger",className:"rounded-lg",disabled:o||n===v.toolCallId,onClick:()=>S(v.toolCallId,!1),children:[c.jsx(mo,{})," Reject"]})]})]},v.toolCallId)})}),c.jsx(oi,{page:d,pageSize:b,total:h,onPage:t})]})]})]})}const nv=Lh,uv=wh,iv=Vh,cv=Zh;function sv({className:e,...t}){return c.jsxs(kh,{children:[c.jsx(Kh,{className:Z("fixed inset-0 z-50 bg-black/60 backdrop-blur-[2px] transition-opacity duration-200","data-[starting-style]:opacity-0 data-[ending-style]:opacity-0")}),c.jsx(Jh,{className:Z("fixed inset-y-0 right-0 z-50 flex h-dvh w-full max-w-[720px] flex-col overflow-hidden border-l border-line bg-panel-2 text-foreground outline-none","transition-transform duration-200 ease-out","data-[starting-style]:translate-x-full data-[ending-style]:translate-x-full",e),...t})]})}function kv({title:e,subtitle:t,onClose:l,onBack:a,children:n}){return c.jsx(nv,{open:!0,onOpenChange:u=>{u||l()},children:c.jsxs(sv,{"aria-label":e,children:[c.jsxs("header",{className:"flex items-start gap-3 border-b border-line px-5 py-4",children:[a&&c.jsx(dt,{size:"xs",onClick:a,className:"mono mt-0.5",children:"← Back"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx(iv,{className:"truncate text-sm font-semibold tracking-tight",children:e}),t!==void 0&&c.jsx(cv,{className:"mono mt-0.5 truncate text-[10px] text-muted-foreground",children:t})]}),c.jsx(uv,{render:c.jsx(dt,{size:"icon","aria-label":"Close",children:c.jsx(mo,{})})})]}),c.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-4",children:n})]})})}function Kv({detail:e,onOpenThread:t}){const{run:l,thread:a,toolCalls:n}=e;return c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsxs(ce,{title:"Outcome",children:[c.jsxs("dl",{className:"grid grid-cols-2 gap-x-4 gap-y-3 text-xs sm:grid-cols-3",children:[c.jsx(Wl,{label:"Status",children:c.jsx(Ua,{status:l.status})}),c.jsx(Wl,{label:"Agent",children:l.agentName??"(default)"}),c.jsx(Wl,{label:"Duration",children:dl(l.durationMs)}),c.jsx(Wl,{label:"Retries",children:`${l.retries}`}),c.jsx(Wl,{label:"Started",children:jt(l.startedAt)}),c.jsx(Wl,{label:"Actor",children:l.actorRef})]}),l.errorMessage!==null&&c.jsxs("div",{className:"mt-3 rounded-lg border border-bad/40 bg-bad/5 p-3",children:[l.errorCode!==null&&c.jsx("div",{className:"mono text-[10px] uppercase tracking-wider text-bad",children:l.errorCode}),c.jsx("pre",{className:"mono mt-1 whitespace-pre-wrap break-words text-[11px] text-foreground",children:l.errorMessage})]}),l.parentRunId!==null&&c.jsxs("div",{className:"mono mt-3 text-[10px] text-muted-foreground",children:["delegated by ",c.jsx("span",{className:"text-foreground",children:l.parentRunId})]}),l.promptHash!==null&&c.jsxs("div",{className:"mono mt-3 text-[10px] text-muted-foreground",children:["prompt sha256 ",c.jsx("span",{className:"text-foreground",children:l.promptHash})]})]}),c.jsx(ce,{title:"Thread",subtitle:"The conversation this run belongs to",right:t&&c.jsx(dt,{size:"xs",onClick:()=>t(a.threadId),children:"Open thread"}),children:c.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[c.jsx("span",{className:"text-foreground",children:a.title||a.threadId}),c.jsx("span",{className:"mono text-[10px] text-muted-foreground",children:a.actorLabel??a.actorRef}),a.deleted&&c.jsx(Gl,{variant:"warn",children:"deleted"})]})}),c.jsx(ce,{title:"Tool calls",subtitle:"Every call this run requested, oldest first",right:c.jsx("span",{className:"mono tnum text-[10px] text-muted-foreground",children:n.length}),children:n.length===0?c.jsx(Se,{label:"No tool calls recorded for this run"}):c.jsx("ul",{className:"space-y-1.5",children:n.map(u=>c.jsxs("li",{className:"rounded-md border border-line-soft px-2.5 py-2 text-xs",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2.5",children:[c.jsx(Ua,{status:u.status}),c.jsx("span",{className:"mono truncate text-foreground",children:u.toolName}),c.jsx(Gl,{children:u.toolType}),c.jsx("span",{className:"mono tnum ml-auto shrink-0 text-[10px] text-muted-foreground",children:dl(u.executionMs)})]}),c.jsxs("div",{className:"mono mt-1 flex flex-wrap items-center gap-2 text-[10px] text-muted-foreground",children:[c.jsx("span",{children:jt(u.createdAt)}),u.executedByRef!==null&&c.jsxs("span",{children:["· by ",u.executedByRef]})]}),u.error!==null&&c.jsx("pre",{className:"mono mt-1.5 whitespace-pre-wrap break-words text-[10px] text-bad",children:u.error})]},u.toolCallId))})})]})}function Wl({label:e,children:t}){return c.jsxs("div",{children:[c.jsx("dt",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:e}),c.jsx("dd",{className:"mono mt-1 truncate text-foreground",children:t})]})}function Jv({detail:e,onOpenRun:t,runsHref:l}){const{thread:a,deleted:n,usage:u,runs:i,runTotal:s,messages:o}=e,f=s-i.length,g=a.messageCount-o.length;return c.jsxs("div",{className:"flex flex-col gap-4",children:[n&&c.jsxs(Vt,{className:"flex items-center gap-2 border-warn/40 p-3 text-xs text-warn",children:[c.jsx(Yl,{}),c.jsx("span",{children:"This thread is soft-deleted. Its history is still readable here — the thread is not."})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-4",children:[c.jsx(ut,{label:"Lifetime cost",value:qe(u.costUsd),sub:`${u.requests} req`}),c.jsx(ut,{label:"Lifetime tokens",value:be(u.totalTokens),sub:`${be(u.inputTokens)} in · ${be(u.outputTokens)} out`}),c.jsx(ut,{label:"Runs",value:`${s}`,sub:"on this thread"}),c.jsx(ut,{label:"Messages",value:`${a.messageCount}`,sub:"on this thread"})]}),c.jsx(ce,{title:"Runs",subtitle:"Newest first",right:f>0&&l!==void 0&&c.jsxs(dt,{size:"xs",render:c.jsx("a",{href:l}),children:["Show all ",s," runs"]}),children:i.length===0?c.jsx(Se,{label:"No runs on this thread"}):c.jsxs(c.Fragment,{children:[c.jsx("ul",{className:"space-y-1",children:i.map(h=>c.jsx("li",{children:c.jsxs(ov,{onClick:t===void 0?void 0:()=>t(h.runId),children:[c.jsx(Ua,{status:h.status}),c.jsx("span",{className:"mono truncate text-muted-foreground",children:h.agentName??"(default)"}),h.errorCode!==null&&c.jsx("span",{className:"mono truncate text-[10px] text-bad",children:h.errorCode}),c.jsxs("span",{className:"mono tnum ml-auto shrink-0 text-[10px] text-muted-foreground",children:[dl(h.durationMs)," · ",jt(h.startedAt)]})]})},h.runId))}),f>0&&c.jsxs("p",{className:"mono mt-2 text-[10px] text-muted-foreground",children:["showing ",i.length," of ",s," — ",f," older not loaded"]})]})}),c.jsx(ce,{title:"Messages",subtitle:"Newest first, content capped server-side",children:o.length===0?c.jsx(Se,{label:"No messages on this thread"}):c.jsxs(c.Fragment,{children:[c.jsx("ul",{className:"space-y-2",children:o.map(h=>c.jsxs("li",{className:"rounded-md border border-line-soft px-2.5 py-2 text-xs",children:[c.jsxs("div",{className:"mono flex flex-wrap items-center gap-2 text-[10px] text-muted-foreground",children:[c.jsx("span",{className:"uppercase tracking-wider text-brand",children:h.role}),h.agentName!==null&&c.jsxs("span",{children:["· ",h.agentName]}),h.toolCallCount>0&&c.jsxs("span",{children:["· ",h.toolCallCount," tool call",h.toolCallCount===1?"":"s"]}),c.jsx("span",{className:"ml-auto",children:jt(h.createdAt)})]}),c.jsxs("p",{className:"mt-1 whitespace-pre-wrap break-words text-foreground",children:[h.content,h.truncated&&c.jsx("span",{className:"mono text-muted-foreground",children:" […truncated]"})]})]},h.messageId))}),g>0&&c.jsxs("p",{className:"mono mt-2 text-[10px] text-muted-foreground",children:["showing ",o.length," of ",a.messageCount]})]})})]})}function ov({onClick:e,children:t}){const l="flex w-full items-center gap-3 rounded-md px-2 py-1.5 text-left text-xs";return e===void 0?c.jsx("div",{className:l,children:t}):c.jsx("button",{type:"button",onClick:e,className:`${l} transition-colors hover:bg-panel-2`,children:t})}function ho(e){return e.includes("/")?e.slice(e.lastIndexOf("/")+1).replace(/^[a-z]{2}[a-z-]*\.[a-z0-9]+\./,""):e}function fv(e){const t={costUsd:0,inputTokens:0,outputTokens:0,totalTokens:0,requests:0};for(const l of e)t.costUsd+=l.costUsd,t.inputTokens+=l.inputTokens,t.outputTokens+=l.outputTokens,t.requests+=l.requests;return t.totalTokens=t.inputTokens+t.outputTokens,t}function Th(e){const t=e.reduce((n,u)=>n+u.costUsd,0),l=e.reduce((n,u)=>n+u.inputTokens+u.outputTokens,0),a=t>0?t:0;return e.map(n=>{const u=n.inputTokens+n.outputTokens,i=a>0?n.costUsd/a:l>0?u/l:0;return{...n,totalTokens:u,costShare:i}}).sort((n,u)=>u.costUsd-n.costUsd||u.totalTokens-n.totalTokens)}function rv(e){const t=[];let l=0;for(const a of e)a.costShare<=0||(t.push({modelId:a.modelId,value:a.costUsd,fraction:a.costShare,offset:l}),l+=a.costShare);return t}const ri={fill:"var(--muted)",fontSize:10,fontFamily:'"JetBrains Mono", ui-monospace, monospace'},Ah={stroke:"var(--line)"},Mh={stroke:"var(--line)",strokeWidth:1,strokeDasharray:"3 3"},Eh={stroke:"var(--line-soft)",vertical:!1};function go({title:e,children:t}){return c.jsxs(Vt,{className:"px-2.5 py-2 text-[11px] shadow-lg shadow-black/50",children:[c.jsx("div",{className:"mono mb-1.5 text-[10px] uppercase tracking-wider text-muted-foreground",children:e}),c.jsx("div",{className:"space-y-1",children:t})]})}function di({color:e,label:t,value:l}){return c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"h-2 w-2 shrink-0 rounded-sm",style:{background:e}}),c.jsx("span",{className:"min-w-0 truncate text-muted-foreground",children:t}),c.jsx("span",{className:"mono tnum ml-auto shrink-0 pl-4 text-foreground",children:l})]})}function Dh({children:e}){return c.jsx("figcaption",{className:"mono mt-2 flex flex-wrap items-center justify-between gap-x-4 gap-y-1 text-[10px] text-muted-foreground",children:e})}const Ff=["#a78bfa","#22d3ee","#34d399","#fbbf24","#f87171","#60a5fa","#f472b6","#a3e635"];function va(e){return Ff[e%Ff.length]??"#a78bfa"}function Oh({segments:e,size:t=168,thickness:l=20,centerLabel:a,centerSub:n,label:u="spend by model",formatValue:i=String}){const s=t/2-3,o=ne.useMemo(()=>new Map(e.map(g=>[g.modelId,g])),[e]),f=ne.useMemo(()=>new Map(e.map((g,h)=>[g.modelId,va(h)])),[e]);return c.jsxs("figure",{className:"relative m-0 shrink-0",style:{width:t,height:t},children:[c.jsx("figcaption",{className:"sr-only",children:u}),c.jsx("div",{className:"pointer-events-none absolute inset-[3px] rounded-full",style:{border:`${l}px solid var(--line)`}}),(a||n)&&c.jsx("div",{className:"pointer-events-none absolute inset-0 grid place-items-center text-center",children:c.jsxs("div",{children:[a&&c.jsx("div",{className:"mono tnum text-lg font-semibold text-foreground",children:a}),n&&c.jsx("div",{className:"mono text-[10px] text-muted-foreground",children:n})]})}),c.jsx("div",{className:"relative",children:c.jsxs(sg,{width:t,height:t,children:[c.jsx(og,{data:e,dataKey:"fraction",nameKey:"modelId",cx:"50%",cy:"50%",innerRadius:s-l,outerRadius:s,startAngle:90,endAngle:-270,paddingAngle:e.length>1?1:0,stroke:"none",isAnimationActive:!1,activeShape:{outerRadius:s+3},children:e.map((g,h)=>c.jsx(fg,{fill:va(h)},g.modelId))}),c.jsx(ms,{isAnimationActive:!1,allowEscapeViewBox:{x:!0,y:!0},content:g=>{var b,S;const h=(S=(b=g.payload)==null?void 0:b[0])==null?void 0:S.name,d=typeof h=="string"?o.get(h):void 0;return!g.active||!d?null:c.jsx(go,{title:On(d.fraction),children:c.jsx(di,{color:f.get(d.modelId)??va(0),label:d.modelId,value:i(d.value)})})}})]})})]})}function Vn({className:e,...t}){return c.jsx("div",{className:"w-full overflow-x-auto",children:c.jsx("table",{className:Z("w-full text-left text-xs",e),...t})})}function Zn({className:e,...t}){return c.jsx("thead",{className:Z("text-[10px] uppercase tracking-wider text-muted-foreground",e),...t})}function wn({className:e,...t}){return c.jsx("tbody",{className:Z("mono tnum",e),...t})}function kn({className:e,...t}){return c.jsx("tr",{className:Z("border-b border-line-soft",e),...t})}function Kn({className:e,...t}){return c.jsx("tr",{className:Z("border-b border-line",e),...t})}function w({className:e,...t}){return c.jsx("th",{className:Z("py-2 font-medium",e),...t})}function k({className:e,...t}){return c.jsx("td",{className:Z("py-2.5 text-muted-foreground",e),...t})}function $v({rows:e}){const t=Th(e);return c.jsx(ce,{title:"Models",subtitle:"Requests, tokens and cost per model over the range",children:t.length===0?c.jsx(Se,{label:"No model usage in this range"}):c.jsxs(Vn,{className:"min-w-[640px]",children:[c.jsx(Zn,{children:c.jsxs(Kn,{children:[c.jsx(w,{children:"Model"}),c.jsx(w,{className:"text-right",children:"Requests"}),c.jsx(w,{className:"text-right",children:"Input"}),c.jsx(w,{className:"text-right",children:"Output"}),c.jsx(w,{className:"text-right",children:"Cost"}),c.jsx(w,{className:"pl-4",children:"Share"})]})}),c.jsx(wn,{children:t.map((l,a)=>c.jsxs(kn,{children:[c.jsx(k,{className:"pr-4",children:c.jsxs("span",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{background:va(a)}}),c.jsx(Dn,{label:l.modelId,children:c.jsx("span",{className:"block max-w-[240px] truncate text-foreground",children:ho(l.modelId)})})]})}),c.jsx(k,{className:"text-right",children:l.requests}),c.jsx(k,{className:"text-right",children:be(l.inputTokens)}),c.jsx(k,{className:"text-right",children:be(l.outputTokens)}),c.jsx(k,{className:"text-right text-foreground",children:qe(l.costUsd)}),c.jsx(k,{className:"pl-4",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(bh,{ratio:l.costShare,className:"w-24"}),c.jsxs("span",{className:"w-9 text-right",children:[Math.round(l.costShare*100),"%"]})]})})]},l.modelId))})]})})}const If={modelId:"",inputPricePer1m:0,outputPricePer1m:0};function Wv({prices:e,loading:t,unavailable:l,onUpsert:a,saving:n}){return l?c.jsx(ce,{title:"Pricing",subtitle:"Per-model rates cost is priced against",children:c.jsx("div",{className:"rounded-lg border border-dashed border-line p-6 text-xs text-muted-foreground",children:"No pricing store is bound on the host — pricing CRUD is unavailable. Bind `AGENT_PRICING_STORE` (e.g. `MikroOrmPricingStore`) to enable it."})}):c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsx(ce,{title:"Set a price",subtitle:"Upserts the model's current rate, effective now",children:c.jsx(dv,{onUpsert:a,saving:n})}),c.jsx(ce,{title:"Current prices",subtitle:"One live row per model — the rate cost is priced against",children:t?c.jsx("div",{className:"animate-pulse text-xs text-muted-foreground",children:"Loading…"}):e.length===0?c.jsx(Se,{label:"No prices set yet"}):c.jsxs(Vn,{className:"min-w-[560px]",children:[c.jsx(Zn,{children:c.jsxs(Kn,{children:[c.jsx(w,{children:"Model"}),c.jsx(w,{className:"text-right",children:"Input / 1M"}),c.jsx(w,{className:"text-right",children:"Output / 1M"}),c.jsx(w,{className:"text-right",children:"Cache write / 1M"}),c.jsx(w,{className:"text-right",children:"Cache read / 1M"}),c.jsx(w,{className:"pl-4",children:"Effective"})]})}),c.jsx(wn,{children:e.map(u=>c.jsxs(kn,{children:[c.jsx(k,{className:"pr-4",children:c.jsx(Dn,{label:u.modelId,children:c.jsx("span",{className:"block max-w-[240px] truncate text-foreground",children:ho(u.modelId)})})}),c.jsx(k,{className:"text-right text-foreground",children:qe(u.inputPricePer1m)}),c.jsx(k,{className:"text-right text-foreground",children:qe(u.outputPricePer1m)}),c.jsx(k,{className:"text-right",children:u.cacheWritePricePer1m!==void 0?qe(u.cacheWritePricePer1m):"—"}),c.jsx(k,{className:"text-right",children:u.cacheReadPricePer1m!==void 0?qe(u.cacheReadPricePer1m):"—"}),c.jsx(k,{className:"pl-4 text-[10px]",children:jt(u.effectiveFrom)})]},u.modelId))})]})})]})}function dv({onUpsert:e,saving:t}){const[l,a]=ne.useState(If),[n,u]=ne.useState(null);async function i(s){s.preventDefault(),u(null);try{await e(l),a(If)}catch(o){u(o instanceof Error?o.message:"Failed to save the price.")}}return c.jsxs("form",{onSubmit:i,className:"flex flex-wrap items-end gap-3",children:[c.jsx($a,{label:"Model id",children:c.jsx(xh,{required:!0,value:l.modelId,onChange:s=>a({...l,modelId:s.target.value}),placeholder:"gpt-4o",className:"w-40"})}),c.jsx($a,{label:"Input / 1M",children:c.jsx(gu,{value:l.inputPricePer1m,onChange:s=>a({...l,inputPricePer1m:s??0})})}),c.jsx($a,{label:"Output / 1M",children:c.jsx(gu,{value:l.outputPricePer1m,onChange:s=>a({...l,outputPricePer1m:s??0})})}),c.jsx($a,{label:"Cache write / 1M (optional)",children:c.jsx(gu,{value:l.cacheWritePricePer1m,onChange:s=>a(Pf(l,"cacheWritePricePer1m",s))})}),c.jsx($a,{label:"Cache read / 1M (optional)",children:c.jsx(gu,{value:l.cacheReadPricePer1m,onChange:s=>a(Pf(l,"cacheReadPricePer1m",s))})}),c.jsx(dt,{type:"submit",variant:"default",size:"md",disabled:t,className:"rounded-lg",children:t?"Saving…":"Save price"}),n&&c.jsx("span",{className:"text-xs text-bad",children:n})]})}function Pf(e,t,l){if(l===void 0){const a={...e};return delete a[t],a}return{...e,[t]:l}}function $a({label:e,children:t}){return c.jsxs("label",{className:"flex flex-col gap-1 rounded-lg border border-line bg-panel px-2.5 py-1.5 text-[11px] text-muted-foreground",children:[c.jsx("span",{className:"uppercase tracking-wider",children:e}),t]})}function gu({value:e,onChange:t}){return c.jsx(xh,{type:"number",min:0,step:"0.01",value:e??"",onChange:l=>{const a=l.target.value;t(a===""?void 0:Number(a))},className:"tnum w-24"})}function mv(e){const t=e.reduce((u,i)=>u+i.count,0),l=[...e].sort((u,i)=>i.count-u.count),a=[];let n=0;for(const u of l){if(t<=0||u.count<=0)continue;const i=u.count/t;a.push({modelId:u.errorCode,value:u.count,fraction:i,offset:n}),n+=i}return a}const hv=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Uh(e){const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return null;const[,l,a,n]=t;if(!l||!a||!n)return null;const u=hv[Number(a)-1];return u?{year:l,month:u,day:Number(n)}:null}function mi(e){const t=Uh(e);return t?`${t.month} ${t.day}`:e}function ya(e){const t=Uh(e);return t?`${t.month} ${t.day}, ${t.year}`:e}function ds(e,t){const l=e[0],a=e[e.length-1];if(!l||!a)return{first:"",last:"",peak:0,peakDay:"",total:0};let n=Number.NEGATIVE_INFINITY,u=l.day,i=0;for(const s of e){const o=t(s);i+=o,o>n&&(n=o,u=s.day)}return{first:l.day,last:a.day,peak:n,peakDay:u,total:i}}function gv({points:e,height:t=200}){const l=ne.useId(),a=ne.useMemo(()=>new Map(e.map(i=>[i.day,i])),[e]),n=ne.useMemo(()=>ds(e,i=>i.runs),[e]),u=ne.useMemo(()=>ds(e,i=>i.failed),[e]);return c.jsxs("figure",{className:"m-0",children:[c.jsx("div",{className:"w-full",style:{height:t},children:c.jsx(nr,{width:"100%",height:"100%",children:c.jsxs(rg,{data:e,margin:{top:8,right:18,bottom:0,left:0},children:[c.jsx("defs",{children:c.jsxs("linearGradient",{id:l,x1:"0",y1:"0",x2:"0",y2:"1",children:[c.jsx("stop",{offset:"0%",stopColor:"var(--accent)",stopOpacity:.35}),c.jsx("stop",{offset:"100%",stopColor:"var(--accent)",stopOpacity:0})]})}),c.jsx(ur,{...Eh}),c.jsx(ir,{dataKey:"day",tickFormatter:mi,tick:ri,axisLine:Ah,tickLine:!1,minTickGap:28}),c.jsx(cr,{tickFormatter:be,tick:ri,axisLine:!1,tickLine:!1,width:44,allowDecimals:!1}),c.jsx(ms,{cursor:Mh,isAnimationActive:!1,content:i=>{const s=typeof i.label=="string"?i.label:null,o=s?a.get(s):void 0;if(!i.active||!o)return null;const f=o.runs>0?o.failed/o.runs:0;return c.jsxs(go,{title:ya(o.day),children:[c.jsx(di,{color:"var(--accent)",label:"runs",value:be(o.runs)}),c.jsx(di,{color:"var(--bad)",label:"failed",value:`${be(o.failed)} · ${On(f)}`})]})}}),c.jsx(sr,{type:"monotone",dataKey:"runs",name:"runs",stroke:"var(--accent)",strokeWidth:1.8,fill:`url(#${l})`,dot:!1,activeDot:{r:3.5,strokeWidth:0,fill:"var(--accent)"},isAnimationActive:!1}),c.jsx(dg,{type:"monotone",dataKey:"failed",name:"failed",stroke:"var(--bad)",strokeWidth:1.8,dot:!1,activeDot:{r:3.5,strokeWidth:0,fill:"var(--bad)"},isAnimationActive:!1})]})})}),c.jsxs(Dh,{children:[c.jsxs("span",{className:"flex items-center gap-3",children:[c.jsx(er,{color:"var(--accent)",label:"runs"}),c.jsx(er,{color:"var(--bad)",label:"failed"})]}),c.jsxs("span",{children:[ya(n.first)," – ",ya(n.last)]}),c.jsx("span",{children:`peak ${be(n.peak)} runs on ${mi(n.peakDay)} · ${be(u.total)} failed overall`})]})]})}function er({color:e,label:t}){return c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"h-2 w-2 rounded-sm",style:{background:e}}),t]})}const xv=$h,bv=Wh;function vv({className:e,children:t,...l}){return c.jsxs(Fh,{className:Z("mono flex items-center justify-between gap-1.5 rounded-md border border-input bg-panel px-2 py-1 text-[11px] text-foreground outline-none transition-colors focus-visible:border-brand/50 data-[popup-open]:border-brand/50",e),...l,children:[t,c.jsx(Ih,{render:c.jsx(Fb,{width:12,height:12,className:"text-muted-foreground"})})]})}function yv({className:e,children:t,sideOffset:l=4,...a}){return c.jsx(Ph,{children:c.jsx(eg,{sideOffset:l,alignItemWithTrigger:!1,className:"z-50 outline-none",children:c.jsx(tg,{className:Z("min-w-[var(--anchor-width)] origin-[var(--transform-origin)] overflow-hidden rounded-md border border-line bg-popover p-1 text-popover-foreground shadow-lg shadow-black/50","transition-[opacity,transform] duration-150 ease-out","data-[starting-style]:scale-95 data-[starting-style]:opacity-0","data-[ending-style]:scale-95 data-[ending-style]:opacity-0",e),...a,children:t})})})}function pv({className:e,children:t,...l}){return c.jsxs(lg,{className:Z("mono relative flex cursor-pointer select-none items-center gap-2 rounded-sm py-1 pl-6 pr-2 text-[11px] text-muted-foreground outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[selected]:text-foreground",e),...l,children:[c.jsx(ag,{className:"absolute left-1 flex items-center text-brand",children:c.jsx(Nh,{width:11,height:11})}),c.jsx(ng,{children:t})]})}const jv={completed:"completed",failed:"failed",cancelled:"cancelled"},tr=[{value:"",label:"any status"},{value:"running",label:"running"},...Object.entries(jv).map(([e,t])=>({value:e,label:t}))];function Fv({overview:e,runsTable:t,runsWhere:l,onRunsStatusChange:a,onRunsAgentNameChange:n,onRunsThreadIdClear:u,onRunsPageChange:i,onOpenRun:s}){const o=t.page,{metrics:f,byAgent:g,errors:h,trend:d}=e,b=f.runs>0?f.failed/f.runs:0,S=mv(h);return c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4",children:[c.jsx(ut,{label:"Success rate",value:On(f.successRate),sub:`${f.completed} / ${f.runs} runs`,icon:c.jsx(jh,{}),tone:"good"}),c.jsx(ut,{label:"Error rate",value:On(b),sub:`${f.failed} failed`,icon:c.jsx(Yl,{}),...f.failed>0?{tone:"bad"}:{}}),c.jsx(ut,{label:"Retries",value:`${f.retries}`,sub:"LLM-step attempts > 1",icon:c.jsx(Sh,{})}),c.jsx(ut,{label:"p95 duration",value:dl(f.durationP95Ms),sub:`p50 ${dl(f.durationP50Ms)}`,icon:c.jsx(Wb,{})})]}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-3",children:[c.jsx(ce,{title:"Failures by error code",subtitle:"Share of failed runs over the range",children:S.length===0?c.jsx(Se,{label:"No failed runs in this range"}):c.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row",children:[c.jsx(Oh,{segments:S,centerLabel:`${f.failed}`,centerSub:"failed",label:"failures by error code",formatValue:v=>`${v} runs`}),c.jsx("ul",{className:"flex-1 space-y-1.5",children:h.map((v,D)=>c.jsxs("li",{className:"flex items-center gap-2 text-xs",children:[c.jsx("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{background:va(D)}}),c.jsx("span",{className:"mono min-w-0 flex-1 truncate text-foreground",children:v.errorCode}),c.jsx("span",{className:"mono tnum ml-auto shrink-0 text-muted-foreground",children:v.count})]},v.errorCode))})]})}),c.jsx(ce,{className:"lg:col-span-2",title:"Run & failure trend",subtitle:"Daily total runs vs. failed runs across the range",children:d.length===0?c.jsx(Se,{label:"No runs recorded in this range"}):c.jsx(gv,{points:d})})]}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:[c.jsx(ce,{title:"Runs by agent",subtitle:"Volume, failures and retries per agent",children:g.length===0?c.jsx(Se,{label:"No runs in this range"}):c.jsx("ul",{className:"space-y-1",children:g.map(v=>c.jsxs("li",{className:"flex items-center gap-3 rounded-md px-2 py-1.5 text-xs hover:bg-panel-2",children:[c.jsx("span",{className:"mono truncate text-foreground",children:v.agentName}),c.jsxs("span",{className:"mono tnum ml-auto shrink-0 text-[10px] text-muted-foreground",children:[v.runs," runs · ",v.failed," failed · ",v.retries," retries"]})]},v.agentName))})}),c.jsxs(ce,{title:"Recent runs",subtitle:"Latest run outcomes across threads",right:c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsxs(xv,{items:tr,value:l.status??"",onValueChange:v=>a(String(v??"")),children:[c.jsx(vv,{"aria-label":"Filter by run status",className:"w-28",children:c.jsx(bv,{})}),c.jsx(yv,{children:tr.map(v=>c.jsx(pv,{value:v.value,children:v.label},v.value))})]}),c.jsx(Uu,{value:l.agentName??"",placeholder:"agent",onChange:n})]}),children:[l.threadId!==void 0&&c.jsxs(dt,{variant:"accent",size:"xs",onClick:u,className:"mono mb-3",children:["thread ",l.threadId,c.jsx(mo,{})]}),t.error!==null&&c.jsx("div",{className:"mb-3",children:c.jsx(fi,{label:"Runs",error:t.error,onRetry:t.retry})}),o.rows.length===0?c.jsx(Se,{label:"No runs yet"}):c.jsxs(c.Fragment,{children:[c.jsxs(Vn,{className:"min-w-[520px]",children:[c.jsx(Zn,{children:c.jsxs(Kn,{children:[c.jsx(w,{children:"Status"}),c.jsx(w,{children:"Agent"}),c.jsx(w,{className:"text-right",children:"Duration"}),c.jsx(w,{className:"pl-4",children:"Error"}),c.jsx(w,{className:"pl-4",children:"Prompt"}),c.jsx(w,{className:"pl-4 text-right",children:"Started"})]})}),c.jsx(wn,{children:o.rows.map(v=>c.jsxs(kn,{className:"hover:bg-panel-2",children:[c.jsx(k,{className:"pr-4",children:s===void 0?c.jsx(Ua,{status:v.status}):c.jsx("button",{type:"button",title:`Open run ${v.runId}`,onClick:()=>s(v.runId),className:"underline decoration-line decoration-dotted underline-offset-4 transition-colors hover:decoration-brand",children:c.jsx(Ua,{status:v.status})})}),c.jsx(k,{className:"pr-4",children:v.agentName??"(default)"}),c.jsx(k,{className:"text-right",children:dl(v.durationMs)}),c.jsx(k,{className:"pl-4",children:v.errorMessage?c.jsx("span",{className:"block max-w-[220px] truncate text-bad",title:v.errorMessage,children:v.errorCode?`${v.errorCode}: ${v.errorMessage}`:v.errorMessage}):"—"}),c.jsx(k,{className:"pl-4",children:v.promptHash?c.jsx(Gl,{title:v.promptHash,children:v.promptHash.slice(0,8)}):"—"}),c.jsx(k,{className:"pl-4 text-right text-[10px]",children:jt(v.startedAt)})]},v.runId))})]}),c.jsx(oi,{page:o.page,pageSize:o.pageSize,total:o.total,onPage:i})]})]})]})]})}function Sv(e){return/forbidden|denied|error|failed|reject/i.test(e)}function Iv({toolCalls:e,toolCallsTable:t,toolCallsWhere:l,onToolCallsToolNameChange:a,onToolCallsStatusChange:n,onToolCallsPageChange:u,threadsTable:i,threadsWhere:s,onThreadsTitleChange:o,onThreadsPageChange:f,onOpenRun:g,onOpenThread:h}){const d=e.filter(v=>Sv(v.status)),b=t.page,S=i.page;return c.jsxs("div",{className:"flex flex-col gap-4",children:[d.length>0&&c.jsxs(Vt,{className:"flex items-center gap-2 border-bad/40 p-3 text-xs text-bad",children:[c.jsx(Yl,{}),c.jsxs("span",{className:"mono",children:[d.length," recent tool call",d.length===1?"":"s"," blocked or failed"]})]}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:[c.jsxs(ce,{title:"Recent tool calls",subtitle:"Latest tool activity across threads",right:c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(Uu,{value:l.toolName??"",placeholder:"tool name",onChange:a}),c.jsx(Uu,{value:l.status??"",placeholder:"status",onChange:n})]}),children:[t.error!==null&&c.jsx("div",{className:"mb-3",children:c.jsx(fi,{label:"Tool calls",error:t.error,onRetry:t.retry})}),b.rows.length===0?c.jsx(Se,{label:"No tool calls yet"}):c.jsxs(c.Fragment,{children:[c.jsx("ul",{className:"space-y-1",children:b.rows.map(v=>{const D=v.runId;return c.jsxs("li",{className:"flex items-center gap-3 rounded-md px-2 py-1.5 text-xs hover:bg-panel-2",children:[c.jsx(Ua,{status:v.status}),c.jsx("span",{className:"mono min-w-0",children:c.jsx(si,{label:v.toolName,title:D??"No run recorded for this call",onOpen:g===void 0||D===null?void 0:()=>g(D)})}),c.jsx(Gl,{children:v.toolType}),c.jsx("span",{className:"mono ml-auto shrink-0 text-[10px] text-muted-foreground",children:jt(v.createdAt)})]},v.toolCallId)})}),c.jsx(oi,{page:b.page,pageSize:b.pageSize,total:b.total,onPage:u})]})]}),c.jsxs(ce,{title:"Recent threads",subtitle:"Latest conversations with rolled-up usage",right:c.jsx(Uu,{value:s.title??"",placeholder:"title",onChange:o}),children:[i.error!==null&&c.jsx("div",{className:"mb-3",children:c.jsx(fi,{label:"Threads",error:i.error,onRetry:i.retry})}),S.rows.length===0?c.jsx(Se,{label:"No threads yet"}):c.jsxs(c.Fragment,{children:[c.jsx("ul",{className:"space-y-1",children:S.rows.map(v=>c.jsxs("li",{className:"flex items-center gap-3 rounded-md px-2 py-1.5 text-xs hover:bg-panel-2",children:[c.jsx("span",{className:"min-w-0",children:c.jsx(si,{label:v.title||v.threadId,title:v.threadId,onOpen:h===void 0?void 0:()=>h(v.threadId)})}),c.jsxs("span",{className:"mono ml-auto shrink-0 text-[10px] text-muted-foreground",children:[v.messageCount," msg · ",be(v.totalTokens)," tok"]}),c.jsx("span",{className:"mono shrink-0 text-[10px] text-muted-foreground",children:jt(v.lastActivityAt)})]},v.threadId))}),c.jsx(oi,{page:S.page,pageSize:S.pageSize,total:S.total,onPage:f})]})]})]})]})}function Nv({rows:e,onOpenThread:t}){return c.jsx(ce,{title:"Top threads by cost",subtitle:"Highest-spend conversations over the range",children:e.length===0?c.jsx(Se,{label:"No thread spend in this range"}):c.jsxs(Vn,{className:"min-w-[640px]",children:[c.jsx(Zn,{children:c.jsxs(Kn,{children:[c.jsx(w,{children:"Thread"}),c.jsx(w,{children:"Actor"}),c.jsx(w,{className:"text-right",children:"Requests"}),c.jsx(w,{className:"text-right",children:"Tokens"}),c.jsx(w,{className:"text-right",children:"Cost"})]})}),c.jsx(wn,{children:e.map(l=>c.jsxs(kn,{children:[c.jsx(k,{className:"max-w-[260px]",children:c.jsx(si,{label:l.title||l.threadId,title:l.threadId,onOpen:t===void 0?void 0:()=>t(l.threadId)})}),c.jsx(k,{className:"truncate",children:l.actorLabel??l.actorRef}),c.jsx(k,{className:"text-right",children:l.requests}),c.jsx(k,{className:"text-right",children:be(l.totalTokens)}),c.jsx(k,{className:"text-right text-foreground",children:qe(l.costUsd)})]},l.threadId))})]})})}const zv={costUsd:"Cost",totalTokens:"Tokens"};function Tv({points:e,metric:t,height:l=200}){const a=ne.useId(),n=t==="costUsd"?qe:be,u=zv[t],i=ne.useMemo(()=>new Map(e.map(o=>[o.day,o])),[e]),s=ne.useMemo(()=>ds(e,o=>o[t]),[e,t]);return c.jsxs("figure",{className:"m-0",children:[c.jsx("div",{className:"w-full",style:{height:l},children:c.jsx(nr,{width:"100%",height:"100%",children:c.jsxs(mg,{data:e,margin:{top:8,right:18,bottom:0,left:0},children:[c.jsx("defs",{children:c.jsxs("linearGradient",{id:a,x1:"0",y1:"0",x2:"0",y2:"1",children:[c.jsx("stop",{offset:"0%",stopColor:"var(--accent)",stopOpacity:.38}),c.jsx("stop",{offset:"100%",stopColor:"var(--accent)",stopOpacity:0})]})}),c.jsx(ur,{...Eh}),c.jsx(ir,{dataKey:"day",tickFormatter:mi,tick:ri,axisLine:Ah,tickLine:!1,minTickGap:28}),c.jsx(cr,{tickFormatter:n,tick:ri,axisLine:!1,tickLine:!1,width:56}),c.jsx(ms,{cursor:Mh,isAnimationActive:!1,content:o=>{const f=typeof o.label=="string"?o.label:null,g=f?i.get(f):void 0;return!o.active||!g?null:c.jsx(go,{title:ya(g.day),children:c.jsx(di,{color:"var(--accent)",label:u,value:n(g[t])})})}}),c.jsx(sr,{type:"monotone",dataKey:t,name:u,stroke:"var(--accent)",strokeWidth:1.8,fill:`url(#${a})`,dot:!1,activeDot:{r:3.5,strokeWidth:0,fill:"var(--accent)"},isAnimationActive:!1})]})})}),c.jsxs(Dh,{children:[c.jsxs("span",{children:[ya(s.first)," – ",ya(s.last)]}),c.jsxs("span",{children:["peak ",n(s.peak)," on ",mi(s.peakDay)]})]})]})}const Av=ug;function Mv({className:e,...t}){return c.jsx(ig,{className:Z("inline-flex items-center gap-1 rounded-md",e),...t})}function lr({className:e,...t}){return c.jsx(cg,{className:Z("rounded-md border border-transparent px-2 py-1 text-[11px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/50","data-[active]:border-brand data-[active]:bg-brand/10 data-[active]:text-foreground",e),...t})}function Pv({overview:e,topThreads:t,onOpenThread:l}){const[a,n]=ne.useState("costUsd"),u=fv(e.byModel),i=Th(e.byModel),s=rv(i);return c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4",children:[c.jsx(ut,{label:"Total spend",value:qe(u.costUsd),sub:`${u.requests} requests`,icon:c.jsx(Kb,{}),tone:"accent"}),c.jsx(ut,{label:"Total tokens",value:be(u.totalTokens),sub:`${be(u.inputTokens)} in · ${be(u.outputTokens)} out`,icon:c.jsx(jh,{})}),c.jsx(ut,{label:"Models used",value:`${e.byModel.length}`,sub:"distinct model ids",icon:c.jsx(Jb,{})}),c.jsx(ut,{label:"Avg cost / request",value:qe(u.requests>0?u.costUsd/u.requests:0),sub:"over the range",icon:c.jsx($b,{})})]}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-3",children:[c.jsx(ce,{title:"Spend by model",subtitle:"Share of cost across the range",children:s.length===0?c.jsx(Se,{label:"No spend recorded in this range"}):c.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row",children:[c.jsx(Oh,{segments:s,centerLabel:qe(u.costUsd),centerSub:"total",formatValue:qe}),c.jsx("ul",{className:"flex-1 space-y-1.5",children:i.slice(0,8).map((o,f)=>c.jsxs("li",{className:"flex items-center gap-2 text-xs",children:[c.jsx("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{background:va(f)}}),c.jsx("span",{className:"mono min-w-0 flex-1 truncate text-foreground",title:o.modelId,children:ho(o.modelId)}),c.jsx("span",{className:"mono tnum ml-auto shrink-0 text-muted-foreground",children:qe(o.costUsd)}),c.jsxs("span",{className:"mono tnum w-9 shrink-0 text-right text-muted-foreground",children:[Math.round(o.costShare*100),"%"]})]},o.modelId))})]})}),c.jsx(ce,{className:"lg:col-span-2",title:"Daily usage trend",subtitle:"Per-day spend / tokens across the range",right:c.jsx(Av,{value:a,onValueChange:o=>n(o),"aria-label":"Trend metric",children:c.jsxs(Mv,{children:[c.jsx(lr,{value:"costUsd",children:"Cost"}),c.jsx(lr,{value:"totalTokens",children:"Tokens"})]})}),children:e.trend.length===0?c.jsx(Se,{label:"No usage recorded in this range"}):c.jsx(Tv,{points:e.trend,metric:a})})]}),c.jsx(Nv,{rows:t,onOpenThread:l})]})}function ey({rows:e}){return c.jsx(ce,{title:"Tools",subtitle:"Per-tool call volume, failure/rejection rate and latency over the range",children:e.length===0?c.jsx(Se,{label:"No tool calls in this range"}):c.jsxs(Vn,{className:"min-w-[700px]",children:[c.jsx(Zn,{children:c.jsxs(Kn,{children:[c.jsx(w,{children:"Tool"}),c.jsx(w,{children:"Kind"}),c.jsx(w,{className:"text-right",children:"Calls"}),c.jsx(w,{className:"text-right",children:"Failure rate"}),c.jsx(w,{className:"text-right",children:"Rejected"}),c.jsx(w,{className:"pl-4 text-right",children:"p50 exec"}),c.jsx(w,{className:"pl-4 text-right",children:"p95 exec"})]})}),c.jsx(wn,{children:e.map(t=>{const l=t.calls>0?t.failed/t.calls:0;return c.jsxs(kn,{children:[c.jsx(k,{className:"pr-4",children:c.jsx(Dn,{label:t.toolName,children:c.jsx("span",{className:"block max-w-[240px] truncate text-foreground",children:t.toolName})})}),c.jsx(k,{className:"pr-4",children:c.jsx(Gl,{children:t.toolType})}),c.jsx(k,{className:"text-right",children:t.calls}),c.jsx(k,{className:`text-right ${t.failed>0?"text-bad":""}`,children:On(l)}),c.jsx(k,{className:"text-right",children:t.rejected}),c.jsx(k,{className:"pl-4 text-right text-foreground",children:dl(t.p50ExecutionMs)}),c.jsx(k,{className:"pl-4 text-right",children:dl(t.p95ExecutionMs)})]},t.toolName)})})]})})}export{Zv as A,dt as B,Vt as C,kv as D,Se as E,fi as I,Lv as L,$v as M,Wv as P,Kv as R,Pb as S,Jv as T,Hv as U,qv as W,wv as a,Fv as b,Iv as c,Pv as d,ey as e,Z as f,Kb as g,Jb as h,Yv as i,Xv as j,Gv as k,jh as l,Rv as m,Gl as n,Vv as o,_v as p,yh as q,Bv as r,Qv as s,xh as t,Uv as u,Cv as v,ev as w};