loki-mode 10.10.2 → 10.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SKILL.md +2 -2
- package/VERSION +1 -1
- package/dashboard/__init__.py +1 -1
- package/docs/CLI-REFERENCE.md +1 -1
- package/docs/INSTALLATION.md +1 -1
- package/docs/v10/BOARD.md +2 -0
- package/docs/v10/FAILURE-CLASSES.md +13 -0
- package/docs/v10/PROGRESS.md +9 -0
- package/docs/v10/cp-redesign/PARITY.md +188 -0
- package/docs/v10/cp-redesign/legacy/INDEX.md +1167 -0
- package/loki-ts/dist/loki.js +616 -614
- package/mcp/__init__.py +1 -1
- package/package.json +1 -1
- package/packages/control-plane/dist/server.js +417 -336
- package/packages/control-plane/src/server/diffstat.ts +77 -0
- package/packages/control-plane/src/server/repos.ts +5 -2
- package/packages/control-plane/src/server/routes/index.ts +1 -1
- package/packages/control-plane/src/server/runs.ts +3 -1
- package/packages/control-plane/ui/dist/assets/index-D27veKDf.js +152 -0
- package/packages/control-plane/ui/dist/index.html +1 -1
- package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
- package/web-app/dist/assets/{AdminPage-BvbxMtZO.js → AdminPage-Dyx5OHmP.js} +1 -1
- package/web-app/dist/assets/{Avatar-Dc7Scg02.js → Avatar-WVxt-kYj.js} +1 -1
- package/web-app/dist/assets/{Badge-BmVuOqbM.js → Badge-16vWJ-6u.js} +1 -1
- package/web-app/dist/assets/{Button-DvzqhxRU.js → Button-CWVPIMTW.js} +1 -1
- package/web-app/dist/assets/{CockpitPage-D8AZo7Ha.js → CockpitPage-D5WhogJK.js} +1 -1
- package/web-app/dist/assets/{ComparePage-NmqaTXDz.js → ComparePage-CjJfjxcT.js} +1 -1
- package/web-app/dist/assets/{ErrorBoundary-PGl8Kzoq.js → ErrorBoundary-CNnObh81.js} +1 -1
- package/web-app/dist/assets/{EvidenceReceiptPanel-2NY4n9gv.js → EvidenceReceiptPanel-Cn1PE_JV.js} +1 -1
- package/web-app/dist/assets/{GitHubIssuesPanel-DBO_LHHM.js → GitHubIssuesPanel-CcH9neSU.js} +1 -1
- package/web-app/dist/assets/{GitHubPRsPanel-K7m9uJ1N.js → GitHubPRsPanel-C-n6inCN.js} +1 -1
- package/web-app/dist/assets/{HomePage-qNQzAJxM.js → HomePage-BZ7PCPFR.js} +2 -2
- package/web-app/dist/assets/{LoginPage-esu3OK65.js → LoginPage-CJsigIUa.js} +1 -1
- package/web-app/dist/assets/{MagicPage-CCdVvXrA.js → MagicPage-ClZaKmXT.js} +1 -1
- package/web-app/dist/assets/{MetricsPage-bEvugU2t.js → MetricsPage-ELQn9-cf.js} +1 -1
- package/web-app/dist/assets/{NotFoundPage-BlEjQ1wX.js → NotFoundPage-Dc_zp3RF.js} +1 -1
- package/web-app/dist/assets/{ProjectPage-Bnug_Yzv.js → ProjectPage-B5K1NDuH.js} +3 -3
- package/web-app/dist/assets/{ProjectsPage-M8r1vfpn.js → ProjectsPage-C2l5SiIN.js} +1 -1
- package/web-app/dist/assets/{SettingsPage-NqAJpB48.js → SettingsPage-DkDNp6Pd.js} +1 -1
- package/web-app/dist/assets/{ShowcasePage-8FggxL1P.js → ShowcasePage-1zasFSKz.js} +1 -1
- package/web-app/dist/assets/{SystemSettingsPage-3Sz3kFOO.js → SystemSettingsPage-hIm_4NUx.js} +1 -1
- package/web-app/dist/assets/{TeamsPage-nV-6vdWM.js → TeamsPage-DUb_TA22.js} +1 -1
- package/web-app/dist/assets/{TemplatesPage-Brbc_VR9.js → TemplatesPage-B1mj-eA4.js} +1 -1
- package/web-app/dist/assets/{TerminalOutput-D1yta5ac.js → TerminalOutput-BX1UwelI.js} +1 -1
- package/web-app/dist/assets/{activity-oEeKuqFe.js → activity-B8APKMuh.js} +1 -1
- package/web-app/dist/assets/{bell-3NJtqBRR.js → bell-BS8WL-tI.js} +1 -1
- package/web-app/dist/assets/{bot-CuvJZ6x1.js → bot-e9I6yy12.js} +1 -1
- package/web-app/dist/assets/{check-n4289IZw.js → check-BbgR7Ovw.js} +1 -1
- package/web-app/dist/assets/{chevron-left-CmQeio7h.js → chevron-left-BcDqv7aX.js} +1 -1
- package/web-app/dist/assets/{circle-alert-CmmVW-Pd.js → circle-alert-BnDT8wxe.js} +1 -1
- package/web-app/dist/assets/{clock-QFqk7GlA.js → clock-LPz79lks.js} +1 -1
- package/web-app/dist/assets/{cloud-BNkSokmq.js → cloud-BcgBi5T1.js} +1 -1
- package/web-app/dist/assets/{code-xml-nWeketqj.js → code-xml-5zcykgva.js} +1 -1
- package/web-app/dist/assets/{database-C83MXTmJ.js → database-D9KLqhHq.js} +1 -1
- package/web-app/dist/assets/{dollar-sign-Blg6TO4y.js → dollar-sign-CrINoZ4o.js} +1 -1
- package/web-app/dist/assets/{file-code-corner-Tk11oUzm.js → file-code-corner-CA7G72ip.js} +1 -1
- package/web-app/dist/assets/{file-plus-DF_eyA6I.js → file-plus-D8tHdHn_.js} +1 -1
- package/web-app/dist/assets/{globe-D5hDqqmn.js → globe-CT0Ts5bO.js} +1 -1
- package/web-app/dist/assets/{hammer-C2hm9lzl.js → hammer-tUpu0LJk.js} +1 -1
- package/web-app/dist/assets/{index-pMxOIwXq.js → index-DdjeiWUI.js} +3 -3
- package/web-app/dist/assets/{layers-XWQKGXg0.js → layers-BzzJ7w3C.js} +1 -1
- package/web-app/dist/assets/{loader-circle-BRuvorm2.js → loader-circle-BBdMdxIV.js} +1 -1
- package/web-app/dist/assets/{lock-BSGvQf5v.js → lock-Cg9DkEh7.js} +1 -1
- package/web-app/dist/assets/{package-3FJYUYgJ.js → package-DHs8IEJR.js} +1 -1
- package/web-app/dist/assets/{plus-CeIx6g9P.js → plus-70JSAqB1.js} +1 -1
- package/web-app/dist/assets/{refresh-cw-ChutW42g.js → refresh-cw-DjggkboT.js} +1 -1
- package/web-app/dist/assets/{rotate-ccw-BdSjUAk-.js → rotate-ccw-c1NNyyL5.js} +1 -1
- package/web-app/dist/assets/{scroll-text-BjFqxpw3.js → scroll-text-B49wQrJ2.js} +1 -1
- package/web-app/dist/assets/{server-C7UEKdol.js → server-BHKG-dDi.js} +1 -1
- package/web-app/dist/assets/{shield-alert-DY8fpEs7.js → shield-alert-Dx9MoBGm.js} +1 -1
- package/web-app/dist/assets/{thumbs-up-Cz1san1g.js → thumbs-up-frEbS59j.js} +1 -1
- package/web-app/dist/assets/{trash-2-D2MvGYeP.js → trash-2-1Gd8pXFG.js} +1 -1
- package/web-app/dist/assets/{trending-down-CxO3OYOB.js → trending-down-BpUeO-FP.js} +1 -1
- package/web-app/dist/assets/{trending-up-DCHKPJLe.js → trending-up-CvhWp8qO.js} +1 -1
- package/web-app/dist/assets/{upload-CdPJpSHC.js → upload-DZuMugqd.js} +1 -1
- package/web-app/dist/assets/{usePolling-DAH6K3ST.js → usePolling-D5KUSkfs.js} +1 -1
- package/web-app/dist/assets/{user-Byyt01W4.js → user-BF9vws84.js} +1 -1
- package/web-app/dist/index.html +1 -1
- package/packages/control-plane/ui/dist/assets/index-BrA22FUs.js +0 -152
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))o(d);new MutationObserver(d=>{for(const p of d)if(p.type==="childList")for(const m of p.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function r(d){const p={};return d.integrity&&(p.integrity=d.integrity),d.referrerPolicy&&(p.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?p.credentials="include":d.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function o(d){if(d.ep)return;d.ep=!0;const p=r(d);fetch(d.href,p)}})();var Ao={exports:{}},qi={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Up;function xx(){if(Up)return qi;Up=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function r(o,d,p){var m=null;if(p!==void 0&&(m=""+p),d.key!==void 0&&(m=""+d.key),"key"in d){p={};for(var g in d)g!=="key"&&(p[g]=d[g])}else p=d;return d=p.ref,{$$typeof:u,type:o,key:m,ref:d!==void 0?d:null,props:p}}return qi.Fragment=c,qi.jsx=r,qi.jsxs=r,qi}var Hp;function bx(){return Hp||(Hp=1,Ao.exports=xx()),Ao.exports}var s=bx(),Do={exports:{}},Yi={},wo={exports:{}},Mo={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var kp;function Sx(){return kp||(kp=1,(function(u){function c($,et){var lt=$.length;$.push(et);t:for(;0<lt;){var At=lt-1>>>1,_t=$[At];if(0<d(_t,et))$[At]=et,$[lt]=_t,lt=At;else break t}}function r($){return $.length===0?null:$[0]}function o($){if($.length===0)return null;var et=$[0],lt=$.pop();if(lt!==et){$[0]=lt;t:for(var At=0,_t=$.length,Pe=_t>>>1;At<Pe;){var jl=2*(At+1)-1,Sn=$[jl],S=jl+1,k=$[S];if(0>d(Sn,lt))S<_t&&0>d(k,Sn)?($[At]=k,$[S]=lt,At=S):($[At]=Sn,$[jl]=lt,At=jl);else if(S<_t&&0>d(k,lt))$[At]=k,$[S]=lt,At=S;else break t}}return et}function d($,et){var lt=$.sortIndex-et.sortIndex;return lt!==0?lt:$.id-et.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;u.unstable_now=function(){return p.now()}}else{var m=Date,g=m.now();u.unstable_now=function(){return m.now()-g}}var x=[],j=[],z=1,y=null,R=3,H=!1,Y=!1,J=!1,L=!1,B=typeof setTimeout=="function"?setTimeout:null,tt=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function G($){for(var et=r(j);et!==null;){if(et.callback===null)o(j);else if(et.startTime<=$)o(j),et.sortIndex=et.expirationTime,c(x,et);else break;et=r(j)}}function X($){if(J=!1,G($),!Y)if(r(x)!==null)Y=!0,xt||(xt=!0,it());else{var et=r(j);et!==null&&Wt(X,et.startTime-$)}}var xt=!1,I=-1,rt=5,ze=-1;function de(){return L?!0:!(u.unstable_now()-ze<rt)}function Jt(){if(L=!1,xt){var $=u.unstable_now();ze=$;var et=!0;try{t:{Y=!1,J&&(J=!1,tt(I),I=-1),H=!0;var lt=R;try{e:{for(G($),y=r(x);y!==null&&!(y.expirationTime>$&&de());){var At=y.callback;if(typeof At=="function"){y.callback=null,R=y.priorityLevel;var _t=At(y.expirationTime<=$);if($=u.unstable_now(),typeof _t=="function"){y.callback=_t,G($),et=!0;break e}y===r(x)&&o(x),G($)}else o(x);y=r(x)}if(y!==null)et=!0;else{var Pe=r(j);Pe!==null&&Wt(X,Pe.startTime-$),et=!1}}break t}finally{y=null,R=lt,H=!1}et=void 0}}finally{et?it():xt=!1}}}var it;if(typeof U=="function")it=function(){U(Jt)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,me=he.port2;he.port1.onmessage=Jt,it=function(){me.postMessage(null)}}else it=function(){B(Jt,0)};function Wt($,et){I=B(function(){$(u.unstable_now())},et)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function($){$.callback=null},u.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):rt=0<$?Math.floor(1e3/$):5},u.unstable_getCurrentPriorityLevel=function(){return R},u.unstable_next=function($){switch(R){case 1:case 2:case 3:var et=3;break;default:et=R}var lt=R;R=et;try{return $()}finally{R=lt}},u.unstable_requestPaint=function(){L=!0},u.unstable_runWithPriority=function($,et){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var lt=R;R=$;try{return et()}finally{R=lt}},u.unstable_scheduleCallback=function($,et,lt){var At=u.unstable_now();switch(typeof lt=="object"&<!==null?(lt=lt.delay,lt=typeof lt=="number"&&0<lt?At+lt:At):lt=At,$){case 1:var _t=-1;break;case 2:_t=250;break;case 5:_t=1073741823;break;case 4:_t=1e4;break;default:_t=5e3}return _t=lt+_t,$={id:z++,callback:et,priorityLevel:$,startTime:lt,expirationTime:_t,sortIndex:-1},lt>At?($.sortIndex=lt,c(j,$),r(x)===null&&$===r(j)&&(J?(tt(I),I=-1):J=!0,Wt(X,lt-At))):($.sortIndex=_t,c(x,$),Y||H||(Y=!0,xt||(xt=!0,it()))),$},u.unstable_shouldYield=de,u.unstable_wrapCallback=function($){var et=R;return function(){var lt=R;R=et;try{return $.apply(this,arguments)}finally{R=lt}}}})(Mo)),Mo}var Bp;function jx(){return Bp||(Bp=1,wo.exports=Sx()),wo.exports}var Uo={exports:{}},at={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Lp;function _x(){if(Lp)return at;Lp=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),R=Symbol.for("react.view_transition"),H=Symbol.iterator;function Y(S){return S===null||typeof S!="object"?null:(S=H&&S[H]||S["@@iterator"],typeof S=="function"?S:null)}var J={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,B={};function tt(S,k,F){this.props=S,this.context=k,this.refs=B,this.updater=F||J}tt.prototype.isReactComponent={},tt.prototype.setState=function(S,k){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,k,"setState")},tt.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function U(){}U.prototype=tt.prototype;function G(S,k,F){this.props=S,this.context=k,this.refs=B,this.updater=F||J}var X=G.prototype=new U;X.constructor=G,L(X,tt.prototype),X.isPureReactComponent=!0;var xt=Array.isArray;function I(){}var rt={H:null,A:null,T:null,S:null},ze=Object.prototype.hasOwnProperty;function de(S,k,F){var W=F.ref;return{$$typeof:u,type:S,key:k,ref:W!==void 0?W:null,props:F}}function Jt(S,k){return de(S.type,k,S.props)}function it(S){return typeof S=="object"&&S!==null&&S.$$typeof===u}function he(S){var k={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(F){return k[F]})}var me=/\/+/g;function Wt(S,k){return typeof S=="object"&&S!==null&&S.key!=null?he(""+S.key):k.toString(36)}function $(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(I,I):(S.status="pending",S.then(function(k){S.status==="pending"&&(S.status="fulfilled",S.value=k)},function(k){S.status==="pending"&&(S.status="rejected",S.reason=k)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function et(S,k,F,W,gt){var vt=typeof S;(vt==="undefined"||vt==="boolean")&&(S=null);var bt=!1;if(S===null)bt=!0;else switch(vt){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(S.$$typeof){case u:case c:bt=!0;break;case z:return bt=S._init,et(bt(S._payload),k,F,W,gt)}}if(bt)return gt=gt(S),bt=W===""?"."+Wt(S,0):W,xt(gt)?(F="",bt!=null&&(F=bt.replace(me,"$&/")+"/"),et(gt,k,F,"",function(_l){return _l})):gt!=null&&(it(gt)&&(gt=Jt(gt,F+(gt.key==null||S&&S.key===gt.key?"":(""+gt.key).replace(me,"$&/")+"/")+bt)),k.push(gt)),1;bt=0;var Z=W===""?".":W+":";if(xt(S))for(var nt=0;nt<S.length;nt++)W=S[nt],vt=Z+Wt(W,nt),bt+=et(W,k,F,vt,gt);else if(nt=Y(S),typeof nt=="function")for(S=nt.call(S),nt=0;!(W=S.next()).done;)W=W.value,vt=Z+Wt(W,nt++),bt+=et(W,k,F,vt,gt);else if(vt==="object"){if(typeof S.then=="function")return et($(S),k,F,W,gt);throw k=String(S),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return bt}function lt(S,k,F){if(S==null)return S;var W=[],gt=0;return et(S,W,"","",function(vt){return k.call(F,vt,gt++)}),W}function At(S){if(S._status===-1){var k=S._result,F=k();F.then(function(W){(S._status===0||S._status===-1)&&(S._status=1,S._result=W,F.status===void 0&&(F.status="fulfilled",F.value=W))},function(W){(S._status===0||S._status===-1)&&(S._status=2,S._result=W,F.status===void 0&&(F.status="rejected",F.reason=W))}),S._status===-1&&(S._status=0,S._result=F)}if(S._status===1)return S._result.default;throw S._result}var _t=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)};function Pe(S){var k=rt.T,F={};F.types=k!==null?k.types:null,rt.T=F;try{var W=S(),gt=rt.S;gt!==null&>(F,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(I,_t)}catch(vt){_t(vt)}finally{k!==null&&F.types!==null&&(k.types=F.types),rt.T=k}}function jl(S){var k=rt.T;if(k!==null){var F=k.types;F===null?k.types=[S]:F.indexOf(S)===-1&&F.push(S)}else Pe(jl.bind(null,S))}var Sn={map:lt,forEach:function(S,k,F){lt(S,function(){k.apply(this,arguments)},F)},count:function(S){var k=0;return lt(S,function(){k++}),k},toArray:function(S){return lt(S,function(k){return k})||[]},only:function(S){if(!it(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return at.Activity=y,at.Children=Sn,at.Component=tt,at.Fragment=r,at.Profiler=d,at.PureComponent=G,at.StrictMode=o,at.Suspense=x,at.ViewTransition=R,at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=rt,at.__COMPILER_RUNTIME={__proto__:null,c:function(S){return rt.H.useMemoCache(S)}},at.addTransitionType=jl,at.cache=function(S){return function(){return S.apply(null,arguments)}},at.cacheSignal=function(){return null},at.cloneElement=function(S,k,F){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var W=L({},S.props),gt=S.key;if(k!=null)for(vt in k.key!==void 0&&(gt=""+k.key),k)!ze.call(k,vt)||vt==="key"||vt==="__self"||vt==="__source"||vt==="ref"&&k.ref===void 0||(W[vt]=k[vt]);var vt=arguments.length-2;if(vt===1)W.children=F;else if(1<vt){for(var bt=Array(vt),Z=0;Z<vt;Z++)bt[Z]=arguments[Z+2];W.children=bt}return de(S.type,gt,W)},at.createContext=function(S){return S={$$typeof:m,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:p,_context:S},S},at.createElement=function(S,k,F){var W,gt={},vt=null;if(k!=null)for(W in k.key!==void 0&&(vt=""+k.key),k)ze.call(k,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(gt[W]=k[W]);var bt=arguments.length-2;if(bt===1)gt.children=F;else if(1<bt){for(var Z=Array(bt),nt=0;nt<bt;nt++)Z[nt]=arguments[nt+2];gt.children=Z}if(S&&S.defaultProps)for(W in bt=S.defaultProps,bt)gt[W]===void 0&&(gt[W]=bt[W]);return de(S,vt,gt)},at.createRef=function(){return{current:null}},at.forwardRef=function(S){return{$$typeof:g,render:S}},at.isValidElement=it,at.lazy=function(S){return{$$typeof:z,_payload:{_status:-1,_result:S},_init:At}},at.memo=function(S,k){return{$$typeof:j,type:S,compare:k===void 0?null:k}},at.startTransition=Pe,at.unstable_useCacheRefresh=function(){return rt.H.useCacheRefresh()},at.use=function(S){return rt.H.use(S)},at.useActionState=function(S,k,F){return rt.H.useActionState(S,k,F)},at.useCallback=function(S,k){return rt.H.useCallback(S,k)},at.useContext=function(S){return rt.H.useContext(S)},at.useDebugValue=function(){},at.useDeferredValue=function(S,k){return rt.H.useDeferredValue(S,k)},at.useEffect=function(S,k){return rt.H.useEffect(S,k)},at.useEffectEvent=function(S){return rt.H.useEffectEvent(S)},at.useId=function(){return rt.H.useId()},at.useImperativeHandle=function(S,k,F){return rt.H.useImperativeHandle(S,k,F)},at.useInsertionEffect=function(S,k){return rt.H.useInsertionEffect(S,k)},at.useLayoutEffect=function(S,k){return rt.H.useLayoutEffect(S,k)},at.useMemo=function(S,k){return rt.H.useMemo(S,k)},at.useOptimistic=function(S,k){return rt.H.useOptimistic(S,k)},at.useReducer=function(S,k,F){return rt.H.useReducer(S,k,F)},at.useRef=function(S){return rt.H.useRef(S)},at.useState=function(S){return rt.H.useState(S)},at.useSyncExternalStore=function(S,k,F){return rt.H.useSyncExternalStore(S,k,F)},at.useTransition=function(){return rt.H.useTransition()},at.version="19.3.0",at}var qp;function Po(){return qp||(qp=1,Uo.exports=_x()),Uo.exports}var Ho={exports:{}},oe={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Yp;function Ex(){if(Yp)return oe;Yp=1;var u=Po();function c(z){var y="https://react.dev/errors/"+z;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)y+="&args[]="+encodeURIComponent(arguments[R])}return"Minified React error #"+z+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(c(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal"),p=Symbol.for("react.recoverable"),m=Symbol.for("react.optimistic_key");function g(z,y,R){var H=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:H==null?null:H===m?m:""+H,children:z,containerInfo:y,implementation:R}}var x=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(z,y){if(z==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return oe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,oe.browser=function(z){return{$$typeof:p,_reason:z}},oe.createPortal=function(z,y){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(c(299));return g(z,y,null,R)},oe.flushSync=function(z){var y=x.T,R=o.p;try{if(x.T=null,o.p=2,z)return z()}finally{x.T=y,o.p=R,o.d.f()}},oe.preconnect=function(z,y){typeof z=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(z,y))},oe.prefetchDNS=function(z){typeof z=="string"&&o.d.D(z)},oe.preinit=function(z,y){if(typeof z=="string"&&y&&typeof y.as=="string"){var R=y.as,H=j(R,y.crossOrigin),Y=typeof y.integrity=="string"?y.integrity:void 0,J=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;R==="style"?o.d.S(z,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:H,integrity:Y,fetchPriority:J}):R==="script"&&o.d.X(z,{crossOrigin:H,integrity:Y,fetchPriority:J,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},oe.preinitModule=function(z,y){if(typeof z=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var R=j(y.as,y.crossOrigin);o.d.M(z,{crossOrigin:R,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0})}}else y==null&&o.d.M(z)},oe.preload=function(z,y){if(typeof z=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var R=y.as,H=j(R,y.crossOrigin);o.d.L(z,R,{crossOrigin:H,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},oe.preloadModule=function(z,y){if(typeof z=="string")if(y){var R=j(y.as,y.crossOrigin);o.d.m(z,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:R,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0})}else o.d.m(z)},oe.requestFormReset=function(z){o.d.r(z)},oe.unstable_batchedUpdates=function(z,y){return z(y)},oe.useFormState=function(z,y,R){return x.H.useFormState(z,y,R)},oe.useFormStatus=function(){return x.H.useHostTransitionStatus()},oe.version="19.3.0",oe}var $p;function Tx(){if($p)return Ho.exports;$p=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),Ho.exports=Ex(),Ho.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Vp;function Nx(){if(Vp)return Yi;Vp=1;var u=jx(),c=Po(),r=Tx();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function p(t){for(var e=t,l=e;l&&!l.alternate;)e=l,(e.flags&4098)!==0&&(t=e.return),l=e.return;for(;e.return;)e=e.return;return e.tag===3?t:null}function m(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function x(t){if(p(t)!==t)throw Error(o(188))}function j(t){var e=t.alternate;if(!e){if(e=p(t),e===null)throw Error(o(188));return e!==t?null:t}for(var l=t,n=e;;){var a=l.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===l)return x(a),t;if(i===n)return x(a),e;i=i.sibling}throw Error(o(188))}if(l.return!==n.return)l=a,n=i;else{for(var f=!1,h=a.child;h;){if(h===l){f=!0,l=a,n=i;break}if(h===n){f=!0,n=a,l=i;break}h=h.sibling}if(!f){for(h=i.child;h;){if(h===l){f=!0,l=i,n=a;break}if(h===n){f=!0,n=i,l=a;break}h=h.sibling}if(!f)throw Error(o(189))}}if(l.alternate!==n)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?t:e}function z(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=z(t),e!==null)return e;t=t.sibling}return null}function y(t,e,l,n,a,i){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&l(t,n,a,i)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&y(t.child,e,l,n,a,i))return!0;t=t.sibling}return!1}function R(t){for(t=t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t;t=t.return}return null}function H(t){var e=!1;for(t=t.return;t!==null&&(t.tag===4&&(e=!0),!(t.tag===3||t.tag===5||t.tag===27));)t=t.return;return e}function Y(t){var e=[null,null],l=R(t);return l===null||J(e,t,l.child,{foundSelf:!1}),e}function J(t,e,l,n){for(;l!==null;){if(l===e)n.foundSelf=!0;else if(l.tag===5||l.tag===27||l.tag===6){if(n.foundSelf)return t[1]=l,!0;t[0]=l}else if((l.tag!==22||l.memoizedState===null)&&J(t,e,l.child,n))return!0;l=l.sibling}return!1}function L(t){switch(t.tag){case 5:case 27:case 6:return t.stateNode;case 3:return t.stateNode.containerInfo;default:throw Error(o(559))}}var B=null,tt=null;function U(t,e,l){return t===l?!0:t===e?(B=t,!0):!1}function G(t,e,l){return t===l?(tt=t,!1):t===e?(tt!==null&&(B=t),!0):!1}function X(t){if(t===null)return null;do t=t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t||null}function xt(t,e,l){for(var n=0,a=t;a;a=l(a))n++;a=0;for(var i=e;i;i=l(i))a++;for(;0<n-a;)t=l(t),n--;for(;0<a-n;)e=l(e),a--;for(;n--;){if(t===e||e!==null&&t===e.alternate)return t;t=l(t),e=l(e)}return null}var I=Object.assign,rt=Symbol.for("react.element"),ze=Symbol.for("react.transitional.element"),de=Symbol.for("react.portal"),Jt=Symbol.for("react.fragment"),it=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),me=Symbol.for("react.consumer"),Wt=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),et=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),At=Symbol.for("react.memo"),_t=Symbol.for("react.lazy"),Pe=Symbol.for("react.activity"),jl=Symbol.for("react.legacy_hidden"),Sn=Symbol.for("react.memo_cache_sentinel"),S=Symbol.for("react.view_transition"),k=Symbol.for("react.recoverable"),F=Symbol.iterator;function W(t){return t===null||typeof t!="object"?null:(t=F&&t[F]||t["@@iterator"],typeof t=="function"?t:null)}var gt=Symbol.for("react.client.reference");function vt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===gt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Jt:return"Fragment";case he:return"Profiler";case it:return"StrictMode";case et:return"Suspense";case lt:return"SuspenseList";case Pe:return"Activity";case S:return"ViewTransition"}if(typeof t=="object")switch(t.$$typeof){case de:return"Portal";case Wt:return t.displayName||"Context";case me:return(t._context.displayName||"Context")+".Consumer";case $:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case At:return e=t.displayName||null,e!==null?e:vt(t.type)||"Memo";case _t:e=t._payload,t=t._init;try{return vt(t(e))}catch{}}return null}var bt=Array.isArray,Z=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_l={pending:!1,data:null,method:null,action:null},Js=[],Kn=-1;function sl(t){return{current:t}}function ne(t){0>Kn||(t.current=Js[Kn],Js[Kn]=null,Kn--)}function wt(t,e){Kn++,Js[Kn]=t.current,t.current=e}var cl=sl(null),Xa=sl(null),$l=sl(null),tu=sl(null);function eu(t,e){switch(wt($l,e),wt(Xa,t),wt(cl,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Gm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Gm(e),t=Qm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}ne(cl),wt(cl,t)}function Jn(){ne(cl),ne(Xa),ne($l)}function Is(t){var e=t.memoizedState;e!==null&&(Ha._currentValue=e.memoizedState,wt(tu,t)),e=cl.current;var l=Qm(e,t.type);e!==l&&(wt(Xa,t),wt(cl,l))}function lu(t){Xa.current===t&&(ne(cl),ne(Xa)),tu.current===t&&(ne(tu),Ha._currentValue=_l)}var Fs,ff;function Vl(t){if(Fs===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Fs=e&&e[1]||"",ff=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Fs+t+ff}var Ws=!1;function Ps(t,e){if(!t||Ws)return"";Ws=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(q){var _=q}Reflect.construct(t,[],w)}else{try{w.call()}catch(q){_=q}w=!1;try{var O=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),w=!0,new t}finally{w&&(O!==void 0?Object.defineProperty(t.prototype,"props",O):delete t.prototype.props)}}}else{try{throw Error()}catch(q){_=q}(w=t())&&typeof w.catch=="function"&&w.catch(function(){})}}catch(q){if(q&&_&&typeof q.stack=="string")return[q.stack,_.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),f=i[0],h=i[1];if(f&&h){var v=f.split(`
|
|
44
|
-
`),T=h.split(`
|
|
45
|
-
`);for(a=n=0;n<v.length&&!v[n].includes("DetermineComponentFrameRoot");)n++;for(;a<T.length&&!T[a].includes("DetermineComponentFrameRoot");)a++;if(n===v.length||a===T.length)for(n=v.length-1,a=T.length-1;1<=n&&0<=a&&v[n]!==T[a];)a--;for(;1<=n&&0<=a;n--,a--)if(v[n]!==T[a]){if(n!==1||a!==1)do if(n--,a--,0>a||v[n]!==T[a]){var A=`
|
|
46
|
-
`+v[n].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=n&&0<=a);break}}}finally{Ws=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Vl(l):""}function _v(t,e){switch(t.tag){case 26:case 27:case 5:return Vl(t.type);case 16:return Vl("Lazy");case 13:return t.child!==e&&e!==null?Vl("Suspense Fallback"):Vl("Suspense");case 19:return Vl("SuspenseList");case 0:case 15:return Ps(t.type,!1);case 11:return Ps(t.type.render,!1);case 1:return Ps(t.type,!0);case 31:return Vl("Activity");case 30:return Vl("ViewTransition");default:return""}}function df(t){try{var e="",l=null;do e+=_v(t,l),l=t,t=t.return;while(t);return e}catch(n){return`
|
|
47
|
-
Error generating stack: `+n.message+`
|
|
48
|
-
`+n.stack}}var tc=Object.prototype.hasOwnProperty,ec=u.unstable_scheduleCallback,lc=u.unstable_cancelCallback,Ev=u.unstable_shouldYield,Tv=u.unstable_requestPaint,Re=u.unstable_now,Nv=u.unstable_getCurrentPriorityLevel,hf=u.unstable_ImmediatePriority,mf=u.unstable_UserBlockingPriority,nu=u.unstable_NormalPriority,zv=u.unstable_LowPriority,pf=u.unstable_IdlePriority,Rv=u.log,Cv=u.unstable_setDisableYieldValue,Za=null,Ce=null;function Gl(t){if(typeof Rv=="function"&&Cv(t),Ce&&typeof Ce.setStrictMode=="function")try{Ce.setStrictMode(Za,t)}catch{}}var Oe=Math.clz32?Math.clz32:Dv,Ov=Math.log,Av=Math.LN2;function Dv(t){return t>>>=0,t===0?32:31-(Ov(t)/Av|0)|0}var au=256,iu=262144,uu=4194304;function jn(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&-t;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function su(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var a=0,i=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var h=n&134217727;return h!==0?(n=h&~i,n!==0?a=jn(n):(f&=h,f!==0?a=jn(f):l||(l=h&~t,l!==0&&(a=jn(l))))):(h=n&~i,h!==0?a=jn(h):f!==0?a=jn(f):l||(l=n&~t,l!==0&&(a=jn(l)))),a===0?0:e!==0&&e!==a&&(e&i)===0&&(i=a&-a,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:a}function Ka(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function gf(t,e){(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var n=31-Oe(l),a=1<<n;e|=t[n],l&=~a}return e}function wv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 vf(){var t=uu;return uu<<=1,(uu&62914560)===0&&(uu=4194304),t}function nc(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Ja(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Mv(t,e,l,n,a,i){var f=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var h=t.entanglements,v=t.expirationTimes,T=t.hiddenUpdates;for(l=f&~l;0<l;){var A=31-Oe(l),w=1<<A;h[A]=0,v[A]=-1;var _=T[A];if(_!==null)for(T[A]=null,A=0;A<_.length;A++){var O=_[A];O!==null&&(O.lane&=-536870913)}l&=~w}n!==0&&yf(t,n,0),i!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=i&~(f&~e))}function yf(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-Oe(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930}function xf(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-Oe(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a}}function bf(t,e){var l=e&-e;return l=(l&42)!==0?1:ac(l),(l&(t.suspendedLanes|e))!==0?0:l}function ac(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ic(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Sf(){var t=nt.p;return t!==0?t:(t=window.event,t===void 0?32:Rp(t.type))}function jf(t,e){var l=nt.p;try{return nt.p=t,e()}finally{nt.p=l}}var El=Math.random().toString(36).slice(2),ae="__reactFiber$"+El,Se="__reactProps$"+El,In="__reactContainer$"+El,_f="__reactEvents$"+El,Uv="__reactListeners$"+El,Hv="__reactHandles$"+El,Ef="__reactResources$"+El,Ia="__reactMarker$"+El,cu="__reactLoad$"+El;function ru(t){delete t[ae],delete t[Se],delete t[Uv],delete t[Hv]}function _n(t){var e;if(e=t[ae])return e;for(var l=t.parentNode;l;){if(e=l[In]||l[ae]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=cp(t);t!==null;){if(l=t[ae])return l;t=cp(t)}return e}t=l,l=t.parentNode}return null}function Fn(t){if(t=t[ae]||t[In]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Fa(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Wn(t){var e=t[Ef];return e||(e=t[Ef]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Pt(t){t[Ia]=!0}function Tf(t){t[cu]=void 0}var Nf=new Set,zf={};function En(t,e){Pn(t,e),Pn(t+"Capture",e)}function Pn(t,e){for(zf[t]=e,t=0;t<e.length;t++)Nf.add(e[t])}var kv=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]*$"),Rf={},Cf={};function Bv(t){return tc.call(Cf,t)?!0:tc.call(Rf,t)?!1:kv.test(t)?Cf[t]=!0:(Rf[t]=!0,!1)}var yt=!1;function Of(){var t=yt;return yt=!1,t}function ou(t,e,l){if(Bv(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,l)}}function fu(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,l)}}function Tl(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,n)}}function Ae(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Af(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Lv(t,e,l){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(f){l=""+f,i.call(this,f)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function uc(t){if(!t._valueTracker){var e=Af(t)?"checked":"value";t._valueTracker=Lv(t,e,""+t[e])}}function Df(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=Af(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}var qv=/[\n"\\]/g;function Ve(t){return t.replace(qv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function sc(t,e,l,n,a,i,f,h){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ae(e)):t.value!==""+Ae(e)&&(t.value=""+Ae(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?f==="number"&&t.value==e?cc(t,Ae(t.value)):cc(t,Ae(e)):l!=null?cc(t,Ae(l)):n!=null&&t.removeAttribute("value"),a==null&&i!=null&&(t.defaultChecked=!!i),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+Ae(h):t.removeAttribute("name")}function wf(t,e,l,n,a,i,f,h){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){uc(t);return}l=l!=null?""+Ae(l):"",e=e!=null?""+Ae(e):l,h||e===t.value||(t.value=e),t.defaultValue=e}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=h?t.checked:!!n,t.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),uc(t)}function cc(t,e){t.defaultValue!==""+e&&(t.defaultValue=""+e)}function ta(t,e,l,n){if(t=t.options,e){e={};for(var a=0;a<l.length;a++)e["$"+l[a]]=!0;for(l=0;l<t.length;l++)a=e.hasOwnProperty("$"+t[l].value),t[l].selected!==a&&(t[l].selected=a),a&&n&&(t[l].defaultSelected=!0)}else{for(l=""+Ae(l),e=null,a=0;a<t.length;a++){if(t[a].value===l){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function Mf(t,e,l){if(e!=null&&(e=""+Ae(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Ae(l):""}function Uf(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(o(92));if(bt(n)){if(1<n.length)throw Error(o(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=Ae(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),uc(t)}function ea(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Yv=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 Hf(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||Yv.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function kf(t,e,l){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="",yt=!0);for(var a in e)n=e[a],e.hasOwnProperty(a)&&l[a]!==n&&(Hf(t,a,n),yt=!0)}else for(var i in e)e.hasOwnProperty(i)&&Hf(t,i,e[i])}function rc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 $v=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"],["maskType","mask-type"],["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"]]),Vv=/^[\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 du(t){return Vv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function rl(){}var oc=null;function fc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var la=null,na=null;function Bf(t){var e=Fn(t);if(e&&(t=e.stateNode)){var l=t[Se]||null;t:switch(t=e.stateNode,e.type){case"input":if(sc(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ve(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[Se]||null;if(!a)throw Error(o(90));sc(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&Df(n)}break t;case"textarea":Mf(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&ta(t,!!l.multiple,e,!1)}}}var dc=!1;function Lf(t,e,l){if(dc)return t(e,l);dc=!0;try{var n=t(e);return n}finally{if(dc=!1,(la!==null||na!==null)&&(ds(),la&&(e=la,t=na,na=la=null,Bf(e),t)))for(e=0;e<t.length;e++)Bf(t[e])}}function Wa(t,e){var l=t.stateNode;if(l===null)return null;var n=l[Se]||null;if(n===null)return null;l=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(o(231,e,typeof l));return l}var Nl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=!1;if(Nl)try{var Pa={};Object.defineProperty(Pa,"passive",{get:function(){hc=!0}}),window.addEventListener("test",Pa,Pa),window.removeEventListener("test",Pa,Pa)}catch{hc=!1}var Ql=null,mc=null,hu=null;function qf(){if(hu)return hu;var t,e=mc,l=e.length,n,a="value"in Ql?Ql.value:Ql.textContent,i=a.length;for(t=0;t<l&&e[t]===a[t];t++);var f=l-t;for(n=1;n<=f&&e[l-n]===a[i-n];n++);return hu=a.slice(t,1<n?1-n:void 0)}function mu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function pu(){return!0}function Yf(){return!1}function ge(t){function e(l,n,a,i,f){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=f,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(l=t[h],this[h]=l?l(i):i[h]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?pu:Yf,this.isPropagationStopped=Yf,this}return I(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=pu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=pu)},persist:function(){},isPersistent:pu}),e}var Xl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gu=ge(Xl),ti=I({},Xl,{view:0,detail:0}),Gv=ge(ti),pc,gc,ei,vu=I({},ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ei&&(ei&&t.type==="mousemove"?(pc=t.screenX-ei.screenX,gc=t.screenY-ei.screenY):gc=pc=0,ei=t),pc)},movementY:function(t){return"movementY"in t?t.movementY:gc}}),$f=ge(vu),Qv=I({},vu,{dataTransfer:0}),Xv=ge(Qv),Zv=I({},ti,{relatedTarget:0}),vc=ge(Zv),Kv=I({},Xl,{animationName:0,elapsedTime:0,pseudoElement:0}),Jv=ge(Kv),Iv=I({},Xl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Fv=ge(Iv),Wv=I({},Xl,{data:0}),Vf=ge(Wv),Pv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t0={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"},e0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function l0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=e0[t])?!!e[t]:!1}function yc(){return l0}var n0=I({},ti,{key:function(t){if(t.key){var e=Pv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=mu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?t0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yc,charCode:function(t){return t.type==="keypress"?mu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?mu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),a0=ge(n0),i0=I({},vu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gf=ge(i0),u0=I({},Xl,{submitter:0}),s0=ge(u0),c0=I({},ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yc}),r0=ge(c0),o0=I({},Xl,{propertyName:0,elapsedTime:0,pseudoElement:0}),f0=ge(o0),d0=I({},vu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),h0=ge(d0),m0=I({},Xl,{newState:0,oldState:0,source:0}),p0=ge(m0),g0=[9,13,27,32],xc=Nl&&"CompositionEvent"in window,li=null;Nl&&"documentMode"in document&&(li=document.documentMode);var v0=Nl&&"TextEvent"in window&&!li,Qf=Nl&&(!xc||li&&8<li&&11>=li),Xf=" ",Zf=!1;function Kf(t,e){switch(t){case"keyup":return g0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var aa=!1;function y0(t,e){switch(t){case"compositionend":return Jf(e);case"keypress":return e.which!==32?null:(Zf=!0,Xf);case"textInput":return t=e.data,t===Xf&&Zf?null:t;default:return null}}function x0(t,e){if(aa)return t==="compositionend"||!xc&&Kf(t,e)?(t=qf(),hu=mc=Ql=null,aa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Qf&&e.locale!=="ko"?null:e.data;default:return null}}var b0={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 If(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!b0[t.type]:e==="textarea"}function Ff(t,e,l,n){la?na?na.push(n):na=[n]:la=n,e=ys(e,"onChange"),0<e.length&&(l=new gu("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var ni=null,ai=null;function S0(t){Bm(t,0)}function yu(t){var e=Fa(t);if(Df(e))return t}function Wf(t,e){if(t==="change")return e}var Pf=!1;if(Nl){var bc;if(Nl){var Sc="oninput"in document;if(!Sc){var td=document.createElement("div");td.setAttribute("oninput","return;"),Sc=typeof td.oninput=="function"}bc=Sc}else bc=!1;Pf=bc&&(!document.documentMode||9<document.documentMode)}function ed(){ni&&(ni.detachEvent("onpropertychange",ld),ai=ni=null)}function ld(t){if(t.propertyName==="value"&&yu(ai)){var e=[];Ff(e,ai,t,fc(t)),Lf(S0,e)}}function j0(t,e,l){t==="focusin"?(ed(),ni=e,ai=l,ni.attachEvent("onpropertychange",ld)):t==="focusout"&&ed()}function _0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return yu(ai)}function E0(t,e){if(t==="click")return yu(e)}function T0(t,e){if(t==="input"||t==="change")return yu(e)}function N0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var De=typeof Object.is=="function"?Object.is:N0;function ii(t,e){if(De(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!tc.call(e,a)||!De(t[a],e[a]))return!1}return!0}function jc(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function nd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ad(t,e){var l=nd(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=nd(l)}}function id(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?id(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ud(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=jc(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=jc(t.document)}return e}function _c(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var z0=Nl&&"documentMode"in document&&11>=document.documentMode,ia=null,Ec=null,ui=null,Tc=!1;function sd(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Tc||ia==null||ia!==jc(n)||(n=ia,"selectionStart"in n&&_c(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ui&&ii(ui,n)||(ui=n,n=ys(Ec,"onSelect"),0<n.length&&(e=new gu("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=ia)))}function Tn(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var ua={animationend:Tn("Animation","AnimationEnd"),animationiteration:Tn("Animation","AnimationIteration"),animationstart:Tn("Animation","AnimationStart"),transitionrun:Tn("Transition","TransitionRun"),transitionstart:Tn("Transition","TransitionStart"),transitioncancel:Tn("Transition","TransitionCancel"),transitionend:Tn("Transition","TransitionEnd")},Nc={},cd={};Nl&&(cd=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 Nn(t){if(Nc[t])return Nc[t];if(!ua[t])return t;var e=ua[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in cd)return Nc[t]=e[l];return t}var rd=Nn("animationend"),od=Nn("animationiteration"),fd=Nn("animationstart"),R0=Nn("transitionrun"),C0=Nn("transitionstart"),O0=Nn("transitioncancel"),dd=Nn("transitionend"),hd=new Map,zc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");zc.push("scrollEnd");function tl(t,e){hd.set(t,e),En(e,[t])}var A0=0;function zl(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=al.identifierPrefix;var l=A0++;return t="_"+t+"t_"+l.toString(32)+"_",e.autoName=t}function md(t){if(t==null||typeof t=="string")return t;var e=null,l=Na;if(l!==null)for(var n=0;n<l.length;n++){var a=t[l[n]];if(a!=null){if(a==="none")return"none";e=e==null?a:e+(" "+a)}}return e??t.default}function Rl(t,e){return t=md(t),e=md(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var xu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ge=[],sa=0,Rc=0;function bu(){for(var t=sa,e=Rc=sa=0;e<t;){var l=Ge[e];Ge[e++]=null;var n=Ge[e];Ge[e++]=null;var a=Ge[e];Ge[e++]=null;var i=Ge[e];if(Ge[e++]=null,n!==null&&a!==null){var f=n.pending;f===null?a.next=a:(a.next=f.next,f.next=a),n.pending=a}i!==0&&pd(l,a,i)}}function Su(t,e,l,n){Ge[sa++]=t,Ge[sa++]=e,Ge[sa++]=l,Ge[sa++]=n,Rc|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function Cc(t,e,l,n){return Su(t,e,l,n),ju(t)}function zn(t,e){return Su(t,null,null,e),ju(t)}function pd(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var a=!1,i=t.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(a=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,a&&e!==null&&(a=31-Oe(l),t=i.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),i):null}function ju(t){if(50<Ri)throw Ri=0,fs=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ca={};function D0(t,e,l,n){this.tag=t,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=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function je(t,e,l,n){return new D0(t,e,l,n)}function Oc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Cl(t,e){var l=t.alternate;return l===null?(l=je(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&1206910976,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function gd(t,e){t.flags&=1206910978;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function _u(t,e,l,n,a,i){var f=0;if(n=t,typeof n=="function")Oc(n)&&(f=1);else if(typeof n=="string")f=ux(t,l,cl.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(n){case Pe:return t=je(31,l,e,a),t.elementType=Pe,t.lanes=i,t;case Jt:return Rn(l.children,a,i,e);case it:f=8,a|=24;break;case he:return t=je(12,l,e,a|2),t.elementType=he,t.lanes=i,t;case et:return t=je(13,l,e,a),t.elementType=et,t.lanes=i,t;case lt:return t=je(19,l,e,a),t.elementType=lt,t.lanes=i,t;case jl:case S:return t=a|32,t=je(30,l,e,t),t.elementType=S,t.lanes=i,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case Wt:f=10;break t;case me:f=9;break t;case $:f=11;break t;case At:f=14;break t;case _t:f=16,n=null;break t}f=29,l=Error(o(130,t===null?"null":typeof t,"")),n=null}return e=je(f,l,e,a),e.elementType=t,e.type=n,e.lanes=i,e}function Rn(t,e,l,n){return t=je(7,t,n,e),t.lanes=l,t}function Ac(t,e,l){return t=je(6,t,null,e),t.lanes=l,t}function vd(t){var e=je(18,null,null,0);return e.stateNode=t,e}function Dc(t,e,l){return e=je(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var yd=new WeakMap;function Qe(t,e){if(typeof t=="object"&&t!==null){var l=yd.get(t);return l!==void 0?l:(e={value:t,source:e,stack:df(e)},yd.set(t,e),e)}return{value:t,source:e,stack:df(e)}}var ra=[],oa=0,Eu=null,si=0,Xe=[],Ze=0,Zl=null,ol=1,fl="";function Ol(t,e){ra[oa++]=si,ra[oa++]=Eu,Eu=t,si=e}function xd(t,e,l){Xe[Ze++]=ol,Xe[Ze++]=fl,Xe[Ze++]=Zl,Zl=t;var n=ol;t=fl;var a=32-Oe(n)-1;n&=~(1<<a),l+=1;var i=32-Oe(e)+a;if(30<i){var f=a-a%5;i=(n&(1<<f)-1).toString(32),n>>=f,a-=f,ol=1<<32-Oe(e)+a|l<<a|n,fl=i+t}else ol=1<<i|l<<a|n,fl=t}function Tu(t){t.return!==null&&(Ol(t,1),xd(t,1,0))}function wc(t){for(;t===Eu;)Eu=ra[--oa],ra[oa]=null,si=ra[--oa],ra[oa]=null;for(;t===Zl;)Zl=Xe[--Ze],Xe[Ze]=null,fl=Xe[--Ze],Xe[Ze]=null,ol=Xe[--Ze],Xe[Ze]=null}function bd(t,e){Xe[Ze++]=ol,Xe[Ze++]=fl,Xe[Ze++]=Zl,ol=e.id,fl=e.overflow,Zl=t}var te=null,Mt=null,ct=!1,Kl=null,Ke=!1,Mc=Error(o(519));function Jl(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ci(Qe(e,t)),Mc}function Sd(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[ae]=t,e[Se]=n,l){case"dialog":ft("cancel",e),ft("close",e);break;case"iframe":case"object":case"embed":ft("load",e);break;case"video":case"audio":for(l=0;l<Oi.length;l++)ft(Oi[l],e);break;case"source":ft("error",e);break;case"img":case"image":case"link":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"input":ft("invalid",e),wf(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ft("invalid",e);break;case"textarea":ft("invalid",e),Uf(e,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||$m(e.textContent,l)?(n.popover!=null&&(ft("beforetoggle",e),ft("toggle",e)),n.onScroll!=null&&ft("scroll",e),n.onScrollEnd!=null&&ft("scrollend",e),n.onClick!=null&&(e.onclick=rl),e=!0):e=!1,e||Jl(t,!0)}function Nu(t){for(te=t.return;te;)switch(te.tag){case 5:case 31:case 13:Ke=!1;return;case 27:case 3:Ke=!0;return;default:te=te.return}}function fa(t){if(t!==te)return!1;if(!ct)return Nu(t),ct=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||oo(t.type,t.memoizedProps)),l=!l),l&&Mt&&Jl(t),Nu(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Mt=sp(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Mt=sp(t)}else e===27?(e=Mt,dn(t.type)?(t=bo,bo=null,Mt=t):Mt=e):Mt=te?Ie(t.stateNode.nextSibling):null;return!0}function Cn(){Mt=te=null,ct=!1}function Uc(){var t=Kl;return t!==null&&(Te===null?Te=t:Te.push.apply(Te,t),Kl=null),t}function ci(t){Kl===null?Kl=[t]:Kl.push(t)}var Hc=sl(null),On=null,Al=null;function Il(t,e,l){wt(Hc,e._currentValue),e._currentValue=l}function Dl(t){t._currentValue=Hc.current,ne(Hc)}function zu(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function kc(t,e,l,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){var f=a.child;i=i.firstContext;t:for(;i!==null;){var h=i;i=a;for(var v=0;v<e.length;v++)if(h.context===e[v]){i.lanes|=l,h=i.alternate,h!==null&&(h.lanes|=l),zu(i.return,l,t),n||(f=null);break t}i=h.next}}else if(a.tag===18){if(f=a.return,f===null)throw Error(o(341));f.lanes|=l,i=f.alternate,i!==null&&(i.lanes|=l),zu(f,l,t),f=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=l,f=a.alternate,f!==null&&(f.lanes|=l),zu(a.return,l,t),f=a.child,f=f!==null?f.sibling:null):f=a.child;if(f!==null)f.return=a;else for(f=a;f!==null;){if(f===t){f=null;break}if(a=f.sibling,a!==null){a.return=f.return,f=a;break}f=f.return}a=f}}function An(t,e,l,n){t=null;for(var a=e,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var f=a.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var h=a.type;De(a.pendingProps.value,f.value)||(t!==null?t.push(h):t=[h])}}else if(a===tu.current){if(f=a.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Ha):t=[Ha])}a=a.return}return t!==null&&kc(e,t,l,n),e.flags|=262144,t!==null}function Ru(t){for(t=t.firstContext;t!==null;){if(!De(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Dn(t){On=t,Al=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ie(t){return jd(On,t)}function Cu(t,e){return On===null&&Dn(t),jd(t,e)}function jd(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Al===null){if(t===null)throw Error(o(308));Al=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Al=Al.next=e;return l}var w0=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},M0=u.unstable_scheduleCallback,U0=u.unstable_NormalPriority,Qt={$$typeof:Wt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bc(){return{controller:new w0,data:new Map,refCount:0}}function ri(t){t.refCount--,t.refCount===0&&M0(U0,function(){t.controller.abort()})}function _d(t,e){if((t.pendingLanes&4194048)!==0){var l=t.transitionTypes;for(l===null&&(l=t.transitionTypes=[]),t=0;t<e.length;t++){var n=e[t];l.indexOf(n)===-1&&l.push(n)}}}var oi=null;function H0(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var fi=null,Lc=0,wn=0,da=null;function k0(t,e){if(fi===null){var l=fi=[];Lc=0,wn=eo(),da={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Lc++,e.then(Ed,Ed),e}function Ed(){if(--Lc===0&&(oi=null,fi!==null)){da!==null&&(da.status="fulfilled");var t=fi;fi=null,wn=0,da=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function B0(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var a=0;a<l.length;a++)(0,l[a])(e)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Td=Z.S;Z.S=function(t,e){if(vm=Re(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&k0(t,e),oi!==null)for(var l=Oa;l!==null;)_d(l,oi),l=l.next;if(l=t.types,l!==null){for(var n=Oa;n!==null;)_d(n,l),n=n.next;if(wn!==0){n=oi,n===null&&(n=oi=[]);for(var a=0;a<l.length;a++){var i=l[a];n.indexOf(i)===-1&&n.push(i)}}}Td!==null&&Td(t,e)};var Mn=sl(null);function qc(){var t=Mn.current;return t!==null?t:Dt.pooledCache}function Ou(t,e){e===null?wt(Mn,Mn.current):wt(Mn,e.pool)}function Nd(){var t=qc();return t===null?null:{parent:Qt._currentValue,pool:t}}var ha=Error(o(460)),Yc=Error(o(474)),Au=Error(o(542)),Du={then:function(){}};function zd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Rd(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(rl,rl),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Od(t),t===void 0&&!("reason"in e)?Error(o(600)):t;default:if(typeof e.status=="string")e.then(rl,rl);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=n}},function(n){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Od(t),t}throw Hn=e,ha}}function Un(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Hn=l,ha):l}}var Hn=null;function Cd(){if(Hn===null)throw Error(o(459));var t=Hn;return Hn=null,t}function Od(t){if(t===ha||t===Au)throw Error(o(483))}var ma=null,di=0;function wu(t){var e=di;return di+=1,ma===null&&(ma=[]),Rd(ma,t,e)}function Fl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Mu(t,e){throw e.$$typeof===rt?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Ad(t){function e(E,b){if(t){var C=E.deletions;C===null?(E.deletions=[b],E.flags|=16):C.push(b)}}function l(E,b){if(!t)return null;for(;b!==null;)e(E,b),b=b.sibling;return null}function n(E){for(var b=new Map;E!==null;)E.key===null?b.set(E.index,E):b.set(E.key,E),E=E.sibling;return b}function a(E,b){return E=Cl(E,b),E.index=0,E.sibling=null,E}function i(E,b,C){return E.index=C,t?(C=E.alternate,C!==null?(C=C.index,C<b?(E.flags|=2,b):C):(E.flags|=134217730,b)):(E.flags|=1048576,b)}function f(E){return t&&E.alternate===null&&(E.flags|=134217730),E}function h(E,b,C,D){return b===null||b.tag!==6?(b=Ac(C,E.mode,D),b.return=E,b):(b=a(b,C),b.return=E,b)}function v(E,b,C,D){var V=C.type;return V===Jt?(E=A(E,b,C.props.children,D,C.key),Fl(E,C),E):b!==null&&(b.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===_t&&Un(V)===b.type)?(b=a(b,C.props),Fl(b,C),b.return=E,b):(b=_u(C.type,C.key,C.props,null,E.mode,D),Fl(b,C),b.return=E,b)}function T(E,b,C,D){return b===null||b.tag!==4||b.stateNode.containerInfo!==C.containerInfo||b.stateNode.implementation!==C.implementation?(b=Dc(C,E.mode,D),b.return=E,b):(b=a(b,C.children||[]),b.return=E,b)}function A(E,b,C,D,V){return b===null||b.tag!==7?(b=Rn(C,E.mode,D,V),b.return=E,b):(b=a(b,C),b.return=E,b)}function w(E,b,C){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Ac(""+b,E.mode,C),b.return=E,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ze:return C=_u(b.type,b.key,b.props,null,E.mode,C),Fl(C,b),C.return=E,C;case de:return b=Dc(b,E.mode,C),b.return=E,b;case _t:return b=Un(b),w(E,b,C)}if(bt(b)||W(b))return b=Rn(b,E.mode,C,null),b.return=E,b;if(typeof b.then=="function")return w(E,wu(b),C);if(b.$$typeof===Wt)return w(E,Cu(E,b),C);Mu(E,b)}return null}function _(E,b,C,D){var V=b!==null?b.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return V!==null?null:h(E,b,""+C,D);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case ze:return C.key===V?v(E,b,C,D):null;case de:return C.key===V?T(E,b,C,D):null;case _t:return C=Un(C),_(E,b,C,D)}if(bt(C)||W(C))return V!==null?null:A(E,b,C,D,null);if(typeof C.then=="function")return _(E,b,wu(C),D);if(C.$$typeof===Wt)return _(E,b,Cu(E,C),D);Mu(E,C)}return null}function O(E,b,C,D,V){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return E=E.get(C)||null,h(b,E,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case ze:return E=E.get(D.key===null?C:D.key)||null,v(b,E,D,V);case de:return E=E.get(D.key===null?C:D.key)||null,T(b,E,D,V);case _t:return D=Un(D),O(E,b,C,D,V)}if(bt(D)||W(D))return E=E.get(C)||null,A(b,E,D,V,null);if(typeof D.then=="function")return O(E,b,C,wu(D),V);if(D.$$typeof===Wt)return O(E,b,C,Cu(b,D),V);Mu(b,D)}return null}function q(E,b,C,D){for(var V=null,ht=null,K=b,P=b=0,Kt=null;K!==null&&P<C.length;P++){K.index>P?(Kt=K,K=null):Kt=K.sibling;var pt=_(E,K,C[P],D);if(pt===null){K===null&&(K=Kt);break}t&&K&&pt.alternate===null&&e(E,K),b=i(pt,b,P),ht===null?V=pt:ht.sibling=pt,ht=pt,K=Kt}if(P===C.length)return l(E,K),ct&&Ol(E,P),V;if(K===null){for(;P<C.length;P++)K=w(E,C[P],D),K!==null&&(b=i(K,b,P),ht===null?V=K:ht.sibling=K,ht=K);return ct&&Ol(E,P),V}for(K=n(K);P<C.length;P++)Kt=O(K,E,P,C[P],D),Kt!==null&&(t&&(pt=Kt.alternate,pt!==null&&K.delete(pt.key===null?P:pt.key)),b=i(Kt,b,P),ht===null?V=Kt:ht.sibling=Kt,ht=Kt);return t&&K.forEach(function(vn){return e(E,vn)}),ct&&Ol(E,P),V}function Q(E,b,C,D){if(C==null)throw Error(o(151));for(var V=null,ht=null,K=b,P=b=0,Kt=null,pt=C.next();K!==null&&!pt.done;P++,pt=C.next()){K.index>P?(Kt=K,K=null):Kt=K.sibling;var vn=_(E,K,pt.value,D);if(vn===null){K===null&&(K=Kt);break}t&&K&&vn.alternate===null&&e(E,K),b=i(vn,b,P),ht===null?V=vn:ht.sibling=vn,ht=vn,K=Kt}if(pt.done)return l(E,K),ct&&Ol(E,P),V;if(K===null){for(;!pt.done;P++,pt=C.next())pt=w(E,pt.value,D),pt!==null&&(b=i(pt,b,P),ht===null?V=pt:ht.sibling=pt,ht=pt);return ct&&Ol(E,P),V}for(K=n(K);!pt.done;P++,pt=C.next())pt=O(K,E,P,pt.value,D),pt!==null&&(t&&(Kt=pt.alternate,Kt!==null&&K.delete(Kt.key===null?P:Kt.key)),b=i(pt,b,P),ht===null?V=pt:ht.sibling=pt,ht=pt);return t&&K.forEach(function(yx){return e(E,yx)}),ct&&Ol(E,P),V}function st(E,b,C,D){if(typeof C=="object"&&C!==null&&C.type===Jt&&C.key===null&&C.props.ref===void 0&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case ze:t:{for(var V=C.key;b!==null;){if(b.key===V){if(V=C.type,V===Jt){if(b.tag===7){l(E,b.sibling),D=a(b,C.props.children),Fl(D,C),D.return=E,E=D;break t}}else if(b.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===_t&&Un(V)===b.type){l(E,b.sibling),D=a(b,C.props),Fl(D,C),D.return=E,E=D;break t}l(E,b);break}else e(E,b);b=b.sibling}C.type===Jt?(D=Rn(C.props.children,E.mode,D,C.key),Fl(D,C),D.return=E,E=D):(D=_u(C.type,C.key,C.props,null,E.mode,D),Fl(D,C),D.return=E,E=D)}return f(E);case de:t:{for(V=C.key;b!==null;){if(b.key===V)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){l(E,b.sibling),D=a(b,C.children||[]),D.return=E,E=D;break t}else{l(E,b);break}else e(E,b);b=b.sibling}D=Dc(C,E.mode,D),D.return=E,E=D}return f(E);case _t:return C=Un(C),st(E,b,C,D)}if(bt(C))return q(E,b,C,D);if(W(C)){if(V=W(C),typeof V!="function")throw Error(o(150));return C=V.call(C),Q(E,b,C,D)}if(typeof C.then=="function")return st(E,b,wu(C),D);if(C.$$typeof===Wt)return st(E,b,Cu(E,C),D);Mu(E,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,b!==null&&b.tag===6?(l(E,b.sibling),D=a(b,C),D.return=E,E=D):(l(E,b),D=Ac(C,E.mode,D),D.return=E,E=D),f(E)):l(E,b)}return function(E,b,C,D){try{di=0;var V=st(E,b,C,D);return ma=null,V}catch(K){if(K===ha||K===Au)throw K;var ht=je(29,K,null,E.mode);return ht.lanes=D,ht.return=E,ht}finally{}}}var kn=Ad(!0),Dd=Ad(!1),Wl=!1;function $c(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Pl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function tn(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(St&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=ju(t),pd(t,null,l),e}return Su(t,n,e,l),ju(t)}function hi(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,xf(t,l)}}function Gc(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=f:i=i.next=f,l=l.next}while(l!==null);i===null?a=i=e:i=i.next=e}else a=i=e;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Qc=!1;function mi(){if(Qc){var t=da;if(t!==null)throw t}}function pi(t,e,l,n){Qc=!1;var a=t.updateQueue;Wl=!1;var i=a.firstBaseUpdate,f=a.lastBaseUpdate,h=a.shared.pending;if(h!==null){a.shared.pending=null;var v=h,T=v.next;v.next=null,f===null?i=T:f.next=T,f=v;var A=t.alternate;A!==null&&(A=A.updateQueue,h=A.lastBaseUpdate,h!==f&&(h===null?A.firstBaseUpdate=T:h.next=T,A.lastBaseUpdate=v))}if(i!==null){var w=a.baseState;f=0,A=T=v=null,h=i;do{var _=h.lane&-536870913,O=_!==h.lane;if(O?(dt&_)===_:(n&_)===_){_!==0&&_===wn&&(Qc=!0),A!==null&&(A=A.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var q=t,Q=h;_=e;var st=l;switch(Q.tag){case 1:if(q=Q.payload,typeof q=="function"){w=q.call(st,w,_);break t}w=q;break t;case 3:q.flags=q.flags&-65537|128;case 0:if(q=Q.payload,_=typeof q=="function"?q.call(st,w,_):q,_==null)break t;w=I({},w,_);break t;case 2:Wl=!0}}_=h.callback,_!==null&&(t.flags|=64,O&&(t.flags|=8192),O=a.callbacks,O===null?a.callbacks=[_]:O.push(_))}else O={lane:_,tag:h.tag,payload:h.payload,callback:h.callback,next:null},A===null?(T=A=O,v=w):A=A.next=O,f|=_;if(h=h.next,h===null){if(h=a.shared.pending,h===null)break;O=h,h=O.next,O.next=null,a.lastBaseUpdate=O,a.shared.pending=null}}while(!0);A===null&&(v=w),a.baseState=v,a.firstBaseUpdate=T,a.lastBaseUpdate=A,i===null&&(a.shared.lanes=0),cn|=f,t.lanes=f,t.memoizedState=w}}function wd(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Md(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)wd(l[t],e)}var en=sl(null),Uu=sl(0);function Ud(t,e){t=kl,wt(Uu,t),wt(en,e),kl=t|e.baseLanes}function Xc(){wt(Uu,kl),wt(en,en.current)}function Zc(){kl=Uu.current,ne(en),ne(Uu)}var ue=sl(null),pe=null;function ln(t){var e=t.alternate;wt(se,se.current&1),wt(ue,t),pe===null&&(e===null||en.current!==null||e.memoizedState!==null)&&(pe=t)}function Kc(t){wt(se,se.current),wt(ue,t),pe===null&&(pe=t)}function Hd(t){t.tag===22?(wt(se,se.current),wt(ue,t),pe===null&&(pe=t)):nn()}function nn(){wt(se,se.current),wt(ue,ue.current)}function we(t){ne(ue),pe===t&&(pe=null),ne(se)}var se=sl(0);function gi(t,e){wt(ue,ue.current),wt(se,e)}function Jc(t){ne(se),ne(ue),pe===t&&(pe=null)}function Hu(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||yo(l)||xo(l)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!=="independent"){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var wl=0,ut=null,Ct=null,Xt=null,ku=!1,pa=!1,Bn=!1,Bu=0,vi=0,ga=null,L0=0;function Yt(){throw Error(o(321))}function Ic(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!De(t[l],e[l]))return!1;return!0}function Fc(t,e,l,n,a,i){return wl=i,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Z.H=t===null||t.memoizedState===null?xh:bh,Bn=!1,i=l(n,a),Bn=!1,pa&&(i=Bd(e,l,n,a)),kd(t),i}function kd(t){Z.H=Qu;var e=Ct!==null&&Ct.next!==null;if(wl=0,Xt=Ct=ut=null,ku=!1,vi=0,ga=null,e)throw Error(o(300));t===null||Zt||(t=t.dependencies,t!==null&&Ru(t)&&(Zt=!0))}function Bd(t,e,l,n){ut=t;var a=0;do{if(pa&&(ga=null),vi=0,pa=!1,25<=a)throw Error(o(301));if(a+=1,Xt=Ct=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}Z.H=Z0,i=e(l,n)}while(pa);return i}function q0(){var t=Z.H,e=t.useState()[0];return e=typeof e.then=="function"?yi(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(ut.flags|=1024),e}function Wc(){var t=Bu!==0;return Bu=0,t}function Pc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function tr(t){if(ku){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ku=!1}wl=0,Xt=Ct=ut=null,pa=!1,vi=Bu=0,ga=null}function ve(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?ut.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Vt(){if(Ct===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=Xt===null?ut.memoizedState:Xt.next;if(e!==null)Xt=e,Ct=t;else{if(t===null)throw ut.alternate===null?Error(o(467)):Error(o(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},Xt===null?ut.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function Lu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yi(t){var e=vi;return vi+=1,ga===null&&(ga=[]),t=Rd(ga,t,e),e=ut,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,Z.H=e===null||e.memoizedState===null?xh:bh),t}function qu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return yi(t);if(t.$$typeof===k)return;if(t.$$typeof===Wt)return ie(t)}throw Error(o(438,String(t)))}function er(t){var e=null,l=ut.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=ut.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Lu(),ut.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=Sn;return e.index++,l}function Ml(t,e){return typeof e=="function"?e(t):e}function Yu(t){var e=Vt();return lr(e,Ct,t)}function lr(t,e,l){var n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=l;var a=t.baseQueue,i=n.pending;if(i!==null){if(a!==null){var f=a.next;a.next=i.next,i.next=f}e.baseQueue=a=i,n.pending=null}if(i=t.baseState,a===null)t.memoizedState=i;else{e=a.next;var h=f=null,v=null,T=e,A=!1;do{var w=T.lane&-536870913;if(w!==T.lane?(dt&w)===w:(wl&w)===w){var _=T.revertLane;if(_===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),w===wn&&(A=!0);else if((wl&_)===_){T=T.next,_===wn&&(A=!0);continue}else w={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},v===null?(h=v=w,f=i):v=v.next=w,ut.lanes|=_,cn|=_;w=T.action,Bn&&l(i,w),i=T.hasEagerState?T.eagerState:l(i,w)}else _={lane:w,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},v===null?(h=v=_,f=i):v=v.next=_,ut.lanes|=w,cn|=w;T=T.next}while(T!==null&&T!==e);if(v===null?f=i:v.next=h,!De(i,t.memoizedState)&&(Zt=!0,A&&(l=da,l!==null)))throw l;t.memoizedState=i,t.baseState=f,t.baseQueue=v,n.lastRenderedState=i}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function nr(t){var e=Vt(),l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=t;var n=l.dispatch,a=l.pending,i=e.memoizedState;if(a!==null){l.pending=null;var f=a=a.next;do i=t(i,f.action),f=f.next;while(f!==a);De(i,e.memoizedState)||(Zt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i}return[i,n]}function Ld(t,e,l){var n=ut,a=Vt(),i=ct;if(i){if(l===void 0)throw Error(o(407));l=l()}else l=e();var f=!De((Ct||a).memoizedState,l);if(f&&(a.memoizedState=l,Zt=!0),a=a.queue,ur($d.bind(null,n,a,t),[t]),t=a.getSnapshot!==e||f||Xt!==null&&(Xt.memoizedState.tag&1)!==0,va(t?9:8,{destroy:void 0},Yd.bind(null,n,a,l,e),null),t){if(n.flags|=2048,Dt===null)throw Error(o(349));i||(wl&127)!==0||qd(n,e,l)}return l}function qd(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=ut.updateQueue,e===null?(e=Lu(),ut.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Yd(t,e,l,n){e.value=l,e.getSnapshot=n,Vd(e)&&Gd(t)}function $d(t,e,l){return l(function(){Vd(e)&&Gd(t)})}function Vd(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!De(t,l)}catch{return!0}}function Gd(t){var e=zn(t,2);e!==null&&Ne(e,t,2)}function ar(t){var e=ve();if(typeof t=="function"){var l=t;if(t=l(),Bn){Gl(!0);try{l()}finally{Gl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ml,lastRenderedState:t},e}function Qd(t,e,l,n){return t.baseState=l,lr(t,Ct,typeof n=="function"?n:Ml)}function Y0(t,e,l,n,a){if(Gu(t))throw Error(o(485));if(t=e.action,t!==null){var i={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){i.listeners.push(f)}};Z.T!==null?l(!0):i.isTransition=!1,n(i),l=e.pending,l===null?(i.next=e.pending=i,Xd(e,i)):(i.next=l.next,e.pending=l.next=i)}}function Xd(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var i=Z.T,f={};f.types=i!==null?i.types:null,Z.T=f;try{var h=l(a,n),v=Z.S;v!==null&&v(f,h),Zd(t,e,h)}catch(T){ir(t,e,T)}finally{i!==null&&f.types!==null&&(i.types=f.types),Z.T=i}}else try{i=l(a,n),Zd(t,e,i)}catch(T){ir(t,e,T)}}function Zd(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Kd(t,e,n)},function(n){return ir(t,e,n)}):Kd(t,e,l)}function Kd(t,e,l){e.status="fulfilled",e.value=l,Jd(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Xd(t,l)))}function ir(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,Jd(e),e=e.next;while(e!==n)}t.action=null}function Jd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Id(t,e){return e}function Fd(t,e){if(ct){var l=Dt.formState;if(l!==null){t:{var n=ut;if(ct){if(Mt){e:{for(var a=Mt,i=Ke;a.nodeType!==8;){if(!i){a=null;break e}if(a=Ie(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Mt=Ie(a.nextSibling),n=a.data==="F!";break t}}Jl(n)}n=!1}n&&(e=l[0])}}return l=ve(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Id,lastRenderedState:e},l.queue=n,l=gh.bind(null,ut,n),n.dispatch=l,n=ar(!1),i=fr.bind(null,ut,!1,n.queue),n=ve(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=Y0.bind(null,ut,a,i,l),a.dispatch=l,n.memoizedState=t,[e,l,!1]}function Wd(t){var e=Vt();return Pd(e,Ct,t)}function Pd(t,e,l){if(e=lr(t,e,Id)[0],t=Yu(Ml)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=yi(e)}catch(f){throw f===ha?Au:f}else n=e;e=Vt();var a=e.queue,i=a.dispatch;return l!==e.memoizedState&&(ut.flags|=2048,va(9,{destroy:void 0},$0.bind(null,a,l),null)),[n,i,t]}function $0(t,e){t.action=e}function th(t){var e=Vt(),l=Ct;if(l!==null)return Pd(e,l,t);Vt(),e=e.memoizedState,l=Vt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function va(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=ut.updateQueue,e===null&&(e=Lu(),ut.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function eh(){return Vt().memoizedState}function $u(t,e,l,n){var a=ve();ut.flags|=t,a.memoizedState=va(1|e,{destroy:void 0},l,n===void 0?null:n)}function Vu(t,e,l,n){var a=Vt();n=n===void 0?null:n;var i=a.memoizedState.inst;Ct!==null&&n!==null&&Ic(n,Ct.memoizedState.deps)?a.memoizedState=va(e,i,l,n):(ut.flags|=t,a.memoizedState=va(1|e,i,l,n))}function lh(t,e){$u(8390656,8,t,e)}function ur(t,e){Vu(2048,8,t,e)}function V0(t){ut.flags|=4;var e=ut.updateQueue;if(e===null)e=Lu(),ut.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function nh(t){var e=Vt().memoizedState;return V0({ref:e,nextImpl:t}),function(){if((St&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function ah(t,e){return Vu(4,2,t,e)}function ih(t,e){return Vu(4,4,t,e)}function uh(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function sh(t,e,l){l=l!=null?l.concat([t]):null,Vu(4,4,uh.bind(null,e,t),l)}function sr(){}function ch(t,e){var l=Vt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&Ic(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function rh(t,e){var l=Vt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&Ic(e,n[1]))return n[0];if(n=t(),Bn){Gl(!0);try{t()}finally{Gl(!1)}}return l.memoizedState=[n,e],n}function cr(t,e,l){return l===void 0||(wl&1073741824)!==0&&(dt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=xm(),ut.lanes|=t,cn|=t,l)}function oh(t,e,l,n){return De(l,e)?l:en.current!==null?(t=cr(t,l,n),De(t,e)||(Zt=!0),t):(wl&106)===0||(wl&1073741824)!==0&&(dt&261930)===0?(Zt=!0,t.memoizedState=l):(t=xm(),ut.lanes|=t,cn|=t,e)}function fh(t,e,l,n,a){var i=nt.p;nt.p=i!==0&&8>i?i:8;var f=Z.T,h={};h.types=f!==null?f.types:null,Z.T=h,fr(t,!1,e,l);try{var v=a(),T=Z.S;if(T!==null&&T(h,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var A=B0(v,n);xi(t,e,A,ke(t))}else xi(t,e,n,ke(t))}catch(w){xi(t,e,{then:function(){},status:"rejected",reason:w},ke())}finally{nt.p=i,f!==null&&h.types!==null&&(f.types=h.types),Z.T=f}}function G0(){}function rr(t,e,l,n){if(t.tag!==5)throw Error(o(476));var a=dh(t).queue;fh(t,a,e,_l,l===null?G0:function(){return hh(t),l(n)})}function dh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:_l,baseState:_l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ml,lastRenderedState:_l},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ml,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function hh(t){var e=dh(t);e.next===null&&(e=t.alternate.memoizedState),xi(t,e.next.queue,{},ke())}function or(){return ie(Ha)}function mh(){return Vt().memoizedState}function ph(){return Vt().memoizedState}function Q0(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=ke();t=Pl(l);var n=tn(e,t,l);n!==null&&(Ne(n,e,l),hi(n,e,l)),e={cache:Bc()},t.payload=e;return}e=e.return}}function X0(t,e,l){var n=ke();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Gu(t)?vh(e,l):(l=Cc(t,e,l,n),l!==null&&(Ne(l,t,n),yh(l,e,n)))}function gh(t,e,l){var n=ke();xi(t,e,l,n)}function xi(t,e,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Gu(t))vh(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var f=e.lastRenderedState,h=i(f,l);if(a.hasEagerState=!0,a.eagerState=h,De(h,f))return Su(t,e,a,0),Dt===null&&bu(),!1}catch{}finally{}if(l=Cc(t,e,a,n),l!==null)return Ne(l,t,n),yh(l,e,n),!0}return!1}function fr(t,e,l,n){if(n={lane:2,revertLane:eo(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Gu(t)){if(e)throw Error(o(479))}else e=Cc(t,l,n,2),e!==null&&Ne(e,t,2)}function Gu(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function vh(t,e){pa=ku=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function yh(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,xf(t,l)}}var Qu={readContext:ie,use:qu,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt,useEffectEvent:Yt},xh={readContext:ie,use:qu,useCallback:function(t,e){return ve().memoizedState=[t,e===void 0?null:e],t},useContext:ie,useEffect:lh,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,$u(4194308,4,uh.bind(null,e,t),l)},useLayoutEffect:function(t,e){return $u(4194308,4,t,e)},useInsertionEffect:function(t,e){$u(4,2,t,e)},useMemo:function(t,e){var l=ve();e=e===void 0?null:e;var n=t();if(Bn){Gl(!0);try{t()}finally{Gl(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=ve();if(l!==void 0){var a=l(e);if(Bn){Gl(!0);try{l(e)}finally{Gl(!1)}}}else a=e;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=X0.bind(null,ut,t),[n.memoizedState,t]},useRef:function(t){var e=ve();return t={current:t},e.memoizedState=t},useState:function(t){t=ar(t);var e=t.queue,l=gh.bind(null,ut,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:sr,useDeferredValue:function(t,e){var l=ve();return cr(l,t,e)},useTransition:function(){var t=ar(!1);return t=fh.bind(null,ut,t.queue,!0,!1),ve().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=ut,a=ve();if(ct){if(l===void 0)throw Error(o(407));l=l()}else{if(l=e(),Dt===null)throw Error(o(349));(dt&127)!==0||qd(n,e,l)}a.memoizedState=l;var i={value:l,getSnapshot:e};return a.queue=i,lh($d.bind(null,n,i,t),[t]),n.flags|=2048,va(9,{destroy:void 0},Yd.bind(null,n,i,l,e),null),l},useId:function(){var t=ve(),e=Dt.identifierPrefix;if(ct){var l=fl,n=ol;l=(n&~(1<<32-Oe(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Bu++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=L0++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:or,useFormState:Fd,useActionState:Fd,useOptimistic:function(t){var e=ve();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=fr.bind(null,ut,!0,l),l.dispatch=e,[t,e]},useMemoCache:er,useCacheRefresh:function(){return ve().memoizedState=Q0.bind(null,ut)},useEffectEvent:function(t){var e=ve(),l={impl:t};return e.memoizedState=l,function(){if((St&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},bh={readContext:ie,use:qu,useCallback:ch,useContext:ie,useEffect:ur,useImperativeHandle:sh,useInsertionEffect:ah,useLayoutEffect:ih,useMemo:rh,useReducer:Yu,useRef:eh,useState:function(){return Yu(Ml)},useDebugValue:sr,useDeferredValue:function(t,e){var l=Vt();return oh(l,Ct.memoizedState,t,e)},useTransition:function(){var t=Yu(Ml)[0],e=Vt().memoizedState;return[typeof t=="boolean"?t:yi(t),e]},useSyncExternalStore:Ld,useId:mh,useHostTransitionStatus:or,useFormState:Wd,useActionState:Wd,useOptimistic:function(t,e){var l=Vt();return Qd(l,Ct,t,e)},useMemoCache:er,useCacheRefresh:ph,useEffectEvent:nh},Z0={readContext:ie,use:qu,useCallback:ch,useContext:ie,useEffect:ur,useImperativeHandle:sh,useInsertionEffect:ah,useLayoutEffect:ih,useMemo:rh,useReducer:nr,useRef:eh,useState:function(){return nr(Ml)},useDebugValue:sr,useDeferredValue:function(t,e){var l=Vt();return Ct===null?cr(l,t,e):oh(l,Ct.memoizedState,t,e)},useTransition:function(){var t=nr(Ml)[0],e=Vt().memoizedState;return[typeof t=="boolean"?t:yi(t),e]},useSyncExternalStore:Ld,useId:mh,useHostTransitionStatus:or,useFormState:th,useActionState:th,useOptimistic:function(t,e){var l=Vt();return Ct!==null?Qd(l,Ct,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:er,useCacheRefresh:ph,useEffectEvent:nh};function dr(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:I({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var hr={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=ke(),a=Pl(n);a.payload=e,l!=null&&(a.callback=l),e=tn(t,a,n),e!==null&&(Ne(e,t,n),hi(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=ke(),a=Pl(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=tn(t,a,n),e!==null&&(Ne(e,t,n),hi(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=ke(),n=Pl(l);n.tag=2,e!=null&&(n.callback=e),e=tn(t,n,l),e!==null&&(Ne(e,t,l),hi(e,t,l))}};function Sh(t,e,l,n,a,i,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,f):e.prototype&&e.prototype.isPureReactComponent?!ii(l,n)||!ii(a,i):!0}function jh(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&hr.enqueueReplaceState(e,e.state,null)}function Ln(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=I({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a])}return l}function _h(t){xu(t)}function Eh(t){console.error(t)}function Th(t){xu(t)}function Xu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function Nh(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function mr(t,e,l){return l=Pl(l),l.tag=3,l.payload={element:null},l.callback=function(){Xu(t,e)},l}function zh(t){return t=Pl(t),t.tag=3,t}function Rh(t,e,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;t.payload=function(){return a(i)},t.callback=function(){Nh(e,l,n)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Nh(e,l,n),typeof a!="function"&&(rn===null?rn=new Set([this]):rn.add(this));var h=n.stack;this.componentDidCatch(n.value,{componentStack:h!==null?h:""})})}function K0(t,e,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&An(e,l,a,!0),l=ue.current,l!==null){switch(l.tag){case 31:case 13:case 19:return pe===null?hs():l.alternate===null&&$t===0&&($t=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===Du?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),Wr(t,n,a)),!1;case 22:return l.flags|=65536,n===Du?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),Wr(t,n,a)),!1}throw Error(o(435,l.tag))}return Wr(t,n,a),hs(),!1}if(ct)return e=ue.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==Mc&&(t=Error(o(422),{cause:n}),ci(Qe(t,l)))):(n!==Mc&&(e=Error(o(423),{cause:n}),ci(Qe(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=Qe(n,l),a=mr(t.stateNode,n,a),Gc(t,a),$t!==4&&($t=2)),!1;var i=Error(o(520),{cause:n});if(i=Qe(i,l),zi===null?zi=[i]:zi.push(i),$t!==4&&($t=2),e===null)return!0;n=Qe(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=mr(l.stateNode,n,t),Gc(l,t),!1;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(rn===null||!rn.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=zh(a),Rh(a,t,l,n),Gc(l,a),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var pr=Error(o(461)),Zt=!1;function It(t,e,l,n){e.child=t===null?Dd(e,null,l,n):kn(e,t.child,l,n)}function Ch(t,e,l,n,a){l=l.render;var i=e.ref;if("ref"in n){var f={};for(var h in n)h!=="ref"&&(f[h]=n[h])}else f=n;return Dn(e),n=Fc(t,e,l,f,i,a),h=Wc(),t!==null&&!Zt?(Pc(t,e,a),Ul(t,e,a)):(ct&&h&&Tu(e),e.flags|=1,It(t,e,n,a),e.child)}function Oh(t,e,l,n,a){if(t===null){var i=l.type;return typeof i=="function"&&!Oc(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,Ah(t,e,i,n,a)):(t=_u(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!_r(t,a)){var f=i.memoizedProps;if(l=l.compare,l=l!==null?l:ii,l(f,n)&&t.ref===e.ref)return Ul(t,e,a)}return e.flags|=1,t=Cl(i,n),t.ref=e.ref,t.return=e,e.child=t}function Ah(t,e,l,n,a){if(t!==null){var i=t.memoizedProps;if(ii(i,n)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=n=i,_r(t,a))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,Ul(t,e,a)}return gr(t,e,l,n,a)}function Dh(t,e,l,n){var a=n.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,t!==null){for(n=e.child=t.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,e.child=null;return wh(t,e,i,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ou(e,i!==null?i.cachePool:null),i!==null?Ud(e,i):Xc(),Hd(e);else return n=e.lanes=536870912,wh(t,e,i!==null?i.baseLanes|l:l,l,n)}else i!==null?(Ou(e,i.cachePool),Ud(e,i),nn(),e.memoizedState=null):(t!==null&&Ou(e,null),Xc(),nn());return It(t,e,a,l),e.child}function bi(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function wh(t,e,l,n,a){var i=qc();return i=i===null?null:{parent:Qt._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&Ou(e,null),Xc(),Hd(e),t!==null&&An(t,e,n,!0),e.childLanes=a,null}function Zu(t,e){return e=Ku({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Mh(t,e,l){return kn(e,t.child,null,l),t=Zu(e,e.pendingProps),t.flags|=2,we(e),e.memoizedState=null,t}function J0(t,e,l){var n=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(ct){if(n.mode==="hidden")return t=Zu(e,n),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},bi(null,t);if(Kc(e),(t=Mt)?(t=up(t,Ke),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Zl!==null?{id:ol,overflow:fl}:null,retryLane:536870912,hydrationErrors:null},l=vd(t),l.return=e,e.child=l,te=e,Mt=null)):t=null,t===null)throw Jl(e);return e.lanes=536870912,null}return Zu(e,n)}var i=t.memoizedState;if(i!==null){var f=i.dehydrated;if(Kc(e),a)if(e.flags&256)e.flags&=-257,e=Mh(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Zt||An(t,e,l,!1),a=(l&t.childLanes)!==0,Zt||a){if(en.current===null){if(n=Dt,n!==null&&(f=bf(n,l),f!==0&&f!==i.retryLane))throw i.retryLane=f,zn(t,f),Ne(n,t,f),pr;hs()}e=Mh(t,e,l)}else t=i.treeContext,Mt=Ie(f.nextSibling),te=e,ct=!0,Kl=null,Ke=!1,t!==null&&bd(e,t),e=Zu(e,n),e.flags|=134221824;return e}return t=Cl(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ya(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function gr(t,e,l,n,a){return Dn(e),l=Fc(t,e,l,n,void 0,a),n=Wc(),t!==null&&!Zt?(Pc(t,e,a),Ul(t,e,a)):(ct&&n&&Tu(e),e.flags|=1,It(t,e,l,a),e.child)}function Uh(t,e,l,n,a,i){return Dn(e),e.updateQueue=null,l=Bd(e,n,l,a),kd(t),n=Wc(),t!==null&&!Zt?(Pc(t,e,i),Ul(t,e,i)):(ct&&n&&Tu(e),e.flags|=1,It(t,e,l,i),e.child)}function Hh(t,e,l,n,a){if(Dn(e),e.stateNode===null){var i=ca,f=l.contextType;typeof f=="object"&&f!==null&&(i=ie(f)),i=new l(n,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=hr,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=n,i.state=e.memoizedState,i.refs={},$c(e),f=l.contextType,i.context=typeof f=="object"&&f!==null?ie(f):ca,i.state=e.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(dr(e,l,f,n),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(f=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),f!==i.state&&hr.enqueueReplaceState(i,i.state,null),pi(e,n,i,a),mi(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){i=e.stateNode;var h=e.memoizedProps,v=Ln(l,h);i.props=v;var T=i.context,A=l.contextType;f=ca,typeof A=="object"&&A!==null&&(f=ie(A));var w=l.getDerivedStateFromProps;A=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,A||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(h||T!==f)&&jh(e,i,n,f),Wl=!1;var _=e.memoizedState;i.state=_,pi(e,n,i,a),mi(),T=e.memoizedState,h||_!==T||Wl?(typeof w=="function"&&(dr(e,l,w,n),T=e.memoizedState),(v=Wl||Sh(e,l,v,n,_,T,f))?(A||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=T),i.props=n,i.state=T,i.context=f,n=v):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{i=e.stateNode,Vc(t,e),f=e.memoizedProps,A=Ln(l,f),i.props=A,w=e.pendingProps,_=i.context,T=l.contextType,v=ca,typeof T=="object"&&T!==null&&(v=ie(T)),h=l.getDerivedStateFromProps,(T=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f!==w||_!==v)&&jh(e,i,n,v),Wl=!1,_=e.memoizedState,i.state=_,pi(e,n,i,a),mi();var O=e.memoizedState;f!==w||_!==O||Wl||t!==null&&t.dependencies!==null&&Ru(t.dependencies)?(typeof h=="function"&&(dr(e,l,h,n),O=e.memoizedState),(A=Wl||Sh(e,l,A,n,_,O,v)||t!==null&&t.dependencies!==null&&Ru(t.dependencies))?(T||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,O,v),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,O,v)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||f===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=O),i.props=n,i.state=O,i.context=v,n=A):(typeof i.componentDidUpdate!="function"||f===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),n=!1)}return i=n,ya(t,e),n=(e.flags&128)!==0,i||n?(i=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&n?(e.child=kn(e,t.child,null,a),e.child=kn(e,null,l,a)):It(t,e,l,a),e.memoizedState=i.state,t=e.child):t=Ul(t,e,a),t}function kh(t,e,l,n){return Cn(),e.flags|=256,It(t,e,l,n),e.child}var vr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yr(t){return{baseLanes:t,cachePool:Nd()}}function xr(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=He),t}function Bh(t,e,l){var n=e.pendingProps,a=!1,i=(e.flags&128)!==0,f;if((f=i)||(f=t!==null&&t.memoizedState===null?!1:(se.current&2)!==0),f&&(a=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(ct){if(a?ln(e):nn(),(t=Mt)?(t=up(t,Ke),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Zl!==null?{id:ol,overflow:fl}:null,retryLane:536870912,hydrationErrors:null},l=vd(t),l.return=e,e.child=l,te=e,Mt=null)):t=null,t===null)throw Jl(e);return xo(t)?e.lanes=32:e.lanes=536870912,null}return i=n.children,n=n.fallback,a?(nn(),a=e.mode,i=Ku({mode:"hidden",children:i},a),n=Rn(n,a,l,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n=e.child,n.memoizedState=yr(l),n.childLanes=xr(t,f,l),e.memoizedState=vr,bi(null,n)):(ln(e),br(e,i))}var h=t.memoizedState;if(h!==null){var v=h.dehydrated;if(v!==null)return I0(t,e,i,f,n,v,h,l)}return a?(nn(),a=n.fallback,i=e.mode,h=t.child,v=h.sibling,n=Cl(h,{mode:"hidden",children:n.children}),n.subtreeFlags=h.subtreeFlags&1206910976,v!==null?a=Cl(v,a):(a=Rn(a,i,l,null),a.flags|=2),a.return=e,n.return=e,n.sibling=a,e.child=n,bi(null,n),n=e.child,a=t.child.memoizedState,a===null?a=yr(l):(i=a.cachePool,i!==null?(h=Qt._currentValue,i=i.parent!==h?{parent:h,pool:h}:i):i=Nd(),a={baseLanes:a.baseLanes|l,cachePool:i}),n.memoizedState=a,n.childLanes=xr(t,f,l),e.memoizedState=vr,bi(t.child,n)):(ln(e),l=t.child,t=l.sibling,l=Cl(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=l,e.memoizedState=null,l)}function br(t,e){return e=Ku({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ku(t,e){return t=je(22,t,null,e),t.lanes=0,t}function Ju(t,e,l){return kn(e,t.child,null,l),t=br(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function I0(t,e,l,n,a,i,f,h){if(l)return e.flags&256?(ln(e),e.flags&=-257,Ju(t,e,h)):e.memoizedState!==null?(nn(),e.child=t.child,e.flags|=128,null):(nn(),i=a.fallback,f=e.mode,a=Ku({mode:"visible",children:a.children},f),i=Rn(i,f,h,null),i.flags|=2,a.return=e,i.return=e,a.sibling=i,e.child=a,kn(e,t.child,null,h),a=e.child,a.memoizedState=yr(h),a.childLanes=xr(t,n,h),e.memoizedState=vr,bi(null,a));if(ln(e),xo(i)){if(n=i.nextSibling&&i.nextSibling.dataset,n)var v=n.dgst;return n=v,n!==""&&(a=Error(o(419)),a.stack="",a.digest=n,ci({value:a,source:null,stack:null})),Ju(t,e,h)}if(Zt||An(t,e,h,!1),n=(h&t.childLanes)!==0,Zt||n){if(en.current!==null)return Ju(t,e,h);if(n=Dt,n!==null&&(a=bf(n,h),a!==0&&a!==f.retryLane))throw f.retryLane=a,zn(t,a),Ne(n,t,a),pr;return yo(i)||hs(),Ju(t,e,h)}return yo(i)?(e.flags|=192,e.child=t.child,null):(t=f.treeContext,Mt=Ie(i.nextSibling),te=e,ct=!0,Kl=null,Ke=!1,t!==null&&bd(e,t),e=br(e,a.children),e.flags|=134221824,e)}function Lh(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),zu(t.return,e,l)}function qh(t){for(var e=null;t!==null;){var l=t.alternate;l!==null&&Hu(l)===null&&(e=t),t=t.sibling}return e}function Iu(t,e,l,n,a,i){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:i}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=l,f.tailMode=a,f.treeForkCount=i)}function Sr(t){var e=t.child;for(t.child=null;e!==null;){var l=e.sibling;e.sibling=t.child,t.child=e,e=l}}function jr(t,e,l){var n=e.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var f=se.current;if(e.flags&128)return gi(e,f),null;var h=(f&2)!==0;if(h?(f=f&1|2,e.flags|=128):f&=1,gi(e,f),a==="backwards"&&t!==null?(Sr(t),It(t,e,n,l),Sr(t)):It(t,e,n,l),n=ct?si:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Lh(t,l,e);else if(t.tag===19)Lh(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"backwards":l=qh(e.child),l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null,Sr(e)),Iu(e,!0,a,null,i,n);break;case"unstable_legacy-backwards":for(l=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Hu(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t}Iu(e,!0,l,null,i,n);break;case"together":Iu(e,!1,null,null,void 0,n);break;case"independent":e.memoizedState=null;break;default:l=qh(e.child),l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),Iu(e,!1,a,l,i,n)}return e.child}function Yh(t,e,l){var n=e.pendingProps;return Il(e,e.type,n.value),It(t,e,n.children,l),e.child}function Ul(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),cn|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(An(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,l=Cl(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Cl(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function _r(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ru(t)))}function F0(t,e,l){switch(e.tag){case 3:eu(e,e.stateNode.containerInfo),Il(e,Qt,t.memoizedState.cache),Cn();break;case 27:case 5:Is(e);break;case 4:eu(e,e.stateNode.containerInfo);break;case 10:Il(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Kc(e),null;break;case 13:var n=e.memoizedState;if(n!==null){if(n.dehydrated!==null)return ln(e),e.flags|=128,null;n=An(t,e,l,!1);var a=e.child.childLanes;return n||(l&a)!==0?Bh(t,e,l):(ln(e),t=Ul(t,e,l),t!==null?t.sibling:null)}ln(e);break;case 19:if(e.flags&128)return jr(t,e,l);if(a=(t.flags&128)!==0,n=(l&e.childLanes)!==0,n||(An(t,e,l,!1),n=(l&e.childLanes)!==0),a){if(n)return jr(t,e,l);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),gi(e,se.current),n)break;return null;case 22:return e.lanes=0,Dh(t,e,l,e.pendingProps);case 24:Il(e,Qt,t.memoizedState.cache)}return Ul(t,e,l)}function $h(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!_r(t,l)&&(e.flags&128)===0)return Zt=!1,F0(t,e,l);Zt=(t.flags&131072)!==0}else Zt=!1,ct&&(e.flags&1048576)!==0&&xd(e,si,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=Un(e.elementType),e.type=t,typeof t=="function")Oc(t)?(n=Ln(t,n),e.tag=1,e=Hh(null,e,t,n,l)):(e.tag=0,e=gr(null,e,t,n,l));else{if(t!=null){var a=t.$$typeof;if(a===$){e.tag=11,e=Ch(null,e,t,n,l);break t}else if(a===At){e.tag=14,e=Oh(null,e,t,n,l);break t}else if(a===Wt){e.tag=10,e.type=t,e=Yh(null,e,l);break t}}throw e=vt(t)||t,Error(o(306,e,""))}}return e;case 0:return gr(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=Ln(n,e.pendingProps),Hh(t,e,n,a,l);case 3:t:{if(eu(e,e.stateNode.containerInfo),t===null)throw Error(o(387));n=e.pendingProps;var i=e.memoizedState;a=i.element,Vc(t,e),pi(e,n,null,l);var f=e.memoizedState;if(n=f.cache,Il(e,Qt,n),n!==i.cache&&kc(e,[Qt],l,!0),mi(),n=f.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=kh(t,e,n,l);break t}else if(n!==a){a=Qe(Error(o(424)),e),ci(a),e=kh(t,e,n,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Mt=Ie(t.firstChild),te=e,ct=!0,Kl=null,Ke=!0,l=Dd(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling}else{if(Cn(),n===a){e=Ul(t,e,l);break t}It(t,e,n,l)}e=e.child}return e;case 26:return ya(t,e),t===null?(l=hp(e.type,null,e.pendingProps,null))?e.memoizedState=l:ct||(e.stateNode=Xm(e.type,e.pendingProps,$l.current,e)):e.memoizedState=hp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Is(e),t===null&&ct&&(n=e.stateNode=rp(e.type,e.pendingProps,$l.current),te=e,Ke=!0,a=Mt,dn(e.type)?(bo=a,Mt=Ie(n.firstChild)):Mt=a),It(t,e,e.pendingProps.children,l),ya(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&ct&&((a=n=Mt)&&(n=Qy(n,e.type,e.pendingProps,Ke),n!==null?(e.stateNode=n,te=e,Mt=Ie(n.firstChild),Ke=!1,a=!0):a=!1),a||Jl(e)),Is(e),a=e.type,i=e.pendingProps,f=t!==null?t.memoizedProps:null,n=i.children,oo(a,i)?n=null:f!==null&&oo(a,f)&&(e.flags|=32),e.memoizedState!==null&&(a=Fc(t,e,q0,null,null,l),Ha._currentValue=a),ya(t,e),It(t,e,n,l),e.child;case 6:return t===null&&ct&&((t=l=Mt)&&(l=Xy(l,e.pendingProps,Ke),l!==null?(e.stateNode=l,te=e,Mt=null,t=!0):t=!1),t||Jl(e)),null;case 13:return Bh(t,e,l);case 4:return eu(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=kn(e,null,n,l):It(t,e,n,l),e.child;case 11:return Ch(t,e,e.type,e.pendingProps,l);case 7:return n=e.pendingProps,ya(t,e),It(t,e,n,l),e.child;case 8:return It(t,e,e.pendingProps.children,l),e.child;case 12:return It(t,e,e.pendingProps.children,l),e.child;case 10:return Yh(t,e,l);case 9:return a=e.type._context,n=e.pendingProps.children,Dn(e),a=ie(a),n=n(a),e.flags|=1,It(t,e,n,l),e.child;case 14:return Oh(t,e,e.type,e.pendingProps,l);case 15:return Ah(t,e,e.type,e.pendingProps,l);case 19:return jr(t,e,l);case 31:return J0(t,e,l);case 22:return Dh(t,e,l,e.pendingProps);case 24:return Dn(e),n=ie(Qt),t===null?(a=qc(),a===null&&(a=Dt,i=Bc(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),e.memoizedState={parent:n,cache:a},$c(e),Il(e,Qt,a)):((t.lanes&l)!==0&&(Vc(t,e),pi(e,null,null,l),mi()),a=t.memoizedState,i=e.memoizedState,a.parent!==n?(a={parent:n,cache:n},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),Il(e,Qt,n)):(n=i.cache,Il(e,Qt,n),n!==a.cache&&kc(e,[Qt],l,!0))),It(t,e,e.pendingProps.children,l),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),n=e.pendingProps,n.name!=null&&n.name!=="auto"?e.flags|=t===null?18882560:18874368:ct&&Tu(e),t!==null&&t.memoizedProps.name!==n.name?e.flags|=4194816:ya(t,e),It(t,e,n.children,l),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function Hl(t){t.flags|=4}function Er(t,e,l,n,a){var i;if((i=(t.mode&32)!==0)&&(i=l===null?vp(e,n):vp(e,n)&&(n.src!==l.src||n.srcSet!==l.srcSet)),i){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(_m())t.flags|=8192;else throw Hn=Du,Yc}else t.flags&=-16777217}function Vh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!yp(e))if(_m())t.flags|=8192;else throw Hn=Du,Yc}function Fu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?vf():536870912,t.lanes|=e,_a|=e)}function Si(t,e){if(!ct)switch(t.tailMode){case"visible":break;case"collapsed":for(var l=t.tail,n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null;break;default:for(e=t.tail,l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&1206910976,n|=a.flags&1206910976,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function W0(t,e,l){var n=e.pendingProps;switch(wc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Dl(Qt),Jn(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(fa(e)?Hl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Uc())),Ut(e),null;case 26:var a=e.type,i=e.memoizedState;return t===null?(Hl(e),i!==null?(Ut(e),Vh(e,i)):(Ut(e),Er(e,a,null,n,l))):i?i!==t.memoizedState?(Hl(e),Ut(e),Vh(e,i)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&Hl(e),Ut(e),Er(e,a,t,n,l)),null;case 27:if(lu(e),l=$l.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Hl(e);else{if(!n){if(e.stateNode===null)throw Error(o(166));return Ut(e),e.subtreeFlags&=-33554433,null}t=cl.current,fa(e)?Sd(e):(t=rp(a,n,l),e.stateNode=t,Hl(e))}return Ut(e),e.subtreeFlags&=-33554433,null;case 5:if(lu(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Hl(e);else{if(!n){if(e.stateNode===null)throw Error(o(166));return Ut(e),e.subtreeFlags&=-33554433,null}if(i=cl.current,fa(e))Sd(e);else{var f=Di($l.current);switch(i){case 1:i=f.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=f.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=f.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?f.createElement("select",{is:n.is}):f.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?f.createElement(a,{is:n.is}):f.createElement(a)}}i[ae]=e,i[Se]=n;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=i;t:switch(re(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&Hl(e)}}return Ut(e),e.subtreeFlags&=-33554433,Er(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&Hl(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(o(166));if(t=$l.current,fa(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=te,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[ae]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||$m(t.nodeValue,l)),t||Jl(e,!0)}else t=Di(t).createTextNode(n),t[ae]=e,e.stateNode=t}return Ut(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=fa(e),l!==null){if(t===null){if(!n)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[ae]=e}else Cn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else l=Uc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(we(e),e):(we(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Ut(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=fa(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(o(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(317));a[ae]=e}else Cn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),a=!1}else a=Uc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(we(e),e):(we(e),null)}return we(e),(e.flags&128)!==0?(e.lanes=l,e):(l=n!==null,t=t!==null&&t.memoizedState!==null,l&&(n=e.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Fu(e,e.updateQueue),Ut(e),null);case 4:return Jn(),t===null&&io(e.stateNode.containerInfo),e.flags|=67108864,Ut(e),null;case 10:return Dl(e.type),Ut(e),null;case 19:if(Jc(e),n=e.memoizedState,n===null)return Ut(e),null;if(a=(e.flags&128)!==0,i=n.rendering,i===null)if(a)Si(n,!1);else{if($t!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=Hu(t),i!==null){for(e.flags|=128,Si(n,!1),t=i.updateQueue,e.updateQueue=t,Fu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)gd(l,t),l=l.sibling;return gi(e,se.current&1|2),ct&&Ol(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&Re()>rs&&(e.flags|=128,a=!0,Si(n,!1),e.lanes=4194304)}else{if(!a)if(t=Hu(i),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Fu(e,t),Si(n,!0),n.tail===null&&n.tailMode!=="collapsed"&&n.tailMode!=="visible"&&!i.alternate&&!ct)return Ut(e),null}else 2*Re()-n.renderingStartTime>rs&&l!==536870912&&(e.flags|=128,a=!0,Si(n,!1),e.lanes=4194304);n.isBackwards?(i.sibling=e.child,e.child=i):(t=n.last,t!==null?t.sibling=i:e.child=i,n.last=i)}if(n.tail!==null){t=n.tail;t:{for(l=t;l!==null;){if(l.alternate!==null){l=!1;break t}l=l.sibling}l=!0}return n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Re(),t.sibling=null,i=se.current,i=a?i&1|2:i&1,n.tailMode==="visible"||n.tailMode==="collapsed"||!l||ct?gi(e,i):(l=i,wt(ue,e),wt(se,l),pe===null&&(pe=e)),ct&&Ol(e,n.treeForkCount),t}return Ut(e),null;case 22:case 23:return we(e),Zc(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),l=e.updateQueue,l!==null&&Fu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&ne(Mn),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Dl(Qt),Ut(e),null;case 25:return null;case 30:return e.flags|=33554432,Ut(e),null}throw Error(o(156,e.tag))}function P0(t,e){switch(wc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Dl(Qt),Jn(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return lu(e),null;case 31:if(e.memoizedState!==null){if(we(e),e.alternate===null)throw Error(o(340));Cn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(we(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Cn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Jc(e),t=e.flags,t&65536?(e.flags=t&-65537|128,t=e.memoizedState,t!==null&&(t.rendering=null,t.tail=null),e.flags|=4,e):null;case 4:return Jn(),null;case 10:return Dl(e.type),null;case 22:case 23:return we(e),Zc(),t!==null&&ne(Mn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Dl(Qt),null;case 25:return null;default:return null}}function Gh(t,e){switch(wc(e),e.tag){case 3:Dl(Qt),Jn();break;case 26:case 27:case 5:lu(e);break;case 4:Jn();break;case 31:e.memoizedState!==null&&we(e);break;case 13:we(e);break;case 19:Jc(e);break;case 10:Dl(e.type);break;case 22:case 23:we(e),Zc(),t!==null&&ne(Mn);break;case 24:Dl(Qt)}}function ji(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&t)===t){n=void 0;var i=l.create,f=l.inst;n=i(),f.destroy=n}l=l.next}while(l!==a)}}catch(h){Nt(e,e.return,h)}}function an(t,e,l){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&t)===t){var f=n.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,a=e;var v=l,T=h;try{T()}catch(A){Nt(a,v,A)}}}n=n.next}while(n!==i)}}catch(A){Nt(e,e.return,A)}}function Qh(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Md(e,l)}catch(n){Nt(t,t.return,n)}}}function Xh(t,e,l){l.props=Ln(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){Nt(t,e,n)}}function dl(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:var a=t.stateNode,i=zl(t.memoizedProps,a);(a.ref===null||a.ref.name!==i)&&(a.ref=Pm(i)),n=a.ref;break;case 7:if(t.stateNode===null){var f=new Be(t);y(t.child,!1,Vy,f,void 0,void 0),t.stateNode=f}n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(h){Nt(t,e,h)}}function ce(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Nt(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Nt(t,e,a)}else l.current=null}function Wu(t,e){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&e!==null)for(var l=0;l<e.length;l++)ip(t.stateNode,e[l])}function Zh(t){for(var e=t.return;e!==null&&(Nr(e)&&ip(t.stateNode,e.stateNode),!Tr(e));)e=e.return}function _i(t){for(var e=t.return;e!==null&&(Nr(e)&&Gy(t.stateNode,e.stateNode),!Tr(e));)e=e.return}function Tr(t){return t.tag===5||t.tag===3||t.tag===27}function Nr(t){return t&&t.tag===7&&t.stateNode!==null}function zr(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){Nt(t,t.return,a)}}function Rr(t,e,l){try{var n=t.stateNode;Ty(n,t.type,l,e),n[Se]=e}catch(a){Nt(t,t.return,a)}}function Kh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&dn(t.type)||t.tag===4}function Cr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Kh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&dn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Or(t,e,l,n){var a=t.tag;if(a===5||a===6)a=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(a,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(a),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=rl)),Wu(t,n),yt=!0;else if(a!==4&&(a===27&&(Wu(t,n),n=null,dn(t.type)&&(l=t.stateNode,e=null)),t=t.child,t!==null))for(Or(t,e,l,n),t=t.sibling;t!==null;)Or(t,e,l,n),t=t.sibling}function Pu(t,e,l,n){var a=t.tag;if(a===5||a===6)a=t.stateNode,e?l.insertBefore(a,e):l.appendChild(a),Wu(t,n),yt=!0;else if(a!==4&&(a===27&&(Wu(t,n),n=null,dn(t.type)&&(l=t.stateNode)),t=t.child,t!==null))for(Pu(t,e,l,n),t=t.sibling;t!==null;)Pu(t,e,l,n),t=t.sibling}function Jh(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);re(e,n,l),e[ae]=t,e[Se]=l}catch(i){Nt(t,t.return,i)}}var ts=!1,Me=null;function Ih(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(ts=!0)}var hl=null;function Fh(){var t=hl;return hl=null,t}var _e=0;function xa(t,e,l,n,a){return _e=0,Wh(t.child,e,l,n,a)}function Wh(t,e,l,n,a){for(var i=!1;t!==null;){if(t.tag===5){var f=t.stateNode;if(n!==null){var h=mo(f);n.push(h),h.view&&(i=!0)}else i||mo(f).view&&(i=!0);ts=!0,Fm(f,_e===0?e:e+"_"+_e,l),_e++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&a||Wh(t.child,e,l,n,a)&&(i=!0));t=t.sibling}return i}function ml(t,e){for(;t!==null;)t.tag===5?Wm(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||ml(t.child,e)),t=t.sibling}function es(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(es(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired)){var e=t.memoizedProps;if(e.name==null||e.name==="auto")throw Error(o(544));var l=e.name;e=Rl(e.default,e.share),e!=="none"&&(xa(t,l,e,null,!1)||ml(t.child,!1))}t=t.sibling}}function Ar(t,e){if(t.tag===30){var l=t.stateNode,n=t.memoizedProps,a=zl(n,l),i=Rl(n.default,l.paired?n.share:n.enter);i!=="none"?xa(t,a,i,null,!1)?(es(t),l.paired||e||za(t,n.onEnter)):ml(t.child,!1):es(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Ar(t,e),t=t.sibling;else es(t)}function Dr(t){if(Me!==null&&Me.size!==0){var e=Me;if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var l=t.memoizedProps,n=l.name;if(n!=null&&n!=="auto"){var a=e.get(n);if(a!==void 0){var i=Rl(l.default,l.share);if(i!=="none"&&(xa(t,n,i,null,!1)?(i=t.stateNode,a.paired=i,i.paired=a,za(t,l.onShare)):ml(t.child,!1)),e.delete(n),e.size===0)break}}}Dr(t)}t=t.sibling}}}function wr(t){if(t.tag===30){var e=t.memoizedProps,l=zl(e,t.stateNode),n=Me!==null?Me.get(l):void 0,a=Rl(e.default,n!==void 0?e.share:e.exit);a!=="none"&&(xa(t,l,a,null,!1)?n!==void 0?(a=t.stateNode,n.paired=a,a.paired=n,Me.delete(l),za(t,e.onShare)):za(t,e.onExit):ml(t.child,!1)),Me!==null&&Dr(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)wr(t),t=t.sibling;else Me!==null&&Dr(t)}function Ph(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,l=zl(e,t.stateNode);e=Rl(e.default,e.update),t.flags&=-5,e!=="none"&&xa(t,l,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&Ph(t);t=t.sibling}}function Mr(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var e=t.stateNode;e.paired!==null&&(e.paired=null,ml(t.child,!1))}Mr(t)}t=t.sibling}}function ls(t){if(t.tag===30)t.stateNode.paired=null,ml(t.child,!1),Mr(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)ls(t),t=t.sibling;else Mr(t)}function tm(t){for(t=t.child;t!==null;)t.tag===30?ml(t.child,!1):(t.subtreeFlags&33554432)!==0&&tm(t),t=t.sibling}function Ur(t,e,l,n,a,i,f){for(var h=!1;e!==null;){if(e.tag===5){var v=e.stateNode;if(i!==null&&_e<i.length){var T=i[_e],A=mo(v);(T.view||A.view)&&(h=!0);var w;if(w=(t.flags&4)===0)if(A.clip)w=!0;else{w=T.rect;var _=A.rect;w=w.y!==_.y||w.x!==_.x||w.height!==_.height||w.width!==_.width}w&&(t.flags|=4),A.abs?A=!T.abs:(T=T.rect,A=A.rect,A=T.height!==A.height||T.width!==A.width),A&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&Fm(v,_e===0?l:l+"_"+_e,a),h&&(t.flags&4)!==0||(hl===null&&(hl=[]),hl.push(v,_e===0?n:n+"_"+_e,e.memoizedProps)),_e++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&f?t.flags|=e.flags&32:Ur(t,e.child,l,n,a,i,f)&&(h=!0));e=e.sibling}return h}function em(t,e){for(t=t.child;t!==null;){if(t.tag===30){var l=t.memoizedProps,n=t.stateNode,a=zl(l,n),i=Rl(l.default,l.update),f;f=t.memoizedState,t.memoizedState=null,n=t;var h=t.child;_e=0,a=Ur(n,h,a,a,i,f,!1),(t.flags&4)!==0&&a&&za(t,l.onUpdate)}else(t.subtreeFlags&33554432)!==0&&em(t);t=t.sibling}}var ee=!1,Et=!1,pl=!1,Hr=!1,lm=typeof WeakSet=="function"?WeakSet:Set,le=null,gl=!1,Ei=!1,ns=!1,kr=!1;function ty(t,e,l){if(t=t.containerInfo,co=ka,t=ud(t),_c(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,f=a.focusNode;a=a.focusOffset;try{n.nodeType,f.nodeType}catch{n=null;break t}var h=0,v=-1,T=-1,A=0,w=0,_=t,O=null;e:for(;;){for(var q;_!==n||i!==0&&_.nodeType!==3||(v=h+i),_!==f||a!==0&&_.nodeType!==3||(T=h+a),_.nodeType===3&&(h+=_.nodeValue.length),(q=_.firstChild)!==null;)O=_,_=q;for(;;){if(_===t)break e;if(O===n&&++A===i&&(v=h),O===f&&++w===a&&(T=h),(q=_.nextSibling)!==null)break;_=O,O=_.parentNode}_=q}n=v===-1||T===-1?null:{start:v,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(ro={focusedElem:t,selectionRange:n},ka=!1,l=(l&335544064)===l,le=e,e=l?9270:1024;le!==null;){if(t=le,l&&(n=t.deletions,n!==null))for(i=0;i<n.length;i++)l&&wr(n[i]);if(t.alternate===null&&(t.flags&2)!==0)l&&Ih(t),as(l);else{if(t.tag===22){if(n=t.alternate,t.memoizedState!==null){n!==null&&n.memoizedState===null&&l&&wr(n),as(l);continue}else if(n!==null&&n.memoizedState!==null){l&&Ih(t),as(l);continue}}n=t.child,(t.subtreeFlags&e)!==0&&n!==null?(n.return=t,le=n):(l&&Ph(t),as(l))}}Me=null}function as(t){for(;le!==null;){var e=le,l=t,n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&n!==null){l=void 0,a=n.memoizedProps,n=n.memoizedState;var i=e.stateNode;try{var f=Ln(e.type,a);l=i.getSnapshotBeforeUpdate(f,n),i.__reactInternalSnapshotBeforeUpdate=l}catch(h){Nt(e,e.return,h)}}break;case 3:if((a&1024)!==0){if(n=e.stateNode.containerInfo,l=n.nodeType,l===9)vo(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":vo(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&n!==null&&(l=zl(n.memoizedProps,n.stateNode),a=e.memoizedProps,a=Rl(a.default,a.update),a!=="none"&&xa(n,l,a,n.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(o(163))}if(n=e.sibling,n!==null){n.return=e.return,le=n;break}le=e.return}}function nm(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:vl(t,l),n&4&&ji(5,l);break;case 1:if(vl(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(f){Nt(l,l.return,f)}else{var a=Ln(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Nt(l,l.return,f)}}n&64&&Qh(l),n&512&&dl(l,l.return);break;case 3:if(vl(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Md(t,e)}catch(f){Nt(l,l.return,f)}}break;case 27:e===null&&n&4&&Jh(l);case 26:case 5:vl(t,l),e===null&&n&4&&zr(l),n&512&&dl(l,l.return);break;case 12:vl(t,l);break;case 31:vl(t,l),n&4&&sm(t,l);break;case 13:vl(t,l),n&4&&cm(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=dy.bind(null,l),Zy(t,l))));break;case 22:if(n=l.memoizedState!==null||ee,!n){var i=e!==null&&e.memoizedState!==null||Et;e=ee,a=Et,ee=n,(Et=i)&&!a?(n=2,(l.subtreeFlags&8772)!==0&&(n|=1),nl(t,l,n)):vl(t,l),ee=e,Et=a}break;case 30:vl(t,l),n&512&&dl(l,l.return);break;case 7:n&512&&dl(l,l.return);default:vl(t,l)}}function Br(t,e){for(t=t.child;t!==null;)am(t,e),t=t.sibling}function am(t,e){switch(t.tag){case 5:case 26:try{var l=t.stateNode;if(e){var n=l.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}else{var a=t.stateNode,i=t.memoizedProps.style,f=i!=null&&i.hasOwnProperty("display")?i.display:null;a.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(v){Nt(t,t.return,v)}Lr(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,yt=!0}catch(v){Nt(t,t.return,v)}break;case 18:try{var h=t.stateNode;e?Im(h,!0):Im(t.stateNode,!1)}catch(v){Nt(t,t.return,v)}break;case 22:case 23:t.memoizedState===null&&Br(t,e);break;default:Br(t,e)}}function Lr(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){t:{var l=t,n=e;switch(l.tag){case 4:am(l,n);break t;case 22:l.memoizedState===null&&Lr(l,n);break t;default:Lr(l,n)}}t=t.sibling}}function im(t){var e=t.alternate;e!==null&&(t.alternate=null,im(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ru(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var kt=null,Ee=!1;function el(t,e,l){for(l=l.child;l!==null;)um(t,e,l),l=l.sibling}function um(t,e,l){if(Ce&&typeof Ce.onCommitFiberUnmount=="function")try{Ce.onCommitFiberUnmount(Za,l)}catch{}switch(l.tag){case 26:Et||ce(l,e),el(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!Et&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Et||ce(l,e),_i(l);var n=kt,a=Ee;dn(l.type)&&(kt=l.stateNode,Ee=!1),el(t,e,l),op(l.stateNode,l.type,l.memoizedProps),kt=n,Ee=a;break;case 5:Et||ce(l,e),_i(l);case 6:if(l.tag===6&&_i(l),n=kt,a=Ee,kt=null,el(t,e,l),kt=n,Ee=a,kt!==null)if(Ee)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(l.stateNode),yt=!0}catch(i){Nt(l,e,i)}else try{kt.removeChild(l.stateNode),yt=!0}catch(i){Nt(l,e,i)}break;case 18:kt!==null&&(Ee?(t=kt,Jm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Ba(t)):Jm(kt,l.stateNode));break;case 4:n=kt,a=Ee,kt=l.stateNode.containerInfo,Ee=!0,el(t,e,l),kt=n,Ee=a;break;case 0:case 11:case 14:case 15:an(2,l,e),Et||an(4,l,e),el(t,e,l);break;case 1:Et||(ce(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&Xh(l,e,n)),el(t,e,l);break;case 21:el(t,e,l);break;case 22:Et=(n=Et)||l.memoizedState!==null,el(t,e,l),Et=n;break;case 30:ce(l,e),el(t,e,l);break;case 7:Et||ce(l,e),el(t,e,l);break;default:el(t,e,l)}}function sm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ba(t)}catch(l){Nt(e,e.return,l)}}}function cm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ba(t)}catch(l){Nt(e,e.return,l)}}function ey(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new lm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new lm),e;default:throw Error(o(435,t.tag))}}function is(t,e){var l=ey(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var a=hy.bind(null,t,n);n.then(a,a)}})}function ye(t,e,l){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],f=t,h=e,v=h;t:for(;v!==null;){switch(v.tag){case 27:if(dn(v.type)){kt=v.stateNode,Ee=!1;break t}break;case 5:kt=v.stateNode,Ee=!1;break t;case 3:case 4:kt=v.stateNode.containerInfo,Ee=!0;break t}v=v.return}if(kt===null)throw Error(o(160));um(f,h,i),kt=null,Ee=!1,f=i.alternate,f!==null&&(f.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)rm(e,t,l),e=e.sibling}var ll=null;function rm(t,e,l){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(a&4&&(n=t.updateQueue,n=n!==null?n.events:null,n!==null))for(var i=0;i<n.length;i++){var f=n[i];f.ref.impl=f.nextImpl}ye(e,t,l),xe(t),a&4&&(an(3,t,t.return),ji(3,t),an(5,t,t.return));break;case 1:ye(e,t,l),xe(t),a&512&&(Et||n===null||ce(n,n.return)),a&64&&ee&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?e:l.concat(e))));break;case 26:if(i=ll,ye(e,t,l),xe(t),a&512&&(Et||n===null||ce(n,n.return)),a&4)if(a=n!==null?n.memoizedState:null,l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null)if(ee)t.stateNode=Xm(t.type,t.memoizedProps,e.containerInfo,t);else{t:{e=t.type,l=t.memoizedProps,a=i.ownerDocument||i;e:switch(e){case"title":n=a.getElementsByTagName("title")[0],(!n||n[Ia]||n[ae]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=a.createElement(e),a.head.insertBefore(n,a.querySelector("head > title"))),re(n,e,l),n[ae]=t,Pt(n),e=n;break t;case"link":if(i=gp("link","href",a).get(e+(l.href||""))){for(f=0;f<i.length;f++)if(n=i[f],n.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&n.getAttribute("rel")===(l.rel==null?null:l.rel)&&n.getAttribute("title")===(l.title==null?null:l.title)&&n.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(f,1);break e}}n=a.createElement(e),re(n,e,l),a.head.appendChild(n);break;case"meta":if(i=gp("meta","content",a).get(e+(l.content||""))){for(f=0;f<i.length;f++)if(n=i[f],n.getAttribute("content")===(l.content==null?null:""+l.content)&&n.getAttribute("name")===(l.name==null?null:l.name)&&n.getAttribute("property")===(l.property==null?null:l.property)&&n.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&n.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(f,1);break e}}n=a.createElement(e),re(n,e,l),a.head.appendChild(n);break;default:throw Error(o(468,e))}n[ae]=t,Pt(n),e=n}t.stateNode=e}else ee||Eo(i,t.type,t.stateNode);else t.stateNode=pp(i,l,t.memoizedProps);else a!==l?(a===null?(e=n.stateNode,e===null||Et||e.parentNode.removeChild(e)):a.count--,l===null?ee||Eo(i,t.type,t.stateNode):pp(i,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Rr(t,t.memoizedProps,n.memoizedProps);break;case 27:ye(e,t,l),xe(t),a&512&&(Et||n===null||ce(n,n.return)),n!==null&&a&4&&Rr(t,t.memoizedProps,n.memoizedProps);break;case 5:if(i=pl,pl=!1,ye(e,t,l),pl=i,xe(t),a&512&&(Et||n===null||ce(n,n.return)),t.flags&32){e=t.stateNode;try{ea(e,""),yt=!0}catch(A){Nt(t,t.return,A)}}a&4&&t.stateNode!=null&&(e=t.memoizedProps,Rr(t,e,n!==null?n.memoizedProps:e)),a&1024&&(Hr=!0);break;case 6:if(ye(e,t,l),xe(t),a&4){if(t.stateNode===null)throw Error(o(162));e=t.memoizedProps,l=t.stateNode;try{l.nodeValue=e,yt=!0}catch(A){Nt(t,t.return,A)}}break;case 3:if(yt=!1,bs=null,i=ll,ll=wi(e.containerInfo),ye(e,t,l),ll=i,xe(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Ba(e.containerInfo)}catch(A){Nt(t,t.return,A)}Hr&&(Hr=!1,om(t)),yt=!1;break;case 4:a=pl,pl=ee,n=Of(),i=ll,ll=wi(t.stateNode.containerInfo),ye(e,t,l),xe(t),ll=i,yt&&Ei&&(ns=!0),yt=n,pl=a;break;case 12:ye(e,t,l),xe(t);break;case 31:ye(e,t,l),xe(t),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,is(t,e)));break;case 13:ye(e,t,l),xe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(cs=Re()),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,is(t,e)));break;case 22:i=t.memoizedState!==null,f=n!==null&&n.memoizedState!==null;var h=ee,v=Et,T=pl;ee=h||i,pl=T||i,Et=v||f,ye(e,t,l),Et=v,pl=T,ee=h,xe(t),a&8192&&(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,!i||n===null||f||ee||Et||(e=f||Et,l=ee,n=Et,ee=i||ee,Et=e,un(t,2),ee=l,Et=n),!i&&pl||Br(t,i)),a&4&&(e=t.updateQueue,e!==null&&(l=e.retryQueue,l!==null&&(e.retryQueue=null,is(t,l))));break;case 19:ye(e,t,l),xe(t),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,is(t,e)));break;case 30:a&512&&(Et||n===null||ce(n,n.return)),a=Of(),i=Ei,f=(l&335544064)===l,h=t.memoizedProps,Ei=f&&Rl(h.default,h.update)!=="none",ye(e,t,l),xe(t),f&&n!==null&&yt&&(t.flags|=4),Ei=i,yt=a;break;case 21:break;case 7:a&512&&(Et||n===null||ce(n,n.return)),n&&n.stateNode!==null&&(n.stateNode._fragmentFiber=t);default:ye(e,t,l),xe(t)}}function xe(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(Kh(n)){l=n;break}n=n.return}n=null;for(var a=t.return;a!==null;){if(Nr(a)){var i=a.stateNode;n===null?n=[i]:n.push(i)}if(Tr(a))break;a=a.return}var f=n;if(l==null)throw Error(o(160));switch(l.tag){case 27:var h=l.stateNode,v=Cr(t);Pu(t,v,h,f);break;case 5:var T=l.stateNode;l.flags&32&&(ea(T,""),l.flags&=-33);var A=Cr(t);Pu(t,A,T,f);break;case 3:case 4:var w=l.stateNode.containerInfo,_=Cr(t);Or(t,_,w,f);break;default:throw Error(o(161))}}catch(O){Nt(t,t.return,O)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function om(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;om(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,ka=!0,e.reset(),ka=!1),t=t.sibling}}function ba(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)fm(e,t),e=e.sibling;else em(e)}function fm(t,e){var l=t.alternate;if(l===null)Ar(t,!1);else switch(t.tag){case 3:if(kr=gl=!1,Fh(),ba(e,t),!gl&&!ns){if(t=hl,t!==null)for(var n=0;n<t.length;n+=3){l=t[n];var a=t[n+1];Wm(l,t[n+2]),l=l.ownerDocument.documentElement,l!==null&&l.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}t=e.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===""&&(t.style.viewTransitionName="none",t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),kr=!0}hl=null;break;case 5:ba(e,t);break;case 4:n=gl,gl=!1,ba(e,t),gl&&(ns=!0),gl=n;break;case 22:t.memoizedState===null&&(l.memoizedState!==null?Ar(t,!1):ba(e,t));break;case 30:n=gl,a=Fh(),gl=!1,ba(e,t),gl&&(t.flags|=4);var i=t.memoizedProps,f=t.stateNode;e=zl(i,f),f=zl(l.memoizedProps,f);var h=Rl(i.default,i.update);h==="none"?e=!1:(i=l.memoizedState,l.memoizedState=null,l=t.child,_e=0,e=Ur(t,l,e,f,h,i,!0),_e!==(i===null?0:i.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(za(t,t.memoizedProps.onUpdate),hl=a):a!==null&&(a.push.apply(a,hl),hl=a),gl=(t.flags&32)!==0?!0:n;break;default:ba(e,t)}}function vl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)nm(t,e.alternate,e),e=e.sibling}function un(t,e){for(t=t.child;t!==null;){var l=t,n=e;switch(l.tag){case 0:case 11:case 14:case 15:an(4,l,l.return),un(l,n);break;case 1:ce(l,l.return);var a=l.stateNode;typeof a.componentWillUnmount=="function"&&Xh(l,l.return,a),un(l,n);break;case 27:(n&2)!==0&&op(l.stateNode,l.type,l.memoizedProps);case 5:ce(l,l.return),l.tag!==5&&l.tag!==27||_i(l),un(l,n);break;case 6:_i(l);break;case 26:ce(l,l.return),a=l.stateNode,l.memoizedState!==null||a===null||Et||a.parentNode.removeChild(a),un(l,n);break;case 22:l.memoizedState===null&&un(l,n);break;case 30:ce(l,l.return),un(l,n);break;case 7:ce(l,l.return);default:un(l,n)}t=t.sibling}}function nl(t,e,l){for(l=(e.subtreeFlags&8772)!==0?l:l&-2,e=e.child;e!==null;){var n=e.alternate,a=t,i=e,f=i.flags,h=(l&1)!==0;switch(i.tag){case 0:case 11:case 15:nl(a,i,l),ji(4,i);break;case 1:if(nl(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(A){Nt(n,n.return,A)}if(n=i,a=n.updateQueue,a!==null){var v=n.stateNode;try{var T=a.shared.hiddenCallbacks;if(T!==null)for(a.shared.hiddenCallbacks=null,a=0;a<T.length;a++)wd(T[a],v)}catch(A){Nt(n,n.return,A)}}h&&f&64&&Qh(i),dl(i,i.return);break;case 27:(l&2)!==0&&Jh(i);case 5:i.tag!==5&&i.tag!==27||Zh(i),nl(a,i,l),h&&n===null&&f&4&&zr(i),dl(i,i.return);break;case 6:Zh(i);break;case 26:v=i.stateNode,i.memoizedState!==null||v===null||ee||Eo(wi(v.ownerDocument),i.type,v),nl(a,i,l),h&&n===null&&f&4&&zr(i),dl(i,i.return);break;case 12:nl(a,i,l);break;case 31:nl(a,i,l),h&&f&4&&sm(a,i);break;case 13:nl(a,i,l),h&&f&4&&cm(a,i);break;case 22:i.memoizedState===null&&nl(a,i,l),dl(i,i.return);break;case 30:nl(a,i,l),dl(i,i.return);break;case 7:dl(i,i.return);default:nl(a,i,l)}e=e.sibling}}function qr(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&ri(l))}function Yr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ri(t))}function Je(t,e,l,n){var a=(l&335544064)===l;if(e.subtreeFlags&(a?10262:10256))for(e=e.child;e!==null;)dm(t,e,l,n),e=e.sibling;else a&&tm(e)}function dm(t,e,l,n){var a=(l&335544064)===l;a&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&ls(e);var i=e.flags;switch(e.tag){case 0:case 11:case 15:Je(t,e,l,n),i&2048&&ji(9,e);break;case 1:Je(t,e,l,n);break;case 3:Je(t,e,l,n),a&&kr&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,t.style.viewTransitionName==="root"&&(t.style.viewTransitionName=""),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName==="none"&&(t.style.viewTransitionName="")),i&2048&&(i=null,e.alternate!==null&&(i=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==i&&(e.refCount++,i!=null&&ri(i)));break;case 12:if(i&2048){Je(t,e,l,n),i=e.stateNode;try{var f=e.memoizedProps,h=f.id,v=f.onPostCommit;typeof v=="function"&&v(h,e.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(T){Nt(e,e.return,T)}}else Je(t,e,l,n);break;case 31:Je(t,e,l,n);break;case 13:Je(t,e,l,n);break;case 23:break;case 22:f=e.stateNode,h=e.alternate,e.memoizedState!==null?(a&&h!==null&&h.memoizedState===null&&ls(h),f._visibility&2?Je(t,e,l,n):Ti(t,e)):(a&&h!==null&&h.memoizedState!==null&&ls(e),f._visibility&2?Je(t,e,l,n):(f._visibility|=2,Sa(t,e,l,n,(e.subtreeFlags&10256)!==0||!1))),i&2048&&qr(h,e);break;case 24:Je(t,e,l,n),i&2048&&Yr(e.alternate,e);break;case 30:a&&(i=e.alternate,i!==null&&(ml(i.child,!0),ml(e.child,!0))),Je(t,e,l,n);break;default:Je(t,e,l,n)}}function Sa(t,e,l,n,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,f=e,h=l,v=n,T=f.flags;switch(f.tag){case 0:case 11:case 15:Sa(i,f,h,v,a),ji(8,f);break;case 23:break;case 22:var A=f.stateNode;f.memoizedState!==null?A._visibility&2?Sa(i,f,h,v,a):Ti(i,f):(A._visibility|=2,Sa(i,f,h,v,a)),a&&T&2048&&qr(f.alternate,f);break;case 24:Sa(i,f,h,v,a),a&&T&2048&&Yr(f.alternate,f);break;default:Sa(i,f,h,v,a)}e=e.sibling}}function Ti(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,a=n.flags;switch(n.tag){case 22:Ti(l,n),a&2048&&qr(n.alternate,n);break;case 24:Ti(l,n),a&2048&&Yr(n.alternate,n);break;default:Ti(l,n)}e=e.sibling}}var qn=8192;function Yn(t,e,l){if(t.subtreeFlags&qn)for(t=t.child;t!==null;)hm(t,e,l),t=t.sibling}function hm(t,e,l){switch(t.tag){case 26:Yn(t,e,l),t.flags&qn&&(t.memoizedState!==null?sx(l,ll,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&bp(l,t)));break;case 5:Yn(t,e,l),t.flags&qn&&(t=t.stateNode,(e&335544128)===e&&bp(l,t));break;case 3:case 4:var n=ll;ll=wi(t.stateNode.containerInfo),Yn(t,e,l),ll=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=qn,qn=16777216,Yn(t,e,l),qn=n):Yn(t,e,l));break;case 30:if((t.flags&qn)!==0&&(n=t.memoizedProps.name,n!=null&&n!=="auto")){var a=t.stateNode;a.paired=null,Me===null&&(Me=new Map),Me.set(n,a)}Yn(t,e,l);break;default:Yn(t,e,l)}}function mm(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Ni(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];le=n,gm(n,t)}mm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pm(t),t=t.sibling}function pm(t){switch(t.tag){case 0:case 11:case 15:Ni(t),t.flags&2048&&an(9,t,t.return);break;case 3:Ni(t);break;case 12:Ni(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,us(t)):Ni(t);break;default:Ni(t)}}function us(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];le=n,gm(n,t)}mm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:an(8,e,e.return),us(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,us(e));break;default:us(e)}t=t.sibling}}function gm(t,e){for(;le!==null;){var l=le;switch(l.tag){case 0:case 11:case 15:an(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:ri(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,le=n;else t:for(l=t;le!==null;){n=le;var a=n.sibling,i=n.return;if(im(n),n===l){le=null;break t}if(a!==null){a.return=i,le=a;break t}le=i}}}var ly={getCacheForType:function(t){var e=ie(Qt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return ie(Qt).controller.signal}},ny=typeof WeakMap=="function"?WeakMap:Map,St=0,Dt=null,ot=null,dt=0,Tt=0,Ue=null,sn=!1,ja=!1,$r=!1,kl=0,$t=0,cn=0,$n=0,ss=0,He=0,_a=0,zi=null,Te=null,Vr=!1,cs=0,vm=0,rs=1/0,os=null,rn=null,Lt=0,al=null,Vn=null,yl=0,Gr=0,Qr=null,ym=null,Ea=null,Ta=null,Na=null,Ri=0,fs=null;function ke(){return(St&2)!==0&&dt!==0?dt&-dt:Z.T!==null?eo():Sf()}function xm(){if(He===0)if((dt&536870912)===0||ct){var t=iu;iu<<=1,(iu&3932160)===0&&(iu=262144),He=t}else He=536870912;return t=ue.current,t!==null&&(t.flags|=32),He}function za(t,e){if(e!=null){var l=t.stateNode,n=l.ref;n===null&&(n=l.ref=Pm(zl(t.memoizedProps,l))),Ta===null&&(Ta=[]),Ta.push(e.bind(null,n))}}function Ne(t,e,l){(t===Dt&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)&&(Ra(t,0),on(t,dt,He,!1)),Ja(t,l),((St&2)===0||t!==Dt)&&(t===Dt&&((St&2)===0&&($n|=l),$t===4&&on(t,dt,He,!1)),xl(t))}function bm(t,e,l){if((St&6)!==0)throw Error(o(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Ka(t,e),a=n?uy(t,e):Zr(t,e,!0),i=n;do{if(a===0){ja&&!n&&on(t,e,0,!1);break}else{if(l=t.current.alternate,i&&!ay(l)){a=Zr(t,e,!1),i=!1;continue}if(a===2){if(i=e,t.errorRecoveryDisabledLanes&i)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var h=t;a=zi;var v=h.current.memoizedState.isDehydrated;if(v&&(Ra(h,f).flags|=256),f=Zr(h,f,!1),f!==2&&f!==6){if($r&&!v){h.errorRecoveryDisabledLanes|=i,$n|=i,a=4;break t}i=Te,Te=a,i!==null&&(Te===null?Te=i:Te.push.apply(Te,i))}a=f}if(i=!1,a!==2)continue}}if(a===1){Ra(t,0),on(t,e,0,!0);break}t:{switch(n=t,i=a,i){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:on(n,e,He,!sn);break t;case 2:Te=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(a=cs+300-Re(),10<a)){if(on(n,e,He,!sn),su(n,0,!0)!==0)break t;yl=e,n.timeoutHandle=ho(Sm.bind(null,n,l,Te,os,Vr,e,He,$n,_a,sn,i,"Throttled",-0,0),a);break t}Sm(n,l,Te,os,Vr,e,He,$n,_a,sn,i,null,-0,0)}}break}while(!0);xl(t)}function Sm(t,e,l,n,a,i,f,h,v,T,A,w,_,O){t.timeoutHandle=-1;var q=e.subtreeFlags,Q=(i&335544064)===i;if(w=null,(Q||q&8192||(q&16785408)===16785408)&&(w={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rl},Me=null,hm(e,i,w),Q&&(q=w,Q=t.containerInfo,Q=(Q.nodeType===9?Q:Q.ownerDocument).__reactViewTransition,Q!=null&&(q.count++,q.waitingForViewTransition=!0,q=Hi.bind(q),Q.finished.then(q,q))),q=(i&62914560)===i?cs-Re():(i&4194048)===i?vm-Re():0,q=cx(w,q),q!==null)){yl=i,t.cancelPendingCommit=q(Cm.bind(null,t,e,i,l,n,a,f,h,v,T,A,w,null,_,O)),on(t,i,f,!T);return}Cm(t,e,i,l,n,a,f,h,v,T,A,w)}function ay(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!De(i(),a))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function on(t,e,l,n){e=gf(t,e),e&=~ss,e&=~$n,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var i=31-Oe(a),f=1<<i;n[i]=-1,a&=~f}l!==0&&yf(t,l,e)}function ds(){return(St&6)===0?(Ci(0),!1):!0}function Xr(){if(ot!==null){if(Tt===0)var t=ot.return;else t=ot,Al=On=null,tr(t),ma=null,di=0,t=ot;for(;t!==null;)Gh(t.alternate,t),t=t.return;ot=null}}function Ra(t,e){var l=t.timeoutHandle;return l!==-1&&(t.timeoutHandle=-1,Ry(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),yl=0,Xr(),Dt=t,ot=l=Cl(t.current,null),dt=e,Tt=0,Ue=null,sn=!1,ja=Ka(t,e),$r=!1,_a=He=ss=$n=cn=$t=0,Te=zi=null,Vr=!1,kl=gf(t,e),bu(),l}function jm(t,e){ut=null,Z.H=Qu,e===ha||e===Au?(e=Cd(),Tt=3):e===Yc?(e=Cd(),Tt=4):Tt=e===pr?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ue=e,ot===null&&($t=1,Xu(t,Qe(e,t.current)))}function _m(){var t=ue.current;return t===null?!0:(dt&4194048)===dt?pe===null:(dt&62914560)===dt||(dt&536870912)!==0?t===pe:!1}function Em(){var t=Z.H;return Z.H=Qu,t===null?Qu:t}function Tm(){var t=Z.A;return Z.A=ly,t}function hs(){$t=4,sn||(dt&4194048)!==dt&&ue.current!==null||(ja=!0),(cn&134217727)===0&&($n&134217727)===0||Dt===null||on(Dt,dt,He,!1)}function Zr(t,e,l){var n=St;St|=2;var a=Em(),i=Tm();(Dt!==t||dt!==e)&&(os=null,Ra(t,e)),e=!1;var f=$t;t:do try{if(Tt!==0&&ot!==null){var h=ot,v=Ue;switch(Tt){case 8:Xr(),f=6;break t;case 3:case 2:case 9:case 6:ue.current===null&&(e=!0);var T=Tt;if(Tt=0,Ue=null,Ca(t,h,v,T),l&&ja){f=0;break t}break;default:T=Tt,Tt=0,Ue=null,Ca(t,h,v,T)}}iy(),f=$t;break}catch(A){jm(t,A)}while(!0);return e&&t.shellSuspendCounter++,Al=On=null,St=n,Z.H=a,Z.A=i,ot===null&&(Dt=null,dt=0,bu()),f}function iy(){for(;ot!==null;)Nm(ot)}function uy(t,e){var l=St;St|=2;var n=Em(),a=Tm();Dt!==t||dt!==e?(os=null,rs=Re()+500,Ra(t,e)):ja=Ka(t,e);t:do try{if(Tt!==0&&ot!==null){e=ot;var i=Ue;e:switch(Tt){case 1:Tt=0,Ue=null,Ca(t,e,i,1);break;case 2:case 9:if(zd(i)){Tt=0,Ue=null,zm(e);break}e=function(){Tt!==2&&Tt!==9||Dt!==t||(Tt=7),xl(t)},i.then(e,e);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:zd(i)?(Tt=0,Ue=null,zm(e)):(Tt=0,Ue=null,Ca(t,e,i,7));break;case 5:var f=null;switch(ot.tag){case 26:f=ot.memoizedState;case 5:case 27:var h=ot;if(f?yp(f):h.stateNode.complete){Tt=0,Ue=null;var v=h.sibling;if(v!==null)ot=v;else{var T=h.return;T!==null?(ot=T,ms(T)):ot=null}break e}}Tt=0,Ue=null,Ca(t,e,i,5);break;case 6:Tt=0,Ue=null,Ca(t,e,i,6);break;case 8:Xr(),$t=6;break t;default:throw Error(o(462))}}sy();break}catch(A){jm(t,A)}while(!0);return Al=On=null,Z.H=n,Z.A=a,St=l,ot!==null?0:(Dt=null,dt=0,bu(),$t)}function sy(){for(;ot!==null&&!Ev();)Nm(ot)}function Nm(t){var e=$h(t.alternate,t,kl);t.memoizedProps=t.pendingProps,e===null?ms(t):ot=e}function zm(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Uh(l,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=Uh(l,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:tr(e);var n=e;n===te&&(ct?(Nu(n),n.tag===5&&n.stateNode!=null&&(Mt=n.stateNode)):(Nu(n),ct=!0));default:Gh(l,e),e=ot=gd(e,kl),e=$h(l,e,kl)}t.memoizedProps=t.pendingProps,e===null?ms(t):ot=e}function Ca(t,e,l,n){Al=On=null,tr(e),ma=null,di=0;var a=e.return;try{if(K0(t,a,e,l,dt)){$t=1,Xu(t,Qe(l,t.current)),ot=null;return}}catch(i){if(a!==null)throw ot=a,i;$t=1,Xu(t,Qe(l,t.current)),ot=null;return}e.flags&32768?(ct||n===1?t=!0:ja||(dt&536870912)!==0?t=!1:(sn=t=!0,(n===2||n===9||n===3||n===6)&&(n=ue.current,n!==null&&n.tag===13&&(n.flags|=16384))),Rm(e,t)):ms(e)}function ms(t){var e=t;do{if((e.flags&32768)!==0){Rm(e,sn);return}t=e.return;var l=W0(e.alternate,e,kl);if(l!==null){ot=l;return}if(e=e.sibling,e!==null){ot=e;return}ot=e=t}while(e!==null);$t===0&&($t=5)}function Rm(t,e){do{var l=P0(t.alternate,t);if(l!==null){l.flags&=32767,ot=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){ot=t;return}ot=t=l}while(t!==null);$t=6,ot=null}function Cm(t,e,l,n,a,i,f,h,v,T,A,w){t.cancelPendingCommit=null;do ps();while(Lt!==0);if((St&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));t===Dt&&(ot=Dt=null,dt=0),Vn=e,al=t,yl=l,Qr=a,ym=n,cy(t,e,l,f,h,v,w)}}function cy(t,e,l,n,a,i,f){var h=e.lanes|e.childLanes;if(Gr=h,h|=Rc,Mv(t,l,h,n,a,i),Ta=null,(l&335544064)===l?(Na=H0(t),n=10262):(Na=null,n=10256),(e.subtreeFlags&n)!==0||(e.flags&n)!==0?(t.callbackNode=null,t.callbackPriority=0,my(nu,function(){return Fr(),null})):(t.callbackNode=null,t.callbackPriority=0),ts=!1,n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=Z.T,Z.T=null,a=nt.p,nt.p=2,i=St,St|=4;try{ty(t,e,l)}finally{St=i,nt.p=a,Z.T=n}}Lt=1,ts?Ea=My(f,t.containerInfo,Na,Kr,Jr,oy,Ir,Fr,ry):(Kr(),Jr(),Ir())}function ry(t){if(Lt!==0){var e=al.onRecoverableError;e(t,{componentStack:null})}}function oy(){Lt===3&&(Lt=0,fm(Vn,al),Lt=4)}function Kr(){if(Lt===1){Lt=0;var t=al,e=Vn,l=yl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=Z.T,Z.T=null;var a=nt.p;nt.p=2;var i=St;St|=4;try{Ei=ns=!1,rm(e,t,l),l=ro;var f=ud(t.containerInfo),h=l.focusedElem,v=l.selectionRange;if(f!==h&&h&&h.ownerDocument&&id(h.ownerDocument.documentElement,h)){if(v!==null&&_c(h)){var T=v.start,A=v.end;if(A===void 0&&(A=T),"selectionStart"in h)h.selectionStart=T,h.selectionEnd=Math.min(A,h.value.length);else{var w=h.ownerDocument||document,_=w&&w.defaultView||window;if(_.getSelection){var O=_.getSelection(),q=h.textContent.length,Q=Math.min(v.start,q),st=v.end===void 0?Q:Math.min(v.end,q);!O.extend&&Q>st&&(f=st,st=Q,Q=f);var E=ad(h,Q),b=ad(h,st);if(E&&b&&(O.rangeCount!==1||O.anchorNode!==E.node||O.anchorOffset!==E.offset||O.focusNode!==b.node||O.focusOffset!==b.offset)){var C=w.createRange();C.setStart(E.node,E.offset),O.removeAllRanges(),Q>st?(O.addRange(C),O.extend(b.node,b.offset)):(C.setEnd(b.node,b.offset),O.addRange(C))}}}}for(w=[],O=h;O=O.parentNode;)O.nodeType===1&&w.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<w.length;h++){var D=w[h];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}ka=!!co,ro=co=null}finally{St=i,nt.p=a,Z.T=n}}t.current=e,Lt=2}}function Jr(){if(Lt===2){Lt=0;var t=al,e=Vn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=Z.T,Z.T=null;var n=nt.p;nt.p=2;var a=St;St|=4;try{nm(t,e.alternate,e)}finally{St=a,nt.p=n,Z.T=l}}Lt=3}}function Ir(){if(Lt===4||Lt===3){Lt=0;var t=Ea;Ea=null,Tv();var e=al,l=Vn,n=yl,a=ym,i=(n&335544064)===n?10262:10256;if((l.subtreeFlags&i)!==0||(l.flags&i)!==0?Lt=5:(Lt=0,Vn=al=null,Om(e,e.pendingLanes)),i=e.pendingLanes,i===0&&(rn=null),ic(n),l=l.stateNode,Ce&&typeof Ce.onCommitFiberRoot=="function")try{Ce.onCommitFiberRoot(Za,l,void 0,(l.current.flags&128)===128)}catch{}if(a!==null){l=Z.T,i=nt.p,nt.p=2,Z.T=null;try{for(var f=e.onRecoverableError,h=0;h<a.length;h++){var v=a[h];f(v.value,{componentStack:v.stack})}}finally{Z.T=l,nt.p=i}}if(a=Ta,f=Na,Na=null,a!==null&&(Ta=null,f===null&&(f=[]),t!==null))for(v=0;v<a.length;v++)l=(0,a[v])(f),l!==void 0&&t.finished.finally(l);(yl&3)!==0&&ps(),xl(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===fs?Ri++:(Ri=0,fs=e):(Ri=0,fs=null),Ci(0)}}function Om(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ri(e)))}function ps(){return Ea!==null&&(Ea.skipTransition(),Ea=null),Kr(),Jr(),Ir(),Fr()}function Fr(){if(Lt!==5)return!1;var t=al,e=Gr;Gr=0;var l=ic(yl),n=Z.T,a=nt.p;try{nt.p=32>l?32:l,Z.T=null,l=Qr,Qr=null;var i=al,f=yl;if(Lt=0,Vn=al=null,yl=0,(St&6)!==0)throw Error(o(331));var h=St;if(St|=4,pm(i.current),dm(i,i.current,f,l),St=h,Ci(0,!1),Ce&&typeof Ce.onPostCommitFiberRoot=="function")try{Ce.onPostCommitFiberRoot(Za,i)}catch{}return!0}finally{nt.p=a,Z.T=n,Om(t,e)}}function Am(t,e,l){e=Qe(l,e),e=mr(t.stateNode,e,2),t=tn(t,e,2),t!==null&&(Ja(t,2),xl(t))}function Nt(t,e,l){if(t.tag===3)Am(t,t,l);else for(;e!==null;){if(e.tag===3){Am(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(rn===null||!rn.has(n))){t=Qe(l,t),l=zh(2),n=tn(e,l,2),n!==null&&(Rh(l,n,e,t),Ja(n,2),xl(n));break}}e=e.return}}function Wr(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new ny;var a=new Set;n.set(e,a)}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(l)||($r=!0,a.add(l),t=fy.bind(null,t,e,l),e.then(t,t))}function fy(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Dt===t&&(dt&l)===l&&(($t===4||$t===3&&(dt&62914560)===dt&&300>Re()-cs)&&(St&2)===0?Ra(t,0):ss|=l,_a===dt&&(_a=0)),xl(t)}function Dm(t,e){e===0&&(e=vf()),t=zn(t,e),t!==null&&(Ja(t,e),xl(t))}function dy(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Dm(t,l)}function hy(t,e){var l=0;switch(t.tag){case 31:case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(o(314))}n!==null&&n.delete(e),Dm(t,l)}function my(t,e){return ec(t,e)}var Oa=null,Aa=null,Pr=!1,gs=!1,to=!1,fn=0;function xl(t){t!==Aa&&t.next===null&&(Aa===null?Oa=Aa=t:Aa=Aa.next=t),gs=!0,Pr||(Pr=!0,gy())}function Ci(t,e){if(!to&&gs){to=!0;do for(var l=!1,n=Oa;n!==null;){if(t!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var f=n.suspendedLanes,h=n.pingedLanes;i=(1<<31-Oe(42|t)+1)-1,i&=a&~(f&~h),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Hm(n,i))}else i=dt,i=su(n,n===Dt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||Ka(n,i)||(l=!0,Hm(n,i));n=n.next}while(l);to=!1}}function py(){wm()}function wm(){gs=Pr=!1;var t=0;fn!==0&&zy()&&(t=fn);for(var e=Re(),l=null,n=Oa;n!==null;){var a=n.next,i=Mm(n,e);i===0?(n.next=null,l===null?Oa=a:l.next=a,a===null&&(Aa=l)):(l=n,(t!==0||(i&3)!==0)&&(gs=!0)),n=a}Lt!==0&&Lt!==5||Ci(t),fn!==0&&(fn=0)}function Mm(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var f=31-Oe(i),h=1<<f,v=a[f];v===-1?((h&l)===0||(h&n)!==0)&&(a[f]=wv(h,e)):v<=e&&(t.expiredLanes|=h),i&=~h}if(e=Dt,l=dt,l=su(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&lc(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Ka(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&lc(n),ic(l)){case 2:case 8:l=mf;break;case 32:l=nu;break;case 268435456:l=pf;break;default:l=nu}return n=Um.bind(null,t),l=ec(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&lc(n),t.callbackPriority=2,t.callbackNode=null,2}function Um(t,e){if(Lt!==0&&Lt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(ps()&&t.callbackNode!==l)return null;var n=dt;return n=su(t,t===Dt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(bm(t,n,e),Mm(t,Re()),t.callbackNode!=null&&t.callbackNode===l?Um.bind(null,t):null)}function Hm(t,e){if(ps())return null;bm(t,e,!0)}function gy(){Cy(function(){(St&6)!==0?ec(hf,py):wm()})}function eo(){if(fn===0){var t=wn;t===0&&(t=au,au<<=1,(au&261888)===0&&(au=256)),fn=t}return fn}function km(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:du(t)}function vy(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var i=km((a[Se]||null).action),f=n.submitter;f&&(e=(e=f[Se]||null)?km(e.formAction):f.getAttribute("formAction"),e!==null&&(i=e,f=null));var h=new gu("action","action",null,n,a);t.push({event:h,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(fn!==0){var v=new FormData(a,f);rr(l,{pending:!0,data:v,method:a.method,action:i},null,v)}}else typeof i=="function"&&(h.preventDefault(),v=new FormData(a,f),rr(l,{pending:!0,data:v,method:a.method,action:i},i,v))},currentTarget:a}]})}}for(var lo=0;lo<zc.length;lo++){var no=zc[lo],yy=no.toLowerCase(),xy=no[0].toUpperCase()+no.slice(1);tl(yy,"on"+xy)}tl(rd,"onAnimationEnd"),tl(od,"onAnimationIteration"),tl(fd,"onAnimationStart"),tl("dblclick","onDoubleClick"),tl("focusin","onFocus"),tl("focusout","onBlur"),tl(R0,"onTransitionRun"),tl(C0,"onTransitionStart"),tl(O0,"onTransitionCancel"),tl(dd,"onTransitionEnd"),Pn("onMouseEnter",["mouseout","mouseover"]),Pn("onMouseLeave",["mouseout","mouseover"]),Pn("onPointerEnter",["pointerout","pointerover"]),Pn("onPointerLeave",["pointerout","pointerover"]),En("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),En("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),En("onBeforeInput",["compositionend","keypress","textInput","paste"]),En("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),En("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),En("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oi="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(" "),by=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Oi));function Bm(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],a=n.event;n=n.listeners;t:{var i=void 0;if(e)for(var f=n.length-1;0<=f;f--){var h=n[f],v=h.instance,T=h.currentTarget;if(h=h.listener,v!==i&&a.isPropagationStopped())break t;i=h,a.currentTarget=T;try{i(a)}catch(A){xu(A)}a.currentTarget=null,i=v}else for(f=0;f<n.length;f++){if(h=n[f],v=h.instance,T=h.currentTarget,h=h.listener,v!==i&&a.isPropagationStopped())break t;i=h,a.currentTarget=T;try{i(a)}catch(A){xu(A)}a.currentTarget=null,i=v}}}}function ft(t,e){var l=e[_f];l===void 0&&(l=e[_f]=new Set);var n=t+"__bubble";l.has(n)||(Lm(e,t,2,!1),l.add(n))}function ao(t,e,l){var n=0;e&&(n|=4),Lm(l,t,n,e)}var vs="_reactListening"+Math.random().toString(36).slice(2);function io(t){if(!t[vs]){t[vs]=!0,Nf.forEach(function(l){l!=="selectionchange"&&(by.has(l)||ao(l,!1,t),ao(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[vs]||(e[vs]=!0,ao("selectionchange",!1,e))}}function Lm(t,e,l,n){switch(Rp(e)){case 2:var a=dx;break;case 8:a=hx;break;default:a=No}l=a.bind(null,e,l,t),a=void 0,!hc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),n?a!==void 0?t.addEventListener(e,l,{capture:!0,passive:a}):t.addEventListener(e,l,!0):a!==void 0?t.addEventListener(e,l,{passive:a}):t.addEventListener(e,l,!1)}function uo(t,e,l,n,a){var i=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var h=n.stateNode.containerInfo;if(h===a)break;if(f===4)for(f=n.return;f!==null;){var v=f.tag;if((v===3||v===4)&&f.stateNode.containerInfo===a)return;f=f.return}for(;h!==null;){if(f=_n(h),f===null)return;if(v=f.tag,v===5||v===6||v===26||v===27){n=i=f;continue t}h=h.parentNode}}n=n.return}Lf(function(){var T=i,A=fc(l),w=[];t:{var _=hd.get(t);if(_!==void 0){var O=gu,q=t;switch(t){case"keypress":if(mu(l)===0)break t;case"keydown":case"keyup":O=a0;break;case"focusin":q="focus",O=vc;break;case"focusout":q="blur",O=vc;break;case"beforeblur":case"afterblur":O=vc;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=$f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Xv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=r0;break;case rd:case od:case fd:O=Jv;break;case dd:O=f0;break;case"scroll":case"scrollend":O=Gv;break;case"wheel":O=h0;break;case"copy":case"cut":case"paste":O=Fv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Gf;break;case"submit":O=s0;break;case"toggle":case"beforetoggle":O=p0}var Q=(e&4)!==0,st=!Q&&(t==="scroll"||t==="scrollend"),E=Q?_!==null?_+"Capture":null:_;Q=[];for(var b=T,C;b!==null;){var D=b;if(C=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||C===null||E===null||(D=Wa(b,E),D!=null&&Q.push(Ai(b,D,C))),st)break;b=b.return}0<Q.length&&(_=new O(_,q,null,l,A),w.push({event:_,listeners:Q}))}}if((e&7)===0){t:{if(O=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",O&&l!==oc&&(q=l.relatedTarget||l.fromElement)&&(_n(q)||q[In]))break t;(_||O)&&(q=A.window===A?A:(O=A.ownerDocument)?O.defaultView||O.parentWindow:window,_?(O=l.relatedTarget||l.toElement,_=T,O=O?_n(O):null,O!==null&&(st=p(O),Q=O.tag,O!==st||Q!==5&&Q!==27&&Q!==6)&&(O=null)):(_=null,O=T),_!==O&&(Q=$f,D="onMouseLeave",E="onMouseEnter",b="mouse",(t==="pointerout"||t==="pointerover")&&(Q=Gf,D="onPointerLeave",E="onPointerEnter",b="pointer"),st=_==null?q:Fa(_),C=O==null?q:Fa(O),q=new Q(D,b+"leave",_,l,A),q.target=st,q.relatedTarget=C,D=null,_n(A)===T&&(Q=new Q(E,b+"enter",O,l,A),Q.target=C,Q.relatedTarget=st,D=Q),st=D,Q=_&&O?xt(_,O,Sy):null,_!==null&&qm(w,q,_,Q,!1),O!==null&&st!==null&&qm(w,st,O,Q,!0)))}t:{if(_=T?Fa(T):window,O=_.nodeName&&_.nodeName.toLowerCase(),O==="select"||O==="input"&&_.type==="file")var V=Wf;else if(If(_))if(Pf)V=T0;else{V=_0;var ht=j0}else O=_.nodeName,!O||O.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?T&&rc(T.elementType)&&(V=Wf):V=E0;if(V&&(V=V(t,T))){Ff(w,V,l,A);break t}ht&&ht(t,_,T)}switch(ht=T?Fa(T):window,t){case"focusin":(If(ht)||ht.contentEditable==="true")&&(ia=ht,Ec=T,ui=null);break;case"focusout":ui=Ec=ia=null;break;case"mousedown":Tc=!0;break;case"contextmenu":case"mouseup":case"dragend":Tc=!1,sd(w,l,A);break;case"selectionchange":if(z0)break;case"keydown":case"keyup":sd(w,l,A)}var K;if(xc)t:{switch(t){case"compositionstart":var P="onCompositionStart";break t;case"compositionend":P="onCompositionEnd";break t;case"compositionupdate":P="onCompositionUpdate";break t}P=void 0}else aa?Kf(t,l)&&(P="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(P="onCompositionStart");P&&(Qf&&l.locale!=="ko"&&(aa||P!=="onCompositionStart"?P==="onCompositionEnd"&&aa&&(K=qf()):(Ql=A,mc="value"in Ql?Ql.value:Ql.textContent,aa=!0)),ht=ys(T,P),0<ht.length&&(P=new Vf(P,t,null,l,A),w.push({event:P,listeners:ht}),K?P.data=K:(K=Jf(l),K!==null&&(P.data=K)))),(K=v0?y0(t,l):x0(t,l))&&(P=ys(T,"onBeforeInput"),0<P.length&&(ht=new Vf("onBeforeInput","beforeinput",null,l,A),w.push({event:ht,listeners:P}),ht.data=K)),vy(w,t,T,l,A)}Bm(w,e)})}function Ai(t,e,l){return{instance:t,listener:e,currentTarget:l}}function ys(t,e){for(var l=e+"Capture",n=[];t!==null;){var a=t,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Wa(t,l),a!=null&&n.unshift(Ai(t,a,i)),a=Wa(t,e),a!=null&&n.push(Ai(t,a,i))),t.tag===3)return n;t=t.return}return[]}function Sy(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function qm(t,e,l,n,a){for(var i=e._reactName,f=[];l!==null&&l!==n;){var h=l,v=h.alternate,T=h.stateNode;if(h=h.tag,v!==null&&v===n)break;h!==5&&h!==26&&h!==27||T===null||(v=T,a?(T=Wa(l,i),T!=null&&f.unshift(Ai(l,T,v))):a||(T=Wa(l,i),T!=null&&f.push(Ai(l,T,v)))),l=l.return}f.length!==0&&t.push({event:e,listeners:f})}var jy=/\r\n?/g,_y=/\u0000|\uFFFD/g;function Ym(t){return(typeof t=="string"?t:""+t).replace(jy,`
|
|
49
|
-
`).replace(_y,"")}function $m(t,e){return e=Ym(e),Ym(t)===e}function zt(t,e,l,n,a,i){switch(l){case"children":if(typeof n=="string")e==="body"||e==="textarea"&&n===""||ea(t,n);else if(typeof n=="number"||typeof n=="bigint")e!=="body"&&ea(t,""+n);else return;break;case"className":fu(t,"class",n);break;case"tabIndex":fu(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":fu(t,l,n);break;case"style":kf(t,n,i);return;case"data":if(e!=="object"){fu(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=du(n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.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 i=="function"&&(l==="formAction"?(e!=="input"&&zt(t,e,"name",a.name,a,null),zt(t,e,"formEncType",a.formEncType,a,null),zt(t,e,"formMethod",a.formMethod,a,null),zt(t,e,"formTarget",a.formTarget,a,null)):(zt(t,e,"encType",a.encType,a,null),zt(t,e,"method",a.method,a,null),zt(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=du(n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=rl);return;case"onScroll":n!=null&&ft("scroll",t);return;case"onScrollEnd":n!=null&&ft("scrollend",t);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(o(60));(i!=null?i.__html:void 0)!==l&&(t.innerHTML=l)}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=du(n),t.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":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":ft("beforetoggle",t),ft("toggle",t),ou(t,"popover",n);break;case"xlinkActuate":Tl(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Tl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Tl(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Tl(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Tl(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Tl(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Tl(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Tl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Tl(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":ou(t,"is",n);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=$v.get(l)||l,ou(t,l,n);else return}yt=!0}function so(t,e,l,n,a,i){switch(l){case"style":kf(t,n,i);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(o(60));(i!=null?i.__html:void 0)!==l&&(t.innerHTML=l)}}break;case"children":if(typeof n=="string")ea(t,n);else if(typeof n=="number"||typeof n=="bigint")ea(t,""+n);else return;break;case"onScroll":n!=null&&ft("scroll",t);return;case"onScrollEnd":n!=null&&ft("scrollend",t);return;case"onClick":n!=null&&(t.onclick=rl);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!zf.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),i=l.slice(2,a?l.length-7:void 0),e=t[Se]||null,e=e!=null?e[l]:null,typeof e=="function"&&t.removeEventListener(i,e,a),typeof n=="function")){typeof e!="function"&&e!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(i,n,a);break t}yt=!0,l in t?t[l]=n:n===!0?t.setAttribute(l,""):ou(t,l,n)}return}yt=!0}function re(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",t),ft("load",t);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var f=l[i];if(f!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:zt(t,e,i,f,l,null)}}a&&zt(t,e,"srcSet",l.srcSet,l,null),n&&zt(t,e,"src",l.src,l,null);return;case"input":ft("invalid",t);var h=i=f=a=null,v=null,T=null;for(n in l)if(l.hasOwnProperty(n)){var A=l[n];if(A!=null)switch(n){case"name":a=A;break;case"type":f=A;break;case"checked":v=A;break;case"defaultChecked":T=A;break;case"value":i=A;break;case"defaultValue":h=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,e));break;default:zt(t,e,n,A,l,null)}}wf(t,i,h,v,T,f,a,!1);return;case"select":ft("invalid",t),n=f=i=null;for(a in l)if(l.hasOwnProperty(a)&&(h=l[a],h!=null))switch(a){case"value":i=h;break;case"defaultValue":f=h;break;case"multiple":n=h;default:zt(t,e,a,h,l,null)}e=i,l=f,t.multiple=!!n,e!=null?ta(t,!!n,e,!1):l!=null&&ta(t,!!n,l,!0);return;case"textarea":ft("invalid",t),i=a=n=null;for(f in l)if(l.hasOwnProperty(f)&&(h=l[f],h!=null))switch(f){case"value":n=h;break;case"defaultValue":a=h;break;case"children":i=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(o(91));break;default:zt(t,e,f,h,l,null)}Uf(t,n,a,i);return;case"option":for(v in l)if(l.hasOwnProperty(v)&&(n=l[v],n!=null))switch(v){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:zt(t,e,v,n,l,null)}return;case"dialog":ft("beforetoggle",t),ft("toggle",t),ft("cancel",t),ft("close",t);break;case"iframe":case"object":ft("load",t);break;case"video":case"audio":for(n=0;n<Oi.length;n++)ft(Oi[n],t);break;case"image":ft("error",t),ft("load",t);break;case"details":ft("toggle",t);break;case"embed":case"source":case"link":ft("error",t),ft("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in l)if(l.hasOwnProperty(T)&&(n=l[T],n!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:zt(t,e,T,n,l,null)}return;default:if(rc(e)){for(A in l)l.hasOwnProperty(A)&&(n=l[A],n!==void 0&&so(t,e,A,n,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(n=l[h],n!=null&&zt(t,e,h,n,l,null))}var Ey={};function Ty(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,f=null,h=null,v=null,T=null,A=null;for(O in l){var w=l[O];if(l.hasOwnProperty(O)&&w!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":v=w;default:n.hasOwnProperty(O)||zt(t,e,O,null,n,w)}}for(var _ in n){var O=n[_];if(w=l[_],n.hasOwnProperty(_)&&(O!=null||w!=null))switch(_){case"type":O!==w&&(yt=!0),i=O;break;case"name":O!==w&&(yt=!0),a=O;break;case"checked":O!==w&&(yt=!0),T=O;break;case"defaultChecked":O!==w&&(yt=!0),A=O;break;case"value":O!==w&&(yt=!0),f=O;break;case"defaultValue":O!==w&&(yt=!0),h=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,e));break;default:O!==w&&zt(t,e,_,O,n,w)}}sc(t,f,h,v,T,A,i,a);return;case"select":O=f=h=_=null;for(i in l)if(v=l[i],l.hasOwnProperty(i)&&v!=null)switch(i){case"value":break;case"multiple":O=v;default:n.hasOwnProperty(i)||zt(t,e,i,null,n,v)}for(a in n)if(i=n[a],v=l[a],n.hasOwnProperty(a)&&(i!=null||v!=null))switch(a){case"value":i!==v&&(yt=!0),_=i;break;case"defaultValue":i!==v&&(yt=!0),h=i;break;case"multiple":i!==v&&(yt=!0),f=i;default:i!==v&&zt(t,e,a,i,n,v)}e=h,l=f,n=O,_!=null?ta(t,!!l,_,!1):!!n!=!!l&&(e!=null?ta(t,!!l,e,!0):ta(t,!!l,l?[]:"",!1));return;case"textarea":O=_=null;for(h in l)if(a=l[h],l.hasOwnProperty(h)&&a!=null&&!n.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:zt(t,e,h,null,n,a)}for(f in n)if(a=n[f],i=l[f],n.hasOwnProperty(f)&&(a!=null||i!=null))switch(f){case"value":a!==i&&(yt=!0),_=a;break;case"defaultValue":a!==i&&(yt=!0),O=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(o(91));break;default:a!==i&&zt(t,e,f,a,n,i)}Mf(t,_,O);return;case"option":for(var q in l)if(_=l[q],l.hasOwnProperty(q)&&_!=null&&!n.hasOwnProperty(q))switch(q){case"selected":t.selected=!1;break;default:zt(t,e,q,null,n,_)}for(v in n)if(_=n[v],O=l[v],n.hasOwnProperty(v)&&_!==O&&(_!=null||O!=null))switch(v){case"selected":_!==O&&(yt=!0),t.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:zt(t,e,v,_,n,O)}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 Q in l)_=l[Q],l.hasOwnProperty(Q)&&_!=null&&!n.hasOwnProperty(Q)&&zt(t,e,Q,null,n,_);for(T in n)if(_=n[T],O=l[T],n.hasOwnProperty(T)&&_!==O&&(_!=null||O!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,e));break;default:zt(t,e,T,_,n,O)}return;default:if(rc(e)){for(var st in l)_=l[st],l.hasOwnProperty(st)&&_!==void 0&&!n.hasOwnProperty(st)&&so(t,e,st,void 0,n,_);for(A in n)_=n[A],O=l[A],!n.hasOwnProperty(A)||_===O||_===void 0&&O===void 0||so(t,e,A,_,n,O);return}}for(var E in l)_=l[E],l.hasOwnProperty(E)&&_!=null&&!n.hasOwnProperty(E)&&zt(t,e,E,null,n,_);for(w in n)_=n[w],O=l[w],!n.hasOwnProperty(w)||_===O||_==null&&O==null||zt(t,e,w,_,n,O)}function Vm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ny(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],i=a.transferSize,f=a.initiatorType,h=a.duration;if(i&&h&&Vm(f)){for(f=0,h=a.responseEnd,n+=1;n<l.length;n++){var v=l[n],T=v.startTime;if(T>h)break;var A=v.transferSize,w=v.initiatorType;A&&Vm(w)&&(v=v.responseEnd,f+=A*(v<h?1:(h-T)/(v-T)))}if(--n,e+=8*(i+f)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var co=null,ro=null;function Di(t){return t.nodeType===9?t:t.ownerDocument}function Gm(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qm(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Xm(t,e,l,n){return l=Di(l).createElement(t),l[ae]=n,l[Se]=e,re(l,t,e),Pt(l),l}function oo(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var fo=null;function zy(){var t=window.event;return t&&t.type==="popstate"?t===fo?!1:(fo=t,!0):(fo=null,!1)}var ho=typeof setTimeout=="function"?setTimeout:void 0,Ry=typeof clearTimeout=="function"?clearTimeout:void 0,Zm=typeof Promise=="function"?Promise:void 0,Km=typeof requestAnimationFrame=="function"?requestAnimationFrame:ho,Cy=typeof queueMicrotask=="function"?queueMicrotask:typeof Zm<"u"?function(t){return Zm.resolve(null).then(t).catch(Oy)}:ho;function Oy(t){setTimeout(function(){throw t})}function dn(t){return t==="head"}function Jm(t,e){var l=e,n=0;do{var a=l.nextSibling;if(t.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(a),Ba(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")So(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,So(l);for(var i=l.firstChild;i;){var f=i.nextSibling,h=i.nodeName;i[Ia]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=f}}else l==="body"&&So(t.ownerDocument.body);l=a}while(l);Ba(e)}function Im(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function Fm(t,e,l){if(e=CSS.escape(e)!==e?"r-"+btoa(e).replace(/=/g,""):e,t.style.viewTransitionName=e,l!=null&&(t.style.viewTransitionClass=l),l=getComputedStyle(t),l.display==="inline"){if(e=t.getClientRects(),e.length===1)var n=1;else for(var a=n=0;a<e.length;a++){var i=e[a];0<i.width&&0<i.height&&n++}n===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+l.paddingTop,t.marginBottom="-"+l.paddingBottom)}}function Wm(t,e){t=t.style,e=e.style;var l=e!=null?e.hasOwnProperty("viewTransitionName")?e.viewTransitionName:e.hasOwnProperty("view-transition-name")?e["view-transition-name"]:null:null;t.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=e!=null?e.hasOwnProperty("viewTransitionClass")?e.viewTransitionClass:e.hasOwnProperty("view-transition-class")?e["view-transition-class"]:null:null,t.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),t.display==="inline-block"&&(e==null?t.display=t.margin="":(l=e.display,t.display=l==null||typeof l=="boolean"?"":l,l=e.margin,l!=null?t.margin=l:(l=e.hasOwnProperty("marginTop")?e.marginTop:e["margin-top"],t.marginTop=l==null||typeof l=="boolean"?"":l,e=e.hasOwnProperty("marginBottom")?e.marginBottom:e["margin-bottom"],t.marginBottom=e==null||typeof e=="boolean"?"":e)))}function Ay(t,e,l){return l=l.ownerDocument.defaultView,{rect:t,abs:e.position==="absolute"||e.position==="fixed",clip:e.clipPath!=="none"||e.overflow!=="visible"||e.filter!=="none"||e.mask!=="none"||e.mask!=="none"||e.borderRadius!=="0px",view:0<=t.bottom&&0<=t.right&&t.top<=l.innerHeight&&t.left<=l.innerWidth}}function mo(t){var e=t.getBoundingClientRect(),l=getComputedStyle(t);return Ay(e,l,t)}function Dy(t){return t.documentElement.clientHeight}function wy(t){this.addEventListener("load",t),this.addEventListener("error",t)}function My(t,e,l,n,a,i,f,h,v){var T=e.nodeType===9?e:e.ownerDocument;try{var A=T.startViewTransition({update:function(){var _=T.defaultView,O=_.navigation&&_.navigation.transition,q=T.fonts.status;n();var Q=[];if(q==="loaded"&&(Dy(T),T.fonts.status==="loading"&&Q.push(T.fonts.ready)),q=Q.length,t!==null)for(var st=t.suspenseyImages,E=0,b=0;b<st.length;b++){var C=st[b];if(!C.complete){var D=C.getBoundingClientRect();if(0<D.bottom&&0<D.right&&D.top<_.innerHeight&&D.left<_.innerWidth){if(E+=xp(C),E>Ss){Q.length=q;break}C=new Promise(wy.bind(C)),Q.push(C)}}}if(0<Q.length)return _=Promise.race([Promise.all(Q),new Promise(function(V){return setTimeout(V,500)})]).then(a,a),(O?Promise.allSettled([O.finished,_]):_).then(i,i);if(a(),O)return O.finished.then(i,i);i()},types:l});T.__reactViewTransition=A;var w=[];return A.ready.then(function(){for(var _=T.documentElement.getAnimations({subtree:!0}),O=0;O<_.length;O++){var q=_[O],Q=q.effect,st=Q.pseudoElement;if(st!=null&&st.startsWith("::view-transition")){w.push(q),q=Q.getKeyframes();for(var E=st=void 0,b=!0,C=0;C<q.length;C++){var D=q[C],V=D.width;if(st===void 0)st=V;else if(st!==V){b=!1;break}if(V=D.height,E===void 0)E=V;else if(E!==V){b=!1;break}delete D.width,delete D.height,D.transform==="none"&&delete D.transform}b&&st!==void 0&&E!==void 0&&(Q.setKeyframes(q),b=getComputedStyle(Q.target,Q.pseudoElement),b.width!==st||b.height!==E)&&(b=q[0],b.width=st,b.height=E,b=q[q.length-1],b.width=st,b.height=E,Q.setKeyframes(q))}}f()},function(_){T.__reactViewTransition===A&&(T.__reactViewTransition=null);try{if(typeof _=="object"&&_!==null)switch(_.name){case"InvalidStateError":(_.message==="View transition was skipped because document visibility state is hidden."||_.message==="Skipping view transition because document visibility state has become hidden."||_.message==="Skipping view transition because viewport size changed."||_.message==="Transition was aborted because of invalid state")&&(_=null)}_!==null&&v(_)}finally{n(),a(),f()}}),A.finished.finally(function(){for(var _=0;_<w.length;_++)w[_].cancel();T.__reactViewTransition===A&&(T.__reactViewTransition=null),h()}),A}catch{return n(),a(),f(),null}}function Gn(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}Gn.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:I({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)},Gn.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,l=t.getAnimations({subtree:!0}),n=[],a=0;a<l.length;a++){var i=l[a].effect;i!==null&&i.target===t&&i.pseudoElement===e&&n.push(l[a])}return n},Gn.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Pm(t){return{name:t,group:new Gn("group",t),imagePair:new Gn("image-pair",t),old:new Gn("old",t),new:new Gn("new",t)}}function Be(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}Be.prototype.addEventListener=function(t,e,l){var n=null,a=null;if(!(l!=null&&typeof l!="boolean"&&(n=l.signal||null,n!==null&&n.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var i=this._eventListeners;if(ep(i,t,e,l)===-1){var f=this,h=e;l!=null&&typeof l!="boolean"&&l.once===!0&&(h=function(v){f.removeEventListener(t,e,l),typeof e=="function"?e.call(this,v):e.handleEvent(v)}),n!==null&&(a=f.removeEventListener.bind(f,t,e,l),n.addEventListener("abort",a,{once:!0}),a=n.removeEventListener.bind(n,"abort",a)),n=Da(l),i.push({type:t,listener:e,optionsOrUseCapture:l,attachedListener:h,cleanup:a}),y(this._fragmentFiber.child,!1,Uy,t,h,n)}this._eventListeners=i}};function Uy(t,e,l,n){return L(t).addEventListener(e,l,n),!1}Be.prototype.removeEventListener=function(t,e,l){var n=this._eventListeners;if(n!==null&&(e=ep(n,t,e,l),e!==-1)){var a=n[e];l=a.attachedListener;var i=a.cleanup;a=Da(a.optionsOrUseCapture),y(this._fragmentFiber.child,!1,Hy,t,l,a),n.splice(e,1),i!==null&&i()}};function Hy(t,e,l,n){return L(t).removeEventListener(e,l,n),!1}function Da(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function tp(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function ep(t,e,l,n){if(t.length===0)return-1;n=tp(n);for(var a=0;a<t.length;a++){var i=t[a];if(i.type===e&&i.listener===l&&tp(i.optionsOrUseCapture)===n)return a}return-1}Be.prototype.dispatchEvent=function(t){var e=R(this._fragmentFiber);if(e===null)return!0;e=L(e);var l=this._eventListeners;if(l!==null&&0<l.length||!t.bubbles){var n=e.nodeType===9?e.createComment(""):document.createTextNode("");if(l)for(var a=0;a<l.length;a++){var i=l[a];n.addEventListener(i.type,i.attachedListener,Da(i.optionsOrUseCapture))}if(e.appendChild(n),t=n.dispatchEvent(t),l)for(a=0;a<l.length;a++)i=l[a],n.removeEventListener(i.type,i.attachedListener,Da(i.optionsOrUseCapture));return e.removeChild(n),t}return e.dispatchEvent(t)},Be.prototype.focus=function(t){y(this._fragmentFiber.child,!0,lp,t,void 0,void 0)};function lp(t,e){return t.tag===6?!1:(t=L(t),Ky(t,e))}Be.prototype.focusLast=function(t){var e=[];y(this._fragmentFiber.child,!0,po,e,void 0,void 0);for(var l=e.length-1;0<=l&&!lp(e[l],t);l--);};function po(t,e){return e.push(t),!1}Be.prototype.blur=function(){var t=R(this._fragmentFiber);t!==null&&(t=L(t),t=Di(t).activeElement,t!==null&&y(this._fragmentFiber.child,!1,ky,t,void 0,void 0))};function ky(t,e){return t.tag===6?!1:(t=L(t),t===e||t.contains(e)?(e.blur(),!0):!1)}Be.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),y(this._fragmentFiber.child,!1,By,t,void 0,void 0)};function By(t,e){return t.tag===6||(t=L(t),e.observe(t)),!1}Be.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),y(this._fragmentFiber.child,!1,Ly,t,void 0,void 0);for(var l=e=0;l<il.length;l++){var n=il[l];n.fragmentInstance===this&&n.observer===t?t.unobserve(n.instance):il[e++]=n}il.length=e}};function Ly(t,e){return t.tag===6||(t=L(t),e.unobserve(t)),!1}var il=[],go=!1;function qy(t,e,l){il.push({fragmentInstance:t,observer:e,instance:l}),go||(go=!0,Jy(function(){go=!1;var n=il;il=[];for(var a=0;a<n.length;a++){var i=n[a];i.observer.unobserve(i.instance)}}))}Be.prototype.getClientRects=function(){var t=[];return y(this._fragmentFiber.child,!1,Yy,t,void 0,void 0),t};function Yy(t,e){if(t.tag===6){t=t.stateNode;var l=t.ownerDocument.createRange();l.selectNodeContents(t),e.push.apply(e,l.getClientRects())}else t=L(t),e.push.apply(e,t.getClientRects());return!1}Be.prototype.getRootNode=function(t){var e=R(this._fragmentFiber);return e===null?this:L(e).getRootNode(t)},Be.prototype.compareDocumentPosition=function(t){var e=R(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];y(this._fragmentFiber.child,!1,po,l,void 0,void 0);var n=L(e);if(l.length===0){if(l=n,H(this._fragmentFiber)){t:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break t}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(l=e)}e=this._fragmentFiber;var a=n=l.compareDocumentPosition(t);return l===t?a=Node.DOCUMENT_POSITION_CONTAINS:n&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=Y(e)[1],l===null?a=Node.DOCUMENT_POSITION_PRECEDING:(t=L(l).compareDocumentPosition(t),a=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=L(l[0]),a=L(l[l.length-1]);var i=H(this._fragmentFiber)?e.parentElement:n;if(i==null)return Node.DOCUMENT_POSITION_DISCONNECTED;n=i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,i=i.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var f=e.compareDocumentPosition(t),h=a.compareDocumentPosition(t),v=f&Node.DOCUMENT_POSITION_CONTAINED_BY||h&Node.DOCUMENT_POSITION_CONTAINED_BY;return h=n&&i&&f&Node.DOCUMENT_POSITION_FOLLOWING&&h&Node.DOCUMENT_POSITION_PRECEDING,e=n&&e===t||i&&a===t||v||h?Node.DOCUMENT_POSITION_CONTAINED_BY:!n&&e===t||!i&&a===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:f,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||$y(e,this._fragmentFiber,l[0],l[l.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function $y(t,e,l,n,a){var i=_n(a);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!i)t:{for(;i!==null;){if(i.tag===7&&(i===e||i.alternate===e)){l=!0;break t}i=i.return}l=!1}return l}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(i===null)return i=a.ownerDocument,a===i||a===i.documentElement||a===i.body;t:{for(i=e,e=R(e);i!==null;){if(!(i.tag!==5&&i.tag!==3&&i.tag!==27||i!==e&&i.alternate!==e)){i=!0;break t}i=i.return}i=!1}return i}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!i)&&!(e=i===l)&&(e=xt(l,i,X),e===null?e=!1:(y(e,!0,U,i,l),i=B,B=null,e=i!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!i)&&!(e=i===n)&&(e=xt(n,i,X),e===null?e=!1:(y(e,!0,G,i,n),i=B,tt=B=null,e=i!==null)),e):!1}function np(t,e){var l=t.ownerDocument.createRange();l.selectNodeContents(t),t=l.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}Be.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(o(566));var e=[];y(this._fragmentFiber.child,!1,po,e,void 0,void 0);var l=t!==!1;if(e.length===0){var n=Y(this._fragmentFiber);if(n=l?n[1]||n[0]||R(this._fragmentFiber):n[0]||n[1],n===null)return;if(n.tag===6){t=L(n),np(t,l);return}if(n=L(n),n.nodeType!==9){if(n.nodeType===11){l="host"in n?n.host:null,l!==null&&l.scrollIntoView(t);return}n.scrollIntoView(t)}}for(n=l?e.length-1:0;n!==(l?-1:e.length);){var a=e[n];a.tag===6?(a=L(a),np(a,l)):L(a).scrollIntoView(t),n+=l?-1:1}};function Vy(t,e){return t=L(t),ap(t,e),!1}function ap(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function ip(t,e){var l=e._eventListeners;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n];t.addEventListener(a.type,a.attachedListener,Da(a.optionsOrUseCapture))}t.nodeType!==3&&(l=e._observers,l!==null&&l.forEach(function(i){for(var f=0,h=0;h<il.length;h++){var v=il[h];(v.fragmentInstance!==e||v.observer!==i||v.instance!==t)&&(il[f++]=v)}il.length=f,i.observe(t)}),ap(t,e))}function Gy(t,e){var l=e._eventListeners;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n];t.removeEventListener(a.type,a.attachedListener,Da(a.optionsOrUseCapture))}t.nodeType!==3&&(l=e._observers,l!==null&&l.forEach(function(i){typeof i.rootMargin=="string"?qy(e,i,t):i.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function vo(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":vo(l),ru(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Qy(t,e,l,n){for(;t.nodeType===1;){var a=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[Ia])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=Ie(t.nextSibling),t===null)break}return null}function Xy(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ie(t.nextSibling),t===null))return null;return t}function up(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ie(t.nextSibling),t===null))return null;return t}function yo(t){return t.data==="$?"||t.data==="$~"}function xo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Zy(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Ie(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var bo=null;function sp(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ie(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function cp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Ky(t,e){function l(){n=!0}if(t.ownerDocument.activeElement===t)return!0;var n=!1;try{t.ownerDocument.addEventListener("focus",l,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener("focus",l,!0)}return n}function Jy(t){Km(function(){Km(function(e){return t(e)})})}function rp(t,e,l){switch(e=Di(l),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function op(t,e,l){for(var n in l){var a=l[n];l.hasOwnProperty(n)&&a!=null&&zt(t,e,n,null,Ey,a)}l.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===rl&&(t.onclick=null),ru(t)}function So(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ru(t)}var Fe=new Map,fp=new Set;function wi(t){if(typeof t.getRootNode=="function"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var Bl=nt.d;nt.d={f:Iy,r:Fy,D:Wy,C:Py,L:tx,m:ex,X:nx,S:lx,M:ax};function Iy(){var t=Bl.f(),e=ds();return t||e}function Fy(t){var e=Fn(t);e!==null&&e.tag===5&&e.type==="form"?hh(e):Bl.r(t)}var wa=typeof document>"u"?null:document;function dp(t,e,l){var n=wa;if(n&&typeof e=="string"&&e){var a=Ve(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),fp.has(a)||(fp.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),re(e,"link",t),Pt(e),n.head.appendChild(e)))}}function Wy(t){Bl.D(t),dp("dns-prefetch",t,null)}function Py(t,e){Bl.C(t,e),dp("preconnect",t,e)}function tx(t,e,l){Bl.L(t,e,l);var n=wa;if(n&&t&&e){var a='link[rel="preload"][as="'+Ve(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Ve(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Ve(l.imageSizes)+'"]')):a+='[href="'+Ve(t)+'"]';var i=a;switch(e){case"style":i=Ma(t);break;case"script":i=Ua(t)}if(!(Fe.has(i)||(t=I({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Fe.set(i,t),n.querySelector(a)!==null||e==="style"&&n.querySelector(Mi(i))||e==="script"&&n.querySelector(Ui(i))))){var f=n.createElement("link");re(f,"link",t),e==="style"&&(f[cu]=!0,f.onload=f.onerror=function(){Tf(f)}),Pt(f),n.head.appendChild(f)}}}function ex(t,e){Bl.m(t,e);var l=wa;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Ve(n)+'"][href="'+Ve(t)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ua(t)}if(!Fe.has(i)&&(t=I({rel:"modulepreload",href:t},e),Fe.set(i,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ui(i)))return}n=l.createElement("link"),re(n,"link",t),Pt(n),l.head.appendChild(n)}}}function lx(t,e,l){Bl.S(t,e,l);var n=wa;if(n&&t){var a=Wn(n).hoistableStyles,i=Ma(t);e=e||"default";var f=a.get(i);if(!f){var h={loading:0,preload:null};if(f=n.querySelector(Mi(i)))h.loading=5;else{t=I({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Fe.get(i))&&jo(t,l);var v=f=n.createElement("link");Pt(v),re(v,"link",t),v._p=new Promise(function(T,A){v.onload=T,v.onerror=A}),v.addEventListener("load",function(){h.loading|=1}),v.addEventListener("error",function(){h.loading|=2}),h.loading|=4,xs(f,e,n)}f={type:"stylesheet",instance:f,count:1,state:h},a.set(i,f)}}}function nx(t,e){Bl.X(t,e);var l=wa;if(l&&t){var n=Wn(l).hoistableScripts,a=Ua(t),i=n.get(a);i||(i=l.querySelector(Ui(a)),i||(t=I({src:t,async:!0},e),(e=Fe.get(a))&&_o(t,e),i=l.createElement("script"),Pt(i),re(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function ax(t,e){Bl.M(t,e);var l=wa;if(l&&t){var n=Wn(l).hoistableScripts,a=Ua(t),i=n.get(a);i||(i=l.querySelector(Ui(a)),i||(t=I({src:t,async:!0,type:"module"},e),(e=Fe.get(a))&&_o(t,e),i=l.createElement("script"),Pt(i),re(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function hp(t,e,l,n){var a=(a=$l.current)?wi(a):null;if(!a)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=Ma(l.href),e=Wn(a).hoistableStyles,n=e.get(l),n||(n={type:"style",instance:null,count:0,state:null},e.set(l,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Ma(l.href);var i=Wn(a).hoistableStyles,f=i.get(t);if(f||(a=a.ownerDocument||a,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,f),(i=a.querySelector(Mi(t)))?i._p||(f.instance=i,f.state.loading=5):(i=Fe.get(t),i||(i={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Fe.set(t,i)),ix(a,t,i,f.state))),e&&n===null)throw Error(o(528,""));return f}if(e&&n!==null)throw Error(o(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(l=Ua(l),e=Wn(a).hoistableScripts,n=e.get(l),n||(n={type:"script",instance:null,count:0,state:null},e.set(l,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Ma(t){return'href="'+Ve(t)+'"'}function Mi(t){return'link[rel="stylesheet"]['+t+"]"}function mp(t){return I({},t,{"data-precedence":t.precedence,precedence:null})}function ix(t,e,l,n){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[cu]!==!0){n.loading=1;return}}else e=t.createElement("link"),e[cu]=!0,e.onload=e.onerror=Tf.bind(null,e),re(e,"link",l),Pt(e),t.head.appendChild(e);n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2})}function Ua(t){return'[src="'+Ve(t)+'"]'}function Ui(t){return"script[async]"+t}function pp(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Ve(l.href)+'"]');if(n)return e.instance=n,Pt(n),n;var a=I({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Pt(n),re(n,"style",a),xs(n,l.precedence,t),e.instance=n;case"stylesheet":a=Ma(l.href);var i=t.querySelector(Mi(a));if(i)return e.state.loading|=4,e.instance=i,Pt(i),i;n=mp(l),(a=Fe.get(a))&&jo(n,a),i=(t.ownerDocument||t).createElement("link"),Pt(i);var f=i;return f._p=new Promise(function(h,v){f.onload=h,f.onerror=v}),re(i,"link",n),e.state.loading|=4,xs(i,l.precedence,t),e.instance=i;case"script":return i=Ua(l.src),(a=t.querySelector(Ui(i)))?(e.instance=a,Pt(a),a):(n=l,(a=Fe.get(i))&&(n=I({},l),_o(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),Pt(a),re(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,xs(n,l.precedence,t));return e.instance}function xs(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,f=0;f<n.length;f++){var h=n[f];if(h.dataset.precedence===e)i=h;else if(i!==a)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function jo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function _o(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var bs=null;function gp(t,e,l){if(bs===null){var n=new Map,a=bs=new Map;a.set(l,n)}else a=bs,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),a=0;a<l.length;a++){var i=l[a];if(!(i[Ia]||i[ae]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var f=i.getAttribute(e)||"";f=t+f;var h=n.get(f);h?h.push(i):n.set(f,[i])}}return n}function Eo(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function ux(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function vp(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function yp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function xp(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function bp(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=xp(e),t.suspenseyImages.push(e)),t=rx.bind(t),e.decode().then(t,t))}function sx(t,e,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=Ma(n.href),i=e.querySelector(Mi(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Hi.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,Pt(i);return}i=e.ownerDocument||e,n=mp(n),(a=Fe.get(a))&&jo(n,a),i=i.createElement("link"),Pt(i);var f=i;f._p=new Promise(function(h,v){f.onload=h,f.onerror=v}),re(i,"link",n),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Hi.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Ss=0;function cx(t,e){return t.stylesheets&&t.count===0&&_s(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&_s(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&Ss===0&&(Ss=62500*Ny());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&_s(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>Ss?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Sp(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)_s(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function Hi(){this.count--,Sp(this)}function rx(){this.imgCount--,Sp(this)}var js=null;function _s(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,js=new Map,e.forEach(ox,t),js=null,Hi.call(t))}function ox(t,e){if(!(e.state.loading&4)){var l=js.get(t);if(l)var n=l.get(null);else{l=new Map,js.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var f=a[i];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),n=f)}n&&l.set(null,n)}a=e.instance,f=a.getAttribute("data-precedence"),i=l.get(f)||n,i===n&&l.set(null,a),l.set(f,a),this.count++,n=Hi.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var Ha={$$typeof:Wt,Provider:null,Consumer:null,_currentValue:_l,_currentValue2:_l,_threadCount:0};function fx(t,e,l,n,a,i,f,h,v){this.tag=1,this.containerInfo=t,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=nc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nc(0),this.hiddenUpdates=nc(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.transitionTypes=null,this.incompleteTransitions=new Map}function jp(t,e,l,n,a,i,f,h,v,T,A,w){return t=new fx(t,e,l,f,v,T,A,w,h),e=1,i===!0&&(e|=24),i=je(3,null,null,e),t.current=i,i.stateNode=t,e=Bc(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:e},$c(i),t}function _p(t){return t?(t=ca,t):ca}function Ep(t,e,l,n,a,i){a=_p(a),n.context===null?n.context=a:n.pendingContext=a,n=Pl(e),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=tn(t,n,e),l!==null&&(Ne(l,t,e),hi(l,t,e))}function Tp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function To(t,e){Tp(t,e),(t=t.alternate)&&Tp(t,e)}function Np(t){if(t.tag===13||t.tag===31){var e=zn(t,67108864);e!==null&&Ne(e,t,67108864),To(t,67108864)}}function zp(t){if(t.tag===13||t.tag===31){var e=ke();e=ac(e);var l=zn(t,e);l!==null&&Ne(l,t,e),To(t,e)}}var ka=!0;function dx(t,e,l,n){var a=Z.T;Z.T=null;var i=nt.p;try{nt.p=2,No(t,e,l,n)}finally{nt.p=i,Z.T=a}}function hx(t,e,l,n){var a=Z.T;Z.T=null;var i=nt.p;try{nt.p=8,No(t,e,l,n)}finally{nt.p=i,Z.T=a}}function No(t,e,l,n){if(ka){var a=zo(n);if(a===null)uo(t,e,n,Es,l),Cp(t,n);else if(px(a,t,e,l,n))n.stopPropagation();else if(Cp(t,n),e&4&&-1<mx.indexOf(t)){for(;a!==null;){var i=Fn(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var f=jn(i.pendingLanes);if(f!==0){var h=i;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var v=1<<31-Oe(f);h.entanglements[1]|=v,f&=~v}xl(i),(St&6)===0&&(rs=Re()+500,Ci(0))}}break;case 31:case 13:h=zn(i,2),h!==null&&Ne(h,i,2),ds(),To(i,2)}if(i=zo(n),i===null&&uo(t,e,n,Es,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else uo(t,e,n,null,l)}}function zo(t){return t=fc(t),Ro(t)}var Es=null;function Ro(t){if(Es=null,t=_n(t),t!==null){var e=p(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=m(e),t!==null)return t;t=null}else if(l===31){if(t=g(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Es=t,null}function Rp(t){switch(t){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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Nv()){case hf:return 2;case mf:return 8;case nu:case zv:return 32;case pf:return 268435456;default:return 32}default:return 32}}var Co=!1,hn=null,mn=null,pn=null,ki=new Map,Bi=new Map,gn=[],mx="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 Cp(t,e){switch(t){case"focusin":case"focusout":hn=null;break;case"dragenter":case"dragleave":mn=null;break;case"mouseover":case"mouseout":pn=null;break;case"pointerover":case"pointerout":ki.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bi.delete(e.pointerId)}}function Li(t,e,l,n,a,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},e!==null&&(e=Fn(e),e!==null&&Np(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function px(t,e,l,n,a){switch(e){case"focusin":return hn=Li(hn,t,e,l,n,a),!0;case"dragenter":return mn=Li(mn,t,e,l,n,a),!0;case"mouseover":return pn=Li(pn,t,e,l,n,a),!0;case"pointerover":var i=a.pointerId;return ki.set(i,Li(ki.get(i)||null,t,e,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Bi.set(i,Li(Bi.get(i)||null,t,e,l,n,a)),!0}return!1}function Op(t){var e=_n(t.target);if(e!==null){var l=p(e);if(l!==null){if(e=l.tag,e===13){if(e=m(l),e!==null){t.blockedOn=e,jf(t.priority,function(){zp(l)});return}}else if(e===31){if(e=g(l),e!==null){t.blockedOn=e,jf(t.priority,function(){zp(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ts(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=zo(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);oc=n,l.target.dispatchEvent(n),oc=null}else return e=Fn(l),e!==null&&Np(e),t.blockedOn=l,!1;e.shift()}return!0}function Ap(t,e,l){Ts(t)&&l.delete(e)}function gx(){Co=!1,hn!==null&&Ts(hn)&&(hn=null),mn!==null&&Ts(mn)&&(mn=null),pn!==null&&Ts(pn)&&(pn=null),ki.forEach(Ap),Bi.forEach(Ap)}function Ns(t,e){t.blockedOn===e&&(t.blockedOn=null,Co||(Co=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,gx)))}var zs=null;function Dp(t){zs!==t&&(zs=t,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){zs===t&&(zs=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],a=t[e+2];if(typeof n!="function"){if(Ro(n||l)===null)continue;break}var i=Fn(l);i!==null&&(t.splice(e,3),e-=3,rr(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Ba(t){function e(v){return Ns(v,t)}hn!==null&&Ns(hn,t),mn!==null&&Ns(mn,t),pn!==null&&Ns(pn,t),ki.forEach(e),Bi.forEach(e);for(var l=0;l<gn.length;l++){var n=gn[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<gn.length&&(l=gn[0],l.blockedOn===null);)Op(l),l.blockedOn===null&&gn.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],f=a[Se]||null;if(typeof i=="function")f||Dp(l);else if(f){var h=null;if(i&&i.hasAttribute("formAction")){if(a=i,f=i[Se]||null)h=f.formAction;else if(Ro(a)!==null)continue}else h=f.action;typeof h=="function"?l[n+1]=h:(l.splice(n,3),n-=3),Dp(l)}}}function wp(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(f){return a=f})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function Oo(t){this._internalRoot=t}Rs.prototype.render=Oo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var l=e.current,n=ke();Ep(l,n,t,e,null,null)},Rs.prototype.unmount=Oo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ep(t.current,2,null,t,null,null),ds(),e[In]=null}};function Rs(t){this._internalRoot=t}Rs.prototype.unstable_scheduleHydration=function(t){if(t){var e=Sf();t={blockedOn:null,target:t,priority:e};for(var l=0;l<gn.length&&e!==0&&e<gn[l].priority;l++);gn.splice(l,0,t),l===0&&Op(t)}};var Mp=c.version;if(Mp!=="19.3.0")throw Error(o(527,Mp,"19.3.0"));nt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=j(e),t=t!==null?z(t):null,t=t===null?null:t.stateNode,t};var vx={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Z,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cs.isDisabled&&Cs.supportsFiber)try{Za=Cs.inject(vx),Ce=Cs}catch{}}return Yi.createRoot=function(t,e){if(!d(t))throw Error(o(299));var l=!1,n="",a=_h,i=Eh,f=Th;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=jp(t,1,!1,null,null,l,n,null,a,i,f,wp),t[In]=e.current,io(t),new Oo(e)},Yi.hydrateRoot=function(t,e,l){if(!d(t))throw Error(o(299));var n=!1,a="",i=_h,f=Eh,h=Th,v=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(v=l.formState)),e=jp(t,1,!0,e,l??null,n,a,v,i,f,h,wp),e.context=_p(null),l=e.current,n=ke(),n=ac(n),a=Pl(n),a.callback=null,tn(l,a,n),l=n,e.current.lanes=l,Ja(e,l),xl(e),t[In]=e.current,io(t),new Rs(e)},Yi.version="19.3.0",Yi}var Gp;function zx(){if(Gp)return Do.exports;Gp=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),Do.exports=Nx(),Do.exports}var Rx=zx(),N=Po();/**
|
|
50
|
-
* @license lucide-react v0.577.0 - ISC
|
|
51
|
-
*
|
|
52
|
-
* This source code is licensed under the ISC license.
|
|
53
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/const Sg=(...u)=>u.filter((c,r,o)=>!!c&&c.trim()!==""&&o.indexOf(c)===r).join(" ").trim();/**
|
|
55
|
-
* @license lucide-react v0.577.0 - ISC
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the ISC license.
|
|
58
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/const Cx=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
60
|
-
* @license lucide-react v0.577.0 - ISC
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the ISC license.
|
|
63
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const Ox=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(c,r,o)=>o?o.toUpperCase():r.toLowerCase());/**
|
|
65
|
-
* @license lucide-react v0.577.0 - ISC
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the ISC license.
|
|
68
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const Qp=u=>{const c=Ox(u);return c.charAt(0).toUpperCase()+c.slice(1)};/**
|
|
70
|
-
* @license lucide-react v0.577.0 - ISC
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the ISC license.
|
|
73
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/var Ax={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
75
|
-
* @license lucide-react v0.577.0 - ISC
|
|
76
|
-
*
|
|
77
|
-
* This source code is licensed under the ISC license.
|
|
78
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const Dx=u=>{for(const c in u)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1};/**
|
|
80
|
-
* @license lucide-react v0.577.0 - ISC
|
|
81
|
-
*
|
|
82
|
-
* This source code is licensed under the ISC license.
|
|
83
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/const wx=N.forwardRef(({color:u="currentColor",size:c=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:d="",children:p,iconNode:m,...g},x)=>N.createElement("svg",{ref:x,...Ax,width:c,height:c,stroke:u,strokeWidth:o?Number(r)*24/Number(c):r,className:Sg("lucide",d),...!p&&!Dx(g)&&{"aria-hidden":"true"},...g},[...m.map(([j,z])=>N.createElement(j,z)),...Array.isArray(p)?p:[p]]));/**
|
|
85
|
-
* @license lucide-react v0.577.0 - ISC
|
|
86
|
-
*
|
|
87
|
-
* This source code is licensed under the ISC license.
|
|
88
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/const Sl=(u,c)=>{const r=N.forwardRef(({className:o,...d},p)=>N.createElement(wx,{ref:p,iconNode:c,className:Sg(`lucide-${Cx(Qp(u))}`,`lucide-${u}`,o),...d}));return r.displayName=Qp(u),r};/**
|
|
90
|
-
* @license lucide-react v0.577.0 - ISC
|
|
91
|
-
*
|
|
92
|
-
* This source code is licensed under the ISC license.
|
|
93
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const Mx=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],jg=Sl("external-link",Mx);/**
|
|
95
|
-
* @license lucide-react v0.577.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const Ux=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],Hx=Sl("git-pull-request",Ux);/**
|
|
100
|
-
* @license lucide-react v0.577.0 - ISC
|
|
101
|
-
*
|
|
102
|
-
* This source code is licensed under the ISC license.
|
|
103
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const kx=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Bx=Sl("menu",kx);/**
|
|
105
|
-
* @license lucide-react v0.577.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const Lx=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],qx=Sl("message-circle-question-mark",Lx);/**
|
|
110
|
-
* @license lucide-react v0.577.0 - ISC
|
|
111
|
-
*
|
|
112
|
-
* This source code is licensed under the ISC license.
|
|
113
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const Yx=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],$x=Sl("moon",Yx);/**
|
|
115
|
-
* @license lucide-react v0.577.0 - ISC
|
|
116
|
-
*
|
|
117
|
-
* This source code is licensed under the ISC license.
|
|
118
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/const Vx=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Gx=Sl("rotate-ccw",Vx);/**
|
|
120
|
-
* @license lucide-react v0.577.0 - ISC
|
|
121
|
-
*
|
|
122
|
-
* This source code is licensed under the ISC license.
|
|
123
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/const Qx=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Xx=Sl("settings",Qx);/**
|
|
125
|
-
* @license lucide-react v0.577.0 - ISC
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the ISC license.
|
|
128
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
-
*/const Zx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Kx=Sl("shield-check",Zx);/**
|
|
130
|
-
* @license lucide-react v0.577.0 - ISC
|
|
131
|
-
*
|
|
132
|
-
* This source code is licensed under the ISC license.
|
|
133
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/const Jx=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Ix=Sl("sun",Jx);/**
|
|
135
|
-
* @license lucide-react v0.577.0 - ISC
|
|
136
|
-
*
|
|
137
|
-
* This source code is licensed under the ISC license.
|
|
138
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/const Fx=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Xp=Sl("triangle-alert",Fx);function We(u){const c=Math.abs(u);return`$${c===0?"0.000":c<.01?u.toFixed(3):u.toFixed(2)}`}const Zp=new Set(["VERIFIED","ALREADY_SATISFIED"]),tf=u=>{if(u.tampered)return"TAMPERED";if(typeof u.verdict!="string")return u.verdict;const c=u.verdict.trim().toUpperCase();return u.attested===!1?Zp.has(c)?"UNVERIFIED":`${u.verdict} (unattested)`:Zp.has(c)?u.sig_checked===!1?`${c} (signature not checked)`:c:u.verdict},Ji=()=>globalThis.LOKI_CONTROL_BASE??"",Kp="loki-control-token";function be(){var u,c;try{const r=/[#&]token=([^&]+)/.exec(((u=globalThis.location)==null?void 0:u.hash)??"");return r!=null&&r[1]&&(sessionStorage.setItem(Kp,decodeURIComponent(r[1])),(c=globalThis.history)==null||c.replaceState(null,"",globalThis.location.pathname+globalThis.location.search)),sessionStorage.getItem(Kp)}catch{return null}}const Ii=(u={})=>{const c=be();return c?{...u,authorization:`Bearer ${c}`}:u};async function ef(u){const c=await fetch(`${Ji()}${u}`,{headers:Ii()});if(!c.ok)throw new Error(`${u}: HTTP ${c.status}`);return await c.json()}function Yl(u={}){const c=new URLSearchParams;for(const[o,d]of Object.entries(u))d&&c.set(o,d);const r=c.toString();return ef(`/v1/runs${r?`?${r}`:""}`)}function Fi(u,c){return ef(`/v1/runs/${encodeURIComponent(u)}/${encodeURIComponent(c)}`)}async function lf(u,c,r){const o=await fetch(`${Ji()}/v1/runs/${encodeURIComponent(u)}/${encodeURIComponent(c)}/answer`,{method:"POST",headers:Ii({"content-type":"application/json"}),body:JSON.stringify({answer:r})}),d=await o.json();if(!o.ok)throw new Error(d.error??`HTTP ${o.status}`);return{path:d.path??"",resume:d.resume??""}}async function _g(u,c){const r=await fetch(`${Ji()}${u}`,{method:"POST",headers:Ii({"content-type":"application/json"}),body:JSON.stringify(c)}),o=await r.json().catch(()=>({}));if(!r.ok)throw new Error(o.error??`HTTP ${r.status}`);return o}const Wx=()=>_g("/v1/import",{}),Eg=()=>ef("/v1/repos");function Tg(u,c=3e3){const r=new AbortController,o=d=>new Promise(p=>{const m=setTimeout(p,d);r.signal.addEventListener("abort",()=>{clearTimeout(m),p()},{once:!0})});return(async()=>{for(;!r.signal.aborted;){try{const d=await fetch(`${Ji()}/v1/stream`,{headers:Ii({accept:"text/event-stream"}),signal:r.signal});if(d.ok&&d.body){const p=d.body.getReader(),m=new TextDecoder;let g="";for(;;){const{value:x,done:j}=await p.read();if(j)break;g+=m.decode(x,{stream:!0});const z=g.split(`
|
|
140
|
-
|
|
141
|
-
`);g=z.pop()??"",z.some(y=>/^event: run$/m.test(y))&&u()}}}catch{}await o(c)}})(),()=>r.abort()}const Px=(u,c)=>_g("/v1/start",{target:u,repo:c});async function t1(u,c){const r=await fetch(`${Ji()}/v1/runs/${encodeURIComponent(u)}/${encodeURIComponent(c)}`,{method:"DELETE",headers:Ii({"content-type":"application/json"})}),o=await r.json().catch(()=>({}));if(!r.ok)throw new Error(o.error??`HTTP ${r.status}`);return{ok:!0,removed:o.removed??{runs:0,events:0,sources:0},remaining_runs:o.remaining_runs??0}}const M=u=>`var(--cp-${u})`,e1=(...u)=>u.filter(Boolean).join(" ")||void 0,Ng={success:M("success-muted"),warning:M("warning-muted"),error:M("error-muted"),info:M("info-muted"),neutral:M("bg-3")},nf={success:M("success-ink"),warning:M("warning-ink"),error:M("error-ink"),info:M("info-ink"),neutral:M("text-2")};function Gt({interactive:u,compact:c,style:r,className:o,children:d,...p}){return s.jsx("div",{...p,"data-cp":"card","data-interactive":u?"true":void 0,className:e1("cp-card",o),style:{background:M("card"),border:`1px solid ${M("border")}`,borderRadius:M("radius-lg"),padding:c?10:16,transition:`transform ${M("dur-fast")} ${M("ease")}, box-shadow ${M("dur-fast")} ${M("ease")}`,...u?{cursor:"pointer",boxShadow:M("shadow-sm")}:null,...r},children:d})}function La({label:u,value:c,icon:r,trend:o,trendTone:d="neutral",series:p,compact:m}){const g=p&&p.length>1?p:null;let x=null;if(g){const j=Math.min(...g),z=Math.max(...g),y=z-j||1,R=g.map((H,Y)=>`${Y?"L":"M"}${(Y/(g.length-1)*80).toFixed(1)} ${(22-(H-j)/y*20).toFixed(1)}`).join(" ");x=s.jsx("svg",{"data-cp":"sparkline",width:80,height:24,viewBox:"0 0 80 24","aria-hidden":"true",children:s.jsx("path",{d:R,fill:"none",stroke:M("accent"),strokeWidth:1.5})})}return s.jsxs(Gt,{"data-cp-kind":"kpi",style:{padding:m?"10px 12px":"14px 16px",display:"flex",gap:10,alignItems:"center"},children:[r?s.jsx("span",{style:{width:28,height:28,borderRadius:6,background:M("accent-muted"),color:M("accent"),display:"inline-flex",alignItems:"center",justifyContent:"center"},children:r}):null,s.jsxs("div",{style:{flex:1,minWidth:0},children:[s.jsx("div",{style:{fontSize:M("text-sm"),color:M("text-2")},children:u}),s.jsx("div",{style:{fontFamily:M("font-mono"),fontSize:m?20:28,fontWeight:500,lineHeight:1.2},children:c})]}),o?s.jsx("span",{style:{fontSize:11,borderRadius:3,padding:"1px 6px",background:Ng[d],color:nf[d]},children:o}):null,x]})}const l1={VERIFIED:"success",PARTIAL:"warning",FAILED:"error",SPEC_CONFLICT:"info",BLOCKED:"info",running:"neutral",TAMPERED:"error",UNSIGNED:"warning",NOT_VERIFIED:"warning",UNCHECKED:"warning",UNVERIFIED:"warning","VERIFIED (signature not checked)":"info"},mt={VERIFIED:"VERIFIED",PARTIAL:"PARTIAL",FAILED:"FAILED",SPEC_CONFLICT:"SPEC_CONFLICT",BLOCKED:"BLOCKED",TAMPERED:"TAMPERED",UNVERIFIED:"UNVERIFIED",VERIFIED_UNCHECKED:"VERIFIED (signature not checked)",RUNNING:"running"},n1=[mt.VERIFIED,mt.VERIFIED_UNCHECKED,mt.UNVERIFIED,mt.TAMPERED,mt.PARTIAL,mt.FAILED,mt.SPEC_CONFLICT];function $e(u){var c;return u?u.tampered===!0||u.integrity===mt.TAMPERED||((c=u.receipt)==null?void 0:c.verdict)===mt.TAMPERED||u.verdict===mt.TAMPERED?mt.TAMPERED:tf({verdict:u.verdict??null,tampered:!1,attested:u.attested??void 0,sig_checked:u.sig_checked??void 0}):null}const $a=u=>$e(u)===mt.VERIFIED;function Rt({tone:u="neutral",pulse:c,children:r,...o}){return s.jsxs("span",{...o,"data-cp":"badge","data-tone":u,style:{display:"inline-flex",alignItems:"center",gap:4,padding:"2px 10px",borderRadius:M("radius-full"),fontSize:M("text-xs"),textTransform:"uppercase",letterSpacing:"0.025em",fontWeight:500,background:Ng[u],color:nf[u],...o.style},children:[c?s.jsx("span",{className:"cp-pulse","aria-hidden":"true",style:{width:6,height:6,borderRadius:"50%",background:"currentColor"}}):null,r]})}function Ye({verdict:u,run:c,style:r}){const o=c?$e(c):u??null;return o?s.jsx(Rt,{tone:l1[o]??"neutral",pulse:o===mt.RUNNING,"data-verdict":o,title:r?o:void 0,style:r,children:o}):s.jsx(Rt,{pulse:!0,style:r,children:"running"})}const a1={active:M("success-fill"),idle:M("text-muted"),paused:M("warning-fill"),error:M("error-fill")};function zg({state:u="idle",label:c}){return s.jsx("span",{role:"img","aria-label":c??u,"data-cp":"status-dot","data-state":u,className:u==="active"?"cp-pulse":void 0,style:{display:"inline-block",width:12,height:6,borderRadius:2,background:a1[u]}})}const i1={primary:{background:M("accent-solid"),color:"#ffffff",border:"1px solid transparent"},secondary:{background:M("bg-3"),color:M("text"),border:`1px solid ${M("border")}`},ghost:{background:"transparent",color:M("text-2"),border:"1px solid transparent"},danger:{background:M("error"),color:"#ffffff",border:"1px solid transparent"}};function Ot({variant:u="primary",size:c="md",style:r,type:o="button",...d}){const p=c==="sm"?"4px 12px":c==="lg"?"12px 24px":"8px 18px";return s.jsx("button",{...d,type:o,"data-cp":"button","data-variant":u,"data-size":c,style:{padding:p,borderRadius:M("radius-full"),fontSize:M(c==="sm"?"text-base":"text-md"),fontWeight:500,cursor:d.disabled?"not-allowed":"pointer",opacity:d.disabled?.5:1,...i1[u],...r}})}const Rg={background:M("bg-3"),border:`1px solid ${M("border")}`,borderRadius:M("radius-md"),padding:"8px 12px",fontSize:M("text-md"),color:M("text"),width:"100%",fontFamily:"inherit"};function Qa({style:u,onFocus:c,onBlur:r,...o}){const[d,p]=N.useState(!1);return s.jsx("input",{...o,"data-cp":"input",onFocus:m=>{p(!0),c==null||c(m)},onBlur:m=>{p(!1),r==null||r(m)},style:{...Rg,...d?{borderColor:M("accent"),boxShadow:M("focus"),outline:"none"}:null,...u}})}function Cg({style:u,onFocus:c,onBlur:r,...o}){const[d,p]=N.useState(!1);return s.jsx("textarea",{...o,"data-cp":"textarea",onFocus:m=>{p(!0),c==null||c(m)},onBlur:m=>{p(!1),r==null||r(m)},style:{...Rg,resize:"vertical",...d?{borderColor:M("accent"),boxShadow:M("focus"),outline:"none"}:null,...u}})}function bl({label:u,value:c,icon:r,options:o,onSelect:d}){const[p,m]=N.useState(!1),g=N.useId();return s.jsxs("span",{style:{position:"relative",display:"inline-block"},children:[s.jsxs("button",{type:"button","data-cp":"chip","aria-haspopup":o?"menu":void 0,"aria-expanded":o?p:void 0,"aria-controls":o&&p?g:void 0,onClick:()=>o&&m(x=>!x),style:{display:"inline-flex",alignItems:"center",gap:6,borderRadius:999,padding:"4px 10px",fontSize:M("text-base"),background:M("card"),border:`1px solid ${M("border")}`,color:M("text"),cursor:"pointer"},children:[r,s.jsx("span",{style:{color:M("text-2")},children:u}),c?s.jsx("span",{style:{fontWeight:500},children:c}):null]}),o&&p?s.jsx("div",{id:g,role:"menu",style:{position:"absolute",top:"100%",left:0,marginTop:4,minWidth:140,zIndex:400,background:M("bg"),border:`1px solid ${M("border")}`,borderRadius:M("radius-lg"),boxShadow:M("shadow-lg"),padding:4},children:o.map(x=>s.jsx("button",{role:"menuitem",type:"button",onClick:()=>{d==null||d(x.value),m(!1)},style:{display:"block",width:"100%",textAlign:"left",padding:"6px 10px",borderRadius:M("radius-md"),background:"transparent",border:0,color:M("text"),fontSize:M("text-base"),cursor:"pointer"},children:x.label},x.value))}):null]})}function Zn({columns:u,rows:c,caption:r}){return s.jsx(Gt,{style:{padding:0,overflow:"auto"},children:s.jsxs("table",{"data-cp":"table",style:{width:"100%",borderCollapse:"collapse",fontSize:M("text-base")},children:[r?s.jsx("caption",{style:{position:"absolute",left:-9999},children:r}):null,s.jsx("thead",{children:s.jsx("tr",{children:u.map(o=>s.jsx("th",{scope:"col",style:{textAlign:"left",padding:"10px 14px",fontSize:M("text-sm"),fontWeight:600,textTransform:"uppercase",letterSpacing:"0.05em",color:M("text-2"),background:M("bg-3")},children:o},o))})}),s.jsx("tbody",{children:c.map((o,d)=>s.jsx("tr",{style:{borderTop:`1px solid ${M("border-light")}`},children:o.map((p,m)=>s.jsx("td",{style:{padding:"10px 14px"},children:p},m))},d))})]})})}function Og({active:u,icon:c,children:r,href:o,onClick:d}){const p={position:"relative",display:"flex",alignItems:"center",gap:8,padding:"8px 12px",borderRadius:M("radius-nav"),fontSize:M("text-md"),fontWeight:500,textDecoration:"none",cursor:"pointer",border:0,width:"100%",textAlign:"left",background:u?M("accent-glow"):"transparent",color:M(u?"accent-ink":"text-2")},m=s.jsxs(s.Fragment,{children:[u?s.jsx("span",{"data-cp":"nav-bar","aria-hidden":"true",style:{position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:3,height:16,borderRadius:2,background:M("accent")}}):null,c,s.jsx("span",{children:r})]});return o?s.jsx("a",{"data-cp":"nav-item","data-active":u?"true":void 0,"aria-current":u?"page":void 0,href:o,onClick:d,style:p,children:m}):s.jsx("button",{type:"button","data-cp":"nav-item","data-active":u?"true":void 0,"aria-current":u?"page":void 0,onClick:d,style:p,children:m})}function Qo({children:u}){return s.jsx("div",{"data-cp":"group-head",style:{fontSize:9.5,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.09em",color:M("text-subtle"),padding:"4px 12px 5px"},children:u})}function u1({stages:u}){return s.jsx("ol",{"data-cp":"timeline",style:{listStyle:"none",margin:0,padding:0},children:u.map((c,r)=>s.jsxs("li",{"data-status":c.status,style:{display:"flex",gap:10,position:"relative",paddingBottom:r===u.length-1?0:14},children:[s.jsxs("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[s.jsx("span",{style:{width:10,height:10,borderRadius:"50%",background:c.status==="pending"?M("bg-3"):c.status==="neutral"?M("text-muted"):M(`${c.status}-fill`),border:`1px solid ${M("border")}`}}),r<u.length-1?s.jsx("span",{style:{flex:1,width:1,background:M("border")}}):null]}),s.jsxs("span",{style:{fontSize:M("text-base")},children:[c.label,c.duration?s.jsx("span",{style:{marginLeft:8,fontFamily:M("font-mono"),color:M("text-2")},children:c.duration}):null]})]},`${c.label}-${r}`))})}function s1({icon:u,title:c,meta:r,children:o,expandable:d,defaultOpen:p}){const[m,g]=N.useState(!!p),x=N.useId();return s.jsxs("div",{"data-cp":"message",style:{display:"flex",gap:12,padding:"8px 0"},children:[s.jsx("span",{style:{width:32,height:32,borderRadius:8,flex:"none",background:M("bg-3"),color:M("text-2"),display:"inline-flex",alignItems:"center",justifyContent:"center"},children:u}),s.jsxs("div",{style:{flex:1,minWidth:0},children:[s.jsx("div",{style:{fontSize:M("text-md")},children:c}),r?s.jsx("div",{style:{fontFamily:M("font-mono"),fontSize:M("text-sm"),color:M("text-2")},children:r}):null,d?s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button","aria-expanded":m,"aria-controls":x,onClick:()=>g(j=>!j),style:{background:"transparent",border:0,padding:0,marginTop:4,color:M("accent"),fontSize:M("text-base"),cursor:"pointer"},children:m?"Hide details":"Show details"}),m?s.jsx(Gt,{id:x,style:{marginTop:6},children:o}):null]}):o]})]})}function qt({title:u,hint:c,action:r}){return s.jsxs("div",{"data-cp":"empty-state",style:{textAlign:"center",padding:"var(--cp-space-3xl) var(--cp-space-xl)",color:M("text-2")},children:[s.jsx("div",{style:{fontFamily:M("font-serif"),fontSize:M("text-2xl"),color:M("text")},children:u}),c?s.jsx("div",{style:{marginTop:8,fontSize:M("text-md")},children:c}):null,r?s.jsx("div",{style:{marginTop:16},children:r}):null]})}function Ft({size:u=16,label:c="Loading"}){return s.jsx("span",{role:"status","aria-label":c,"data-cp":"spinner",className:"cp-spinner",style:{display:"inline-block",width:u,height:u,borderRadius:"50%",border:`2px solid ${M("border")}`,borderTopColor:M("accent")}})}function c1({tone:u="neutral",children:c,onClose:r}){return s.jsxs("div",{role:u==="error"?"alert":"status","data-cp":"toast","data-tone":u,style:{position:"fixed",right:16,bottom:16,zIndex:600,display:"flex",gap:12,alignItems:"center",background:M("bg"),border:`1px solid ${M("border")}`,borderLeft:`3px solid ${nf[u]}`,borderRadius:M("radius-lg"),boxShadow:M("shadow-lg"),padding:"10px 14px",fontSize:M("text-md"),color:M("text")},children:[s.jsx("span",{children:c}),r?s.jsx("button",{type:"button","aria-label":"Dismiss",onClick:r,style:{background:"transparent",border:0,color:M("text-2"),cursor:"pointer"},children:"x"}):null]})}function r1(u,c){const r=N.useRef(null);return N.useEffect(()=>{var p;if(!u)return;const o=document.activeElement;(p=r.current)==null||p.focus();const d=m=>{m.key==="Escape"&&c()};return document.addEventListener("keydown",d),()=>{var m;document.removeEventListener("keydown",d),(m=o==null?void 0:o.focus)==null||m.call(o)}},[u,c]),r}function o1({open:u,title:c,onClose:r,side:o="right",children:d}){const p=r1(u,r),m=N.useId();return u?s.jsx("div",{"data-cp":"drawer-backdrop",onClick:r,style:{position:"fixed",inset:0,zIndex:300,background:"rgba(0,0,0,0.3)"},children:s.jsxs("aside",{ref:p,role:"dialog","aria-modal":"true","aria-labelledby":m,tabIndex:-1,"data-cp":"drawer","data-side":o,onClick:g=>g.stopPropagation(),style:{position:"absolute",top:0,bottom:0,[o]:0,width:"min(var(--cp-detail-w, 288px), 92vw)",background:M("bg"),color:M("text"),borderLeft:o==="right"?`1px solid ${M("border")}`:void 0,borderRight:o==="left"?`1px solid ${M("border")}`:void 0,boxShadow:M("shadow-lg"),padding:16,overflow:"auto"},children:[s.jsx("h2",{id:m,style:{margin:"0 0 12px",fontFamily:M("font-serif"),fontWeight:400,fontSize:"1.15rem"},children:c}),d]})}):null}function af({children:u}){return s.jsx("kbd",{"data-cp":"kbd",style:{fontFamily:M("font-mono"),fontSize:M("text-sm"),padding:"1px 5px",borderRadius:M("radius-md"),background:M("bg-3"),border:`1px solid ${M("border")}`,color:M("text-2")},children:u})}const ql="unmeasured",Jp=3e3,f1=["intake","plan","Wall","implement","verify","seal","PR"];function d1(u,c){const r=new Set,o=m=>u.find(g=>!r.has(g)&&g.stage.toLowerCase().includes(m.toLowerCase())),d=(m,g)=>{if(!g)return{name:m,status:"pending",elapsed_s:null};r.add(g);const x=g.started_at?Date.parse(g.started_at):NaN,j=g.ended_at?Date.parse(g.ended_at):g.status==="started"?c:NaN,z=Number.isNaN(x)||Number.isNaN(j)?null:Math.max(0,(j-x)/1e3),y=g.status==="started"?"running":g.status==="completed"?"done":"failed";return{name:m,status:y,elapsed_s:z}},p=f1.map(m=>d(m,o(m)));for(const m of u)r.has(m)||p.push(d(m.stage,m));return p}const h1=u=>u===null?ql:u>=60?`${Math.floor(u/60)}m ${Math.floor(u%60)}s`:`${u.toFixed(1)}s`,Ag=u=>u.cost_usd!==null&&u.cost_usd!==void 0?We(u.cost_usd):u.partial_usd?`at least ${We(u.partial_usd)} (rest ${ql})`:ql;function Dg(u,c,r){const[o,d]=N.useState({data:null,error:null});return N.useEffect(()=>{let p=!0,m;const g=()=>u().then(x=>{p&&(d({data:x,error:null}),r(x)&&(m=setTimeout(g,Jp)))},x=>{p&&(d(j=>({data:j.data,error:x.message})),m=setTimeout(g,Jp))});return g(),()=>{p=!1,clearTimeout(m)}},c),o}const Qn="rounded border border-slate-200 p-4 dark:border-slate-800",m1={pending:"text-slate-400",running:"text-sky-600 dark:text-sky-400",done:"text-emerald-600 dark:text-emerald-400",failed:"text-red-600"},p1=u=>u&&/^https?:\/\//.test(u)?u:null;function wg({source:u,run:c}){const{data:r,error:o}=Dg(()=>Fi(u,c),[u,c],j=>j.status==="running"),[,d]=N.useState(0),p=(r==null?void 0:r.status)==="running";if(N.useEffect(()=>{if(!p)return;const j=setInterval(()=>d(z=>z+1),1e3);return()=>clearInterval(j)},[p]),o&&!r)return s.jsxs("p",{role:"alert",className:"text-red-600",children:["Could not load run: ",o]});if(!r)return s.jsx("p",{className:"text-slate-500",children:"Loading run"});const m=d1(r.stages??[],Date.now()),g=r.files_touched??[],x=p1(r.pr_url);return s.jsxs("section",{"data-testid":"live-run",className:"space-y-4",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[s.jsx("h1",{className:"text-xl font-semibold",children:p?"Live run":"Run finished"}),s.jsx("span",{className:"break-all font-mono text-xs text-slate-500",children:r.run_id})]}),s.jsxs("div",{className:Qn,children:[s.jsx("h2",{className:"mb-2 text-sm font-semibold uppercase text-slate-500",children:"Stages"}),s.jsx("ol",{className:"space-y-2 text-sm",children:m.map(j=>s.jsxs("li",{"data-testid":"live-stage","data-status":j.status,className:"flex flex-wrap items-center justify-between gap-x-4",children:[s.jsx("span",{className:"font-medium",children:j.name}),s.jsxs("span",{className:m1[j.status],children:[j.status,", ",j.status==="pending"?"not started":h1(j.elapsed_s),", limit ",ql]})]},j.name))})]}),s.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[s.jsxs("div",{className:Qn,children:[s.jsx("h2",{className:"mb-1 text-sm font-semibold uppercase text-slate-500",children:"Diff"}),s.jsxs("p",{"data-testid":"live-diff",children:[g.length," files, +/- ",ql]})]}),s.jsxs("div",{className:Qn,children:[s.jsx("h2",{className:"mb-1 text-sm font-semibold uppercase text-slate-500",children:"Cost so far"}),s.jsx("p",{"data-testid":"live-cost",children:Ag(r)})]}),s.jsxs("div",{className:Qn,children:[s.jsx("h2",{className:"mb-1 text-sm font-semibold uppercase text-slate-500",children:"Model"}),s.jsx("p",{"data-testid":"live-model",children:r.model??ql})]})]}),!p&&s.jsxs("div",{"data-testid":"live-outcome",className:Qn,children:[s.jsx("h2",{className:"mb-1 text-sm font-semibold uppercase text-slate-500",children:"Outcome"}),s.jsx("p",{className:`text-lg font-medium${r.tampered?" text-red-600":""}`,children:$e(r)??ql}),s.jsxs("p",{className:"mt-1 flex flex-wrap gap-4 text-sm",children:[x?s.jsx("a",{"data-testid":"live-pr",href:x,target:"_blank",rel:"noreferrer",className:"text-sky-600 hover:underline dark:text-sky-400",children:"Pull request"}):s.jsx("span",{"data-testid":"live-pr",className:"text-slate-500",children:"no PR"}),r.receipt?s.jsxs("a",{"data-testid":"live-receipt",href:`#/runs/${encodeURIComponent(u)}/${encodeURIComponent(c)}`,className:"text-sky-600 hover:underline dark:text-sky-400",children:["Receipt",r.receipt.signed?" (signed)":" (unsigned)"]}):s.jsx("span",{"data-testid":"live-receipt",className:"text-slate-500",children:"no receipt"})]})]}),s.jsx("a",{href:"#/overview",className:"inline-block py-2 text-sm text-sky-600 hover:underline dark:text-sky-400",children:"Overview"})]})}function g1(u,c){const r=new Date(c);r.setUTCHours(0,0,0,0);const o=r.getTime(),d={today:0,week:0,verified:0,unchecked:0,partial:0,failed:0,other:0,running:0,costUsd:0,unmeasuredRuns:0,prsOpened:0,last:[]};for(const p of u){const m=p.started_at?Date.parse(p.started_at):NaN;Number.isNaN(m)||(m>=o&&d.today++,m>=o-6*864e5&&d.week++);const g=$e(p);g===mt.VERIFIED?d.verified++:g===mt.VERIFIED_UNCHECKED?d.unchecked++:g===mt.PARTIAL?d.partial++:g===mt.FAILED?d.failed++:g?d.other++:d.running++,p.cost_usd!==null&&p.cost_usd!==void 0?d.costUsd+=p.cost_usd:(d.unmeasuredRuns++,d.costUsd+=p.partial_usd??0),p.pr_url&&d.prsOpened++}return d.last=[...u].sort((p,m)=>Date.parse(m.started_at??"")-Date.parse(p.started_at??"")).slice(0,10),d}function Ll({id:u,label:c,value:r}){return s.jsxs("div",{className:Qn,children:[s.jsx("div",{className:"text-xs uppercase text-slate-500",children:c}),s.jsx("div",{"data-testid":u,className:"mt-1 text-lg font-semibold",children:r})]})}function v1({runs:u,now:c=Date.now()}){const r=g1(u,c),o=r.unmeasuredRuns===0?`${We(r.costUsd)}`:`${We(r.costUsd)} measured, ${r.unmeasuredRuns} run${r.unmeasuredRuns===1?"":"s"} ${ql}`;return s.jsxs("section",{"data-testid":"overview",className:"space-y-4",children:[s.jsx("h1",{className:"text-xl font-semibold",children:"Overview"}),s.jsxs("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-4",children:[s.jsx(Ll,{id:"ov-today",label:"Runs today",value:String(r.today)}),s.jsx(Ll,{id:"ov-week",label:"Runs, last 7 days",value:String(r.week)}),s.jsx(Ll,{id:"ov-verified",label:mt.VERIFIED,value:String(r.verified)}),s.jsx(Ll,{id:"ov-unchecked",label:"Signature not checked",value:String(r.unchecked)}),s.jsx(Ll,{id:"ov-partial",label:mt.PARTIAL,value:String(r.partial)}),s.jsx(Ll,{id:"ov-failed",label:mt.FAILED,value:String(r.failed)}),s.jsx(Ll,{id:"ov-cost",label:"Total cost",value:o}),s.jsx(Ll,{id:"ov-pr-opened",label:"PRs opened",value:String(r.prsOpened)}),s.jsx(Ll,{id:"ov-pr-merged",label:"PRs merged",value:ql})]}),s.jsxs("div",{className:Qn,children:[s.jsx("h2",{className:"mb-2 text-sm font-semibold uppercase text-slate-500",children:"Last 10 runs"}),s.jsx("ul",{className:"space-y-1 text-sm",children:r.last.map(d=>s.jsxs("li",{"data-testid":"ov-run",className:"flex flex-wrap justify-between gap-x-4",children:[s.jsx("a",{href:`#/runs/${encodeURIComponent(d.source_id)}/${encodeURIComponent(d.run_id)}`,className:"break-all py-1 font-mono text-xs text-sky-600 hover:underline dark:text-sky-400",children:d.run_id}),s.jsxs("span",{className:d.tampered?"text-red-600":void 0,children:[$e(d)??"in progress",", ",Ag(d)]})]},`${d.source_id}/${d.run_id}`))})]})]})}function Mg({fallback:u,overview:c}){const{data:r}=Dg(()=>Yl(),[],d=>d.runs.some(p=>p.status==="running"));if(!r)return s.jsx("p",{className:"text-slate-500",children:"Loading runs"});if(r.runs.length===0)return s.jsx(s.Fragment,{children:u});const o=r.runs.find(d=>d.status==="running");return o&&!c?s.jsx(wg,{source:o.source_id,run:o.run_id}):s.jsx(v1,{runs:r.runs})}const Qs=new Map,Xo=new Set;let Ug=0;const Hg=()=>{Ug++;for(const u of Xo)u()};function qe(u){Qs.set(u.id,u),Hg()}function Ip(u){Qs.delete(u)&&Hg()}const kg=()=>[...Qs.values()],y1=()=>kg().filter(u=>u.inSettings),Bg=u=>(Xo.add(u),()=>{Xo.delete(u)}),Bs=()=>Ug;function Va(u){const r=(u.replace(/^#/,"").split("?")[0]??"").replace(/\/+$/,"");return r===""?"/":r.startsWith("/")?r:`/${r}`}function x1(u,c){const r=u.split("/").filter(Boolean),o=c.split("/").filter(Boolean);if(r.length!==o.length)return null;const d={};for(let p=0;p<r.length;p++){const m=r[p];if(m.startsWith(":"))try{d[m.slice(1)]=decodeURIComponent(o[p])}catch{return null}else if(m!==o[p])return null}return d}function b1(u){const c=Va(u);let r=null;for(const o of Qs.values()){const d=x1(o.path,c);if(!d)continue;const p=o.path.split("/").filter(m=>m&&!m.startsWith(":")).length;(!r||p>r.score)&&(r={page:o,params:d,score:p})}return r?{page:r.page,params:r.params}:null}async function S1(u){const c=globalThis.LOKI_CONTROL_BASE??"",r=be(),o=await fetch(`${c}/v1/stats/cost?group=${u}`,{headers:r?{authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`/v1/stats/cost: HTTP ${o.status}`);return await o.json()}const Xn=We,Os=u=>u.toLocaleString("en-US"),Fp=[{value:"day",label:"Day"},{value:"model",label:"Model"},{value:"repo",label:"Repo"},{value:"provider",label:"Provider"}];function j1({budget:u}){const c=r=>`${r} run${r===1?"":"s"}`;return s.jsxs(Gt,{"data-testid":"cost-budget",style:{display:"flex",flexDirection:"column",gap:6},children:[s.jsxs("div",{"data-testid":"cost-budget-subscription",children:[s.jsx(Rt,{tone:"info",children:"Subscription runs"})," ","no cap (",c(u.subscription_runs),"): usage counts against your plan limits, no dollar figure is measured."]}),s.jsxs("div",{"data-testid":"cost-budget-api",children:[s.jsx(Rt,{tone:"warning",children:"API-key runs"})," ",Xn(u.api_key_default_cap_usd)," cap per run by default (",c(u.api_key_runs),"); ",s.jsx("code",{children:"--max-cost"})," and loki.yaml ",s.jsx("code",{children:"budgets.per_run"})," override it."]})]})}function _1({row:u,max:c}){const r=o=>c>0?`${o/c*100}%`:"0%";return s.jsxs("div",{"data-testid":"cost-bar",role:"img","aria-label":`measured ${Xn(u.measured_usd)}, partial ${Xn(u.partial_usd)}`,style:{display:"flex",height:8,minWidth:120,background:"var(--cp-bg-3)",borderRadius:4,overflow:"hidden"},children:[s.jsx("span",{"data-part":"measured",style:{width:r(u.measured_usd),background:"var(--cp-accent)"}}),s.jsx("span",{"data-part":"partial",style:{width:r(u.partial_usd),background:"var(--cp-warning-fill)"}})]})}function E1(){const[u,c]=N.useState("day"),[r,o]=N.useState(null),[d,p]=N.useState(null);if(N.useEffect(()=>{let j=!0;return o(null),p(null),S1(u).then(z=>{j&&o(z)},z=>{j&&p(z.message)}),()=>{j=!1}},[u]),d)return s.jsx(qt,{title:"Cost unavailable",hint:d});if(!r)return s.jsx(Ft,{label:"Loading cost"});const m=r.totals,g=Math.max(0,...r.rows.map(j=>j.measured_usd+j.partial_usd)),x=Fp.find(j=>j.value===u).label;return s.jsxs("div",{"data-testid":"cost-page",style:{display:"flex",flexDirection:"column",gap:16},children:[s.jsx("h1",{style:{margin:0,fontFamily:"var(--cp-font-serif)",fontWeight:400},children:"Cost and usage"}),s.jsx(j1,{budget:r.budget}),s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:12},children:[s.jsx(La,{label:"Measured",value:s.jsx("span",{"data-testid":"cost-measured",children:Xn(m.measured_usd)}),trend:`${m.measured_runs} runs`,trendTone:"success"}),s.jsx(La,{label:"Partial (priced sessions only)",value:s.jsx("span",{"data-testid":"cost-partial",children:Xn(m.partial_usd)}),trend:`${m.partial_runs} runs`,trendTone:"warning"}),s.jsx(La,{label:"Unmeasured",value:s.jsxs("span",{"data-testid":"cost-unmeasured",children:[m.unmeasured_runs," runs"]}),trend:"not measured"}),s.jsx(La,{label:"Tokens in / out",value:s.jsxs("span",{"data-testid":"cost-tokens",children:[Os(m.input_tokens)," / ",Os(m.output_tokens)]})})]}),s.jsx("div",{children:s.jsx(bl,{label:"Group by",value:x,options:Fp,onSelect:j=>c(j)})}),r.rows.length===0?s.jsx(qt,{title:"No runs yet",hint:"Cost appears here once a run has been ingested."}):s.jsx(Zn,{caption:`Cost by ${x}`,columns:[x,"Runs","Measured","Partial","Unmeasured","Tokens in","Tokens out","Spend"],rows:r.rows.map(j=>[j[u]??"unknown",j.runs,j.measured_runs?Xn(j.measured_usd):"not measured",j.partial_runs?`${Xn(j.partial_usd)} (partial)`:"none",j.unmeasured_runs?`${j.unmeasured_runs} not measured`:"none",Os(j.input_tokens),Os(j.output_tokens),s.jsx(_1,{row:j,max:g},"bar")])})]})}const T1={id:"cost",path:"/cost",title:"Cost and usage",component:E1};class Lg extends Error{constructor(c,r){super(r),this.status=c}}const N1=()=>globalThis.LOKI_CONTROL_BASE??"";async function uf(u){const c=be(),r=await fetch(`${N1()}/v1/runs`,{method:"POST",headers:{"content-type":"application/json",...c?{authorization:`Bearer ${c}`}:{}},body:JSON.stringify(u)}),o=await r.json().catch(()=>({}));if(!r.ok)throw new Lg(r.status,o.error??`HTTP ${r.status}`);return o}const qg=async()=>(await Eg()).repos,Yg=()=>globalThis.LOKI_CONTROL_BASE??"",$g=(u={})=>{const c=be();return c?{...u,authorization:`Bearer ${c}`}:u};async function Vg(u,c){const r=await fetch(`${Yg()}/v1/runs/${encodeURIComponent(u)}/${encodeURIComponent(c)}/verify`,{method:"POST",headers:$g({"content-type":"application/json"}),body:"{}"}),o=await r.json().catch(()=>({}));if(!r.ok)throw new Error(o.error??`HTTP ${r.status}`);return o}async function z1(){const u=await fetch(`${Yg()}/v1/keys`,{headers:$g()});if(u.status===404)return null;if(!u.ok)throw new Error(`/v1/keys: HTTP ${u.status}`);return await u.json()}function R1(u){const c=new Map;for(const r of u){if(!r.verdict||!r.started_at)continue;const o=r.started_at.slice(0,10),d=c.get(o)??{v:0,n:0};d.n++,$a(r)&&d.v++,c.set(o,d)}return[...c.entries()].sort(([r],[o])=>r<o?-1:1).map(([r,o])=>({day:r,rate:o.v/o.n,total:o.n}))}const sf=()=>globalThis.LOKI_CONTROL_BASE??"",cf=()=>{const u=be();return u?{authorization:`Bearer ${u}`}:{}},rf=(u,c)=>`/v1/runs/${encodeURIComponent(u)}/${encodeURIComponent(c)}`;async function Gg(u,c,r){try{const o=await fetch(`${sf()}${rf(u,c)}/artifact/${r}`,{headers:cf()});return o.ok?await o.text():null}catch{return null}}async function C1(u,c,r=-1){const o=[];try{for(let d=r,p=0;p<200;p++){const m=d>=0?`?after=${d}&limit=1000`:"?limit=1000",g=await fetch(`${sf()}${rf(u,c)}/events${m}`,{headers:cf()});if(!g.ok)break;const x=await g.json(),j=x.events??[];if(o.push(...j),!x.has_more||j.length===0)break;d=j[j.length-1].seq}}catch{}return o}function O1(u,c){const r=u.split(`
|
|
142
|
-
|
|
143
|
-
`),o=r.pop()??"";for(const d of r){const p=d.split(`
|
|
144
|
-
`).filter(m=>m.startsWith("data:")).map(m=>m.slice(5).trim()).join("");if(!(!p||!/^event: event$/m.test(d)))try{c(JSON.parse(p))}catch{}}return o}async function A1(u,c,r,o,d){try{const p=await fetch(`${sf()}${rf(u,c)}/stream?after=${r()}`,{headers:{...cf(),accept:"text/event-stream"},signal:d});if(!p.ok||!p.body)return;const m=p.body.getReader(),g=new TextDecoder;let x="";for(;;){const{done:j,value:z}=await m.read();if(j)return;x=O1(x+g.decode(z,{stream:!0}),o)}}catch{}}const Wp=u=>u&&typeof u=="object"?u:{},Pp=u=>typeof u=="number"&&Number.isFinite(u)?u:null,ul=u=>typeof u=="string"&&u?u:null,ko=u=>{const c=u?Date.parse(u):NaN;return Number.isNaN(c)?null:c};function D1(u){const c=[],r=new Map,o=new Map,d=new Map;for(const m of u){const g=Wp(m.data),x=m.stage??"";if(m.type==="session.started"&&x&&ul(g.model)&&d.set(x,ul(g.model)),m.type==="cost"&&x){const j=o.get(x)??{usd:0,unmeasured:!1,seen:!1},z=Pp(g.usd);j.seen=!0,z===null?j.unmeasured=!0:j.usd+=z,o.set(x,j),ul(g.model)&&!d.has(x)&&d.set(x,ul(g.model))}}const p=m=>{const g=o.get(m);return g&&g.seen&&!g.unmeasured?g.usd:null};for(const m of u){const g=Wp(m.data);if(m.type==="run.started")c.push({key:`s${m.seq}`,ts:m.ts??null,kind:"run",label:"Run started",duration_s:null,model:ul(g.model),cost_usd:null,outcome:"started",detail:ul(g.issue_ref)??void 0});else if(m.type==="stage.started"&&m.stage){const x={key:`s${m.seq}`,ts:m.ts??null,kind:"stage",label:m.stage,duration_s:null,model:d.get(m.stage)??null,cost_usd:p(m.stage),outcome:"running",startedMs:ko(m.ts)};r.set(m.stage,x),c.push(x)}else if((m.type==="stage.skipped"||m.type==="stage.failed")&&m.stage){const x=r.get(m.stage),j=ul(g.reason)??(m.type==="stage.skipped"?"no reason recorded":null),z=m.type==="stage.skipped"?"skipped":"failed";x?Object.assign(x,{outcome:z,detail:j??void 0,cost_usd:p(m.stage)}):c.push({key:`s${m.seq}`,ts:m.ts??null,kind:"stage",label:m.stage,duration_s:null,model:null,cost_usd:p(m.stage),outcome:z,detail:j??void 0}),r.delete(m.stage)}else if(m.type==="stage.completed"&&m.stage){const x=r.get(m.stage),j=Pp(g.duration_s)??((x==null?void 0:x.startedMs)!=null&&ko(m.ts)!=null?(ko(m.ts)-x.startedMs)/1e3:null),z=ul(g.skipped_reason)??ul(g.reason),y=g.skipped===!0?"skipped":"completed";x?Object.assign(x,{duration_s:j,outcome:y,model:d.get(m.stage)??x.model,cost_usd:p(m.stage),detail:z??void 0}):c.push({key:`s${m.seq}`,ts:m.ts??null,kind:"stage",label:m.stage,duration_s:j,model:d.get(m.stage)??null,cost_usd:p(m.stage),outcome:y,detail:z??void 0}),r.delete(m.stage)}else m.type==="pr.opened"?c.push({key:`s${m.seq}`,ts:m.ts??null,kind:"pr",label:"Pull request opened",duration_s:null,model:null,cost_usd:null,outcome:g.draft===!0?"draft":"opened",detail:ul(g.url)??void 0}):m.type==="receipt.sealed"?c.push({key:`s${m.seq}`,ts:m.ts??null,kind:"receipt",label:"Receipt sealed",duration_s:null,model:null,cost_usd:null,outcome:g.signed===!0?"signed":"unsigned"}):m.type==="run.completed"&&c.push({key:`s${m.seq}`,ts:m.ts??null,kind:"verdict",label:"Run completed",duration_s:null,model:null,cost_usd:null,outcome:ul(g.verdict)??"no verdict"})}return c}const Ht="unmeasured",w1={intake:"Read the issue and its comments",plan:"Named the files and tests in scope",implement:"Edited the code in an isolated worktree",fix:"Fixed what the failing checks reported",verify:"Ran the repo tests against the change",commit:"Committed the change to the run branch",wall:"Checked the run against its time budget",seal:"Signed a receipt with the diff hash","deep-verify":"Full suite and secret scan after the PR opens"};function M1(u){const c=u.detail?` (${u.detail})`:"";if(u.kind==="run")return`Run started${u.detail?` for ${u.detail}`:""}`;if(u.kind==="pr")return`Opened a ${u.outcome==="draft"?"draft ":""}pull request${c}`;if(u.kind==="receipt")return`Sealed the receipt, ${u.outcome}`;if(u.kind==="verdict")return`Run finished with verdict ${u.outcome}`;const r=w1[u.label]??`Stage ${u.label}`;return u.outcome==="failed"?`${r}: failed${c}`:u.outcome==="skipped"?`${r}: skipped${c}`:u.outcome==="running"?`${r}: in progress`:`${r}${c}`}function U1(u){const c=u?Date.parse(u):NaN;return Number.isNaN(c)?null:new Date(c).toISOString().slice(11,19)}function H1(u){const c=[];let r=null;for(const o of u.split(`
|
|
145
|
-
`)){const d=/^diff --git a\/(.+?) b\/(.+)$/.exec(o);if(d){r={path:d[2],added:0,removed:0,kind:"modified"},c.push(r);continue}if(r)if(o.startsWith("new file mode"))r.kind="added";else if(o.startsWith("deleted file mode"))r.kind="deleted";else{if(o.startsWith("+++")||o.startsWith("---"))continue;o.startsWith("+")?r.added++:o.startsWith("-")&&r.removed++}}return c}function k1(u){const c=/^\s*\[([^\]]{1,40})\]\s*(.*)$/.exec(u);if(c)return{owner:c[1],text:c[2]};const r=/^(.*?)[\s,;(-]*\(?owner[:\s]+([A-Za-z0-9_@./-]{1,40})\)?\s*$/i.exec(u);return r?{owner:r[2],text:r[1]}:{owner:null,text:u}}function B1(u){const c=u.length,r=u.some(d=>d.status==="started"),o=u.filter(d=>d.status!=="started").length;return{n:Math.min(c,o+(r?1:0)),m:c,running:r}}function Ls(u){return typeof u!="number"?Ht:u>=3600?`${Math.floor(u/3600)}h ${Math.floor(u%3600/60)}m`:u>=60?`${Math.floor(u/60)}m ${Math.floor(u%60)}s`:`${u.toFixed(1)}s`}const L1=Ht;function q1(u){return u.cost_usd!==null&&u.cost_usd!==void 0?We(u.cost_usd):u.partial_usd?`at least ${We(u.partial_usd)} (${u.measured_sessions} of ${u.total_sessions} sessions measured)`:L1}function Y1(u){const c=u.data,r=c==null?"":typeof c=="string"?c:JSON.stringify(c);return[u.type,u.stage,r.length>160?`${r.slice(0,160)}...`:r].filter(Boolean).join(" ")}function $1(u,c){const[r,o]=N.useState([]),d=N.useRef(-1);return N.useEffect(()=>{const p=new AbortController;d.current=-1;const m=g=>{const x=g.filter(j=>j.seq>d.current);x.length&&(d.current=x[x.length-1].seq,o(j=>[...j,...x].slice(-2e3)))};return(async()=>{for(m(await C1(u,c));!p.signal.aborted;)await A1(u,c,()=>d.current,g=>m([g]),p.signal),p.signal.aborted||await new Promise(g=>setTimeout(g,3e3))})(),()=>p.abort()},[u,c]),r}function tg(u,c,r){const[o,d]=N.useState(void 0);return N.useEffect(()=>{let p=!0;return Gg(u,c,r).then(m=>{p&&d(m)}),()=>{p=!1}},[u,c,r]),o}const Zo={completed:"var(--cp-term-green)",running:"var(--cp-term-purple)",failed:"var(--cp-term-red)",skipped:"var(--cp-term-amber)"},V1=u=>Zo[u==="started"?"running":u]??"var(--cp-term-dim)";function qa({color:u,pulse:c}){return s.jsx("span",{"aria-hidden":"true",className:c?"cp-pulse":void 0,style:{display:"inline-block",width:8,height:8,borderRadius:"50%",background:u,flexShrink:0}})}function G1({d:u}){return s.jsxs("aside",{className:"cp-term-side","data-testid":"run-stages","aria-label":"Stages",children:[s.jsx("div",{style:{color:"var(--cp-term-dim)",marginBottom:10,textTransform:"uppercase",letterSpacing:"0.12em",fontSize:10},children:"Stages"}),u.stages.length===0?s.jsx("div",{style:{color:"var(--cp-term-muted)"},children:"no stages recorded yet"}):null,u.stages.map((c,r)=>s.jsxs("div",{"data-testid":"run-stage","data-status":c.status,style:{display:"flex",alignItems:"center",gap:8,padding:"4px 0",color:c.status==="started"?"var(--cp-term-lilac)":"var(--cp-term-text)"},children:[s.jsx(qa,{color:V1(c.status),pulse:c.status==="started"}),s.jsx("span",{className:"cp-trunc",style:{flex:1},children:c.stage}),c.reason?s.jsx("span",{"data-testid":"run-stage-reason",className:"cp-trunc",style:{maxWidth:80,color:"var(--cp-term-muted)"},title:c.reason,children:c.reason}):c.status==="skipped"?s.jsx("span",{"data-testid":"run-stage-reason",style:{color:"var(--cp-term-muted)"},children:"no reason recorded"}):null]},`${c.stage}-${r}`))]})}function Q1({events:u,awaiting:c}){const r=D1(u);return r.length===0?s.jsx("div",{"data-testid":"run-timeline",style:{color:"var(--cp-term-muted)",fontSize:12},children:c?"Waiting for the first event":"No events recorded for this run."}):s.jsx("ol",{"data-testid":"run-timeline","aria-live":"polite",style:{listStyle:"none",margin:0,padding:0},children:r.map(o=>{const d=o.kind==="stage";return s.jsxs("li",{className:"cp-tl-row","data-testid":"timeline-line","data-outcome":o.outcome,children:[s.jsx("span",{"data-testid":"tl-time",style:{fontFamily:"var(--cp-font-mono)",color:"var(--cp-term-dim)"},children:U1(o.ts)??Ht}),s.jsxs("span",{style:{display:"flex",alignItems:"flex-start",gap:6,fontFamily:"var(--cp-font-mono)",color:Zo[o.outcome]??"var(--cp-term-lilac)"},children:[s.jsx("span",{style:{marginTop:6},children:s.jsx(qa,{color:Zo[o.outcome]??"var(--cp-term-purple)",pulse:o.outcome==="running"})}),s.jsx("strong",{"data-testid":"tl-label",className:"cp-trunc",style:{fontWeight:500},children:o.label})]}),s.jsx("span",{"data-testid":"tl-desc",style:{color:"var(--cp-term-text)"},children:M1(o)}),d?s.jsxs("span",{className:"cp-tl-meta",children:[s.jsx("span",{"data-testid":"tl-duration",children:typeof o.duration_s=="number"?Ls(o.duration_s):o.outcome==="running"?"running":Ht}),s.jsx("span",{"data-testid":"tl-model",children:o.model??Ht}),s.jsx("span",{"data-testid":"tl-cost",children:o.cost_usd===null?Ht:We(o.cost_usd)})]}):null]},o.key)})})}const X1={display:"flex",flexDirection:"column",gap:10};function Wi({title:u,meta:c,children:r,testid:o}){return s.jsxs(Gt,{"data-testid":o,style:X1,children:[s.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:12,flexWrap:"wrap"},children:[s.jsx("h2",{className:"cp-display",style:{margin:0,fontSize:18},children:u}),c?s.jsx("span",{style:{color:"var(--cp-text-muted)",fontSize:"var(--cp-text-base)"},children:c}):null]}),r]})}function Z1({d:u,patch:c}){const r=c?H1(c):null,o=u.files_touched??[],d=(r==null?void 0:r.reduce((g,x)=>g+x.added,0))??0,p=(r==null?void 0:r.reduce((g,x)=>g+x.removed,0))??0,m={added:["+","var(--cp-success-ink)"],deleted:["-","var(--cp-error-ink)"],modified:["~","var(--cp-warning-ink)"]};return s.jsx(Wi,{title:"Changed files",testid:"run-diff",meta:r&&r.length?`${r.length} files, +${d} -${p}`:o.length?`${o.length} files touched`:void 0,children:r&&r.length?s.jsx("ul",{style:{listStyle:"none",margin:0,padding:0,fontFamily:"var(--cp-font-mono)",fontSize:"var(--cp-text-base)"},children:r.map(g=>s.jsxs("li",{"data-testid":"changed-file",style:{display:"flex",gap:10,padding:"3px 0"},children:[s.jsx("span",{style:{color:m[g.kind][1],width:12},children:m[g.kind][0]}),s.jsx("span",{className:"cp-trunc",style:{flex:1},title:g.path,children:g.path}),s.jsxs("span",{style:{color:"var(--cp-success-ink)"},children:["+",g.added]}),s.jsxs("span",{style:{color:"var(--cp-error-ink)"},children:["-",g.removed]})]},g.path))}):o.length?s.jsx("ul",{style:{listStyle:"none",margin:0,padding:0,fontFamily:"var(--cp-font-mono)",fontSize:"var(--cp-text-base)"},children:o.map(g=>s.jsxs("li",{"data-testid":"changed-file",className:"cp-trunc",title:g,children:[g," ",s.jsxs("span",{style:{color:"var(--cp-text-muted)"},children:["(line counts ",Ht,")"]})]},g))}):s.jsx("span",{"data-testid":"changed-files-unmeasured",children:c===void 0?s.jsx(Ft,{label:"Loading diff"}):`Changed files ${Ht}: this run recorded no diff.`})})}function K1({d:u,source:c,run:r,receipt:o}){var x,j;const[d,p]=N.useState({busy:!1}),m=((x=u.receipt)==null?void 0:x.sha256)??null,g=async()=>{p({busy:!0});try{p({busy:!1,res:await Vg(c,r)})}catch(z){p({busy:!1,error:z.message})}};return s.jsxs(Wi,{title:"Evidence and receipt",testid:"run-receipt",meta:m?`sha256 ${m.slice(0,16)}, ${(j=u.receipt)!=null&&j.signed?"signed":"unsigned"}`:"no receipt",children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[s.jsxs(Ot,{variant:"secondary",size:"sm","data-testid":"run-verify",disabled:!m||d.busy,onClick:()=>void g(),children:[s.jsx(Kx,{size:13,"aria-hidden":"true"})," ",d.busy?"Verifying":"Verify"]}),m?null:s.jsxs("span",{style:{color:"var(--cp-text-muted)"},children:["No receipt to verify ",Ht,"."]}),d.res?s.jsxs("span",{"data-testid":"run-verify-result",role:"status",children:[s.jsx(Ye,{verdict:d.res.verdict})," ",d.res.reasons[0]??""]}):null,d.error?s.jsx("span",{role:"alert","data-testid":"run-verify-error",style:{color:"var(--cp-error-ink)"},children:d.error}):null]}),o===void 0?s.jsx(Ft,{label:"Loading receipt"}):o===null?s.jsx("div",{children:"Receipt text not available for this run."}):s.jsx("pre",{style:{margin:0,whiteSpace:"pre-wrap",fontFamily:"var(--cp-font-mono)",fontSize:"var(--cp-text-sm)",maxHeight:280,overflow:"auto",color:"var(--cp-text-2)"},children:o})]})}function J1({d:u}){return s.jsx(Wi,{title:"NOT PROVEN",testid:"run-not-proven",meta:u.not_proven.length?`${u.not_proven.length} item${u.not_proven.length===1?"":"s"}`:void 0,children:u.not_proven.length?s.jsx("ul",{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:8},children:u.not_proven.map((c,r)=>{const o=k1(c);return s.jsxs("li",{"data-testid":"not-proven-item",style:{display:"flex",gap:10,alignItems:"flex-start",justifyContent:"space-between"},children:[s.jsx("span",{style:{minWidth:0},children:o.text}),s.jsxs(Rt,{tone:o.owner?"info":"neutral","data-testid":"not-proven-owner",style:{flexShrink:0,textTransform:"none"},children:["owner: ",o.owner??Ht]})]},r)})}):s.jsx("span",{children:u.verdict?"Nothing listed as not proven.":"Not known until the run finishes."})})}function I1({source:u,run:c,question:r,onSent:o}){const[d,p]=N.useState(""),[m,g]=N.useState({busy:!1}),x=async()=>{g({busy:!0});try{await lf(u,c,d.trim()),g({busy:!1,sent:!0}),o()}catch(j){g({busy:!1,error:j.message})}};return s.jsxs(Wi,{title:"Needs your answer",testid:"run-reply-card",meta:s.jsxs(Rt,{tone:"info",children:[s.jsx(qx,{size:11,"aria-hidden":"true"})," BLOCKED"]}),children:[s.jsx("div",{children:r}),s.jsxs("div",{"data-testid":"run-reply",style:{display:"flex",flexDirection:"column",gap:8},children:[s.jsx(Cg,{"aria-label":"Your reply",rows:3,value:d,onChange:j=>p(j.target.value),disabled:m.busy||m.sent}),s.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[s.jsx(Ot,{onClick:x,disabled:!d.trim()||m.busy||m.sent,children:"Send reply"}),m.sent?s.jsx("span",{role:"status",children:"Reply saved. Resume the run to continue."}):null,m.error?s.jsx("span",{role:"alert",style:{color:"var(--cp-error-ink)"},children:m.error}):null]})]})]})}function F1({d:u}){let c;return u.pr_url?c=/^https?:\/\//.test(u.pr_url)?s.jsxs("a",{href:u.pr_url,target:"_blank",rel:"noreferrer",style:{color:"var(--cp-accent-ink)",wordBreak:"break-all"},children:[u.pr_url," ",s.jsx(jg,{size:12,"aria-hidden":"true"})]}):s.jsx("span",{children:u.pr_url}):u.verdict?u.verdict===mt.VERIFIED||u.verdict==="ALREADY_SATISFIED"?c=s.jsxs("span",{children:["No PR opened ",Ht,": the run recorded no PR address."]}):c=s.jsxs("span",{children:["No PR opened: the run ended ",u.verdict,", and a PR opens only after the run verifies."]}):c=s.jsx("span",{children:"No PR yet: the run is still in progress."}),s.jsx(Wi,{title:"Pull request",testid:"run-pr",meta:u.pr_draft?"draft":void 0,children:s.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[s.jsx(Hx,{size:14,"aria-hidden":"true"}),c]})})}function W1({source:u,run:c,slot:r,renderSlot:o}){const[d,p]=N.useState(null),[m,g]=N.useState(null),[x,j]=N.useState(!1),[z,y]=N.useState({busy:!1}),R=$1(u,c),H=tg(u,c,"diff.patch"),Y=tg(u,c,"receipt.md"),J=N.useCallback(()=>{Fi(u,c).then(I=>{p(I),g(null)},I=>g(I.message))},[u,c]),L=!d||d.status==="running"||d.verdict===null;if(N.useEffect(()=>{if(J(),!L)return;const I=setInterval(J,4e3);return()=>clearInterval(I)},[J,L]),m&&!d)return s.jsx(qt,{title:"Run not available",hint:m});if(!d)return s.jsx(Ft,{label:"Loading run"});const B=d.title??d.issue_ref??d.origin_repo??`Title ${Ht}`,tt=!!d.blocked_question,U=d.status==="running"||d.verdict===null&&!d.ended_at,G=B1(d.stages),X=!U&&!!d.issue_ref,xt=async()=>{y({busy:!0});try{await uf({target:d.issue_ref}),y({busy:!1,msg:"Started a new run."})}catch(I){y({busy:!1,msg:I.message,error:!0})}};return s.jsxs("section",{"data-testid":"run-thread",style:{maxWidth:1100,margin:"0 auto",padding:"8px 0 32px",display:"flex",flexDirection:"column",gap:20},children:[s.jsxs("header",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:12},children:[s.jsxs("div",{style:{flex:"1 1 320px",minWidth:0},children:[s.jsxs("div",{className:"cp-eyebrow",children:[d.origin_repo??`repo ${Ht}`,d.issue_ref&&d.title?` / ${d.issue_ref}`:""]}),s.jsx("h1",{"data-testid":"run-title",className:"cp-display",style:{margin:"4px 0 0",fontSize:30,overflowWrap:"anywhere"},children:B})]}),tt?s.jsx(Ye,{verdict:mt.BLOCKED}):d.verdict?s.jsx(Ye,{run:d}):s.jsx(Rt,{pulse:!0,children:"running"}),s.jsx("span",{"data-testid":"run-elapsed",style:{fontFamily:"var(--cp-font-mono)",fontSize:"var(--cp-text-base)"},children:Ls(d.elapsed_s??d.wall_s)}),s.jsx("span",{"data-testid":"run-cost",style:{fontFamily:"var(--cp-font-mono)",fontSize:"var(--cp-text-base)"},children:q1(d)}),s.jsxs("span",{"data-testid":"run-header-slot",style:{display:"inline-flex",gap:8},children:[r,o?o(d,J):null]}),o?null:s.jsxs(Ot,{variant:"secondary",size:"sm","data-testid":"run-retry",disabled:!X||z.busy,title:U?"The run is still in progress":d.issue_ref?"Start this issue again":`No issue reference recorded ${Ht}`,onClick:()=>void xt(),children:[s.jsx(Gx,{size:13,"aria-hidden":"true"})," Retry"]}),z.msg?s.jsx("span",{role:z.error?"alert":"status","data-testid":"run-retry-msg",style:{color:z.error?"var(--cp-error-ink)":"var(--cp-text-2)",fontSize:"var(--cp-text-base)"},children:z.msg}):null]}),s.jsxs("div",{className:"cp-term","data-testid":"run-panel",children:[s.jsxs("div",{className:"cp-term-bar",children:[s.jsxs("span",{style:{display:"inline-flex",gap:6},"aria-hidden":"true",children:[s.jsx(qa,{color:"#FF5F57"}),s.jsx(qa,{color:"#FEBC2E"}),s.jsx(qa,{color:"#28C840"})]}),s.jsxs("span",{className:"cp-trunc",children:["Control Plane / ",d.model??`model ${Ht}`]}),s.jsx("span",{children:d.provider??`provider ${Ht}`})]}),s.jsxs("div",{className:"cp-term-body",children:[s.jsx(G1,{d}),s.jsx("div",{className:"cp-term-main",children:s.jsx(Q1,{events:R,awaiting:U})})]}),s.jsxs("div",{className:"cp-term-foot",children:[s.jsx("span",{"data-testid":"run-progress",children:G.m?`stage ${G.n} / ${G.m}`:`stage ${Ht}`}),U?s.jsxs("span",{"data-testid":"run-live",style:{display:"inline-flex",alignItems:"center",gap:8,color:"var(--cp-term-green)"},children:[s.jsx(qa,{color:"var(--cp-term-green)",pulse:!0})," live"]}):s.jsx("span",{"data-testid":"run-ended",children:d.ended_at?"run ended":`end time ${Ht}`})]})]}),d.blocked_question?s.jsx(I1,{source:u,run:c,question:d.blocked_question,onSent:J}):null,s.jsxs("div",{style:{display:"grid",gap:16,gridTemplateColumns:"repeat(auto-fit, minmax(min(100%, 420px), 1fr))",alignItems:"start"},children:[s.jsx(Z1,{d,patch:H}),s.jsx(K1,{d,source:u,run:c,receipt:Y}),s.jsx(J1,{d}),s.jsx(F1,{d})]}),s.jsxs("div",{children:[s.jsx(Ot,{variant:"ghost",size:"sm","data-testid":"run-raw-toggle","aria-pressed":x,onClick:()=>j(I=>!I),children:x?"Hide raw":"Show raw"}),x?s.jsxs("div",{"data-testid":"run-log",style:{marginTop:8},children:[s.jsx("pre",{"data-testid":"run-raw-json",style:{margin:0,padding:12,borderRadius:12,background:"var(--cp-term-bg)",color:"var(--cp-term-text)",fontFamily:"var(--cp-font-mono)",fontSize:11,maxHeight:360,overflow:"auto",whiteSpace:"pre-wrap"},children:JSON.stringify(d,null,2)}),s.jsx("div",{role:"log",style:{marginTop:8,maxHeight:280,overflow:"auto",fontFamily:"var(--cp-font-mono)",fontSize:11,color:"var(--cp-text-2)"},children:R.length===0?s.jsx("div",{children:"No events yet."}):R.map(I=>s.jsx("div",{children:`${I.seq} ${Y1(I)}`},I.seq))})]}):null]})]})}function P1(){var c,r;const u=/\/runs?\/([^/]+)\/([^/?#]+)/.exec(((c=globalThis.location)==null?void 0:c.pathname)??"")??/#\/runs?\/([^/]+)\/([^/?#]+)/.exec(((r=globalThis.location)==null?void 0:r.hash)??"");return u?{source:decodeURIComponent(u[1]),run:decodeURIComponent(u[2])}:null}function tb({source:u,run:c,slot:r,renderSlot:o}){const d=u&&c?{source:u,run:c}:P1();return d?s.jsx(W1,{source:d.source,run:d.run,slot:r,renderSlot:o}):s.jsx(qt,{title:"No run selected",hint:"Open a run from Home or Runs."})}const Qg={id:"run",path:"/runs/:source/:run",title:"Run",component:tb},eg=u=>Date.parse(u.started_at??u.last_event_at??""),eb=u=>{const c=new Date(u);return c.setHours(0,0,0,0),c.getTime()};function Xg(u,c){const r=eb(c),o={Today:[],Earlier:[]};for(const m of u){const g=eg(m),x=Number.isNaN(g)?"Earlier":g>=r?"Today":"Earlier";o[x].push(m)}const d=m=>{const g=eg(m);return Number.isNaN(g)?-1/0:g},p=[];for(const m of["Today","Earlier"])o[m].length&&p.push({name:m,runs:o[m].sort((g,x)=>d(x)-d(g))});return p}const Zg="loki-theme",qs=new Set,lb=()=>{try{const u=localStorage.getItem(Zg);return u==="light"||u==="dark"?u:null}catch{return null}},Kg=()=>{try{return typeof globalThis.matchMedia=="function"?globalThis.matchMedia("(prefers-color-scheme: dark)"):null}catch{return null}},Jg=()=>{const u=Kg();return u?u.matches?"dark":"light":"dark"};let Xs=lb(),Pi=Xs??Jg();function Zs(u=Pi){var r;const c=(r=globalThis.document)==null?void 0:r.documentElement;c&&(Xs?c.setAttribute("data-theme",u):c.removeAttribute("data-theme"),c.classList.toggle("dark",u==="dark"))}function nb(u){Pi=u,Xs=u;try{localStorage.setItem(Zg,u)}catch{}Zs(u);for(const c of qs)c()}const Ys=()=>nb(Pi==="dark"?"light":"dark");var ks,bg;(bg=(ks=Kg())==null?void 0:ks.addEventListener)==null||bg.call(ks,"change",()=>{if(!Xs){Pi=Jg(),Zs();for(const u of qs)u()}});function Ig(){return N.useSyncExternalStore(u=>(qs.add(u),()=>{qs.delete(u)}),()=>Pi,()=>"dark")}const Fg="min-h-11 rounded bg-sky-700 px-4 py-2 text-sm text-white disabled:opacity-50 md:min-h-0 md:px-3 md:py-1",lg="rounded border border-slate-300 bg-white px-2 py-2 text-sm md:py-1 dark:border-slate-700 dark:bg-slate-900",ab="loki start owner/repo#N";function Wg(){const[u,c]=N.useState(null),[r,o]=N.useState(!1),d=async()=>{o(!0);try{const p=await Wx();c(p.failed.length?{ok:!1,text:`Imported ${p.runs} runs; ${p.failed.length} failed.`}:{ok:!0,text:p.runs===0?"No runs found in this folder.":`Imported ${p.runs} runs. Reload to see them.`})}catch(p){c({ok:!1,text:p.message})}o(!1)};return s.jsxs("div",{children:[s.jsx("button",{type:"button","data-testid":"import-runs",disabled:r,onClick:d,className:Fg,children:"Import runs from this folder"}),u&&s.jsx("p",{role:u.ok?"status":"alert",className:`mt-2 text-sm ${u.ok?"text-emerald-600":"text-red-600"}`,children:u.text})]})}function Pg({knownRepos:u}){const[c,r]=N.useState(""),[o,d]=N.useState(""),[p,m]=N.useState(u??[]),[g,x]=N.useState(null);N.useEffect(()=>{u||Eg().then(z=>m(z.repos),()=>{})},[u]);const j=async()=>{try{const z=await Px(c.trim(),o);x({ok:!0,text:`Started: loki ${z.command}`}),r("")}catch(z){x({ok:!1,text:z.message})}};return s.jsxs("form",{"data-testid":"start-run",className:"mb-6 flex flex-col gap-2 sm:flex-row sm:items-end",onSubmit:z=>{z.preventDefault(),j()},children:[s.jsxs("label",{className:"flex flex-1 flex-col gap-1 text-sm",children:["Start a run",s.jsx("input",{"aria-label":"Issue or task",className:lg,value:c,onChange:z=>r(z.target.value),placeholder:"owner/repo#123 or a task",maxLength:500})]}),s.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["Repo",s.jsxs("select",{"aria-label":"Repo folder",className:lg,value:o,onChange:z=>d(z.target.value),children:[s.jsx("option",{value:"",children:"This folder"}),p.map(z=>s.jsx("option",{value:z,children:z},z))]})]}),s.jsx("button",{type:"submit",disabled:c.trim()==="",className:Fg,children:"Start"}),g&&s.jsx("p",{role:g.ok?"status":"alert",className:`text-sm ${g.ok?"text-emerald-600":"text-red-600"}`,children:g.text})]})}function tv(){return s.jsxs("div",{"data-testid":"empty-state",className:"rounded border border-dashed border-slate-300 p-8 text-center dark:border-slate-700",children:[s.jsx("p",{className:"text-lg font-medium",children:"No runs yet"}),s.jsx("div",{className:"mt-4 flex justify-center",children:s.jsx(Wg,{})}),s.jsx("p",{className:"mt-6 text-sm text-slate-600 dark:text-slate-400",children:"Or start your first run from a terminal:"}),s.jsx("code",{className:"mt-2 inline-block rounded bg-slate-200 px-2 py-1 text-sm dark:bg-slate-800",children:ab})]})}function ib(){const u=Ig();return s.jsxs("section",{children:[s.jsx("h2",{className:"mb-4 text-xl",style:{fontFamily:"var(--cp-font-serif)",fontWeight:400},children:"General"}),s.jsx("p",{className:"mb-2 text-sm",style:{color:"var(--cp-text-2)"},children:"Appearance"}),s.jsx(Ot,{variant:"secondary",onClick:Ys,children:u==="dark"?"Switch to light theme":"Switch to dark theme"}),s.jsx("div",{className:"mt-6",children:s.jsx(Wg,{})})]})}let Ko=null;function ng(u){Ko=u}function ub(){return Ko?(Ko(),!0):!1}function sb({active:u=!1,size:c=26}){const r=u?"var(--cp-accent)":"var(--cp-text)";return s.jsxs("svg",{"data-testid":"mascot","data-state":u?"active":"idle",role:"img","aria-label":u?"Loki, working":"Loki",width:c,height:c,viewBox:"0 0 32 32",children:[s.jsx("rect",{x:"3",y:"4",width:"26",height:"22",rx:"6",fill:"var(--cp-card)",stroke:"var(--cp-accent)",strokeWidth:"2"}),s.jsx("path",{d:"M3 10h26",stroke:"var(--cp-accent)",strokeWidth:"1.5",opacity:"0.5"}),s.jsx("circle",{cx:"12",cy:"17",r:"2",fill:r}),s.jsx("circle",{cx:"20",cy:"17",r:"2",fill:r}),s.jsx("path",{d:"M12.5 21.5c2 1.6 5 1.6 7 0",fill:"none",stroke:"var(--cp-text)",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{d:"M10 26v3M22 26v3",stroke:"var(--cp-accent)",strokeWidth:"2",strokeLinecap:"round"})]})}const jt=u=>`var(--cp-${u})`;function cb(){var r;const[u,c]=N.useState(((r=globalThis.location)==null?void 0:r.hash)??"");return N.useEffect(()=>{const o=()=>c(location.hash);return o(),addEventListener("hashchange",o),()=>removeEventListener("hashchange",o)},[]),u}function ev(){const[u,c]=N.useState({runs:null,error:null}),r=N.useCallback(()=>{Yl({}).then(o=>c({runs:o.runs,error:null}),o=>c(d=>({runs:d.runs,error:o.message})))},[]);return N.useEffect(()=>(r(),Tg(r)),[r]),u}const rb=u=>u.status==="running"||!u.verdict&&!u.ended_at?"active":u.verdict===mt.FAILED||$e(u)===mt.TAMPERED?"error":"idle",ag=u=>u.title??u.issue_ref??u.run_id,ob={display:"block",flex:"0 1 auto",minWidth:0,maxWidth:"46%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},lv=u=>`#/runs/${encodeURIComponent(u.source_id)}/${encodeURIComponent(u.run_id)}`;function fb({run:u,active:c,onNavigate:r}){const o={display:"flex",alignItems:"center",gap:8,padding:"7px 12px",borderRadius:jt("radius-nav"),textDecoration:"none",color:jt(c?"accent":"text"),background:c?jt("accent-glow"):"transparent",fontSize:jt("text-md")};return s.jsxs("a",{"data-testid":"session-row",href:lv(u),"aria-current":c?"page":void 0,onClick:r,style:o,children:[s.jsx(zg,{state:rb(u)}),s.jsxs("span",{style:{minWidth:0,flex:1},children:[s.jsx("span",{title:ag(u),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:ag(u)}),u.origin_repo||u.title&&u.issue_ref?s.jsx("span",{style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:jt("text-sm"),color:jt("text-muted")},children:[u.origin_repo,u.title?u.issue_ref:null].filter(Boolean).join(" · ")}):null]}),u.verdict?s.jsx(Ye,{run:u,style:ob}):null]})}function db({runs:u,error:c,now:r,activeHash:o,onNavigate:d}){if(!u)return c?s.jsxs("p",{role:"alert",style:{padding:"0 12px",color:jt("error"),fontSize:jt("text-sm")},children:["Could not load sessions: ",c]}):s.jsx("div",{style:{padding:12},children:s.jsx(Ft,{label:"Loading sessions"})});if(u.length===0)return s.jsx("p",{"data-testid":"sessions-empty",style:{padding:"0 12px",color:jt("text-muted"),fontSize:jt("text-sm")},children:"No sessions yet."});const p=Va(o);return s.jsx("div",{"data-testid":"session-list",children:Xg(u,r).map(m=>s.jsxs("section",{"aria-label":m.name,style:{marginBottom:12},children:[s.jsx(Qo,{children:m.name}),m.runs.map(g=>s.jsx(fb,{run:g,active:Va(lv(g))===p,onNavigate:d},`${g.source_id}/${g.run_id}`))]},m.name))})}function hb(){const u=Ig(),c=u==="dark"?"light":"dark";return s.jsxs("button",{type:"button","data-testid":"theme-toggle",onClick:Ys,"aria-label":`Switch to ${c} theme`,style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"7px 12px",marginTop:2,border:0,borderRadius:jt("radius-nav"),background:"transparent",color:jt("text-2"),cursor:"pointer",fontSize:jt("text-md"),fontFamily:"inherit"},children:[u==="dark"?s.jsx(Ix,{size:14,"aria-hidden":"true"}):s.jsx($x,{size:14,"aria-hidden":"true"}),u==="dark"?"Light theme":"Dark theme"]})}function ig({hash:u,onNavigate:c}){const{runs:r,error:o}=ev(),d=Va(u);return s.jsxs(s.Fragment,{children:[s.jsxs("a",{href:"#/",onClick:c,style:{display:"flex",alignItems:"center",gap:8,padding:"4px 12px 12px",textDecoration:"none",color:jt("text")},children:[s.jsx(sb,{active:!!(r!=null&&r.some(p=>p.status==="running"))}),s.jsx("span",{style:{fontFamily:jt("font-serif"),fontSize:jt("text-2xl")},children:"Loki Mode"})]}),s.jsx("div",{style:{flex:1,overflowY:"auto",padding:"0 8px"},children:s.jsx(db,{runs:r,error:o,now:Date.now(),activeHash:u,onNavigate:c})}),s.jsxs("div",{style:{padding:8,borderTop:`1px solid ${jt("border")}`},children:[s.jsx(Og,{href:"#/settings",active:d.startsWith("/settings"),icon:s.jsx(Xx,{size:14,"aria-hidden":"true"}),onClick:c,children:"Settings"}),s.jsx(hb,{})]})]})}const mb={width:jt("sidebar-w"),flexShrink:0,flexDirection:"column",height:"100vh",position:"sticky",top:0,paddingTop:16,background:jt("glass"),borderRight:`1px solid ${jt("glass-border")}`,boxShadow:jt("glass-shadow")};function pb({path:u}){const c=y1();if(c.length===0)return s.jsx(qt,{title:"No settings available"});const r=c.find(d=>Va(d.path)===u)??c[0],o=r.component;return s.jsxs("div",{"data-testid":"settings-area",style:{display:"flex",flexWrap:"wrap",gap:24},children:[s.jsxs("nav",{"aria-label":"Settings","data-testid":"settings-nav",style:{width:200,flexShrink:0},children:[s.jsx("h1",{style:{fontFamily:jt("font-serif"),fontWeight:400,fontSize:jt("text-2xl"),margin:"0 0 12px 12px"},children:"Settings"}),c.map(d=>s.jsx(Og,{href:`#${d.path}`,active:d.id===r.id,children:d.title},d.id))]}),s.jsx("div",{style:{flex:1,minWidth:0},children:s.jsx(o,{params:{}})})]})}function gb({hash:u}){N.useSyncExternalStore(Bg,Bs,Bs);const c=Va(u);if(c==="/settings"||c.startsWith("/settings/"))return s.jsx(pb,{path:c});const r=b1(u);if(!r)return s.jsx(qt,{title:"Page not found",hint:s.jsx("a",{href:"#/",style:{color:jt("accent")},children:"Back to home"})});const o=r.page.component;return s.jsx(o,{params:r.params})}function vb(){const u=cb(),[c,r]=N.useState(!1);return N.useEffect(()=>{Zs()},[]),N.useEffect(()=>{const o=d=>{(d.metaKey||d.ctrlKey)&&d.key.toLowerCase()==="k"&&ub()&&d.preventDefault()};return addEventListener("keydown",o),()=>removeEventListener("keydown",o)},[]),s.jsxs("div",{"data-testid":"app-shell",className:"flex min-h-screen",style:{background:jt("bg"),color:jt("text"),fontFamily:jt("font-sans")},children:[s.jsx("nav",{"data-testid":"nav","aria-label":"Sessions",className:"hidden md:flex",style:mb,children:s.jsx(ig,{hash:u})}),s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[s.jsxs("header",{className:"flex items-center gap-2 p-2 md:hidden",style:{borderBottom:`1px solid ${jt("border")}`},children:[s.jsx(Ot,{variant:"ghost","aria-label":"Open sessions","data-testid":"open-drawer",onClick:()=>r(!0),children:s.jsx(Bx,{size:16,"aria-hidden":"true"})}),s.jsx("span",{style:{fontFamily:jt("font-serif"),fontSize:jt("text-xl")},children:"Loki Mode"})]}),s.jsx("main",{"data-testid":"outlet",className:"min-w-0 flex-1 overflow-x-auto p-3 md:p-6",style:{maxWidth:"100%"},children:s.jsx(gb,{hash:u})})]}),s.jsx(o1,{open:c,title:"Loki Mode",side:"left",onClose:()=>r(!1),children:s.jsx("div",{style:{display:"flex",flexDirection:"column",minHeight:"80vh"},children:s.jsx(ig,{hash:u,onNavigate:()=>r(!1)})})})]})}const yb=()=>globalThis.LOKI_CONTROL_BASE??"";async function xb(u){const c=be(),r=await fetch(`${yb()}${u}`,{headers:c?{authorization:`Bearer ${c}`}:{}});if(!r.ok)throw new Error(`${u}: HTTP ${r.status}`);return await r.json()}const bb=u=>Date.parse(u.started_at??u.last_event_at??""),$i=u=>`${u.source_id}/${u.run_id}`,$s=u=>u.title??u.issue_ref??u.run_id,Vs=u=>u.origin_repo??`repo ${Ht}`;function nv(u,c){const r=Date.parse(u??"");if(Number.isNaN(r))return`time ${Ht}`;const o=Math.max(0,Math.round((c-r)/1e3));return o<60?"just now":o<3600?`${Math.floor(o/60)}m ago`:o<86400?`${Math.floor(o/3600)}h ago`:`${Math.floor(o/86400)}d ago`}const Sb=u=>u.cost_usd!==null&&u.cost_usd!==void 0?We(u.cost_usd):u.partial_usd?`at least ${We(u.partial_usd)}`:`cost ${Ht}`,ug=u=>Array.isArray(u.files_touched)&&u.files_touched.length>0?`${u.files_touched.length} file${u.files_touched.length===1?"":"s"} touched`:`files ${Ht}`;function jb(u,c){if(c!==void 0)return[`Blocked: needs answer. ${c??`question ${Ht}`}`,`${Vs(u)}, waiting since ${nv(u.last_event_at??u.started_at,Date.now())}`];const r=tf(u);if(r===null)return[`Running: stage ${u.current_stage??Ht}`,`${Ls(u.elapsed_s)} so far, ${ug(u)}`];const o=`${ug(u)}, ${Sb(u)}, ${Ls(u.wall_s)}`;return[{VERIFIED:"Done: the change was verified.",ALREADY_SATISFIED:"Done: already satisfied, nothing to change.",PARTIAL:"Partly done: some checks are not proven.",FAILED:"Failed: the run did not pass verification.",SPEC_CONFLICT:"Blocked: the spec conflicts, needs an answer.",TAMPERED:"Not trusted: the receipt failed its integrity check.",UNVERIFIED:"Done, but not verified: no attested receipt."}[r]??(r.startsWith("VERIFIED")?"Done: verified, signature not checked.":`Finished: ${r}`),o]}const _b=[{value:"all",label:"All"},{value:"running",label:"Running"},{value:"VERIFIED",label:"Verified"},{value:"PARTIAL",label:"Partial"},{value:"FAILED",label:"Failed"},{value:"TAMPERED",label:"Tampered"}];function Eb(u,c,r){const o=tf(u);if(r==="running"&&o!==null||r!=="all"&&r!=="running"&&o!==r)return!1;const d=c.trim().toLowerCase();return d?[$s(u),u.origin_repo,u.issue_ref,u.run_id,u.provider,u.model].some(p=>(p??"").toLowerCase().includes(d)):!0}function Tb(u){const c=r=>{const o=bb(r);return Number.isNaN(o)?-1/0:o};return[...u].sort((r,o)=>c(o)-c(r))}function Nb(u){const c=new Map;for(const r of Tb(u)){const o=Vs(r);c.set(o,[...c.get(o)??[],r])}return[...c].map(([r,o])=>({repo:r,runs:o}))}const zb=u=>`#/runs/${encodeURIComponent(u.source_id)}/${encodeURIComponent(u.run_id)}`,sg={display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",whiteSpace:"pre-line"};function Rb(u){return u.verdict===null?null:u.attested===!0&&u.sig_checked===!0?s.jsx(Rt,{tone:"success","data-testid":"badge-receipt",children:"Receipt signed"}):u.attested===!0&&u.sig_checked===!1?s.jsx(Rt,{tone:"warning","data-testid":"badge-receipt",children:"Receipt unchecked"}):u.attested===!1?s.jsx(Rt,{tone:"warning","data-testid":"badge-receipt",children:"No attested receipt"}):s.jsxs("span",{"data-testid":"badge-receipt",style:{fontSize:"var(--cp-text-sm)",color:"var(--cp-text-muted)"},children:["receipt ",Ht]})}function Jo({run:u,now:c,question:r}){const[o,d]=jb(u,r);return s.jsx("a",{"data-testid":"session-card",href:zb(u),style:{textDecoration:"none",color:"inherit",display:"block",minWidth:0},children:s.jsxs(Gt,{interactive:!0,style:{display:"flex",flexDirection:"column",gap:8,height:"100%"},children:[s.jsx("div",{"data-testid":"card-title",title:$s(u),style:{fontWeight:600,fontSize:"var(--cp-text-md)",...sg,whiteSpace:"normal",overflowWrap:"anywhere"},children:$s(u)}),s.jsxs("div",{"data-testid":"card-outcome",style:{...sg,fontSize:"var(--cp-text-base)",color:"var(--cp-text-2)",lineHeight:1.4},children:[o,`
|
|
146
|
-
`,d]}),s.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap",alignItems:"center"},children:[r!==void 0?s.jsx(Ye,{verdict:"BLOCKED"}):s.jsx(Ye,{run:u}),u.pr_url?s.jsx(Rt,{tone:"info","data-testid":"badge-pr",children:u.pr_draft?"Draft PR":"PR"}):null,Rb(u)]}),s.jsxs("div",{style:{display:"flex",gap:8,color:"var(--cp-text-muted)",fontSize:"var(--cp-text-sm)",marginTop:"auto",minWidth:0},children:[s.jsx("span",{title:Vs(u),style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:Vs(u)}),s.jsx("span",{style:{flexShrink:0},children:nv(u.last_event_at??u.started_at,c)})]})]})})}function Cb({run:u,now:c}){const[r,o]=N.useState(void 0),[d,p]=N.useState(""),[m,g]=N.useState({});N.useEffect(()=>{let j=!0;return Fi(u.source_id,u.run_id).then(z=>j&&o(z.blocked_question??null),()=>j&&o(null)),()=>{j=!1}},[u.source_id,u.run_id]);const x=async()=>{if(!(!d.trim()||m.busy)){g({busy:!0});try{await lf(u.source_id,u.run_id,d.trim()),g({sent:!0})}catch(j){g({error:j.message})}}};return s.jsxs("div",{"data-testid":"needs-input-card",style:{display:"flex",flexDirection:"column",gap:6,minWidth:0},children:[s.jsx(Jo,{run:u,now:c,question:r===void 0?null:r}),r===null?null:s.jsxs("div",{style:{display:"flex",gap:6},children:[m.sent?s.jsx("span",{role:"status","data-testid":"answer-sent",style:{fontSize:"var(--cp-text-base)",color:"var(--cp-text-2)"},children:"Answer saved. Open the run to resume it."}):s.jsxs(s.Fragment,{children:[s.jsx("input",{"data-testid":"answer-input","aria-label":`Answer for ${$s(u)}`,value:d,disabled:m.busy,placeholder:"Type your answer",onChange:j=>p(j.target.value),onKeyDown:j=>{j.key==="Enter"&&x()},style:{flex:1,minWidth:0,border:"1px solid var(--cp-border)",borderRadius:999,background:"var(--cp-card)",color:"var(--cp-text)",padding:"6px 12px",font:"inherit",fontSize:"var(--cp-text-base)"}}),s.jsx(Ot,{size:"sm","data-testid":"answer-send",disabled:!d.trim()||m.busy,onClick:()=>void x(),children:"Answer"})]}),m.error?s.jsx("span",{role:"alert","data-testid":"answer-error",style:{color:"var(--cp-error-ink)",fontSize:"var(--cp-text-sm)"},children:m.error}):null]})]})}const Bo={display:"grid",gap:12,gridTemplateColumns:"repeat(auto-fill, minmax(260px, 1fr))"};function Ob({runs:u,blocked:c,now:r}){const[o,d]=N.useState("recent"),[p,m]=N.useState(""),[g,x]=N.useState("all"),j=new Set(c.map(R=>`${R.source_id}/${R.run_id}`)),z=u.filter(R=>j.has($i(R))),y=N.useMemo(()=>u.filter(R=>!j.has($i(R))&&Eb(R,p,g)),[u,c,p,g]);return s.jsxs("section",{"data-testid":"cards",style:{display:"flex",flexDirection:"column",gap:20},children:[z.length>0?s.jsxs("div",{"data-testid":"needs-input",children:[s.jsxs("div",{className:"cp-eyebrow",style:{marginBottom:8},children:["NEEDS INPUT (",z.length,")"]}),s.jsx("div",{style:Bo,children:z.map(R=>s.jsx(Cb,{run:R,now:r},$i(R)))})]}):null,s.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[s.jsx("div",{role:"tablist","aria-label":"Sessions view",style:{display:"inline-flex",gap:4},children:["recent","groups"].map(R=>s.jsx(Ot,{role:"tab","aria-selected":o===R,"data-testid":`tab-${R}`,size:"sm",variant:o===R?"primary":"ghost",onClick:()=>d(R),children:R==="recent"?"Recent":"Groups"},R))}),s.jsx("span",{style:{flex:1}}),s.jsx("input",{"data-testid":"card-search",type:"search","aria-label":"Search sessions",placeholder:"Search sessions",value:p,onChange:R=>m(R.target.value),style:{border:"1px solid var(--cp-border)",borderRadius:999,background:"var(--cp-card)",color:"var(--cp-text)",padding:"6px 12px",font:"inherit",fontSize:"var(--cp-text-base)",minWidth:160}}),s.jsx("div",{role:"group","aria-label":"Filter by verdict","data-testid":"card-filter",style:{display:"inline-flex",gap:4,flexWrap:"wrap"},children:_b.map(R=>s.jsx(Ot,{size:"sm",variant:g===R.value?"primary":"ghost","aria-pressed":g===R.value,"data-testid":`filter-${R.value}`,onClick:()=>x(R.value),children:R.label},R.value))})]}),y.length===0?s.jsx("p",{"data-testid":"cards-empty",style:{color:"var(--cp-text-2)"},children:u.length===0?"No sessions yet.":"No sessions match."}):o==="recent"?Xg(y,r).map(R=>s.jsxs("div",{"data-testid":"card-group","aria-label":R.name,children:[s.jsx(Qo,{children:R.name}),s.jsx("div",{style:Bo,children:R.runs.map(H=>s.jsx(Jo,{run:H,now:r},$i(H)))})]},R.name)):Nb(y).map(R=>s.jsxs("div",{"data-testid":"card-group","aria-label":R.repo,children:[s.jsx(Qo,{children:R.repo}),s.jsx("div",{style:Bo,children:R.runs.map(H=>s.jsx(Jo,{run:H,now:r},$i(H)))})]},R.repo))]})}function Ab(){const{runs:u,error:c}=ev(),[r,o]=N.useState([]);return N.useEffect(()=>{let d=!0;return xb("/v1/notifications?kind=blocked&limit=50").then(p=>d&&o(p.notifications),()=>{}),()=>{d=!1}},[u]),u?u.length===0?s.jsx(tv,{}):s.jsx(Ob,{runs:u,blocked:r,now:Date.now()}):c?s.jsxs("p",{role:"alert","data-testid":"cards-error",children:["Could not load sessions: ",c]}):null}const Io="loki:composer-submit",Db=8,wb=()=>[{id:"action:new-run",kind:"Actions",label:"New run",hint:"Cmd+N",to:"/new",action:"new-run"},{id:"action:toggle-theme",kind:"Actions",label:"Toggle theme",hint:"Cmd+Shift+D",action:"toggle-theme"}],Mb=u=>u.filter(c=>!c.path.includes(":")).map(c=>({id:`page:${c.id}`,kind:"Pages",label:c.title,hint:c.path,to:c.path})),cg=u=>{const c=Date.parse(u.started_at??u.last_event_at??"");return Number.isNaN(c)?0:c},Ub=u=>[...u].sort((c,r)=>cg(r)-cg(c)).map(c=>({id:`run:${c.source_id}/${c.run_id}`,kind:"Runs",label:c.run_id,hint:[c.origin_repo,$e(c)??c.status].filter(Boolean).join(" / ")||void 0,to:`/runs/${encodeURIComponent(c.source_id)}/${encodeURIComponent(c.run_id)}`})),Hb=(u,c)=>{const r=`${u.label} ${u.hint??""}`.toLowerCase();return c.split(/\s+/).filter(Boolean).every(o=>r.includes(o))};function kb(u,c,r,o){const d=u.trim().toLowerCase(),p=m=>d?m.filter(g=>Hb(g,d)):m;return[...p(o),...p(c),...p(r).slice(0,Db)]}const av=["claude","codex","cline","aider","opencode"],iv=["opus","sonnet","haiku"],Bb=["1","5","10","25","50"],Lb=/^https:\/\/github\.com\/([A-Za-z0-9][A-Za-z0-9._-]*)\/([A-Za-z0-9._-]+)\/issues\/([1-9][0-9]*)\/?$/;function qb(u){const c=u.trim(),r=Lb.exec(c);return r?`${r[1]}/${r[2]}#${r[3]}`:c}function uv(u,c){const r={target:qb(u)};return c.repo&&(r.repo=c.repo),c.model&&(r.model=c.model),c.workspace?r.workspace=c.workspace:(c.provider&&(r.provider=c.provider),c.budget&&(r.budget=c.budget)),r}function sv(u){return u instanceof Lg?u.status===400?`The server refused this run: ${u.message}`:u.status===403?`Not allowed: ${u.message}. Starting runs works only from the machine running the control service.`:u.status===409?`${u.message}. Wait for it to finish, or pick another repo.`:u.message:u instanceof Error?u.message:"could not reach the control service"}const As=(u,c)=>[{value:"",label:c},...u.map(r=>({value:r,label:r}))];function Yb(){const[u,c]=N.useState(""),[r,o]=N.useState({}),[d,p]=N.useState(null),[m,g]=N.useState(!1),[x,j]=N.useState(null),[z,y]=N.useState(null),R=N.useRef(null),H=U=>G=>o(X=>({...X,[U]:G||void 0}));N.useEffect(()=>{var G;let U=!0;return qg().then(X=>U&&p(X)).catch(()=>U&&p([])),(G=R.current)==null||G.focus(),()=>{U=!1}},[]);const Y=x!==null,J=N.useRef(!1),L=async()=>{if(J.current||Y||!u.trim())return;J.current=!0;const U=uv(u,r);y(null),j(U.target);try{await uf(U),location.hash="#/runs"}catch(G){j(null),y(sv(G))}finally{J.current=!1}},B=N.useRef(L);B.current=L,N.useEffect(()=>{const U=()=>{B.current()};return window.addEventListener(Io,U),()=>window.removeEventListener(Io,U)},[]);const tt=!!r.workspace;return s.jsxs("section",{"data-testid":"composer",style:{maxWidth:760,margin:"0 auto",padding:"var(--cp-space-2xl) var(--cp-space-xl)"},children:[x===null&&!u?s.jsx(qt,{title:"What should Loki build?",hint:"Paste owner/repo#N or a GitHub issue URL, give a PRD path, or describe a task. Nothing starts until you press Cmd+Enter."}):null,x!==null?s.jsx("div",{"data-testid":"optimistic-row",children:s.jsx(s1,{icon:s.jsx(Ft,{size:14,label:"Starting"}),title:x,meta:"starting, waiting for the control service"})}):null,s.jsxs("div",{style:{border:"1px solid var(--cp-border)",borderRadius:"var(--cp-radius-lg)",background:"var(--cp-card)",padding:12,marginTop:16},children:[s.jsx("textarea",{ref:R,"data-testid":"composer-input","aria-label":"Task, issue or PRD path",value:u,rows:4,disabled:Y,placeholder:"owner/repo#123, an issue URL, a PRD path, or a task",onChange:U=>c(U.target.value),onKeyDown:U=>{U.key==="Enter"&&(U.metaKey||U.ctrlKey)&&(U.preventDefault(),L())},style:{width:"100%",resize:"vertical",border:0,outline:"none",background:"transparent",color:"var(--cp-text)",font:"inherit",fontSize:"var(--cp-text-md)"}}),s.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center",marginTop:8},children:[s.jsx("span",{"data-testid":"chip-repo",children:s.jsx(bl,{label:"repo",value:r.repo??"server directory",options:As(d??[],"server directory"),onSelect:H("repo")})}),s.jsx("span",{"data-testid":"chip-model",children:s.jsx(bl,{label:"model",value:r.model??"default",options:As(iv,"default"),onSelect:H("model")})}),s.jsx("span",{"data-testid":"chip-provider",children:s.jsx(bl,{label:"provider",value:tt?"set per repo":r.provider??"default",options:tt?void 0:As(av,"default"),onSelect:H("provider")})}),s.jsx("span",{"data-testid":"chip-budget",children:s.jsx(bl,{label:"budget",value:tt?"set per repo":r.budget?`$${r.budget}`:"none",options:tt?void 0:As(Bb.map(String),"none").map(U=>({...U,label:U.value?`$${U.value}`:U.label})),onSelect:H("budget")})}),s.jsx("span",{"data-testid":"chip-workspace",onClick:()=>g(U=>!U),children:s.jsx(bl,{label:"workspace",value:r.workspace??"none"})}),m?s.jsx("input",{"data-testid":"workspace-input","aria-label":"Workspace name from loki.yaml",placeholder:"name from loki.yaml",value:r.workspace??"",onChange:U=>H("workspace")(U.target.value.trim()),style:{border:"1px solid var(--cp-border)",borderRadius:"var(--cp-radius-md)",background:"var(--cp-bg)",color:"var(--cp-text)",padding:"4px 8px",fontSize:"var(--cp-text-base)"}}):null,s.jsx("span",{style:{flex:1}}),s.jsxs(Ot,{"data-testid":"composer-submit",disabled:Y||!u.trim(),onClick:()=>void L(),children:["Start ",s.jsx(af,{children:"Cmd+Enter"})]})]})]}),d!==null&&d.length===0?s.jsx("p",{"data-testid":"no-repos",style:{color:"var(--cp-text-2)",fontSize:"var(--cp-text-base)",marginTop:8},children:"No repos discovered yet. The run starts in the directory the control service was launched from."}):null,z?s.jsx("div",{"data-testid":"composer-error",style:{marginTop:12},children:s.jsx(c1,{tone:"error",onClose:()=>y(null),children:z})}):null]})}const $b={id:"compose",path:"/new",title:"New run",component:Yb},Lo=(u,c)=>[{value:"",label:c},...u.map(r=>({value:r,label:r}))];function Vb({onStarted:u}){const[c,r]=N.useState(""),[o,d]=N.useState({}),[p,m]=N.useState(null),[g,x]=N.useState(!1),[j,z]=N.useState(null),y=N.useRef(!1),R=Y=>J=>d(L=>({...L,[Y]:J||void 0}));N.useEffect(()=>{let Y=!0;return qg().then(J=>Y&&m(J)).catch(()=>Y&&m([])),()=>{Y=!1}},[]);const H=async()=>{if(!(y.current||!c.trim())){y.current=!0,x(!0),z(null);try{const Y=uv(c,o);await uf(Y),r(""),z({tone:"ok",text:`Started: ${Y.target}`}),u==null||u()}catch(Y){z({tone:"error",text:sv(Y)})}finally{y.current=!1,x(!1)}}};return s.jsxs("section",{"data-testid":"hero",style:{maxWidth:720,margin:"0 auto",padding:"var(--cp-space-2xl) 0 var(--cp-space-xl)",textAlign:"center"},children:[s.jsx("div",{className:"cp-eyebrow",style:{marginBottom:12},children:"Loki Mode"}),s.jsx("h1",{className:"cp-display",style:{fontSize:40,margin:"0 0 24px",color:"var(--cp-text)"},children:"What should Loki build?"}),s.jsxs("div",{style:{border:"1px solid var(--cp-border)",borderRadius:24,background:"var(--cp-card)",padding:"14px 16px",textAlign:"left"},children:[s.jsx("textarea",{"data-testid":"hero-input","aria-label":"Task, owner/repo#N or issue URL",value:c,rows:3,disabled:g,placeholder:"Describe a task, or paste owner/repo#123 or an issue URL",onChange:Y=>r(Y.target.value),onKeyDown:Y=>{Y.key==="Enter"&&!Y.shiftKey&&!Y.nativeEvent.isComposing&&(Y.preventDefault(),H())},style:{width:"100%",resize:"none",border:0,outline:"none",background:"transparent",color:"var(--cp-text)",font:"inherit",fontSize:"var(--cp-text-lg, 16px)"}}),s.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center",marginTop:8},children:[s.jsx("span",{"data-testid":"pick-repo",children:s.jsx(bl,{label:"repo",value:o.repo??"server directory",options:Lo(p??[],"server directory"),onSelect:R("repo")})}),s.jsx("span",{"data-testid":"pick-provider",children:s.jsx(bl,{label:"provider",value:o.provider??"default",options:Lo(av,"default"),onSelect:R("provider")})}),s.jsx("span",{"data-testid":"pick-model",children:s.jsx(bl,{label:"model",value:o.model??"default",options:Lo(iv,"default"),onSelect:R("model")})}),s.jsx("span",{style:{flex:1}}),s.jsxs(Ot,{"data-testid":"hero-start",disabled:g||!c.trim(),onClick:()=>void H(),children:["Start ",s.jsx(af,{children:"Enter"})]})]})]}),j?s.jsx("p",{role:j.tone==="error"?"alert":"status","data-testid":"hero-note",style:{marginTop:12,fontSize:"var(--cp-text-base)",color:j.tone==="error"?"var(--cp-error)":"var(--cp-text-2)"},children:j.text}):null]})}function Gb(){return s.jsxs("div",{"data-testid":"home-start",children:[s.jsx(Vb,{}),s.jsx(Ab,{})]})}const Qb={id:"home",path:"/home",title:"Home",component:Gb};function Xb(u){return u.verdict?$a(u)?"verified":"notproven":u.pr_url?"pr":u.status==="running"||u.started_at?"running":"issue"}const rg={issue:"Issue",running:"Running",pr:"PR open",verified:"Verified",notproven:"Not proven"};function Zb({r:u}){const c=u.issue_ref??u.run_id;return s.jsx("a",{href:`#/runs/${encodeURIComponent(u.source_id)}/${encodeURIComponent(u.run_id)}`,"data-testid":"board-card","data-run":u.run_id,style:{textDecoration:"none",color:"inherit"},children:s.jsxs(Gt,{interactive:!0,compact:!0,children:[s.jsx("div",{style:{fontWeight:600,fontSize:"var(--cp-text-md)",overflowWrap:"anywhere"},children:c}),s.jsx("div",{style:{color:"var(--cp-text-muted)",fontSize:"var(--cp-text-xs)",marginTop:2},children:u.origin_repo??"repo not recorded"}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:8,flexWrap:"wrap",alignItems:"center"},children:[u.verdict?s.jsx(Ye,{run:u}):u.pr_url?s.jsx(Rt,{tone:"info",children:u.pr_draft?"draft PR":"PR open"}):u.status==="running"?s.jsx(Ye,{verdict:mt.RUNNING}):s.jsx(Rt,{children:"queued"}),u.current_stage&&!u.verdict?s.jsx(Rt,{children:u.current_stage}):null]})]})})}function Vi({id:u,runs:c}){return s.jsxs("section",{"data-testid":`lane-${u}`,"aria-label":rg[u],style:{display:"flex",flexDirection:"column",gap:8},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"var(--cp-text-xs)",color:"var(--cp-text-2)",textTransform:"uppercase",letterSpacing:"0.05em"},children:[s.jsx("span",{children:rg[u]}),s.jsx("span",{children:c.length})]}),c.length===0?s.jsx("div",{style:{color:"var(--cp-text-muted)",fontSize:"var(--cp-text-xs)"},children:"none"}):c.map(r=>s.jsx(Zb,{r},`${r.source_id}/${r.run_id}`))]})}function Ds({id:u,children:c}){return s.jsx("div",{"data-testid":`col-${u}`,style:{background:"var(--cp-bg-2)",borderRadius:"var(--cp-radius-lg)",padding:10,display:"flex",flexDirection:"column",gap:16,minWidth:220},children:c})}function Kb(){const[u,c]=N.useState(null),[r,o]=N.useState(null),d=N.useCallback(()=>{Yl().then(m=>{c(m.runs),o(null)}).catch(m=>o(m.message))},[]);if(N.useEffect(()=>(d(),Tg(d)),[d]),r&&!u)return s.jsx(qt,{title:"Could not load runs",hint:r});if(!u)return s.jsx("div",{style:{padding:24},children:s.jsx(Ft,{label:"Loading runs"})});if(u.length===0)return s.jsx(qt,{title:"No runs yet",hint:"Start a run and it will appear here."});const p=m=>u.filter(g=>Xb(g)===m);return s.jsxs("div",{style:{padding:24},children:[s.jsx("h1",{style:{fontFamily:"var(--cp-font-serif)",fontSize:"var(--cp-text-2xl)",margin:"0 0 16px"},children:"Work"}),s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:12,alignItems:"start"},children:[s.jsx(Ds,{id:"issue",children:s.jsx(Vi,{id:"issue",runs:p("issue")})}),s.jsx(Ds,{id:"running",children:s.jsx(Vi,{id:"running",runs:p("running")})}),s.jsx(Ds,{id:"pr",children:s.jsx(Vi,{id:"pr",runs:p("pr")})}),s.jsxs(Ds,{id:"done",children:[s.jsx(Vi,{id:"verified",runs:p("verified")}),s.jsx(Vi,{id:"notproven",runs:p("notproven")})]})]})]})}const Jb={id:"work",path:"/work",title:"Work",component:()=>s.jsx(Kb,{})},ws=u=>`${u.source_id}/${u.run_id}`;function Ib(){const[u,c]=N.useState(null),[r,o]=N.useState(null),[d,p]=N.useState({}),[m,g]=N.useState(void 0);N.useEffect(()=>{let R=!0;return Yl().then(H=>R&&c(H.runs),H=>R&&o(H.message)),z1().then(H=>R&&g(H),()=>R&&g(null)),()=>{R=!1}},[]);const x=async R=>{p(H=>({...H,[ws(R)]:"pending"}));try{const H=await Vg(R.source_id,R.run_id);p(Y=>({...Y,[ws(R)]:H}))}catch(H){p(Y=>({...Y,[ws(R)]:{error:H.message}}))}};if(r)return s.jsx(qt,{title:"Receipts unavailable",hint:r});if(!u)return s.jsx(Ft,{label:"Loading receipts"});const j=u.filter(R=>R.verdict),z=R1(j),y=j.length?Math.round(j.filter(R=>$a(R)).length/j.length*100):null;return s.jsxs("div",{"data-testid":"receipts",style:{display:"flex",flexDirection:"column",gap:16},children:[s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(240px, 1fr))",gap:12},children:[s.jsx(La,{label:`Verified rate (${j.length} finished run${j.length===1?"":"s"}, by run outcome)`,value:y===null?"not measured":`${y}%`,series:z.map(R=>R.rate),trend:z.length>1?`${z.length} days`:void 0}),s.jsxs(Gt,{style:{padding:"14px 16px"},"data-testid":"public-key",children:[s.jsx("div",{style:{fontSize:"var(--cp-text-sm)",color:"var(--cp-text-2)"},children:"Public key (Ed25519)"}),m===void 0?s.jsx(Ft,{size:12}):m===null?s.jsx("div",{children:"not measured: no signing key on this machine yet"}):s.jsxs("div",{style:{fontFamily:"var(--cp-font-mono)",fontSize:12,wordBreak:"break-all"},children:[s.jsxs("div",{"data-testid":"key-kid",children:["kid ",m.kid]}),s.jsxs("div",{"data-testid":"key-x",children:["x ",m.x]})]})]})]}),j.length===0?s.jsx(qt,{title:"No finished runs yet",hint:"A receipt appears here when a run completes."}):s.jsx(Zn,{caption:"Receipts",columns:["Run","Outcome","Started","Verify"],rows:j.map(R=>{const H=d[ws(R)];return[s.jsx("span",{style:{fontFamily:"var(--cp-font-mono)"},children:R.run_id},"run"),s.jsx(Ye,{run:R},"out"),R.started_at??"not measured",s.jsxs("span",{style:{display:"inline-flex",gap:8,alignItems:"center"},children:[s.jsx(Ot,{size:"sm",variant:"secondary",disabled:H==="pending",onClick:()=>void x(R),"data-testid":"verify-btn",children:H==="pending"?"Verifying":"Verify"}),H&&H!=="pending"?"error"in H?s.jsx(Rt,{tone:"error","data-testid":"verify-result",children:H.error}):s.jsxs("span",{"data-testid":"verify-result","data-verdict":H.verdict,children:[s.jsx(Ye,{run:{verdict:H.verdict,tampered:R.tampered}}),H.reasons[0]?s.jsx("span",{style:{marginLeft:8,color:"var(--cp-text-2)",fontSize:12},children:H.reasons[0]}):null]}):null]},"v")]})})]})}const Fb={id:"receipts",path:"/receipts",title:"Receipts",component:Ib},og={status:"",verdict:"",repo:"",source:"",q:""},Wb="no repo",Ks=u=>u.origin_repo??Wb,Ya=u=>u.status??(u.verdict?"completed":"running"),Gs=u=>u.task_source??u.source_id,Pb=u=>$e(u)??"none";function tS(u,c){const r=c.q.trim().toLowerCase();return u.filter(o=>!(c.status&&Ya(o)!==c.status||c.verdict&&Pb(o)!==c.verdict||c.repo&&Ks(o)!==c.repo||c.source&&Gs(o)!==c.source||r&&![o.run_id,o.source_id,o.origin_repo,o.issue_ref,o.provider,o.model,$e(o)].some(d=>d&&d.toLowerCase().includes(r))))}const fg=(u,c)=>{switch(c){case"started":return u.started_at?Date.parse(u.started_at):null;case"repo":return Ks(u);case"source":return Gs(u);case"status":return Ya(u);case"verdict":return $e(u);case"cost":return u.cost_usd;case"elapsed":return u.elapsed_s??u.wall_s}};function eS(u,c,r){const o=r==="asc"?1:-1;return[...u].sort((d,p)=>{const m=fg(d,c),g=fg(p,c);return m===null&&g===null?0:m===null?1:g===null?-1:(typeof m=="number"&&typeof g=="number"?m-g:String(m).localeCompare(String(g)))*o})}function lS(u){const c=new Map;for(const r of u){const o=Ks(r),d=c.get(o)??{repo:o,runs:0,running:0,verified:0,cost:null,unpriced:0};d.runs++,Ya(r)==="running"&&d.running++,$a(r)&&d.verified++,r.cost_usd===null?d.unpriced++:d.cost=(d.cost??0)+r.cost_usd,c.set(o,d)}return[...c.values()].sort((r,o)=>o.runs-r.runs||r.repo.localeCompare(o.repo))}const qo=u=>[...new Set(u)].sort(),nS=u=>{const c=new AbortController,r=globalThis.LOKI_CONTROL_BASE??"";return(async()=>{for(;!c.signal.aborted;){try{const o=be(),d=await fetch(`${r}/v1/stream`,{headers:o?{authorization:`Bearer ${o}`}:{},signal:c.signal});if(!d.ok||!d.body)throw new Error(`HTTP ${d.status}`);const p=d.body.getReader(),m=new TextDecoder;let g="";for(;;){const{done:x,value:j}=await p.read();if(x)break;g+=m.decode(j,{stream:!0});let z;for(;(z=g.indexOf(`
|
|
147
|
-
|
|
148
|
-
`))>=0;){const y=g.slice(0,z);g=g.slice(z+2),/^event: run$/m.test(y)&&u()}}}catch{}c.signal.aborted||await new Promise(o=>setTimeout(o,3e3))}})(),()=>c.abort()},dg=u=>u===null?"unpriced":We(u),aS=u=>u==null?"not measured":u<60?`${Math.round(u)}s`:u<3600?`${Math.floor(u/60)}m ${Math.round(u%60)}s`:`${Math.floor(u/3600)}h ${Math.floor(u%3600/60)}m`,iS=u=>u?u.replace("T"," ").slice(0,16):"not measured",uS=[{key:"started",label:"Started"},{key:"repo",label:"Repo"},{key:"source",label:"Source"},{key:"status",label:"Status"},{key:"verdict",label:"Verdict"},{key:"cost",label:"Cost"},{key:"elapsed",label:"Elapsed"}],Le={padding:"6px 12px",whiteSpace:"nowrap"},hg={...Le,textAlign:"left",fontSize:"var(--cp-text-sm)",textTransform:"uppercase",color:"var(--cp-text-2)",background:"var(--cp-bg-3)"};function Ms({label:u,value:c,options:r,onChange:o}){return s.jsx("span",{"data-testid":`filter-${u.toLowerCase()}`,"data-value":c,children:s.jsx(bl,{label:u,value:c||"all",options:[{value:"",label:"All"},...r.map(d=>({value:d,label:d}))],onSelect:o})})}function sS({subscribe:u=nS}){const[c,r]=N.useState(null),[o,d]=N.useState(null),[p,m]=N.useState(og),[g,x]=N.useState({key:"started",dir:"desc"}),[j,z]=N.useState(!1),y=N.useCallback(()=>{Yl({}).then(B=>{r(B.runs),d(null)},B=>d(B.message))},[]);N.useEffect(()=>{y()},[y]),N.useEffect(()=>u?u(y):void 0,[u,y]);const R=N.useMemo(()=>c??[],[c]),H=N.useMemo(()=>eS(tS(R,p),g.key,g.dir),[R,p,g]),Y=N.useMemo(()=>lS(H),[H]),J=B=>tt=>m(U=>({...U,[B]:tt})),L=JSON.stringify(p)!==JSON.stringify(og);return o&&c===null?s.jsx(qt,{title:"Could not load runs",hint:o}):c===null?s.jsx(Ft,{label:"Loading runs"}):s.jsxs("div",{"data-testid":"runs-page",style:{display:"flex",flexDirection:"column",gap:12},children:[s.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[s.jsx(Qa,{"aria-label":"Search runs",placeholder:"Search runs",value:p.q,onChange:B=>J("q")(B.target.value),style:{maxWidth:240}}),s.jsx(Ms,{label:"Status",value:p.status,options:["running","completed"],onChange:J("status")}),s.jsx(Ms,{label:"Verdict",value:p.verdict,options:qo(R.map(B=>B.verdict??"none")),onChange:J("verdict")}),s.jsx(Ms,{label:"Repo",value:p.repo,options:qo(R.map(Ks)),onChange:J("repo")}),s.jsx(Ms,{label:"Source",value:p.source,options:qo(R.map(Gs)),onChange:J("source")}),s.jsxs("label",{style:{display:"inline-flex",gap:6,alignItems:"center",fontSize:"var(--cp-text-base)",color:"var(--cp-text-2)"},children:[s.jsx("input",{type:"checkbox","data-testid":"group-toggle",checked:j,onChange:B=>z(B.target.checked)}),"Group by repo"]}),s.jsxs("span",{"data-testid":"runs-count",style:{marginLeft:"auto",fontSize:"var(--cp-text-base)",color:"var(--cp-text-2)"},children:[H.length," of ",R.length," runs"]})]}),j&&H.length?s.jsx(Gt,{style:{padding:0,overflow:"auto"},children:s.jsxs("table",{"data-testid":"rollup",style:{width:"100%",borderCollapse:"collapse",fontSize:"var(--cp-text-base)"},children:[s.jsx("thead",{children:s.jsx("tr",{children:["Repo","Runs","Running","Verified","Cost"].map(B=>s.jsx("th",{scope:"col",style:hg,children:B},B))})}),s.jsx("tbody",{children:Y.map(B=>s.jsxs("tr",{"data-testid":"rollup-row","data-repo":B.repo,style:{borderTop:"1px solid var(--cp-border-light)"},children:[s.jsx("td",{style:Le,children:s.jsx("button",{type:"button",onClick:()=>J("repo")(B.repo),style:{background:"none",border:0,color:"var(--cp-accent)",cursor:"pointer",padding:0,font:"inherit"},children:B.repo})}),s.jsx("td",{style:Le,children:B.runs}),s.jsx("td",{style:Le,children:B.running}),s.jsxs("td",{style:Le,children:[B.verified," of ",B.runs]}),s.jsxs("td",{style:Le,children:[dg(B.cost),B.cost!==null&&B.unpriced?` (+${B.unpriced} unpriced)`:""]})]},B.repo))})]})}):null,H.length===0?s.jsx(qt,{title:L?"No runs match these filters":"No runs yet",hint:L?"Clear a filter or the search to see more.":"Start a run and it will appear here."}):s.jsx(Gt,{style:{padding:0,overflow:"auto"},children:s.jsxs("table",{"data-testid":"runs-table",style:{width:"100%",borderCollapse:"collapse",fontSize:"var(--cp-text-base)"},children:[s.jsx("thead",{children:s.jsx("tr",{children:uS.map(B=>s.jsx("th",{scope:"col","aria-sort":g.key===B.key?g.dir==="asc"?"ascending":"descending":"none",style:hg,children:s.jsxs("button",{type:"button","data-testid":`sort-${B.key}`,onClick:()=>x(tt=>({key:B.key,dir:tt.key===B.key&&tt.dir==="desc"?"asc":"desc"})),style:{background:"none",border:0,cursor:"pointer",font:"inherit",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.05em",color:"inherit",padding:0},children:[B.label,g.key===B.key?g.dir==="asc"?" (asc)":" (desc)":""]})},B.key))})}),s.jsx("tbody",{children:H.map(B=>s.jsxs("tr",{"data-testid":"run-row","data-run":B.run_id,style:{borderTop:"1px solid var(--cp-border-light)"},children:[s.jsx("td",{style:Le,children:s.jsx("a",{href:`#/runs/${encodeURIComponent(B.source_id)}/${encodeURIComponent(B.run_id)}`,style:{color:"var(--cp-accent)",textDecoration:"none"},children:iS(B.started_at)})}),s.jsxs("td",{style:Le,children:[B.origin_repo??s.jsx("span",{style:{color:"var(--cp-text-2)"},children:"no repo"}),B.issue_ref?s.jsxs("span",{style:{color:"var(--cp-text-2)"},children:[" ",B.issue_ref]}):null]}),s.jsx("td",{style:Le,children:Gs(B)}),s.jsx("td",{style:Le,children:s.jsx(Rt,{tone:Ya(B)==="running"?"info":"neutral",pulse:Ya(B)==="running",children:Ya(B)})}),s.jsx("td",{style:Le,children:B.verdict?s.jsx(Ye,{run:B}):s.jsx("span",{style:{color:"var(--cp-text-2)"},children:"none yet"})}),s.jsx("td",{style:Le,children:dg(B.cost_usd)}),s.jsx("td",{style:Le,children:aS(B.elapsed_s??B.wall_s)})]},`${B.source_id}:${B.run_id}`))})]})})]})}const cS={id:"runs",path:"/runs",title:"Runs",component:sS,inSettings:!1};async function rS(){const u=globalThis.LOKI_CONTROL_BASE??"",c=be(),r=await fetch(`${u}/v1/providers`,{headers:c?{authorization:`Bearer ${c}`}:{}});if(!r.ok)throw new Error(`HTTP ${r.status}`);return await r.json()}const oS=u=>u.probe==="timeout"?"installed, version probe timed out":u.installed?u.version?`installed, ${u.version}`:"installed, version not reported":"not installed";function fS(){const[u,c]=N.useState(null),[r,o]=N.useState(null);if(N.useEffect(()=>{let p=!0;return rS().then(m=>p&&c(m)).catch(m=>p&&o(m instanceof Error?m.message:String(m))),()=>{p=!1}},[]),r)return s.jsx(qt,{title:"Could not load providers",hint:r});if(!u)return s.jsx(Ft,{label:"Detecting provider CLIs"});const d=u.providers.map(p=>[s.jsxs("span",{style:{display:"inline-flex",gap:8,alignItems:"center"},children:[s.jsx(zg,{state:p.installed?"active":"idle",label:p.installed?"installed":"not installed"}),s.jsx("strong",{children:p.id}),p.deprecated?s.jsx(Rt,{tone:"warning",children:"deprecated"}):null]},"n"),oS(p),p.auth_present?s.jsx(Rt,{tone:"success",children:"auth present"},"a"):s.jsx(Rt,{tone:"neutral",children:"no auth env set"},"a"),p.auth_env_names.length?`${p.auth_env_set.length?p.auth_env_set.join(", "):"none"} (of ${p.auth_env_names.join(", ")})`:"not measured",p.tiers.planning??"not measured",p.tiers.development??"not measured",p.tiers.fast??"not measured"]);return s.jsxs("div",{style:{display:"grid",gap:16},children:[s.jsx("h1",{style:{margin:0,fontSize:"var(--cp-text-xl, 20px)"},children:"Models and providers"}),s.jsx(Zn,{caption:"Provider CLIs",columns:["Provider","CLI","Auth","Env vars set","Planning","Development","Fast"],rows:d}),s.jsx(Gt,{compact:!0,children:s.jsxs("small",{children:["Auth shows only whether an environment variable is set, never its value. Model tiers come from the catalog",u.catalog_updated?` (updated ${u.catalog_updated})`:"",". Version probes stop after ",u.probe_timeout_ms," ms."]})})]})}const dS={id:"models",path:"/models",title:"Models and providers",component:fS,inSettings:!0},hS=()=>globalThis.LOKI_CONTROL_BASE??"";async function mS(u,c,r){const o=be(),d={"content-type":"application/json"};o&&(d.authorization=`Bearer ${o}`);const p=await fetch(`${hS()}/v1/runs/${encodeURIComponent(u)}/${encodeURIComponent(c)}/${r}`,{method:"POST",headers:d,body:"{}"}),m=await p.json().catch(()=>({}));if(!p.ok)throw new Error(m.error??`HTTP ${p.status}`)}const pS={stop:"Stopping...",retry:"Retrying...",resume:"Resuming..."},gS={stop:"Stop signal sent.",retry:"Retry started as a new run.",resume:"Resume started."};function vS({source:u,run:c,status:r,onChanged:o}){const[d,p]=N.useState(!1),[m,g]=N.useState(null),[x,j]=N.useState(!1),[z,y]=N.useState(!1),[R,H]=N.useState(null),Y=r.trim().toUpperCase(),J=m==="stop"||x,L=!J&&(m==="resume"||z||Y==="RUNNING"),B=Y==="BLOCKED"&&!L&&!J,tt=async U=>{if(!m){p(!1),H(null),g(U);try{await mS(u,c,U),U==="stop"&&j(!0),U==="resume"&&y(!0),H({tone:"ok",text:gS[U]}),o==null||o()}catch(G){H({tone:"error",text:G.message})}finally{g(null)}}};return s.jsxs("div",{"data-testid":"run-controls","data-state":J?"stopping":L?"running":Y.toLowerCase(),style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[L&&!m&&!d?s.jsx(Ot,{variant:"danger",size:"sm",onClick:()=>p(!0),children:"Stop"}):null,d?s.jsxs("span",{"data-testid":"stop-confirm",role:"group","aria-label":"Confirm stop",style:{display:"flex",gap:8,alignItems:"center"},children:[s.jsx("span",{children:"Stop this run?"}),s.jsx(Ot,{variant:"danger",size:"sm",onClick:()=>void tt("stop"),children:"Confirm stop"}),s.jsx(Ot,{variant:"ghost",size:"sm",onClick:()=>p(!1),children:"Cancel"})]}):null,B&&!m?s.jsx(Ot,{size:"sm",onClick:()=>void tt("resume"),children:"Resume"}):null,!L&&!J&&!m&&Y!==""?s.jsx(Ot,{variant:"secondary",size:"sm",onClick:()=>void tt("retry"),children:"Retry"}):null,m?s.jsx("span",{role:"status",children:pS[m]}):null,!m&&R?s.jsx("span",{role:R.tone==="error"?"alert":"status",style:R.tone==="error"?{color:"var(--cp-error)"}:void 0,children:R.text}):null]})}const yS=new Set(["that","this","with","from","when","should","must","will","have","into","then","than","each","which","their","there","about"]),Qi=u=>new Set((u.toLowerCase().match(/[a-z0-9]{4,}/g)??[]).filter(c=>!yS.has(c))),Gi=(u,c)=>{for(const r of u)if(c.has(r))return!0;return!1},Yo=u=>Qi(u.replace(/[/.]/g," "));function $o(u){if(u===null)return null;try{return JSON.parse(u)}catch{return null}}function xS(u){const c=u&&typeof u=="object"?u:{},o=(typeof c.body=="string"?c.body:"").split(/\r?\n/),d=o.map(x=>{var j,z;return(z=(j=/^\s*[-*]\s*\[[ xX]\]\s*(.+)$/.exec(x))==null?void 0:j[1])==null?void 0:z.trim()}).filter(x=>!!x);if(d.length)return{list:d,source:"checklist"};const p=[];let m=!1;for(const x of o)if(/^\s*#{1,6}\s/.test(x)||/^\s*\*\*[^*]+\*\*:?\s*$/.test(x))m=/accept|requirement|criteri|expected|done when/i.test(x);else if(m){const j=/^\s*(?:[-*]|\d+[.)])\s+(.+)$/.exec(x);j!=null&&j[1]&&p.push(j[1].trim())}if(p.length)return{list:p,source:"checklist"};const g=typeof c.title=="string"?c.title.trim():"";return g?{list:[g],source:"title"}:{list:[],source:"none"}}function bS(u){const c=u,r=Array.isArray(u)?u:Array.isArray(c==null?void 0:c.steps)?c.steps:Array.isArray(c==null?void 0:c.plan)?c.plan:typeof(c==null?void 0:c.plan)=="string"?c.plan.split(/\r?\n/).filter(d=>d.trim()):[],o=[];for(const d of r){if(typeof d=="string"){const p=d.replace(/^\s*(?:[-*]|\d+[.)])\s*/,"").trim();p&&o.push({text:p,files:[],checks:[]});continue}if(d&&typeof d=="object"){const p=d,m=[p.title,p.step,p.description,p.text].find(j=>typeof j=="string"&&j.trim()!=="");if(!m)continue;const g=Array.isArray(p.files)?p.files.filter(j=>typeof j=="string"):[],x=Array.isArray(p.checks)?p.checks.filter(j=>typeof j=="string"):[];o.push({text:m.trim(),files:g,checks:x,...typeof p.criterion=="string"?{criterion:p.criterion}:{}})}}return o}function SS(u){if(!u)return[];const c=new Set;for(const r of u.matchAll(/^diff --git a\/(.+?) b\/(.+)$/gm))c.add(r[2]);return[...c]}function jS(u,c){return u?$e({...u,verdict:u.verdict??(c==null?void 0:c.verdict)??null}):null}function _S(u){var y,R,H,Y,J;const{list:c,source:r}=xS(u.issue),o=bS(u.plan),d=((y=u.receipt)==null?void 0:y.checks)??[],p=u.run?$e({...u.run,verdict:u.run.verdict??((R=u.receipt)==null?void 0:R.verdict)??null}):null,m=(H=u.receipt)==null?void 0:H.verdict,g=p===mt.VERIFIED&&(m==null||m===mt.VERIFIED),x=[...new Set([...u.changedFiles,...((J=(Y=u.receipt)==null?void 0:Y.wall)==null?void 0:J.files)??[]])],j=new Set;return{rows:c.map(L=>{const B=Qi(L),tt=o.filter(it=>it.criterion?it.criterion.trim()===L:Gi(B,Qi(it.text))),U=new Set;for(const it of tt){for(const me of it.files)U.add(me);const he=Qi(it.text);for(const me of x)Gi(he,Yo(me))&&U.add(me)}for(const it of x)Gi(B,Yo(it))&&U.add(it);const G=[...U];G.forEach(it=>j.add(it));const X=it=>it.name.trim().toLowerCase(),xt=it=>!!X(it)&&(L.toLowerCase().includes(X(it))||tt.some(he=>he.text.toLowerCase().includes(X(it))||he.checks.some(me=>me.trim().toLowerCase()===X(it)))),I=d.filter(it=>{const he=Qi(`${it.name} ${it.cmd??""}`);return xt(it)||Gi(B,he)||G.some(me=>Gi(Yo(me),he))}),rt=I.filter(xt),ze=I.filter(it=>!xt(it));let de="not proven",Jt=null;return u.receipt?rt.some(it=>it.result==="fail")?(de="failed",Jt="a linked check failed"):rt.length===0?Jt=ze.length?"link inferred":"no check linked to this criterion":rt.every(it=>it.result==="pass")?g?de="proven":Jt=`verdict is ${p!==mt.VERIFIED?p??"unknown (run record unavailable)":m}`:Jt="a linked check did not run":Jt="no receipt for this run",{criterion:L,steps:tt.map(it=>it.text),files:G,evidence:rt,inferred:ze,status:de,note:Jt}}),unmapped_files:x.filter(L=>!j.has(L)),criteria_source:r}}async function ES(u,c,r,o){const[d,p,m,g]=await Promise.all(["issue.json","plan.json","receipt.json","diff.patch"].map(y=>Gg(u,c,y))),x=$o(m??null),j=$o(d??null),z=$o(p??null);return{matrix:_S({issue:j,plan:z,receipt:x,changedFiles:SS(g??null),run:o}),stages:r,verdict:jS(o,x),have:{issue:j!==null,plan:z!==null,receipt:x!==null}}}const TS={proven:"success",failed:"error","not proven":"warning"},Xi={fontFamily:"var(--cp-font-mono)",fontSize:12,wordBreak:"break-all"},Vo=s.jsx("span",{style:{color:"var(--cp-text-2)"},children:"none"});function cv({params:u}){const c=u.source,r=u.run;return!c||!r?s.jsx(NS,{}):s.jsx(zS,{source:c,run:r})}function NS(){const[u,c]=N.useState(null),[r,o]=N.useState(null);return N.useEffect(()=>{let d=!0;return Yl().then(p=>d&&c(p.runs),p=>d&&o(p.message)),()=>{d=!1}},[]),r?s.jsx(qt,{title:"Plans unavailable",hint:r}):u?u.length?s.jsx("div",{"data-testid":"plans-picker",children:s.jsx(Zn,{caption:"Pick a run",columns:["Run","Outcome","Started"],rows:u.map(d=>[s.jsx("a",{href:`#/plans/${encodeURIComponent(d.source_id)}/${encodeURIComponent(d.run_id)}`,style:Xi,"data-testid":"plans-pick",children:d.run_id},"a"),d.verdict?s.jsx(Ye,{run:d},"v"):"running",d.started_at??"not measured"])})}):s.jsx(qt,{title:"No runs yet",hint:"Start a run to see its plan and traceability here."}):s.jsx(Ft,{label:"Loading runs"})}function zS({source:u,run:c}){var z;const[r,o]=N.useState(null),[d,p]=N.useState(null);if(N.useEffect(()=>{let y=!0;return o(null),(async()=>{const R=await Fi(u,c).catch(()=>null);return ES(u,c,(R==null?void 0:R.stages)??null,R)})().then(R=>y&&o(R),R=>y&&p(R.message)),()=>{y=!1}},[u,c]),d)return s.jsx(qt,{title:"Plan unavailable",hint:d});if(!r)return s.jsx(Ft,{label:"Loading plan"});const{matrix:m,have:g}=r,x=["issue","plan","receipt"].filter(y=>!g[y]),j=m.rows.filter(y=>y.status==="proven").length;return s.jsxs("div",{"data-testid":"plans",style:{display:"flex",flexDirection:"column",gap:16},children:[s.jsxs(Gt,{style:{padding:"14px 16px"},children:[s.jsx("div",{style:{fontFamily:"var(--cp-font-mono)"},children:c}),s.jsxs("div",{"data-testid":"plans-summary",style:{color:"var(--cp-text-2)"},children:[m.rows.length?`${j} of ${m.rows.length} criteria proven`:"not measured: no criteria",r.verdict?` - verdict ${r.verdict}`:g.receipt?" - verdict unavailable":" - no receipt"]}),x.length?s.jsxs("div",{"data-testid":"plans-missing",style:{color:"var(--cp-text-2)"},children:["not available: ",x.map(y=>`${y}.json`).join(", ")]}):null]}),(z=r.stages)!=null&&z.length?s.jsx(u1,{stages:r.stages.map(y=>({label:y.stage,status:y.status==="completed"?"success":y.status==="failed"?"error":"pending"}))}):null,m.rows.length===0?s.jsx(qt,{title:"No requirements found",hint:"issue.json has no title or acceptance criteria for this run."}):s.jsx(Zn,{caption:"Traceability matrix",columns:["Requirement","Plan step","Files changed","Evidence","Verdict"],rows:m.rows.map(y=>[y.criterion,y.steps.length?s.jsx("ol",{style:{margin:0,paddingLeft:16},children:y.steps.map(R=>s.jsx("li",{children:R},R))},"s"):Vo,y.files.length?s.jsx("div",{style:Xi,children:y.files.map(R=>s.jsx("div",{children:R},R))},"f"):Vo,y.evidence.length||y.inferred.length?s.jsxs("div",{children:[y.evidence.map(R=>s.jsxs("div",{style:Xi,children:[R.result,": ",R.name]},R.name)),y.inferred.map(R=>s.jsxs("div",{"data-testid":"inferred-hint",style:{...Xi,color:"var(--cp-text-2)"},children:["inferred, not recorded: ",R.result,": ",R.name]},`i-${R.name}`))]},"e"):Vo,s.jsxs("span",{"data-testid":"row-status","data-status":y.status,children:[s.jsx(Rt,{tone:TS[y.status],children:y.status==="not proven"?y.note==="link inferred"?"NOT PROVEN (link inferred)":"NOT PROVEN":y.status.toUpperCase()}),y.note?s.jsx("div",{style:{color:"var(--cp-text-2)",fontSize:12},children:y.note}):null]},"v")])}),m.unmapped_files.length?s.jsxs(Gt,{style:{padding:"14px 16px"},"data-testid":"plans-unmapped",children:[s.jsx("div",{style:{color:"var(--cp-text-2)"},children:"Changed files not tied to any requirement"}),s.jsx("div",{style:Xi,children:m.unmapped_files.map(y=>s.jsx("div",{children:y},y))})]}):null]})}const RS={id:"plans",path:"/plans/:source/:run",title:"Plans",component:cv},CS={id:"plans-picker",path:"/plans",title:"Plans",component:cv},rv=()=>globalThis.LOKI_CONTROL_BASE??"",Fo=u=>{const c=be();return{...u?{"content-type":"application/json"}:{},...c?{authorization:`Bearer ${c}`}:{}}};async function mg(u,c){const r=await fetch(`${rv()}${u}`,c),o=await r.json().catch(()=>({}));if(!r.ok)throw new Error(o.error??`HTTP ${r.status}`);return o}async function OS(u){const c=await fetch(`${rv()}/v1/merge/run`,{method:"POST",headers:Fo(!0),body:JSON.stringify({dryRun:u})}),r=await c.json().catch(()=>null);if(!r||!Array.isArray(r.lines))throw new Error((r==null?void 0:r.error)??`HTTP ${c.status}`);return{ok:!1,ran:!1,dryRun:u,exit:null,...r,lines:r.lines}}function Us(u){if(u.ran&&!u.partial&&!u.error)return null;const c=u.error??"the run did not finish cleanly";return u.timedOut?`Partial outcome: ${c}. Lines below show what completed before it stopped. PRs listed as merged are already merged, but the queue file is only rewritten when a run finishes, so they may still appear in the queue; PRs not listed may still be queued.`:`${u.partial?"Partial outcome":"Not completed"}: ${c}. Lines below show what completed before it stopped; PRs not listed as merged may still be queued.`}function AS(){const[u,c]=N.useState(null),[r,o]=N.useState(null),[d,p]=N.useState(""),[m,g]=N.useState(!1),[x,j]=N.useState(null),[z,y]=N.useState(null),[R,H]=N.useState(!1),[Y,J]=N.useState(null),L=N.useCallback(async()=>{try{const X=await mg("/v1/merge/queue",{headers:Fo(!1)});X.measured?(c(X.queue),o(null)):(c(null),o(X.error??"not measured"))}catch(X){c(null),o(X instanceof Error?X.message:String(X))}},[]);N.useEffect(()=>{L()},[L]);const B=/^[0-9]{1,7}$/.test(d.trim()),tt=async()=>{g(!0),j(null);try{await mg("/v1/merge/queue",{method:"POST",headers:Fo(!0),body:JSON.stringify({prs:[d.trim()]})}),j({tone:"success",text:`Queued PR #${d.trim()}`}),p(""),await L()}catch(X){j({tone:"error",text:X instanceof Error?X.message:String(X)})}g(!1)},U=async X=>{g(!0),j(null),H(!1);try{const xt=await OS(X);X?(y(xt),J(null)):(J(xt),y(null)),await L()}catch(xt){j({tone:"error",text:xt instanceof Error?xt.message:String(xt)})}g(!1)},G=u!==null&&u.length===0;return s.jsxs("div",{style:{display:"grid",gap:16,maxWidth:720},children:[s.jsx("h1",{style:{margin:0,fontSize:"var(--cp-text-xl, 20px)"},children:"Merge queue"}),s.jsx(Gt,{children:s.jsxs("div",{style:{display:"grid",gap:8},children:[s.jsx("strong",{children:"Queue"}),r?s.jsx(qt,{title:"Queue not measured",hint:r}):u===null?s.jsx(Ft,{label:"Reading the queue"}):G?s.jsx("small",{children:"The merge queue is empty."}):s.jsx("ol",{"aria-label":"Queued pull requests",style:{margin:0,paddingLeft:20},children:u.map(X=>s.jsxs("li",{children:["PR #",X]},X))}),s.jsxs("div",{style:{display:"flex",gap:8},children:[s.jsx(Qa,{"aria-label":"PR number",inputMode:"numeric",placeholder:"PR number",value:d,onChange:X=>p(X.target.value.replace(/[^0-9]/g,"").slice(0,7))}),s.jsx(Ot,{variant:"secondary",disabled:!B||m,onClick:tt,children:"Add"})]})]})}),s.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[s.jsx(Ot,{variant:"secondary",disabled:m||G||u===null,onClick:()=>U(!0),children:"Preview"}),R?s.jsxs("span",{role:"alertdialog","aria-label":"Confirm merge",style:{display:"inline-flex",gap:8,alignItems:"center"},children:[s.jsx("small",{children:"Squash-merge each PR whose checks are green, one at a time. This cannot be undone."}),s.jsx(Ot,{variant:"danger",disabled:m,onClick:()=>U(!1),children:"Confirm merge"}),s.jsx(Ot,{variant:"ghost",onClick:()=>H(!1),children:"Cancel"})]}):s.jsx(Ot,{disabled:m||G||u===null,onClick:()=>H(!0),children:"Merge queue"}),m?s.jsx(Ft,{label:"Working"}):null]}),x?s.jsx(Rt,{tone:x.tone,children:x.text}):null,z?s.jsxs(Gt,{children:[s.jsx("strong",{children:"Plan (dry run, nothing changed)"}),Us(z)?s.jsx("p",{role:"alert",style:{margin:"4px 0"},children:Us(z)}):null,s.jsx("pre",{style:{margin:0,whiteSpace:"pre-wrap"},children:z.lines.join(`
|
|
149
|
-
`)||"not measured"})]}):null,Y?s.jsxs(Gt,{children:[s.jsx("strong",{children:"Merge result"})," ",s.jsx(Rt,{tone:Y.ok?"success":"warning",children:Y.ok?"all merged":Y.partial||!Y.ran?"partial result":"some PRs left in queue"}),Us(Y)?s.jsx("p",{role:"alert",style:{margin:"4px 0"},children:Us(Y)}):null,s.jsx("pre",{style:{margin:0,whiteSpace:"pre-wrap"},children:Y.lines.join(`
|
|
150
|
-
`)})]}):null]})}const DS={id:"merge",path:"/merge",title:"Merge queue",component:AS},wS=()=>globalThis.LOKI_CONTROL_BASE??"",MS=u=>u==="low"?"success":u==="medium"?"warning":u==="high"||u==="critical"?"error":"neutral";function US(){const[u,c]=N.useState("pr"),[r,o]=N.useState(""),[d,p]=N.useState(!1),[m,g]=N.useState(null),x=u==="staged"||(u==="pr"?/^[0-9]{1,7}$/.test(r):/^[A-Za-z0-9._/][A-Za-z0-9._/-]{0,99}$/.test(r)),j=async()=>{p(!0);const z=u==="staged"?"staged=1":`${u}=${encodeURIComponent(r)}`;try{const y=be(),R=await fetch(`${wS()}/v1/review/risk?${z}`,{headers:y?{authorization:`Bearer ${y}`}:{}}),H=await R.json().catch(()=>null);g(R.ok&&H&&H.measured===!0&&typeof H.score=="number"?H:{measured:!1,reason:(H==null?void 0:H.error)??(H==null?void 0:H.reason)??`HTTP ${R.status}`})}catch(y){g({measured:!1,reason:y instanceof Error?y.message:String(y)})}p(!1)};return s.jsxs("div",{style:{display:"grid",gap:16,maxWidth:720},children:[s.jsx("h1",{style:{margin:0,fontSize:"var(--cp-text-xl, 20px)"},children:"PR risk"}),s.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",alignItems:"center"},children:[s.jsxs("select",{"aria-label":"Diff source",value:u,onChange:z=>{c(z.target.value),o(""),g(null)},children:[s.jsx("option",{value:"pr",children:"Pull request"}),s.jsx("option",{value:"staged",children:"Staged changes"}),s.jsx("option",{value:"since",children:"Since a ref"})]}),u!=="staged"?s.jsx(Qa,{"aria-label":u==="pr"?"PR number":"Git ref",placeholder:u==="pr"?"PR number":"HEAD~5",value:r,onChange:z=>o(z.target.value)}):null,s.jsx(Ot,{disabled:!x||d,onClick:j,children:"Measure risk"}),d?s.jsx(Ft,{label:"Scoring"}):null]}),m&&m.measured?s.jsxs(s.Fragment,{children:[s.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[s.jsx(La,{label:"Risk score",value:`${m.score}/100`}),s.jsx(Rt,{tone:MS(m.level),children:m.level}),s.jsx("small",{children:m.source}),s.jsx("small",{children:typeof m.files=="number"?`${m.files} files`:"files: not measured"})]}),s.jsx(Zn,{caption:"Risk factors",columns:["Factor","Points","Detail"],rows:m.factors.map(z=>[z.factor,`${z.points}/${z.max}`,z.detail])})]}):m?s.jsxs(Gt,{children:[s.jsx("strong",{children:"Risk score: not measured"}),s.jsx("br",{}),s.jsx("small",{children:m.reason??"no reason reported"})]}):null]})}const HS={id:"risk",path:"/risk",title:"PR risk",component:US},ov=()=>globalThis.LOKI_CONTROL_BASE??"",fv=(u={})=>{const c=be();return c?{...u,authorization:`Bearer ${c}`}:u};class Ga extends Error{constructor(c,r,o){super(c),this.status=r,this.details=o}}async function dv(){const u=await fetch(`${ov()}/v1/config`,{headers:fv()}),c=await u.json().catch(()=>({}));if(!u.ok)throw new Ga(c.error??`HTTP ${u.status}`,u.status,[]);return{exists:!!c.exists,etag:c.etag??"",config:c.config??{},errors:c.errors??[]}}async function hv(u,c){const r=await fetch(`${ov()}/v1/config`,{method:"PUT",headers:fv({"content-type":"application/json","if-match":c}),body:JSON.stringify({config:u})}),o=await r.json().catch(()=>({}));if(!r.ok)throw new Ga(o.error??`HTTP ${r.status}`,r.status,o.errors??(o.paths?o.paths.map(d=>`${d}: looks like a secret`):[]));return{etag:o.etag??c,config:o.config??u}}const Bt=u=>`var(--cp-${u})`,kS=[{id:"provider",title:"Provider",hint:"Default provider. A CLI flag or LOKI_PROVIDER overrides it.",fields:[{path:["provider"],label:"Provider",kind:"select",options:["claude","codex","cline","aider","opencode"]}]},{id:"models",title:"Models",hint:"Model names passed to the provider.",fields:[{path:["models","default"],label:"Default model",kind:"text"},{path:["models","cheap"],label:"Cheap model",kind:"text"}]},{id:"git",title:"Git",hint:"Name of the environment variable that holds your GitHub token. The token itself is never stored here.",fields:[{path:["git","token_env"],label:"Token variable name",kind:"env",hint:"For example GITHUB_TOKEN"}]},{id:"repos",title:"Repos",hint:"owner/repo, one per line. The UI offers these and headless runs may target them.",fields:[{path:["repos"],label:"Repos",kind:"lines"}]},{id:"concurrency",title:"Concurrency",hint:"Backlog runs in parallel, 1 to 32 (default 2).",fields:[{path:["concurrency"],label:"Parallel runs",kind:"number"}]},{id:"budgets",title:"Budgets",hint:"USD caps. Leave blank for no cap.",fields:[{path:["budgets","per_run_usd"],label:"Per run (USD)",kind:"number"},{path:["budgets","per_day_usd"],label:"Per day (USD)",kind:"number"}]},{id:"knowledge_sources",title:"Knowledge sources",hint:"Local paths of knowledge to give runs, one per line.",fields:[{path:["knowledge_sources"],label:"Paths",kind:"lines"}]},{id:"workspaces",title:"Workspaces",hint:"Named groups of repos for cross-repo runs. Edited as JSON; the server validates it against the schema.",fields:[{path:["workspaces"],label:"Workspaces (JSON)",kind:"json"}]},{id:"notifications",title:"Notifications",hint:"Name of the environment variable that holds the Slack webhook URL. The URL itself is never stored here.",fields:[{path:["notifications","slack_webhook_env"],label:"Webhook variable name",kind:"env",hint:"For example SLACK_WEBHOOK_URL"}]}],yn=u=>typeof u=="object"&&u!==null&&!Array.isArray(u);function Hs(u){const c={},r=yn(u)&&yn(u.workspaces)?u.workspaces:{};for(const[o,d]of Object.entries(r))yn(d)&&(yn(d.integration)&&"command"in d.integration&&(c[`${o} integration command`]=String(d.integration.command)),Array.isArray(d.repos)&&d.repos.forEach((p,m)=>{yn(p)&&"setup"in p&&(c[`${o} setup for repo ${m+1}`]=String(p.setup))}));return c}const BS=(u,c)=>c.reduce((r,o)=>yn(r)?r[o]:void 0,u);function mv(u,c,r){const o={...u},[d,...p]=c;if(d===void 0)return o;if(p.length===0)return r===void 0?delete o[d]:o[d]=r,o;const m=mv(yn(o[d])?o[d]:{},p,r);return Object.keys(m).length===0?delete o[d]:o[d]=m,o}function LS(u,c){return c==null?"":u.kind==="lines"?Array.isArray(c)?c.join(`
|
|
151
|
-
`):"":u.kind==="json"?JSON.stringify(c,null,2):String(c)}function qS(u,c){const r=c.trim();if(r==="")return{value:void 0};if(u.kind==="number"){const o=Number(r);return Number.isFinite(o)?{value:o}:{error:`${u.label} must be a number`}}if(u.kind==="lines")return{value:r.split(`
|
|
152
|
-
`).map(o=>o.trim()).filter(Boolean)};if(u.kind==="json")try{const o=JSON.parse(r);return yn(o)?{value:o}:{error:`${u.label} must be a JSON object`}}catch{return{error:`${u.label} is not valid JSON`}}return{value:r}}function YS({section:u,state:c,onSave:r}){const o=u.fields.map(L=>LS(L,BS(c.config,L.path))),[d,p]=N.useState(o),[m,g]=N.useState([]),[x,j]=N.useState(!1),[z,y]=N.useState(!1),R=N.useId(),H=JSON.stringify(o);N.useEffect(()=>{p(o),g([])},[H]);const Y=d.some((L,B)=>L!==o[B]),J=async()=>{const L=[];let B=c.config;if(u.fields.forEach((tt,U)=>{const G=qS(tt,d[U]??"");G.error?L.push(G.error):B=mv(B,tt.path,G.value)}),L.length){g(L);return}if(JSON.stringify(Hs(B))!==JSON.stringify(Hs(c.config))){g(["Edit shell commands in loki.yaml directly"]);return}j(!0),g([]),y(!1);try{await r(B),y(!0)}catch(tt){g(tt instanceof Ga?[tt.message,...tt.details]:[tt.message])}finally{j(!1)}};return s.jsxs(Gt,{"data-testid":`settings-${u.id}`,"aria-labelledby":`${R}-h`,children:[s.jsx("h2",{id:`${R}-h`,style:{margin:0,fontFamily:Bt("font-serif"),fontWeight:400,fontSize:Bt("text-xl")},children:u.title}),s.jsx("p",{style:{margin:"4px 0 12px",color:Bt("text-2"),fontSize:Bt("text-md")},children:u.hint}),s.jsx("div",{style:{display:"grid",gap:12},children:u.fields.map((L,B)=>{const tt=`${R}-${B}`,U=X=>{y(!1),p(xt=>xt.map((I,rt)=>rt===B?X:I))},G={id:tt,value:d[B]??"","data-field":L.path.join(".")};return s.jsxs("div",{children:[s.jsx("label",{htmlFor:tt,style:{display:"block",fontSize:Bt("text-md"),marginBottom:4},children:L.label}),L.kind==="select"?s.jsxs("select",{...G,onChange:X=>U(X.target.value),style:{padding:"8px 10px",borderRadius:Bt("radius-md"),border:`1px solid ${Bt("border")}`,background:Bt("bg"),color:Bt("text"),font:"inherit"},children:[s.jsx("option",{value:"",children:"Not set"}),L.options.map(X=>s.jsx("option",{value:X,children:X},X))]}):L.kind==="lines"||L.kind==="json"?s.jsx(Cg,{...G,rows:L.kind==="json"?8:4,spellCheck:!1,onChange:X=>U(X.target.value),style:L.kind==="json"?{fontFamily:Bt("font-mono")}:void 0}):s.jsx(Qa,{...G,type:L.kind==="number"?"number":"text",step:L.kind==="number"?"any":void 0,autoComplete:"off",spellCheck:!1,placeholder:L.kind==="env"?"ENV_VAR_NAME":void 0,onChange:X=>U(X.target.value),style:L.kind==="env"?{fontFamily:Bt("font-mono")}:void 0}),L.hint?s.jsx("div",{style:{color:Bt("text-3"),fontSize:Bt("text-base"),marginTop:4},children:L.hint}):null]},L.path.join("."))})}),u.id==="workspaces"&&Object.keys(Hs(c.config)).length?s.jsxs("div",{"data-testid":"settings-shell-readonly",style:{marginTop:12},children:[s.jsx("div",{style:{fontSize:Bt("text-md"),marginBottom:4},children:"Shell commands (read only, edit in loki.yaml directly)"}),s.jsx("ul",{style:{margin:0,paddingLeft:18,fontFamily:Bt("font-mono"),fontSize:Bt("text-base"),color:Bt("text-2")},children:Object.entries(Hs(c.config)).map(([L,B])=>s.jsxs("li",{children:[L,": ",B]},L))})]}):null,m.length?s.jsx("ul",{role:"alert","data-testid":"settings-problems",style:{margin:"12px 0 0",paddingLeft:18,color:Bt("error"),fontSize:Bt("text-md")},children:m.map(L=>s.jsx("li",{children:L},L))}):null,s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginTop:12},children:[s.jsx(Ot,{disabled:!Y||x,onClick:J,children:x?"Saving":"Save"}),z&&!Y?s.jsx(Rt,{tone:"success",children:"Saved"}):null]})]})}function $S(){const[u,c]=N.useState(null),[r,o]=N.useState(null),d=()=>{o(null),dv().then(c,m=>o(m.message))};if(N.useEffect(d,[]),r)return s.jsx(qt,{title:"Configuration unavailable",hint:r,action:s.jsx(Ot,{variant:"secondary",onClick:d,children:"Retry"})});if(!u)return s.jsx(Ft,{label:"Loading configuration"});const p=async m=>{try{const g=await hv(m,u.etag);c({exists:!0,etag:g.etag,config:g.config,errors:[]})}catch(g){throw g instanceof Ga&&g.status===409?new Ga("loki.yaml changed on disk since it was loaded. Reload to see the latest, then apply your edit again.",409,[]):g}};return s.jsxs("div",{"data-testid":"config-settings",style:{display:"grid",gap:16,maxWidth:720},children:[s.jsxs("div",{children:[s.jsx("h1",{style:{margin:0,fontFamily:Bt("font-serif"),fontWeight:400,fontSize:Bt("text-2xl")},children:"Configuration"}),s.jsxs("p",{style:{margin:"4px 0 0",color:Bt("text-2"),fontSize:Bt("text-md")},children:[u.exists?"Edits loki.yaml in this repo. Comments are kept.":"No loki.yaml in this repo yet. Saving a section creates it."," ","Credentials are environment variable names, never values."]})]}),u.errors.length?s.jsxs(Gt,{"data-testid":"config-file-errors",role:"alert",style:{borderColor:Bt("error")},children:[s.jsx("strong",{children:"The current loki.yaml has problems"}),s.jsx("ul",{style:{margin:"6px 0 0",paddingLeft:18},children:u.errors.map(m=>s.jsx("li",{children:m},m))})]}):null,kS.map(m=>s.jsx(YS,{section:m,state:u,onSave:p},m.id)),s.jsx("div",{children:s.jsx(Ot,{variant:"ghost",size:"sm",onClick:d,children:"Reload from disk"})})]})}const VS={id:"settings-config",path:"/settings/config",title:"Configuration",component:$S,inSettings:!0},Go=u=>typeof u=="object"&&u!==null&&!Array.isArray(u),Zi=u=>u.replace(/[\\/]+$/,"").split(/[\\/]/).pop()??u;function GS(u){const c=Go(u)&&Go(u.workspaces)?u.workspaces:{};return Object.entries(c).map(([r,o])=>({name:r,def:Go(o)?o:{}}))}const QS=(u,c)=>{const r=c.origin_repo;return r?u.repo&&(r===u.repo||r.endsWith(`/${u.repo}`)||Zi(r)===Zi(u.repo))?!0:!!u.path&&Zi(r)===Zi(u.path):!1},pg=u=>u.started_at??"";function XS(u,c){return GS(u).map(({name:r,def:o})=>{const d=(Array.isArray(o.repos)?o.repos:[]).map(x=>{const j=c.filter(z=>QS(x,z)).sort((z,y)=>pg(y).localeCompare(pg(z)));return{name:x.repo??(x.path?Zi(x.path):"unnamed"),path:x.path??null,after:Array.isArray(x.after)?x.after:[],shell:typeof x.setup=="string",latest:j[0]??null,runs:j.length}}),p=d.filter(x=>x.latest),m=d.length&&p.length===d.length?{total:d.length,verified:p.filter(x=>$a(x.latest)).length,failed:p.filter(x=>x.latest.verdict!==null&&!$a(x.latest)).length,running:p.filter(x=>x.latest.verdict===null).length}:null,g=!!o.integration&&typeof o.integration.command=="string";return{name:r,repos:d,shell:g||d.some(x=>x.shell),integrationShell:g,status:m}})}const pv=()=>globalThis.LOKI_CONTROL_BASE??"",ZS=()=>{const u=be();return u?{"content-type":"application/json",authorization:`Bearer ${u}`}:{"content-type":"application/json"}};async function KS(){const u=be(),c=await fetch(`${pv()}/v1/config`,{headers:u?{authorization:`Bearer ${u}`}:{}});if(!c.ok)throw new Error(`/v1/config: HTTP ${c.status}`);const r=await c.json();return{config:r.config??{},errors:r.errors??[]}}async function JS(u,c){const r=await fetch(`${pv()}/v1/runs`,{method:"POST",headers:ZS(),body:JSON.stringify({workspace:u,target:c})}),o=await r.json().catch(()=>({}));if(!r.ok)throw new Error(o.error??`HTTP ${r.status}`);return{pid:o.pid??0,command:o.command??""}}function IS({name:u}){const[c,r]=N.useState(""),[o,d]=N.useState(null),[p,m]=N.useState(!1),g=async()=>{m(!0),d(null);try{const x=await JS(u,c.trim());d({ok:!0,text:`Started: ${x.command} (pid ${x.pid})`})}catch(x){d({ok:!1,text:x instanceof Error?x.message:String(x)})}finally{m(!1)}};return s.jsxs("div",{style:{display:"grid",gap:8},children:[s.jsxs("div",{style:{display:"flex",gap:8},children:[s.jsx(Qa,{"aria-label":`Target for ${u}`,placeholder:"owner/repo#123 or a short task",value:c,onChange:x=>r(x.target.value)}),s.jsx(Ot,{disabled:p||!c.trim(),onClick:g,children:"Run workspace"})]}),o?s.jsxs("div",{role:o.ok?"status":"alert",children:[s.jsx(Rt,{tone:o.ok?"success":"error",children:o.ok?"started":"refused"})," ",o.text]}):null]})}function FS({w:u}){const c=u.repos.map(r=>[s.jsx("strong",{children:r.name},"n"),r.path??"not measured",r.after.length?r.after.join(", "):"none",r.latest?r.latest.verdict?s.jsx(Ye,{run:r.latest},"v"):s.jsx(Rt,{tone:"neutral",pulse:!0,children:"running"},"v"):"not measured",r.latest?String(r.runs):"not measured"]);return s.jsx(Gt,{children:s.jsxs("div",{style:{display:"grid",gap:12},children:[s.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[s.jsx("h2",{style:{margin:0,fontSize:16},children:u.name}),u.shell?s.jsx(Rt,{tone:"warning",children:"read-only: runs shell commands"}):null,s.jsx("span",{style:{marginLeft:"auto"},children:u.status?`Group: ${u.status.verified} of ${u.status.total} verified`+(u.status.failed?`, ${u.status.failed} not verified`:"")+(u.status.running?`, ${u.status.running} running`:""):"Group status: not measured"})]}),u.repos.length?s.jsx(Zn,{caption:`Repos in ${u.name}`,columns:["Repo","Path","After","Latest run","Runs"],rows:c}):s.jsx("div",{children:"No repos listed"}),u.shell?s.jsx("div",{children:"Edit shell commands in loki.yaml; the UI never changes them."}):null,s.jsx(IS,{name:u.name})]})})}function WS(){const[u,c]=N.useState(null),[r,o]=N.useState([]),[d,p]=N.useState(null);return N.useEffect(()=>{let m=!0;return(async()=>{try{const{config:g,errors:x}=await KS();let j=[];try{j=(await Yl()).runs}catch{}m&&(c(XS(g,j)),o(x))}catch(g){m&&p(g instanceof Error?g.message:String(g))}})(),()=>{m=!1}},[]),d?s.jsx(qt,{title:"Could not load workspaces",hint:d}):u?u.length?s.jsxs("div",{style:{display:"grid",gap:16},children:[r.length?s.jsxs("div",{role:"alert",children:[s.jsx(Rt,{tone:"warning",children:"loki.yaml has problems"})," ",r.join("; ")]}):null,u.map(m=>s.jsx(FS,{w:m},m.name))]}):s.jsx(qt,{title:"No workspaces",hint:"Define workspaces in loki.yaml to run a group of repos together."}):s.jsx(Ft,{label:"Loading workspaces"})}const PS={id:"workspaces",path:"/workspaces",title:"Workspaces",component:WS},tj=()=>globalThis.LOKI_CONTROL_BASE??"";async function ej(){const u=be(),c=await fetch(`${tj()}/v1/integrations`,{headers:u?{authorization:`Bearer ${u}`}:{}});if(!c.ok)throw new Error(`HTTP ${c.status}`);return(await c.json()).integrations}const lj=u=>typeof u=="object"&&u!==null&&!Array.isArray(u);function gv(u,c,r){const[o,...d]=c;return o===void 0?u:{...u,[o]:d.length?gv(lj(u[o])?u[o]:{},d,r):r}}const nj={connected:"success",not_connected:"neutral",not_measured:"neutral"},aj={connected:"connected",not_connected:"not connected",not_measured:"not measured"};function ij({row:u,onChanged:c}){const[r,o]=N.useState(u.env_name??""),[d,p]=N.useState(!1),[m,g]=N.useState(null),x=/^[A-Z_][A-Z0-9_]*$/.test(r),j=async()=>{if(!(!u.config_path||!x)){p(!0),g(null);try{const z=await dv();await hv(gv(z.config,u.config_path.split("."),r),z.etag),g(`Saved ${r} to loki.yaml`),c()}catch(z){g(z instanceof Ga?[z.message,...z.details].join(": "):z.message)}finally{p(!1)}}};return s.jsxs(Gt,{"data-testid":`integration-${u.id}`,children:[s.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",justifyContent:"space-between"},children:[s.jsx("strong",{children:u.label}),s.jsx(Rt,{tone:nj[u.status],children:aj[u.status]})]}),s.jsx("p",{style:{margin:"4px 0 8px",color:"var(--cp-text-2)",fontSize:"var(--cp-text-md)"},children:u.detail}),u.config_path?s.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[s.jsx(Qa,{"aria-label":`${u.label} variable name`,value:r,placeholder:"ENV_VAR_NAME",autoComplete:"off",spellCheck:!1,onChange:z=>{o(z.target.value.trim()),g(null)},style:{fontFamily:"var(--cp-font-mono)"}}),s.jsx(Ot,{onClick:j,disabled:d||!x||r===u.env_name,children:d?"Saving":"Connect"})]}):s.jsx("small",{style:{color:"var(--cp-text-3)"},children:u.id==="mcp"?"Managed in .mcp.json.":"loki.yaml has no setting for this service yet."}),u.config_path&&r&&!x?s.jsx("small",{role:"alert",children:"Use an environment variable name such as GITHUB_TOKEN, never the secret itself."}):null,m?s.jsx("small",{role:"status",style:{display:"block",marginTop:4},children:m}):null]})}function uj(){const[u,c]=N.useState(null),[r,o]=N.useState(null),d=N.useCallback(()=>{ej().then(c).catch(p=>o(p instanceof Error?p.message:String(p)))},[]);return N.useEffect(d,[d]),r?s.jsx(qt,{title:"Could not load integrations",hint:r}):u?s.jsxs("div",{style:{display:"grid",gap:16},children:[s.jsx("h1",{style:{margin:0,fontSize:"var(--cp-text-xl, 20px)"},children:"Integrations"}),s.jsx("small",{style:{color:"var(--cp-text-3)"},children:"Status shows whether an environment variable is set or a CLI is signed in, never its value. Connect stores the variable name in loki.yaml."}),u.map(p=>s.jsx(ij,{row:p,onChanged:d},p.id))]}):s.jsx(Ft,{label:"Probing integrations"})}const sj={id:"integrations",path:"/integrations",title:"Integrations",component:uj,inSettings:!0},cj=Qg.component,gg={...Qg,component:({params:u})=>s.jsx(cj,{source:u.source,run:u.run,renderSlot:(c,r)=>s.jsx(vS,{source:u.source,run:u.run,status:c.blocked_question?"BLOCKED":c.status==="running"||c.verdict===null?"running":c.verdict??c.status??"",onChanged:r})})};function vg(u){const c=u.component;return{...u,component:()=>s.jsx(c,{})}}function rj(){Ip("run-detail"),Ip("new-run"),qe(vg({...Qb,path:"/"})),qe({...gg,id:"run-short",path:"/r/:source/:run"}),qe(gg),qe(RS),qe(CS);for(const u of[T1,Jb,Fb,cS,dS,$b,DS,HS,VS,PS,sj])qe(vg(u))}const fe=u=>`var(--cp-${u})`,yg=u=>{location.hash=`#${u}`};function oj(){const[u,c]=N.useState(!1),[r,o]=N.useState(""),[d,p]=N.useState(0),[m,g]=N.useState([]),[x,j]=N.useState(null),z=N.useRef(null),y=N.useId(),R=N.useSyncExternalStore(Bg,Bs,Bs),H=()=>{c(!1),o(""),p(0)};N.useEffect(()=>(ng(()=>c(U=>!U)),()=>ng(null)),[]),N.useEffect(()=>{if(!u)return;let U=!0;return j(null),Yl().then(G=>{U&&g(G.runs)},G=>{U&&j(G.message)}),queueMicrotask(()=>{var G;return(G=z.current)==null?void 0:G.focus()}),()=>{U=!1}},[u]),N.useEffect(()=>{const U=G=>{const X=G.metaKey||G.ctrlKey,xt=G.key.toLowerCase();G.key==="Escape"&&u?(G.preventDefault(),H()):X&&G.key==="Enter"?(G.preventDefault(),window.dispatchEvent(new CustomEvent(Io)),u&&H()):X&&!G.shiftKey&&xt==="n"?(G.preventDefault(),yg("/new"),u&&H()):X&&G.shiftKey&&xt==="d"&&(G.preventDefault(),Ys())};return window.addEventListener("keydown",U),()=>window.removeEventListener("keydown",U)},[u]);const Y=N.useMemo(()=>kb(r,Mb(kg()),Ub(m),wb()),[r,m,R]),J=Math.min(d,Math.max(0,Y.length-1)),L=U=>{U.action==="toggle-theme"?Ys():U.to&&yg(U.to),H()},B=U=>{if(U.key==="ArrowDown")U.preventDefault(),p(Y.length?(J+1)%Y.length:0);else if(U.key==="ArrowUp")U.preventDefault(),p(Y.length?(J-1+Y.length)%Y.length:0);else if(U.key==="Home")U.preventDefault(),p(0);else if(U.key==="End")U.preventDefault(),p(Math.max(0,Y.length-1));else if(U.key==="Enter"&&!(U.metaKey||U.ctrlKey)){U.preventDefault();const G=Y[J];G&&L(G)}};if(!u)return null;let tt="";return s.jsx("div",{"data-testid":"palette-backdrop",onClick:H,style:{position:"fixed",inset:0,zIndex:400,background:"rgba(0,0,0,0.4)",display:"flex",justifyContent:"center",alignItems:"flex-start",paddingTop:"14vh"},children:s.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Command palette",onClick:U=>U.stopPropagation(),style:{width:"min(560px, 92vw)",background:fe("bg"),color:fe("text"),border:`1px solid ${fe("border")}`,borderRadius:fe("radius-lg"),boxShadow:fe("shadow-lg"),overflow:"hidden",fontFamily:fe("font-sans")},children:[s.jsx("input",{ref:z,role:"combobox","aria-expanded":"true","aria-controls":y,"aria-autocomplete":"list","aria-label":"Search pages, runs and actions","aria-activedescendant":Y[J]?`${y}-${J}`:void 0,value:r,onChange:U=>{o(U.target.value),p(0)},onKeyDown:B,placeholder:"Search pages, runs, actions",style:{width:"100%",boxSizing:"border-box",padding:"14px 16px",background:"transparent",color:fe("text"),border:"none",borderBottom:`1px solid ${fe("border")}`,outline:"none",fontSize:"1rem"}}),s.jsx("ul",{id:y,role:"listbox","aria-label":"Results",style:{listStyle:"none",margin:0,padding:6,maxHeight:"50vh",overflowY:"auto"},children:Y.map((U,G)=>{const X=U.kind!==tt?U.kind:null;return tt=U.kind,s.jsxs("li",{role:"presentation",children:[X&&s.jsx("div",{role:"presentation",style:{padding:"8px 10px 4px",fontSize:fe("text-sm"),color:fe("text-2")},children:X}),s.jsxs("div",{id:`${y}-${G}`,role:"option","aria-selected":G===J,onMouseMove:()=>p(G),onClick:()=>L(U),style:{display:"flex",justifyContent:"space-between",gap:12,padding:"8px 10px",borderRadius:fe("radius-md"),cursor:"pointer",background:G===J?fe("bg-3"):"transparent"},children:[s.jsx("span",{children:U.label}),U.hint&&s.jsx("span",{style:{color:fe("text-2"),fontSize:fe("text-sm")},children:U.hint.startsWith("Cmd")?s.jsx(af,{children:U.hint}):U.hint})]})]},U.id)})}),Y.length===0&&s.jsx("p",{role:"status",style:{margin:0,padding:"14px 16px",color:fe("text-2")},children:"No matches"}),x&&s.jsxs("p",{role:"alert",style:{margin:0,padding:"8px 16px",color:fe("error"),fontSize:fe("text-sm")},children:["Recent runs not loaded: ",x]})]})})}const bn="not recorded";function vv(u){return u.cost_usd!==null&&u.cost_usd!==void 0?We(u.cost_usd):u.total_sessions>0&&u.measured_sessions<u.total_sessions?`unpriced (${u.measured_sessions} of ${u.total_sessions} sessions priced)`:"unpriced"}const fj=u=>u.started_at&&u.ended_at?(Date.parse(u.ended_at)-Date.parse(u.started_at))/1e3:null,yv=u=>typeof u=="number"?`${u.toFixed(1)}s`:bn,xv=u=>u?u.replace("T"," ").replace(/\.\d+Z$/,"Z"):bn,dj={[mt.VERIFIED]:"bg-emerald-500/15 text-emerald-700 dark:text-emerald-300 ring-emerald-500/30",[mt.PARTIAL]:"bg-amber-500/15 text-amber-700 dark:text-amber-300 ring-amber-500/30",[mt.FAILED]:"bg-red-500/15 text-red-700 dark:text-red-300 ring-red-500/30",[mt.TAMPERED]:"bg-red-600/20 text-red-700 dark:text-red-300 ring-red-600/50",[mt.VERIFIED_UNCHECKED]:"bg-sky-500/15 text-sky-700 dark:text-sky-300 ring-sky-500/30",[mt.UNVERIFIED]:"bg-amber-500/15 text-amber-700 dark:text-amber-300 ring-amber-500/30",[mt.SPEC_CONFLICT]:"bg-violet-500/15 text-violet-700 dark:text-violet-300 ring-violet-500/30"};function Wo({verdict:u,run:c}){const r=c?$e(c):u??null,o=r?dj[r]??"bg-slate-500/15 text-slate-600 dark:text-slate-300 ring-slate-500/30":"bg-slate-500/15 text-slate-600 dark:text-slate-300 ring-slate-500/30";return s.jsx("span",{"data-testid":"verdict",className:`inline-block rounded px-2 py-0.5 text-xs font-medium ring-1 ${o}`,children:r??"in progress"})}function bv({url:u}){return u?/^https?:\/\//.test(u)?s.jsxs("a",{href:u,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-sky-600 hover:underline dark:text-sky-400",children:["PR ",s.jsx(jg,{size:12})]}):s.jsx("span",{className:"break-all font-mono text-xs",title:"local origin, no web URL",children:u}):s.jsx("span",{className:"text-slate-500",children:"no PR"})}const xg=3e3;function Sv(u,c,r){const[o,d]=N.useState({data:null,error:null});return N.useEffect(()=>{let p=!0,m;d({data:null,error:null});const g=()=>u().then(x=>{p&&(d({data:x,error:null}),r!=null&&r(x)&&(m=setTimeout(g,xg)))},x=>{p&&(d(j=>({data:j.data,error:x.message})),r&&(m=setTimeout(g,xg)))});return g(),()=>{p=!1,clearTimeout(m)}},c),o}const xn=u=>u.status==="running";function jv({run:u}){const[c]=N.useState(()=>({at:Date.now(),s:u.elapsed_s??0})),[,r]=N.useState(0),o=xn(u);N.useEffect(()=>{if(!o)return;const p=setInterval(()=>r(m=>m+1),1e3);return()=>clearInterval(p)},[o]);const d=o?Math.max(u.elapsed_s??0,c.s+(Date.now()-c.at)/1e3):u.elapsed_s??u.wall_s;return s.jsx("span",{"data-testid":"elapsed",children:typeof d=="number"?`${Math.floor(d)}s`:bn})}function hj({onOpen:u}){const[c,r]=N.useState(""),[o,d]=N.useState(""),[p,m]=N.useState(""),{data:g,error:x}=Sv(()=>Yl({verdict:c,repo:o,since:p?`${p}T00:00:00Z`:""}),[c,o,p],y=>y.runs.some(xn)),j=!!(c||o||p),z="rounded border border-slate-300 bg-white px-2 py-2 text-sm md:py-1 dark:border-slate-700 dark:bg-slate-900";return s.jsxs("section",{children:[s.jsx("h1",{className:"mb-4 text-xl font-semibold",children:"Runs"}),s.jsxs("div",{className:"mb-4 grid grid-cols-1 gap-3 text-sm sm:flex sm:flex-wrap sm:items-end",children:[s.jsxs("label",{className:"flex flex-col gap-1",children:["Verdict",s.jsxs("select",{"aria-label":"Verdict",className:z,value:c,onChange:y=>r(y.target.value),children:[s.jsx("option",{value:"",children:"All"}),n1.map(y=>s.jsx("option",{children:y},y))]})]}),s.jsxs("label",{className:"flex flex-col gap-1",children:["Repo",s.jsx("input",{"aria-label":"Repo",className:z,value:o,onChange:y=>d(y.target.value),placeholder:"owner/name"})]}),s.jsxs("label",{className:"flex flex-col gap-1",children:["Since",s.jsx("input",{"aria-label":"Since",type:"date",className:z,value:p,onChange:y=>m(y.target.value)})]})]}),x&&s.jsxs("p",{role:"alert",className:"text-red-600",children:["Could not load runs: ",x]}),!g&&!x&&s.jsx("p",{className:"text-slate-500",children:"Loading runs"}),g&&g.runs.length===0&&(j?s.jsx("p",{children:"No runs match these filters."}):s.jsx(tv,{})),g&&g.runs.length>0&&s.jsx("div",{className:"overflow-x-auto rounded border border-slate-200 dark:border-slate-800",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"bg-slate-100 text-xs uppercase text-slate-500 dark:bg-slate-900",children:s.jsxs("tr",{children:[s.jsx("th",{className:"p-2",children:"Verdict"}),s.jsx("th",{className:"p-2",children:"Run"}),s.jsx("th",{className:"hidden p-2 md:table-cell",children:"Repo"}),s.jsx("th",{className:"hidden p-2 md:table-cell",children:"Started"}),s.jsx("th",{className:"p-2",children:"Progress"}),s.jsx("th",{className:"p-2",children:"Cost"}),s.jsx("th",{className:"p-2",children:"PR"})]})}),s.jsx("tbody",{children:g.runs.map(y=>s.jsxs("tr",{"data-testid":"run-row",className:"border-t border-slate-200 dark:border-slate-800",children:[s.jsx("td",{className:"p-2",children:s.jsx(Wo,{run:y})}),s.jsx("td",{className:"p-2 font-mono text-xs",children:s.jsx("a",{href:`#/runs/${encodeURIComponent(y.source_id)}/${encodeURIComponent(y.run_id)}`,onClick:()=>u==null?void 0:u(y),className:"inline-block break-all py-2 text-sky-600 hover:underline md:py-0 dark:text-sky-400",children:y.run_id})}),s.jsx("td",{className:"hidden p-2 md:table-cell",children:y.origin_repo??bn}),s.jsx("td",{className:"hidden p-2 md:table-cell",children:xv(y.started_at)}),s.jsx("td",{className:"p-2 text-xs","data-testid":"progress",children:xn(y)?s.jsxs(s.Fragment,{children:[y.current_stage??"starting",", ",s.jsx(jv,{run:y}),", ",(y.files_touched??[]).length," files"]}):""}),s.jsx("td",{className:"p-2","data-testid":"cost",children:vv(y)}),s.jsx("td",{className:"p-2",children:s.jsx(bv,{url:y.pr_url})})]},`${y.source_id}/${y.run_id}`))})]})})]})}function Ki({title:u,children:c}){return s.jsxs("div",{className:"rounded border border-slate-200 p-4 dark:border-slate-800",children:[s.jsx("h2",{className:"mb-2 text-sm font-semibold uppercase text-slate-500",children:u}),c]})}function mj({stages:u}){return u.length===0?s.jsx("p",{className:"text-slate-500",children:"No stages ingested for this run."}):s.jsx("ol",{className:"space-y-1 text-sm",children:u.map(c=>s.jsxs("li",{"data-testid":"stage",className:"flex items-center justify-between gap-4",children:[s.jsx("span",{className:"font-medium",children:c.stage}),s.jsx("span",{className:"text-slate-500",children:c.status==="started"?"running":yv(fj(c))})]},c.stage))})}function pj({source:u,run:c,question:r}){const[o,d]=N.useState(""),[p,m]=N.useState(null),g=async()=>{try{const x=await lf(u,c,o);m({ok:!0,text:`Saved to ${x.path}. Resume: ${x.resume}`})}catch(x){m({ok:!1,text:x.message})}};return s.jsxs(Ki,{title:"Blocked: your answer is needed",children:[s.jsx("p",{"data-testid":"blocked-question",className:"mb-2 text-sm",children:r}),s.jsx("textarea",{"data-testid":"answer-input","aria-label":"Answer",maxLength:4e3,value:o,onChange:x=>d(x.target.value),className:"w-full rounded border border-slate-300 p-2 text-sm dark:border-slate-700 dark:bg-slate-900",rows:3}),s.jsx("button",{type:"button","data-testid":"answer-submit",disabled:o.trim()==="",onClick:g,className:"mt-2 min-h-11 rounded bg-sky-600 px-4 py-2 text-sm md:min-h-0 md:px-3 md:py-1 text-white disabled:opacity-50",children:"Submit answer"}),p&&s.jsx("p",{role:p.ok?"status":"alert",className:`mt-2 break-all text-sm ${p.ok?"text-emerald-600":"text-red-600"}`,children:p.text})]})}function gj({source:u,run:c}){const[r,o]=N.useState(!1),[d,p]=N.useState(!1),[m,g]=N.useState(null),x=async()=>{p(!0),g(null);try{await t1(u,c),location.hash="#/runs"}catch(z){g(z.message),p(!1)}},j="min-h-11 rounded px-4 py-2 text-sm md:min-h-0 md:px-3 md:py-1";return s.jsxs(Ki,{title:"Remove run",children:[r?s.jsxs("div",{className:"space-y-2 text-sm",children:[s.jsx("p",{"data-testid":"remove-confirm-text",children:"Permanently delete this run and its events from the local control database? This cannot be undone."}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{type:"button","data-testid":"remove-confirm",disabled:d,onClick:x,className:`${j} bg-red-600 text-white disabled:opacity-50`,children:d?"Removing":"Yes, remove"}),s.jsx("button",{type:"button","data-testid":"remove-cancel",disabled:d,onClick:()=>{o(!1),g(null)},className:`${j} border border-slate-300 dark:border-slate-700`,children:"Cancel"})]})]}):s.jsx("button",{type:"button","data-testid":"remove-run",onClick:()=>o(!0),className:`${j} border border-red-500/50 text-red-600`,children:"Remove"}),m&&s.jsxs("p",{role:"alert","data-testid":"remove-error",className:"mt-2 break-all text-sm text-red-600",children:["Could not remove run: ",m]})]})}function vj({source:u,run:c}){const{data:r,error:o}=Sv(()=>Fi(u,c),[u,c],xn);if(o)return s.jsxs("p",{role:"alert",className:"text-red-600",children:["Could not load run: ",o]});if(!r)return s.jsx("p",{className:"text-slate-500",children:"Loading run"});const d=r;return s.jsxs("section",{className:"space-y-4",children:[s.jsx("a",{href:"#/runs",className:"text-sm text-sky-600 hover:underline dark:text-sky-400",children:"Back to runs"}),s.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[s.jsx("h1",{className:"font-mono text-lg font-semibold",children:d.run_id}),s.jsx(Wo,{run:d}),d.tampered&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-sm text-red-600",children:[s.jsx(Xp,{size:14}),"event log tampered"]}),d.conflict&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-sm text-amber-600",children:[s.jsx(Xp,{size:14}),"conflicting events ingested"]})]}),s.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[s.jsx(Ki,{title:"Summary",children:s.jsxs("dl",{className:"grid grid-cols-[auto_1fr] gap-x-4 gap-y-1 text-sm",children:[s.jsx("dt",{className:"text-slate-500",children:"Repo"}),s.jsx("dd",{children:d.origin_repo??bn}),s.jsx("dt",{className:"text-slate-500",children:"Issue"}),s.jsx("dd",{children:d.issue_ref??bn}),s.jsx("dt",{className:"text-slate-500",children:"Provider"}),s.jsx("dd",{children:d.provider??bn}),s.jsx("dt",{className:"text-slate-500",children:"Model"}),s.jsx("dd",{children:d.model??bn}),s.jsx("dt",{className:"text-slate-500",children:"Started"}),s.jsx("dd",{children:xv(d.started_at)}),xn(d)&&s.jsxs(s.Fragment,{children:[s.jsx("dt",{className:"text-slate-500",children:"Current stage"}),s.jsx("dd",{"data-testid":"current-stage",children:d.current_stage??"starting"})]}),s.jsx("dt",{className:"text-slate-500",children:xn(d)?"Elapsed":"Wall time"}),s.jsx("dd",{children:xn(d)?s.jsx(jv,{run:d}):yv(d.wall_s)}),xn(d)&&s.jsxs(s.Fragment,{children:[s.jsx("dt",{className:"text-slate-500",children:"Files touched"}),s.jsx("dd",{"data-testid":"files-touched",children:(d.files_touched??[]).join(", ")||"none yet"})]}),s.jsx("dt",{className:"text-slate-500",children:"Cost"}),s.jsx("dd",{"data-testid":"cost",children:vv(d)}),s.jsx("dt",{className:"text-slate-500",children:"PR"}),s.jsx("dd",{children:s.jsx(bv,{url:d.pr_url})})]})}),s.jsx(Ki,{title:"Stage timeline",children:s.jsx(mj,{stages:r.stages})})]}),r.blocked_question&&s.jsx(pj,{source:u,run:c,question:r.blocked_question}),s.jsx(Ki,{title:"Receipt",children:s.jsxs("div",{className:"space-y-3 text-sm",children:[r.receipt?s.jsxs("p",{children:["Receipt verdict: ",s.jsx(Wo,{run:{verdict:r.receipt.verdict,tampered:d.tampered,attested:d.attested,sig_checked:d.sig_checked}})," ",s.jsx("span",{className:"ml-2 font-mono text-xs text-slate-500",children:r.receipt.sha256})]}):s.jsx("p",{className:"text-slate-500",children:"No receipt ingested for this run."}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-medium",children:"NOT PROVEN"}),r.not_proven.length===0?s.jsx("p",{className:"text-slate-500",children:"Nothing listed as not proven."}):s.jsx("ul",{className:"list-disc pl-5",children:r.not_proven.map(p=>s.jsx("li",{"data-testid":"not-proven",children:p},p))})]})]})}),s.jsx(gj,{source:u,run:c})]})}const of=s.jsxs(s.Fragment,{children:[s.jsx(Pg,{}),s.jsx(hj,{})]});qe({id:"home",path:"/",title:"Home",component:()=>s.jsx(Mg,{fallback:of})});qe({id:"overview",path:"/overview",title:"Overview",component:()=>s.jsx(Mg,{overview:!0,fallback:of})});qe({id:"new-run",path:"/new",title:"New run",component:()=>s.jsxs("section",{children:[s.jsx("h1",{className:"mb-4 text-xl font-semibold",children:"New run"}),s.jsx(Pg,{})]})});qe({id:"runs",path:"/runs",title:"Runs",component:()=>of});qe({id:"run-detail",path:"/runs/:source/:run",title:"Run",component:({params:u})=>s.jsx(vj,{source:u.source,run:u.run})});qe({id:"live-run",path:"/live/:source/:run",title:"Live run",component:({params:u})=>s.jsx(wg,{source:u.source,run:u.run})});qe({id:"settings-general",path:"/settings/general",title:"General",inSettings:!0,component:ib});rj();function yj(){return s.jsxs(s.Fragment,{children:[s.jsx(vb,{}),s.jsx(oj,{})]})}Zs();Rx.createRoot(document.getElementById("root")).render(s.jsx(yj,{}));
|