@covro/covro 0.12.1-dev.3 → 0.12.1-dev.5
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/README.md +3 -3
- package/README.zh-CN.md +3 -3
- package/dist/cli/service-restart.js +3 -0
- package/dist/cli/service-restart.js.map +2 -2
- package/dist/codex/adapter.js +118 -50
- package/dist/codex/adapter.js.map +2 -2
- package/dist/drizzle/0011_session_loops.sql +23 -0
- package/dist/drizzle/meta/0011_snapshot.json +903 -0
- package/dist/drizzle/meta/_journal.json +7 -0
- package/dist/server/capacity-retry.js +2 -2
- package/dist/server/capacity-retry.js.map +2 -2
- package/dist/server/db/index.js.map +2 -2
- package/dist/server/db/operations.js +2 -1
- package/dist/server/db/operations.js.map +2 -2
- package/dist/server/db/schema.js +26 -0
- package/dist/server/db/schema.js.map +2 -2
- package/dist/server/db/session-loops.js +106 -0
- package/dist/server/db/session-loops.js.map +7 -0
- package/dist/server/global-instructions.js +163 -0
- package/dist/server/global-instructions.js.map +7 -0
- package/dist/server/http.js +36 -0
- package/dist/server/http.js.map +2 -2
- package/dist/server/main.js +5 -1
- package/dist/server/main.js.map +2 -2
- package/dist/server/projects.js +7 -2
- package/dist/server/projects.js.map +2 -2
- package/dist/server/service.js +359 -11
- package/dist/server/service.js.map +2 -2
- package/dist/server/workspaces.js +5 -2
- package/dist/server/workspaces.js.map +2 -2
- package/dist/shared/global-defaults.js +15 -0
- package/dist/shared/global-defaults.js.map +7 -0
- package/dist/shared/global-instructions.js +1 -0
- package/dist/shared/global-instructions.js.map +7 -0
- package/dist/shared/service-restart.js.map +2 -2
- package/dist/shared/session-loop.js +19 -0
- package/dist/shared/session-loop.js.map +7 -0
- package/dist/shared/updates.js.map +1 -1
- package/dist/shared/validation.js +12 -0
- package/dist/shared/validation.js.map +2 -2
- package/dist/updates/manager.js +13 -0
- package/dist/updates/manager.js.map +2 -2
- package/dist/web/assets/{abnfDiagram-WEYOIA3C-DQsYKet8.js → abnfDiagram-WEYOIA3C-DTxKASBq.js} +1 -1
- package/dist/web/assets/{arc-VlQe9nY8.js → arc-CTODTx-T.js} +1 -1
- package/dist/web/assets/{architecture-WOLXFQ4H-COfnx60X.js → architecture-WOLXFQ4H-CgONpBhp.js} +1 -1
- package/dist/web/assets/{architectureDiagram-ZHVYKT53-BM3PfuwK.js → architectureDiagram-ZHVYKT53-DgSVRsho.js} +1 -1
- package/dist/web/assets/{blockDiagram-RJAE7QA3-DqTWM6kN.js → blockDiagram-RJAE7QA3-Dfbyt4Mg.js} +1 -1
- package/dist/web/assets/{c4Diagram-XDPPPE54-DUcArd0S.js → c4Diagram-XDPPPE54-C-up9990.js} +1 -1
- package/dist/web/assets/channel-BQfGy39B.js +1 -0
- package/dist/web/assets/{chunk-2E7WHVMD-41V86oRe.js → chunk-2E7WHVMD-DSzRiVhc.js} +1 -1
- package/dist/web/assets/{chunk-4EMNKR2T-C8Y_cMyg.js → chunk-4EMNKR2T-D2fbv8OX.js} +1 -1
- package/dist/web/assets/{chunk-55XCU76K-CYsd_0sT.js → chunk-55XCU76K-vRMhZxPd.js} +1 -1
- package/dist/web/assets/{chunk-7S6XSTFO-Cb2B-CMV.js → chunk-7S6XSTFO-D8UBIzBE.js} +1 -1
- package/dist/web/assets/{chunk-AQDTSKZB-ufVvE6gn.js → chunk-AQDTSKZB-D8Nv_cUy.js} +1 -1
- package/dist/web/assets/{chunk-DSNLSHJZ-CJnMsRha.js → chunk-DSNLSHJZ-BtS4W02K.js} +1 -1
- package/dist/web/assets/{chunk-HAGFOTED-CEZ2HkCQ.js → chunk-HAGFOTED-B3QtICEI.js} +1 -1
- package/dist/web/assets/{chunk-HNE4Q36P-U7VIDgG4.js → chunk-HNE4Q36P-DQyVLAvz.js} +1 -1
- package/dist/web/assets/{chunk-NQOKRVIF-BNgMP6UE.js → chunk-NQOKRVIF-cTkWOiO_.js} +1 -1
- package/dist/web/assets/{chunk-UHW7PFBP-BFX8d2X4.js → chunk-UHW7PFBP-3QgJspBh.js} +1 -1
- package/dist/web/assets/{chunk-VQ5W62QI-DV7eTrZO.js → chunk-VQ5W62QI-DrBSIHiT.js} +1 -1
- package/dist/web/assets/{chunk-WQQL4CDK-DmmmzVPm.js → chunk-WQQL4CDK--6NH6pg3.js} +1 -1
- package/dist/web/assets/{chunk-XXDRQBXY-CsVGtgLs.js → chunk-XXDRQBXY-DWc3R84b.js} +1 -1
- package/dist/web/assets/{chunk-YZO67HFG-DZYFEtsm.js → chunk-YZO67HFG-BfOeVuzg.js} +1 -1
- package/dist/web/assets/{chunk-ZAUX2LTX-8ujposLA.js → chunk-ZAUX2LTX-DMNoglbg.js} +1 -1
- package/dist/web/assets/{chunk-ZCHMQSOR-DsMvMSuv.js → chunk-ZCHMQSOR-D_H6diqO.js} +1 -1
- package/dist/web/assets/{classDiagram-v2-4MYWR3UA-DtofRzci.js → classDiagram-v2-4MYWR3UA-PbGoD8mz.js} +1 -1
- package/dist/web/assets/{cose-bilkent-JH36ORCC-DAi9zRPd.js → cose-bilkent-JH36ORCC-CtZ8jcqm.js} +1 -1
- package/dist/web/assets/{cynefin-EF2NZ3EQ-j5AvO_oi.js → cynefin-EF2NZ3EQ-BhXV3WgQ.js} +1 -1
- package/dist/web/assets/{cynefinDiagram-WF24UDRP-C8bDwkfG.js → cynefinDiagram-WF24UDRP-BlMHZ_8r.js} +1 -1
- package/dist/web/assets/{dagre-NK4GIZVX-wPzVMiYS.js → dagre-NK4GIZVX-CV_LGc9d.js} +1 -1
- package/dist/web/assets/{diagram-CBK3MWTC-sAvr2ImI.js → diagram-CBK3MWTC-B9wRlOFW.js} +1 -1
- package/dist/web/assets/{diagram-I5XIIV2D-BT7O2_ET.js → diagram-I5XIIV2D-BFCMVWRB.js} +1 -1
- package/dist/web/assets/{diagram-ODIL2UCW-CQ98Q80_.js → diagram-ODIL2UCW-FIQ9yBpv.js} +1 -1
- package/dist/web/assets/{diagram-PFBEJUXE-B0Qf5hE_.js → diagram-PFBEJUXE-DvyOG5EC.js} +1 -1
- package/dist/web/assets/{diagram-RJA3I4VV-BSdtMyBv.js → diagram-RJA3I4VV-C05KmXAX.js} +1 -1
- package/dist/web/assets/{diagram-TYUNFSNR-CRgMaZKH.js → diagram-TYUNFSNR-CFLofPiV.js} +1 -1
- package/dist/web/assets/{dist-Bbbye9EV.js → dist-BEzdpFTD.js} +1 -1
- package/dist/web/assets/{ebnfDiagram-V4P3TTPT-TwWMSpFf.js → ebnfDiagram-V4P3TTPT-hnUY3Tq8.js} +1 -1
- package/dist/web/assets/{elk-QONTBCTQ-DlSVchXP.js → elk-QONTBCTQ-BB0EcC-Y.js} +1 -1
- package/dist/web/assets/{erDiagram-KYQIGQAA-CYcedQch.js → erDiagram-KYQIGQAA-Ej61ngkc.js} +1 -1
- package/dist/web/assets/{eventmodeling-K75KTNOO-B8LTiMjE.js → eventmodeling-K75KTNOO-Vxhz1RQB.js} +1 -1
- package/dist/web/assets/flowDiagram-IUGLLWBU-C5L8epB5.js +1 -0
- package/dist/web/assets/{ganttDiagram-R7GPNTJY-BHNCmE7z.js → ganttDiagram-R7GPNTJY-DGK3Ln6v.js} +1 -1
- package/dist/web/assets/{gitGraph-VSP46ZUC-Butk8zz_.js → gitGraph-VSP46ZUC-BaXG5U53.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-PDYL7XHY-XsYlJABx.js → gitGraphDiagram-PDYL7XHY-DjyRn2AH.js} +1 -1
- package/dist/web/assets/index-D4z03hlo.css +1 -0
- package/dist/web/assets/index-DXDRmiiJ.js +166 -0
- package/dist/web/assets/{info-OHQRW6UA-CCnwkK2E.js → info-OHQRW6UA-B_k1FX8t.js} +1 -1
- package/dist/web/assets/{infoDiagram-MVDRKAX5-BmfNp9Fy.js → infoDiagram-MVDRKAX5-CJIadX0G.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-HPEHV2GE-DQlA_Ssv.js → ishikawaDiagram-HPEHV2GE-B5zXsPdq.js} +1 -1
- package/dist/web/assets/{journeyDiagram-BOSHW7O7-DGju2nE2.js → journeyDiagram-BOSHW7O7-mEN9XVOh.js} +1 -1
- package/dist/web/assets/{kanban-definition-FNSA4HC5-Cxb-ys0b.js → kanban-definition-FNSA4HC5-B0KZnPT5.js} +1 -1
- package/dist/web/assets/{line-fOz-IU6m.js → line-C2aH8HGR.js} +1 -1
- package/dist/web/assets/{linear-ksw5xxqw.js → linear-I4EwVf2a.js} +1 -1
- package/dist/web/assets/{mermaid-parser.core-Dv9_nHcv.js → mermaid-parser.core-BRLVs0ga.js} +3 -3
- package/dist/web/assets/{mermaid.core-Cpmnbntb.js → mermaid.core-BaUEqwlC.js} +4 -4
- package/dist/web/assets/{mindmap-definition-6OY57UG3-Dn34_p7e.js → mindmap-definition-6OY57UG3-Dkp-oAso.js} +1 -1
- package/dist/web/assets/{packet-JDAUHWVQ-BK3pKCKi.js → packet-JDAUHWVQ-XjJRttCs.js} +1 -1
- package/dist/web/assets/{pegDiagram-ECIUJNBX-BhqRkTE3.js → pegDiagram-ECIUJNBX-D0G0x1wn.js} +1 -1
- package/dist/web/assets/{pie-XZMESJXO-BCD6mU3p.js → pie-XZMESJXO-CkU67f-9.js} +1 -1
- package/dist/web/assets/{pieDiagram-GNMPY74T-Crcuq3YY.js → pieDiagram-GNMPY74T-9oe-O71I.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-D57K4MC3-jWKlYsz5.js → quadrantDiagram-D57K4MC3-CHnQ1h26.js} +1 -1
- package/dist/web/assets/{radar-ABXABTNO-BGcT2ufI.js → radar-ABXABTNO-BQK2VVvN.js} +1 -1
- package/dist/web/assets/{railroad-I3PHUGI6-D5od7AIE.js → railroad-I3PHUGI6-BsWdf7Sd.js} +1 -1
- package/dist/web/assets/{railroad-abnf-LNEFI6M7-BU1buvyM.js → railroad-abnf-LNEFI6M7-mEUn8w5B.js} +1 -1
- package/dist/web/assets/{railroad-ebnf-DWYD2UWJ-DrXblN2T.js → railroad-ebnf-DWYD2UWJ-Cgim9iJs.js} +1 -1
- package/dist/web/assets/{railroad-peg-JR7BVNR7-090xFfnR.js → railroad-peg-JR7BVNR7-Djn09B6i.js} +1 -1
- package/dist/web/assets/{railroadDiagram-Y72NRBL7-tHU4thNp.js → railroadDiagram-Y72NRBL7-B3hygTDm.js} +1 -1
- package/dist/web/assets/{requirementDiagram-EQYSW5RA-CaYuYaTH.js → requirementDiagram-EQYSW5RA-B6RNUNeB.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-SY24JHO5-BNonynH1.js → sankeyDiagram-SY24JHO5-CbXK1FL0.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-BLEHNHQU-JLE01-wS.js → sequenceDiagram-BLEHNHQU-DD-HRRNG.js} +1 -1
- package/dist/web/assets/{src-BLWh1gR8.js → src-5kIzPkDL.js} +1 -1
- package/dist/web/assets/{stateDiagram-v2-A6IESKWZ-C5pioDfg.js → stateDiagram-v2-A6IESKWZ-C9koceXb.js} +1 -1
- package/dist/web/assets/{swimlanes-B3ENRKFQ-CjJ96DAP.js → swimlanes-B3ENRKFQ-rIgflVZK.js} +1 -1
- package/dist/web/assets/swimlanesDiagram-AYQRV4AK-Cyq4U5Ci.js +8 -0
- package/dist/web/assets/{timeline-definition-JXYKGLGB-BYJeHtdq.js → timeline-definition-JXYKGLGB-ByxHhQH7.js} +1 -1
- package/dist/web/assets/{treeView-D4JQ5SDB-DnPIIuA8.js → treeView-D4JQ5SDB-CSOfJbOb.js} +1 -1
- package/dist/web/assets/{treemap-SAJKECNS-C4uEQfow.js → treemap-SAJKECNS-cS9CRCSQ.js} +1 -1
- package/dist/web/assets/{usecaseDiagram-WPOLBNNX-CkLdmn6d.js → usecaseDiagram-WPOLBNNX-DUKj_IMB.js} +1 -1
- package/dist/web/assets/{vennDiagram-Q3Y3IDCW-BfHA-VeT.js → vennDiagram-Q3Y3IDCW-ChDogeim.js} +1 -1
- package/dist/web/assets/{wardley-7MLQ67FV-B2CcGrc4.js → wardley-7MLQ67FV-nUCK7W1w.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-IVAIDKWA-jX9Gt6I0.js → wardleyDiagram-IVAIDKWA-BTlZCUjg.js} +1 -1
- package/dist/web/assets/{xychartDiagram-4URNHDU4-CO9uJWxN.js → xychartDiagram-4URNHDU4-BR1T857u.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +4 -4
- package/dist/web/assets/channel-R-Dw14LI.js +0 -1
- package/dist/web/assets/flowDiagram-IUGLLWBU-CU8Usenc.js +0 -1
- package/dist/web/assets/index-BVyPXd6G.js +0 -166
- package/dist/web/assets/index-DpicMWgK.css +0 -1
- package/dist/web/assets/swimlanesDiagram-AYQRV4AK-UUYthQAi.js +0 -8
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-Cpmnbntb.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-BLWh1gR8.js","assets/chunk-DSNLSHJZ-CJnMsRha.js","assets/chunk-7S6XSTFO-Cb2B-CMV.js","assets/dist-Bbbye9EV.js","assets/chunk-YZO67HFG-DZYFEtsm.js","assets/chunk-AQDTSKZB-ufVvE6gn.js","assets/chunk-DUW6YSOI-Dgx8z5s3.js","assets/chunk-UHW7PFBP-BFX8d2X4.js","assets/chunk-HAGFOTED-CEZ2HkCQ.js","assets/chunk-J5ZVWO5B-oDCd-gWO.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-ZAUX2LTX-8ujposLA.js","assets/chunk-WQQL4CDK-DmmmzVPm.js","assets/line-fOz-IU6m.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/chunk-HNE4Q36P-U7VIDgG4.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var d=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ee=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function te(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,ee)}catch(e){ee(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ne(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else te(ne.bind(null,e))}var L={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ne,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=te,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),m=o(((e,t)=>{t.exports=p()})),h=o((e=>{var t=f();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),g=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=o((e=>{var t=m(),n=f(),r=g();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function p(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&p(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function h(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=h(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function w(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),k=Symbol.for(`react.transitional.element`),A=Symbol.for(`react.portal`),j=Symbol.for(`react.fragment`),M=Symbol.for(`react.strict_mode`),N=Symbol.for(`react.profiler`),P=Symbol.for(`react.consumer`),F=Symbol.for(`react.context`),I=Symbol.for(`react.forward_ref`),ee=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),L=Symbol.for(`react.lazy`),re=Symbol.for(`react.activity`),ie=Symbol.for(`react.legacy_hidden`),ae=Symbol.for(`react.memo_cache_sentinel`),oe=Symbol.for(`react.view_transition`),se=Symbol.for(`react.recoverable`),ce=Symbol.iterator;function le(e){return typeof e!=`object`||!e?null:(e=ce&&e[ce]||e[`@@iterator`],typeof e==`function`?e:null)}var ue=Symbol.for(`react.client.reference`);function R(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case j:return`Fragment`;case N:return`Profiler`;case M:return`StrictMode`;case ee:return`Suspense`;case te:return`SuspenseList`;case re:return`Activity`;case oe:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case A:return`Portal`;case F:return e.displayName||`Context`;case P:return(e._context.displayName||`Context`)+`.Consumer`;case I:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?R(e.type)||`Memo`:t;case L:t=e._payload,e=e._init;try{return R(e(t))}catch{}}return null}var z=Array.isArray,B=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},pe=[],me=-1;function he(e){return{current:e}}function ge(e){0>me||(e.current=pe[me],pe[me]=null,me--)}function V(e,t){me++,pe[me]=e.current,e.current=t}var _e=he(null),ve=he(null),ye=he(null),be=he(null);function xe(e,t){switch(V(ye,t),V(ve,e),V(_e,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?fp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=fp(t),e=pp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ge(_e),V(_e,e)}function Se(){ge(_e),ge(ve),ge(ye)}function Ce(e){var t=e.memoizedState;t!==null&&(ch._currentValue=t.memoizedState,V(be,e)),t=_e.current;var n=pp(t,e.type);t!==n&&(V(ve,e),V(_e,n))}function we(e){ve.current===e&&(ge(_e),ge(ve)),be.current===e&&(ge(be),ch._currentValue=fe)}var Te,Ee;function De(e){if(Te===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Te=t&&t[1]||``,Ee=-1<e.stack.indexOf(`
|
|
3
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
-
`+Te+e+Ee}var Oe=!1;function ke(e,t){if(!e||Oe)return``;Oe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
-
`),l=s.split(`
|
|
6
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Oe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?De(n):``}function Ae(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De(`Lazy`);case 13:return e.child!==t&&t!==null?De(`Suspense Fallback`):De(`Suspense`);case 19:return De(`SuspenseList`);case 0:case 15:return ke(e.type,!1);case 11:return ke(e.type.render,!1);case 1:return ke(e.type,!0);case 31:return De(`Activity`);case 30:return De(`ViewTransition`);default:return``}}function je(e){try{var t=``,n=null;do t+=Ae(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
-
Error generating stack: `+e.message+`
|
|
9
|
-
`+e.stack}}var Me=Object.prototype.hasOwnProperty,Ne=t.unstable_scheduleCallback,Pe=t.unstable_cancelCallback,Fe=t.unstable_shouldYield,Ie=t.unstable_requestPaint,Le=t.unstable_now,Re=t.unstable_getCurrentPriorityLevel,ze=t.unstable_ImmediatePriority,Be=t.unstable_UserBlockingPriority,Ve=t.unstable_NormalPriority,He=t.unstable_LowPriority,Ue=t.unstable_IdlePriority,We=t.log,Ge=t.unstable_setDisableYieldValue,Ke=null,qe=null;function Je(e){if(typeof We==`function`&&Ge(e),qe&&typeof qe.setStrictMode==`function`)try{qe.setStrictMode(Ke,e)}catch{}}var Ye=Math.clz32?Math.clz32:Qe,Xe=Math.log,Ze=Math.LN2;function Qe(e){return e>>>=0,e===0?32:31-(Xe(e)/Ze|0)|0}var $e=256,et=262144,tt=4194304;function nt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=nt(n))):i=nt(o):i=nt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=nt(n))):i=nt(o)):i=nt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function it(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function at(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ye(n),i=1<<r;t|=e[r],n&=~i}return t}function ot(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function st(){var e=tt;return tt<<=1,!(tt&62914560)&&(tt=4194304),e}function ct(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ut(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ye(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&dt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function dt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ye(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ft(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ye(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function pt(e,t){var n=t&-t;return n=n&42?1:mt(n),(n&(e.suspendedLanes|t))===0?n:0}function mt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ht(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function gt(){var e=de.p;return e===0?(e=window.event,e===void 0?32:wh(e.type)):e}function _t(e,t){var n=de.p;try{return de.p=e,t()}finally{de.p=n}}var H=Math.random().toString(36).slice(2),vt=`__reactFiber$`+H,yt=`__reactProps$`+H,bt=`__reactContainer$`+H,xt=`__reactEvents$`+H,St=`__reactListeners$`+H,Ct=`__reactHandles$`+H,U=`__reactResources$`+H,wt=`__reactMarker$`+H,Tt=`__reactLoad$`+H;function Et(e){delete e[vt],delete e[yt],delete e[St],delete e[Ct]}function Dt(e){var t;if(t=e[vt])return t;for(var n=e.parentNode;n;){if(t=n[bt]||n[vt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pm(e);e!==null;){if(n=e[vt])return n;e=pm(e)}return t}e=n,n=e.parentNode}return null}function Ot(e){if(e=e[vt]||e[bt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function kt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function At(e){var t=e[U];return t||=e[U]={hoistableStyles:new Map,hoistableScripts:new Map},t}function jt(e){e[wt]=!0}function Mt(e){e[Tt]=void 0}var Nt=new Set,Pt={};function Ft(e,t){It(e,t),It(e+`Capture`,t)}function It(e,t){for(Pt[e]=t,e=0;e<t.length;e++)Nt.add(t[e])}var Lt=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]*$`),Rt={},zt={};function Bt(e){return Me.call(zt,e)?!0:Me.call(Rt,e)?!1:Lt.test(e)?zt[e]=!0:(Rt[e]=!0,!1)}var Vt=!1;function Ht(){var e=Vt;return Vt=!1,e}function Ut(e,t,n){if(Bt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Wt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Gt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Kt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function qt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Jt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yt(e){if(!e._valueTracker){var t=qt(e)?`checked`:`value`;e._valueTracker=Jt(e,t,``+e[t])}}function Xt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=qt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Zt=/[\n"\\]/g;function Qt(e){return e.replace(Zt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function $t(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Kt(t)):e.value!==``+Kt(t)&&(e.value=``+Kt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):tn(e,Kt(n)):o===`number`&&e.value==t?tn(e,Kt(e.value)):tn(e,Kt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Kt(s):e.removeAttribute(`name`)}function en(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Yt(e);return}n=n==null?``:``+Kt(n),t=t==null?n:``+Kt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Yt(e)}function tn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function nn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Kt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function rn(e,t,n){t!=null&&(t=``+Kt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Kt(n)}function an(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(z(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Kt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Yt(e)}function on(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var sn=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 cn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||sn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function ln(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Vt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(cn(e,a,r),Vt=!0)}else for(var o in t)t.hasOwnProperty(o)&&cn(e,o,t[o])}function un(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var dn=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`]]),fn=/^[\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 pn(e){return fn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function mn(){}var hn=null;function gn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _n=null,vn=null;function yn(e){var t=Ot(e);if(t&&(e=t.stateNode)){var n=e[yt]||null;a:switch(e=t.stateNode,t.type){case`input`:if($t(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Qt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[yt]||null;if(!a)throw Error(i(90));$t(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Xt(r)}break a;case`textarea`:rn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&nn(e,!!n.multiple,t,!1)}}}var bn=!1;function xn(e,t,n){if(bn)return e(t,n);bn=!0;try{return e(t)}finally{if(bn=!1,(_n!==null||vn!==null)&&(Rd(),_n&&(t=_n,e=vn,vn=_n=null,yn(t),e)))for(t=0;t<e.length;t++)yn(e[t])}}function Sn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[yt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Cn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,wn=!1;if(Cn)try{var Tn={};Object.defineProperty(Tn,"passive",{get:function(){wn=!0}}),window.addEventListener(`test`,Tn,Tn),window.removeEventListener(`test`,Tn,Tn)}catch{wn=!1}var En=null,Dn=null,On=null;function kn(){if(On)return On;var e,t=Dn,n=t.length,r,i=`value`in En?En.value:En.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return On=i.slice(e,1<r?1-r:void 0)}function An(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jn(){return!0}function Mn(){return!1}function Nn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?jn:Mn,this.isPropagationStopped=Mn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=jn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=jn)},persist:function(){},isPersistent:jn}),t}var Pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fn=Nn(Pn),In=D({},Pn,{view:0,detail:0}),Ln=Nn(In),Rn,zn,Bn,Vn=D({},In,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Bn&&(Bn&&e.type===`mousemove`?(Rn=e.screenX-Bn.screenX,zn=e.screenY-Bn.screenY):zn=Rn=0,Bn=e),Rn)},movementY:function(e){return`movementY`in e?e.movementY:zn}}),Hn=Nn(Vn),Un=Nn(D({},Vn,{dataTransfer:0})),Wn=Nn(D({},In,{relatedTarget:0})),Gn=Nn(D({},Pn,{animationName:0,elapsedTime:0,pseudoElement:0})),Kn=Nn(D({},Pn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),qn=Nn(D({},Pn,{data:0})),Jn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Yn={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`},Xn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Zn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xn[e])?!!t[e]:!1}function Qn(){return Zn}var $n=Nn(D({},In,{key:function(e){if(e.key){var t=Jn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=An(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Yn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qn,charCode:function(e){return e.type===`keypress`?An(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?An(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),er=Nn(D({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),tr=Nn(D({},Pn,{submitter:0})),nr=Nn(D({},In,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qn})),rr=Nn(D({},Pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),ir=Nn(D({},Vn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),ar=Nn(D({},Pn,{newState:0,oldState:0,source:0})),or=[9,13,27,32],sr=Cn&&`CompositionEvent`in window,cr=null;Cn&&`documentMode`in document&&(cr=document.documentMode);var lr=Cn&&`TextEvent`in window&&!cr,ur=Cn&&(!sr||cr&&8<cr&&11>=cr),dr=` `,fr=!1;function W(e,t){switch(e){case`keyup`:return or.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function pr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var mr=!1;function hr(e,t){switch(e){case`compositionend`:return pr(t);case`keypress`:return t.which===32?(fr=!0,dr):null;case`textInput`:return e=t.data,e===dr&&fr?null:e;default:return null}}function gr(e,t){if(mr)return e===`compositionend`||!sr&&W(e,t)?(e=kn(),On=Dn=En=null,mr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return ur&&t.locale!==`ko`?null:t.data;default:return null}}var _r={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 vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!_r[e.type]:t===`textarea`}function yr(e,t,n,r){_n?vn?vn.push(r):vn=[r]:_n=r,t=Yf(t,`onChange`),0<t.length&&(n=new Fn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var br=null,xr=null;function Sr(e){Vf(e,0)}function Cr(e){if(Xt(kt(e)))return e}function wr(e,t){if(e===`change`)return t}var Tr=!1;if(Cn){var Er;if(Cn){var Dr=`oninput`in document;if(!Dr){var Or=document.createElement(`div`);Or.setAttribute(`oninput`,`return;`),Dr=typeof Or.oninput==`function`}Er=Dr}else Er=!1;Tr=Er&&(!document.documentMode||9<document.documentMode)}function kr(){br&&(br.detachEvent(`onpropertychange`,Ar),xr=br=null)}function Ar(e){if(e.propertyName===`value`&&Cr(xr)){var t=[];yr(t,xr,e,gn(e)),xn(Sr,t)}}function jr(e,t,n){e===`focusin`?(kr(),br=t,xr=n,br.attachEvent(`onpropertychange`,Ar)):e===`focusout`&&kr()}function Mr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Cr(xr)}function Nr(e,t){if(e===`click`)return Cr(t)}function Pr(e,t){if(e===`input`||e===`change`)return Cr(t)}function Fr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Ir=typeof Object.is==`function`?Object.is:Fr;function Lr(e,t){if(Ir(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Me.call(t,i)||!Ir(e[i],t[i]))return!1}return!0}function Rr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function zr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Br(e,t){var n=zr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=zr(n)}}function Vr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rr(e.document)}return t}function Ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Wr=Cn&&`documentMode`in document&&11>=document.documentMode,Gr=null,Kr=null,qr=null,Jr=!1;function Yr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jr||Gr==null||Gr!==Rr(r)||(r=Gr,`selectionStart`in r&&Ur(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qr&&Lr(qr,r)||(qr=r,r=Yf(Kr,`onSelect`),0<r.length&&(t=new Fn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Gr)))}function Xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Zr={animationend:Xr(`Animation`,`AnimationEnd`),animationiteration:Xr(`Animation`,`AnimationIteration`),animationstart:Xr(`Animation`,`AnimationStart`),transitionrun:Xr(`Transition`,`TransitionRun`),transitionstart:Xr(`Transition`,`TransitionStart`),transitioncancel:Xr(`Transition`,`TransitionCancel`),transitionend:Xr(`Transition`,`TransitionEnd`)},Qr={},$r={};Cn&&($r=document.createElement(`div`).style,`AnimationEvent`in window||(delete Zr.animationend.animation,delete Zr.animationiteration.animation,delete Zr.animationstart.animation),`TransitionEvent`in window||delete Zr.transitionend.transition);function ei(e){if(Qr[e])return Qr[e];if(!Zr[e])return e;var t=Zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $r)return Qr[e]=t[n];return e}var ti=ei(`animationend`),ni=ei(`animationiteration`),ri=ei(`animationstart`),ii=ei(`transitionrun`),ai=ei(`transitionstart`),oi=ei(`transitioncancel`),si=ei(`transitionend`),ci=new Map,li=`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(` `);li.push(`scrollEnd`);function ui(e,t){ci.set(e,t),Ft(t,[e])}var di=0;function fi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=yd.identifierPrefix;var n=di++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function pi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Dd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function mi(e,t){return e=pi(e),t=pi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var hi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},gi=[],_i=0,vi=0;function yi(){for(var e=_i,t=vi=_i=0;t<e;){var n=gi[t];gi[t++]=null;var r=gi[t];gi[t++]=null;var i=gi[t];gi[t++]=null;var a=gi[t];if(gi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Ci(n,i,a)}}function bi(e,t,n,r){gi[_i++]=e,gi[_i++]=t,gi[_i++]=n,gi[_i++]=r,vi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function xi(e,t,n,r){return bi(e,t,n,r),wi(e)}function Si(e,t){return bi(e,null,null,t),wi(e)}function Ci(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ye(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function wi(e){if(50<Od)throw Od=0,kd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ti={};function Ei(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Di(e,t,n,r){return new Ei(e,t,n,r)}function Oi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ki(e,t){var n=e.alternate;return n===null?(n=Di(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ai(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ji(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Oi(r)&&(s=1);else if(typeof r==`string`)s=Jm(e,n,_e.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case re:return e=Di(31,n,t,a),e.elementType=re,e.lanes=o,e;case j:return Mi(n.children,a,o,t);case M:s=8,a|=24;break;case N:return e=Di(12,n,t,a|2),e.elementType=N,e.lanes=o,e;case ee:return e=Di(13,n,t,a),e.elementType=ee,e.lanes=o,e;case te:return e=Di(19,n,t,a),e.elementType=te,e.lanes=o,e;case ie:case oe:return e=a|32,e=Di(30,n,t,e),e.elementType=oe,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case F:s=10;break a;case P:s=9;break a;case I:s=11;break a;case ne:s=14;break a;case L:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Di(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Mi(e,t,n,r){return e=Di(7,e,r,t),e.lanes=n,e}function Ni(e,t,n){return e=Di(6,e,null,t),e.lanes=n,e}function Pi(e){var t=Di(18,null,null,0);return t.stateNode=e,t}function Fi(e,t,n){return t=Di(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ii=new WeakMap;function Li(e,t){if(typeof e==`object`&&e){var n=Ii.get(e);return n===void 0?(t={value:e,source:t,stack:je(t)},Ii.set(e,t),t):n}return{value:e,source:t,stack:je(t)}}var Ri=[],zi=0,Bi=null,Vi=0,G=[],Hi=0,Ui=null,Wi=1,Gi=``;function Ki(e,t){Ri[zi++]=Vi,Ri[zi++]=Bi,Bi=e,Vi=t}function qi(e,t,n){G[Hi++]=Wi,G[Hi++]=Gi,G[Hi++]=Ui,Ui=e;var r=Wi;e=Gi;var i=32-Ye(r)-1;r&=~(1<<i),n+=1;var a=32-Ye(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Wi=1<<32-Ye(t)+i|n<<i|r,Gi=a+e}else Wi=1<<a|n<<i|r,Gi=e}function Ji(e){e.return!==null&&(Ki(e,1),qi(e,1,0))}function K(e){for(;e===Bi;)Bi=Ri[--zi],Ri[zi]=null,Vi=Ri[--zi],Ri[zi]=null;for(;e===Ui;)Ui=G[--Hi],G[Hi]=null,Gi=G[--Hi],G[Hi]=null,Wi=G[--Hi],G[Hi]=null}function Yi(e,t){G[Hi++]=Wi,G[Hi++]=Gi,G[Hi++]=Ui,Wi=t.id,Gi=t.overflow,Ui=e}var Xi=null,Zi=null,Qi=!1,$i=null,ea=!1,ta=Error(i(519));function na(e){throw ca(Li(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ta}function ra(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[vt]=e,t[yt]=r,n){case`dialog`:Hf(`cancel`,t),Hf(`close`,t);break;case`iframe`:case`object`:case`embed`:Hf(`load`,t);break;case`video`:case`audio`:for(n=0;n<zf.length;n++)Hf(zf[n],t);break;case`source`:Hf(`error`,t);break;case`img`:case`image`:case`link`:Hf(`error`,t),Hf(`load`,t);break;case`details`:Hf(`toggle`,t);break;case`input`:Hf(`invalid`,t),en(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Hf(`invalid`,t);break;case`textarea`:Hf(`invalid`,t),an(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||tp(t.textContent,n)?(r.popover!=null&&(Hf(`beforetoggle`,t),Hf(`toggle`,t)),r.onScroll!=null&&Hf(`scroll`,t),r.onScrollEnd!=null&&Hf(`scrollend`,t),r.onClick!=null&&(t.onclick=mn),t=!0):t=!1,t||na(e,!0)}function ia(e){for(Xi=e.return;Xi;)switch(Xi.tag){case 5:case 31:case 13:ea=!1;return;case 27:case 3:ea=!0;return;default:Xi=Xi.return}}function aa(e){if(e!==Xi)return!1;if(!Qi)return ia(e),Qi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||hp(e.type,e.memoizedProps)),n=!n),n&&Zi&&na(e),ia(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Zi=fm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Zi=fm(e)}else t===27?(t=Zi,wp(e.type)?(e=dm,dm=null,Zi=e):Zi=t):Zi=Xi?um(e.stateNode.nextSibling):null;return!0}function oa(){Zi=Xi=null,Qi=!1}function sa(){var e=$i;return e!==null&&(dd===null?dd=e:dd.push.apply(dd,e),$i=null),e}function ca(e){$i===null?$i=[e]:$i.push(e)}var la=he(null),ua=null,da=null;function fa(e,t,n){V(la,t._currentValue),t._currentValue=n}function pa(e){e._currentValue=la.current,ge(la)}function ma(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ha(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ma(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ma(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ma(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ga(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Ir(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===be.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ch]:e.push(ch))}a=a.return}return e!==null&&ha(t,e,n,r),t.flags|=262144,e!==null}function q(e){for(e=e.firstContext;e!==null;){if(!Ir(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){ua=e,da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function J(e){return Y(ua,e)}function va(e,t){return ua===null&&_a(e),Y(e,t)}function Y(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},da===null){if(e===null)throw Error(i(308));da=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else da=da.next=t;return n}var ya=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ba=t.unstable_scheduleCallback,xa=t.unstable_NormalPriority,Sa={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ca(){return{controller:new ya,data:new Map,refCount:0}}function wa(e){e.refCount--,e.refCount===0&&ba(xa,function(){e.controller.abort()})}function Ta(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Ea=null;function Da(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Oa=null,ka=0,Aa=0,ja=null;function Ma(e,t){if(Oa===null){var n=Oa=[];ka=0,Aa=Pf(),ja={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ka++,t.then(Na,Na),t}function Na(){if(--ka===0&&(Ea=null,Oa!==null)){ja!==null&&(ja.status=`fulfilled`);var e=Oa;Oa=null,Aa=0,ja=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Pa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Fa=B.S;B.S=function(e,t){if(md=Le(),typeof t==`object`&&t&&typeof t.then==`function`&&Ma(e,t),Ea!==null)for(var n=bf;n!==null;)Ta(n,Ea),n=n.next;if(n=e.types,n!==null){for(var r=bf;r!==null;)Ta(r,n),r=r.next;if(Aa!==0){r=Ea,r===null&&(r=Ea=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Fa!==null&&Fa(e,t)};var Ia=he(null);function La(){var e=Ia.current;return e===null?Yu.pooledCache:e}function Ra(e,t){t===null?V(Ia,Ia.current):V(Ia,t.pool)}function za(){var e=La();return e===null?null:{parent:Sa._currentValue,pool:e}}var Ba=Error(i(460)),Va=Error(i(474)),Ha=Error(i(542)),Ua={then:function(){}};function Wa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ga(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(mn,mn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ya(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(mn,mn);else{if(e=Yu,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ya(e),e}throw qa=t,Ba}}function Ka(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(qa=e,Ba):e}}var qa=null;function Ja(){if(qa===null)throw Error(i(459));var e=qa;return qa=null,e}function Ya(e){if(e===Ba||e===Ha)throw Error(i(483))}var Xa=null,Za=0;function Qa(e){var t=Za;return Za+=1,Xa===null&&(Xa=[]),Ga(Xa,e,t)}function $a(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function eo(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function to(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ki(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Ni(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===j?(e=d(e,t,n.props.children,r,n.key),$a(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===L&&Ka(i)===t.type)?(t=a(t,n.props),$a(t,n),t.return=e,t):(t=ji(n.type,n.key,n.props,null,e.mode,r),$a(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Fi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Mi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Ni(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=ji(t.type,t.key,t.props,null,e.mode,n),$a(n,t),n.return=e,n;case A:return t=Fi(t,e.mode,n),t.return=e,t;case L:return t=Ka(t),f(e,t,n)}if(z(t)||le(t))return t=Mi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Qa(t),n);if(t.$$typeof===F)return f(e,va(e,t),n);eo(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case L:return n=Ka(n),p(e,t,n,r)}if(z(n)||le(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Qa(n),r);if(n.$$typeof===F)return p(e,t,va(e,n),r);eo(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case L:return r=Ka(r),m(e,t,n,r,i)}if(z(r)||le(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Qa(r),i);if(r.$$typeof===F)return m(e,t,n,va(t,r),i);eo(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Qi&&Ki(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Qi&&Ki(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Qi&&Ki(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Qi&&Ki(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Qi&&Ki(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Qi&&Ki(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===j&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===j){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),$a(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===L&&Ka(l)===r.type){n(e,r.sibling),c=a(r,o.props),$a(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=Mi(o.props.children,e.mode,c,o.key),$a(c,o),c.return=e,e=c):(c=ji(o.type,o.key,o.props,null,e.mode,c),$a(c,o),c.return=e,e=c)}return s(e);case A:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Fi(o,e.mode,c),c.return=e,e=c}return s(e);case L:return o=Ka(o),_(e,r,o,c)}if(z(o))return h(e,r,o,c);if(le(o)){if(l=le(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,Qa(o),c);if(o.$$typeof===F)return _(e,r,va(e,o),c);eo(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Ni(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Za=0;var i=_(e,t,n,r);return Xa=null,i}catch(t){if(t===Ba||t===Ha)throw t;var a=Di(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var no=to(!0),ro=to(!1),io=!1;function ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function so(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function co(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ju&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=wi(e),Ci(e,null,n),t}return bi(e,r,t,n),wi(e)}function lo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}function uo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var fo=!1;function po(){if(fo){var e=ja;if(e!==null)throw e}}function mo(e,t,n,r){fo=!1;var i=e.updateQueue;io=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Zu&f)===f:(r&f)===f){f!==0&&f===Aa&&(fo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:io=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ad|=o,e.lanes=o,e.memoizedState=d}}function ho(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function go(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ho(n[e],t)}var _o=he(null),vo=he(0);function yo(e,t){e=rd,V(vo,e),V(_o,t),rd=e|t.baseLanes}function bo(){V(vo,rd),V(_o,_o.current)}function xo(){rd=vo.current,ge(_o),ge(vo)}var So=he(null),Co=null;function wo(e){var t=e.alternate;V(ko,ko.current&1),V(So,e),Co===null&&(t===null||_o.current!==null||t.memoizedState!==null)&&(Co=e)}function To(e){V(ko,ko.current),V(So,e),Co===null&&(Co=e)}function Eo(e){e.tag===22?(V(ko,ko.current),V(So,e),Co===null&&(Co=e)):Do()}function Do(){V(ko,ko.current),V(So,So.current)}function Oo(e){ge(So),Co===e&&(Co=null),ge(ko)}var ko=he(0);function Ao(e,t){V(So,So.current),V(ko,t)}function jo(e){ge(ko),ge(So),Co===e&&(Co=null)}function Mo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sm(n)||cm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var No=0,Po=null,Fo=null,Io=null,Lo=!1,Ro=!1,zo=!1,Bo=0,Vo=0,Ho=null,Uo=0;function Wo(){throw Error(i(321))}function Go(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ir(e[n],t[n]))return!1;return!0}function Ko(e,t,n,r,i,a){return No=a,Po=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?sc:cc,zo=!1,a=n(r,i),zo=!1,Ro&&(a=Jo(t,n,r,i)),qo(e),a}function qo(e){B.H=oc;var t=Fo!==null&&Fo.next!==null;if(No=0,Io=Fo=Po=null,Lo=!1,Vo=0,Ho=null,t)throw Error(i(300));e===null||Tc||(e=e.dependencies,e!==null&&q(e)&&(Tc=!0))}function Jo(e,t,n,r){Po=e;var a=0;do{if(Ro&&(Ho=null),Vo=0,Ro=!1,25<=a)throw Error(i(301));if(a+=1,Io=Fo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}B.H=lc,o=t(n,r)}while(Ro);return o}function Yo(){var e=B.H,t=e.useState()[0];return t=typeof t.then==`function`?ts(t):t,e=e.useState()[0],(Fo===null?null:Fo.memoizedState)!==e&&(Po.flags|=1024),t}function Xo(){var e=Bo!==0;return Bo=0,e}function Zo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function X(e){if(Lo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Lo=!1}No=0,Io=Fo=Po=null,Ro=!1,Vo=Bo=0,Ho=null}function Qo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Io===null?Po.memoizedState=Io=e:Io=Io.next=e,Io}function $o(){if(Fo===null){var e=Po.alternate;e=e===null?null:e.memoizedState}else e=Fo.next;var t=Io===null?Po.memoizedState:Io.next;if(t!==null)Io=t,Fo=e;else{if(e===null)throw Po.alternate===null?Error(i(467)):Error(i(310));Fo=e,e={memoizedState:Fo.memoizedState,baseState:Fo.baseState,baseQueue:Fo.baseQueue,queue:Fo.queue,next:null},Io===null?Po.memoizedState=Io=e:Io=Io.next=e}return Io}function es(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ts(e){var t=Vo;return Vo+=1,Ho===null&&(Ho=[]),e=Ga(Ho,e,t),t=Po,(Io===null?t.memoizedState:Io.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?sc:cc),e}function ns(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ts(e);if(e.$$typeof===se)return;if(e.$$typeof===F)return J(e)}throw Error(i(438,String(e)))}function rs(e){var t=null,n=Po.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Po.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=es(),Po.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ae;return t.index++,n}function is(e,t){return typeof t==`function`?t(e):t}function as(e){return os($o(),Fo,e)}function os(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(No&f)===f:(Zu&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Aa&&(d=!0);else if((No&p)===p){u=u.next,p===Aa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Po.lanes|=p,ad|=p;f=u.action,zo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Po.lanes|=f,ad|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Ir(o,e.memoizedState)&&(Tc=!0,d&&(n=ja,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ss(e){var t=$o(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Ir(o,t.memoizedState)||(Tc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function cs(e,t,n){var r=Po,a=$o(),o=Qi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Ir((Fo||a).memoizedState,n);if(s&&(a.memoizedState=n,Tc=!0),a=a.queue,Ns(ds.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Io!==null&&!!(Io.memoizedState.tag&1),Os(e?9:8,{destroy:void 0},us.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Yu===null)throw Error(i(349));o||No&127||ls(r,t,n)}return n}function ls(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Po.updateQueue,t===null?(t=es(),Po.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function us(e,t,n,r){t.value=n,t.getSnapshot=r,fs(t)&&ps(e)}function ds(e,t,n){return n(function(){fs(t)&&ps(e)})}function fs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ir(e,n)}catch{return!0}}function ps(e){var t=Si(e,2);t!==null&&Nd(t,e,2)}function ms(e){var t=Qo();if(typeof e==`function`){var n=e;if(e=n(),zo){Je(!0);try{n()}finally{Je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:is,lastRenderedState:e},t}function hs(e,t,n,r){return e.baseState=n,os(e,Fo,typeof r==`function`?r:is)}function gs(e,t,n,r,a){if(rc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};B.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,_s(t,o)):(o.next=n.next,t.pending=n.next=o)}}function _s(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=B.T,o={};o.types=a===null?null:a.types,B.T=o;try{var s=n(i,r),c=B.S;c!==null&&c(o,s),vs(e,t,s)}catch(n){bs(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),B.T=a}}else try{a=n(i,r),vs(e,t,a)}catch(n){bs(e,t,n)}}function vs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ys(e,t,n)},function(n){return bs(e,t,n)}):ys(e,t,n)}function ys(e,t,n){t.status=`fulfilled`,t.value=n,xs(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,_s(e,n)))}function bs(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,xs(t),t=t.next;while(t!==r)}e.action=null}function xs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ss(e,t){return t}function Cs(e,t){if(Qi){var n=Yu.formState;if(n!==null){a:{var r=Po;if(Qi){if(Zi){b:{for(var i=Zi,a=ea;i.nodeType!==8;)if(!a||(i=um(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Zi=um(i.nextSibling),r=i.data===`F!`;break a}}na(r)}r=!1}r&&(t=n[0])}}return n=Qo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ss,lastRenderedState:t},n.queue=r,n=ec.bind(null,Po,r),r.dispatch=n,r=ms(!1),a=nc.bind(null,Po,!1,r.queue),r=Qo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=gs.bind(null,Po,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ws(e){return Ts($o(),Fo,e)}function Ts(e,t,n){if(t=os(e,t,Ss)[0],e=as(is)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ts(t)}catch(e){throw e===Ba?Ha:e}else r=t;t=$o();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Po.flags|=2048,Os(9,{destroy:void 0},Es.bind(null,i,n),null)),[r,a,e]}function Es(e,t){e.action=t}function Ds(e){var t=$o(),n=Fo;if(n!==null)return Ts(t,n,e);$o(),t=t.memoizedState,n=$o();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Os(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Po.updateQueue,t===null&&(t=es(),Po.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ks(){return $o().memoizedState}function As(e,t,n,r){var i=Qo();Po.flags|=e,i.memoizedState=Os(1|t,{destroy:void 0},n,r===void 0?null:r)}function js(e,t,n,r){var i=$o();r=r===void 0?null:r;var a=i.memoizedState.inst;Fo!==null&&r!==null&&Go(r,Fo.memoizedState.deps)?i.memoizedState=Os(t,a,n,r):(Po.flags|=e,i.memoizedState=Os(1|t,a,n,r))}function Ms(e,t){As(8390656,8,e,t)}function Ns(e,t){js(2048,8,e,t)}function Ps(e){Po.flags|=4;var t=Po.updateQueue;if(t===null)t=es(),Po.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Fs(e){var t=$o().memoizedState;return Ps({ref:t,nextImpl:e}),function(){if(Ju&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Is(e,t){return js(4,2,e,t)}function Ls(e,t){return js(4,4,e,t)}function Rs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function zs(e,t,n){n=n==null?null:n.concat([e]),js(4,4,Rs.bind(null,t,e),n)}function Z(){}function Bs(e,t){var n=$o();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Vs(e,t){var n=$o();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Go(t,r[1]))return r[0];if(r=e(),zo){Je(!0);try{e()}finally{Je(!1)}}return n.memoizedState=[r,t],r}function Hs(e,t,n){return n===void 0||No&1073741824&&!(Zu&261930)?e.memoizedState=t:(e.memoizedState=n,e=jd(),Po.lanes|=e,ad|=e,n)}function Us(e,t,n,r){return Ir(n,t)?n:_o.current===null?!(No&106)||No&1073741824&&!(Zu&261930)?(Tc=!0,e.memoizedState=n):(e=jd(),Po.lanes|=e,ad|=e,t):(e=Hs(e,n,r),Ir(e,t)||(Tc=!0),e)}function Ws(e,t,n,r,i){var a=de.p;de.p=a!==0&&8>a?a:8;var o=B.T,s={};s.types=o===null?null:o.types,B.T=s,nc(e,!1,t,n);try{var c=i(),l=B.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?tc(e,t,Pa(c,r),Ad(e)):tc(e,t,r,Ad(e))}catch(n){tc(e,t,{then:function(){},status:`rejected`,reason:n},Ad())}finally{de.p=a,o!==null&&s.types!==null&&(o.types=s.types),B.T=o}}function Gs(){}function Ks(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=qs(e).queue;Ws(e,a,t,fe,n===null?Gs:function(){return Js(e),n(r)})}function qs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:is,lastRenderedState:fe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:is,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Js(e){var t=qs(e);t.next===null&&(t=e.alternate.memoizedState),tc(e,t.next.queue,{},Ad())}function Ys(){return J(ch)}function Xs(){return $o().memoizedState}function Zs(){return $o().memoizedState}function Qs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ad();e=so(n);var r=co(t,e,n);r!==null&&(Nd(r,t,n),lo(r,t,n)),t={cache:Ca()},e.payload=t;return}t=t.return}}function $s(e,t,n){var r=Ad();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},rc(e)?ic(t,n):(n=xi(e,t,n,r),n!==null&&(Nd(n,e,r),ac(n,t,r)))}function ec(e,t,n){tc(e,t,n,Ad())}function tc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(rc(e))ic(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ir(s,o))return bi(e,t,i,0),Yu===null&&yi(),!1}catch{}if(n=xi(e,t,i,r),n!==null)return Nd(n,e,r),ac(n,t,r),!0}return!1}function nc(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},rc(e)){if(t)throw Error(i(479))}else t=xi(e,n,r,2),t!==null&&Nd(t,e,2)}function rc(e){var t=e.alternate;return e===Po||t!==null&&t===Po}function ic(e,t){Ro=Lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ac(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}var oc={readContext:J,use:ns,useCallback:Wo,useContext:Wo,useEffect:Wo,useImperativeHandle:Wo,useLayoutEffect:Wo,useInsertionEffect:Wo,useMemo:Wo,useReducer:Wo,useRef:Wo,useState:Wo,useDebugValue:Wo,useDeferredValue:Wo,useTransition:Wo,useSyncExternalStore:Wo,useId:Wo,useHostTransitionStatus:Wo,useFormState:Wo,useActionState:Wo,useOptimistic:Wo,useMemoCache:Wo,useCacheRefresh:Wo,useEffectEvent:Wo},sc={readContext:J,use:ns,useCallback:function(e,t){return Qo().memoizedState=[e,t===void 0?null:t],e},useContext:J,useEffect:Ms,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),As(4194308,4,Rs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return As(4194308,4,e,t)},useInsertionEffect:function(e,t){As(4,2,e,t)},useMemo:function(e,t){var n=Qo();t=t===void 0?null:t;var r=e();if(zo){Je(!0);try{e()}finally{Je(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Qo();if(n!==void 0){var i=n(t);if(zo){Je(!0);try{n(t)}finally{Je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=$s.bind(null,Po,e),[r.memoizedState,e]},useRef:function(e){var t=Qo();return e={current:e},t.memoizedState=e},useState:function(e){e=ms(e);var t=e.queue,n=ec.bind(null,Po,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Z,useDeferredValue:function(e,t){return Hs(Qo(),e,t)},useTransition:function(){var e=ms(!1);return e=Ws.bind(null,Po,e.queue,!0,!1),Qo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Po,a=Qo();if(Qi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Yu===null)throw Error(i(349));Zu&127||ls(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ms(ds.bind(null,r,o,e),[e]),r.flags|=2048,Os(9,{destroy:void 0},us.bind(null,r,o,n,t),null),n},useId:function(){var e=Qo(),t=Yu.identifierPrefix;if(Qi){var n=Gi,r=Wi;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Bo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Uo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ys,useFormState:Cs,useActionState:Cs,useOptimistic:function(e){var t=Qo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=nc.bind(null,Po,!0,n),n.dispatch=t,[e,t]},useMemoCache:rs,useCacheRefresh:function(){return Qo().memoizedState=Qs.bind(null,Po)},useEffectEvent:function(e){var t=Qo(),n={impl:e};return t.memoizedState=n,function(){if(Ju&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},cc={readContext:J,use:ns,useCallback:Bs,useContext:J,useEffect:Ns,useImperativeHandle:zs,useInsertionEffect:Is,useLayoutEffect:Ls,useMemo:Vs,useReducer:as,useRef:ks,useState:function(){return as(is)},useDebugValue:Z,useDeferredValue:function(e,t){return Us($o(),Fo.memoizedState,e,t)},useTransition:function(){var e=as(is)[0],t=$o().memoizedState;return[typeof e==`boolean`?e:ts(e),t]},useSyncExternalStore:cs,useId:Xs,useHostTransitionStatus:Ys,useFormState:ws,useActionState:ws,useOptimistic:function(e,t){return hs($o(),Fo,e,t)},useMemoCache:rs,useCacheRefresh:Zs,useEffectEvent:Fs},lc={readContext:J,use:ns,useCallback:Bs,useContext:J,useEffect:Ns,useImperativeHandle:zs,useInsertionEffect:Is,useLayoutEffect:Ls,useMemo:Vs,useReducer:ss,useRef:ks,useState:function(){return ss(is)},useDebugValue:Z,useDeferredValue:function(e,t){var n=$o();return Fo===null?Hs(n,e,t):Us(n,Fo.memoizedState,e,t)},useTransition:function(){var e=ss(is)[0],t=$o().memoizedState;return[typeof e==`boolean`?e:ts(e),t]},useSyncExternalStore:cs,useId:Xs,useHostTransitionStatus:Ys,useFormState:Ds,useActionState:Ds,useOptimistic:function(e,t){var n=$o();return Fo===null?(n.baseState=e,[e,n.queue.dispatch]):hs(n,Fo,e,t)},useMemoCache:rs,useCacheRefresh:Zs,useEffectEvent:Fs};function uc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=so(r);i.payload=t,n!=null&&(i.callback=n),t=co(e,i,r),t!==null&&(Nd(t,e,r),lo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=so(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=co(e,i,r),t!==null&&(Nd(t,e,r),lo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ad(),r=so(n);r.tag=2,t!=null&&(r.callback=t),t=co(e,r,n),t!==null&&(Nd(t,e,n),lo(t,e,n))}};function fc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Lr(n,r)||!Lr(i,a):!0}function pc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&dc.enqueueReplaceState(t,t.state,null)}function mc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function hc(e){hi(e)}function gc(e){console.error(e)}function _c(e){hi(e)}function vc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function yc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function bc(e,t,n){return n=so(n),n.tag=3,n.payload={element:null},n.callback=function(){vc(e,t)},n}function xc(e){return e=so(e),e.tag=3,e}function Sc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){yc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){yc(t,n,r),typeof i!=`function`&&(_d===null?_d=new Set([this]):_d.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Cc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ga(t,n,a,!0),n=So.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Co===null?Gd():n.alternate===null&&id===0&&(id=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ua?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),mf(e,r,a)),!1;case 22:return n.flags|=65536,r===Ua?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),mf(e,r,a)),!1}throw Error(i(435,n.tag))}return mf(e,r,a),Gd(),!1}if(Qi)return t=So.current,t===null?(r!==ta&&(t=Error(i(423),{cause:r}),ca(Li(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Li(r,n),a=bc(e.stateNode,r,a),uo(e,a),id!==4&&(id=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ta&&(e=Error(i(422),{cause:r}),ca(Li(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Li(o,n),ud===null?ud=[o]:ud.push(o),id!==4&&(id=2),t===null)return!0;r=Li(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=bc(n.stateNode,r,e),uo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(_d===null||!_d.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=xc(a),Sc(a,e,n,r),uo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var wc=Error(i(461)),Tc=!1;function Ec(e,t,n,r){t.child=e===null?ro(t,null,n,r):no(t,e.child,n,r)}function Dc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return _a(t),r=Ko(e,t,n,o,a,i),s=Xo(),e!==null&&!Tc?(Zo(e,t,i),tl(e,t,i)):(Qi&&s&&Ji(t),t.flags|=1,Ec(e,t,r,i),t.child)}function Oc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Oi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,kc(e,t,a,r,i)):(e=ji(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!nl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Lr:n,n(o,r)&&e.ref===t.ref)return tl(e,t,i)}return t.flags|=1,e=ki(a,r),e.ref=t.ref,e.return=t,t.child=e}function kc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Lr(a,r)&&e.ref===t.ref){if(Tc=!1,t.pendingProps=r=a,nl(e,i))e.flags&131072&&(Tc=!0);else return t.lanes=e.lanes,tl(e,t,i)}}return Lc(e,t,n,r,i)}function Ac(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Mc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ra(t,a===null?null:a.cachePool),a===null?bo():yo(t,a),Eo(t);else return r=t.lanes=536870912,Mc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ra(t,null),bo(),Do()):(Ra(t,a.cachePool),yo(t,a),Do(),t.memoizedState=null);return Ec(e,t,i,n),t.child}function jc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Mc(e,t,n,r,i){var a=La();return a=a===null?null:{parent:Sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ra(t,null),bo(),Eo(t),e!==null&&ga(e,t,r,!0),t.childLanes=i,null}function Nc(e,t){return t=Kc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Pc(e,t,n){return no(t,e.child,null,n),e=Nc(t,t.pendingProps),e.flags|=2,Oo(t),t.memoizedState=null,e}function Fc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Qi){if(r.mode===`hidden`)return e=Nc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},jc(null,e);if(To(t),(e=Zi)?(e=om(e,ea),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Pi(e),n.return=t,t.child=n,Xi=t,Zi=null)):e=null,e===null)throw na(t);return t.lanes=536870912,null}return Nc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(To(t),a){if(t.flags&256)t.flags&=-257,t=Pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Tc||ga(e,t,n,!1),a=(n&e.childLanes)!==0,Tc||a){if(_o.current===null){if(r=Yu,r!==null&&(s=pt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Si(e,s),Nd(r,e,s),wc;Gd()}t=Pc(e,t,n)}else e=o.treeContext,Zi=um(s.nextSibling),Xi=t,Qi=!0,$i=null,ea=!1,e!==null&&Yi(t,e),t=Nc(t,r),t.flags|=134221824;return t}return e=ki(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ic(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Lc(e,t,n,r,i){return _a(t),n=Ko(e,t,n,r,void 0,i),r=Xo(),e!==null&&!Tc?(Zo(e,t,i),tl(e,t,i)):(Qi&&r&&Ji(t),t.flags|=1,Ec(e,t,n,i),t.child)}function Rc(e,t,n,r,i,a){return _a(t),t.updateQueue=null,n=Jo(t,r,n,i),qo(e),r=Xo(),e!==null&&!Tc?(Zo(e,t,a),tl(e,t,a)):(Qi&&r&&Ji(t),t.flags|=1,Ec(e,t,n,a),t.child)}function zc(e,t,n,r,i){if(_a(t),t.stateNode===null){var a=Ti,o=n.contextType;typeof o==`object`&&o&&(a=J(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=dc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},ao(t),o=n.contextType,a.context=typeof o==`object`&&o?J(o):Ti,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(uc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&dc.enqueueReplaceState(a,a.state,null),mo(t,r,a,i),po(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=mc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ti,typeof u==`object`&&u&&(o=J(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&pc(t,a,r,o),io=!1;var f=t.memoizedState;a.state=f,mo(t,r,a,i),po(),l=t.memoizedState,s||f!==l||io?(typeof d==`function`&&(uc(t,n,d,r),l=t.memoizedState),(c=io||fc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,oo(e,t),o=t.memoizedProps,u=mc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ti,typeof l==`object`&&l&&(c=J(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&pc(t,a,r,c),io=!1,f=t.memoizedState,a.state=f,mo(t,r,a,i),po();var p=t.memoizedState;o!==d||f!==p||io||e!==null&&e.dependencies!==null&&q(e.dependencies)?(typeof s==`function`&&(uc(t,n,s,r),p=t.memoizedState),(u=io||fc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&q(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Ic(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=no(t,e.child,null,i),t.child=no(t,null,n,i)):Ec(e,t,n,i),t.memoizedState=a.state,e=t.child):e=tl(e,t,i),e}function Bc(e,t,n,r){return oa(),t.flags|=256,Ec(e,t,n,r),t.child}var Vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hc(e){return{baseLanes:e,cachePool:za()}}function Uc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=cd),e}function Wc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(ko.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(Qi){if(i?wo(t):Do(),(e=Zi)?(e=om(e,ea),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Pi(e),n.return=t,t.child=n,Xi=t,Zi=null)):e=null,e===null)throw na(t);return t.lanes=cm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Do(),i=t.mode,a=Kc({mode:`hidden`,children:a},i),r=Mi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Hc(n),r.childLanes=Uc(e,o,n),t.memoizedState=Vc,jc(null,r)):(wo(t),Gc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return Jc(e,t,a,o,r,c,s,n)}return i?(Do(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=ki(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Mi(i,a,n,null),i.flags|=2):i=ki(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,jc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Hc(n):(a=i.cachePool,a===null?a=za():(s=Sa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Uc(e,o,n),t.memoizedState=Vc,jc(e.child,r)):(wo(t),n=e.child,e=n.sibling,n=ki(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Gc(e,t){return t=Kc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Kc(e,t){return e=Di(22,e,null,t),e.lanes=0,e}function qc(e,t,n){return no(t,e.child,null,n),e=Gc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jc(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(wo(t),t.flags&=-257,qc(e,t,c)):t.memoizedState===null?(Do(),o=a.fallback,s=t.mode,a=Kc({mode:`visible`,children:a.children},s),o=Mi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,no(t,e.child,null,c),a=t.child,a.memoizedState=Hc(c),a.childLanes=Uc(e,r,c),t.memoizedState=Vc,jc(null,a)):(Do(),t.child=e.child,t.flags|=128,null);if(wo(t),cm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,ca({value:a,source:null,stack:null})),qc(e,t,c)}if(Tc||ga(e,t,c,!1),r=(c&e.childLanes)!==0,Tc||r){if(_o.current!==null)return qc(e,t,c);if(r=Yu,r!==null&&(a=pt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Si(e,a),Nd(r,e,a),wc;return sm(o)||Gd(),qc(e,t,c)}return sm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Zi=um(o.nextSibling),Xi=t,Qi=!0,$i=null,ea=!1,e!==null&&Yi(t,e),t=Gc(t,a.children),t.flags|=134221824,t)}function Yc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ma(e.return,t,n)}function Xc(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Mo(n)===null&&(t=e),e=e.sibling}return t}function Zc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Qc(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function $c(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ko.current;if(t.flags&128)return Ao(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Ao(t,o),i===`backwards`&&e!==null?(Qc(e),Ec(e,t,r,n),Qc(e)):Ec(e,t,r,n),r=Qi?Vi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yc(e,n,t);else if(e.tag===19)Yc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=Xc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,Qc(t)),Zc(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Mo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Zc(t,!0,n,null,a,r);break;case`together`:Zc(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=Xc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Zc(t,!1,i,n,a,r)}return t.child}function el(e,t,n){var r=t.pendingProps;return fa(t,t.type,r.value),Ec(e,t,r.children,n),t.child}function tl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ad|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ga(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ki(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ki(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&q(e)))}function rl(e,t,n){switch(t.tag){case 3:xe(t,t.stateNode.containerInfo),fa(t,Sa,e.memoizedState.cache),oa();break;case 27:case 5:Ce(t);break;case 4:xe(t,t.stateNode.containerInfo);break;case 10:fa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,To(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return wo(t),t.flags|=128,null;r=ga(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Wc(e,t,n):(wo(t),e=tl(e,t,n),e===null?null:e.sibling)}wo(t);break;case 19:if(t.flags&128)return $c(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ga(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return $c(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ao(t,ko.current),r)break;return null;case 22:return t.lanes=0,Ac(e,t,n,t.pendingProps);case 24:fa(t,Sa,e.memoizedState.cache)}return tl(e,t,n)}function il(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Tc=!0;else{if(!nl(e,n)&&!(t.flags&128))return Tc=!1,rl(e,t,n);Tc=!!(e.flags&131072)}}else Tc=!1,Qi&&t.flags&1048576&&qi(t,Vi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ka(t.elementType),t.type=e,typeof e==`function`)Oi(e)?(r=mc(e,r),t.tag=1,t=zc(null,t,e,r,n)):(t.tag=0,t=Lc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===I){t.tag=11,t=Dc(null,t,e,r,n);break a}if(a===ne){t.tag=14,t=Oc(null,t,e,r,n);break a}if(a===F){t.tag=10,t.type=e,t=el(null,t,n);break a}}throw t=R(e)||e,Error(i(306,t,``))}}return t;case 0:return Lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=mc(r,t.pendingProps),zc(e,t,r,a,n);case 3:a:{if(xe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,oo(e,t),mo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,fa(t,Sa,r),r!==o.cache&&ha(t,[Sa],n,!0),po(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Bc(e,t,r,n);break a}if(r!==a){a=Li(Error(i(424)),t),ca(a),t=Bc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Zi=um(e.firstChild),Xi=t,Qi=!0,$i=null,ea=!0,n=ro(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(oa(),r===a){t=tl(e,t,n);break a}Ec(e,t,r,n)}t=t.child}return t;case 26:return Ic(e,t),e===null?(n=Pm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Qi||(t.stateNode=mp(t.type,t.pendingProps,ye.current,t)):t.memoizedState=Pm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ce(t),e===null&&Qi&&(r=t.stateNode=gm(t.type,t.pendingProps,ye.current),Xi=t,ea=!0,a=Zi,wp(t.type)?(dm=a,Zi=um(r.firstChild)):Zi=a),Ec(e,t,t.pendingProps.children,n),Ic(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Qi&&((a=r=Zi)&&(r=im(r,t.type,t.pendingProps,ea),r===null?a=!1:(t.stateNode=r,Xi=t,Zi=um(r.firstChild),ea=!1,a=!0)),a||na(t)),Ce(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,hp(a,o)?r=null:s!==null&&hp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Ko(e,t,Yo,null,null,n),ch._currentValue=a),Ic(e,t),Ec(e,t,r,n),t.child;case 6:return e===null&&Qi&&((e=n=Zi)&&(n=am(n,t.pendingProps,ea),n===null?e=!1:(t.stateNode=n,Xi=t,Zi=null,e=!0)),e||na(t)),null;case 13:return Wc(e,t,n);case 4:return xe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=no(t,null,r,n):Ec(e,t,r,n),t.child;case 11:return Dc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Ic(e,t),Ec(e,t,r,n),t.child;case 8:return Ec(e,t,t.pendingProps.children,n),t.child;case 12:return Ec(e,t,t.pendingProps.children,n),t.child;case 10:return el(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,_a(t),a=J(a),r=r(a),t.flags|=1,Ec(e,t,r,n),t.child;case 14:return Oc(e,t,t.type,t.pendingProps,n);case 15:return kc(e,t,t.type,t.pendingProps,n);case 19:return $c(e,t,n);case 31:return Fc(e,t,n);case 22:return Ac(e,t,n,t.pendingProps);case 24:return _a(t),r=J(Sa),e===null?(a=La(),a===null&&(a=Yu,o=Ca(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},ao(t),fa(t,Sa,a)):((e.lanes&n)!==0&&(oo(e,t),mo(t,null,null,n),po()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,fa(t,Sa,r),r!==a.cache&&ha(t,[Sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),fa(t,Sa,r))),Ec(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:Qi&&Ji(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Ic(e,t),Ec(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function al(e){e.flags|=4}function ol(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Ym(t,r):Ym(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Hd())e.flags|=8192;else throw qa=Ua,Va}}else e.flags&=-16777217}function sl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Xm(t)){if(Hd())e.flags|=8192;else throw qa=Ua,Va}}function cl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:st(),e.lanes|=t,ld|=t)}function ll(e,t){if(!Qi)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function ul(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function dl(e,t,n){var r=t.pendingProps;switch(K(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ul(t),null;case 1:return ul(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),pa(Sa),Se(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(aa(t)?al(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,sa())),ul(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(al(t),o===null?(ul(t),ol(t,a,null,r,n)):(ul(t),sl(t,o))):o?o===e.memoizedState?(ul(t),t.flags&=-16777217):(al(t),ul(t),sl(t,o)):(e=e.memoizedProps,e!==r&&al(t),ul(t),ol(t,a,e,r,n)),null;case 27:if(we(t),n=ye.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&al(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return ul(t),t.subtreeFlags&=-33554433,null}e=_e.current,aa(t)?ra(t,e):(e=gm(a,r,n),t.stateNode=e,al(t))}return ul(t),t.subtreeFlags&=-33554433,null;case 5:if(we(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&al(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return ul(t),t.subtreeFlags&=-33554433,null}if(o=_e.current,aa(t))ra(t,o);else{var s=dp(ye.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[vt]=t,o[yt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(ip(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&al(t)}}return ul(t),t.subtreeFlags&=-33554433,ol(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&al(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ye.current,aa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Xi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[vt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||tp(e.nodeValue,n)),e||na(t,!0)}else e=dp(e).createTextNode(r),e[vt]=t,t.stateNode=e}return ul(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=aa(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[vt]=t}else oa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ul(t),e=!1}else n=sa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Oo(t),t):(Oo(t),null);if(t.flags&128)throw Error(i(558))}return ul(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=aa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[vt]=t}else oa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ul(t),a=!1}else a=sa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Oo(t),t):(Oo(t),null)}return Oo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cl(t,t.updateQueue),ul(t),null);case 4:return Se(),e===null&&Gf(t.stateNode.containerInfo),t.flags|=67108864,ul(t),null;case 10:return pa(t.type),ul(t),null;case 19:if(jo(t),r=t.memoizedState,r===null)return ul(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)ll(r,!1);else{if(id!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Mo(e),o!==null){for(t.flags|=128,ll(r,!1),e=o.updateQueue,t.updateQueue=e,cl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ai(n,e),n=n.sibling;return Ao(t,ko.current&1|2),Qi&&Ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Le()>hd&&(t.flags|=128,a=!0,ll(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Mo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,cl(t,e),ll(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!Qi)return ul(t),null}else 2*Le()-r.renderingStartTime>hd&&n!==536870912&&(t.flags|=128,a=!0,ll(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Le(),e.sibling=null,o=ko.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||Qi?Ao(t,o):(n=o,V(So,t),V(ko,n),Co===null&&(Co=t)),Qi&&Ki(t,r.treeForkCount),e}return ul(t),null;case 22:case 23:return Oo(t),xo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(ul(t),t.subtreeFlags&6&&(t.flags|=8192)):ul(t),n=t.updateQueue,n!==null&&cl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ge(Ia),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),pa(Sa),ul(t),null;case 25:return null;case 30:return t.flags|=33554432,ul(t),null}throw Error(i(156,t.tag))}function fl(e,t){switch(K(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pa(Sa),Se(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return we(t),null;case 31:if(t.memoizedState!==null){if(Oo(t),t.alternate===null)throw Error(i(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Oo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return jo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Se(),null;case 10:return pa(t.type),null;case 22:case 23:return Oo(t),xo(),e!==null&&ge(Ia),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pa(Sa),null;case 25:return null;default:return null}}function pl(e,t){switch(K(t),t.tag){case 3:pa(Sa),Se();break;case 26:case 27:case 5:we(t);break;case 4:Se();break;case 31:t.memoizedState!==null&&Oo(t);break;case 13:Oo(t);break;case 19:jo(t);break;case 10:pa(t.type);break;case 22:case 23:Oo(t),xo(),e!==null&&ge(Ia);break;case 24:pa(Sa)}}function ml(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){pf(t,t.return,e)}}function hl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){pf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){pf(t,t.return,e)}}function gl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{go(t,n)}catch(t){pf(e,e.return,t)}}}function _l(e,t,n){n.props=mc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){pf(e,t,n)}}function vl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=fi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Ip(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Lp(e);p(e.child,!1,$p,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){pf(e,t,n)}}function yl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){pf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){pf(e,t,n)}else n.current=null}}function bl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)tm(e.stateNode,t[n])}function xl(e){for(var t=e.return;t!==null&&(wl(t)&&tm(e.stateNode,t.stateNode),!Cl(t));)t=t.return}function Sl(e){for(var t=e.return;t!==null&&(wl(t)&&nm(e.stateNode,t.stateNode),!Cl(t));)t=t.return}function Cl(e){return e.tag===5||e.tag===3||e.tag===27}function wl(e){return e&&e.tag===7&&e.stateNode!==null}function Tl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){pf(e,e.return,t)}}function El(e,t,n){try{var r=e.stateNode;op(r,e.type,n,t),r[yt]=t}catch(t){pf(e,e.return,t)}}function Dl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wp(e.type)||e.tag===4}function Ol(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Dl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&wp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mn)),bl(e,r),Vt=!0;else if(i!==4&&(i===27&&(bl(e,r),r=null,wp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(kl(e,t,n,r),e=e.sibling;e!==null;)kl(e,t,n,r),e=e.sibling}function Al(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),bl(e,r),Vt=!0;else if(i!==4&&(i===27&&(bl(e,r),r=null,wp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Al(e,t,n,r),e=e.sibling;e!==null;)Al(e,t,n,r),e=e.sibling}function jl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ip(t,r,n),t[vt]=e,t[yt]=n}catch(t){pf(e,e.return,t)}}var Ml=!1,Nl=null;function Pl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Ml=!0)}var Fl=null;function Il(){var e=Fl;return Fl=null,e}var Ll=0;function Rl(e,t,n,r,i){return Ll=0,zl(e.child,t,n,r,i)}function zl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Ap(o);r.push(s),s.view&&(a=!0)}else a||Ap(o).view&&(a=!0);Ml=!0,Dp(o,Ll===0?t:t+`_`+Ll,n),Ll++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||zl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Bl(e,t){for(;e!==null;)e.tag===5?Op(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Bl(e.child,t)),e=e.sibling}function Vl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Vl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=mi(t.default,t.share),t!==`none`&&(Rl(e,n,t,null,!1)||Bl(e.child,!1))}e=e.sibling}}function Hl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=fi(r,n),a=mi(r.default,n.paired?r.share:r.enter);a===`none`?Vl(e):Rl(e,i,a,null,!1)?(Vl(e),n.paired||t||Md(e,r.onEnter)):Bl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Hl(e,t),e=e.sibling;else Vl(e)}function Ul(e){if(Nl!==null&&Nl.size!==0){var t=Nl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=mi(n.default,n.share);if(a!==`none`&&(Rl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Md(e,n.onShare)):Bl(e.child,!1)),t.delete(r),t.size===0)break}}}Ul(e)}e=e.sibling}}}function Wl(e){if(e.tag===30){var t=e.memoizedProps,n=fi(t,e.stateNode),r=Nl===null?void 0:Nl.get(n),i=mi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Rl(e,n,i,null,!1)?r===void 0?Md(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Nl.delete(n),Md(e,t.onShare)):Bl(e.child,!1)),Nl!==null&&Ul(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Wl(e),e=e.sibling;else Nl!==null&&Ul(e)}function Gl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=fi(t,e.stateNode);t=mi(t.default,t.update),e.flags&=-5,t!==`none`&&Rl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Gl(e);e=e.sibling}}function Kl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Bl(e.child,!1))}Kl(e)}e=e.sibling}}function ql(e){if(e.tag===30)e.stateNode.paired=null,Bl(e.child,!1),Kl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e),e=e.sibling;else Kl(e)}function Jl(e){for(e=e.child;e!==null;)e.tag===30?Bl(e.child,!1):e.subtreeFlags&33554432&&Jl(e),e=e.sibling}function Yl(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Ll<a.length){var l=a[Ll],u=Ap(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Dp(c,Ll===0?n:n+`_`+Ll,i),s&&e.flags&4||(Fl===null&&(Fl=[]),Fl.push(c,Ll===0?r:r+`_`+Ll,t.memoizedProps)),Ll++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Yl(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function Xl(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=fi(n,r),a=mi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(jp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Ll=0,i=Yl(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Md(e,n.onUpdate))}else e.subtreeFlags&33554432&&Xl(e,t);e=e.sibling}}var Zl=!1,Ql=!1,$l=!1,eu=!1,tu=typeof WeakSet==`function`?WeakSet:Set,nu=null,ru=!1,iu=!1,au=!1,ou=!1;function su(e,t,n){if(e=e.containerInfo,lp=_h,e=Hr(e),Ur(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(up={focusedElem:e,selectionRange:r},_h=!1,n=(n&335544064)===n,nu=t,t=n?9270:1024;nu!==null;){if(e=nu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Wl(r[a]);if(e.alternate===null&&e.flags&2)n&&Pl(e),cu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Wl(r),cu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Pl(e),cu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,nu=r):(n&&Gl(e),cu(n))}}Nl=null}function cu(e){for(;nu!==null;){var t=nu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=mc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){pf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)rm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:rm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=fi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=mi(a.default,a.update),a!==`none`&&Rl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,nu=r;break}nu=t.return}}function lu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ku(e,n),r&4&&ml(5,n);break;case 1:if(ku(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){pf(n,n.return,e)}else{var i=mc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){pf(n,n.return,e)}}}r&64&&gl(n),r&512&&vl(n,n.return);break;case 3:if(ku(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{go(e,t)}catch(e){pf(n,n.return,e)}}break;case 27:t===null&&r&4&&jl(n);case 26:case 5:ku(e,n),t===null&&r&4&&Tl(n),r&512&&vl(n,n.return);break;case 12:ku(e,n);break;case 31:ku(e,n),r&4&&vu(e,n);break;case 13:ku(e,n),r&4&&yu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_f.bind(null,n),lm(e,n))));break;case 22:if(r=n.memoizedState!==null||Zl,!r){var a=t!==null&&t.memoizedState!==null||Ql;t=Zl,i=Ql,Zl=r,(Ql=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),ju(e,n,r)):ku(e,n),Zl=t,Ql=i}break;case 30:ku(e,n),r&512&&vl(n,n.return);break;case 7:r&512&&vl(n,n.return);default:ku(e,n)}}function uu(e,t){for(e=e.child;e!==null;)du(e,t),e=e.sibling}function du(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){pf(e,e.return,t)}fu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Vt=!0}catch(t){pf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Ep(s,!0):Ep(e.stateNode,!1)}catch(t){pf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&uu(e,t);break;default:uu(e,t)}}function fu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:du(n,r);break a;case 22:n.memoizedState===null&&fu(n,r);break a;default:fu(n,r)}}e=e.sibling}}function pu(e){var t=e.alternate;t!==null&&(e.alternate=null,pu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Et(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var mu=null,hu=!1;function gu(e,t,n){for(n=n.child;n!==null;)_u(e,t,n),n=n.sibling}function _u(e,t,n){if(qe&&typeof qe.onCommitFiberUnmount==`function`)try{qe.onCommitFiberUnmount(Ke,n)}catch{}switch(n.tag){case 26:Ql||yl(n,t),gu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!Ql&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ql||yl(n,t),Sl(n);var r=mu,i=hu;wp(n.type)&&(mu=n.stateNode,hu=!1),gu(e,t,n),_m(n.stateNode,n.type,n.memoizedProps),mu=r,hu=i;break;case 5:Ql||yl(n,t),Sl(n);case 6:if(n.tag===6&&Sl(n),r=mu,i=hu,mu=null,gu(e,t,n),mu=r,hu=i,mu!==null){if(hu)try{(mu.nodeType===9?mu.body:mu.nodeName===`HTML`?mu.ownerDocument.body:mu).removeChild(n.stateNode),Vt=!0}catch(e){pf(n,t,e)}else try{mu.removeChild(n.stateNode),Vt=!0}catch(e){pf(n,t,e)}}break;case 18:mu!==null&&(hu?(e=mu,Tp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Uh(e)):Tp(mu,n.stateNode));break;case 4:r=mu,i=hu,mu=n.stateNode.containerInfo,hu=!0,gu(e,t,n),mu=r,hu=i;break;case 0:case 11:case 14:case 15:hl(2,n,t),Ql||hl(4,n,t),gu(e,t,n);break;case 1:Ql||(yl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&_l(n,t,r)),gu(e,t,n);break;case 21:gu(e,t,n);break;case 22:Ql=(r=Ql)||n.memoizedState!==null,gu(e,t,n),Ql=r;break;case 30:yl(n,t),gu(e,t,n);break;case 7:Ql||yl(n,t),gu(e,t,n);break;default:gu(e,t,n)}}function vu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Uh(e)}catch(e){pf(t,t.return,e)}}}function yu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Uh(e)}catch(e){pf(t,t.return,e)}}function bu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tu),t;default:throw Error(i(435,e.tag))}}function xu(e,t){var n=bu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=vf.bind(null,e,t);t.then(r,r)}})}function Su(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(wp(l.type)){mu=l.stateNode,hu=!1;break a}break;case 5:mu=l.stateNode,hu=!1;break a;case 3:case 4:mu=l.stateNode.containerInfo,hu=!0;break a}l=l.return}if(mu===null)throw Error(i(160));_u(s,c,o),mu=null,hu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wu(t,e,n),t=t.sibling}var Cu=null;function wu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Su(t,e,n),Tu(e),a&4&&(hl(3,e,e.return),ml(3,e),hl(5,e,e.return));break;case 1:Su(t,e,n),Tu(e),a&512&&(Ql||r===null||yl(r,r.return)),a&64&&Zl&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Cu,Su(t,e,n),Tu(e),a&512&&(Ql||r===null||yl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(Zl)e.stateNode=mp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[wt]||r[vt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),ip(r,t,n),r[vt]=e,jt(r),t=r;break a;case`link`:if(o=Km(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),ip(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Km(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),ip(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[vt]=e,jt(r),t=r}e.stateNode=t}}else Zl||qm(o,e.type,e.stateNode)}else e.stateNode=Vm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&El(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||Ql||t.parentNode.removeChild(t)):a.count--,n===null?Zl||qm(o,e.type,e.stateNode):Vm(o,n,e.memoizedProps))}break;case 27:Su(t,e,n),Tu(e),a&512&&(Ql||r===null||yl(r,r.return)),r!==null&&a&4&&El(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=$l,$l=!1,Su(t,e,n),$l=o,Tu(e),a&512&&(Ql||r===null||yl(r,r.return)),e.flags&32){t=e.stateNode;try{on(t,``),Vt=!0}catch(t){pf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,El(e,t,r===null?t:r.memoizedProps)),a&1024&&(eu=!0);break;case 6:if(Su(t,e,n),Tu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Vt=!0}catch(t){pf(e,e.return,t)}}break;case 3:if(Vt=!1,Gm=null,o=Cu,Cu=xm(t.containerInfo),Su(t,e,n),Cu=o,Tu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Uh(t.containerInfo)}catch(t){pf(e,e.return,t)}eu&&(eu=!1,Eu(e)),Vt=!1;break;case 4:a=$l,$l=Zl,r=Ht(),o=Cu,Cu=xm(e.stateNode.containerInfo),Su(t,e,n),Tu(e),Cu=o,Vt&&iu&&(au=!0),Vt=r,$l=a;break;case 12:Su(t,e,n),Tu(e);break;case 31:Su(t,e,n),Tu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,xu(e,t)));break;case 13:Su(t,e,n),Tu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(pd=Le()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,xu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=Zl,l=Ql,u=$l;Zl=c||o,$l=u||o,Ql=l||s,Su(t,e,n),Ql=l,$l=u,Zl=c,Tu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||Zl||Ql||(t=s||Ql,n=Zl,r=Ql,Zl=o||Zl,Ql=t,Au(e,2),Zl=n,Ql=r),!o&&$l||uu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,xu(e,n))));break;case 19:Su(t,e,n),Tu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,xu(e,t)));break;case 30:a&512&&(Ql||r===null||yl(r,r.return)),a=Ht(),o=iu,s=(n&335544064)===n,c=e.memoizedProps,iu=s&&mi(c.default,c.update)!==`none`,Su(t,e,n),Tu(e),s&&r!==null&&Vt&&(e.flags|=4),iu=o,Vt=a;break;case 21:break;case 7:a&512&&(Ql||r===null||yl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Su(t,e,n),Tu(e)}}function Tu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Dl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(wl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Cl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Al(e,Ol(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(on(l,``),n.flags&=-33),Al(e,Ol(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;kl(e,Ol(e),u,s);break;default:throw Error(i(161))}}catch(t){pf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Eu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Eu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,_h=!0,t.reset(),_h=!1),e=e.sibling}}function Du(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Ou(t,e),t=t.sibling;else Xl(t,!1)}function Ou(e,t){var n=e.alternate;if(n===null)Hl(e,!1);else switch(e.tag){case 3:if(ou=ru=!1,Il(),Du(t,e),!ru&&!au){if(e=Fl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Op(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),ou=!0}Fl=null;break;case 5:Du(t,e);break;case 4:r=ru,ru=!1,Du(t,e),ru&&(au=!0),ru=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Du(t,e):Hl(e,!1));break;case 30:r=ru,i=Il(),ru=!1,Du(t,e),ru&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=fi(a,o),o=fi(n.memoizedProps,o);var s=mi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Ll=0,t=Yl(e,n,t,o,s,a,!0),Ll!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Md(e,e.memoizedProps.onUpdate),Fl=i):i!==null&&(i.push.apply(i,Fl),Fl=i),ru=e.flags&32?!0:r;break;default:Du(t,e)}}function ku(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)lu(e,t.alternate,t),t=t.sibling}function Au(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:hl(4,n,n.return),Au(n,r);break;case 1:yl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&_l(n,n.return,i),Au(n,r);break;case 27:r&2&&_m(n.stateNode,n.type,n.memoizedProps);case 5:yl(n,n.return),n.tag!==5&&n.tag!==27||Sl(n),Au(n,r);break;case 6:Sl(n);break;case 26:yl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||Ql||i.parentNode.removeChild(i),Au(n,r);break;case 22:n.memoizedState===null&&Au(n,r);break;case 30:yl(n,n.return),Au(n,r);break;case 7:yl(n,n.return);default:Au(n,r)}e=e.sibling}}function ju(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:ju(i,a,n),ml(4,a);break;case 1:if(ju(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){pf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)ho(l[i],c)}catch(e){pf(r,r.return,e)}}s&&o&64&&gl(a),vl(a,a.return);break;case 27:n&2&&jl(a);case 5:a.tag!==5&&a.tag!==27||xl(a),ju(i,a,n),s&&r===null&&o&4&&Tl(a),vl(a,a.return);break;case 6:xl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||Zl||qm(xm(c.ownerDocument),a.type,c),ju(i,a,n),s&&r===null&&o&4&&Tl(a),vl(a,a.return);break;case 12:ju(i,a,n);break;case 31:ju(i,a,n),s&&o&4&&vu(i,a);break;case 13:ju(i,a,n),s&&o&4&&yu(i,a);break;case 22:a.memoizedState===null&&ju(i,a,n),vl(a,a.return);break;case 30:ju(i,a,n),vl(a,a.return);break;case 7:vl(a,a.return);default:ju(i,a,n)}t=t.sibling}}function Mu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&wa(n))}function Nu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wa(e))}function Pu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Fu(e,t,n,r),t=t.sibling;else i&&Jl(t)}function Fu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&ql(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Pu(e,t,n,r),a&2048&&ml(9,t);break;case 1:Pu(e,t,n,r);break;case 3:Pu(e,t,n,r),i&&ou&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&wa(a)));break;case 12:if(a&2048){Pu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){pf(t,t.return,e)}}else Pu(e,t,n,r);break;case 31:Pu(e,t,n,r);break;case 13:Pu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&ql(t),o._visibility&2?Pu(e,t,n,r):(o._visibility|=2,Iu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&ql(s),o._visibility&2?Pu(e,t,n,r):Lu(e,t)),a&2048&&Mu(s,t);break;case 24:Pu(e,t,n,r),a&2048&&Nu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Bl(a.child,!0),Bl(t.child,!0))),Pu(e,t,n,r);break;default:Pu(e,t,n,r)}}function Iu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Iu(a,o,s,c,i),ml(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Iu(a,o,s,c,i)):u._visibility&2?Iu(a,o,s,c,i):Lu(a,o),i&&l&2048&&Mu(o.alternate,o);break;case 24:Iu(a,o,s,c,i),i&&l&2048&&Nu(o.alternate,o);break;default:Iu(a,o,s,c,i)}t=t.sibling}}function Lu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Lu(n,r),i&2048&&Mu(r.alternate,r);break;case 24:Lu(n,r),i&2048&&Nu(r.alternate,r);break;default:Lu(n,r)}t=t.sibling}}var Ru=8192;function zu(e,t,n){if(e.subtreeFlags&Ru)for(e=e.child;e!==null;)Bu(e,t,n),e=e.sibling}function Bu(e,t,n){switch(e.tag){case 26:zu(e,t,n),e.flags&Ru&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Qm(n,e)):$m(n,Cu,e.memoizedState,e.memoizedProps));break;case 5:zu(e,t,n),e.flags&Ru&&(e=e.stateNode,(t&335544128)===t&&Qm(n,e));break;case 3:case 4:var r=Cu;Cu=xm(e.stateNode.containerInfo),zu(e,t,n),Cu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ru,Ru=16777216,zu(e,t,n),Ru=r):zu(e,t,n));break;case 30:if((e.flags&Ru)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Nl===null&&(Nl=new Map),Nl.set(r,i)}zu(e,t,n);break;default:zu(e,t,n)}}function Vu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Hu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];nu=r,Gu(r,e)}Vu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Uu(e),e=e.sibling}function Uu(e){switch(e.tag){case 0:case 11:case 15:Hu(e),e.flags&2048&&hl(9,e,e.return);break;case 3:Hu(e);break;case 12:Hu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Wu(e)):Hu(e);break;default:Hu(e)}}function Wu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];nu=r,Gu(r,e)}Vu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:hl(8,t,t.return),Wu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Wu(t));break;default:Wu(t)}e=e.sibling}}function Gu(e,t){for(;nu!==null;){var n=nu;switch(n.tag){case 0:case 11:case 15:hl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:wa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,nu=r;else a:for(n=e;nu!==null;){r=nu;var i=r.sibling,a=r.return;if(pu(r),r===n){nu=null;break a}if(i!==null){i.return=a,nu=i;break a}nu=a}}}var Ku={getCacheForType:function(e){var t=J(Sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return J(Sa).controller.signal}},qu=typeof WeakMap==`function`?WeakMap:Map,Ju=0,Yu=null,Xu=null,Zu=0,Qu=0,$u=null,ed=!1,td=!1,nd=!1,rd=0,id=0,ad=0,od=0,sd=0,cd=0,ld=0,ud=null,dd=null,fd=!1,pd=0,md=0,hd=1/0,gd=null,_d=null,vd=0,yd=null,bd=null,xd=0,Sd=0,Cd=null,wd=null,Td=null,Ed=null,Dd=null,Od=0,kd=null;function Ad(){return Ju&2&&Zu!==0?Zu&-Zu:B.T===null?gt():Pf()}function jd(){if(cd===0){if(!(Zu&536870912)||Qi){var e=et;et<<=1,!(et&3932160)&&(et=262144),cd=e}else cd=536870912}return e=So.current,e!==null&&(e.flags|=32),cd}function Md(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Ip(fi(e.memoizedProps,n))),Ed===null&&(Ed=[]),Ed.push(t.bind(null,r))}}function Nd(e,t,n){(e===Yu&&(Qu===2||Qu===9)||e.cancelPendingCommit!==null)&&(Bd(e,0),Ld(e,Zu,cd,!1)),lt(e,n),(!(Ju&2)||e!==Yu)&&(e===Yu&&(!(Ju&2)&&(od|=n),id===4&&Ld(e,Zu,cd,!1)),Ef(e))}function Pd(e,t,n){if(Ju&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||it(e,t),a=r?Jd(e,t):Kd(e,t,!0),o=r;do{if(a===0){td&&!r&&Ld(e,t,0,!1);break}if(n=e.current.alternate,o&&!Id(n))a=Kd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=ud;var l=c.current.memoizedState.isDehydrated;if(l&&(Bd(c,s).flags|=256),s=Kd(c,s,!1),s!==2&&s!==6){if(nd&&!l){c.errorRecoveryDisabledLanes|=o,od|=o,a=4;break a}o=dd,dd=a,o!==null&&(dd===null?dd=o:dd.push.apply(dd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Bd(e,0),Ld(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ld(r,t,cd,!ed);break a;case 2:dd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=pd+300-Le(),10<a)){if(Ld(r,t,cd,!ed),rt(r,0,!0)!==0)break a;xd=t,r.timeoutHandle=vp(Fd.bind(null,r,n,dd,gd,fd,t,cd,od,ld,ed,o,`Throttled`,-0,0),a);break a}Fd(r,n,dd,gd,fd,t,cd,od,ld,ed,o,null,-0,0)}break}}while(1);Ef(e)}function Fd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mn},Nl=null,Bu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=rh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?pd-Le():(a&4194048)===a?md-Le():0,m=th(d,m),m!==null)?(xd=a,e.cancelPendingCommit=m(tf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Ld(e,a,o,!l)):tf(e,t,a,n,r,i,o,s,c,l,u,d)}function Id(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ir(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ld(e,t,n,r){t=at(e,t),t&=~sd,t&=~od,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ye(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&dt(e,n,t)}function Rd(){return Ju&6?!0:(Df(0,!1),!1)}function zd(){if(Xu!==null){if(Qu===0)var e=Xu.return;else e=Xu,da=ua=null,X(e),Xa=null,Za=0,e=Xu;for(;e!==null;)pl(e.alternate,e),e=e.return;Xu=null}}function Bd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,yp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),xd=0,zd(),Yu=e,Xu=n=ki(e.current,null),Zu=t,Qu=0,$u=null,ed=!1,td=it(e,t),nd=!1,ld=cd=sd=od=ad=id=0,dd=ud=null,fd=!1,rd=at(e,t),yi(),n}function Vd(e,t){Po=null,B.H=oc,t===Ba||t===Ha?(t=Ja(),Qu=3):t===Va?(t=Ja(),Qu=4):Qu=t===wc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,$u=t,Xu===null&&(id=1,vc(e,Li(t,e.current)))}function Hd(){var e=So.current;return e===null?!0:(Zu&4194048)===Zu?Co===null:(Zu&62914560)===Zu||Zu&536870912?e===Co:!1}function Ud(){var e=B.H;return B.H=oc,e===null?oc:e}function Wd(){var e=B.A;return B.A=Ku,e}function Gd(){id=4,ed||(Zu&4194048)!==Zu&&So.current!==null||(td=!0),!(ad&134217727)&&!(od&134217727)||Yu===null||Ld(Yu,Zu,cd,!1)}function Kd(e,t,n){var r=Ju;Ju|=2;var i=Ud(),a=Wd();(Yu!==e||Zu!==t)&&(gd=null,Bd(e,t)),t=!1;var o=id;a:do try{if(Qu!==0&&Xu!==null){var s=Xu,c=$u;switch(Qu){case 8:zd(),o=6;break a;case 3:case 2:case 9:case 6:So.current===null&&(t=!0);var l=Qu;if(Qu=0,$u=null,Qd(e,s,c,l),n&&td){o=0;break a}break;default:l=Qu,Qu=0,$u=null,Qd(e,s,c,l)}}qd(),o=id;break}catch(t){Vd(e,t)}while(1);return t&&e.shellSuspendCounter++,da=ua=null,Ju=r,B.H=i,B.A=a,Xu===null&&(Yu=null,Zu=0,yi()),o}function qd(){for(;Xu!==null;)Xd(Xu)}function Jd(e,t){var n=Ju;Ju|=2;var r=Ud(),a=Wd();Yu!==e||Zu!==t?(gd=null,hd=Le()+500,Bd(e,t)):td=it(e,t);a:do try{if(Qu!==0&&Xu!==null){t=Xu;var o=$u;b:switch(Qu){case 1:Qu=0,$u=null,Qd(e,t,o,1);break;case 2:case 9:if(Wa(o)){Qu=0,$u=null,Zd(t);break}t=function(){Qu!==2&&Qu!==9||Yu!==e||(Qu=7),Ef(e)},o.then(t,t);break a;case 3:Qu=7;break a;case 4:Qu=5;break a;case 7:Wa(o)?(Qu=0,$u=null,Zd(t)):(Qu=0,$u=null,Qd(e,t,o,7));break;case 5:var s=null;switch(Xu.tag){case 26:s=Xu.memoizedState;case 5:case 27:var c=Xu;if(s?Xm(s):c.stateNode.complete){Qu=0,$u=null;var l=c.sibling;if(l!==null)Xu=l;else{var u=c.return;u===null?Xu=null:(Xu=u,$d(u))}break b}}Qu=0,$u=null,Qd(e,t,o,5);break;case 6:Qu=0,$u=null,Qd(e,t,o,6);break;case 8:zd(),id=6;break a;default:throw Error(i(462))}}Yd();break}catch(t){Vd(e,t)}while(1);return da=ua=null,B.H=r,B.A=a,Ju=n,Xu===null?(Yu=null,Zu=0,yi(),id):0}function Yd(){for(;Xu!==null&&!Fe();)Xd(Xu)}function Xd(e){var t=il(e.alternate,e,rd);e.memoizedProps=e.pendingProps,t===null?$d(e):Xu=t}function Zd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Rc(n,t,t.pendingProps,t.type,void 0,Zu);break;case 11:t=Rc(n,t,t.pendingProps,t.type.render,t.ref,Zu);break;case 5:X(t);var r=t;r===Xi&&(Qi?(ia(r),r.tag===5&&r.stateNode!=null&&(Zi=r.stateNode)):(ia(r),Qi=!0));default:pl(n,t),t=Xu=Ai(t,rd),t=il(n,t,rd)}e.memoizedProps=e.pendingProps,t===null?$d(e):Xu=t}function Qd(e,t,n,r){da=ua=null,X(t),Xa=null,Za=0;var i=t.return;try{if(Cc(e,i,t,n,Zu)){id=1,vc(e,Li(n,e.current)),Xu=null;return}}catch(t){if(i!==null)throw Xu=i,t;id=1,vc(e,Li(n,e.current)),Xu=null;return}t.flags&32768?(Qi||r===1?e=!0:td||Zu&536870912?e=!1:(ed=e=!0,(r===2||r===9||r===3||r===6)&&(r=So.current,r!==null&&r.tag===13&&(r.flags|=16384))),ef(t,e)):$d(t)}function $d(e){var t=e;do{if(t.flags&32768){ef(t,ed);return}e=t.return;var n=dl(t.alternate,t,rd);if(n!==null){Xu=n;return}if(t=t.sibling,t!==null){Xu=t;return}Xu=t=e}while(t!==null);id===0&&(id=5)}function ef(e,t){do{var n=fl(e.alternate,e);if(n!==null){n.flags&=32767,Xu=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Xu=e;return}Xu=e=n}while(e!==null);id=6,Xu=null}function tf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do uf();while(vd!==0);if(Ju&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Yu&&(Xu=Yu=null,Zu=0),bd=t,yd=e,xd=n,Cd=a,wd=r,nf(e,t,n,s,c,l,f)}}function nf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Sd=s,s|=vi,ut(e,n,s,r,i,a),Ed=null,(n&335544064)===n?(Dd=Da(e),r=10262):(Dd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,yf(Ve,function(){return df(),null})):(e.callbackNode=null,e.callbackPriority=0),Ml=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=B.T,B.T=null,i=de.p,de.p=2,a=Ju,Ju|=4;try{su(e,t,n)}finally{Ju=a,de.p=i,B.T=r}}vd=1,Ml?Td=Pp(o,e.containerInfo,Dd,of,sf,af,cf,df,rf,null,null):(of(),sf(),cf())}function rf(e){if(vd!==0){var t=yd.onRecoverableError;t(e,{componentStack:null})}}function af(){vd===3&&(vd=0,Ou(bd,yd),vd=4)}function of(){if(vd===1){vd=0;var e=yd,t=bd,n=xd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=B.T,B.T=null;var i=de.p;de.p=2;var a=Ju;Ju|=4;try{iu=au=!1,wu(t,e,n),n=up;var o=Hr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Vr(s.ownerDocument.documentElement,s)){if(c!==null&&Ur(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Br(s,h),v=Br(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}_h=!!lp,up=lp=null}finally{Ju=a,de.p=i,B.T=r}}e.current=t,vd=2}}function sf(){if(vd===2){vd=0;var e=yd,t=bd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=B.T,B.T=null;var r=de.p;de.p=2;var i=Ju;Ju|=4;try{lu(e,t.alternate,t)}finally{Ju=i,de.p=r,B.T=n}}vd=3}}function cf(){if(vd===4||vd===3){vd=0;var e=Td;Td=null,Ie();var t=yd,n=bd,r=xd,i=wd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?vd=5:(vd=0,bd=yd=null,lf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(_d=null),ht(r),n=n.stateNode,qe&&typeof qe.onCommitFiberRoot==`function`)try{qe.onCommitFiberRoot(Ke,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=B.T,a=de.p,de.p=2,B.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{B.T=n,de.p=a}}if(i=Ed,o=Dd,Dd=null,i!==null&&(Ed=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);xd&3&&uf(),Ef(t),a=t.pendingLanes,r&261930&&a&42?t===kd?Od++:(Od=0,kd=t):(Od=0,kd=null),Df(0,!1)}}function lf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,wa(t)))}function uf(){return Td!==null&&(Td.skipTransition(),Td=null),of(),sf(),cf(),df()}function df(){if(vd!==5)return!1;var e=yd,t=Sd;Sd=0;var n=ht(xd),r=B.T,a=de.p;try{de.p=32>n?32:n,B.T=null,n=Cd,Cd=null;var o=yd,s=xd;if(vd=0,bd=yd=null,xd=0,Ju&6)throw Error(i(331));var c=Ju;if(Ju|=4,Uu(o.current),Fu(o,o.current,s,n),Ju=c,Df(0,!1),qe&&typeof qe.onPostCommitFiberRoot==`function`)try{qe.onPostCommitFiberRoot(Ke,o)}catch{}return!0}finally{de.p=a,B.T=r,lf(e,t)}}function ff(e,t,n){t=Li(n,t),t=bc(e.stateNode,t,2),e=co(e,t,2),e!==null&&(lt(e,2),Ef(e))}function pf(e,t,n){if(e.tag===3)ff(e,e,n);else for(;t!==null;){if(t.tag===3){ff(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(_d===null||!_d.has(r))){e=Li(n,e),n=xc(2),r=co(t,n,2),r!==null&&(Sc(n,r,t,e),lt(r,2),Ef(r));break}}t=t.return}}function mf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new qu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(nd=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Yu===e&&(Zu&n)===n&&(id===4||id===3&&(Zu&62914560)===Zu&&300>Le()-pd?Ju&2?sd|=n:Bd(e,0):sd|=n,ld===Zu&&(ld=0)),Ef(e)}function gf(e,t){t===0&&(t=st()),e=Si(e,t),e!==null&&(lt(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),gf(e,n)}function yf(e,t){return Ne(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ye(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=Zu,a=rt(r,r===Yu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||it(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&_p()&&(e=Tf);for(var t=Le(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}vd!==0&&vd!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ye(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ot(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Yu,n=Zu,n=rt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Qu===2||Qu===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Pe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||it(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Pe(r),ht(n)){case 2:case 8:n=Be;break;case 32:n=Ve;break;case 268435456:n=Ue;break;default:n=Ve}return r=jf.bind(null,e),n=Ne(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Pe(r),e.callbackPriority=2,e.callbackNode=null,2}function jf(e,t){if(vd!==0&&vd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(uf()&&e.callbackNode!==n)return null;var r=Zu;return r=rt(e,e===Yu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Pd(e,r,t),Af(e,Le()),e.callbackNode!=null&&e.callbackNode===n?jf.bind(null,e):null)}function Mf(e,t){if(uf())return null;Pd(e,t,!0)}function Nf(){Sp(function(){Ju&6?Ne(ze,Of):kf()})}function Pf(){if(Tf===0){var e=Aa;e===0&&(e=$e,$e<<=1,!($e&261888)&&($e=256)),Tf=e}return Tf}function Ff(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:pn(e)}function If(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Ff((i[yt]||null).action),o=r.submitter;o&&(t=(t=o[yt]||null)?Ff(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Fn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Tf!==0){var e=new FormData(i,o);Ks(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Ks(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Lf=0;Lf<li.length;Lf++){var Rf=li[Lf];ui(Rf.toLowerCase(),`on`+(Rf[0].toUpperCase()+Rf.slice(1)))}ui(ti,`onAnimationEnd`),ui(ni,`onAnimationIteration`),ui(ri,`onAnimationStart`),ui(`dblclick`,`onDoubleClick`),ui(`focusin`,`onFocus`),ui(`focusout`,`onBlur`),ui(ii,`onTransitionRun`),ui(ai,`onTransitionStart`),ui(oi,`onTransitionCancel`),ui(si,`onTransitionEnd`),It(`onMouseEnter`,[`mouseout`,`mouseover`]),It(`onMouseLeave`,[`mouseout`,`mouseover`]),It(`onPointerEnter`,[`pointerout`,`pointerover`]),It(`onPointerLeave`,[`pointerout`,`pointerover`]),Ft(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ft(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ft(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ft(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ft(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ft(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var zf=`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(` `),Bf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(zf));function Vf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){hi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){hi(e)}i.currentTarget=null,a=c}}}}function Hf(e,t){var n=t[xt];n===void 0&&(n=t[xt]=new Set);var r=e+`__bubble`;n.has(r)||(Kf(t,e,2,!1),n.add(r))}function Uf(e,t,n){var r=0;t&&(r|=4),Kf(n,e,r,t)}var Wf=`_reactListening`+Math.random().toString(36).slice(2);function Gf(e){if(!e[Wf]){e[Wf]=!0,Nt.forEach(function(t){t!==`selectionchange`&&(Bf.has(t)||Uf(t,!1,e),Uf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wf]||(t[Wf]=!0,Uf(`selectionchange`,!1,t))}}function Kf(e,t,n,r){switch(wh(t)){case 2:var i=vh;break;case 8:i=yh;break;default:i=bh}n=i.bind(null,t,n,e),i=void 0,!wn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function qf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Dt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}xn(function(){var r=a,i=gn(n),s=[];a:{var c=ci.get(e);if(c!==void 0){var l=Fn,u=e;switch(e){case`keypress`:if(An(n)===0)break a;case`keydown`:case`keyup`:l=$n;break;case`focusin`:u=`focus`,l=Wn;break;case`focusout`:u=`blur`,l=Wn;break;case`beforeblur`:case`afterblur`:l=Wn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Hn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Un;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=nr;break;case ti:case ni:case ri:l=Gn;break;case si:l=rr;break;case`scroll`:case`scrollend`:l=Ln;break;case`wheel`:l=ir;break;case`copy`:case`cut`:case`paste`:l=Kn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=er;break;case`submit`:l=tr;break;case`toggle`:case`beforetoggle`:l=ar}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Sn(m,p),g!=null&&d.push(Jf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==hn&&(u=n.relatedTarget||n.fromElement)&&(Dt(u)||u[bt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Dt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Hn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=er,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:kt(c),h=l==null?u:kt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Dt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,Xf):null,c!==null&&Zf(s,u,c,d,!1),l!==null&&f!==null&&Zf(s,f,l,d,!0)))}a:{if(c=r?kt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=wr;else if(vr(c)){if(Tr)_=Pr;else{_=Mr;var v=jr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&un(r.elementType)&&(_=wr):_=Nr;if(_&&=_(e,r)){yr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?kt(r):window,e){case`focusin`:(vr(v)||v.contentEditable===`true`)&&(Gr=v,Kr=r,qr=null);break;case`focusout`:qr=Kr=Gr=null;break;case`mousedown`:Jr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Jr=!1,Yr(s,n,i);break;case`selectionchange`:if(Wr)break;case`keydown`:case`keyup`:Yr(s,n,i)}var y;if(sr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else mr?W(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(ur&&n.locale!==`ko`&&(mr||b!==`onCompositionStart`?b===`onCompositionEnd`&&mr&&(y=kn()):(En=i,Dn=`value`in En?En.value:En.textContent,mr=!0)),v=Yf(r,b),0<v.length&&(b=new qn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=pr(n),y!==null&&(b.data=y)))),(y=lr?hr(e,n):gr(e,n))&&(b=Yf(r,`onBeforeInput`),0<b.length&&(v=new qn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),If(s,e,r,n,i)}Vf(s,t)})}function Jf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Sn(e,n),i!=null&&r.unshift(Jf(e,i,a)),i=Sn(e,t),i!=null&&r.push(Jf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Xf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zf(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Sn(n,a),l!=null&&o.unshift(Jf(n,l,c))):i||(l=Sn(n,a),l!=null&&o.push(Jf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Qf=/\r\n?/g,$f=/\u0000|\uFFFD/g;function ep(e){return(typeof e==`string`?e:``+e).replace(Qf,`
|
|
10
|
-
`).replace($f,``)}function tp(e,t){return t=ep(t),ep(e)===t}function np(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||on(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&on(e,``+r);else return;break;case`className`:Wt(e,`class`,r);break;case`tabIndex`:Wt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Wt(e,n,r);break;case`style`:ln(e,r,o);return;case`data`:if(t!==`object`){Wt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=pn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&np(e,t,`name`,a.name,a,null),np(e,t,`formEncType`,a.formEncType,a,null),np(e,t,`formMethod`,a.formMethod,a,null),np(e,t,`formTarget`,a.formTarget,a,null)):(np(e,t,`encType`,a.encType,a,null),np(e,t,`method`,a.method,a,null),np(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=pn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=mn);return;case`onScroll`:r!=null&&Hf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Hf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=pn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Hf(`beforetoggle`,e),Hf(`toggle`,e),Ut(e,`popover`,r);break;case`xlinkActuate`:Gt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Gt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Gt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Gt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Gt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Gt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Gt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Gt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Gt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ut(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=dn.get(n)||n,Ut(e,n,r);else return}Vt=!0}function rp(e,t,n,r,a,o){switch(n){case`style`:ln(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)on(e,r);else if(typeof r==`number`||typeof r==`bigint`)on(e,``+r);else return;break;case`onScroll`:r!=null&&Hf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Hf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=mn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Pt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[yt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Vt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ut(e,n,r)}return}Vt=!0}function ip(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Hf(`error`,e),Hf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:np(e,t,o,s,n,null)}}a&&np(e,t,`srcSet`,n.srcSet,n,null),r&&np(e,t,`src`,n.src,n,null);return;case`input`:Hf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:np(e,t,r,d,n,null)}}en(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Hf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:np(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&nn(e,!!r,n,!0):nn(e,!!r,t,!1);return;case`textarea`:for(s in Hf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:np(e,t,s,c,n,null)}an(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:np(e,t,l,r,n,null)}return;case`dialog`:Hf(`beforetoggle`,e),Hf(`toggle`,e),Hf(`cancel`,e),Hf(`close`,e);break;case`iframe`:case`object`:Hf(`load`,e);break;case`video`:case`audio`:for(r=0;r<zf.length;r++)Hf(zf[r],e);break;case`image`:Hf(`error`,e),Hf(`load`,e);break;case`details`:Hf(`toggle`,e);break;case`embed`:case`source`:case`link`:Hf(`error`,e),Hf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:np(e,t,u,r,n,null)}return;default:if(un(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&rp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&np(e,t,c,r,n,null))}var ap={};function op(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||np(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Vt=!0),o=m;break;case`name`:m!==f&&(Vt=!0),a=m;break;case`checked`:m!==f&&(Vt=!0),u=m;break;case`defaultChecked`:m!==f&&(Vt=!0),d=m;break;case`value`:m!==f&&(Vt=!0),s=m;break;case`defaultValue`:m!==f&&(Vt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&np(e,t,p,m,r,f)}}$t(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||np(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Vt=!0),p=o;break;case`defaultValue`:o!==l&&(Vt=!0),c=o;break;case`multiple`:o!==l&&(Vt=!0),s=o;default:o!==l&&np(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?nn(e,!!n,n?[]:``,!1):nn(e,!!n,t,!0)):nn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:np(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Vt=!0),p=a;break;case`defaultValue`:a!==o&&(Vt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&np(e,t,s,a,r,o)}rn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:np(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Vt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:np(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&np(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:np(e,t,u,p,r,m)}return;default:if(un(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&rp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||rp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&np(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||np(e,t,f,p,r,m)}function sp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function cp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&sp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&sp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var lp=null,up=null;function dp(e){return e.nodeType===9?e:e.ownerDocument}function fp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function pp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function mp(e,t,n,r){return n=dp(n).createElement(e),n[vt]=r,n[yt]=t,ip(n,e,t),jt(n),n}function hp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var gp=null;function _p(){var e=window.event;return e&&e.type===`popstate`?e!==gp&&(gp=e,!0):(gp=null,!1)}var vp=typeof setTimeout==`function`?setTimeout:void 0,yp=typeof clearTimeout==`function`?clearTimeout:void 0,bp=typeof Promise==`function`?Promise:void 0,xp=typeof requestAnimationFrame==`function`?requestAnimationFrame:vp,Sp=typeof queueMicrotask==`function`?queueMicrotask:bp===void 0?vp:function(e){return bp.resolve(null).then(e).catch(Cp)};function Cp(e){setTimeout(function(){throw e})}function wp(e){return e===`head`}function Tp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Uh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)vm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,vm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[wt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&vm(e.ownerDocument.body)}n=i}while(n);Uh(t)}function Ep(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Dp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Op(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function kp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Ap(e){return kp(e.getBoundingClientRect(),getComputedStyle(e),e)}function jp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return kp(t,n,e)}function Mp(e){return e.documentElement.clientHeight}function Np(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Pp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Mp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Zm(f),u>eh){s.length=o;break}f=new Promise(Np.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Fp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Fp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Fp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Fp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Ip(e){return{name:e,group:new Fp(`group`,e),imagePair:new Fp(`image-pair`,e),old:new Fp(`old`,e),new:new Fp(`new`,e)}}function Lp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Lp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Hp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Bp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),p(this._fragmentFiber.child,!1,Rp,e,s,r)}this._eventListeners=a}};function Rp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Lp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Hp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Bp(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,zp,e,n,i),r.splice(t,1),a!==null&&a()}};function zp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Bp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Vp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Hp(e,t,n,r){if(e.length===0)return-1;r=Vp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Vp(a.optionsOrUseCapture)===r)return i}return-1}Lp.prototype.dispatchEvent=function(e){var t=h(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Bp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Bp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Lp.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Up,e,void 0,void 0)};function Up(e,t){return e.tag!==6&&(e=b(e),mm(e,t))}Lp.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Wp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Up(t[n],e);n--);};function Wp(e,t){return t.push(e),!1}Lp.prototype.blur=function(){var e=h(this._fragmentFiber);e!==null&&(e=b(e),e=dp(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Gp,e,void 0,void 0))};function Gp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Lp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,Kp,e,void 0,void 0)};function Kp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Lp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,qp,e,void 0,void 0);for(var n=t=0;n<Q.length;n++){var r=Q[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Q[t++]=r}Q.length=t}};function qp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Q=[],Jp=!1;function Yp(e,t,n){Q.push({fragmentInstance:e,observer:t,instance:n}),Jp||(Jp=!0,hm(function(){Jp=!1;var e=Q;Q=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Lp.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,Xp,e,void 0,void 0),e};function Xp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Lp.prototype.getRootNode=function(e){var t=h(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Lp.prototype.compareDocumentPosition=function(e){var t=h(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,Wp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Zp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Zp(e,t,n,r,i){var a=Dt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=h(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(p(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(p(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function Qp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Lp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];p(this._fragmentFiber.child,!1,Wp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||h(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),Qp(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),Qp(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function $p(e,t){return e=b(e),em(e,t),!1}function em(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function tm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Bp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Q.length;i++){var a=Q[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Q[r++]=a)}Q.length=r,n.observe(e)}),em(e,t))}function nm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Bp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Yp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function rm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:rm(n),Et(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function im(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[wt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=um(e.nextSibling),e===null)break}return null}function am(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=um(e.nextSibling),e===null))return null;return e}function om(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=um(e.nextSibling),e===null))return null;return e}function sm(e){return e.data===`$?`||e.data===`$~`}function cm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function lm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function um(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var dm=null;function fm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return um(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function pm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function mm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function hm(e){xp(function(){xp(function(t){return e(t)})})}function gm(e,t,n){switch(t=dp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function _m(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&np(e,t,r,null,ap,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===mn&&(e.onclick=null),Et(e)}function vm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Et(e)}var ym=new Map,bm=new Set;function xm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Sm=de.d;de.d={f:Cm,r:wm,D:Dm,C:Om,L:km,m:Am,X:Mm,S:jm,M:Nm};function Cm(){var e=Sm.f(),t=Rd();return e||t}function wm(e){var t=Ot(e);t!==null&&t.tag===5&&t.type===`form`?Js(t):Sm.r(e)}var Tm=typeof document>`u`?null:document;function Em(e,t,n){var r=Tm;if(r&&typeof t==`string`&&t){var i=Qt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),bm.has(i)||(bm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),ip(t,`link`,e),jt(t),r.head.appendChild(t)))}}function Dm(e){Sm.D(e),Em(`dns-prefetch`,e,null)}function Om(e,t){Sm.C(e,t),Em(`preconnect`,e,t)}function km(e,t,n){Sm.L(e,t,n);var r=Tm;if(r&&e&&t){var i=`link[rel="preload"][as="`+Qt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Qt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Qt(n.imageSizes)+`"]`)):i+=`[href="`+Qt(e)+`"]`;var a=i;switch(t){case`style`:a=Fm(e);break;case`script`:a=zm(e)}if(!(ym.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),ym.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Im(a))||t===`script`&&r.querySelector(Bm(a))))){var o=r.createElement(`link`);ip(o,`link`,e),t===`style`&&(o[Tt]=!0,o.onload=o.onerror=function(){Mt(o)}),jt(o),r.head.appendChild(o)}}}function Am(e,t){Sm.m(e,t);var n=Tm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Qt(r)+`"][href="`+Qt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=zm(e)}if(!ym.has(a)&&(e=D({rel:`modulepreload`,href:e},t),ym.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Bm(a)))return}r=n.createElement(`link`),ip(r,`link`,e),jt(r),n.head.appendChild(r)}}}function jm(e,t,n){Sm.S(e,t,n);var r=Tm;if(r&&e){var i=At(r).hoistableStyles,a=Fm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Im(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=ym.get(a))&&Um(e,n);var c=o=r.createElement(`link`);jt(c),ip(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Hm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Mm(e,t){Sm.X(e,t);var n=Tm;if(n&&e){var r=At(n).hoistableScripts,i=zm(e),a=r.get(i);a||(a=n.querySelector(Bm(i)),a||(e=D({src:e,async:!0},t),(t=ym.get(i))&&Wm(e,t),a=n.createElement(`script`),jt(a),ip(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t){Sm.M(e,t);var n=Tm;if(n&&e){var r=At(n).hoistableScripts,i=zm(e),a=r.get(i);a||(a=n.querySelector(Bm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=ym.get(i))&&Wm(e,t),a=n.createElement(`script`),jt(a),ip(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pm(e,t,n,r){var a=(a=ye.current)?xm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Fm(n.href),t=At(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Fm(n.href);var o=At(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Im(e)))?o._p||(s.instance=o,s.state.loading=5):(o=ym.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ym.set(e,o)),Rm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=zm(n),t=At(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Fm(e){return`href="`+Qt(e)+`"`}function Im(e){return`link[rel="stylesheet"][`+e+`]`}function Lm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Rm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Tt]){r.loading=1;return}}else t=e.createElement(`link`),t[Tt]=!0,t.onload=t.onerror=Mt.bind(null,t),ip(t,`link`,n),jt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function zm(e){return`[src="`+Qt(e)+`"]`}function Bm(e){return`script[async]`+e}function Vm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Qt(n.href)+`"]`);if(r)return t.instance=r,jt(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),jt(r),ip(r,`style`,a),Hm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Fm(n.href);var o=e.querySelector(Im(a));if(o)return t.state.loading|=4,t.instance=o,jt(o),o;r=Lm(n),(a=ym.get(a))&&Um(r,a),o=(e.ownerDocument||e).createElement(`link`),jt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),ip(o,`link`,r),t.state.loading|=4,Hm(o,n.precedence,e),t.instance=o;case`script`:return o=zm(n.src),(a=e.querySelector(Bm(o)))?(t.instance=a,jt(a),a):(r=n,(a=ym.get(o))&&(r=D({},n),Wm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),jt(a),ip(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Hm(r,n.precedence,e));return t.instance}function Hm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Wm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Gm=null;function Km(e,t,n){if(Gm===null){var r=new Map,i=Gm=new Map;i.set(n,r)}else i=Gm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[wt]||a[vt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function qm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Jm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Ym(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Xm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Zm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Qm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Zm(t),e.suspenseyImages.push(t)),e=ih.bind(e),t.decode().then(e,e))}function $m(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Fm(r.href),a=t.querySelector(Im(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,jt(a);return}a=t.ownerDocument||t,r=Lm(r),(i=ym.get(i))&&Um(r,i),a=a.createElement(`link`),jt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),ip(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var eh=0;function th(e,t){return e.stylesheets&&e.count===0&&oh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&oh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&eh===0&&(eh=62500*cp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&oh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>eh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function nh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)oh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function rh(){this.count--,nh(this)}function ih(){this.imgCount--,nh(this)}var ah=null;function oh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ah=new Map,t.forEach(sh,e),ah=null,rh.call(e))}function sh(e,t){if(!(t.state.loading&4)){var n=ah.get(e);if(n)var r=n.get(null);else{n=new Map,ah.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=rh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ch={$$typeof:F,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function lh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ct(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ct(0),this.hiddenUpdates=ct(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function uh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new lh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Di(3,null,null,t),e.current=a,a.stateNode=e,t=Ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ao(a),e}function dh(e){return e?(e=Ti,e):Ti}function fh(e,t,n,r,i,a){i=dh(i),r.context===null?r.context=i:r.pendingContext=i,r=so(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=co(e,r,t),n!==null&&(Nd(n,e,t),lo(n,e,t))}function ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mh(e,t){ph(e,t),(e=e.alternate)&&ph(e,t)}function hh(e){if(e.tag===13||e.tag===31){var t=Si(e,67108864);t!==null&&Nd(t,e,67108864),mh(e,67108864)}}function gh(e){if(e.tag===13||e.tag===31){var t=Ad();t=mt(t);var n=Si(e,t);n!==null&&Nd(n,e,t),mh(e,t)}}var _h=!0;function vh(e,t,n,r){var i=B.T;B.T=null;var a=de.p;try{de.p=2,bh(e,t,n,r)}finally{de.p=a,B.T=i}}function yh(e,t,n,r){var i=B.T;B.T=null;var a=de.p;try{de.p=8,bh(e,t,n,r)}finally{de.p=a,B.T=i}}function bh(e,t,n,r){if(_h){var i=xh(r);if(i===null)qf(e,t,r,Sh,n),Nh(e,r);else if(Fh(i,e,t,n,r))r.stopPropagation();else if(Nh(e,r),t&4&&-1<Mh.indexOf(e)){for(;i!==null;){var a=Ot(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=nt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ye(o);s.entanglements[1]|=c,o&=~c}Ef(a),!(Ju&6)&&(hd=Le()+500,Df(0,!1))}}break;case 31:case 13:s=Si(a,2),s!==null&&Nd(s,a,2),Rd(),mh(a,2)}if(a=xh(r),a===null&&qf(e,t,r,Sh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else qf(e,t,r,null,n)}}function xh(e){return e=gn(e),Ch(e)}var Sh=null;function Ch(e){if(Sh=null,e=Dt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Sh=e,null}function wh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`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(Re()){case ze:return 2;case Be:return 8;case Ve:case He:return 32;case Ue:return 268435456;default:return 32}default:return 32}}var Th=!1,Eh=null,Dh=null,Oh=null,kh=new Map,Ah=new Map,jh=[],Mh=`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 Nh(e,t){switch(e){case`focusin`:case`focusout`:Eh=null;break;case`dragenter`:case`dragleave`:Dh=null;break;case`mouseover`:case`mouseout`:Oh=null;break;case`pointerover`:case`pointerout`:kh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ah.delete(t.pointerId)}}function Ph(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ot(t),t!==null&&hh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Fh(e,t,n,r,i){switch(t){case`focusin`:return Eh=Ph(Eh,e,t,n,r,i),!0;case`dragenter`:return Dh=Ph(Dh,e,t,n,r,i),!0;case`mouseover`:return Oh=Ph(Oh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return kh.set(a,Ph(kh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ah.set(a,Ph(Ah.get(a)||null,e,t,n,r,i)),!0}return!1}function Ih(e){var t=Dt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,_t(e.priority,function(){gh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,_t(e.priority,function(){gh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);hn=r,n.target.dispatchEvent(r),hn=null}else return t=Ot(n),t!==null&&hh(t),e.blockedOn=n,!1;t.shift()}return!0}function Rh(e,t,n){Lh(e)&&n.delete(t)}function zh(){Th=!1,Eh!==null&&Lh(Eh)&&(Eh=null),Dh!==null&&Lh(Dh)&&(Dh=null),Oh!==null&&Lh(Oh)&&(Oh=null),kh.forEach(Rh),Ah.forEach(Rh)}function Bh(e,n){e.blockedOn===n&&(e.blockedOn=null,Th||(Th=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zh)))}var Vh=null;function Hh(e){Vh!==e&&(Vh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Vh===e&&(Vh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Ch(r||n)===null)continue;break}var a=Ot(n);a!==null&&(e.splice(t,3),t-=3,Ks(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Uh(e){function t(t){return Bh(t,e)}Eh!==null&&Bh(Eh,e),Dh!==null&&Bh(Dh,e),Oh!==null&&Bh(Oh,e),kh.forEach(t),Ah.forEach(t);for(var n=0;n<jh.length;n++){var r=jh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<jh.length&&(n=jh[0],n.blockedOn===null);)Ih(n),n.blockedOn===null&&jh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[yt]||null;if(typeof a==`function`)o||Hh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[yt]||null)s=o.formAction;else if(Ch(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Hh(n)}}}function Wh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Gh(e){this._internalRoot=e}Kh.prototype.render=Gh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;fh(n,Ad(),e,t,null,null)},Kh.prototype.unmount=Gh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fh(e.current,2,null,e,null,null),Rd(),t[bt]=null}};function Kh(e){this._internalRoot=e}Kh.prototype.unstable_scheduleHydration=function(e){if(e){var t=gt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jh.length&&t!==0&&t<jh[n].priority;n++);jh.splice(n,0,e),n===0&&Ih(e)}};var qh=n.version;if(qh!==`19.3.0`)throw Error(i(527,qh,`19.3.0`));de.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Jh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:B,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Yh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yh.isDisabled&&Yh.supportsFiber)try{Ke=Yh.inject(Jh),qe=Yh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=hc,s=gc,c=_c;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=uh(e,1,!1,null,null,n,r,null,o,s,c,Wh),e[bt]=t.current,Gf(e),new Gh(t)}})),v=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=_()})),y=l(f()),b=v(),x=`@unassigned`,S=e=>e??`@unassigned`,C=e=>e===`@unassigned`?`/api/unassigned`:`/api/projects/${encodeURIComponent(e)}`,w=e=>typeof e==`string`,T=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},E=e=>e==null?``:String(e),D=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},O=/###/g,k=e=>e&&e.includes(`###`)?e.replace(O,`.`):e,A=e=>!e||w(e),j=(e,t,n)=>{let r=w(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(A(e))return{};let t=k(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return A(e)?{}:{obj:e,k:k(r[i])}},M=(e,t,n)=>{let{obj:r,k:i}=j(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=j(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=j(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},N=(e,t,n,r)=>{let{obj:i,k:a}=j(e,t,Object);i[a]=i[a]||[],i[a].push(n)},P=(e,t)=>{let{obj:n,k:r}=j(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},F=(e,t,n)=>{let r=P(e,n);return r===void 0?P(t,n):r},I=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?w(e[r])||e[r]instanceof String||w(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):I(e[r],t[r],n):e[r]=t[r]);return e},ee=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),te={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},ne=e=>w(e)?e.replace(/[&<>"'\/]/g,e=>te[e]):e,L=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},re=[` `,`,`,`?`,`!`,`;`],ie=new L(20),ae=(e,t,n)=>{t||=``,n||=``;let r=re.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=ie.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},oe=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},se=e=>e?.replace(/_/g,`-`),ce={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},le=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||ce,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>w(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),w(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},ue=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},R=new WeakSet,z=class extends ue{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):w(n)&&i?o.push(...n.split(i)):o.push(n)));let s=P(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!w(n)?s:oe(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),M(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(w(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=P(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?I(s,n,i):s={...s,...n},M(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>{let n=t[e];return R.has(n)?!0:!n||Object.keys(n).length===0?!1:(typeof n==`object`&&R.add(n),!0)})}toJSON(){return this.data}},B={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},de=Symbol(`i18next/PATH_KEY`);function fe(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===de?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function pe(e,t){let{[de]:n}=e(fe()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var me=e=>!w(e)&&typeof e!=`boolean`&&typeof e!=`number`,he=class e extends ue{constructor(e,t={}){super(),D([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=le.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=me(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ae(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:w(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:w(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=pe(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?pe(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!w(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,T=b&&!i.ordinal&&i.count===0,E=T&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,D=m;y&&!m&&x&&(D=E);let O=me(D),k=Object.prototype.toString.apply(D);if(y&&D&&O&&!_.includes(k)&&!(w(v)&&Array.isArray(D))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,D,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(D),t=e?[]:{},n=e?g:h;for(let e in D)if(Object.prototype.hasOwnProperty.call(D,e)){let r=`${n}${o}${e}`;t[e]=x&&!m?this.translate(r,{...i,defaultValue:me(E)?E[e]:void 0,joinArrays:!1,ns:c}):this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=D[e])}m=t}}else if(y&&w(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=E),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&E!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?E:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);T&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||E)})}):n(e,s,E))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=w(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!w(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=w(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=B.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return w(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?pe(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!w(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(w(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!w(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},ge=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=le.create(`languageUtils`),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(e=se(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=se(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(w(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),w(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.options.fallbackLng,r=Array.isArray(n)?n.join(`|`):n;r!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=r);let i=t===void 0||t===!1||w(t),a=t===void 0&&typeof this.options.fallbackLng==`function`,o=w(e)&&i&&!a,s=null;if(o){let n;n=t===void 0?`undefined`:t===!1?`boolean:false`:`string:${t}`,s=`${e.length}:${e}|${n}`}if(s!==null){let e=this.resolveHierarchyCache[s];if(e!==void 0)return e.slice()}let c=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),l=[],u=e=>{e&&(this.isSupportedCode(e)?l.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return w(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&u(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&u(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&u(this.getLanguagePartFromCode(e))):w(e)&&u(this.formatLanguageCode(e)),c.forEach(e=>{let t=this.formatLanguageCode(e);l.includes(t)||u(t)}),s===null?l:(this.resolveHierarchyCache[s]=l,l.slice())}},V={zero:0,one:1,two:2,few:3,many:4,other:5},_e={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},ve=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=le.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=se(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),_e;if(!e.match(/-|_/))return _e;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>V[e]-V[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},ye=(e,t,n,r=`.`,i=!0)=>{let a=F(e,t,n);return!a&&i&&w(n)&&(a=oe(e,n,r),a===void 0&&(a=oe(t,n,r))),a},be=e=>e.replace(/\$/g,`$$$$`),xe=class{constructor(e={}){this.logger=le.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?ne:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?ee(i):a||`{{`,this.suffix=o?ee(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?ee(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?ee(l):``,this.nestingPrefix=d?ee(d):f||ee(`$t(`),this.nestingSuffix=p?ee(p):m||ee(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']|"[^"]*"|'[^']*'|\\((?:[^()"']|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=ye(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(ye(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0){if(typeof l==`function`){let t=l(e,i,r);a=w(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``}else!w(a)&&!this.useRawValueToEscape&&(a=E(a));let s=t.safeValue(a);if(e=e.replace(i[0],be(s)),u?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${ee(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e},s=new RegExp(this.nestingRegexp),c=``,l=0;for(;r=s.exec(e);){let u=[];a={...n},a=a.replace&&!w(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let d=/{.*}/s.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(d!==-1&&(u=r[1].slice(d).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,d)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!w(i))return i;w(i)||(i=E(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),u.length&&(i=u.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),c+=e.slice(l,r.index)+E(i),l=s.lastIndex,this.regexp.lastIndex=0}return l?c+e.slice(l):e}},Se=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Ce=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(se(r),i),t[o]=s),s(n)}},we=e=>(t,n,r)=>e(se(n),r)(t),Te=class{constructor(e={}){this.logger=le.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Ce:we;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ce(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf(`(`)>-1&&!t.includes(`)`)&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;a.push(t)}return a.reduce((e,t)=>{let{formatName:i,formatOptions:a}=Se(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},Ee=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},De=class extends ue{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=le.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{N(n.loaded,[i],a),Ee(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}o&&s&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i):a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2)try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}else return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();w(e)&&(e=this.languageUtils.toResolveHierarchy(e)),w(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);else if(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}},Oe=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),w(e[1])&&(t.defaultValue=e[1]),w(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ke=e=>(w(e.ns)&&(e.ns=[e.ns]),w(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),w(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),Ae=()=>{},je=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Me=class e extends ue{constructor(e={},t){if(super(),this.options=ke(e),this.services={},this.logger=le,this.modules={external:[]},je(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(w(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=Oe();this.options={...n,...this.options,...ke(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?le.init(r(this.modules.logger),this.options):le.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Te;let t=new ge(this.options);this.store=new z(this.options.resources,this.options);let n=this.services;n.logger=le,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new ve(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new xe(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new De(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new he(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=Ae,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=T(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Ae){let n=t,r=w(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=T();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Ae,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&B.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=T();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=w(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(w(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=pe(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=pe(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=pe(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return w(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}if(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return!0;let{languageUtils:o}=this.services,s=t.lng?o.isSupportedCode(n)&&o.toResolveHierarchy(n,!1)[0]:n;return!(s&&!a(s,e)||r&&!a(i,e))}loadNamespaces(e,t){let n=T();return this.options.ns?(w(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=T();w(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new ge(Oe());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Ae){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,preload:!1,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new z(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Oe().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new xe(n)}return a.translator=new he(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance(),Ne=Me.createInstance;Me.dir,Me.init,Me.loadResources,Me.reloadResources,Me.use,Me.changeLanguage,Me.getFixedT,Me.t,Me.exists,Me.setDefaultNamespace,Me.hasLoadedNamespace,Me.loadNamespaces,Me.loadLanguages;var Pe=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);Ve(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},Fe={},Ie=(e,t,n,r)=>{Ve(n)&&Fe[n]||(Ve(n)&&(Fe[n]=new Date),Pe(e,t,n,r))},Le=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},Re=(e,t,n)=>{e.loadNamespaces(t,Le(e,n))},ze=(e,t,n,r)=>{if(Ve(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Re(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Le(e,r))},Be=(e,t,n={})=>!t.languages||!t.languages.length?(Ie(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),Ve=e=>typeof e==`string`,He=e=>typeof e==`object`&&!!e,Ue=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,We={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":`\xA0`," ":`\xA0`,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},Ge=e=>We[e],Ke={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(Ue,Ge),transDefaultProps:void 0},qe=(e={})=>{Ke={...Ke,...e}},Je=()=>Ke,Ye,Xe=e=>{Ye=e},Ze=()=>Ye,Qe={type:`3rdParty`,init(e){qe(e.options.react),Xe(e)}},$e=(0,y.createContext)(),et=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},tt=o((e=>{var t=f();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),nt=o(((e,t)=>{t.exports=tt()}))(),rt={t:(e,t)=>{if(Ve(t))return t;if(He(t)&&Ve(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},it=()=>()=>{},at=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,y.useContext)($e)||{},a=n||r||Ze();a&&!a.reportNamespaces&&(a.reportNamespaces=new et),a||Ie(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);let o=(0,y.useMemo)(()=>({...Je(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c,bindI18n:l,bindI18nStore:u}=o,d=e||i||a?.options?.defaultNS,f=Ve(d)?[d]:d||[`translation`],p=(0,y.useMemo)(()=>f,f);a?.reportNamespaces?.addUsedNamespaces?.(p);let m=(0,y.useRef)(0),h=(0,y.useCallback)(e=>{if(!a)return it;let t=()=>{m.current+=1,e()};return l&&a.on(l,t),u&&a.store.on(u,t),()=>{l&&l.split(` `).forEach(e=>a.off(e,t)),u&&u.split(` `).forEach(e=>a.store.off(e,t))}},[a,l,u]),g=(0,y.useRef)(),_=(0,y.useCallback)(()=>{if(!a)return rt;let e=!!(a.isInitialized||a.initializedStoreOnce)&&p.every(e=>Be(e,a,o)),n=t.lng||a.language,r=m.current,i=typeof c==`function`?pe(c,{...a.options,ns:p}):c,s=g.current;if(s&&s.i18n===a&&s.ready===e&&s.lng===n&&s.namespaces===p&&s.keyPrefix===i&&s.revision===r)return s;let l={t:a.getFixedT(n,o.nsMode===`fallback`?p:p[0],c,{scopeNs:p}),i18n:a,ready:e,lng:n,namespaces:p,keyPrefix:i,revision:r};return g.current=l,l},[a,p,c,o,t.lng]),[v,b]=(0,y.useState)(0),{t:x,ready:S}=(0,nt.useSyncExternalStore)(h,_,_),C;a&&s&&!S&&(C=new Promise(e=>{let n=()=>e();t.lng?ze(a,t.lng,p,n):Re(a,p,n)}),{t:x,ready:S}=_()),(0,y.useEffect)(()=>{if(a&&!S&&!s){let e=()=>b(e=>e+1);t.lng?ze(a,t.lng,p,e):Re(a,p,e)}},[a,t.lng,p,S,s,v]);let w=a||{},T=(0,y.useRef)(null),E=(0,y.useRef)(),D=e=>`${e.language}|${e.resolvedLanguage}|${e.languages?.join(`,`)}`,O=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},k=(0,y.useMemo)(()=>{let e=w,t=e&&D(e),n=e;e&&(T.current&&T.current.__original===e&&E.current===t?n=T.current:(n=O(e),T.current=n,E.current=t));let r=!S&&!s?(...e)=>(Ie(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),x(...e)):x,i=[r,n,S];return i.t=r,i.i18n=n,i.ready=S,i},[x,w,S,w.resolvedLanguage,w.language,w.languages]);if(a&&s&&!S){let e=!1;try{e=!1}catch{}throw e&&Ie(a,`SUSPENDED_WHILE_LOADING`,`useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook`),C}return k},ot={en:{account:{title:`Account usage`,scope:`Current Codex instance · account quotas, separate from session tokens.`,refresh:`Refresh`,refreshing:`Refreshing…`,updatedAt:`Updated {{time}}`,loading:`Reading account usage…`,signedOut:`Codex is not signed in.`,unsupported:`Usage is not available for this account or Codex instance.`,offline:`Codex is offline. Reconnect to read account usage.`,refreshFailed:`Refresh failed. Any displayed values are from the last successful read.`,noWindows:`No quota windows reported.`,quota:`Account quota`,primary:`Primary window`,secondary:`Secondary window`,used:`{{value}} used`,remaining:`{{value}} remaining`,usageUnknown:`Usage not reported`,resetsAt:`Resets {{time}}`,resetUnknown:`Reset time not reported`,resetPassed:`Reset time passed · refresh to confirm current usage`,exhausted:`Quota exhausted`,credits:`Credits`,unlimited:`Unlimited`,balance:`Balance: {{value}}`,balanceUnknown:`Balance not reported`,creditsAvailable:`Credits available`,creditsDepleted:`No credits available`,individualLimit:`Individual spend limit`,reportedUsed:`Used: {{value}}`,reportedLimit:`Limit: {{value}}`,spendControlReached:`Spend control reached`,spendControlNotReached:`Spend control not reached`,usageAllowed:`Included usage allowed`,usageBlocked:`Included usage not allowed`,resetCredits:`Available earned resets: {{count}}`,ownerCreditsDepleted:`Workspace owner credits depleted`,memberCreditsDepleted:`Workspace member credits depleted`,ownerUsageReached:`Workspace owner usage limit reached`,memberUsageReached:`Workspace member usage limit reached`},approvals:{working_directory:`Working directory:`,another_answer:`Another answer`,this_interaction_is_unsupported_no_approval_was_sent:`This interaction is unsupported; no approval was sent. Check compatibility diagnostics.`,request_could_not_be_handled:`Request could not be handled`,network_destination:`Network destination`,change_details:`Change details`,request_details:`Request details`,automatic_review:`Automatic review`,review_rationale:`Review rationale`,risk_assessment:`Risk assessment`,user_authorization_assessment:`User authorization assessment`,review_id:`Review ID`,operation_id:`Operation ID`,started_at:`Started at`,finished_at:`Finished at`,reviewing:`Reviewing`,allowed:`Allowed`,review_aborted:`Review aborted`,low:`Low`,medium:`Medium`,high:`High`,critical:`Critical`,unknown:`Unknown`,no_valid_time_provided:`No valid time provided`,automatic_review_2:`Automatic review: {{v0}}, {{v1}}`,no_reviewed_operation_provided:`No reviewed operation provided.`,no_review_rationale_provided:`No review rationale provided.`,source:`Source:`,session_approval_applies_only_to_this_request_s:`Session approval applies only to this request's tool or connection scope and remains subject to policy. A new session requires approval again.`,url:`URL`,open_in_new_tab:`Open in new tab`,complete_the_steps_on_the_page_then_click:`Complete the steps on the page, then click “I'm done” to continue.`,leave_blank:`Leave blank`,select_an_option:`Select an option`,yes:`Yes`,no:`No`,check_the_highlighted_fields_before_submitting:`Check the highlighted fields before submitting.`,allow_for_this_session:`Allow for this session`,deny:`Deny`,enter_an_integer:`Enter an integer`,minimum:`Minimum {{v0}}`,maximum:`Maximum {{v0}}`,at_least_characters:`At least {{v0}} characters`,at_most_characters:`At most {{v0}} characters`,select_at_least_items:`Select at least {{v0}} items`,select_at_most_items:`Select at most {{v0}} items`,include_a_time_zone_e_g_2026_10:`Include a time zone, e.g. 2026-10-14T12:30:00+08:00`,this_field_is_required:`This field is required.`,check_the_requirements_for_this_field:`Check the requirements for this field.`,allow_once:`Allow once`,i_m_done:`I'm done`,this_request_has_no_safe_http_or_https:`This request has no safe HTTP or HTTPS URL to open. Completion cannot be confirmed.`,no_url_provided:`No URL provided`,required:`Required`,optional:`Optional`,not_provided_optional:`Not provided (optional)`,network_access:`Network access`,files_and_directories:`Files and directories`,directory_matching_depth:`Directory matching depth: {{v0}}`,no_additional_network_or_file_access_requested:`No additional network or file access requested.`,read:`Read`,write:`Write`,deny_access:`Deny access`,network_access_allowed:`Network access allowed`,no_additional_network_access:`No additional network access`,no_network_access_changes_specified:`No network access changes specified`,action_required:`Action required`,handled:`Handled`,request_expired:`Request expired`,commandApproval:`Command approval`,humanCommandApproval:`Human approval required`,fileApproval:`File change approval`,permissionsApproval:`Additional permissions`,networkApproval:`Network permission: {{target}}`,mcpApproval:`MCP tool approval: {{server}}`,mcpInteraction:`MCP interaction: {{server}}`,unsupported:`Unsupported Codex interaction`,cancelTask:`Cancel current task`,allowTask:`Allow for current task`,commandRule:`Allow and remember command rule: {{rule}}`,networkRule:`Apply network rule: {{rule}}`,command:`Command execution`,execve:`Program execution`,writeStdin:`Terminal input`,applyPatch:`File changes`,networkAccess:`Network access`,mcpToolCall:`Tool call`,requestPermissions:`Permission changes`,unknownAction:`Operation review`,at_least_characters_other:`At least {{v0}} characters`,at_least_characters_one:`At least {{v0}} character`,at_most_characters_other:`At most {{v0}} characters`,at_most_characters_one:`At most {{v0}} character`,select_at_least_items_other:`Select at least {{v0}} items`,select_at_least_items_one:`Select at least {{v0}} item`,select_at_most_items_other:`Select at most {{v0}} items`,select_at_most_items_one:`Select at most {{v0}} item`,program:`Program`,arguments:`Arguments`,process:`Process`,depth:`Directory matching depth`,networkAllowed:`Network access allowed`,networkRestricted:`No additional network access`,fieldValue:`{{label}}: {{value}}`,denyDecision:`Deny`,accessDeny:`Deny access`,skip_question:`Skip this question`,answer_question:`Answer this question`,question_skipped:`Skipped`,question_will_be_skipped:`Will be skipped on submission`,skip_all_questions:`Skip all and submit`,submit_with_skipped:`Submit with skipped questions`},backups:{title:`Backups and recovery`,close:`Close backups and recovery`,introduction:`Backups are saved on the computer running the service. Snapshots wait for tasks, approvals and unconfirmed operations to finish without interrupting running tasks.`,overview:`Backup overview`,currentSchema:`Current Schema {{version}}`,completed_one:`{{number}} completed backup · {{size}}`,completed_other:`{{number}} completed backups · {{size}}`,processing:`Processing…`,create:`Back up now`,cancel:`Cancel backup`,progress:`Backup progress`,databaseProgress:`Database backup progress`,continues:`The service continues processing after you close this page.`,records:`Backup records`,loading:`Loading backup records…`,empty:`No backups yet. Create your first snapshot, or one will be created before an upgrade.`,protected:`Retained for upgrade recovery · Do not delete`,verify:`Verify again`,verified:`Backup verified again. It can be used with this version’s recovery procedure.`,recovery:`How to restore`,recoveryWarning:`Preview recovery in the server’s terminal first, then stop the service and confirm using the same backup ID. Recovery replaces configuration and application data, discarding application data created after the backup.`,recoveryPreview:`The preview shows what will be replaced, compatibility and the next confirmation steps.`,scope:`Backup scope and retention`,scopeTitle:`Scope and retention`,included:`Includes Covro service configuration, project registrations, preferences and application database records. Back up Codex conversation content, credentials, attachments, artifacts and project files separately.`,retention:`Backups are not deleted automatically. Keep backups needed for upgrade recovery; copies of original files saved before restoration also use disk space.`,directory:`Storage directory`,loadFailed:`Cannot load backup records. Please try again.`,operationFailed:`The backup operation failed. Please try again.`,unavailable:`Backups are unavailable for this service. See the technical details.`,phase_waiting:`Waiting for a safe point`,phase_copying:`Backing up`,phase_verifying:`Verifying`,phase_succeeded:`Backup succeeded`,phase_failed:`Backup failed`,phase_cancelled:`Cancelled`,phase_interrupted:`Backup interrupted`,phase_corrupt:`Backup unavailable`,description_waiting:`Waiting for tasks, approvals, input and unconfirmed operations to finish.`,description_copying:`Creating a snapshot of the database and configuration.`,description_verifying:`Checking file integrity and database compatibility.`,description_succeeded:`The verified snapshot is ready for offline recovery.`,description_failed:`No recoverable snapshot was created. Check configuration, directory permissions and disk space before retrying.`,description_cancelled:`The backup was cancelled. No recoverable snapshot was created.`,description_interrupted:`The process was interrupted before a recoverable snapshot was completed.`,description_corrupt:`This backup is damaged, incomplete or incompatible with the current version. It cannot be restored.`,trigger_manual:`Manual backup`,trigger_preUpgrade:`Before upgrade`,trigger_preRestore:`Before restore`,completed:`{{number}} completed backups · {{size}}`},commands:{session_commands:`Session commands`,applies_to_the_current_project_and_session:`Applies to the current project and session`,no_matching_commands_type_help_to_view_supported:`No matching commands. Type /help to view supported commands.`,to_select_enter_to_run_esc_to_close:`↑ ↓ to select · Enter to run · Esc to close`,slash_commands:`Slash commands`,unknown_command_use_help_for_available_commands_or:`Unknown command /{{v0}}. Use /help for available commands, or // to send a regular message starting with /.`,select_a_command_or_type_help_for_available:`Select a command, or type /help for available commands.`,does_not_accept_arguments_usage:`/{{v0}} does not accept arguments. Usage: {{v1}}`,view_supported_commands_and_usage:`View supported commands and usage`,open_a_new_session_draft_in_the_current:`Open a new-session draft in the current workspace`,copy_saved_session_history_into_a_new_session:`Copy saved session history into a new session`,resume_the_selected_session_not_the_cli_session:`Resume the selected session (not the CLI session picker)`,rename_this_session_spaces_are_allowed:`Rename this session; spaces are allowed`,request_interruption_of_the_current_task_web_shortcut:`Request interruption of the current task (web shortcut)`,open_connection_runtime_and_submission_diagnostics:`Open connection, runtime and submission diagnostics`,compact_context_and_continue_in_this_session:`Compact context and continue in this session`,download_saved_session_history_as_markdown:`Download saved session history as Markdown`,your_login_expired_log_in_again_and_retry:`Your login expired. Log in again and retry.`,you_are_offline_wait_for_the_connection_to:`You are offline. Wait for the connection to recover.`,codex_is_not_logged_in_authenticate_first:`Codex is not logged in. Authenticate first.`,codex_is_unavailable_check_diagnostics_first:`Codex is unavailable. Check diagnostics first.`,session_loading_try_again_shortly:`Session loading. Try again shortly.`,select_a_session_first:`Select a session first.`,this_codex_does_not_provide_thread_read:`This Codex does not provide thread/read.`,confirm_the_codex_version_compatibility_notice_first:`Confirm the Codex version compatibility notice first.`,this_codex_does_not_provide:`This Codex does not provide {{v0}}.`,select_a_project_first:`Select a project first.`,the_project_directory_is_unavailable_check_project_configuration:`The project directory is unavailable. Check project configuration.`,creating_a_session_wait_for_the_receipt:`Creating a session; wait for the receipt.`,session_creation_is_unconfirmed_use_status_to_check:`Session creation is unconfirmed. Use /status to check the submission.`,unarchive_before_compacting_context:`Unarchive before compacting context.`,resume_this_session_before_compacting_context:`Resume this session before compacting context.`,this_session_is_empty_there_is_no_context:`This session is empty; there is no context to compact.`,submitting_compaction_wait_for_the_receipt:`Submitting compaction; wait for the receipt.`,wait_for_this_task_to_finish_before_compacting:`Wait for this task to finish before compacting context.`,an_execution_still_needs_checking_use_status_to:`An execution still needs checking. Use /status to check the submission.`,this_session_is_archived_unarchive_it_first:`This session is archived. Unarchive it first.`,resume_this_session_before_starting_code_review:`Resume this session before starting code review.`,submitting_code_review_wait_for_the_receipt:`Submitting code review; wait for the receipt.`,this_session_has_an_unconfirmed_request_use_status:`This session has an unconfirmed request. Use /status to check it.`,wait_for_this_task_to_finish_before_starting:`Wait for this task to finish before starting code review.`,this_session_is_still_occupied_by_an_execution:`This session is still occupied by an execution. Use /status to check the previous task.`,unarchive_and_resume_this_session_before_renaming:`Unarchive and resume this session before renaming.`,resume_this_session_before_renaming_sessions_occupied_by:`Resume this session before renaming; sessions occupied by other processes cannot be changed.`,renaming_wait_for_the_receipt:`Renaming; wait for the receipt.`,rename_is_unconfirmed_use_status_to_check_the:`Rename is unconfirmed. Use /status to check the submission.`,archiving_is_unconfirmed_use_status_to_check_the:`Archiving is unconfirmed. Use /status to check the submission.`,this_session_is_empty_send_the_first_message:`This session is empty. Send the first message before forking saved history.`,forking_session_wait_for_the_receipt:`Forking session; wait for the receipt.`,fork_request_unconfirmed_use_status_to_check_the:`Fork request unconfirmed. Use /status to check the submission.`,resuming_session_wait_for_the_receipt:`Resuming session; wait for the receipt.`,this_session_is_running_wait_for_it_to:`This session is running. Wait for it to finish or use /stop.`,this_session_is_already_resumed:`This session is already resumed.`,another_process_is_using_this_session_its_task:`Another process is using this session; its task cannot be interrupted from this page.`,this_session_has_not_been_resumed_tasks_in:`This session has not been resumed; tasks in other processes cannot be interrupted from this page.`,submitting_interrupt_request_wait_for_the_receipt:`Submitting interrupt request; wait for the receipt.`,interrupt_request_unconfirmed_use_status_to_check_the:`Interrupt request unconfirmed. Use /status to check the submission.`,task_state_is_unconfirmed_use_status_to_check:`Task state is unconfirmed. Use /status to check the submission.`,this_session_has_no_task_to_interrupt:`This session has no task to interrupt.`,no_confirmed_success_receipt_received_check_errors_or:`No confirmed success receipt received. Check errors or use /status; your input is preserved.`,operation_failed_check_diagnostics:`Operation failed. Check diagnostics.`,submission_result_unconfirmed_use_status_before_submitting_again:`Submission result unconfirmed. Use /status before submitting again.`,context_compaction_requested_follow_task_status_in_the:`Context compaction requested. Follow task status in the conversation for progress and results.`,session_renamed_to:`Session renamed to “{{v0}}”.`,rename_accepted_but_the_name_is_unconfirmed_use:`Rename accepted, but the name is unconfirmed. Use /status to check.`,request_accepted_but_no_new_session_id_received:`Request accepted, but no new session ID received. Use /status to check.`,forked_into_a_new_session:`Forked into a new session.`,code_review_submitted_view_progress_and_results_in:`Code review submitted. View progress and results in this session.`,interrupt_requested_wait_for_task_status_to_update:`Interrupt requested. Wait for task status to update.`,selected_session_resumed:`Selected session resumed.`,rename_name:`/rename <name>`,no_arguments:`/{{v0}} (no arguments)`,rename_requires_a_name_other_commands_take_no:`Commands and usage:
|
|
11
|
-
{{v0}}
|
|
12
|
-
Only the shown arguments are accepted.
|
|
13
|
-
Use // for ordinary messages starting with /.`,name:` <name>`,diagnostics_opened_refresh_status_or_reconcile_submissions_in:`Diagnostics opened. Refresh status or reconcile submissions in the panel.`,the_project_or_session_changed_select_the_command:`The project or session changed. Select the command again.`,markdown_download_started_some_content_is_unfinished_unconfirmed:`Markdown download started. Some content is unfinished, unconfirmed or truncated; see the file notes.`,saved_history_download_started_the_file_describes_omitted:`Saved history download started. The file describes omitted images and internal records.`,new_session_draft_opened_a_session_will_be:`New-session draft opened. A session will be created when you send the first message.`,renameEmpty:`Enter a session name. Usage: /rename <name>`,renameLong:`Session names may contain at most {{max}} characters.`,renameControls:`Session names cannot contain line breaks or control characters.`,commandLine:`/{{name}}{{arguments}}: {{description}}`,review_uncommitted_working_directory_changes:`Review uncommitted changes in the current working directory using session settings`,planDescription:`Enter Plan mode, optionally with a task`,planUsage:`/plan [task]`,optionalTask:` [task]`,planSelected:`Plan mode is selected for the next task; waiting for Codex confirmation.`,planSubmitted:`Plan task submitted; follow the session for the confirmed mode and result.`,planNotSubmitted:`The task was not confirmed. Check diagnostics before trying again.`,planUnavailable:`Resume an idle session, or open a new workspace draft, before selecting Plan mode.`,mode:`Collaboration mode`,modeUnknown:`Mode not reported`,executeMode:`Execute`,planMode:`Plan`,modePending:`{{selected}} pending · current: {{current}}`,reviewTarget:`Code review target`,reviewUncommitted:`Uncommitted changes`,reviewBranch:`Compare with base branch`,reviewCommit:`Specific commit`,reviewCustom:`Custom instructions`,branchName:`Base branch`,reviewInstructions:`Review instructions`,startReview:`Start review`,cancelDialog:`Cancel`,closeDialog:`Close`,reviewCancelled:`Review cancelled; the command draft is kept.`,reviewDescription:`Review working-directory changes, a branch, a commit, or custom instructions`,reviewUsage:`/review [instructions]`,initDescription:`Generate a project AGENTS.md without replacing an existing entry`,initSubmitted:`Project initialization task submitted; follow its result in this session.`,initUnavailable:`Resume an idle session or open a new workspace draft before initializing.`,workspaceDiff:`Workspace Git changes`,diffSection:`Change scope`,diff_staged:`Staged`,diff_unstaged:`Unstaged`,diff_untracked:`Untracked`,diffPartial:`Some content is omitted because files changed, could not be read, or exceeded the snapshot limits.`,diffDescription:`Inspect staged, unstaged and untracked workspace changes`,diffUnavailable:`Choose a project or a saved session to inspect its Git changes.`,diffOpened:`Workspace changes opened; refresh in the viewer to read a new snapshot.`,approveDescription:`Approve a denied action once`,approveTitle:`Denied actions`,approveEmpty:`No retryable denials in this runtime.`,approveSelect:`Choose a denied action`,approveConfirm:`Authorize this exact action once. Codex may retry it; your default permissions stay unchanged.`,approveOnce:`Authorize once`,approveSubmitted:`Retry authorization recorded. Ask Codex to continue when ready.`,approveCancelled:`Authorization cancelled.`,recapDescription:`Summarize the recent conversation separately`,recapTitle:`Conversation recap`,recapNotice:`Generated from recent visible messages using a separate model request. The conversation context is unchanged.`,recapPartial:`Only part of the saved conversation was included.`,recapEmpty:`Send a message before requesting a recap.`,recapFailed:`The recap response could not be confirmed.`,recapOpened:`Conversation recap opened.`,goalDescription:`Manage the native session goal`,goalTitle:`Session goal`,goalEmpty:`No goal is set.`,goalObjective:`Objective`,goalBudget:`Token budget (blank keeps the current budget)`,goalActivation:`Activating a goal allows Codex to continue working automatically. Pausing or clearing stops future continuation; use Stop to interrupt the current task.`,goalActivate:`Save and activate`,goalPause:`Pause`,goalComplete:`Mark complete`,goalClear:`Clear goal`,goalManage:`Manage goal`,goalUnconfirmed:`The result is unconfirmed. Check diagnostics before submitting again.`,goalUnavailable:`Goals are unavailable in this runtime.`,goalCommandUsage:`/goal [objective | edit | pause | resume | clear]`,goalOpened:`Goal manager opened.`,goalUsageTokens:`Tokens {{used}} / {{budget}}`,goalTime:`{{seconds}} s`,goal_active:`Active`,goal_paused:`Paused`,goal_blocked:`Blocked`,goal_usageLimited:`Usage limited`,goal_budgetLimited:`Budget limited`,goal_complete:`Complete`},common:{language:`Language`,requestFailed:`Request failed. Please try again.`,lessThanSecond:`Less than 1 second`,fork_into_a_new_session:`Fork into a new session`,on:`On`,off:`Off`,saving:`Saving…`,project_directory_unavailable:`Project directory unavailable`,sessions:`Sessions`,loading_session:`Loading session…`,checking:`Checking…`,unarchive:`Unarchive`,technical_details:`Technical details`,free_text_answer:`{{v0}}: free-text answer`,enter_your_answer:`Enter your answer`,confirm_selection:`Confirm selection`,submit_answer:`Submit answer`,running:`Running`,failed:`Failed`,denied:`Denied`,review_timed_out:`Review timed out`,result_unconfirmed:`Result unconfirmed`,completed:`Completed`,working_directory:`Working directory`,running_version:`Running version`,verified_version:`Verified version`,not_detected:`Not detected`,loading:`Loading`,confirm_and_continue:`Confirm and continue`,loading_2:`Loading…`,could_not_read_the_image_please_paste_it:`Could not read the image. Please paste it again.`,confirming_fork:`Confirming fork…`,run_command:`Run command`,submitting:`Submitting…`,last_known:`Last known:`,add_project:`Add project`,interrupted:`Interrupted`,diagnostics:`Diagnostics`,session_not_created_yet:`Session not created yet`,reload:`Reload`,added:`Added`,removed:`Removed`,cancel:`Cancel`,read_only:`Read only`,copied:`Copied`,service_settings:`Service settings`,authentication_mode:`Authentication mode`,image:`Image`,preview_image:`Preview image: {{v0}}`,permission_details:`Permission details`,not_reported:`Not reported`,manage_project:`Manage project`,execution_failed:`Execution failed`,covro_updates:`Covro updates`,model_defaults_are_being_saved_wait_before_proceeding:`Model defaults are being saved. Wait before proceeding.`,unassigned:`Unassigned`,close:`Close`},composer:{resuming_session:`Resuming session…`,retry_resume:`Retry resume`,an_update_will_load_automatically_once_typing_or:`An update will load automatically once typing or image loading finishes`,slash_commands_cannot_include_images_remove_the_images:`Slash commands cannot include images. Remove the images or send a regular message.`,running:`Running /{{v0}}…`,command_failed_please_try_again:`Command failed. Please try again.`,pasted_image:`Pasted image`,submitting_message:`Submitting message…`,creating_a_session_and_sending_the_first_message:`Creating a session and sending the first message…`,this_session_is_in_use_by_another_process:`This session is in use by another process`,unable_to_resume_session:`Unable to resume session`,fork_saved_history_to_continue_or_retry_once:`Fork saved history to continue, or retry once the original process releases this session. The new session uses the same project directory.`,images_to_send:`Images to send`,image_to_send:`Image to send {{v0}}`,remove_image:`Remove image {{v0}}`,additional_instructions:`Additional instructions`,task_content:`Task content`,unarchive_to_continue_the_conversation:`Unarchive to continue the conversation…`,add_requirements_or_adjust_direction:`Add requirements or adjust direction…`,describe_a_task_paste_an_image_or_type:`Describe a task, paste an image, or type / for commands…`,interrupt:`Interrupt`,requesting:`Requesting…`,enter_to_run_command_esc_to_close_menu:`Enter to run command / Esc to close menu`,enter_to_send_shift_enter_for_a_new:`Enter to send / Shift + Enter for a new line`,running_command:`Running command…`,send_task:`Send task`,running_2:`Running…`,closing_this_page_does_not_stop_tasks_interruptions:`Closing this page does not stop tasks. Interruptions depend on the actual status returned by Codex.`,codex_runs_with_the_server_project_s_permissions:`Codex runs with the server project's permissions. Review operations and changes.`,drag_up_to_increase_height_down_to_decrease:`Drag up to increase height, down to decrease; arrow keys also work`,resize_input_height:`Resize input height`,pixels:`{{v0}} pixels`,paste_a_png_jpeg_webp_or_gif_image:`Choose or paste PNG, JPEG, WebP or GIF images.`,the_image_is_empty_copy_and_paste_it:`The image is empty. Select or paste it again.`,pixels_other:`{{v0}} pixels`,pixels_one:`{{v0}} pixel`,tap_to_send_enter_for_new_line:`Tap send · Enter for a new line`,tap_to_run_command_enter_for_new_line:`Tap to run command · Enter for a new line`,add_images:`Add images`,retry_image:`Retry reading`,image_read_failed:`Could not read the image. Retry or select it again.`,skills_title:`Skills`,skills_search:`Search skills`,skills_partial:`Some skills could not be discovered`,skills_no_match:`No matching skills`,skills_empty:`No skills found`,skills_enabled:`Available`,skills_disabled:`Disabled`,skills_scope_repo:`Project`,skills_scope_user:`User`,skills_scope_system:`System`,skills_scope_admin:`Admin`,skills_not_ready:`Codex is not ready. Retry when it reconnects.`,skills_offline:`Offline. Reconnect to load skills.`,skills_selected:`Selected skills`,skills_slash:`Remove skill references before running a slash command.`,skills_steer_unsupported:`Codex 0.164.0 cannot apply a selected skill during an active task. Wait for it to finish, then send this draft.`,files_title:`Workspace files`,files_type_path:`Type a path after @. Use @" for spaces.`,files_no_match:`No matching files`,files_limited:`Showing up to 50 results. Narrow the path to see more.`,files_offline:`Offline. Reconnect to search workspace files.`,files_not_ready:`Codex is not ready to search files.`,files_slash:`Remove file references before running a slash command.`,references_selected:`Selected references`,files_limit:`A message can reference up to 32 files.`},conversation:{activities:`{{v0}} activities`,includes_automatic_reviews:`Includes {{v0}} automatic reviews`,aborted:`Aborted`,activities_2:`{{v0}} activities{{v1}}`,collapse:`Collapse`,expand:`Expand`,compacting_context:`Compacting context…`,context_compacted:`Context compacted`,context_compaction_failed:`Context compaction failed`,context_compaction_interrupted:`Context compaction interrupted`,context_compaction_state_unknown:`Context compaction state unknown`,organizing_context_the_current_task_will_continue_when:`Organizing context; the current task will continue when finished.`,no_definite_completion_result_received_check_subsequent_task:`No definite completion result received. Check subsequent task status.`,context_compaction_status:`Context compaction status`,output_exceeds_the_display_limit_and_has_been:`Output exceeds the display limit and has been truncated.`,view_changes:`View changes`,activity_details:`Activity details`,connection_details:`Connection details`,resynchronize:`Resynchronize`,some_older_history_is_omitted_from_this_live:`Some older history is omitted from this live snapshot to limit transfer size.`,retry_reading:`Retry reading`,your_development_workspace:`Your development workspace`,connect_an_existing_server_directory_to_continue_sessions:`Connect an existing server directory to continue sessions or start new tasks.`,projects_are_saved_on_the_server_so_you:`Projects are saved on the server so you can pick up where you left off.`,describe_your_task_or_paste_an_image_question:`Describe your task, or paste an image, question or error message.`,sending_starts_a_new_session_in:`Sending starts a new session in {{v0}}.`,live_execution:`Live execution`,changes_by_turn:`Changes by turn`,approve_and_follow_up_anytime:`Approve and follow up anytime`,turn:`Turn {{v0}}`,changes_in_this_turn:`Changes in this turn`,view_file_and_line_changes:`View file and line changes`,back_to_latest:`Back to latest`,file_changes:`File changes`,reasoning:`Reasoning`,tool_call:`Tool call`,web_search:`Web search`,execution_plan:`Execution plan`,start_code_review:`Start code review`,code_review_results:`Code review results`,no_output_yet:`No output yet`,file_changes_from_this_tool:`File changes from this tool`,codex_reply:`Codex reply`,codex_connection_status:`Codex connection status`,codex_reconnection_failed:`Codex reconnection failed`,reconnecting_to_the_model_service_codex_will_retry:`Reconnecting to the model service. Codex will retry automatically and continue this task when connected.`,codex_stopped_retrying_check_the_server_network_and:`Codex stopped retrying. Check the server network and model service. If this turn is still running, interrupt it below, then send instructions again to continue.`,codex_stopped_retrying_check_the_server_network_and_2:`Codex stopped retrying. Check the server network and model service, then resend instructions to continue.`,showing_local_cache_sync_failed_some_history_may:`Showing local cache · Sync failed; some history may be missing.`,showing_local_cache_checking_latest_messages_and_task:`Showing local cache · Checking latest messages and task status…`,session_messages:`Session messages`,loading_earlier_messages:`Loading earlier messages…`,scroll_up_to_load_earlier_messages:`Scroll up to load earlier messages`,retry_loading:`Retry loading`,load_earlier_messages:`Load earlier messages`,no_local_cache_here_yet:`No local cache here yet`,continue_reading_local_history:`Continue reading local history`,add_a_project_start_working:`Add a project. Start working.`,start_with_an_idea:`Start with an idea.`,the_current_project:`the current project`,turn_changes:`Turn {{v0}} changes`,ready:`Ready`,awaiting_approval:`Awaiting approval`,awaiting_answer:`Awaiting answer`,status_needs_checking:`Status needs checking`,your_instructions:`Your instructions`,back_to_original_prompt:`Back to original prompt`,images:`{{v0}} images`,user_prompt:`User prompt`,completed_at:`Completed at`,turn_completion_details:`Turn completion details`,took:`Took {{v0}}`,duration_unknown:`Duration unknown`,tps_unknown:`TPS unknown`,average_tps:`Average {{v0}} TPS`,tps_cannot_be_calculated_without_complete_token_counts:`TPS cannot be calculated without complete token counts and a valid duration.`,output_tokens_including_reasoning_total_turn_duration_in:`{{v0}} output tokens (including reasoning) ÷ total turn duration in seconds. Duration includes tools, approvals and waiting, so this is usually lower than model-only TPS.`,completion_time_unknown:`Completion time unknown`,images_have_no_preview:`{{v0}} images have no preview`,your_message:`Your message`,sent_image:`Sent image {{v0}}`,less_than_1_second:`Less than 1 second`,hours:`{{v0}} hours`,min:`{{v0}} min`,sec:`{{v0}} sec`,reconnecting:`Codex reconnecting…`,activityState:`{{status}} {{count}}`,activities_other:`{{v0}} activities`,activities_one:`{{v0}} activity`,includes_automatic_reviews_other:`Includes {{v0}} automatic reviews`,includes_automatic_reviews_one:`Includes {{v0}} automatic review`,activities_2_other:`{{v0}} activities{{v1}}`,activities_2_one:`{{v0}} activity{{v1}}`,images_other:`{{v0}} images`,images_one:`{{v0}} image`,images_have_no_preview_other:`{{v0}} images have no preview`,images_have_no_preview_one:`{{v0}} image have no preview`,activityWithCommand:`{{label}}: {{command}}`,start_in_project:`Sending starts a new session in “{{v0}}”.`,start_without_project:`Start without choosing a project. Sending assigns a separate working directory; the session and files are retained.`,copy_command_output:`Copy command output`,copy_loaded_command_output:`Copy this command’s loaded output`,command_output_copy_failed:`Copy failed. Select the output to copy manually.`,command_output_truncated:`Output truncated. Only the loaded portion can be copied.`,copied_truncated_command_output:`Copied loaded portion (output truncated)`,model_busy_retrying:`Model busy, retrying`,model_busy_stopped:`Model busy, retries stopped`,model_busy_native_retry:`Codex is waiting for model capacity and will continue this task.`,retry_attempt:`Retry {{attempt}} / {{limit}}`,model_capacity_unavailable:`Model at capacity`,retry_progress:`Retry {{attempt}}/{{limit}}`,retrying_short:`Retrying`,retry_stopped_short:`Retries stopped`,error_details:`Error details`,capacity_waiting:`Model busy, waiting to retry`,capacity_cancelled:`Automatic retries cancelled`,capacity_in_seconds:`Retrying in {{seconds}} s`,capacity_dispatching:`Starting retry…`,capacity_stopped_progress:`This turn produced output or ran tools. Review it before continuing manually.`,capacity_stopped_native:`Codex has stopped its native retries.`,capacity_stopped_limit:`Automatic retry limit reached.`,capacity_stopped_error:`The task or runtime changed. Check its status before continuing.`,cancel_retry:`Cancel retries`,retry_with_selected_model:`Retry with selected model`,capacity_in_seconds_short:`In {{seconds}} s`,capacity_cancelled_short:`Cancelled`,capacity_limit_short:`Limit reached`,turn_tokens:`Turn {{tokens}} tokens`,turn_tokens_unknown:`Turn tokens not reported`,submission_submitting:`Sending…`,submission_submitted:`Submitted`,submission_unknown:`Submission needs checking`,submission_failed:`Send failed`},errors:{operation:`Operation`,target:`Target`,operation_id:`Operation ID`,workspace:`Workspace`,execution_status:`Execution status`,check_session_history_the_session_list_and_the:`Check session history, the session list and the original environment first. Clearing only removes this browser's pending record; it does not stop or resubmit tasks.`,this_session_is_still_running_wait_or_interrupt:`This session is still running. Wait or interrupt normally before checking.`,i_checked_history_and_the_original_environment_no:`I checked history and the original environment; no further verification is needed`,clear_this_browser_s_pending_record:`Clear this browser's pending record`,refresh_status_to_check_the_compatibility_confirmation_this:`Refresh status to check the compatibility confirmation. This record does not represent task execution and will not be automatically resubmitted.`,this_task_is_still_running_use_the_interrupt:`This task is still running. Use the interrupt button in the input area.`,checked_at_original_submission_status_preserved:`Checked at {{v0}}. {{v1}} Original submission status preserved.`,current_session:`Current session`,operations_and_reconciliation:`Submissions in this conversation`,browser_connection:`Browser connection`,account_authentication:`Account authentication`,compatibility:`Compatibility`,gateway_authentication:`Gateway authentication`,supported_capabilities:`Supported capabilities`,connecting:`Connecting`,live_connection_healthy:`Live connection healthy`,disconnected:`Disconnected`,login_required_again:`Login required again`,accepted_by_gateway:`Accepted by gateway`,awaiting_upstream_confirmation:`Awaiting upstream confirmation`,submission_confirmed_by_upstream:`Submission confirmed by upstream`,submission_failed:`Submission failed`,submission_result_needs_checking:`Submission result needs checking`,finished:`Finished`,end_not_confirmed:`End not confirmed`,refresh_the_session_list_and_check_for_a:`Refresh the session list and check for a new session containing the original history. Checking this fork will not stop or change the original task.`,tasks_will_not_be_resent_automatically_check_history:`Tasks will not be resent automatically. Check history and the original environment before reconciling.`,i_checked_the_session_list_and_history_and:`I checked the session list and history and verified this fork's result`,i_verified_that_the_previous_execution_has_ended:`I verified that the previous execution has ended`,submitting_reconciliation:`Submitting reconciliation…`,reconcile_this_fork:`Reconcile this fork`,reconcile_and_release_previous_execution:`Reconcile and release previous execution`,fork_result_checked_manually_original_task_state_unchanged:`Fork result checked manually. Original task state unchanged.`,previous_execution_end_checked_manually:`Previous execution end checked manually.`,diagnostics_details:`Diagnostics details`,refresh_status:`Refresh status`,current_session_information:`Current session information`,failed_to_load_session_details:`Failed to load session details`,loading_session_details:`Loading session details…`,checking_session_history_and_submission_receipts:`Checking session history and submission receipts…`,session_state_still_needs_checking_inspect_operation_records:`This conversation’s state is still unconfirmed. Check again or inspect its history.`,check_submission_records_reconciliation_does_not_resend_tasks:`Check submission records; reconciliation does not resend tasks.`,no_submissions_need_checking:`No submissions need checking.`,ready:`Ready`,starting:`Starting`,unavailable:`Unavailable`,available:`Available`,log_in_to_codex_on_the_server_computer:`Log in to Codex on the server computer`,unconfirmed:`Unconfirmed`,version_verified:`Version verified`,version_unverified_continued_with_consent:`Version unverified · Continued with consent`,version_unverified_confirmation_pending:`Version unverified · Confirmation pending`,local_mode:`Local mode`,none:`None`,your_login_expired_or_the_gateway_returned_a:`Your login expired or the gateway returned a login page. Log in again to reconnect.`,request_failed:`Request failed ({{v0}})`,submission_cannot_be_confirmed_record_not_found_404:`Submission cannot be confirmed: record not found (404 / OPERATION_NOT_FOUND). The request may not have arrived or service data may have changed; this does not prove the task was not executed.`,submission_cannot_be_confirmed:`Submission cannot be confirmed: {{v0}}`,unrecognized_server_message_check_version_compatibility:`Unrecognized server message. Check version compatibility.`,could_not_parse_a_live_message_refresh_the:`Could not parse a live message. Refresh the session snapshot.`,this_history_chunk_does_not_belong_to_the:`This history chunk does not belong to the current session.`,history_pagination_did_not_advance_retry_syncing_the:`History pagination did not advance. Retry syncing the session.`,httpFailure:`Request failed ({{code}}). Check the operation and service status before retrying.`,invalidName:`Session names must be nonempty, contain no line breaks and be at most 100 characters.`,unsupportedSchema:`This form schema is unsupported. Check technical details or cancel the request.`,AUTH_REQUIRED:`Your login expired. Log in again and retry.`,ACTION_EXPIRED:`This request expired. Refresh the session and retry.`,ACTION_CONFLICT:`The request state changed. Check the session before proceeding.`,CODEX_UNAVAILABLE:`Codex is unavailable. Check diagnostics.`,THREAD_IN_USE:`This session is in use by another process. Retry after it is released, or fork saved history.`,THREAD_BUSY:`The session is running or has pending requests. Resolve them before retrying.`,THREAD_ARCHIVED:`This session is archived. Unarchive it first.`,THREAD_NOT_RESUMED:`Resume this session before retrying.`,THREAD_NOT_FOUND:`Session not found. Refresh the session list.`,PROJECT_UNAVAILABLE:`The project directory is unavailable. Check the server path and permissions.`,INVALID_PROJECT_PATH:`Invalid project path. Check the absolute server path and access permissions.`,WORK_DIR_UNAVAILABLE:`The workDir directory is missing, is not a directory, or cannot be accessed. Check the directory and permissions on the service host, or enter another absolute path.`,PROJECT_EXISTS:`This directory is already a project. Use the existing project or choose another directory.`,PROJECT_NOT_FOUND:`Project not found. Refresh the project list.`,PROJECT_BUSY:`The project has running tasks or unconfirmed operations. Resolve them first.`,RESULT_UNKNOWN:`Submission result unconfirmed. Reconcile it before submitting again.`,OPERATION_BUSY:`Operation in progress. Wait for the submission receipt.`,COMPATIBILITY_CONFIRMATION_REQUIRED:`Confirm the current Codex compatibility notice first.`,CONFIG_CONFLICT:`Another process changed the configuration. Reload it before saving.`,CONFIG_READ_ONLY:`The current configuration is read only and cannot be saved.`,CONFIG_UNAVAILABLE:`Cannot access configuration. Check the file and service permissions.`,INVALID_CONFIG:`Invalid configuration. Check field values, networking and authentication.`,VALIDATION_FAILED:`Input does not meet the requirements. Check it and retry.`,HISTORY_UNAVAILABLE:`Session history is unavailable. Resynchronize.`,UPDATE_MAINTENANCE:`The service is updating. Wait for it to recover before retrying.`,PERMISSION_MODE_UNAVAILABLE:`This permission mode is unavailable under current capabilities or managed policy.`,BODY_TOO_LARGE:`The request is too large. Reduce images or text and retry.`,SHELL_BUSY:`A Shell command is running. Wait or interrupt it.`,SHELL_NOT_FOUND:`Shell execution record not found. Check the result on the server.`,IMAGE_NOT_FOUND:`The image file does not exist or was deleted.`,IMAGE_UNREADABLE:`The image file cannot be read.`,UNSUPPORTED_IMAGE_TYPE:`Only PNG, JPEG, WebP and GIF images are supported.`,UNAVAILABLE:`The service is temporarily unavailable. Please retry later.`,READ_FAILED:`Session history cannot be read right now. Please retry.`,EXPORT_FAILED:`Could not read the complete history. No file was downloaded. Please retry later.`,MARKDOWN_NOT_FOUND:`The file does not exist or was deleted.`,JSON_NOT_FOUND:`The file does not exist or was deleted.`,MARKDOWN_TOO_LARGE:`This Markdown file exceeds the 2 MiB preview limit.`,JSON_TOO_LARGE:`This JSON file exceeds the 2 MiB preview limit.`,INVALID_REPOSITORY:`Enter an HTTPS or SSH Git repository URL. Use the host’s existing credentials; do not include passwords, tokens or query parameters.`,CLONE_PARENT_UNAVAILABLE:`The destination’s parent directory must exist, and the service needs write and directory access.`,CLONE_TARGET_EXISTS:`The destination is not an empty regular directory. Choose a new or empty directory; existing files will not be overwritten.`,CLONE_TARGET_UNAVAILABLE:`Cannot inspect the destination. Check the server path and access permissions.`,CLONE_IN_PROGRESS:`This directory is being cloned. Wait for completion or cancel before continuing.`,CLONE_ID_CONFLICT:`This operation ID belongs to another clone request.`,GATEWAY_STOPPING:`The service is stopping. Please try again later.`,CLONE_LIMIT:`Several repositories are already being cloned. Wait for one to finish and try again.`,CLONE_NOT_FOUND:`Clone record not found. After a service restart, check the destination and add it as an existing directory, or retry with a new empty directory.`,WORKSPACE_UNAVAILABLE:`The session’s working directory is unavailable. Check its server path and permissions, then try again.`,CLONE_GIT_MISSING:`Git is not installed on the server or is absent from the service’s PATH. Install or configure Git and retry with an empty directory. No project was added; inspect any remaining files first.`,CLONE_AUTH_FAILED:`Git authentication failed or access was denied. Configure Git credentials or SSH keys on the server. No project was added; inspect the destination before retrying with a new empty directory.`,CLONE_HOST_KEY_FAILED:`SSH host verification failed. Verify and configure the repository host’s SSH trust on the server. No project was added; inspect the destination before retrying with an empty directory.`,CLONE_REPOSITORY_UNAVAILABLE:`The repository does not exist or is inaccessible. Check its URL and the server’s Git permissions. No project was added; inspect the destination before retrying with an empty directory.`,CLONE_NETWORK_FAILED:`Cannot connect to the Git repository. Check the server’s network, proxy and certificates. No project was added; inspect the destination before retrying with an empty directory.`,CLONE_TARGET_NOT_EMPTY:`Git stopped because the destination contains files. Existing files were not overwritten or deleted. No project was added; check the destination and retry with a new empty directory.`,CLONE_DISK_FULL:`The server has insufficient disk space. Free space, inspect any remaining files and retry with a new empty directory. No project was added.`,CLONE_FAILED:`Git cloning failed. Check the repository URL, server credentials, directory permissions and disk space. No project was added; inspect remaining files before retrying with a new empty directory.`,CLONE_REGISTRATION_FAILED:`Project registration failed. Cloned files remain in the destination. Retry adding the project without cloning again, or use “Existing directory”.`,CLONE_TIMED_OUT:`Cloning exceeded 30 minutes and was stopped. No project was added and no files were deleted. Inspect the destination and retry with a new empty directory.`,CLONE_CANCELLED:`No project was added and no files were deleted. Files may remain in the destination; inspect it before retrying with a new empty directory.`,BACKUP_BUSY:`A backup is already in progress. Wait for it to finish.`,BACKUP_UNAVAILABLE:`Backups are unavailable. Check the service configuration and technical details.`,BACKUP_FAILED:`The backup failed. Check configuration, directory permissions and disk space before retrying.`,BACKUP_INVALID:`The backup is damaged, incomplete or incompatible and cannot be restored.`,BACKUP_TIMEOUT:`Timed out waiting for a safe point. Try again after active tasks finish.`,BACKUP_MAINTENANCE:`A backup is in progress. Try again after it finishes.`,PROJECT_ORDER_CONFLICT:`The project list has changed. Refresh it and try reordering again.`,TEXT_NOT_FOUND:`The text file does not exist or was deleted.`,TEXT_TOO_LARGE:`This text file exceeds the 2 MiB preview limit.`,TEXT_UNREADABLE:`The text file cannot be read. Check its permissions.`,INVALID_TEXT_CONTENT:`The file is not valid UTF-8 text or contains binary data.`,UNSUPPORTED_TEXT_TYPE:`This file type is not supported by the text preview.`,INVALID_TEXT_PATH:`The text file path is invalid.`,TEXT_OUTSIDE_PROJECT:`Only files in this session’s project or server temporary directories can be previewed.`,TEXT_CHANGED:`The text file changed. Reopen the preview.`,TEXT_NOT_FILE:`The text file path is not a regular file.`,AGENTS_EXISTS:`AGENTS.md already exists. The existing entry was preserved.`,AGENTS_CHECK_FAILED:`Could not verify AGENTS.md. Initialization was not submitted.`,GIT_NOT_REPOSITORY:`This workspace is not a Git working tree.`,GIT_UNAVAILABLE:`Git is unavailable on the server.`,GIT_DIFF_FAILED:`Could not read workspace changes. Retry after checking the working directory.`,DENIAL_EXPIRED:`This denial is no longer available. Reopen the current session’s denial list.`,RECAP_BUSY:`A recap is already running for this session.`,RECAP_FAILED:`The recap could not be completed. The source conversation is unchanged.`,GOAL_UNAVAILABLE:`Goals are unavailable or disabled in the current Codex runtime.`,GOAL_CONFLICT:`The goal changed. Reload its current state before editing.`,GOAL_BUSY:`Another goal update is pending. Wait for its receipt.`,SKILL_UNAVAILABLE:`A selected skill is no longer available in this workspace. Refresh and select it again.`,SKILLS_READ_FAILED:`Could not read skills. Refresh and try again.`,SKILL_STEER_UNSUPPORTED:`Codex 0.164.0 cannot apply a selected skill during an active task. Wait for it to finish, then send this draft.`,QUESTION_EXPIRED:`This question is no longer available. Refresh the session.`,QUESTION_BUSY:`An answer is submitting or awaiting confirmation. Refresh its receipt before continuing.`,QUESTION_CONFLICT:`This question was handled or is already submitting. Refresh the session.`,FILE_REFERENCE_OUTSIDE:`The selected file is outside this workspace. Select it again.`,FILE_REFERENCE_NOT_FOUND:`The file was moved or deleted. Select another file.`,FILE_REFERENCE_UNREADABLE:`The selected file cannot be read. Check its permissions.`,FILE_REFERENCE_NOT_FILE:`Select a regular workspace file.`,FILE_REFERENCE_CHANGED:`The file or workspace changed. Select the file again.`,FILE_SEARCH_BUSY:`File search is busy. Retry shortly.`,FILE_SEARCH_TIMEOUT:`File search timed out. Narrow the path and retry.`,FILE_SEARCH_CANCELLED:`File search was cancelled.`,recovery_operation_send:`Send message`,recovery_operation_steer:`Add message`,recovery_operation_resolve:`Answer approval or input`,recovery_operation_fork:`Fork conversation`,recovery_operation_create:`Create conversation`,recovery_operation_resume:`Resume conversation`,recovery_operation_archive:`Archive conversation`,recovery_operation_rename:`Rename conversation`,recovery_operation_compact:`Compact context`,recovery_operation_review:`Start review`,recovery_operation_interrupt:`Stop task`,recovery_operation_settings:`Update settings`,recovery_operation_other:`Submit operation`,recovery_missing:`The server cannot find this submission record, so its result is unconfirmed.`,recovery_unreachable:`This submission cannot be checked right now. Reconnect and try again.`,recovery_execution_unknown:`No matching record has confirmed that this task ended.`,recovery_receipt_unknown:`No definite result has been received for this operation.`,recovery_thread_unavailable:`Conversation name unavailable`,recovery_project_unavailable:`Project name unavailable`,recovery_running:`This conversation still has an active task. Open it to view or stop the task.`,recovery_clear_local:`Remove this page’s restriction`,recovery_restore_session:`Restore conversation controls`,recovery_view_history:`View related history`,recovery_open_thread:`Open conversation`,recovery_check_again:`Check again`,recovery_go_to_thread:`Open the related conversation to inspect its history and handle this submission.`,recovery_retry_connection:`The restriction stays until checks recover. Nothing will be resubmitted automatically.`,recovery_action_owner_missing:`The old record has no conversation reference. Check the result in the conversation containing the approval.`,recovery_clear_effect:`This removes only this pending record from the current browser. It does not stop a task or resend anything. The original operation may have executed; submitting again could execute it twice.`,recovery_fork_effect:`Check the conversation list and related history to confirm the fork result. This only ends waiting for that fork. It does not stop the source task or create another fork.`,recovery_restore_effect:`Check the related history and confirm that the previous task ended. Continuing releases only that task’s old reservation. It does not stop or resend the task. The server still refuses to release a known active task.`,recovery_confirm_ended:`Confirm previous task ended and restore`,recovery_other_threads:`Other conversations and operations`,recovery_handle_submission:`View recovery options`,recovery_responding:`This approval or input response is still awaiting confirmation and cannot be submitted again yet.`,CLONE_INTERRUPTED:`The service stopped or restarted before the clone result was confirmed. No automatic retry or file deletion occurs. Inspect the destination; add it as an existing directory only if complete, otherwise retry into a new empty directory.`},notifications:{browser_notifications:`Browser notifications`,send_test_notification:`Send test notification`,background_notifications_and_sleeping_tabs:`Background notifications and sleeping tabs`,keep_this_page_and_browser_open_background_tabs:`Notifications depend on this page staying online. Keep the page and browser running. Web Push is not used; notifications may be missed while the page is frozen, discarded, or closed. Results and unread indicators sync on return; past notifications are not replayed.`,keep_this_site_active:`Keep this site active`,chrome_settings_performance_always_keep_these_sites_active:`Chrome: Settings → Performance → Always keep these sites active. Add this site.`,settings_instructions:`Settings instructions`,edge_settings_system_and_performance_performance_always_keep:`Edge: Settings → System and performance → Performance → Always keep these sites active (or never put them to sleep). Add this site.`,configure_this_manually_in_the_browser_names_may:`Configure this manually in the browser; names may vary by version.`,permission_not_granted:`Permission not granted`,permission_granted:`Permission granted`,blocked_by_browser:`Blocked by browser`,unsupported_browser:`Unsupported browser`,secure_connection_required:`Secure connection required`,close_notification_settings:`Close notification settings`,waiting_for_permission:`Waiting for permission…`,disable_notifications:`Disable notifications`,enable_notifications:`Enable notifications`,allow_notifications_in_the_browser_s_site_settings:`Allow notifications in the browser's site settings, then enable them here.`,use_https_localhost_or_127_0_0_1:`Use HTTPS. localhost or 127.0.0.1 can be used for local access.`,use_a_desktop_browser_that_supports_system_notifications:`Use a browser that supports system notifications. In-page status and unread indicators remain available.`,permission_is_requested_only_when_you_click_enable:`Permission is requested only when you click Enable. This setting is shared across this site's tabs in this browser.`,cannot_save_notification_settings_allow_browser_storage_for:`Cannot save notification settings. Allow browser storage for this site and retry.`,cannot_enable_notifications_check_notification_permissions_and_site:`Cannot enable notifications. Check notification permissions and site storage settings.`,the_browser_could_not_show_notifications_check_browser:`The browser could not show notifications. Check browser and system settings. In-page status and unread indicators remain available.`,cannot_show_notifications_or_save_deduplication_records_check:`Cannot show notifications or save deduplication records. Check notification permissions and site storage. In-page status and unread indicators remain available.`,test_notification:`Test notification`,this_browser_cannot_show_system_notifications_check_browser:`This browser cannot show system notifications. Check browser and system settings.`,notification_records_are_in_use_by_another_page:`Notification records are in use by another page. Close old pages and retry.`,agentCompleted:`Agent task completed`,agentFailed:`Agent task failed`,agentInterrupted:`Agent task interrupted`,events_description:`Show the project and session when work finishes or needs an answer or approval. Click to open the session and find the pending request.`,test_description:`You will be notified when the agent finishes or needs an answer or approval.`,answer_required:`Agent needs an answer`,approval_required:`Agent needs approval`,preparing_delivery:`Preparing…`,delivery_unavailable:`Delivery unavailable`,delivery_error_initialization:`Could not initialize notification delivery. Reload the page or enable notifications again.`,delivery_error_unsupported:`This browser cannot use the notification delivery API. Use a browser that supports system notifications.`,delivery_error_permission:`Notification permission was revoked. Allow notifications again in the browser’s site settings.`,delivery_error_delivery:`Could not send the notification. Check browser and system notification settings, then retry. In-page status and unread indicators remain available.`,test_submitted:`Notification submitted to the browser. Check your system notification center.`},preview:{a_change_snapshot_from_codex_containing_patches_in:`A change snapshot from Codex containing patches in this scope only, not all uncommitted workspace changes.`,unable_to_load_changes:`Unable to load changes`,loading_changes:`Loading changes…`,this_patch_is_truncated_only_received_content_is:`This patch is truncated. Only received content is shown.`,changed_files:`Changed files`,original_path:`Original path: {{v0}}`,wrap_lines:`Wrap lines`,hunks:`{{v0}} hunks`,this_patch_is_incomplete_or_malformed_line_numbers:`This patch is incomplete or malformed. Line numbers and counts cover received content only.`,binary_file_changed:`Binary file changed`,line_by_line_preview_is_unavailable_for_this:`Line-by-line preview is unavailable for this file.`,unable_to_read_change_content:`Unable to read change content`,the_content_is_not_a_recognized_unified_diff:`The content is not a recognized unified diff. Wait for Codex to update the patch, or reopen the preview.`,old_line:`Old line`,new_line:`New line`,code:`Code`,hunk:`Hunk {{v0}}`,no_line_changes:`No line changes`,this_patch_changes_only_metadata_paths_or_empty:`This patch changes only metadata, paths or empty files; there are no code lines to show.`,no_file_changes_yet:`No file changes yet`,no_previewable_patch_received_in_this_scope_yet:`No previewable patch received in this scope yet.`,lines_added_lines_removed:`{{v0}} lines added, {{v1}} lines removed`,reading_changes_timed_out_please_retry:`Reading changes timed out. Please retry.`,changes_from_this_turn_are_no_longer_in:`Changes from this turn are no longer in the readable session history.`,changes_from_this_tool_are_no_longer_in:`Changes from this tool are no longer in the readable session history.`,code_change_preview:`Code change preview`,code_changes:`Code changes`,read_only:`{{v0}} · Read only`,change_hunk_navigation:`Change hunk navigation`,previous_change_hunk:`Previous change hunk`,next_change_hunk:`Next change hunk`,change_content:`Change content`,line_changes_in:`Line changes in {{v0}}`,change_type:`Change type`,context:`Context`,note:`Note`,copy_source:`Copy source`,preview:`Preview`,source:`Source`,cannot_preview_this_file:`Cannot preview this file`,loading_file:`Loading file…`,file_loading_timed_out_please_retry:`File loading timed out. Please retry.`,copied_source:`Copied {{v0}} source`,copy_failed_select_and_copy_the_source_manually:`Copy failed. Select and copy the source manually.`,file_preview:`{{v0}} file preview`,close_file_preview:`Close file preview`,file:`{{v0}} file`,file_display_mode:`File display mode`,file_content:`File content`,source_2:`{{v0}} source`,close:`Close {{v0}}`,open_original_image:`Open original image`,retry_loading_image:`Retry loading image`,loading_image:`Loading image…`,image_url_unavailable:`Image URL unavailable.`,fit_to_window:`Fit to window`,to_zoom_esc_to_close:`+ / − to zoom · Esc to close`,image_loading_timed_out_please_retry:`Image loading timed out. Please retry.`,image_failed_to_load_it_may_have_expired:`Image failed to load. It may have expired, access may be restricted, or the network may be unavailable.`,cannot_decode_image_the_file_may_be_damaged:`Cannot decode image. The file may be damaged or unsupported by this browser.`,click_to_enlarge_image:`Click to enlarge image`,image_preview:`Image preview`,close_image_preview:`Close image preview`,image_zoom:`Image zoom`,zoom_out:`Zoom out`,image_zoom_level:`Image zoom level`,zoom_in:`Zoom in`,image_viewing_area:`Image viewing area`,original_image_link:`Original image link`,original_path_2:`Original path`,copy_failed_select_and_copy_the_code_manually:`Copy failed. Select and copy the code manually.`,copy_code_block:`Copy code block`,code_block:`Code block`,preview_file:`Preview file: {{v0}}`,table:`Table`,modified:`Modified`,renamed:`Renamed`,unknown_file:`Unknown file`,no_newline_at_end_of_file:`No newline at end of file`,output_truncated:`[Output truncated`,content_truncated:`[Content truncated`,invalid_json_source_preserved_check_quotes_commas_and:`Invalid JSON. Source preserved; check quotes, commas and brackets.`,json_is_too_deep_or_large_to_format:`JSON is too deep or large to format. Source is preserved for viewing.`,cannot_read_image_check_login_and_file_access:`Cannot read image. Check login and file access permissions.`,image_loading_failed_please_retry:`Image loading failed ({{v0}}). Please retry.`,your_login_may_have_expired_log_in_again:`Your login may have expired. Log in again to preview images.`,the_server_did_not_return_a_supported_image:`The server did not return a supported image format.`,hunks_other:`{{v0}} hunks`,hunks_one:`{{v0}} hunk`,new_files_in_this_snapshot:`Files in this snapshot: {{v0}}`,new_choose_expand_changes_to_view_it:`{{v0}} Choose “Expand changes” to view it.`,new_collapse_changes:`Collapse changes`,new_hunks:`{{v0}} / {{v1}} hunks`,new_changed_file_list:`Changed file list`,new_expand_changes:`Expand changes`,new_changes_were_collapsed_manually:`Changes were collapsed manually.`,new_changes_in:`Changes in {{v0}}`,new_copy_source:`Copy source`,new_receiving_mermaid_source_the_diagram_appears_when:`Receiving Mermaid source; the diagram appears when the code block is complete.`,new_cannot_render_this_mermaid_diagram_check_the:`Cannot render this Mermaid diagram. Check the syntax or copy the source into an editor to fix it.`,new_rendering_mermaid_diagram:`Rendering Mermaid diagram…`,new_mermaid_source_copied:`Mermaid source copied`,new_copy_failed_select_and_copy_the_source:`Copy failed. Select and copy the source manually.`,new_view_diagram:`View diagram`,new_view_source:`View source`,new_fit_width:`Fit width`,new_actual_size:`Actual size`,new_mermaid_source:`Mermaid source`,new_mermaid_diagram_region:`Mermaid diagram region`,new_mermaid_diagram:`Mermaid diagram`,new_this_file_has_lines_exceeding_300_collapsed:`This file has {{v0}} lines, exceeding 300; collapsed by default.`,new_this_file_exceeds_50_000_characters_collapsed:`This file exceeds 50,000 characters; collapsed by default.`,empty_file:`This file is empty.`,dev_title:`Development previews`,dev_preview:`Preview`,dev_enable:`Enable development preview proxy`,dev_full:`Allow full requests · High risk`,dev_risk:`Opens business APIs, writes, any response type and business WebSockets for registered services. Identity, process checks and browser isolation remain enforced.`,dev_open:`Open preview`,dev_empty:`No confirmed development services in this session.`,dev_running:`Running`,dev_withdrawn:`Unavailable`,dev_failed:`Preview request failed. Check the connection and retry; allow new tabs to open previews.`,dev_reopen:`Settings applied. Reopen previews to use the new policy.`,dev_inspection_failed:`Process inspection failed. Preview access has been withdrawn.`,dev_unavailable:`Service discovery is unavailable on this platform.`,dev_workspace:`Session workspace`},settings:{currently_running:`Currently running: {{v0}}`,configure_the_computer_running_this_service_restart_it:`Configure the computer running this service. Restart it manually to apply saved changes.`,configuration_file:`Configuration file`,saving_does_not_restart_the_service_or_interrupt:`Saving does not restart the service or interrupt tasks.`,reloading_discards_current_edits_and_loads_the_latest:`Reloading discards current edits and loads the latest file content.`,discard_edits_and_reload:`Discard edits and reload`,discard_unsaved_changes:`Discard unsaved changes?`,the_configuration_file_has_not_been_changed:`The configuration file has not been changed.`,keep_editing:`Keep editing`,discard_changes_and_close:`Discard changes and close`,keep_the_current_data_directory_and_initial_project:`Keep the current data directory and initial project configuration. {{v0}}`,saved:`Saved: {{v0}}`,change_to:`Change to: {{v0}}`,no_differences_from_the_saved_configuration:`No differences from the saved configuration.`,view_full_json:`View full JSON`,back_to_editing:`Back to editing`,apply_to_form:`Apply to form`,import_configuration:`Import configuration`,export_saved_configuration:`Export saved configuration`,import_updates_service_settings_only_export_includes_initial:`Import updates service settings only. Export includes initial project settings from the file, but excludes registered projects, sessions, databases and login credentials.`,network_and_access:`Network and access`,local_tailscale_local:`Local / Tailscale (local)`,local_mode_listens_only_on_loopback_addresses_use:`Local mode listens only on loopback addresses. Use Cloudflare Access for public internet access.`,data_and_projects:`Data and projects`,work_dir:`Project base directory (workDir, optional)`,work_dir_help:`Absolute directory on the service host. Applies immediately to future imports and clones; leave blank to require absolute paths. Existing projects stay in place.`,service_settings_apply_help:`Configure the computer running this service. workDir applies when saved; other settings require a restart.`,data_directory_read_only:`Data directory (read only)`,current_runtime_directory:`Current runtime directory`,changing_the_data_directory_requires_database_migration_while:`Changing the data directory requires database migration while the service is stopped. Manage projects in the sidebar; these settings do not overwrite saved project management changes.`,advanced_settings:`Advanced settings`,operation_failed_please_retry:`Operation failed. Please retry.`,configuration_files_cannot_exceed_256_kib:`Configuration files cannot exceed 256 KiB.`,cannot_parse_json_check_the_file_format:`Cannot parse JSON. Check the file format.`,exported_saved_configuration_from_the_file_unsaved_edits:`Exported saved configuration from the file; unsaved edits are excluded.`,not_set:`Not set`,close_service_settings:`Close service settings`,loading_configuration:`Loading configuration…`,reload_configuration:`Reload configuration`,saved_restart_to_apply:`Saved; restart to apply`,saved_and_running_configurations_match:`Saved and running configurations match`,confirm_discarding_edits:`Confirm discarding edits`,import_configuration_preview:`Import configuration preview`,save_configuration_preview:`Save configuration preview`,preview_imported_configuration:`Preview imported configuration`,confirm_configuration_changes:`Confirm configuration changes`,applying_to_the_form_replaces_editable_settings_but:`Applying to the form replaces editable settings but does not change the file until you review and save.`,these_changes_apply_after_restarting_the_service_confirm:`These changes apply after restarting the service. Confirm the new access address and authentication settings.`,ignored_from_the_imported_file:`Ignored {{v0}} from the imported file.`,imported_configuration_applied_to_form_not_saved_yet:`Imported configuration applied to form; not saved yet.`,configuration_saved_restart_the_service_manually_when_convenient:`Configuration saved. Restart the service manually when convenient.`,configuration_saved_and_matches_the_running_configuration:`Configuration saved and matches the running configuration.`,confirm_save:`Confirm save`,choose_configuration_file:`Choose configuration file`,unsaved_changes:`Unsaved changes`,no_unsaved_changes:`No unsaved changes`,validating:`Validating…`,review_changes:`Review changes`,keep_current_settings:`{{v0}} (keep current settings)`,current_mode:`Current mode: {{v0}}{{v1}}`,permission_scope:`Permission scope`,approval_policy:`Approval policy`,permission_profile:`Permission profile`,writable_directories:`Writable directories`,temporary_directory:`Temporary directory`,current_network_permission:`Current network permission: {{v0}}`,approval_reviewer:`Approval reviewer: {{v0}}`,changes_apply_only_to_this_via_subject_to:`Changes apply only to this {{v0}} via {{v1}}, subject to Codex confirmation. Global settings are unchanged.`,keep_actual_settings_permissions_are_unchanged_until_another:`Keep actual settings. Permissions are unchanged until another mode is selected.`,pending_selection_is_currently_unavailable:`Pending selection is currently unavailable: {{v0}}`,permission_mode:`Permission mode: {{v0}}{{v1}}`,pending:`(pending)`,permission_mode_2:`Permission mode`,pending_2:`Pending`,write_within_project:`Write within project`,full_access:`Full access`,external_sandbox:`External sandbox`,approval_for_untrusted_operations:`Approval for untrusted operations`,approval_requested_by_codex:`Approval requested by Codex`,never_request_approval:`Never request approval`,custom_approval_rules:`Custom approval rules`,pending_3:`; pending: {{v0}}`,inherited:`(inherited {{v0}})`,no_codex_sandbox_restrictions:`No Codex sandbox restrictions`,writing_requires_additional_approval:`Writing requires additional approval`,project_directory:`Project directory`,excluded:`Excluded`,allowed:`Allowed`,restricted:`Restricted`,session_s_subsequent_operations:`session's subsequent operations`,project_s_new_sessions:`project's new sessions`,starting_the_next_task:`starting the next task`,creating_a_new_session:`creating a new session`,current:`{{v0}} · Current {{v1}} / {{v2}}{{v3}}{{v4}}`,save_defaults_again:`Save defaults again`,retry:`Retry`,reasoning_effort:`Reasoning effort: {{v0}}`,pending_current:`Pending · Current {{v0}}`,current_session_settings:`Current session settings`,saved_session_settings:`Saved session settings`,new_session_defaults:`New session defaults`,runtime_settings:`Runtime settings`,applies_when_creating_a_session:`Applies when creating a session`,applies_to_the_next_task:`Applies to the next task`,applies_when_sending_after_resume_or_forking:`Applies when sending after resume or forking`,pending_speed_current:` · Pending speed: {{v0}}; current: {{v1}}`,pending_permissions_current:` · Pending permissions: {{v0}}; current: {{v1}}`,undo_session_changes:`Undo session changes`,undo_changes:`Undo changes`,saving_default_model_and_reasoning_effort:`Saving default model and reasoning effort…`,saved_as_codex_defaults_for_new_sessions:`Saved as Codex defaults for new sessions`,defaults_saved_but_overridden_by_higher_priority_configuration:`Defaults saved but overridden by higher-priority configuration. New sessions use the effective settings.`,could_not_confirm_defaults_were_saved_pending_selections:`Could not confirm defaults were saved. Pending selections remain; check the submission result.`,no_project_selected:`No project selected`,model:`Model: {{v0}}`,model_2:`Model`,reasoning_effort_2:`Reasoning effort`,turn_fast_off:`Turn Fast off`,turn_fast_on_faster_replies_increased_usage:`Turn Fast on · Faster replies, increased usage`,fast_is_unavailable_for_this_model:`Fast is unavailable for this model`,fast_mode:`Fast mode`,"0_0009765625_mib_minimum_1_kib":`0.0009765625–{{v0}} MiB (minimum 1 KiB)`,range_default_mib_decimals_must_correspond_to_whole:`Range {{v0}}; default {{v1}} MiB. Decimals must correspond to whole bytes. 1 MiB = 1024 × 1024 bytes.`,listen_address:`Listen address`,use_127_0_0_1_localhost_or_1:`Use 127.0.0.1, localhost or ::1 in local mode.`,listen_port:`Listen port`,range_1_65535_use_the_new_port_after:`Range 1–65535; use the new port after changes.`,allowed_origins:`Allowed origins`,one_complete_http_s_origin_per_line_scheme:`One complete HTTP(S) origin per line: scheme, host and port only.`,access_team_domain:`Access team domain`,for_example_https_your_team_cloudflareaccess_com:`For example: https://your-team.cloudflareaccess.com`,access_application_aud:`Access application AUD`,enter_the_cloudflare_access_application_s_audience:`Enter the Cloudflare Access application's Audience.`,codex_executable:`Codex executable`,enter_codex_or_an_absolute_path_on_the:`Enter codex or an absolute path on the server.`,codex_home_optional:`CODEX_HOME (optional)`,leave_blank_to_inherit_the_service_environment_or:`Leave blank to inherit the service environment, or enter an absolute server path.`,request_timeout_milliseconds:`Request timeout (milliseconds)`,range_100_300000_default_30000:`Range 100–300000; default 30000.`,codex_message_line_limit:`Codex message line limit`,event_buffer_limit:`Event buffer limit`,websocket_buffer_limit:`WebSocket buffer limit`,item_content_limit:`Item content limit`,development_origins:`Development origins`,one_local_http_s_origin_per_line_used:`One local HTTP(S) origin per line; used only in --dev mode.`,enter_a_value_in_mib:`Enter a value in MiB.`,enter_a_valid_mib_value_decimals_are_allowed:`Enter a valid MiB value; decimals are allowed.`,range:`Range: {{v0}}.`,the_mib_value_must_correspond_to_whole_bytes:`The MiB value must correspond to whole bytes. Adjust the decimal; values are not rounded automatically.`,custom:`Custom · {{v0}}`,custom_2:`Custom`,cannot_determine_mode:`Cannot determine mode`,fast_off:`Fast off`,fast_on:`Fast on`,permission_ask:`Ask for approval`,permission_ask_description:`Read, write and run commands within the project; you approve network or out-of-scope access.`,"permission_auto-review":`Automatic approval review`,"permission_auto-review_description":`Same scope as Ask for approval; eligible requests are handled by automatic review.`,"permission_full-access":`Full access`,"permission_full-access_description":`Access files outside the project and the network, without Codex sandbox restrictions or approval.`,"permission_read-only":`Read only`,"permission_read-only_description":`Read files; writing and network access require your approval.`,permission_unavailable:`This mode is unavailable under the current Codex capabilities or managed policy.`,missingCapabilities:`Permission availability has not been read yet.`,profileRestricted:`Managed policy disallows this permission profile.`,scopeRestricted:`Managed policy disallows this permission scope.`,policyRestricted:`Managed policy disallows this approval policy.`,reviewerMissing:`Reviewer availability has not been read yet.`,reviewerRestricted:`Managed policy disallows this reviewer.`,autoReviewDisabled:`Automatic review (guardian_approval) is not enabled in this Codex.`,autoReviewRequired:`Managed policy requires automatic review for this model.`,fieldUnit:`{{label}} (MiB)`,fieldError:`{{label}}: {{reason}}`,temporaryDirectories:`TMPDIR: {{tmpdir}}; /tmp: {{slashTmp}}`,model_settings:`Model settings`,close_model_settings:`Close model settings`,next_turn:`Next turn`,live_updating:`Updating running task…`,live_fast_applied:`Fast: published for later model steps`,live_reviewer_applied:`Reviewer: published for later steps; pending approvals unchanged`,live_permissions_deferred:`Permissions: next turn (sandbox and approval policy are fixed)`,live_fast_deferred:`Fast: next turn until a live update is confirmed`,context_trigger:`Context usage`,context_not_reported:`Usage not reported`,context_stale:`Last known usage`,context_compaction:`Context changed; awaiting usage`,context_modelChanged:`Model changed; awaiting usage`,context_recent:`Latest model call`,context_usage:`Context {{used}} / {{limit}} tokens`,thread_only_model_selection:`Applied to this session only`,model_catalog_unavailable:`Model choices are unavailable for this session.`,restart_idle:`Covro is idle.`,restart_title:`Restart Covro`,restart_description:`Reload the service and its managed Codex app-server to apply saved configuration.`,restart_unsupported:`Web restart requires Covro started through its CLI on macOS or Linux. Use the original service controls for this deployment.`,restart_busy:`Waiting for these to finish: {{tasks}}.`,restart_when_idle:`Restart when idle`,restart_cancel:`Cancel scheduled restart`,restart_phase_waiting:`Waiting for idle`,restart_phase_restarting:`Restarting Covro`,restart_phase_verifying:`Checking the new Codex app-server`,restart_phase_succeeded:`Covro restarted and reconnected`,restart_phase_cancelled:`Restart cancelled`,restart_failed:`Restart failed`,restart_reconnecting:`Reconnecting to Covro…`,restart_unreachable:`Covro has not reconnected. Check the service on the host.`,restart_blocker_running:`running sessions`,restart_blocker_approval:`pending approvals`,restart_blocker_input:`requests for input`,restart_blocker_clone:`Git clones`,restart_blocker_shell:`shell commands`,restart_blocker_retry:`model retries`,restart_blocker_operation:`in-flight or unconfirmed operations`,restart_blocker_maintenance:`service maintenance`,restart_failure_timedOut:`Covro did not become idle within 30 minutes. Check the remaining tasks before retrying.`,restart_failure_config:`The Covro configuration could not be read or validated. Check the saved file.`,restart_failure_identity:`The data directory, listener, or access settings changed. Apply those changes using the original service controls.`,restart_failure_launch:`Covro could not verify or reload its current executable. Check the original installation and launch environment.`,restart_failure_shutdown:`Covro could not confirm that its managed service stopped. Inspect the host logs before starting it again.`,restart_failure_interrupted:`The service stopped before it could confirm this restart.`,restart_failure_startup:`The new Covro process could not start. Check the service logs on the host.`,restart_failure_codex:`Covro started, but its new Codex app-server did not become ready in time. Check the Codex configuration and logs.`,restart_failure_storage:`Covro could not save the restart record. Check permissions and available disk space.`,restart_failure_activity:`Covro could not verify whether its app-server was idle. Check the Codex connection and retry.`,restart_request_failed:`Covro could not complete the request. Check the latest status before trying again.`,restart_receipt_unknown:`The request receipt was lost. Covro is checking the saved restart status.`,restart_retry_request:`Check the same request`,restart_status_unavailable:`Restart status is unavailable. Covro is trying to reconnect.`,restart_recovery_help:`Run covro status and covro logs on the host with the same --config. Match the restart ID in the logs.`},shell:{collapsing_does_not_stop_commands:`Collapsing does not stop commands{{v0}}`,commands_use_the_codex_server_sandbox_independently_of:`Commands use the Codex server sandbox, independently of session permissions. Each starts at the project root without interactive input. Collapsing, closing or switching projects does not stop commands.`,still_running_in_other_projects_switch_to_view:`Still running in other projects: {{v0}}. Switch to view or interrupt them.`,shell_disconnected_reconnecting_received_output_is_preserved_and:`Shell disconnected; reconnecting. Received output is preserved and status needs checking. Disconnecting the browser does not stop commands.`,checking_command_submission:`Checking command submission:`,check_and_retry_original_submission:`Check and retry original submission`,recent_commands:`Recent commands`,not_run_yet:`Not run yet`,reuse_command:`Reuse command`,exit_code:`Exit code {{v0}}`,output_truncated_64_kib_maximum:`Output truncated (64 KiB maximum)`,run_commands_in_the_project_directory_and_view:`Run commands in the project directory and view output live.`,for_example_git_status_pwd_or_project_tests:`For example: git status, pwd, or project tests`,shell_command:`Shell command`,interrupting:`Interrupting`,result_unknown:`Result unknown`,shell_panel:`Shell panel`,select_a_project:`Select a project`,expand_shell:`Expand Shell`,collapse_shell:`Collapse Shell`,close_shell_panel:`Close Shell panel`,running_in_other_projects:` · Running in {{v0}} other projects`,recent_shell_commands:`Recent Shell commands`,shell_output:`Shell output`,waiting_for_output:`Waiting for output…`,no_output:`No output`,enter_a_command:`Enter a command…`,commands_run_on_the_server_and_can_be:`Commands run on the server and can be interrupted`,ctrl_enter_to_run_10_minute_limit:`Ctrl / ⌘ + Enter to run · 10-minute limit`,interrupting_2:`Interrupting…`,interrupt_command:`Interrupt command`,the_service_restarted_execution_state_cannot_be_restored:`The service restarted; execution state cannot be restored. Received output is preserved.`,execution_was_submitted_but_its_record_expired_or:`Execution was submitted, but its record expired or the service restarted. Check results on the server.`,command_could_not_start:`Command could not start`,submission_is_unconfirmed_and_being_checked_do_not:`Submission is unconfirmed and being checked. Do not run it again.`,submission_is_still_unconfirmed:`Submission is still unconfirmed`,interrupt_result_is_unconfirmed_refresh_and_check:`Interrupt result is unconfirmed. Refresh and check.`,interrupt_failed_please_retry:`Interrupt failed. Please retry.`,still_running_in_other_projects_switch_to_view_other:`Still running in other projects: {{v0}}. Switch to view or interrupt them.`,still_running_in_other_projects_switch_to_view_one:`Still running in other project: {{v0}}. Switch to view or interrupt them.`,running_in_other_projects_other:` · Running in {{v0}} other projects`,running_in_other_projects_one:` · Running in {{v0}} other project`},sidebar:{remove_from_this_workspace:`Remove “{{v0}}” from this workspace?`,only_the_project_list_entry_is_removed_server:`Only the project list entry is removed. Server files and session history are preserved.`,add_the_same_directory_later_to_access_its:`Add the same directory later to access its history again. Finish running tasks and resolve unconfirmed operations first.`,server_directory:`Server directory`,enter_an_existing_absolute_path_on_the_server:`Enter an existing absolute path on the server, not this browser's device. The service must have access.`,resolved_path:`Final server path`,path_resolving:`Resolving path…`,path_retry:`Retry path check`,work_dir_path_help:`Use an existing directory on the server. Relative paths use workDir from Service configuration; absolute paths are used directly.`,work_dir_clone_help:`Defaults to workDir/repository-name when configured. You can edit it; relative paths use workDir and absolute paths are used directly. The parent must exist and be writable.`,your_login_expired_log_in_again_to_manage:`Your login expired. Log in again to manage projects.`,remove_project:`Remove project…`,remove_project_2:`Remove project`,add_server_project:`Add server project`,close_project_management:`Close project management`,set_a_recognizable_project_name_or_remove_it:`Set a recognizable project name, or remove it from the workspace.`,add_an_existing_directory_on_the_server_running:`Add an existing directory on the server running Codex Web UI to view history and start tasks.`,project_name:`Project name`,project_name_optional:`Project name (optional)`,defaults_to_directory_name:`Defaults to directory name`,back:`Back`,removing:`Removing…`,confirm_removal:`Confirm removal`,save_name:`Save name`,projects_and_sessions:`Projects and sessions`,archived_sessions:`Archived sessions`,all_sessions_loaded:`All sessions loaded`,runs_on_server:`Runs on server`,code_and_credentials_stay_on_the_computer_running:`Code and credentials stay on the computer running the service`,close_session_navigation:`Close session navigation`,updating:`Updating`,update_available:`Update available`,version_and_updates:`Version and updates`,close_navigation:`Close navigation`,search_projects_and_loaded_sessions:`Search projects and loaded sessions`,search_results_projects:`Search results · {{v0}} projects`,all_projects:`All projects · {{v0}}`,session_list_scope:`Session list scope`,refresh_session_list:`Refresh session list`,active_sessions:`{{v0}} active sessions`,creating:`Creating…`,new_session:`New session`,manage_project:`Manage project {{v0}}`,no_matches_among_loaded_sessions:`No matches among loaded sessions.`,no_archived_sessions_yet:`No archived sessions yet.`,no_sessions_yet_create_one_to_get_started:`No sessions yet. Create one to get started.`,local_list_sync_failed_browsing_is_still_available:`Local list sync failed; browsing is still available.`,showing_local_list_syncing_in_background:`Showing local list; syncing in background…`,some_local_entries_are_not_synced_load_more:`Some local entries are not synced. Load more to verify.`,loading_more_sessions:`Loading more sessions…`,syncing_sessions:`Syncing sessions…`,load_failed_retry:`Load failed; retry`,load_more_sessions:`Load more sessions`,no_matching_projects_or_loaded_sessions:`No matching projects or loaded sessions.`,no_projects_yet_add_a_server_directory_to:`No projects yet. Add a server directory to get started.`,loading_projects:`Loading projects…`,copy_full_thread_id:`Copy full Thread ID`,copy_thread_id:`Copy Thread ID`,copy_failed_select_and_copy_the_id_manually:`Copy failed. Select and copy the ID manually.`,created_from:`Created from`,updated_at:`Updated at`,task_status:`Task status`,read_status:`Read status`,pending:`Pending`,pending_requests:`{{v0}} pending requests`,session_type:`Session type`,forked_session:`Forked session`,source_records_the_client_used_at_creation_not:`Source records the client used at creation, not the current execution location or connection state.`,untitled_session:`Untitled session`,archive_session:`Archive session`,unread:` · Unread`,pending_requests_2:` · {{v0}} pending requests`,session_details_and_source:`Session details and source`,session_details:`Session details: {{v0}}`,fork_session_copy_saved_history_both_sessions_can:`Fork session: copy saved history. Both sessions can run simultaneously.`,fork_session:`Fork session`,unread_2:`Unread`,read:`Read`,session_history:`Session history`,enter_a_session_name:`Enter a session name.`,rename_session:`Rename session`,session_name:`Session name`,save_session_name:`Save session name`,cancel_rename:`Cancel rename`,enter_to_save_esc_to_cancel_up_to:`Enter to save · Esc to cancel · Up to {{v0}} characters`,click_title_to_rename_session:`Click title to rename session`,created_by_covro_this_web_page:`Created by Covro (this web page).`,created_by_the_codex_terminal_cli:`Created by the Codex terminal CLI.`,created_by_the_codex_extension_in_vs_code:`Created by the Codex extension in VS Code.`,created_by_the_codex_desktop_app:`Created by the Codex desktop app.`,recorded_creator:`Recorded creator: “{{v0}}”.`,recorded_as_a_codex_terminal_cli_source:`Recorded as a Codex terminal CLI source.`,interactive_client:`Interactive client`,codex_only_recorded_an_interactive_source_category_it:`Codex only recorded an interactive source category. It may be web, terminal or IDE; the exact client is unknown.`,recorded_as_a_codex_mcp_service_source:`Recorded as a Codex MCP service source.`,command_line_task:`Command-line task`,recorded_as_a_non_interactive_codex_command_line:`Recorded as a non-interactive Codex command-line task.`,source_unconfirmed:`Source unconfirmed`,no_recognizable_creator_codex_source_is_recorded_as:`No recognizable creator; Codex source is recorded as “{{v0}}”.`,no_recognizable_creator_information:`No recognizable creator information.`,the_session_service_restarted_retry_loading_sessions:`The session service restarted. Retry loading sessions.`,session_pagination_did_not_advance_retry_or_refresh:`Session pagination did not advance. Retry or refresh the session list.`,too_many_session_pages_read_retry_or_refresh:`Too many session pages read. Retry or refresh the session list.`,search_results_projects_other:`Search results · {{v0}} projects`,search_results_projects_one:`Search results · {{v0}} project`,all_projects_other:`All projects · {{v0}}`,all_projects_one:`All project · {{v0}}`,active_sessions_other:`{{v0}} active sessions`,active_sessions_one:`{{v0}} active session`,pending_requests_other:`{{v0}} pending requests`,pending_requests_one:`{{v0}} pending request`,pending_requests_2_other:` · {{v0}} pending requests`,pending_requests_2_one:` · {{v0}} pending request`,enter_to_save_esc_to_cancel_up_to_other:`Enter to save · Esc to cancel · Up to {{v0}} characters`,enter_to_save_esc_to_cancel_up_to_one:`Enter to save · Esc to cancel · Up to {{v0}} character`,clone_intro:`Clone a Git repository to the server running Covro. The project is added automatically when cloning finishes.`,clone_repository:`Git repository URL`,clone_auth_help:`Supports HTTPS and SSH (for example, git@github.com:owner/repo.git). Uses the server’s existing Git credentials. Do not include passwords or tokens in the URL.`,clone_target:`Destination on server`,clone_path_help:`Enter an absolute path on the server. Its parent directory must exist and be writable. The destination must be absent or empty; existing files will not be overwritten.`,clone_background_help:`Closing or refreshing the page does not cancel cloning. To stop, choose “Cancel clone”.`,clone_open:`Open project`,clone_register_retry:`Retry adding project`,clone_empty_retry:`Retry with an empty directory`,clone_checking:`Checking clone status…`,clone_progress:`Clone progress`,clone_cancelling:`Cancelling…`,clone_cancel:`Cancel clone`,clone_start:`Clone and add project`,import_existing:`Existing directory`,import_clone:`Clone Git repository`,import_source:`Project source`,search_results_groups:`Search results · {{v0}} groups`,all_sessions_projects:`All sessions · {{v0}} projects`,new_unassigned_session:`New session (no project needed)`,no_sessions_yet:`No sessions yet. Start a session directly or add a project.`,clone_progress_percent:`{{v0}} {{v1}}`,clone_stage_connecting:`Connecting to repository…`,clone_stage_receiving:`Receiving objects`,clone_stage_resolving:`Resolving deltas`,clone_stage_checking_out:`Checking out files`,clone_stage_counting:`Counting objects`,clone_stage_compressing:`Compressing objects`,clone_stage_cancelling:`Cancelling; waiting for Git to exit…`,clone_stage_completed:`Clone completed; project added`,clone_stage_registration_failed:`Clone completed; project not yet added`,clone_stage_timed_out:`Clone timed out and was stopped`,clone_stage_cancelled:`Clone cancelled`,clone_stage_failed:`Clone failed`,search_results_groups_one:`Search results · {{v0}} group`,search_results_groups_other:`Search results · {{v0}} groups`,all_sessions_projects_one:`All sessions · {{v0}} project`,all_sessions_projects_other:`All sessions · {{v0}} projects`,reorder_projects:`Reorder projects`,project_order:`Project order`,order_done:`Done`,order_help:`Drag projects or use the arrow buttons to reorder. New or restored projects appear at the end.`,project_display_order:`Project display order`,order_position:`Position {{v0}} of {{v1}}`,order_move_up:`Move project up: {{v0}}`,order_move_down:`Move project down: {{v0}}`,order_saving:`Saving order…`,order_saved:`Order saved`,order_auto_save:`Changes save automatically and survive refreshes and restarts.`,order_save_failed:`{{v0}} Please try again.`,settings:`Settings`,browser_notifications:`Browser notifications`,browser_notifications_status:`Browser notifications · {{v0}}`,tasks:`Tasks`,background_tasks:`Background tasks`,clone_background:`Run in background`,tasks_empty:`No background tasks yet`,tasks_connection_lost:`Connection lost; checking task status again.`,tasks_view:`View`,tasks_checking:`Checking submission; close and check Tasks without submitting again.`,clone_stage_interrupted:`Service interrupted; clone result unconfirmed`},updates:{recommended_verified:`Recommended: {{v0}} · Verified: {{v1}}`,current_covro:`Current Covro`,release_channel:`Release channel`,auto_update_when_idle:`Auto-update when idle`,periodically_check_this_channel_and_install_verified_codex:`Periodically check this channel and install verified Codex combinations after tasks finish, then restart.`,subscribed_to_switches_to_after_a_successful_update:`Subscribed to {{v0}}. Switches to {{v1}} after a successful update.`,i_agree_to_try_the_unverified_combination_of:`I agree to try the unverified combination of Codex {{v0}} and Covro {{v1}} for this update only.`,allow_downgrade_incompatible_databases_still_block_switching:`Allow downgrade; incompatible databases still block switching`,version_source_official_npm_registry:`Version source: official npm registry · {{v0}}`,update_history:`Update history`,updates_preserve_configuration_projects_and_session_history_processing:`Updates preserve configuration, projects and session history. Processing continues if you close the page, and reconnects automatically after restart.`,stable:`Stable`,beta:`Beta`,development:`Development`,installing_candidate_version:`Installing candidate version`,waiting_for_tasks_to_finish:`Waiting for tasks to finish`,backing_up_and_restarting:`Backing up and restarting`,verifying_new_version:`Verifying new version`,update_successful:`Update successful`,previous_version_restored:`Previous version restored`,update_failed:`Update failed`,verified:`Verified`,unverified:`Unverified`,explicitly_unsupported:`Explicitly unsupported`,cannot_confirm:`Cannot confirm`,unrecognized:`Unrecognized`,close_update_settings:`Close update settings`,current_codex:`Running Codex`,verified_releases_for_everyday_use:`Verified releases for everyday use.`,try_features_being_prepared_for_release:`Try Beta features and newer stable releases; updates keep your Beta subscription.`,follows_checked_main_commits_for_developers_testing_new:`Follow checked main commits and newer stable releases, without Beta; updates keep your Dev subscription.`,disabled:`Disabled`,this_channel_is_already_at_the_current_version:`This channel is already at the current version`,target_version:`Target version`,available_version:`Available version`,target_version_compatibility:`Target version compatibility`,allow_trying_an_unverified_codex_combination:`Allow trying an unverified Codex combination`,auto_update_is_paused_adjust_the_codex_version:`Auto-update is paused. Adjust the Codex version and check again, or confirm to try manually.`,auto_update_is_paused_restore_the_codex_connection:`Auto-update is paused. Check the Codex launch source after restart and the target compatibility declaration, then check again.`,processing:`Processing…`,check_for_updates:`Check for updates`,use_this_channel:`Use this channel`,switch_and_restart:`Switch and restart`,update_and_restart:`Update and restart`,update_progress:`Update progress`,draft_backup_failed_page_reload_postponed:`Draft backup failed; page reload postponed`,connection_interrupted_waiting_for_the_service_to_recover:`Connection interrupted; waiting for the service to recover…`,operation_unconfirmed_check_update_status:`Operation unconfirmed. Check update status.`,cannot_open_draft_backup_close_old_pages_and:`Cannot open draft backup. Close old pages and retry.`,draft_backup_failed:`Draft backup failed`,manualUpdate:`This deployment supports version checks only. Update and restart it using the original deployment method.`,checkFailed:`Could not check for updates. Review technical details and retry later.`,installingDescription:`Installing the candidate version; existing sessions are preserved.`,waitingDescription:`Waiting for tasks, approvals and unconfirmed operations before switching versions.`,stoppingDescription:`Stopping the old service and backing up data; new tasks are temporarily paused.`,verifyingDescription:`Starting the new version, migrating and verifying data; new tasks remain paused.`,succeededDescription:`Update succeeded and the service has recovered.`,rolledBackDescription:`The new version could not start; the previous version was restored. Review technical details.`,failedDescription:`The update did not complete. Review technical details and service logs, and check the running version.`,releaseNotes:`Release notes`,releaseNotesFor:`Release notes · {{version}}`,viewOnGitHub:`View on GitHub`,releaseNotesContent:`Release notes content`,releaseNotesLoading:`Loading release notes…`,releaseNotesMissing:`No release notes are available for this version. Some Beta / Dev versions have no GitHub Release. You can still update.`,releaseNotesEmpty:`This release has no description yet. You can still update.`,releaseNotesRateLimited:`GitHub is limiting requests. Retry later; you can still update.`,releaseNotesFailed:`Could not load release notes. Check the connection and retry; you can still update.`,runtime:`Node environment`,installation_source:`Installation source`,runtime_unavailable:`Cannot confirm the target Node environment. Review details and check again.`,migrate_and_restart:`Switch Node and restart`,cancelled:`Update cancelled`,cancel_pending_update:`Cancel pending update`,cancelledDescription:`The pending update was cancelled. The current service continues running.`,after_restart:`Codex after restart`,unverified_combination:`Codex {{version}} has not been verified with this Covro version.`,unknown_compatibility:`Cannot confirm the Codex version or compatibility declaration. Check again.`,restart_unavailable:`Cannot confirm Codex after restart. Check the launch source and try again.`,unsupported_combination:`This Covro version does not support Codex {{version}}.`},workspace:{simulation_mode_results_come_from_the_explicitly_enabled:`Simulation mode · Results come from the explicitly enabled test app-server`,your_login_has_expired_disconnecting_this_page_does:`Your login has expired. Disconnecting this page does not cancel tasks.`,reopen_login:`Reopen login`,live_connection_showing_the_last_known_state:`Live connection: {{v0}}. Showing the last known state.`,reconnect_now:`Reconnect now`,codex_is_unavailable:`Codex is unavailable: {{v0}}`,error_details:`Error details`,this_session_is_archived:`This session is archived`,history_is_preserved_unarchive_to_continue_the_conversation:`History is preserved. Unarchive to continue the conversation.`,confirming_the_fork_wait_for_the_receipt_before:`Confirming the fork… Wait for the receipt before forking again.`,this_codex_version_does_not_support_session_forks:`This Codex version does not support session forks.`,you_can_fork_once_the_connection_recovers_and:`You can fork once the connection recovers and Codex is ready.`,the_project_directory_is_unavailable_restore_access_before:`The project directory is unavailable. Restore access before forking.`,confirm_compatibility_with_the_current_codex_version_first:`Confirm compatibility with the current Codex version first.`,send_the_first_message_to_enable_forking_saved:`Send the first message to enable forking saved history.`,check_settings:`Check settings`,check_the_session_operation_results_first:`Check the session operation results first`,available_when_the_connection_recovers:`Available when the connection recovers`,confirm_codex_version_compatibility_first:`Confirm Codex version compatibility first`,this_codex_version_does_not_support_this_operation:`This Codex version does not support this operation`,finish_the_task_and_resolve_pending_requests_before:`Finish the task and resolve pending requests before archiving`,session_state_needs_checking_archiving_is_temporarily_unavailable:`Session state needs checking; archiving is temporarily unavailable`,open_projects_and_sessions:`Open projects and sessions`,more_actions:`More actions`,diagnostics_with_count:`Diagnostics ({{v0}})`,workspace:`Workspace`,new_session:`New session`,start_your_next_task:`Start your next task`,open_shell_panel:`Open Shell panel`,running_shell_commands:`Running Shell commands`,return_to_original_session:`Return to original session`,connecting:`Connecting`,disconnected_reconnecting:`Disconnected, reconnecting`,check_the_codex_installation_authentication_and_service_on:`Check the Codex installation, authentication and service on your computer.`,dismiss_error:`Dismiss error`,rename_result_awaiting_confirmation:`Rename result awaiting confirmation`,saving_session_name:`Saving session name…`,archive_result_awaiting_confirmation:`Archive result awaiting confirmation`,archiving_session:`Archiving session…`,unarchive_result_awaiting_confirmation:`Unarchive result awaiting confirmation`,unarchiving:`Unarchiving…`,check_submission:`Check submission`,pending_requests:`Pending requests`,the_new_session_submission_is_unconfirmed_check_it:`The new-session submission is unconfirmed. Check it before creating another session.`,the_fork_result_is_unconfirmed_check_the_submission:`The fork result is unconfirmed. Check the submission before forking again.`,the_submission_result_is_unconfirmed_check_it_or:`The submission result is unconfirmed. Check it, or fork saved history into a new session.`,your_answer_is_needed:`Your answer is needed`,free_text_answer:`Free-text answer`,your_answer_will_be_sent_to_this_session:`Your answer will be sent to this session so Codex can continue.`,questions_from_codex:`Questions from Codex`,answer_sent:`Answer sent`,sending:`Sending…`,you_can_answer_later:`You can answer later`,answer_submit_shortcut:`{{shortcut}} to send / Enter for a new line`,send_answer:`Send answer`,codex_has_not_been_verified_some_features_may:`Codex {{v0}} has not been verified; some features may not work. {{v1}}`,view_compatibility_notice:`View compatibility notice`,codex_version_compatibility_is_unverified:`Codex version compatibility is unverified`,this_codex_version_is_unverified_some_features_may:`This Codex version is unverified; some features may not work. The compatibility notice remains after you continue.`,codex_is_unavailable_close_this_notice_and_check:`Codex is unavailable. Close this notice and check diagnostics before continuing.`,wait_for_the_connection_and_codex_authentication_to:`Wait for the connection and Codex authentication to recover before confirming.`,the_confirmation_result_needs_checking_refresh_status_or:`The confirmation result needs checking. Refresh status or confirm permission for the current version again. Tasks will not be resent.`,refresh_confirmation_status:`Refresh confirmation status`,confirm_again:`Confirm again`,you_can_still_view_diagnostics_or_interrupt_tasks:`You can still view diagnostics or interrupt tasks after closing this notice. Confirmation does not send tasks; unsent drafts are preserved.`,not_now:`Not now`,permission_to_continue_confirmed_this_does_not_verify:`Permission to continue confirmed; this does not verify the version.`,confirmation_required_before_use:`Confirmation required before use.`,confirming:`Confirming…`,json_source:`JSON source`,formatted_json:`Formatted JSON`,copy_reply_markdown:`Copy reply (Markdown)`,copy_reply:`Copy reply`,copy_failed_select_and_copy_the_reply_manually:`Copy failed. Select and copy the reply manually.`,cannot_read_default_settings:`Cannot read default settings`,the_browser_cannot_save_operation_records_keep_this:`The browser cannot save operation records. Keep this page open to check unconfirmed submissions.`,operation_failed_check_details:`Operation failed. Check details.`,confirm_the_codex_version_compatibility_notice_before_starting:`Confirm the Codex version compatibility notice before starting operations.`,cannot_read_session_history_no_file_downloaded:`Cannot read session history. No file downloaded.`,login_expired_or_history_response_was_not_markdown:`Login expired or history response was not Markdown. Log in again and retry.`,export_response_has_no_valid_filename_no_file:`Export response has no valid filename. No file downloaded.`,export_response_lacks_history_completeness_information_no_file:`Export response lacks history completeness information. No file downloaded.`,request_failed_please_try_again:`Request failed. Please try again.`,open_github_repository:`Open GitHub repository`,end_question_tracking:`Skip`,end_remaining_tracking:`Skip all`,end_tracking_hint:`Stop Covro reminders without sending an answer or draft, or stopping the task.`,question_tracking_ended:`Skipped · no answer sent`,questions_handled:`Handled`,answer_receipt_pending:`Answer receipt pending`,skip_all_questions_hint:`Skip every unanswered question in this group, including filled drafts. No answers are sent and the task continues.`}},"zh-Hans":{account:{title:`账户额度`,scope:`当前 Codex 实例的账户额度,与会话 token 分开统计。`,refresh:`刷新`,refreshing:`正在刷新…`,updatedAt:`数据时间:{{time}}`,loading:`正在读取账户额度…`,signedOut:`Codex 尚未登录。`,unsupported:`此账户或 Codex 实例不提供额度信息。`,offline:`Codex 已离线,重新连接后可读取账户额度。`,refreshFailed:`刷新失败。当前显示的数值来自上次成功读取。`,noWindows:`未报告额度窗口。`,quota:`账户额度`,primary:`主窗口`,secondary:`次窗口`,used:`已用 {{value}}`,remaining:`剩余 {{value}}`,usageUnknown:`未报告使用比例`,resetsAt:`重置时间:{{time}}`,resetUnknown:`未报告重置时间`,resetPassed:`重置时间已过,请刷新确认当前额度`,exhausted:`额度已耗尽`,credits:`Credits`,unlimited:`无限额度`,balance:`余额:{{value}}`,balanceUnknown:`未报告余额`,creditsAvailable:`Credits 可用`,creditsDepleted:`无可用 credits`,individualLimit:`个人支出限制`,reportedUsed:`已用:{{value}}`,reportedLimit:`限额:{{value}}`,spendControlReached:`已达到支出限制`,spendControlNotReached:`未达到支出限制`,usageAllowed:`允许使用订阅内额度`,usageBlocked:`不允许使用订阅内额度`,resetCredits:`可用的已获重置次数:{{count}}`,ownerCreditsDepleted:`工作区所有者 credits 已耗尽`,memberCreditsDepleted:`工作区成员 credits 已耗尽`,ownerUsageReached:`已达到工作区所有者用量限制`,memberUsageReached:`已达到工作区成员用量限制`},approvals:{working_directory:`工作目录:`,another_answer:`其他回答`,this_interaction_is_unsupported_no_approval_was_sent:`当前版本不支持此交互请求,未发送批准。请查看兼容性诊断。`,request_could_not_be_handled:`请求未能处理`,network_destination:`网络访问目标`,change_details:`变更详情`,request_details:`请求详情`,automatic_review:`自动审核`,review_rationale:`审核原因`,risk_assessment:`风险评估`,user_authorization_assessment:`用户授权评估`,review_id:`审核标识`,operation_id:`操作标识`,started_at:`开始时间`,finished_at:`结束时间`,reviewing:`审核中`,allowed:`已允许`,review_aborted:`审核已中止`,low:`低`,medium:`中`,high:`高`,critical:`极高`,unknown:`未知`,no_valid_time_provided:`未提供有效时间`,automatic_review_2:`自动审核结果:{{v0}},{{v1}}`,no_reviewed_operation_provided:`未提供被审核操作。`,no_review_rationale_provided:`未提供审核原因。`,source:`来源:`,session_approval_applies_only_to_this_request_s:`本会话允许仅适用于当前请求对应的工具或连接范围,并受审批策略约束;新会话需重新确认。`,url:`访问地址`,open_in_new_tab:`在新标签页打开`,complete_the_steps_on_the_page_then_click:`完成页面中的操作后,点击“我已完成”继续。`,leave_blank:`不填写`,select_an_option:`请选择`,yes:`是`,no:`否`,check_the_highlighted_fields_before_submitting:`请检查标出的字段后再提交。`,allow_for_this_session:`本会话允许`,deny:`拒绝`,enter_an_integer:`填写整数`,minimum:`最小 {{v0}}`,maximum:`最大 {{v0}}`,at_least_characters:`至少 {{v0}} 个字符`,at_most_characters:`最多 {{v0}} 个字符`,select_at_least_items:`至少选择 {{v0}} 项`,select_at_most_items:`最多选择 {{v0}} 项`,include_a_time_zone_e_g_2026_10:`日期与时间需包含时区,例如 2026-10-14T12:30:00+08:00`,this_field_is_required:`请填写此必填项。`,check_the_requirements_for_this_field:`请检查此字段的填写要求。`,allow_once:`允许本次`,i_m_done:`我已完成`,this_request_has_no_safe_http_or_https:`此请求没有可安全打开的 HTTP 或 HTTPS 地址,无法确认完成。`,no_url_provided:`未提供地址`,required:`必填`,optional:`可选`,not_provided_optional:`未填写(可选)`,network_access:`网络访问`,files_and_directories:`文件与目录`,directory_matching_depth:`目录匹配搜索深度:{{v0}}`,no_additional_network_or_file_access_requested:`未请求额外网络或文件访问权限。`,read:`读取`,write:`写入`,deny_access:`禁止访问`,network_access_allowed:`允许访问网络`,no_additional_network_access:`不开放额外网络访问`,no_network_access_changes_specified:`未指定网络访问变更`,action_required:`需要你处理`,handled:`已处理`,request_expired:`请求已失效`,commandApproval:`命令审批`,humanCommandApproval:`需要人工批准的命令`,fileApproval:`文件变更审批`,permissionsApproval:`额外权限审批`,networkApproval:`网络权限:{{target}}`,mcpApproval:`MCP 工具审批:{{server}}`,mcpInteraction:`MCP 交互:{{server}}`,unsupported:`不支持的 Codex 交互请求`,cancelTask:`取消当前任务`,allowTask:`当前任务允许`,commandRule:`允许并记住命令规则:{{rule}}`,networkRule:`应用网络规则:{{rule}}`,command:`命令执行`,execve:`程序执行`,writeStdin:`终端输入`,applyPatch:`文件变更`,networkAccess:`网络访问`,mcpToolCall:`工具调用`,requestPermissions:`权限变更`,unknownAction:`操作审核`,at_least_characters_other:`至少 {{v0}} 个字符`,at_least_characters_one:`至少 {{v0}} 个字符`,at_most_characters_other:`最多 {{v0}} 个字符`,at_most_characters_one:`最多 {{v0}} 个字符`,select_at_least_items_other:`至少选择 {{v0}} 项`,select_at_least_items_one:`至少选择 {{v0}} 项`,select_at_most_items_other:`最多选择 {{v0}} 项`,select_at_most_items_one:`最多选择 {{v0}} 项`,program:`程序`,arguments:`参数`,process:`进程`,depth:`目录匹配搜索深度`,networkAllowed:`允许访问网络`,networkRestricted:`不开放额外网络访问`,fieldValue:`{{label}}:{{value}}`,denyDecision:`拒绝`,accessDeny:`禁止访问`,skip_question:`跳过此问题`,answer_question:`回答此问题`,question_skipped:`已跳过`,question_will_be_skipped:`提交时跳过此问题`,skip_all_questions:`全部跳过并提交`,submit_with_skipped:`提交回答与跳过项`},backups:{title:`备份与恢复`,close:`关闭备份与恢复`,introduction:`备份保存在运行服务的电脑上。等待任务、审批和待核对操作结束后生成快照,不中断正在运行的任务。`,overview:`备份概况`,currentSchema:`当前 Schema {{version}}`,completed_one:`已完成 {{number}} 份 · {{size}}`,completed_other:`已完成 {{number}} 份 · {{size}}`,processing:`正在处理…`,create:`立即备份`,cancel:`取消备份`,progress:`备份进度`,databaseProgress:`数据库备份进度`,continues:`关闭此页面后,服务仍会继续处理。`,records:`备份记录`,loading:`正在读取备份记录…`,empty:`还没有备份。创建第一份快照,或在升级前自动创建。`,protected:`升级修复保留 · 请勿清理`,verify:`重新验证`,verified:`备份已重新验证,可按当前版本的恢复流程使用。`,recovery:`恢复方式`,recoveryWarning:`先在服务端终端预检,停服后用相同备份 ID 确认恢复。恢复会覆盖配置和应用数据,并丢弃备份之后的应用数据。`,recoveryPreview:`预检会显示覆盖范围、兼容性及后续确认步骤。`,scope:`备份范围与保留策略`,scopeTitle:`范围与保留`,included:`包含 Covro 服务配置、项目注册、偏好和应用数据库记录。Codex 会话正文、凭据、附件与产物、项目文件需要分别备份。`,retention:`备份不自动清理。升级修复依赖的备份应保留;恢复前的原始文件副本也会占用磁盘。`,directory:`存储目录`,loadFailed:`无法读取备份记录,请重试。`,operationFailed:`备份操作失败,请重试。`,unavailable:`当前服务无法使用备份,请查看技术详情。`,phase_waiting:`等待安全点`,phase_copying:`正在备份`,phase_verifying:`正在验证`,phase_succeeded:`备份成功`,phase_failed:`备份失败`,phase_cancelled:`已取消`,phase_interrupted:`备份已中断`,phase_corrupt:`备份不可用`,description_waiting:`等待任务、审批、输入及待核对操作结束。`,description_copying:`正在生成数据库与配置快照。`,description_verifying:`正在检查文件完整性与数据库兼容性。`,description_succeeded:`快照已通过验证,可用于离线恢复。`,description_failed:`未生成可恢复快照。请检查配置、目录权限与磁盘空间后重试。`,description_cancelled:`备份已取消,未生成可恢复快照。`,description_interrupted:`进程在可恢复快照完成前已中断。`,description_corrupt:`备份损坏、不完整或与当前版本不兼容,不能恢复。`,trigger_manual:`手动备份`,trigger_preUpgrade:`升级前备份`,trigger_preRestore:`恢复前备份`,completed:`已完成 {{number}} 份 · {{size}}`},commands:{session_commands:`会话命令`,applies_to_the_current_project_and_session:`作用于当前项目与会话`,no_matching_commands_type_help_to_view_supported:`没有匹配的命令。输入 /help 查看支持范围。`,to_select_enter_to_run_esc_to_close:`↑ ↓ 选择 · Enter 执行 · Esc 关闭`,slash_commands:`Slash 命令`,unknown_command_use_help_for_available_commands_or:`未知命令 /{{v0}}。使用 /help 查看可用命令;发送以 / 开头的普通消息请使用 //。`,select_a_command_or_type_help_for_available:`请选择命令,或输入 /help 查看可用命令。`,does_not_accept_arguments_usage:`/{{v0}} 不接受参数。用法:{{v1}}`,view_supported_commands_and_usage:`查看本网页支持的命令和使用方式`,open_a_new_session_draft_in_the_current:`打开当前工作区的新建会话输入页`,copy_saved_session_history_into_a_new_session:`复制当前会话已保存的历史为新会话`,resume_the_selected_session_not_the_cli_session:`恢复当前选中的历史会话(不是 CLI 会话选择器)`,rename_this_session_spaces_are_allowed:`重命名当前会话,名称可包含空格`,request_interruption_of_the_current_task_web_shortcut:`请求中断当前任务(网页快捷命令)`,open_connection_runtime_and_submission_diagnostics:`打开当前连接、运行状态与提交诊断`,compact_context_and_continue_in_this_session:`压缩当前会话上下文,保留会话继续工作`,download_saved_session_history_as_markdown:`下载当前会话的已保存记录为 Markdown 文件`,your_login_expired_log_in_again_and_retry:`登录已过期,请重新登录后重试。`,you_are_offline_wait_for_the_connection_to:`当前已离线,请等待连接恢复后重试。`,codex_is_not_logged_in_authenticate_first:`Codex 尚未登录,请先完成认证。`,codex_is_unavailable_check_diagnostics_first:`Codex 尚不可用,请先查看状态诊断。`,session_loading_try_again_shortly:`会话正在加载,请稍后重试。`,select_a_session_first:`请先选择一个会话。`,this_codex_does_not_provide_thread_read:`当前 Codex 未提供 thread/read 能力。`,confirm_the_codex_version_compatibility_notice_first:`请先确认当前 Codex 版本的兼容性提示。`,this_codex_does_not_provide:`当前 Codex 未提供 {{v0}} 能力。`,select_a_project_first:`请先选择一个项目。`,the_project_directory_is_unavailable_check_project_configuration:`当前项目目录不可用,请先检查项目配置。`,creating_a_session_wait_for_the_receipt:`正在新建会话,请等待回执。`,session_creation_is_unconfirmed_use_status_to_check:`新建会话的请求尚未确认,请先用 /status 核对提交。`,unarchive_before_compacting_context:`请先取消归档后再压缩上下文。`,resume_this_session_before_compacting_context:`请先恢复当前会话,再压缩上下文。`,this_session_is_empty_there_is_no_context:`当前会话为空,无需压缩上下文。`,submitting_compaction_wait_for_the_receipt:`压缩请求正在提交,请等待回执。`,wait_for_this_task_to_finish_before_compacting:`请等待当前任务结束后再压缩上下文。`,an_execution_still_needs_checking_use_status_to:`当前会话仍有待核对的执行,请先用 /status 核对提交。`,this_session_is_archived_unarchive_it_first:`会话已归档,请先取消归档。`,resume_this_session_before_starting_code_review:`会话尚未恢复,请先恢复后开始代码审查。`,submitting_code_review_wait_for_the_receipt:`正在提交代码审查,请等待回执。`,this_session_has_an_unconfirmed_request_use_status:`当前会话有尚未确认的请求,请先用 /status 核对提交。`,wait_for_this_task_to_finish_before_starting:`当前会话仍在运行,请等待任务结束后开始代码审查。`,this_session_is_still_occupied_by_an_execution:`当前会话仍有执行占用,请先用 /status 核对旧任务。`,unarchive_and_resume_this_session_before_renaming:`请先取消归档并恢复会话后再重命名。`,resume_this_session_before_renaming_sessions_occupied_by:`请先恢复当前会话后再重命名;不能修改其他进程占用的会话。`,renaming_wait_for_the_receipt:`正在重命名,请等待回执。`,rename_is_unconfirmed_use_status_to_check_the:`重命名请求尚未确认,请先用 /status 核对提交。`,archiving_is_unconfirmed_use_status_to_check_the:`会话归档操作尚未确认,请先用 /status 核对提交。`,this_session_is_empty_send_the_first_message:`当前会话为空,发送首条消息后才能 Fork 已保存的历史。`,forking_session_wait_for_the_receipt:`正在 Fork 会话,请等待回执。`,fork_request_unconfirmed_use_status_to_check_the:`Fork 请求尚未确认,请先用 /status 核对提交。`,resuming_session_wait_for_the_receipt:`正在恢复会话,请等待回执。`,this_session_is_running_wait_for_it_to:`当前会话仍在运行,请等待任务结束或使用 /stop。`,this_session_is_already_resumed:`当前会话已恢复,无需再次恢复。`,another_process_is_using_this_session_its_task:`当前会话被其他进程占用,无法从网页中断该进程的任务。`,this_session_has_not_been_resumed_tasks_in:`当前会话尚未恢复,无法从网页中断其他进程的任务。`,submitting_interrupt_request_wait_for_the_receipt:`中断请求正在提交,请等待回执。`,interrupt_request_unconfirmed_use_status_to_check_the:`中断请求尚未确认,请先用 /status 核对提交。`,task_state_is_unconfirmed_use_status_to_check:`任务状态尚未确认,请先用 /status 核对提交。`,this_session_has_no_task_to_interrupt:`当前会话没有可中断的任务。`,no_confirmed_success_receipt_received_check_errors_or:`未收到可确认的成功回执。请查看页面错误或用 /status 核对提交;输入已保留。`,operation_failed_check_diagnostics:`操作失败,请查看状态诊断。`,submission_result_unconfirmed_use_status_before_submitting_again:`提交结果尚未确认,请先用 /status 核对提交,不要重复提交。`,context_compaction_requested_follow_task_status_in_the:`已提交上下文压缩请求;进度和结果以会话中的任务状态为准。`,session_renamed_to:`会话已重命名为「{{v0}}」。`,rename_accepted_but_the_name_is_unconfirmed_use:`重命名已被接受,但无法确认名称,请用 /status 核对提交。`,request_accepted_but_no_new_session_id_received:`请求已被接受,但尚未获得新会话标识,请用 /status 核对提交。`,forked_into_a_new_session:`已 Fork 为新会话。`,code_review_submitted_view_progress_and_results_in:`已提交代码审查,请在当前会话查看进度和结果。`,interrupt_requested_wait_for_task_status_to_update:`已提交中断请求,请等待任务状态更新。`,selected_session_resumed:`已恢复当前选中的会话。`,rename_name:`/rename <名称>`,no_arguments:`/{{v0}}(无需参数)`,rename_requires_a_name_other_commands_take_no:`命令与用法:
|
|
14
|
-
{{v0}}
|
|
15
|
-
仅接受用法中列出的参数。
|
|
16
|
-
输入 // 可发送以 / 开头的普通消息。`,name:` <名称>`,diagnostics_opened_refresh_status_or_reconcile_submissions_in:`已打开状态诊断;可在面板中刷新或核对提交。`,the_project_or_session_changed_select_the_command:`当前项目或会话已切换,请重新选择命令。`,markdown_download_started_some_content_is_unfinished_unconfirmed:`已发起 Markdown 下载;存在未完成、状态待确认或截断内容,请查看文件内说明。`,saved_history_download_started_the_file_describes_omitted:`已发起已保存历史的 Markdown 下载。图片和内部记录的省略范围已在文件中说明。`,new_session_draft_opened_a_session_will_be:`已打开新会话输入页,发送首条消息时创建会话。`,renameEmpty:`请输入会话名称。用法:/rename <名称>`,renameLong:`会话名称最多 {{max}} 个字符。`,renameControls:`会话名称不能包含换行或控制字符。`,commandLine:`/{{name}}{{arguments}}:{{description}}`,review_uncommitted_working_directory_changes:`审查当前工作目录的未提交改动(使用会话当前配置)`,planDescription:`进入 Plan 模式,可同时提交任务`,planUsage:`/plan [任务]`,optionalTask:` [任务]`,planSelected:`已为下一次任务选择 Plan 模式,等待 Codex 确认。`,planSubmitted:`已提交 Plan 任务,请在会话查看实际模式和结果。`,planNotSubmitted:`尚未确认任务提交,请先核对诊断再重试。`,planUnavailable:`请先恢复空闲会话,或打开新工作区草稿,再选择 Plan 模式。`,mode:`协作模式`,modeUnknown:`模式未报告`,executeMode:`执行`,planMode:`Plan`,modePending:`{{selected}} 待生效 · 当前:{{current}}`,reviewTarget:`代码审查目标`,reviewUncommitted:`未提交改动`,reviewBranch:`对比基础分支`,reviewCommit:`指定 Commit`,reviewCustom:`自定义要求`,branchName:`基础分支`,reviewInstructions:`审查要求`,startReview:`开始审查`,cancelDialog:`取消`,closeDialog:`关闭`,reviewCancelled:`已取消审查,命令草稿已保留。`,reviewDescription:`审查工作目录、分支、Commit 或自定义要求`,reviewUsage:`/review [自定义要求]`,initDescription:`生成项目 AGENTS.md,保留已有文件`,initSubmitted:`已提交 AGENTS.md 生成任务,请在会话查看实际结果。`,initUnavailable:`请先恢复空闲会话或打开新工作区草稿,再初始化项目说明。`,workspaceDiff:`工作区 Git 变更`,diffSection:`改动范围`,diff_staged:`已暂存`,diff_unstaged:`未暂存`,diff_untracked:`未跟踪`,diffPartial:`部分内容因文件变化、无法读取或超过快照限制而未包含。`,diffDescription:`查看工作区已暂存、未暂存和未跟踪改动`,diffUnavailable:`请先选择项目或已有会话,再查看 Git 变更。`,diffOpened:`已打开工作区变更,可在预览中刷新快照。`,approveDescription:`单次授权已拒绝的操作`,approveTitle:`已拒绝的操作`,approveEmpty:`当前运行实例没有可重试的拒绝记录。`,approveSelect:`选择一条拒绝记录`,approveConfirm:`仅单次授权此操作,Codex 可据此重试;默认权限不变。`,approveOnce:`单次授权`,approveSubmitted:`已记录重试授权,可继续发送任务让 Codex 重试。`,approveCancelled:`已取消授权。`,recapDescription:`独立总结近期会话`,recapTitle:`会话摘要`,recapNotice:`通过独立模型请求总结近期可见消息,原会话上下文保持不变。`,recapPartial:`摘要仅包含部分已保存会话。`,recapEmpty:`请先发送消息再生成摘要。`,recapFailed:`未能确认摘要结果,请查看诊断。`,recapOpened:`已打开会话摘要。`,goalDescription:`管理原生会话目标`,goalTitle:`会话目标`,goalEmpty:`当前没有目标。`,goalObjective:`目标`,goalBudget:`Token 预算(留空保留现有预算)`,goalActivation:`激活目标后 Codex 可自动继续工作。暂停或清除阻止后续推进;中断当前任务请使用停止按钮。`,goalActivate:`保存并激活`,goalPause:`暂停`,goalComplete:`标记完成`,goalClear:`清除目标`,goalManage:`管理目标`,goalUnconfirmed:`结果尚未确认,请在诊断中核对后再提交。`,goalUnavailable:`当前运行实例不支持目标功能。`,goalCommandUsage:`/goal [目标 | edit | pause | resume | clear]`,goalOpened:`已打开目标管理。`,goalUsageTokens:`Token {{used}} / {{budget}}`,goalTime:`{{seconds}} 秒`,goal_active:`进行中`,goal_paused:`已暂停`,goal_blocked:`受阻`,goal_usageLimited:`用量限制`,goal_budgetLimited:`预算限制`,goal_complete:`已完成`},common:{language:`语言`,requestFailed:`请求失败,请稍后重试。`,lessThanSecond:`不足 1 秒`,fork_into_a_new_session:`Fork 为新会话`,on:`已开启`,off:`未开启`,saving:`正在保存…`,project_directory_unavailable:`项目目录不可用`,sessions:`会话`,loading_session:`正在读取会话…`,checking:`正在核对…`,unarchive:`取消归档`,technical_details:`技术详情`,free_text_answer:`{{v0}}:自由回答`,enter_your_answer:`输入你的回答`,confirm_selection:`确认选择`,submit_answer:`提交回答`,running:`执行中`,failed:`失败`,denied:`已拒绝`,review_timed_out:`审核超时`,result_unconfirmed:`结果未确认`,completed:`已完成`,working_directory:`工作目录`,running_version:`运行版本`,verified_version:`已验证版本`,not_detected:`未检测到`,loading:`读取中`,confirm_and_continue:`确认继续`,loading_2:`读取中…`,could_not_read_the_image_please_paste_it:`图片读取失败,请重新粘贴。`,confirming_fork:`正在确认 Fork…`,run_command:`执行命令`,submitting:`正在提交…`,last_known:`上次已知:`,add_project:`添加项目`,interrupted:`已中断`,diagnostics:`状态诊断`,session_not_created_yet:`会话尚未创建`,reload:`重新加载`,added:`新增`,removed:`删除`,cancel:`取消`,read_only:`只读`,copied:`已复制`,service_settings:`服务配置`,authentication_mode:`认证模式`,image:`图片`,preview_image:`预览图片:{{v0}}`,permission_details:`权限详情`,not_reported:`未报告`,manage_project:`管理项目`,execution_failed:`执行失败`,covro_updates:`Covro 更新`,model_defaults_are_being_saved_wait_before_proceeding:`正在保存模型默认值,请完成后再操作。`,unassigned:`未关联项目`,close:`关闭`},composer:{resuming_session:`正在恢复会话…`,retry_resume:`重试恢复`,an_update_will_load_automatically_once_typing_or:`正在输入或读取图片,完成后会自动加载新版`,slash_commands_cannot_include_images_remove_the_images:`Slash 命令不能附带图片。请先移除图片,或改为普通消息。`,running:`正在执行 /{{v0}}…`,command_failed_please_try_again:`命令执行失败,请重试。`,pasted_image:`粘贴的图片`,submitting_message:`正在提交消息…`,creating_a_session_and_sending_the_first_message:`正在创建会话并发送首条消息…`,this_session_is_in_use_by_another_process:`此会话正被其他进程使用`,unable_to_resume_session:`无法恢复会话`,fork_saved_history_to_continue_or_retry_once:`可以 Fork 已保存的历史继续对话,或在原进程释放会话后重试。新会话使用同一项目目录。`,images_to_send:`待发送的图片`,image_to_send:`待发送的图片 {{v0}}`,remove_image:`移除图片 {{v0}}`,additional_instructions:`追加要求`,task_content:`任务内容`,unarchive_to_continue_the_conversation:`取消归档后可继续对话…`,add_requirements_or_adjust_direction:`补充要求或调整方向…`,describe_a_task_paste_an_image_or_type:`描述任务、粘贴图片,或输入 / 查看命令…`,interrupt:`中断`,requesting:`请求中…`,enter_to_run_command_esc_to_close_menu:`Enter 执行命令 / Esc 关闭菜单`,enter_to_send_shift_enter_for_a_new:`Enter 发送 / Shift + Enter 换行`,running_command:`正在执行命令…`,send_task:`发送任务`,running_2:`正在执行…`,closing_this_page_does_not_stop_tasks_interruptions:`关闭页面不会停止任务。中断以 Codex 返回的实际状态为准。`,codex_runs_with_the_server_project_s_permissions:`Codex 使用服务器项目与权限执行,请核对操作和变更。`,drag_up_to_increase_height_down_to_decrease:`向上拖动增高,向下拖动缩小;也可用方向键调整`,resize_input_height:`调整输入框高度`,pixels:`{{v0}} 像素`,paste_a_png_jpeg_webp_or_gif_image:`请选择或粘贴 PNG、JPEG、WebP 或 GIF 图片。`,the_image_is_empty_copy_and_paste_it:`图片为空,请重新选择或粘贴。`,pixels_other:`{{v0}} 像素`,pixels_one:`{{v0}} 像素`,tap_to_send_enter_for_new_line:`点击发送按钮 · Enter 换行`,tap_to_run_command_enter_for_new_line:`点击执行命令 · Enter 换行`,add_images:`添加图片`,retry_image:`重试读取`,image_read_failed:`图片读取失败,请重试或重新选择。`,skills_title:`技能`,skills_search:`搜索技能`,skills_partial:`部分技能发现失败`,skills_no_match:`没有匹配的技能`,skills_empty:`未发现技能`,skills_enabled:`可用`,skills_disabled:`已禁用`,skills_scope_repo:`项目`,skills_scope_user:`用户`,skills_scope_system:`系统`,skills_scope_admin:`管理员`,skills_not_ready:`Codex 尚未就绪,恢复连接后可重试。`,skills_offline:`当前离线,恢复连接后可读取技能。`,skills_selected:`已选技能`,skills_slash:`请先移除技能引用再运行命令。`,skills_steer_unsupported:`Codex 0.164.0 无法在运行中可靠应用所选技能。请等待当前任务结束,再发送此草稿。`,files_title:`工作区文件`,files_type_path:`在 @ 后输入路径,空格路径可用 @" 搜索。`,files_no_match:`没有匹配的文件`,files_limited:`最多显示 50 项,请细化路径。`,files_offline:`当前离线,重新连接后可搜索文件。`,files_not_ready:`Codex 尚未就绪,暂时无法搜索文件。`,files_slash:`请先移除文件引用,再运行斜杠命令。`,references_selected:`已选引用`,files_limit:`每条消息最多引用 32 个文件。`},conversation:{activities:`{{v0}} 项活动`,includes_automatic_reviews:`含 {{v0}} 次自动审核`,aborted:`已中止`,activities_2:`{{v0}} 项活动{{v1}}`,collapse:`收起`,expand:`展开`,compacting_context:`正在压缩上下文…`,context_compacted:`上下文已压缩`,context_compaction_failed:`上下文压缩失败`,context_compaction_interrupted:`上下文压缩已中断`,context_compaction_state_unknown:`上下文压缩状态未知`,organizing_context_the_current_task_will_continue_when:`正在整理会话上下文,完成后将继续当前任务。`,no_definite_completion_result_received_check_subsequent_task:`未收到明确的完成结果,请查看后续任务状态。`,context_compaction_status:`上下文压缩状态`,output_exceeds_the_display_limit_and_has_been:`输出超出显示上限,部分内容已截断。`,view_changes:`查看变更`,activity_details:`活动详情`,connection_details:`连接详情`,resynchronize:`重新同步`,some_older_history_is_omitted_from_this_live:`当前实时快照已省略部分较早历史,以限制传输大小。`,retry_reading:`重试读取`,your_development_workspace:`你的开发工作空间`,connect_an_existing_server_directory_to_continue_sessions:`连接服务器上已有的项目目录,继续历史会话或创建新任务。`,projects_are_saved_on_the_server_so_you:`项目会保存在服务器上,下次打开即可继续。`,describe_your_task_or_paste_an_image_question:`描述你要完成的任务,也可以粘贴图片、问题或错误信息。`,sending_starts_a_new_session_in:`发送后将在{{v0}}中开始新会话。`,live_execution:`实时执行过程`,changes_by_turn:`逐轮变更预览`,approve_and_follow_up_anytime:`随时审批与追加`,turn:`第 {{v0}} 轮`,changes_in_this_turn:`本轮变更预览`,view_file_and_line_changes:`查看文件与代码行变更`,back_to_latest:`回到最新内容`,file_changes:`文件变更`,reasoning:`思考过程`,tool_call:`调用工具`,web_search:`搜索网页`,execution_plan:`执行计划`,start_code_review:`开始代码审查`,code_review_results:`代码审查结果`,no_output_yet:`暂无输出`,file_changes_from_this_tool:`此工具的文件变更`,codex_reply:`Codex 的回复`,codex_connection_status:`Codex 连接状态`,codex_reconnection_failed:`Codex 重新连接失败`,reconnecting_to_the_model_service_codex_will_retry:`正在重新连接模型服务,Codex 会自动重试。恢复后将继续当前任务。`,codex_stopped_retrying_check_the_server_network_and:`Codex 已停止重试。请检查运行 Codex 的服务器网络与模型服务;若本轮仍未结束,可点击下方“中断”,结束后重新发送要求以继续。`,codex_stopped_retrying_check_the_server_network_and_2:`Codex 已停止重试。请检查运行 Codex 的服务器网络与模型服务,然后重新发送要求以继续。`,showing_local_cache_sync_failed_some_history_may:`显示本机缓存 · 同步失败,部分历史可能缺失。`,showing_local_cache_checking_latest_messages_and_task:`显示本机缓存 · 正在核对最新消息与任务状态…`,session_messages:`会话消息`,loading_earlier_messages:`正在加载较早的消息…`,scroll_up_to_load_earlier_messages:`向上滚动,加载更早的消息`,retry_loading:`重试加载`,load_earlier_messages:`加载更早的消息`,no_local_cache_here_yet:`此处尚无本机缓存`,continue_reading_local_history:`继续读取本机历史`,add_a_project_start_working:`添加项目,开始工作。`,start_with_an_idea:`从一个想法,开始工作。`,the_current_project:`当前项目`,turn_changes:`第 {{v0}} 轮变更`,ready:`就绪`,awaiting_approval:`等待审批`,awaiting_answer:`等待回答`,status_needs_checking:`状态待核对`,your_instructions:`你的要求`,back_to_original_prompt:`回到 Prompt 原文`,images:`{{v0}} 张图片`,user_prompt:`用户 Prompt`,completed_at:`完成于`,turn_completion_details:`本轮完成信息`,took:`耗时 {{v0}}`,duration_unknown:`耗时未知`,tps_unknown:`TPS 未知`,average_tps:`平均 {{v0}} TPS`,tps_cannot_be_calculated_without_complete_token_counts:`缺少完整的本轮 token 统计或有效耗时,无法计算 TPS。`,output_tokens_including_reasoning_total_turn_duration_in:`本轮输出 {{v0}} tokens(含推理 token)÷ 整轮耗时(秒)。耗时包含工具调用、审批、等待等时间,因此该值通常低于纯模型生成时的 TPS。`,completion_time_unknown:`完成时间未知`,images_have_no_preview:`{{v0}} 张图片未提供预览`,your_message:`你的消息`,sent_image:`已发送的图片 {{v0}}`,less_than_1_second:`不足 1 秒`,hours:`{{v0}} 小时`,min:`{{v0}} 分`,sec:`{{v0}} 秒`,reconnecting:`Codex 正在重新连接…`,activityState:`{{status}} {{count}}`,activities_other:`{{v0}} 项活动`,activities_one:`{{v0}} 项活动`,includes_automatic_reviews_other:`含 {{v0}} 次自动审核`,includes_automatic_reviews_one:`含 {{v0}} 次自动审核`,activities_2_other:`{{v0}} 项活动{{v1}}`,activities_2_one:`{{v0}} 项活动{{v1}}`,images_other:`{{v0}} 张图片`,images_one:`{{v0}} 张图片`,images_have_no_preview_other:`{{v0}} 张图片未提供预览`,images_have_no_preview_one:`{{v0}} 张图片未提供预览`,activityWithCommand:`{{label}}:{{command}}`,start_in_project:`发送后将在「{{v0}}」中开始新会话。`,start_without_project:`无需选择项目,发送后自动分配独立工作目录;会话和文件将持续保留。`,copy_command_output:`复制命令输出`,copy_loaded_command_output:`复制此命令已加载的输出`,command_output_copy_failed:`复制失败,请手动选择输出复制。`,command_output_truncated:`输出已截断,仅可复制已加载部分。`,copied_truncated_command_output:`已复制已加载部分(输出已截断)`,model_busy_retrying:`模型繁忙,正在重试`,model_busy_stopped:`模型繁忙,重试已停止`,model_busy_native_retry:`Codex 正在等待模型容量恢复,将继续当前任务。`,retry_attempt:`第 {{attempt}} / {{limit}} 次重试`,model_capacity_unavailable:`模型容量不足`,retry_progress:`重试 {{attempt}}/{{limit}}`,retrying_short:`正在重试`,retry_stopped_short:`重试已停止`,error_details:`错误详情`,capacity_waiting:`模型繁忙,等待重试`,capacity_cancelled:`已取消自动重试`,capacity_in_seconds:`{{seconds}} 秒后重试`,capacity_dispatching:`正在提交重试…`,capacity_stopped_progress:`本轮已有输出或工具操作,请检查后手动继续。`,capacity_stopped_native:`Codex 已停止原生重试。`,capacity_stopped_limit:`已达到自动重试上限。`,capacity_stopped_error:`任务状态或运行环境已改变,请检查后继续。`,cancel_retry:`取消重试`,retry_with_selected_model:`使用所选模型重试`,capacity_in_seconds_short:`{{seconds}} 秒后`,capacity_cancelled_short:`已取消`,capacity_limit_short:`已达上限`,turn_tokens:`本轮 {{tokens}} tokens`,turn_tokens_unknown:`本轮 token 未报告`,submission_submitting:`发送中…`,submission_submitted:`已提交`,submission_unknown:`提交结果待核对`,submission_failed:`发送失败`},errors:{operation:`操作`,target:`目标`,operation_id:`操作 ID`,workspace:`工作区`,execution_status:`运行状态`,check_session_history_the_session_list_and_the:`请先检查会话历史、会话列表和原执行环境。清理仅移除此浏览器的待核对记录,不会停止任务或重新提交。`,this_session_is_still_running_wait_or_interrupt:`当前会话仍在执行,请等待结束或正常中断后再核对。`,i_checked_history_and_the_original_environment_no:`我已检查历史和原执行环境,确认无需继续核对这笔提交`,clear_this_browser_s_pending_record:`清除此浏览器的待核对记录`,refresh_status_to_check_the_compatibility_confirmation_this:`兼容性确认结果待核对,请刷新状态。此记录不代表任务执行,也不会自动重新提交。`,this_task_is_still_running_use_the_interrupt:`当前任务仍在执行,请使用输入区的中断按钮。`,checked_at_original_submission_status_preserved:`已于 {{v0}} {{v1}}保留原始提交状态。`,current_session:`当前会话`,operations_and_reconciliation:`当前会话的提交`,browser_connection:`网页连接`,account_authentication:`账户认证`,compatibility:`兼容性`,gateway_authentication:`入口认证`,supported_capabilities:`已支持能力`,connecting:`正在连接`,live_connection_healthy:`实时连接正常`,disconnected:`连接已断开`,login_required_again:`需要重新登录`,accepted_by_gateway:`网关已接受`,awaiting_upstream_confirmation:`等待上游确认`,submission_confirmed_by_upstream:`上游已确认提交`,submission_failed:`提交失败`,submission_result_needs_checking:`提交结果待核对`,finished:`已经结束`,end_not_confirmed:`尚未确认终结`,refresh_the_session_list_and_check_for_a:`请先刷新会话列表,检查是否已生成包含原历史的新会话。核对此次 Fork 不会停止原任务或改变原任务的执行状态。`,tasks_will_not_be_resent_automatically_check_history:`不会自动重发任务。先检查会话历史和原执行环境,再核对这笔提交。`,i_checked_the_session_list_and_history_and:`我已检查会话列表和历史,核实此次 Fork 的结果`,i_verified_that_the_previous_execution_has_ended:`我已核实对应旧运行已经结束`,submitting_reconciliation:`正在提交核对…`,reconcile_this_fork:`核对此次 Fork`,reconcile_and_release_previous_execution:`核对并解除旧占用`,fork_result_checked_manually_original_task_state_unchanged:`人工核对 Fork 结果。原任务状态不变。`,previous_execution_end_checked_manually:`人工核对旧运行结束。`,diagnostics_details:`状态诊断详情`,refresh_status:`刷新状态`,current_session_information:`当前会话信息`,failed_to_load_session_details:`会话详情加载失败`,loading_session_details:`正在加载会话详情…`,checking_session_history_and_submission_receipts:`正在核对会话历史和提交回执…`,session_state_still_needs_checking_inspect_operation_records:`暂时无法确认此会话的状态,请重新检查或查看对应历史。`,check_submission_records_reconciliation_does_not_resend_tasks:`请查看提交记录;核对不会自动重发任务。`,no_submissions_need_checking:`没有待核对的提交。`,ready:`已就绪`,starting:`启动中`,unavailable:`不可用`,available:`可用`,log_in_to_codex_on_the_server_computer:`需要在本机登录 Codex`,unconfirmed:`尚未确认`,version_verified:`版本已验证`,version_unverified_continued_with_consent:`当前版本未经验证 · 已确认继续`,version_unverified_confirmation_pending:`当前版本未经验证 · 待确认`,local_mode:`本机模式`,none:`暂无`,your_login_expired_or_the_gateway_returned_a:`登录已过期,或入口返回了登录页面。请重新登录后恢复连接。`,request_failed:`请求失败({{v0}})`,submission_cannot_be_confirmed_record_not_found_404:`无法确认提交:当前服务未找到这笔提交记录(404 / OPERATION_NOT_FOUND)。请求可能未到达服务,或服务数据已更换;这不能证明任务没有执行。`,submission_cannot_be_confirmed:`无法确认提交:{{v0}}`,unrecognized_server_message_check_version_compatibility:`收到无法识别的服务器消息,请检查版本兼容性。`,could_not_parse_a_live_message_refresh_the:`实时消息解析失败,请刷新会话快照。`,this_history_chunk_does_not_belong_to_the:`历史分片不属于当前会话。`,history_pagination_did_not_advance_retry_syncing_the:`历史分页未前进,请重试同步会话。`,httpFailure:`请求失败({{code}})。请核对操作与服务状态后重试。`,invalidName:`会话名称不能为空、包含换行或超过 100 个字符。`,unsupportedSchema:`此表单结构暂不支持。请查看技术详情,或取消此请求。`,AUTH_REQUIRED:`登录已过期,请重新登录后重试。`,ACTION_EXPIRED:`请求已失效,请刷新会话后重试。`,ACTION_CONFLICT:`请求状态已改变,请核对会话后再操作。`,CODEX_UNAVAILABLE:`Codex 尚不可用,请查看状态诊断。`,THREAD_IN_USE:`此会话正被其他进程使用`,THREAD_BUSY:`会话仍在执行或有待处理请求,请完成后重试。`,THREAD_ARCHIVED:`会话已归档,请先取消归档。`,THREAD_NOT_RESUMED:`会话尚未恢复,请先恢复后重试。`,THREAD_NOT_FOUND:`未找到会话,请刷新会话列表。`,PROJECT_UNAVAILABLE:`项目目录不可用,请检查服务器目录与权限。`,INVALID_PROJECT_PATH:`项目路径无效,请检查服务器上的绝对路径及其访问权限。`,WORK_DIR_UNAVAILABLE:`workDir 目录不存在、不是目录或不可访问。请检查服务主机上的目录和权限,或填写其他绝对路径。`,PROJECT_EXISTS:`该目录已添加为项目,请使用已有项目或选择其他目录。`,PROJECT_NOT_FOUND:`项目不存在,请刷新项目列表。`,PROJECT_BUSY:`项目仍有运行任务或未确认操作,请先处理完成。`,RESULT_UNKNOWN:`提交结果尚未确认,请核对提交,不要重复操作。`,OPERATION_BUSY:`操作正在处理,请等待提交回执。`,COMPATIBILITY_CONFIRMATION_REQUIRED:`请先确认当前 Codex 版本的兼容性提示。`,CONFIG_CONFLICT:`配置文件已被其他进程修改,请重新读取后再保存。`,CONFIG_READ_ONLY:`当前配置只读,无法保存。`,CONFIG_UNAVAILABLE:`无法读取配置,请检查配置文件与服务权限。`,INVALID_CONFIG:`配置无效,请核对字段值及网络与认证设置。`,VALIDATION_FAILED:`输入内容不符合要求,请核对后重试。`,HISTORY_UNAVAILABLE:`会话历史暂不可用,请重新同步。`,UPDATE_MAINTENANCE:`服务正在升级,请等待恢复后重试。`,PERMISSION_MODE_UNAVAILABLE:`当前 Codex 能力或受管策略不允许此权限模式。`,BODY_TOO_LARGE:`请求内容过大,请减少图片或文本后重试。`,SHELL_BUSY:`Shell 命令仍在执行,请等待结束或中断。`,SHELL_NOT_FOUND:`未找到 Shell 执行记录,请核对服务器结果。`,IMAGE_NOT_FOUND:`图片文件不存在或已被删除`,IMAGE_UNREADABLE:`图片文件不可读取`,UNSUPPORTED_IMAGE_TYPE:`仅支持 PNG、JPEG、WebP 和 GIF 图片`,UNAVAILABLE:`服务暂时不可用,请稍后重试。`,READ_FAILED:`会话历史暂时无法读取,请重试。`,EXPORT_FAILED:`无法读取完整历史,未下载文件。请稍后重试。`,MARKDOWN_NOT_FOUND:`文件不存在或已被删除。`,JSON_NOT_FOUND:`文件不存在或已被删除。`,MARKDOWN_TOO_LARGE:`Markdown 文件超过 2 MiB 预览上限。`,JSON_TOO_LARGE:`JSON 文件超过 2 MiB 预览上限。`,INVALID_REPOSITORY:`请输入 HTTPS 或 SSH Git 仓库地址;请使用主机已有的认证,不要在地址中填写密码、令牌或查询参数。`,CLONE_PARENT_UNAVAILABLE:`目标目录的父目录必须已存在,且服务需要写入和进入权限。`,CLONE_TARGET_EXISTS:`目标目录已存在且非空,或不是普通目录;请选择新的空目录,不会覆盖已有文件。`,CLONE_TARGET_UNAVAILABLE:`无法检查目标目录,请检查服务器路径和访问权限。`,CLONE_IN_PROGRESS:`该目录正在克隆,请等待完成或取消后再操作。`,CLONE_ID_CONFLICT:`该操作 ID 已用于其他克隆请求。`,GATEWAY_STOPPING:`服务正在停止,请稍后重试。`,CLONE_LIMIT:`已有多个仓库正在克隆,请等待完成后重试。`,CLONE_NOT_FOUND:`未找到克隆记录;服务重启后请检查目标目录,再添加已有目录或使用新的空目录重试。`,WORKSPACE_UNAVAILABLE:`会话工作目录不可用,请检查服务器路径和权限后重试。`,CLONE_GIT_MISSING:`服务器未安装 Git,或服务的 PATH 中找不到 Git。安装并配置后重试。未添加项目;请先检查目标目录中的残留文件,再使用空目录重试。`,CLONE_AUTH_FAILED:`Git 认证失败或没有仓库访问权限。请在运行服务的主机上配置 Git 凭据或 SSH 密钥后重试。未添加项目;目标目录可能残留文件,请检查后使用新的空目录重试。`,CLONE_HOST_KEY_FAILED:`SSH 主机验证失败。请在运行服务的主机上确认并配置仓库主机的 SSH 信任后重试。未添加项目;请检查目标目录后使用空目录重试。`,CLONE_REPOSITORY_UNAVAILABLE:`仓库不存在或不可访问。请检查仓库地址和主机上的 Git 访问权限。未添加项目;请检查目标目录后使用空目录重试。`,CLONE_NETWORK_FAILED:`无法连接 Git 仓库。请检查服务器网络、代理和证书配置后重试。未添加项目;请检查目标目录后使用空目录重试。`,CLONE_TARGET_NOT_EMPTY:`目标目录已包含文件,Git 已停止克隆;不会覆盖或删除已有文件。未添加项目;请检查目标目录后使用新的空目录重试。`,CLONE_DISK_FULL:`服务器磁盘空间不足,请释放空间、检查残留文件后使用新的空目录重试。未添加项目。`,CLONE_FAILED:`Git 克隆失败。请检查仓库地址、主机上的 Git 认证、目录权限和磁盘空间后重试。未添加项目;目标目录可能残留文件,请检查后使用新的空目录重试。`,CLONE_REGISTRATION_FAILED:`项目注册失败。已克隆的文件保留在目标目录;可重试添加项目,无需再次克隆,也可通过“已有目录”添加。`,CLONE_TIMED_OUT:`克隆超过 30 分钟,已停止。未添加项目,也未删除任何文件。目标目录可能残留文件,请检查后使用新的空目录重试。`,CLONE_CANCELLED:`未添加项目,也未删除任何文件。目标目录可能残留文件,请检查后使用新的空目录重试。`,BACKUP_BUSY:`已有备份正在处理,请等待完成。`,BACKUP_UNAVAILABLE:`无法使用备份,请检查服务配置和技术详情。`,BACKUP_FAILED:`备份失败,请检查配置、目录权限与磁盘空间后重试。`,BACKUP_INVALID:`备份损坏、不完整或不兼容,不能恢复。`,BACKUP_TIMEOUT:`等待安全点超时,请在运行中的任务结束后重试。`,BACKUP_MAINTENANCE:`正在备份,请完成后重试。`,PROJECT_ORDER_CONFLICT:`项目列表已变化,请刷新后重新调整顺序。`,TEXT_NOT_FOUND:`文本文件不存在或已被删除。`,TEXT_TOO_LARGE:`文本文件超过 2 MiB 预览限制。`,TEXT_UNREADABLE:`文本文件不可读取,请检查访问权限。`,INVALID_TEXT_CONTENT:`文件不是有效的 UTF-8 纯文本,或包含二进制数据。`,UNSUPPORTED_TEXT_TYPE:`此文件类型不支持纯文本预览。`,INVALID_TEXT_PATH:`文本文件路径无效。`,TEXT_OUTSIDE_PROJECT:`只能预览当前会话所属项目或服务器临时目录内的文本文件。`,TEXT_CHANGED:`文本文件已变化,请重新打开预览。`,TEXT_NOT_FILE:`文本路径不是普通文件。`,AGENTS_EXISTS:`AGENTS.md 已存在,已保留原有内容。`,AGENTS_CHECK_FAILED:`无法核对 AGENTS.md,未提交初始化任务。`,GIT_NOT_REPOSITORY:`当前工作目录不是 Git 工作区。`,GIT_UNAVAILABLE:`服务器上的 Git 不可用。`,GIT_DIFF_FAILED:`无法读取工作区变更,请核对工作目录后重试。`,DENIAL_EXPIRED:`拒绝记录已失效,请重新打开当前会话的拒绝列表。`,RECAP_BUSY:`当前会话已有摘要请求正在处理。`,RECAP_FAILED:`未能完成摘要,原会话保持不变。`,GOAL_UNAVAILABLE:`当前 Codex 运行实例不支持或未启用目标功能。`,GOAL_CONFLICT:`目标已发生变化,请重新读取当前状态再修改。`,GOAL_BUSY:`另一个目标更新正在处理,请等待回执。`,SKILL_UNAVAILABLE:`所选技能在当前工作区已不可用,请刷新后重新选择。`,SKILLS_READ_FAILED:`无法读取技能,请刷新后重试。`,SKILL_STEER_UNSUPPORTED:`Codex 0.164.0 无法在运行中可靠应用所选技能。请等待当前任务结束,再发送此草稿。`,QUESTION_EXPIRED:`该问题已不存在,请刷新会话。`,QUESTION_BUSY:`回答正在提交或回执待确认,请核对后继续。`,QUESTION_CONFLICT:`该问题已处理或正在提交,请刷新会话。`,FILE_REFERENCE_OUTSIDE:`所选文件不属于当前工作区,请重新选择。`,FILE_REFERENCE_NOT_FOUND:`文件已移动或删除,请重新选择。`,FILE_REFERENCE_UNREADABLE:`所选文件不可读取,请检查权限。`,FILE_REFERENCE_NOT_FILE:`请选择工作区内的普通文件。`,FILE_REFERENCE_CHANGED:`文件或工作区已变化,请重新选择文件。`,FILE_SEARCH_BUSY:`文件搜索繁忙,请稍后重试。`,FILE_SEARCH_TIMEOUT:`文件搜索超时,请细化路径后重试。`,FILE_SEARCH_CANCELLED:`文件搜索已取消。`,recovery_operation_send:`发送消息`,recovery_operation_steer:`追加消息`,recovery_operation_resolve:`处理审批或输入`,recovery_operation_fork:`复制会话`,recovery_operation_create:`新建会话`,recovery_operation_resume:`恢复会话`,recovery_operation_archive:`归档会话`,recovery_operation_rename:`重命名会话`,recovery_operation_compact:`压缩上下文`,recovery_operation_review:`开始审查`,recovery_operation_interrupt:`停止任务`,recovery_operation_settings:`更新设置`,recovery_operation_other:`提交操作`,recovery_missing:`服务端找不到这次提交记录,暂时无法确认结果。`,recovery_unreachable:`暂时无法查询这次提交的结果,请恢复连接后重试。`,recovery_execution_unknown:`尚未找到能确认这次任务已结束的记录。`,recovery_receipt_unknown:`尚未收到这次操作的明确处理结果。`,recovery_thread_unavailable:`会话名称暂不可用`,recovery_project_unavailable:`项目名称暂不可用`,recovery_running:`这个会话的任务仍在运行,请前往会话查看或停止任务。`,recovery_clear_local:`解除本页限制`,recovery_restore_session:`恢复此会话的操作`,recovery_view_history:`查看对应历史`,recovery_open_thread:`打开会话`,recovery_check_again:`重新检查`,recovery_go_to_thread:`请先打开对应会话,查看历史并处理这次提交。`,recovery_retry_connection:`查询恢复前不会解除限制,也不会自动重新提交。`,recovery_action_owner_missing:`旧记录没有保存所属会话,无法自动定位。请在对应审批所在的会话中检查处理结果。`,recovery_clear_effect:`这只移除当前浏览器的这条待核对记录,不会停止任务或重新发送。原操作可能已经执行;再次提交可能重复执行。`,recovery_fork_effect:`请先检查会话列表及对应历史,确认此次复制的结果。此操作仅结束对这次复制的等待,不会停止原会话任务,也不会再次复制。`,recovery_restore_effect:`请先查看对应历史,确认旧任务已经结束。继续后将解除这次旧任务的占用,不会停止任务或重新发送;服务端仍会阻止解除已知的活动任务。`,recovery_confirm_ended:`确认旧任务已结束并恢复`,recovery_other_threads:`其他会话与操作`,recovery_handle_submission:`查看处理方式`,recovery_responding:`这次审批或输入仍在等待处理确认,暂时不能重复提交。`,CLONE_INTERRUPTED:`服务已停止或重启,无法确认克隆结果。不会自动重试或删除文件;请检查目标目录,确认完整后通过已有目录添加,否则使用新的空目录重试。`},notifications:{browser_notifications:`浏览器通知`,send_test_notification:`发送测试通知`,background_notifications_and_sleeping_tabs:`后台通知与页面休眠`,keep_this_page_and_browser_open_background_tabs:`通知依赖页面在线,请保持页面与浏览器运行。本功能不使用 Web Push;页面被冻结、回收或关闭期间,无法保证及时通知。恢复后会同步结果与未读提示,不补发历史通知。`,keep_this_site_active:`如何让本站保持活跃`,chrome_settings_performance_always_keep_these_sites_active:`Chrome:设置 → 性能 → 始终保持这些网站活跃,添加本站。`,settings_instructions:`设置说明`,edge_settings_system_and_performance_performance_always_keep:`Edge:设置 → 系统和性能 → 性能 → 始终保持这些网站活跃(或「从不将这些网站置于睡眠状态」),添加本站。`,configure_this_manually_in_the_browser_names_may:`需要在浏览器中手动设置,具体名称可能随版本变化。`,permission_not_granted:`尚未授权`,permission_granted:`已授权`,blocked_by_browser:`已被浏览器阻止`,unsupported_browser:`当前浏览器不支持`,secure_connection_required:`需要安全连接`,close_notification_settings:`关闭通知设置`,waiting_for_permission:`等待授权…`,disable_notifications:`关闭通知`,enable_notifications:`启用通知`,allow_notifications_in_the_browser_s_site_settings:`请在浏览器的站点设置中允许通知,再回到此页面开启。`,use_https_localhost_or_127_0_0_1:`请使用 HTTPS 访问。localhost 或 127.0.0.1 可用于本机访问。`,use_a_desktop_browser_that_supports_system_notifications:`请使用支持系统通知的浏览器。页内状态与未读提示仍然可用。`,permission_is_requested_only_when_you_click_enable:`只有点击启用后才会请求授权。此设置在当前浏览器的本站标签页间共享。`,cannot_save_notification_settings_allow_browser_storage_for:`无法保存通知设置,请允许此站点使用浏览器存储后重试。`,cannot_enable_notifications_check_notification_permissions_and_site:`无法启用通知,请检查浏览器通知权限及此站点的存储设置。`,the_browser_could_not_show_notifications_check_browser:`浏览器未能显示通知,请检查浏览器与系统的通知设置。页内状态与未读提示仍然可用。`,cannot_show_notifications_or_save_deduplication_records_check:`无法显示通知或保存去重记录,请检查浏览器通知权限与站点存储。页内状态与未读提示仍然可用。`,test_notification:`通知测试`,this_browser_cannot_show_system_notifications_check_browser:`当前浏览器无法显示系统通知,请检查浏览器与系统的通知设置。`,notification_records_are_in_use_by_another_page:`通知记录被其他页面占用,请关闭旧页面后重试。`,agentCompleted:`Agent 已完成`,agentFailed:`Agent 执行失败`,agentInterrupted:`Agent 已中断`,events_description:`工作结束、需要回答或审批时显示项目与会话。点击通知可返回会话,并定位待处理请求。`,test_description:`Agent 工作结束、需要回答或审批时,会在这里提醒你。`,answer_required:`Agent 需要回答`,approval_required:`Agent 需要审批`,preparing_delivery:`正在准备…`,delivery_unavailable:`发送不可用`,delivery_error_initialization:`通知服务初始化失败,请刷新页面或重新启用通知。`,delivery_error_unsupported:`当前浏览器无法使用通知发送接口,请使用支持系统通知的浏览器。`,delivery_error_permission:`通知权限已被撤销,请在浏览器站点设置中重新允许通知。`,delivery_error_delivery:`通知发送失败,请检查浏览器与系统通知设置后重试。页内状态与未读提示仍然可用。`,test_submitted:`通知已提交给浏览器,请查看系统通知栏。`},preview:{a_change_snapshot_from_codex_containing_patches_in:`Codex 提供的变更快照,仅包含此范围内的补丁,不代表工作区全部未提交变更。`,unable_to_load_changes:`无法读取变更`,loading_changes:`正在读取变更…`,this_patch_is_truncated_only_received_content_is:`补丁已被截断,以下仅展示收到的部分内容。`,changed_files:`变更文件`,original_path:`原路径:{{v0}}`,wrap_lines:`自动换行`,hunks:`{{v0}} 个区块`,this_patch_is_incomplete_or_malformed_line_numbers:`补丁不完整或格式有误,行号与统计仅对应已收到的内容。`,binary_file_changed:`二进制文件已变更`,line_by_line_preview_is_unavailable_for_this:`此文件无法逐行预览。`,unable_to_read_change_content:`无法读取变更内容`,the_content_is_not_a_recognized_unified_diff:`收到的内容不是可识别的 unified diff。请等待 Codex 更新补丁,或重新打开预览。`,old_line:`原行`,new_line:`新行`,code:`代码内容`,hunk:`区块 {{v0}}`,no_line_changes:`没有逐行内容变更`,this_patch_changes_only_metadata_paths_or_empty:`此补丁仅包含文件属性、路径或空文件变更,没有可展示的代码行。`,no_file_changes_yet:`暂无文件变更`,no_previewable_patch_received_in_this_scope_yet:`此范围内尚未收到可预览的补丁。`,lines_added_lines_removed:`新增 {{v0}} 行,删除 {{v1}} 行`,reading_changes_timed_out_please_retry:`读取变更超时,请重试。`,changes_from_this_turn_are_no_longer_in:`此轮变更已不在可读取的会话历史中。`,changes_from_this_tool_are_no_longer_in:`此工具的变更已不在可读取的会话历史中。`,code_change_preview:`代码变更预览`,code_changes:`代码变更`,read_only:`{{v0}} · 只读`,change_hunk_navigation:`变更区块导航`,previous_change_hunk:`上一个变更区块`,next_change_hunk:`下一个变更区块`,change_content:`变更内容`,line_changes_in:`{{v0}} 的行变更`,change_type:`变更类型`,context:`上下文`,note:`提示`,copy_source:`复制原文`,preview:`预览`,source:`原文`,cannot_preview_this_file:`无法预览此文件`,loading_file:`正在加载文件…`,file_loading_timed_out_please_retry:`文件加载超时,请重试。`,copied_source:`已复制 {{v0}} 原文`,copy_failed_select_and_copy_the_source_manually:`复制失败,请在原文中手动选择复制。`,file_preview:`{{v0}} 文件预览`,close_file_preview:`关闭文件预览`,file:`{{v0}} 文件`,file_display_mode:`文件展示方式`,file_content:`文件内容`,source_2:`{{v0}} 原文`,close:`关闭{{v0}}`,open_original_image:`打开原图`,retry_loading_image:`重试加载图片`,loading_image:`正在加载图片…`,image_url_unavailable:`图片地址不可用。`,fit_to_window:`适应窗口`,to_zoom_esc_to_close:`+ / − 缩放 · Esc 关闭`,image_loading_timed_out_please_retry:`图片加载超时,请重试。`,image_failed_to_load_it_may_have_expired:`图片加载失败,可能已失效、访问受限或网络不可用。`,cannot_decode_image_the_file_may_be_damaged:`图片无法解码,文件可能已损坏或格式不受浏览器支持。`,click_to_enlarge_image:`点击放大图片`,image_preview:`图片预览`,close_image_preview:`关闭图片预览`,image_zoom:`图片缩放`,zoom_out:`缩小图片`,image_zoom_level:`图片缩放比例`,zoom_in:`放大图片`,image_viewing_area:`图片查看区域`,original_image_link:`原图链接`,original_path_2:`原始路径`,copy_failed_select_and_copy_the_code_manually:`复制失败,请手动选择代码复制。`,copy_code_block:`复制代码块`,code_block:`代码块`,preview_file:`预览文件:{{v0}}`,table:`表格`,modified:`修改`,renamed:`重命名`,unknown_file:`未知文件`,no_newline_at_end_of_file:`文件末尾没有换行`,output_truncated:`[输出已截断`,content_truncated:`[内容已截断`,invalid_json_source_preserved_check_quotes_commas_and:`JSON 格式无效,已保留原文。请检查引号、逗号及括号是否完整。`,json_is_too_deep_or_large_to_format:`JSON 层级过深或内容过多,无法格式化预览。已保留原文供查看。`,cannot_read_image_check_login_and_file_access:`无法读取图片,请确认登录状态和文件访问权限。`,image_loading_failed_please_retry:`图片加载失败({{v0}}),请重试。`,your_login_may_have_expired_log_in_again:`登录可能已过期,请重新登录后预览图片。`,the_server_did_not_return_a_supported_image:`服务器未返回支持的图片格式。`,hunks_other:`{{v0}} 个区块`,hunks_one:`{{v0}} 个区块`,new_files_in_this_snapshot:`此快照共 {{v0}} 个文件`,new_choose_expand_changes_to_view_it:`{{v0}} 可通过「展开变更」查看。`,new_collapse_changes:`收起变更`,new_hunks:`{{v0}} / {{v1}} 个区块`,new_changed_file_list:`变更文件列表`,new_expand_changes:`展开变更`,new_changes_were_collapsed_manually:`变更已手动收起。`,new_changes_in:`{{v0}} 的变更内容`,new_copy_source:`复制源码`,new_receiving_mermaid_source_the_diagram_appears_when:`正在接收 Mermaid 源码,代码块完整后显示图表。`,new_cannot_render_this_mermaid_diagram_check_the:`Mermaid 图表无法渲染,请检查语法或复制源码到编辑器修正。`,new_rendering_mermaid_diagram:`正在渲染 Mermaid 图表…`,new_mermaid_source_copied:`已复制 Mermaid 源码`,new_copy_failed_select_and_copy_the_source:`复制失败,请在源码中手动选择复制。`,new_view_diagram:`查看图表`,new_view_source:`查看源码`,new_fit_width:`适应宽度`,new_actual_size:`实际大小`,new_mermaid_source:`Mermaid 源码`,new_mermaid_diagram_region:`Mermaid 图表区域`,new_mermaid_diagram:`Mermaid 图表`,new_this_file_has_lines_exceeding_300_collapsed:`此文件共 {{v0}} 行,超过 300 行,默认折叠。`,new_this_file_exceeds_50_000_characters_collapsed:`此文件超过 50,000 字符,默认折叠。`,empty_file:`此文件为空。`,dev_title:`开发预览`,dev_preview:`预览`,dev_enable:`启用开发预览代理`,dev_full:`允许完整请求 · 高危`,dev_risk:`开放已登记服务的业务 API、写请求、任意响应类型和业务 WebSocket;身份、进程核验和浏览器隔离仍然生效。`,dev_open:`打开预览`,dev_empty:`当前会话暂无确认归属的开发服务。`,dev_running:`运行中`,dev_withdrawn:`不可用`,dev_failed:`预览请求失败,请检查连接后重试;打开预览需要允许新标签页。`,dev_reopen:`设置已生效,请重新打开预览以使用新策略。`,dev_inspection_failed:`进程核验失败,已撤回预览权限。`,dev_unavailable:`当前平台无法进行服务发现。`,dev_workspace:`会话工作区`},settings:{currently_running:`当前运行:{{v0}}`,configure_the_computer_running_this_service_restart_it:`配置运行此网页服务的电脑。保存后需手动重启服务生效。`,configuration_file:`配置文件`,saving_does_not_restart_the_service_or_interrupt:`保存不会重启服务或中断当前任务。`,reloading_discards_current_edits_and_loads_the_latest:`重新读取会丢弃当前编辑,并载入文件的最新内容。`,discard_edits_and_reload:`丢弃编辑并重新读取`,discard_unsaved_changes:`放弃未保存的更改?`,the_configuration_file_has_not_been_changed:`配置文件尚未修改。`,keep_editing:`继续编辑`,discard_changes_and_close:`放弃更改并关闭`,keep_the_current_data_directory_and_initial_project:`保留当前数据目录和项目初始配置。 {{v0}}`,saved:`已保存:{{v0}}`,change_to:`更改为:{{v0}}`,no_differences_from_the_saved_configuration:`与已保存配置没有差异。`,view_full_json:`查看完整 JSON`,back_to_editing:`返回编辑`,apply_to_form:`应用到表单`,import_configuration:`导入配置`,export_saved_configuration:`导出已保存配置`,import_updates_service_settings_only_export_includes_initial:`导入仅更新服务设置;导出包含文件中的项目初始配置,不包含页面注册项目、会话、数据库或登录凭据。`,network_and_access:`网络与访问`,local_tailscale_local:`本机 / Tailscale(local)`,local_mode_listens_only_on_loopback_addresses_use:`本机模式仅监听回环地址;公开互联网入口使用 Cloudflare Access。`,data_and_projects:`数据与项目`,work_dir:`项目基础目录(workDir,可选)`,work_dir_help:`填写服务主机上的绝对目录。保存后立即用于后续添加和克隆;留空时需要填写绝对路径。不会移动已有项目。`,service_settings_apply_help:`配置运行服务的电脑。workDir 保存后立即生效,其他配置需要重启服务。`,data_directory_read_only:`数据目录(只读)`,current_runtime_directory:`当前运行目录`,changing_the_data_directory_requires_database_migration_while:`数据目录变更需要迁移数据库,请在服务停止后处理。项目请在侧栏添加、重命名或移除;此处不覆盖已保存的项目管理结果。`,advanced_settings:`高级设置`,operation_failed_please_retry:`操作失败,请重试。`,configuration_files_cannot_exceed_256_kib:`配置文件不能超过 256 KiB。`,cannot_parse_json_check_the_file_format:`无法解析 JSON,请检查配置文件格式。`,exported_saved_configuration_from_the_file_unsaved_edits:`已导出配置文件中的已保存配置;未保存的编辑不包含在内。`,not_set:`未设置`,close_service_settings:`关闭服务配置`,loading_configuration:`正在读取配置…`,reload_configuration:`重新读取配置`,saved_restart_to_apply:`已保存,待重启生效`,saved_and_running_configurations_match:`已保存配置与当前运行配置一致`,confirm_discarding_edits:`放弃编辑确认`,import_configuration_preview:`导入配置预览`,save_configuration_preview:`保存配置预览`,preview_imported_configuration:`预览导入配置`,confirm_configuration_changes:`确认配置更改`,applying_to_the_form_replaces_editable_settings_but:`应用到表单后仍需检查并保存,才会修改配置文件。导入将替换当前表单中的可编辑配置。`,these_changes_apply_after_restarting_the_service_confirm:`以下更改将在服务重启后生效。请确认新的访问地址和认证配置。`,ignored_from_the_imported_file:`已忽略导入文件中的 {{v0}}。`,imported_configuration_applied_to_form_not_saved_yet:`导入配置已应用到表单,尚未保存。`,configuration_saved_restart_the_service_manually_when_convenient:`配置已保存。请在方便时手动重启服务。`,configuration_saved_and_matches_the_running_configuration:`配置已保存,与当前运行配置一致。`,confirm_save:`确认保存`,choose_configuration_file:`选择配置文件`,unsaved_changes:`有未保存的更改`,no_unsaved_changes:`没有未保存的更改`,validating:`正在校验…`,review_changes:`检查更改`,keep_current_settings:`{{v0}}(保留当前配置)`,current_mode:`当前模式:{{v0}}{{v1}}`,permission_scope:`权限范围`,approval_policy:`审批策略`,permission_profile:`权限 profile`,writable_directories:`可写目录`,temporary_directory:`临时目录`,current_network_permission:`当前网络权限:{{v0}}`,approval_reviewer:`审批执行方:{{v0}}`,changes_apply_only_to_this_via_subject_to:`修改仅用于此{{v0}}, {{v1}}请求应用,以 Codex 确认为准,不更改全局配置。`,keep_actual_settings_permissions_are_unchanged_until_another:`保留实际配置;尚未选择其他模式时不会改写权限。`,pending_selection_is_currently_unavailable:`待生效选择目前不可用:{{v0}}`,permission_mode:`权限模式:{{v0}}{{v1}}`,pending:`(待生效)`,permission_mode_2:`权限模式`,pending_2:`待生效`,write_within_project:`项目内写入`,full_access:`完全访问`,external_sandbox:`外部沙箱`,approval_for_untrusted_operations:`不可信操作需审批`,approval_requested_by_codex:`由 Codex 请求审批`,never_request_approval:`不请求审批`,custom_approval_rules:`自定义审批规则`,pending_3:`;待生效:{{v0}}`,inherited:`(继承 {{v0}})`,no_codex_sandbox_restrictions:`无 Codex 沙箱限制`,writing_requires_additional_approval:`写入需额外批准`,project_directory:`项目目录`,excluded:`排除`,allowed:`允许`,restricted:`受限`,session_s_subsequent_operations:`会话的后续操作`,project_s_new_sessions:`项目的新会话`,starting_the_next_task:`下次任务开始时`,creating_a_new_session:`新建会话时`,current:`{{v0}} · 当前 {{v1}} / {{v2}}{{v3}}{{v4}}`,save_defaults_again:`重新保存默认值`,retry:`重试`,reasoning_effort:`推理强度:{{v0}}`,pending_current:`待应用 · 当前 {{v0}}`,current_session_settings:`会话当前配置`,saved_session_settings:`会话保存配置`,new_session_defaults:`新会话默认配置`,runtime_settings:`运行设置`,applies_when_creating_a_session:`新建会话时生效`,applies_to_the_next_task:`下次任务生效`,applies_when_sending_after_resume_or_forking:`恢复后发送或 Fork 时生效`,pending_speed_current:` · 速度待生效:{{v0}};当前:{{v1}}`,pending_permissions_current:` · 权限待生效:{{v0}};当前:{{v1}}`,undo_session_changes:`撤销本会话修改`,undo_changes:`撤销修改`,saving_default_model_and_reasoning_effort:`正在保存模型和推理强度默认值…`,saved_as_codex_defaults_for_new_sessions:`已保存为 Codex 新会话默认值`,defaults_saved_but_overridden_by_higher_priority_configuration:`默认值已保存,但被更高优先级配置覆盖;新会话以实际配置为准。`,could_not_confirm_defaults_were_saved_pending_selections:`未能确认默认值已保存。当前会话的待生效选择仍保留,请查看提交核对结果。`,no_project_selected:`未选择项目`,model:`模型:{{v0}}`,model_2:`模型`,reasoning_effort_2:`推理强度`,turn_fast_off:`点击关闭 Fast`,turn_fast_on_faster_replies_increased_usage:`点击开启 Fast · 更快响应,增加用量`,fast_is_unavailable_for_this_model:`当前模型未提供 Fast`,fast_mode:`Fast 模式`,"0_0009765625_mib_minimum_1_kib":`0.0009765625–{{v0}} MiB(最小 1 KiB)`,range_default_mib_decimals_must_correspond_to_whole:`范围 {{v0}},默认 {{v1}} MiB。支持精确对应整数字节的小数;1 MiB = 1024 × 1024 字节。`,listen_address:`监听地址`,use_127_0_0_1_localhost_or_1:`本机模式使用 127.0.0.1、localhost 或 ::1。`,listen_port:`监听端口`,range_1_65535_use_the_new_port_after:`范围 1–65535;修改后使用新端口访问。`,allowed_origins:`允许访问地址`,one_complete_http_s_origin_per_line_scheme:`每行一个完整的 HTTP(S) 地址,仅包含协议、主机和端口。`,access_team_domain:`Access 团队地址`,for_example_https_your_team_cloudflareaccess_com:`例如 https://your-team.cloudflareaccess.com`,access_application_aud:`Access 应用 AUD`,enter_the_cloudflare_access_application_s_audience:`填写 Cloudflare Access 应用的 Audience。`,codex_executable:`Codex 可执行文件`,enter_codex_or_an_absolute_path_on_the:`可填写 codex 或服务器上的绝对路径。`,codex_home_optional:`CODEX_HOME(可选)`,leave_blank_to_inherit_the_service_environment_or:`留空继承服务进程环境;指定时必须填写服务器上的绝对路径。`,request_timeout_milliseconds:`请求超时(毫秒)`,range_100_300000_default_30000:`范围 100–300000,默认 30000。`,codex_message_line_limit:`Codex 单行消息上限`,event_buffer_limit:`事件缓冲上限`,websocket_buffer_limit:`WebSocket 缓冲上限`,item_content_limit:`单项内容上限`,development_origins:`开发环境来源`,one_local_http_s_origin_per_line_used:`每行一个本机 HTTP(S) 来源,仅在 --dev 模式使用。`,enter_a_value_in_mib:`请输入 MiB 数值。`,enter_a_valid_mib_value_decimals_are_allowed:`请输入有效的 MiB 数值,可使用小数。`,range:`范围为 {{v0}}。`,the_mib_value_must_correspond_to_whole_bytes:`MiB 数值必须精确对应整数字节,请调整小数(不会自动舍入)。`,custom:`自定义 · {{v0}}`,custom_2:`自定义`,cannot_determine_mode:`无法判断模式`,fast_off:`Fast 关`,fast_on:`Fast 开`,permission_ask:`请求批准`,permission_ask_description:`可在项目内读写和运行命令,联网或越界操作由你批准。`,"permission_auto-review":`帮我批准`,"permission_auto-review_description":`与请求批准的权限相同,符合条件的申请由自动审核处理。`,"permission_full-access":`完全访问`,"permission_full-access_description":`可访问项目外文件和网络,无 Codex 沙箱限制,无需审批。`,"permission_read-only":`只读`,"permission_read-only_description":`可读取文件,写入或联网需要你批准。`,permission_unavailable:`当前 Codex 能力或受管策略不允许此模式。`,missingCapabilities:`尚未读取权限模式的可用条件`,profileRestricted:`受管要求不允许此权限 profile`,scopeRestricted:`受管要求不允许此权限范围`,policyRestricted:`受管要求不允许此审批策略`,reviewerMissing:`尚未读取审核方的可用条件`,reviewerRestricted:`受管要求不允许此审核方`,autoReviewDisabled:`当前 Codex 未启用自动审核(guardian_approval)`,autoReviewRequired:`受管要求规定此模型必须使用自动审核`,fieldUnit:`{{label}}(MiB)`,fieldError:`{{label}}:{{reason}}`,temporaryDirectories:`TMPDIR:{{tmpdir}};/tmp:{{slashTmp}}`,model_settings:`模型设置`,close_model_settings:`关闭模型设置`,next_turn:`下轮生效`,live_updating:`正在更新当前任务…`,live_fast_applied:`Fast:后续模型步骤生效`,live_reviewer_applied:`审核方:后续步骤生效;已有审批不变`,live_permissions_deferred:`权限:下轮生效(沙箱和审批策略固定)`,live_fast_deferred:`Fast:确认执行中更新前,下轮生效`,context_trigger:`上下文使用情况`,context_not_reported:`用量未报告`,context_stale:`上次已知用量`,context_compaction:`上下文已变化,等待新用量`,context_modelChanged:`模型已切换,等待新用量`,context_recent:`最近一次模型调用`,context_usage:`上下文 {{used}} / {{limit}} tokens`,thread_only_model_selection:`仅应用于当前会话`,model_catalog_unavailable:`暂时无法读取此会话的模型选项。`,restart_idle:`Covro 当前空闲。`,restart_title:`重启 Covro`,restart_description:`重新启动服务和它托管的 Codex app-server,使已保存的配置生效。`,restart_unsupported:`网页重启适用于通过 Covro CLI 启动的 macOS 或 Linux 实例。此部署请使用原有服务控制方式。`,restart_busy:`等待以下事项结束:{{tasks}}。`,restart_when_idle:`空闲后重启`,restart_cancel:`取消计划重启`,restart_phase_waiting:`等待空闲`,restart_phase_restarting:`正在重启 Covro`,restart_phase_verifying:`正在检查新的 Codex app-server`,restart_phase_succeeded:`Covro 已重启并重新连接`,restart_phase_cancelled:`已取消重启`,restart_failed:`重启失败`,restart_reconnecting:`正在重新连接 Covro…`,restart_unreachable:`Covro 尚未重新连接。请在宿主机上检查服务。`,restart_blocker_running:`执行中的会话`,restart_blocker_approval:`待处理的审批`,restart_blocker_input:`待回答的输入`,restart_blocker_clone:`Git 克隆`,restart_blocker_shell:`Shell 命令`,restart_blocker_retry:`模型重试`,restart_blocker_operation:`正在处理或待核对的操作`,restart_blocker_maintenance:`服务维护`,restart_failure_timedOut:`Covro 在 30 分钟内未进入空闲。请检查剩余事项后重试。`,restart_failure_config:`无法读取或验证 Covro 配置,请检查已保存的文件。`,restart_failure_identity:`数据目录、监听地址或访问配置已更改。请通过原有服务控制方式使这些改动生效。`,restart_failure_launch:`Covro 无法核对或重新加载当前可执行文件。请检查原安装和启动环境。`,restart_failure_shutdown:`Covro 无法确认托管服务已停止。再次启动前请检查宿主机日志。`,restart_failure_interrupted:`服务在确认此次重启前停止了。`,restart_failure_startup:`新的 Covro 进程无法启动,请在宿主机上检查服务日志。`,restart_failure_codex:`Covro 已启动,但新的 Codex app-server 未能及时就绪。请检查 Codex 配置和日志。`,restart_failure_storage:`无法保存重启记录,请检查目录权限和可用空间。`,restart_failure_activity:`无法确认 app-server 是否空闲。请检查 Codex 连接后重试。`,restart_request_failed:`Covro 无法完成请求。请核对最新状态后重试。`,restart_receipt_unknown:`未收到请求回执,正在检查已保存的重启状态。`,restart_retry_request:`检查同一请求`,restart_status_unavailable:`无法读取重启状态,正在尝试重新连接。`,restart_recovery_help:`在宿主机上用相同的 --config 运行 covro status 和 covro logs,并在日志中查找下方重启 ID。`},shell:{collapsing_does_not_stop_commands:`收起不会停止命令{{v0}}`,commands_use_the_codex_server_sandbox_independently_of:`命令执行面板 · 使用 Codex 服务端配置的沙箱,独立于会话权限。每次从项目根目录启动,不支持交互输入。收起、关闭或切换项目均不会停止命令。`,still_running_in_other_projects_switch_to_view:`其他项目仍在执行:{{v0}}。切回对应项目可查看或中断。`,shell_disconnected_reconnecting_received_output_is_preserved_and:`Shell 连接已断开,正在重连。已收到的输出已保留,运行状态待确认;断开浏览器不会停止命令。`,checking_command_submission:`正在核对命令的提交结果:`,check_and_retry_original_submission:`核对并重试原提交`,recent_commands:`近期命令`,not_run_yet:`尚未执行`,reuse_command:`复用命令`,exit_code:`退出码 {{v0}}`,output_truncated_64_kib_maximum:`输出已截断(最多 64 KiB)`,run_commands_in_the_project_directory_and_view:`在项目目录中运行命令,实时查看输出。`,for_example_git_status_pwd_or_project_tests:`例如 git status、pwd 或运行项目测试`,shell_command:`Shell 命令`,interrupting:`正在中断`,result_unknown:`结果未知`,shell_panel:`Shell 面板`,select_a_project:`请选择项目`,expand_shell:`展开 Shell`,collapse_shell:`收起 Shell`,close_shell_panel:`关闭 Shell 面板`,running_in_other_projects:` · 另有 {{v0}} 个项目正在执行`,recent_shell_commands:`近期 Shell 命令`,shell_output:`Shell 输出`,waiting_for_output:`等待输出…`,no_output:`无输出`,enter_a_command:`输入命令…`,commands_run_on_the_server_and_can_be:`命令在服务端运行,可随时中断`,ctrl_enter_to_run_10_minute_limit:`Ctrl / ⌘ + Enter 执行 · 最长 10 分钟`,interrupting_2:`正在中断…`,interrupt_command:`中断命令`,the_service_restarted_execution_state_cannot_be_restored:`服务已重启,无法恢复执行状态;已收到的输出已保留。`,execution_was_submitted_but_its_record_expired_or:`执行已提交;记录已过期或服务已重启,请检查服务端结果。`,command_could_not_start:`命令未能启动`,submission_is_unconfirmed_and_being_checked_do_not:`提交结果未确认,正在核对;请勿重复执行。`,submission_is_still_unconfirmed:`提交仍未确认`,interrupt_result_is_unconfirmed_refresh_and_check:`中断结果尚未确认,请刷新后核对`,interrupt_failed_please_retry:`中断失败,请重试`,still_running_in_other_projects_switch_to_view_other:`其他项目仍在执行:{{v0}}。切回对应项目可查看或中断。`,still_running_in_other_projects_switch_to_view_one:`其他项目仍在执行:{{v0}}。切回对应项目可查看或中断。`,running_in_other_projects_other:` · 另有 {{v0}} 个项目正在执行`,running_in_other_projects_one:` · 另有 {{v0}} 个项目正在执行`},sidebar:{remove_from_this_workspace:`确定从工作空间移除「{{v0}}」?`,only_the_project_list_entry_is_removed_server:`只移除项目列表中的记录,服务器上的文件和会话历史都会保留。`,add_the_same_directory_later_to_access_its:`之后重新添加同一目录,即可继续访问原有会话。进行中的任务或未确认的操作需要先处理完成。`,server_directory:`服务器目录`,enter_an_existing_absolute_path_on_the_server:`填写服务器上的绝对路径,不是当前浏览器所在设备的目录。目录需要已存在,且服务有权访问。`,resolved_path:`最终服务器路径`,path_resolving:`正在解析路径…`,path_retry:`重新检查路径`,work_dir_path_help:`填写服务器上已有的目录。相对路径基于「服务配置」中的 workDir 补全,绝对路径直接使用。`,work_dir_clone_help:`已配置时默认使用 workDir/仓库目录名,可自行修改。相对路径基于 workDir 补全,绝对路径直接使用;父目录须已存在且可写。`,your_login_expired_log_in_again_to_manage:`登录已过期,请重新登录后管理项目。`,remove_project:`移除项目…`,remove_project_2:`移除项目`,add_server_project:`添加服务器项目`,close_project_management:`关闭项目管理`,set_a_recognizable_project_name_or_remove_it:`为项目设置便于识别的名称,或从工作空间移除项目。`,add_an_existing_directory_on_the_server_running:`添加运行 Codex Web UI 的服务器上已有的目录。添加后即可查看历史会话并开始工作。`,project_name:`项目名称`,project_name_optional:`项目名称(可选)`,defaults_to_directory_name:`默认使用目录名称`,back:`返回`,removing:`正在移除…`,confirm_removal:`确认移除`,save_name:`保存名称`,projects_and_sessions:`项目与会话`,archived_sessions:`已归档会话`,all_sessions_loaded:`已加载全部会话`,runs_on_server:`服务器执行`,code_and_credentials_stay_on_the_computer_running:`代码与凭据保留在运行服务的电脑上`,close_session_navigation:`关闭会话导航`,updating:`更新中`,update_available:`有新版本`,version_and_updates:`版本与更新`,close_navigation:`关闭导航`,search_projects_and_loaded_sessions:`搜索项目与已加载会话`,search_results_projects:`搜索结果 · {{v0}} 个项目`,all_projects:`全部项目 · {{v0}}`,session_list_scope:`会话列表范围`,refresh_session_list:`刷新会话列表`,active_sessions:`{{v0}} 个进行中会话`,creating:`正在创建…`,new_session:`新建会话`,manage_project:`管理项目 {{v0}}`,no_matches_among_loaded_sessions:`已加载会话中没有匹配结果。`,no_archived_sessions_yet:`暂无已归档会话。`,no_sessions_yet_create_one_to_get_started:`暂无会话。创建一个,开始工作。`,local_list_sync_failed_browsing_is_still_available:`本机列表同步失败,可继续浏览。`,showing_local_list_syncing_in_background:`正在显示本机列表,后台同步中…`,some_local_entries_are_not_synced_load_more:`部分本机列表尚未同步,加载更多以核对。`,loading_more_sessions:`正在加载更多会话…`,syncing_sessions:`正在同步会话…`,load_failed_retry:`加载失败,重试`,load_more_sessions:`加载更多会话`,no_matching_projects_or_loaded_sessions:`没有匹配的项目或已加载会话。`,no_projects_yet_add_a_server_directory_to:`还没有项目。添加一个服务器目录,开始工作。`,loading_projects:`正在读取项目…`,copy_full_thread_id:`复制完整 Thread ID`,copy_thread_id:`复制 Thread ID`,copy_failed_select_and_copy_the_id_manually:`复制失败,请手动选择 ID 复制。`,created_from:`创建来源`,updated_at:`更新时间`,task_status:`任务状态`,read_status:`阅读状态`,pending:`待处理`,pending_requests:`{{v0}} 项待处理`,session_type:`会话类型`,forked_session:`Fork 分支会话`,source_records_the_client_used_at_creation_not:`来源记录创建时的入口,不代表当前运行位置或连接状态。`,untitled_session:`未命名会话`,archive_session:`归档会话`,unread:` · 未读`,pending_requests_2:` · {{v0}} 项待处理`,session_details_and_source:`会话详情与来源`,session_details:`会话详情:{{v0}}`,fork_session_copy_saved_history_both_sessions_can:`Fork 会话:复制已保存的历史,新会话可与原会话同时执行。`,fork_session:`Fork 会话`,unread_2:`未读`,read:`已读`,session_history:`会话历史`,enter_a_session_name:`请输入会话名称。`,rename_session:`重命名会话`,session_name:`会话名称`,save_session_name:`保存会话名称`,cancel_rename:`取消重命名`,enter_to_save_esc_to_cancel_up_to:`Enter 保存 · Esc 取消 · 最多 {{v0}} 个字符`,click_title_to_rename_session:`点击标题重命名会话`,created_by_covro_this_web_page:`由 Covro(本网页)创建。`,created_by_the_codex_terminal_cli:`由 Codex 终端命令行创建。`,created_by_the_codex_extension_in_vs_code:`由 VS Code 中的 Codex 扩展创建。`,created_by_the_codex_desktop_app:`由 Codex 桌面应用创建。`,recorded_creator:`创建方记录为「{{v0}}」。`,recorded_as_a_codex_terminal_cli_source:`记录为 Codex 终端命令行来源。`,interactive_client:`交互客户端`,codex_only_recorded_an_interactive_source_category_it:`Codex 仅记录了交互来源分类,可能来自网页、终端或 IDE,无法确认具体创建客户端。`,recorded_as_a_codex_mcp_service_source:`记录为 Codex MCP 服务来源。`,command_line_task:`命令行任务`,recorded_as_a_non_interactive_codex_command_line:`记录为 Codex 非交互命令行任务来源。`,source_unconfirmed:`来源未确认`,no_recognizable_creator_codex_source_is_recorded_as:`缺少可识别的创建方信息,Codex 来源记录为「{{v0}}」。`,no_recognizable_creator_information:`缺少可识别的创建方信息。`,the_session_service_restarted_retry_loading_sessions:`会话服务已重启,请重试加载会话。`,session_pagination_did_not_advance_retry_or_refresh:`会话分页游标未前进,请重试或刷新会话列表。`,too_many_session_pages_read_retry_or_refresh:`会话分页读取过多,请重试或刷新会话列表。`,search_results_projects_other:`搜索结果 · {{v0}} 个项目`,search_results_projects_one:`搜索结果 · {{v0}} 个项目`,all_projects_other:`全部项目 · {{v0}}`,all_projects_one:`全部项目 · {{v0}}`,active_sessions_other:`{{v0}} 个进行中会话`,active_sessions_one:`{{v0}} 个进行中会话`,pending_requests_other:`{{v0}} 项待处理`,pending_requests_one:`{{v0}} 项待处理`,pending_requests_2_other:` · {{v0}} 项待处理`,pending_requests_2_one:` · {{v0}} 项待处理`,enter_to_save_esc_to_cancel_up_to_other:`Enter 保存 · Esc 取消 · 最多 {{v0}} 个字符`,enter_to_save_esc_to_cancel_up_to_one:`Enter 保存 · Esc 取消 · 最多 {{v0}} 个字符`,clone_intro:`从 Git 仓库克隆到运行 Covro 的服务器,完成后自动添加项目。`,clone_repository:`Git 仓库地址`,clone_auth_help:`支持 HTTPS 和 SSH(如 git@github.com:owner/repo.git)。使用服务器已有的 Git 认证,请勿在地址中填写密码或令牌。`,clone_target:`服务器目标目录`,clone_path_help:`填写服务器上的绝对路径。父目录须已存在且可写;目标目录须不存在或为空,不会覆盖已有文件。`,clone_background_help:`关闭或刷新页面不会取消克隆。需要停止时请点击“取消克隆”。`,clone_open:`打开项目`,clone_register_retry:`重试添加项目`,clone_empty_retry:`使用空目录重试`,clone_checking:`正在核对克隆状态…`,clone_progress:`克隆进度`,clone_cancelling:`正在取消…`,clone_cancel:`取消克隆`,clone_start:`克隆并添加项目`,import_existing:`已有目录`,import_clone:`克隆 Git 仓库`,import_source:`项目来源`,search_results_groups:`搜索结果 · {{v0}} 个分组`,all_sessions_projects:`全部会话 · {{v0}} 个项目`,new_unassigned_session:`新建会话(无需项目)`,no_sessions_yet:`暂无会话。直接新建会话,或添加项目。`,clone_progress_percent:`{{v0}} {{v1}}`,clone_stage_connecting:`正在连接仓库…`,clone_stage_receiving:`正在接收对象`,clone_stage_resolving:`正在解析差异`,clone_stage_checking_out:`正在检出文件`,clone_stage_counting:`正在统计对象`,clone_stage_compressing:`正在压缩对象`,clone_stage_cancelling:`正在取消,等待 Git 退出…`,clone_stage_completed:`克隆完成,项目已添加`,clone_stage_registration_failed:`克隆已完成,项目尚未添加`,clone_stage_timed_out:`克隆超时,已停止`,clone_stage_cancelled:`已取消克隆`,clone_stage_failed:`克隆失败`,search_results_groups_one:`搜索结果 · {{v0}} 个分组`,search_results_groups_other:`搜索结果 · {{v0}} 个分组`,all_sessions_projects_one:`全部会话 · {{v0}} 个项目`,all_sessions_projects_other:`全部会话 · {{v0}} 个项目`,reorder_projects:`调整项目顺序`,project_order:`项目排序`,order_done:`完成`,order_help:`拖拽项目,或使用上下按钮调整顺序。新增或重新添加的项目排在末尾。`,project_display_order:`项目显示顺序`,order_position:`第 {{v0}} 项,共 {{v1}} 项`,order_move_up:`上移项目 {{v0}}`,order_move_down:`下移项目 {{v0}}`,order_saving:`正在保存顺序…`,order_saved:`顺序已保存`,order_auto_save:`调整后自动保存,刷新和重启后仍会保留。`,order_save_failed:`{{v0}} 请重试。`,settings:`设置`,browser_notifications:`浏览器通知`,browser_notifications_status:`浏览器通知 · {{v0}}`,tasks:`任务`,background_tasks:`后台任务`,clone_background:`后台运行`,tasks_empty:`暂无后台任务`,tasks_connection_lost:`连接已中断,正在重新核对任务状态。`,tasks_view:`查看`,tasks_checking:`正在核对提交结果;可收起并从任务入口查看,请勿重复提交。`,clone_stage_interrupted:`服务中断,克隆结果未确认`},updates:{recommended_verified:`推荐:{{v0}} · 已验证:{{v1}}`,current_covro:`当前 Covro`,release_channel:`版本渠道`,auto_update_when_idle:`空闲时自动升级`,periodically_check_this_channel_and_install_verified_codex:`定期检查当前渠道,已验证的 Codex 组合在任务结束后安装并重启。`,subscribed_to_switches_to_after_a_successful_update:`当前订阅:{{v0}}。成功更新后切换到{{v1}}。`,i_agree_to_try_the_unverified_combination_of:`我确认尝试 Codex {{v0}} 与 Covro {{v1}} 的未验证组合;此确认仅用于本次升级。`,allow_downgrade_incompatible_databases_still_block_switching:`允许降级;数据库不兼容时仍会阻止切换`,version_source_official_npm_registry:`版本来源:npm 官方 registry · {{v0}}`,update_history:`更新记录`,updates_preserve_configuration_projects_and_session_history_processing:`升级保留配置、项目和会话记录。页面关闭也会继续处理,重启后自动恢复连接。`,stable:`稳定版`,beta:`预览版`,development:`开发版`,installing_candidate_version:`正在安装候选版本`,waiting_for_tasks_to_finish:`等待任务空闲`,backing_up_and_restarting:`正在备份并重启`,verifying_new_version:`正在验证新版`,update_successful:`升级成功`,previous_version_restored:`已恢复上一版本`,update_failed:`升级失败`,verified:`已验证`,unverified:`尚未验证`,explicitly_unsupported:`明确不支持`,cannot_confirm:`无法确认`,unrecognized:`未识别`,close_update_settings:`关闭更新设置`,current_codex:`正在运行的 Codex`,verified_releases_for_everyday_use:`经过验证的正式版本,适合日常使用。`,try_features_being_prepared_for_release:`接收预览版和较新的稳定版;更新后保留预览版订阅。`,follows_checked_main_commits_for_developers_testing_new:`跟随通过检查的 main 提交,也接收较新的稳定版,不接收预览版;更新后保留开发版订阅。`,disabled:`已关闭`,this_channel_is_already_at_the_current_version:`此渠道已是当前版本`,target_version:`目标版本`,available_version:`可用版本`,target_version_compatibility:`目标版本兼容性`,allow_trying_an_unverified_codex_combination:`允许尝试未验证的 Codex 组合`,auto_update_is_paused_adjust_the_codex_version:`自动升级已暂停。可以调整 Codex 版本后重新检查,或勾选确认后手动尝试。`,auto_update_is_paused_restore_the_codex_connection:`自动升级已暂停。请核对重启后的 Codex 来源及目标版本的兼容声明,再重新检查。`,processing:`正在处理…`,check_for_updates:`检查更新`,use_this_channel:`使用此渠道`,switch_and_restart:`切换并重启`,update_and_restart:`升级并重启`,update_progress:`升级进度`,draft_backup_failed_page_reload_postponed:`草稿未能备份,暂缓重载页面`,connection_interrupted_waiting_for_the_service_to_recover:`连接暂时中断,正在等待服务恢复…`,operation_unconfirmed_check_update_status:`操作未能确认,请查看升级状态`,cannot_open_draft_backup_close_old_pages_and:`无法打开草稿备份,请关闭旧页面后重试`,draft_backup_failed:`草稿备份失败`,manualUpdate:`此部署仅支持版本检测。请使用原部署方式升级并重启服务。`,checkFailed:`无法检查更新,请查看技术详情并稍后重试。`,installingDescription:`正在安装候选版本,现有会话仍然保留。`,waitingDescription:`等待任务、审批和待核对操作结束后再切换版本。`,stoppingDescription:`正在停止旧服务并备份数据,暂不接收新任务。`,verifyingDescription:`正在启动新版、迁移并验证数据,暂不接收新任务。`,succeededDescription:`升级成功,服务已恢复。`,rolledBackDescription:`新版未能启动,已恢复上一版本。请查看技术详情。`,failedDescription:`升级未能完成。请查看技术详情与服务日志,核对当前运行版本。`,releaseNotes:`发布说明`,releaseNotesFor:`发布说明 · {{version}}`,viewOnGitHub:`在 GitHub 查看`,releaseNotesContent:`发布说明正文`,releaseNotesLoading:`正在加载发布说明…`,releaseNotesMissing:`此版本暂无发布说明,部分 Beta / Dev 版本没有对应的 GitHub Release。你仍可继续更新。`,releaseNotesEmpty:`此 Release 尚未填写说明,你仍可继续更新。`,releaseNotesRateLimited:`GitHub 请求已被限流,请稍后重试;你仍可继续更新。`,releaseNotesFailed:`发布说明加载失败,请检查网络后重试;你仍可继续更新。`,runtime:`Node 环境`,installation_source:`安装来源`,runtime_unavailable:`无法确认目标 Node 环境,请查看详情后重新检查。`,migrate_and_restart:`切换 Node 并重启`,cancelled:`升级已取消`,cancel_pending_update:`取消待执行升级`,cancelledDescription:`待执行升级已取消,当前服务继续运行。`,after_restart:`重启后的 Codex`,unverified_combination:`Codex {{version}} 与此 Covro 的组合尚未验证。`,unknown_compatibility:`无法确认 Codex 版本或兼容声明,请重新检查。`,restart_unavailable:`无法确认重启后的 Codex。请核对启动来源后重新检查。`,unsupported_combination:`此 Covro 明确不支持 Codex {{version}}。`},workspace:{simulation_mode_results_come_from_the_explicitly_enabled:`模拟测试模式 · 当前执行结果来自显式启用的测试 app-server`,your_login_has_expired_disconnecting_this_page_does:`登录已过期。任务不会因页面断开而被取消。`,reopen_login:`重新打开登录入口`,live_connection_showing_the_last_known_state:`实时连接{{v0}}。当前显示上次已知状态。`,reconnect_now:`立即重连`,codex_is_unavailable:`Codex 尚不可用:{{v0}}`,error_details:`错误详情`,this_session_is_archived:`此会话已归档`,history_is_preserved_unarchive_to_continue_the_conversation:`历史已保留。取消归档后可继续对话。`,confirming_the_fork_wait_for_the_receipt_before:`正在确认 Fork…请等待提交回执,暂时不能再次 Fork。`,this_codex_version_does_not_support_session_forks:`当前 Codex 版本不支持 Fork 会话。`,you_can_fork_once_the_connection_recovers_and:`连接恢复且 Codex 就绪后可 Fork 会话。`,the_project_directory_is_unavailable_restore_access_before:`项目目录不可用,恢复后可 Fork 会话。`,confirm_compatibility_with_the_current_codex_version_first:`请先确认当前 Codex 版本的兼容性。`,send_the_first_message_to_enable_forking_saved:`发送首条消息后可 Fork 已保存的历史。`,check_settings:`请检查设置`,check_the_session_operation_results_first:`请先核对会话操作的结果`,available_when_the_connection_recovers:`连接恢复后可操作`,confirm_codex_version_compatibility_first:`请先确认 Codex 版本兼容性`,this_codex_version_does_not_support_this_operation:`当前 Codex 不支持此操作`,finish_the_task_and_resolve_pending_requests_before:`任务结束并处理完待办后可归档`,session_state_needs_checking_archiving_is_temporarily_unavailable:`会话状态待核对,暂时无法归档`,open_projects_and_sessions:`打开项目与会话`,more_actions:`更多操作`,diagnostics_with_count:`状态诊断({{v0}})`,workspace:`工作空间`,new_session:`新会话`,start_your_next_task:`开始你的下一项任务`,open_shell_panel:`打开 Shell 面板`,running_shell_commands:`运行中的 Shell 命令`,return_to_original_session:`返回原会话`,connecting:`正在建立`,disconnected_reconnecting:`已断开,正在重连`,check_the_codex_installation_authentication_and_service_on:`请在私人电脑上检查 Codex 安装、认证与服务状态。`,dismiss_error:`关闭错误提示`,rename_result_awaiting_confirmation:`重命名结果待确认`,saving_session_name:`正在保存会话名称…`,archive_result_awaiting_confirmation:`归档结果待确认`,archiving_session:`正在归档会话…`,unarchive_result_awaiting_confirmation:`取消归档结果待确认`,unarchiving:`正在取消归档…`,check_submission:`核对提交`,pending_requests:`待处理请求`,the_new_session_submission_is_unconfirmed_check_it:`新建会话的提交结果尚未确认。请先核对提交,避免重复创建。`,the_fork_result_is_unconfirmed_check_the_submission:`Fork 结果尚未确认。请核对提交,暂时不能再次 Fork。`,the_submission_result_is_unconfirmed_check_it_or:`提交结果尚未确认。请核对提交,也可以 Fork 已保存的历史为新会话。`,your_answer_is_needed:`需要你的回答`,free_text_answer:`自由回答`,your_answer_will_be_sent_to_this_session:`回答会发送到当前会话,Codex 可以继续执行。`,questions_from_codex:`Codex 的提问`,answer_sent:`已发送回答`,sending:`正在发送…`,you_can_answer_later:`可稍后回答`,answer_submit_shortcut:`{{shortcut}} 发送 / Enter 换行`,send_answer:`发送回答`,codex_has_not_been_verified_some_features_may:`当前 Codex {{v0}} 尚未验证兼容性,部分功能可能无法正常使用。 {{v1}}`,view_compatibility_notice:`查看兼容性提示`,codex_version_compatibility_is_unverified:`Codex 版本兼容性未经验证`,this_codex_version_is_unverified_some_features_may:`当前运行的 Codex 版本尚未验证,部分功能可能无法正常使用。确认继续后仍将保留兼容性提示。`,codex_is_unavailable_close_this_notice_and_check:`Codex 当前不可用,无法确认继续。请关闭此提示后查看状态诊断。`,wait_for_the_connection_and_codex_authentication_to:`请等待连接和 Codex 认证恢复后再确认。`,the_confirmation_result_needs_checking_refresh_status_or:`确认请求的结果尚待核对。可刷新状态,或重新确认当前运行版本的使用许可;不会重发任务。`,refresh_confirmation_status:`刷新确认状态`,confirm_again:`重新确认`,you_can_still_view_diagnostics_or_interrupt_tasks:`关闭提示后仍可查看诊断或中断当前任务。确认不会自动发送任务,未发送的草稿会保留。`,not_now:`暂不使用`,permission_to_continue_confirmed_this_does_not_verify:` 已确认继续;这不代表版本已验证。`,confirmation_required_before_use:` 使用前需要确认。`,confirming:`正在确认…`,json_source:`JSON 原文`,formatted_json:`格式化 JSON`,copy_reply_markdown:`复制回答(Markdown)`,copy_reply:`复制回答`,copy_failed_select_and_copy_the_reply_manually:`复制失败,请手动选择回答复制。`,cannot_read_default_settings:`无法读取默认配置`,the_browser_cannot_save_operation_records_keep_this:`浏览器未允许保存操作记录。请保持此页面打开,以便核对未确认的提交。`,operation_failed_check_details:`操作失败,请查看详情。`,confirm_the_codex_version_compatibility_notice_before_starting:`请先确认当前 Codex 版本的兼容性提示,再发起操作。`,cannot_read_session_history_no_file_downloaded:`无法读取会话历史,未下载文件。`,login_expired_or_history_response_was_not_markdown:`登录已过期或历史接口未返回 Markdown,请重新登录后重试。`,export_response_has_no_valid_filename_no_file:`导出响应缺少有效文件名,未下载文件。`,export_response_lacks_history_completeness_information_no_file:`导出响应缺少历史完整性说明,未下载文件。`,request_failed_please_try_again:`请求失败,请稍后重试。`,open_github_repository:`打开 GitHub 仓库`,end_question_tracking:`跳过`,end_remaining_tracking:`全部跳过`,end_tracking_hint:`仅停止 Covro 提醒,不发送回答或草稿,也不停止任务。`,question_tracking_ended:`已跳过 · 未发送回答`,questions_handled:`已处理`,answer_receipt_pending:`回答回执待确认`,skip_all_questions_hint:`跳过本组所有未回答问题,包括已填写的草稿;不发送回答或停止任务。`}},ja:{account:{title:`アカウント使用量`,scope:`現在の Codex インスタンスの割り当て。セッションのトークンとは別です。`,refresh:`更新`,refreshing:`更新中…`,updatedAt:`取得時刻:{{time}}`,loading:`アカウント使用量を取得中…`,signedOut:`Codex にログインしていません。`,unsupported:`このアカウントまたは Codex インスタンスでは使用量を取得できません。`,offline:`Codex はオフラインです。再接続後に使用量を取得できます。`,refreshFailed:`更新に失敗しました。表示されている値は前回の取得結果です。`,noWindows:`割り当て期間は報告されていません。`,quota:`アカウントの割り当て`,primary:`主期間`,secondary:`副期間`,used:`使用済み {{value}}`,remaining:`残り {{value}}`,usageUnknown:`使用率は未報告`,resetsAt:`リセット時刻:{{time}}`,resetUnknown:`リセット時刻は未報告`,resetPassed:`リセット時刻を過ぎました。更新して現在の使用量を確認してください`,exhausted:`割り当てを使い切りました`,credits:`クレジット`,unlimited:`無制限`,balance:`残高:{{value}}`,balanceUnknown:`残高は未報告`,creditsAvailable:`クレジットあり`,creditsDepleted:`利用可能なクレジットなし`,individualLimit:`個人の支出上限`,reportedUsed:`使用済み:{{value}}`,reportedLimit:`上限:{{value}}`,spendControlReached:`支出上限に到達`,spendControlNotReached:`支出上限に未到達`,usageAllowed:`プラン内の利用が可能`,usageBlocked:`プラン内の利用は不可`,resetCredits:`獲得済みの利用可能リセット回数:{{count}}`,ownerCreditsDepleted:`ワークスペース所有者のクレジットを使い切りました`,memberCreditsDepleted:`ワークスペースメンバーのクレジットを使い切りました`,ownerUsageReached:`ワークスペース所有者の使用量上限に到達`,memberUsageReached:`ワークスペースメンバーの使用量上限に到達`},approvals:{working_directory:`作業ディレクトリ:`,another_answer:`その他の回答`,this_interaction_is_unsupported_no_approval_was_sent:`この対話リクエストには対応しておらず、承認は送信されていません。互換性の診断を確認してください。`,request_could_not_be_handled:`リクエストを処理できませんでした`,network_destination:`ネットワーク接続先`,change_details:`変更の詳細`,request_details:`リクエストの詳細`,automatic_review:`自動審査`,review_rationale:`審査の理由`,risk_assessment:`リスク評価`,user_authorization_assessment:`ユーザー承認の評価`,review_id:`審査 ID`,operation_id:`操作 ID`,started_at:`開始時刻`,finished_at:`終了時刻`,reviewing:`審査中`,allowed:`許可済み`,review_aborted:`審査中止`,low:`低`,medium:`中`,high:`高`,critical:`非常に高い`,unknown:`不明`,no_valid_time_provided:`有効な時刻がありません`,automatic_review_2:`自動審査の結果:{{v0}}、{{v1}}`,no_reviewed_operation_provided:`審査対象の操作がありません。`,no_review_rationale_provided:`審査の理由がありません。`,source:`提供元:`,session_approval_applies_only_to_this_request_s:`セッション単位の許可は、このリクエストのツールまたは接続範囲にのみ適用され、承認ポリシーに従います。新しいセッションでは再確認が必要です。`,url:`アクセス先 URL`,open_in_new_tab:`新しいタブで開く`,complete_the_steps_on_the_page_then_click:`ページでの操作を終えたら「完了しました」をクリックして続行してください。`,leave_blank:`入力しない`,select_an_option:`選択してください`,yes:`はい`,no:`いいえ`,check_the_highlighted_fields_before_submitting:`送信前にマークされた項目を確認してください。`,allow_for_this_session:`このセッションで許可`,deny:`拒否`,enter_an_integer:`整数を入力`,minimum:`最小 {{v0}}`,maximum:`最大 {{v0}}`,at_least_characters:`{{v0}} 文字以上`,at_most_characters:`{{v0}} 文字以下`,select_at_least_items:`{{v0}} 個以上選択`,select_at_most_items:`{{v0}} 個まで選択`,include_a_time_zone_e_g_2026_10:`日時にはタイムゾーンが必要です。例:2026-10-14T12:30:00+08:00`,this_field_is_required:`必須項目です。`,check_the_requirements_for_this_field:`この項目の入力条件を確認してください。`,allow_once:`今回のみ許可`,i_m_done:`完了しました`,this_request_has_no_safe_http_or_https:`安全に開ける HTTP(S) URL がないため、完了を確認できません。`,no_url_provided:`URL がありません`,required:`必須`,optional:`任意`,not_provided_optional:`未入力(任意)`,network_access:`ネットワークアクセス`,files_and_directories:`ファイルとディレクトリ`,directory_matching_depth:`ディレクトリ検索の深さ:{{v0}}`,no_additional_network_or_file_access_requested:`追加のネットワーク・ファイルアクセス権限は要求されていません。`,read:`読み取り`,write:`書き込み`,deny_access:`アクセス禁止`,network_access_allowed:`ネットワークアクセスを許可`,no_additional_network_access:`追加のネットワークアクセスなし`,no_network_access_changes_specified:`ネットワーク権限の変更指定なし`,action_required:`対応が必要です`,handled:`対応済み`,request_expired:`リクエスト失効`,commandApproval:`コマンド実行の承認`,humanCommandApproval:`人による承認が必要なコマンド`,fileApproval:`ファイル変更の承認`,permissionsApproval:`追加権限の承認`,networkApproval:`ネットワーク権限:{{target}}`,mcpApproval:`MCP ツールの承認:{{server}}`,mcpInteraction:`MCP 対話:{{server}}`,unsupported:`未対応の Codex 対話リクエスト`,cancelTask:`現在のタスクをキャンセル`,allowTask:`現在のタスクで許可`,commandRule:`コマンドルールを許可して保存:{{rule}}`,networkRule:`ネットワークルールを適用:{{rule}}`,command:`コマンド実行`,execve:`プログラム実行`,writeStdin:`ターミナル入力`,applyPatch:`ファイル変更`,networkAccess:`ネットワークアクセス`,mcpToolCall:`ツール呼び出し`,requestPermissions:`権限変更`,unknownAction:`操作の審査`,at_least_characters_other:`{{v0}} 文字以上`,at_least_characters_one:`{{v0}} 文字以上`,at_most_characters_other:`{{v0}} 文字以下`,at_most_characters_one:`{{v0}} 文字以下`,select_at_least_items_other:`{{v0}} 個以上選択`,select_at_least_items_one:`{{v0}} 個以上選択`,select_at_most_items_other:`{{v0}} 個まで選択`,select_at_most_items_one:`{{v0}} 個まで選択`,program:`プログラム`,arguments:`引数`,process:`プロセス`,depth:`ディレクトリ検索の深さ`,networkAllowed:`ネットワークアクセスを許可`,networkRestricted:`追加のネットワークアクセスなし`,fieldValue:`{{label}}:{{value}}`,denyDecision:`拒否`,accessDeny:`アクセス禁止`,skip_question:`この質問をスキップ`,answer_question:`この質問に回答`,question_skipped:`スキップ済み`,question_will_be_skipped:`送信時にスキップします`,skip_all_questions:`すべてスキップして送信`,submit_with_skipped:`スキップを含めて送信`},backups:{title:`バックアップと復元`,close:`バックアップと復元を閉じる`,introduction:`バックアップはサービスを実行しているコンピューターに保存されます。実行中のタスクを中断せず、タスク、承認、未確認の操作が完了するまで待ってスナップショットを作成します。`,overview:`バックアップの概要`,currentSchema:`現在のスキーマ {{version}}`,completed_one:`完了 {{number}} 件 · {{size}}`,completed_other:`完了 {{number}} 件 · {{size}}`,processing:`処理中…`,create:`今すぐバックアップ`,cancel:`バックアップをキャンセル`,progress:`バックアップの進行状況`,databaseProgress:`データベースのバックアップ進行状況`,continues:`このページを閉じてもサービスは処理を続けます。`,records:`バックアップ履歴`,loading:`バックアップ履歴を読み込み中…`,empty:`バックアップはまだありません。最初のスナップショットを作成するか、アップグレード前の自動作成をお待ちください。`,protected:`アップグレードの復旧用に保持 · 削除しないでください`,verify:`再検証`,verified:`バックアップを再検証しました。このバージョンの復元手順で使用できます。`,recovery:`復元方法`,recoveryWarning:`まずサーバーのターミナルで事前確認し、サービスを停止して同じバックアップ ID で復元を確定してください。復元すると設定とアプリのデータが上書きされ、バックアップ後のアプリのデータは失われます。`,recoveryPreview:`事前確認では上書きの範囲、互換性、確定までの手順を表示します。`,scope:`バックアップの範囲と保持方針`,scopeTitle:`範囲と保持`,included:`Covro のサービス設定、プロジェクト登録、環境設定、アプリのデータベース記録を含みます。Codex の会話本文、認証情報、添付ファイル、成果物、プロジェクトファイルは別途バックアップしてください。`,retention:`バックアップは自動削除されません。アップグレードの復旧に必要なバックアップは保持してください。復元前に保存する元のファイルのコピーもディスク容量を使用します。`,directory:`保存先ディレクトリ`,loadFailed:`バックアップ履歴を読み込めません。再試行してください。`,operationFailed:`バックアップ操作に失敗しました。再試行してください。`,unavailable:`このサービスではバックアップを利用できません。技術的な詳細を確認してください。`,phase_waiting:`安全な状態になるまで待機中`,phase_copying:`バックアップ中`,phase_verifying:`検証中`,phase_succeeded:`バックアップ成功`,phase_failed:`バックアップ失敗`,phase_cancelled:`キャンセル済み`,phase_interrupted:`バックアップ中断`,phase_corrupt:`バックアップ利用不可`,description_waiting:`タスク、承認、入力、未確認の操作が完了するまで待機しています。`,description_copying:`データベースと設定のスナップショットを作成しています。`,description_verifying:`ファイルの整合性とデータベースの互換性を確認しています。`,description_succeeded:`スナップショットの検証が完了し、オフラインで復元できます。`,description_failed:`復元可能なスナップショットは作成されませんでした。設定、ディレクトリの権限、ディスク容量を確認して再試行してください。`,description_cancelled:`バックアップはキャンセルされました。復元可能なスナップショットは作成されていません。`,description_interrupted:`復元可能なスナップショットの完成前に処理が中断されました。`,description_corrupt:`このバックアップは破損、不完全、または現在のバージョンと互換性がないため復元できません。`,trigger_manual:`手動バックアップ`,trigger_preUpgrade:`アップグレード前`,trigger_preRestore:`復元前`,completed:`完了 {{number}} 件 · {{size}}`},commands:{session_commands:`セッションコマンド`,applies_to_the_current_project_and_session:`現在のプロジェクトとセッションに適用`,no_matching_commands_type_help_to_view_supported:`一致するコマンドはありません。/help で対応範囲を確認できます。`,to_select_enter_to_run_esc_to_close:`↑ ↓ で選択 · Enter で実行 · Esc で閉じる`,slash_commands:`スラッシュコマンド`,unknown_command_use_help_for_available_commands_or:`不明なコマンド /{{v0}}。/help でコマンドを確認できます。/ から始まる通常のメッセージは // を使ってください。`,select_a_command_or_type_help_for_available:`コマンドを選ぶか、/help で利用可能なコマンドを確認してください。`,does_not_accept_arguments_usage:`/{{v0}} に引数は指定できません。使い方:{{v1}}`,view_supported_commands_and_usage:`このページで使えるコマンドと使い方を表示`,open_a_new_session_draft_in_the_current:`現在のワークスペースの新規セッション入力画面を開く`,copy_saved_session_history_into_a_new_session:`保存済み履歴を新しいセッションにコピー`,resume_the_selected_session_not_the_cli_session:`選択中の履歴セッションを再開(CLI の一覧選択ではありません)`,rename_this_session_spaces_are_allowed:`このセッションの名前を変更(スペース使用可)`,request_interruption_of_the_current_task_web_shortcut:`現在のタスクの中断を要求(ウェブ専用)`,open_connection_runtime_and_submission_diagnostics:`接続、実行状態、送信結果の診断を開く`,compact_context_and_continue_in_this_session:`コンテキストを圧縮してこのセッションを続ける`,download_saved_session_history_as_markdown:`保存済み履歴を Markdown でダウンロード`,your_login_expired_log_in_again_and_retry:`ログインの有効期限が切れました。再ログインして再試行してください。`,you_are_offline_wait_for_the_connection_to:`オフラインです。接続の復旧をお待ちください。`,codex_is_not_logged_in_authenticate_first:`Codex が未ログインです。先に認証してください。`,codex_is_unavailable_check_diagnostics_first:`Codex は利用できません。先に状態の診断を確認してください。`,session_loading_try_again_shortly:`セッションを読み込み中です。しばらくして再試行してください。`,select_a_session_first:`先にセッションを選択してください。`,this_codex_does_not_provide_thread_read:`現在の Codex は thread/read を提供していません。`,confirm_the_codex_version_compatibility_notice_first:`先に Codex バージョンの互換性の注意事項を確認してください。`,this_codex_does_not_provide:`現在の Codex は {{v0}} を提供していません。`,select_a_project_first:`先にプロジェクトを選択してください。`,the_project_directory_is_unavailable_check_project_configuration:`プロジェクトディレクトリを利用できません。設定を確認してください。`,creating_a_session_wait_for_the_receipt:`セッションを作成中です。受付結果をお待ちください。`,session_creation_is_unconfirmed_use_status_to_check:`セッション作成は未確認です。/status で送信結果を確認してください。`,unarchive_before_compacting_context:`アーカイブを解除してからコンテキストを圧縮してください。`,resume_this_session_before_compacting_context:`セッションを再開してからコンテキストを圧縮してください。`,this_session_is_empty_there_is_no_context:`セッションが空のため圧縮は不要です。`,submitting_compaction_wait_for_the_receipt:`圧縮リクエストを送信中です。受付結果をお待ちください。`,wait_for_this_task_to_finish_before_compacting:`タスクが終了してからコンテキストを圧縮してください。`,an_execution_still_needs_checking_use_status_to:`未確認の実行があります。/status で送信結果を確認してください。`,this_session_is_archived_unarchive_it_first:`アーカイブ済みです。先に解除してください。`,resume_this_session_before_starting_code_review:`セッションを再開してからコードレビューを開始してください。`,submitting_code_review_wait_for_the_receipt:`コードレビューを送信中です。受付結果をお待ちください。`,this_session_has_an_unconfirmed_request_use_status:`未確認のリクエストがあります。/status で確認してください。`,wait_for_this_task_to_finish_before_starting:`現在のタスクが終了してからコードレビューを開始してください。`,this_session_is_still_occupied_by_an_execution:`実行による占有が残っています。/status で以前のタスクを確認してください。`,unarchive_and_resume_this_session_before_renaming:`アーカイブを解除して再開してから名前を変更してください。`,resume_this_session_before_renaming_sessions_occupied_by:`名前変更にはセッションの再開が必要です。他のプロセスが使用中のセッションは変更できません。`,renaming_wait_for_the_receipt:`名前を変更中です。受付結果をお待ちください。`,rename_is_unconfirmed_use_status_to_check_the:`名前変更は未確認です。/status で送信結果を確認してください。`,archiving_is_unconfirmed_use_status_to_check_the:`アーカイブ操作は未確認です。/status で送信結果を確認してください。`,this_session_is_empty_send_the_first_message:`セッションが空です。最初のメッセージを送信してから保存済み履歴を分岐してください。`,forking_session_wait_for_the_receipt:`セッションを分岐中です。受付結果をお待ちください。`,fork_request_unconfirmed_use_status_to_check_the:`分岐リクエストは未確認です。/status で送信結果を確認してください。`,resuming_session_wait_for_the_receipt:`セッションを再開中です。受付結果をお待ちください。`,this_session_is_running_wait_for_it_to:`セッションは実行中です。終了を待つか /stop を使ってください。`,this_session_is_already_resumed:`このセッションはすでに再開しています。`,another_process_is_using_this_session_its_task:`別のプロセスが使用中のため、このページからそのタスクを中断できません。`,this_session_has_not_been_resumed_tasks_in:`セッションが未再開のため、他のプロセスのタスクをこのページから中断できません。`,submitting_interrupt_request_wait_for_the_receipt:`中断リクエストを送信中です。受付結果をお待ちください。`,interrupt_request_unconfirmed_use_status_to_check_the:`中断リクエストは未確認です。/status で送信結果を確認してください。`,task_state_is_unconfirmed_use_status_to_check:`タスク状態は未確認です。/status で送信結果を確認してください。`,this_session_has_no_task_to_interrupt:`中断できるタスクはありません。`,no_confirmed_success_receipt_received_check_errors_or:`成功を確認できる応答がありません。エラーまたは /status を確認してください。入力は保持されています。`,operation_failed_check_diagnostics:`操作に失敗しました。状態の診断を確認してください。`,submission_result_unconfirmed_use_status_before_submitting_again:`送信結果は未確認です。再送信する前に /status で確認してください。`,context_compaction_requested_follow_task_status_in_the:`コンテキスト圧縮を要求しました。進行状況と結果は会話内のタスク状態で確認してください。`,session_renamed_to:`セッション名を「{{v0}}」に変更しました。`,rename_accepted_but_the_name_is_unconfirmed_use:`名前変更は受け付けられましたが、名前を確認できません。/status で確認してください。`,request_accepted_but_no_new_session_id_received:`リクエストは受け付けられましたが、新しいセッション ID がありません。/status で確認してください。`,forked_into_a_new_session:`新しいセッションに分岐しました。`,code_review_submitted_view_progress_and_results_in:`コードレビューを送信しました。このセッションで進行状況と結果を確認できます。`,interrupt_requested_wait_for_task_status_to_update:`中断を要求しました。タスク状態の更新をお待ちください。`,selected_session_resumed:`選択中のセッションを再開しました。`,rename_name:`/rename <名前>`,no_arguments:`/{{v0}}(引数なし)`,rename_requires_a_name_other_commands_take_no:`コマンドと使い方:
|
|
17
|
-
{{v0}}
|
|
18
|
-
表示された引数のみ使用できます。
|
|
19
|
-
/ から始まる通常のメッセージには // を使ってください。`,name:` <名前>`,diagnostics_opened_refresh_status_or_reconcile_submissions_in:`状態の診断を開きました。パネルで状態の更新や送信結果の確認ができます。`,the_project_or_session_changed_select_the_command:`プロジェクトまたはセッションが変わりました。コマンドを選び直してください。`,markdown_download_started_some_content_is_unfinished_unconfirmed:`Markdown のダウンロードを開始しました。未完了、未確認、省略された内容があります。ファイル内の説明を確認してください。`,saved_history_download_started_the_file_describes_omitted:`保存済み履歴のダウンロードを開始しました。画像や内部記録の省略範囲はファイル内に記載されています。`,new_session_draft_opened_a_session_will_be:`新規セッションの入力画面を開きました。最初のメッセージ送信時にセッションを作成します。`,renameEmpty:`セッション名を入力してください。使い方:/rename <名前>`,renameLong:`セッション名は {{max}} 文字以内です。`,renameControls:`セッション名に改行や制御文字は使用できません。`,commandLine:`/{{name}}{{arguments}}:{{description}}`,review_uncommitted_working_directory_changes:`現在のセッション設定で作業ディレクトリの未コミット変更をレビュー`,planDescription:`Plan モードを選択し、必要に応じてタスクを送信`,planUsage:`/plan [タスク]`,optionalTask:` [タスク]`,planSelected:`次のタスクに Plan モードを選択しました。Codex の確認を待っています。`,planSubmitted:`Plan タスクを送信しました。実際のモードと結果は会話で確認してください。`,planNotSubmitted:`タスク送信は未確認です。再試行前に診断を確認してください。`,planUnavailable:`アイドル状態の会話を再開するか、新しい下書きを開いてください。`,mode:`共同作業モード`,modeUnknown:`モード未報告`,executeMode:`実行`,planMode:`Plan`,modePending:`{{selected}} 適用待ち · 現在: {{current}}`,reviewTarget:`コードレビュー対象`,reviewUncommitted:`未コミットの変更`,reviewBranch:`ベースブランチと比較`,reviewCommit:`特定のコミット`,reviewCustom:`カスタム指示`,branchName:`ベースブランチ`,reviewInstructions:`レビュー指示`,startReview:`レビュー開始`,cancelDialog:`キャンセル`,closeDialog:`閉じる`,reviewCancelled:`レビューをキャンセルしました。下書きは保持されます。`,reviewDescription:`変更・ブランチ・コミット・カスタム指示をレビュー`,reviewUsage:`/review [指示]`,initDescription:`既存ファイルを保持してプロジェクトの AGENTS.md を生成`,initSubmitted:`AGENTS.md 生成タスクを送信しました。結果は会話で確認してください。`,initUnavailable:`アイドル状態の会話を再開するか新しい下書きを開いてください。`,workspaceDiff:`作業領域の Git 変更`,diffSection:`変更範囲`,diff_staged:`ステージ済み`,diff_unstaged:`未ステージ`,diff_untracked:`未追跡`,diffPartial:`ファイル変更、読取不可、上限超過により一部内容を省略しました。`,diffDescription:`ステージ済み・未ステージ・未追跡の変更を表示`,diffUnavailable:`プロジェクトまたは保存済み会話を選択してください。`,diffOpened:`作業領域の変更を開きました。更新で新しいスナップショットを取得できます。`,approveDescription:`拒否された操作を一度だけ許可`,approveTitle:`拒否された操作`,approveEmpty:`この実行環境に再試行可能な拒否はありません。`,approveSelect:`拒否された操作を選択`,approveConfirm:`この操作を一度だけ許可します。既定の権限は変更されません。`,approveOnce:`一度だけ許可`,approveSubmitted:`再試行の許可を記録しました。続行するタスクを送信してください。`,approveCancelled:`許可をキャンセルしました。`,recapDescription:`最近の会話を別途要約`,recapTitle:`会話の要約`,recapNotice:`最近の可視メッセージを別のモデルリクエストで要約します。元のコンテキストは変わりません。`,recapPartial:`保存された会話の一部のみを含みます。`,recapEmpty:`先にメッセージを送信してください。`,recapFailed:`要約結果を確認できませんでした。`,recapOpened:`会話の要約を開きました。`,goalDescription:`ネイティブ会話目標を管理`,goalTitle:`会話の目標`,goalEmpty:`目標は設定されていません。`,goalObjective:`目標`,goalBudget:`トークン予算(空欄は現在値を維持)`,goalActivation:`有効にすると Codex が自動で作業を続行できます。一時停止やクリアは以後の続行を止めます。現在のタスクは停止ボタンで中断してください。`,goalActivate:`保存して有効化`,goalPause:`一時停止`,goalComplete:`完了にする`,goalClear:`目標をクリア`,goalManage:`目標を管理`,goalUnconfirmed:`結果は未確認です。再送信する前に診断を確認してください。`,goalUnavailable:`この実行環境では目標を使用できません。`,goalCommandUsage:`/goal [目標 | edit | pause | resume | clear]`,goalOpened:`目標管理を開きました。`,goalUsageTokens:`トークン {{used}} / {{budget}}`,goalTime:`{{seconds}} 秒`,goal_active:`実行中`,goal_paused:`一時停止`,goal_blocked:`ブロック`,goal_usageLimited:`使用量制限`,goal_budgetLimited:`予算制限`,goal_complete:`完了`},common:{language:`言語`,requestFailed:`リクエストに失敗しました。再試行してください。`,lessThanSecond:`1 秒未満`,fork_into_a_new_session:`新しいセッションに分岐`,on:`オン`,off:`オフ`,saving:`保存中…`,project_directory_unavailable:`プロジェクトディレクトリを利用できません`,sessions:`セッション`,loading_session:`セッションを読み込み中…`,checking:`確認中…`,unarchive:`アーカイブを解除`,technical_details:`技術的な詳細`,free_text_answer:`{{v0}}:自由入力`,enter_your_answer:`回答を入力`,confirm_selection:`選択を確定`,submit_answer:`回答を送信`,running:`実行中`,failed:`失敗`,denied:`拒否済み`,review_timed_out:`審査がタイムアウト`,result_unconfirmed:`結果未確認`,completed:`完了`,working_directory:`作業ディレクトリ`,running_version:`実行中のバージョン`,verified_version:`検証済みバージョン`,not_detected:`未検出`,loading:`読み込み中`,confirm_and_continue:`確認して続行`,loading_2:`読み込み中…`,could_not_read_the_image_please_paste_it:`画像を読み取れませんでした。もう一度貼り付けてください。`,confirming_fork:`分岐を確認中…`,run_command:`コマンドを実行`,submitting:`送信中…`,last_known:`最終確認:`,add_project:`プロジェクトを追加`,interrupted:`中断済み`,diagnostics:`状態の診断`,session_not_created_yet:`セッションはまだ作成されていません`,reload:`再読み込み`,added:`追加`,removed:`削除`,cancel:`キャンセル`,read_only:`読み取り専用`,copied:`コピー済み`,service_settings:`サービス設定`,authentication_mode:`認証方式`,image:`画像`,preview_image:`画像をプレビュー:{{v0}}`,permission_details:`権限の詳細`,not_reported:`報告なし`,manage_project:`プロジェクトを管理`,execution_failed:`実行失敗`,covro_updates:`Covro の更新`,model_defaults_are_being_saved_wait_before_proceeding:`モデルの既定値を保存中です。完了までお待ちください。`,unassigned:`プロジェクト未関連付け`,close:`閉じる`},composer:{resuming_session:`セッションを再開中…`,retry_resume:`再開を再試行`,an_update_will_load_automatically_once_typing_or:`入力や画像の読み込みが完了すると、新しいバージョンを自動で読み込みます`,slash_commands_cannot_include_images_remove_the_images:`スラッシュコマンドに画像は添付できません。画像を削除するか、通常のメッセージとして送信してください。`,running:`/{{v0}} を実行中…`,command_failed_please_try_again:`コマンドの実行に失敗しました。再試行してください。`,pasted_image:`貼り付けた画像`,submitting_message:`メッセージを送信中…`,creating_a_session_and_sending_the_first_message:`セッションを作成し、最初のメッセージを送信中…`,this_session_is_in_use_by_another_process:`このセッションは別のプロセスで使用されています`,unable_to_resume_session:`セッションを再開できません`,fork_saved_history_to_continue_or_retry_once:`保存済み履歴から分岐するか、元のプロセスがセッションを解放してから再試行してください。新しいセッションも同じプロジェクトディレクトリを使用します。`,images_to_send:`送信する画像`,image_to_send:`送信する画像 {{v0}}`,remove_image:`画像 {{v0}} を削除`,additional_instructions:`追加の指示`,task_content:`タスクの内容`,unarchive_to_continue_the_conversation:`アーカイブを解除すると会話を続けられます…`,add_requirements_or_adjust_direction:`要件の追加や方針の変更を入力…`,describe_a_task_paste_an_image_or_type:`タスクを入力、画像を貼り付け、または / でコマンドを表示…`,interrupt:`中断`,requesting:`リクエスト中…`,enter_to_run_command_esc_to_close_menu:`Enter でコマンド実行 / Esc でメニューを閉じる`,enter_to_send_shift_enter_for_a_new:`Enter で送信 / Shift + Enter で改行`,running_command:`コマンドを実行中…`,send_task:`タスクを送信`,running_2:`実行中…`,closing_this_page_does_not_stop_tasks_interruptions:`ページを閉じてもタスクは停止しません。中断の成否は Codex が返す実際の状態によります。`,codex_runs_with_the_server_project_s_permissions:`Codex はサーバー上のプロジェクトと権限で実行されます。操作と変更を確認してください。`,drag_up_to_increase_height_down_to_decrease:`上にドラッグすると高く、下にドラッグすると低くなります。矢印キーでも調整できます`,resize_input_height:`入力欄の高さを調整`,pixels:`{{v0}} ピクセル`,paste_a_png_jpeg_webp_or_gif_image:`PNG、JPEG、WebP、GIF の画像を選択または貼り付けてください。`,the_image_is_empty_copy_and_paste_it:`画像が空です。選択または貼り付けをやり直してください。`,pixels_other:`{{v0}} ピクセル`,pixels_one:`{{v0}} ピクセル`,tap_to_send_enter_for_new_line:`送信ボタンで送信 · Enter で改行`,tap_to_run_command_enter_for_new_line:`タップしてコマンド実行 · Enter で改行`,add_images:`画像を追加`,retry_image:`再読み込み`,image_read_failed:`画像を読み込めませんでした。再試行するか、選び直してください。`,skills_title:`スキル`,skills_search:`スキルを検索`,skills_partial:`一部のスキルを検出できませんでした`,skills_no_match:`一致するスキルがありません`,skills_empty:`スキルが見つかりません`,skills_enabled:`利用可能`,skills_disabled:`無効`,skills_scope_repo:`プロジェクト`,skills_scope_user:`ユーザー`,skills_scope_system:`システム`,skills_scope_admin:`管理者`,skills_not_ready:`Codex の準備ができていません。再接続後に再試行してください。`,skills_offline:`オフラインです。スキルを読み込むには再接続してください。`,skills_selected:`選択したスキル`,skills_slash:`コマンドを実行する前にスキル参照を削除してください。`,skills_steer_unsupported:`Codex 0.164.0 では実行中のタスクに選択したスキルを確実に適用できません。完了後にこの下書きを送信してください。`,files_title:`ワークスペースのファイル`,files_type_path:`@ の後にパスを入力。空白には @" を使用。`,files_no_match:`一致するファイルがありません`,files_limited:`最大50件を表示。パスを絞り込んでください。`,files_offline:`オフラインです。再接続してファイルを検索してください。`,files_not_ready:`Codex の準備ができていないため検索できません。`,files_slash:`スラッシュコマンドを実行する前にファイル参照を削除してください。`,references_selected:`選択した参照`,files_limit:`1件のメッセージで参照できるファイルは32個までです。`},conversation:{activities:`{{v0}} 件のアクティビティ`,includes_automatic_reviews:`自動審査 {{v0}} 件を含む`,aborted:`中止済み`,activities_2:`{{v0}} 件のアクティビティ{{v1}}`,collapse:`折りたたむ`,expand:`展開`,compacting_context:`コンテキストを圧縮中…`,context_compacted:`コンテキストを圧縮しました`,context_compaction_failed:`コンテキストの圧縮に失敗しました`,context_compaction_interrupted:`コンテキストの圧縮を中断しました`,context_compaction_state_unknown:`コンテキスト圧縮の状態は不明です`,organizing_context_the_current_task_will_continue_when:`コンテキストを整理しています。完了すると現在のタスクを続けます。`,no_definite_completion_result_received_check_subsequent_task:`明確な完了結果がありません。後続タスクの状態を確認してください。`,context_compaction_status:`コンテキスト圧縮の状態`,output_exceeds_the_display_limit_and_has_been:`表示上限を超えたため出力の一部を省略しています。`,view_changes:`変更を表示`,activity_details:`アクティビティの詳細`,connection_details:`接続の詳細`,resynchronize:`再同期`,some_older_history_is_omitted_from_this_live:`転送量を抑えるため、リアルタイムのスナップショットでは古い履歴の一部を省略しています。`,retry_reading:`読み込みを再試行`,your_development_workspace:`あなたの開発ワークスペース`,connect_an_existing_server_directory_to_continue_sessions:`サーバー上の既存ディレクトリを接続して、セッションの再開や新しいタスクを始められます。`,projects_are_saved_on_the_server_so_you:`プロジェクトはサーバーに保存され、次回も続きから作業できます。`,describe_your_task_or_paste_an_image_question:`タスクの説明、画像、質問、エラーメッセージなどを入力してください。`,sending_starts_a_new_session_in:`送信すると {{v0}} で新しいセッションが始まります。`,live_execution:`実行状況をリアルタイム表示`,changes_by_turn:`ターンごとの変更プレビュー`,approve_and_follow_up_anytime:`いつでも承認や指示を追加`,turn:`ターン {{v0}}`,changes_in_this_turn:`このターンの変更`,view_file_and_line_changes:`ファイルと行の変更を表示`,back_to_latest:`最新の内容へ`,file_changes:`ファイルの変更`,reasoning:`思考過程`,tool_call:`ツール呼び出し`,web_search:`ウェブ検索`,execution_plan:`実行計画`,start_code_review:`コードレビューを開始`,code_review_results:`コードレビューの結果`,no_output_yet:`出力はまだありません`,file_changes_from_this_tool:`このツールによるファイル変更`,codex_reply:`Codex の返信`,codex_connection_status:`Codex の接続状態`,codex_reconnection_failed:`Codex の再接続に失敗`,reconnecting_to_the_model_service_codex_will_retry:`モデルサービスに再接続中です。Codex は自動で再試行し、復旧後にタスクを続行します。`,codex_stopped_retrying_check_the_server_network_and:`Codex は再試行を停止しました。サーバーのネットワークとモデルサービスを確認してください。実行中なら下の「中断」で終了し、指示を再送信してください。`,codex_stopped_retrying_check_the_server_network_and_2:`Codex は再試行を停止しました。サーバーのネットワークとモデルサービスを確認し、指示を再送信してください。`,showing_local_cache_sync_failed_some_history_may:`ローカルキャッシュを表示中 · 同期に失敗し、履歴が一部欠けている可能性があります。`,showing_local_cache_checking_latest_messages_and_task:`ローカルキャッシュを表示中 · 最新のメッセージとタスク状態を確認中…`,session_messages:`セッションのメッセージ`,loading_earlier_messages:`以前のメッセージを読み込み中…`,scroll_up_to_load_earlier_messages:`上にスクロールして以前のメッセージを読み込む`,retry_loading:`読み込みを再試行`,load_earlier_messages:`以前のメッセージを読み込む`,no_local_cache_here_yet:`ローカルキャッシュはまだありません`,continue_reading_local_history:`ローカル履歴を続けて読み込む`,add_a_project_start_working:`プロジェクトを追加して、作業を始めましょう。`,start_with_an_idea:`アイデアから始めましょう。`,the_current_project:`現在のプロジェクト`,turn_changes:`ターン {{v0}} の変更`,ready:`準備完了`,awaiting_approval:`承認待ち`,awaiting_answer:`回答待ち`,status_needs_checking:`状態の確認が必要`,your_instructions:`あなたの指示`,back_to_original_prompt:`元のプロンプトへ`,images:`画像 {{v0}} 枚`,user_prompt:`ユーザープロンプト`,completed_at:`完了日時`,turn_completion_details:`ターンの完了情報`,took:`所要時間 {{v0}}`,duration_unknown:`所要時間不明`,tps_unknown:`TPS 不明`,average_tps:`平均 {{v0}} TPS`,tps_cannot_be_calculated_without_complete_token_counts:`トークン統計または有効な所要時間がないため、TPS を計算できません。`,output_tokens_including_reasoning_total_turn_duration_in:`出力 {{v0}} トークン(推論を含む)÷ ターン全体の秒数。ツール呼び出し、承認、待機を含むため、通常はモデル生成のみの TPS より低くなります。`,completion_time_unknown:`完了時刻不明`,images_have_no_preview:`画像 {{v0}} 枚はプレビューがありません`,your_message:`あなたのメッセージ`,sent_image:`送信済み画像 {{v0}}`,less_than_1_second:`1 秒未満`,hours:`{{v0}} 時間`,min:`{{v0}} 分`,sec:`{{v0}} 秒`,reconnecting:`Codex 再接続中…`,activityState:`{{status}} {{count}}`,activities_other:`{{v0}} 件のアクティビティ`,activities_one:`{{v0}} 件のアクティビティ`,includes_automatic_reviews_other:`自動審査 {{v0}} 件を含む`,includes_automatic_reviews_one:`自動審査 {{v0}} 件を含む`,activities_2_other:`{{v0}} 件のアクティビティ{{v1}}`,activities_2_one:`{{v0}} 件のアクティビティ{{v1}}`,images_other:`画像 {{v0}} 枚`,images_one:`画像 {{v0}} 枚`,images_have_no_preview_other:`画像 {{v0}} 枚はプレビューがありません`,images_have_no_preview_one:`画像 {{v0}} 枚はプレビューがありません`,activityWithCommand:`{{label}}:{{command}}`,start_in_project:`送信すると「{{v0}}」で新しいセッションが始まります。`,start_without_project:`プロジェクトを選ばずに開始できます。送信すると専用の作業ディレクトリが割り当てられ、セッションとファイルは保持されます。`,copy_command_output:`コマンド出力をコピー`,copy_loaded_command_output:`このコマンドの読み込み済み出力をコピー`,command_output_copy_failed:`コピーに失敗しました。出力を選択して手動でコピーしてください。`,command_output_truncated:`出力は切り詰められています。読み込み済みの部分のみコピーできます。`,copied_truncated_command_output:`読み込み済み部分をコピーしました(出力は切り詰められています)`,model_busy_retrying:`モデルが混雑しています。再試行中`,model_busy_stopped:`モデルが混雑しています。再試行を停止しました`,model_busy_native_retry:`Codex はモデルの空きを待ち、現在のタスクを続行します。`,retry_attempt:`再試行 {{attempt}} / {{limit}}`,model_capacity_unavailable:`モデルの容量不足`,retry_progress:`再試行 {{attempt}}/{{limit}}`,retrying_short:`再試行中`,retry_stopped_short:`再試行を停止`,error_details:`エラーの詳細`,capacity_waiting:`モデルが混雑しています。再試行を待機中`,capacity_cancelled:`自動再試行をキャンセルしました`,capacity_in_seconds:`{{seconds}} 秒後に再試行`,capacity_dispatching:`再試行を開始中…`,capacity_stopped_progress:`このターンには出力またはツール操作があります。確認後、手動で続行してください。`,capacity_stopped_native:`Codex は再試行を停止しました。`,capacity_stopped_limit:`自動再試行の上限に達しました。`,capacity_stopped_error:`タスクまたは実行環境が変更されました。状態を確認してください。`,cancel_retry:`再試行をキャンセル`,retry_with_selected_model:`選択したモデルで再試行`,capacity_in_seconds_short:`{{seconds}} 秒後`,capacity_cancelled_short:`キャンセル済み`,capacity_limit_short:`上限に到達`,turn_tokens:`このターン {{tokens}} トークン`,turn_tokens_unknown:`ターンのトークン数は未報告`,submission_submitting:`送信中…`,submission_submitted:`送信済み`,submission_unknown:`送信結果の確認が必要`,submission_failed:`送信に失敗しました`},errors:{operation:`操作`,target:`対象`,operation_id:`操作 ID`,workspace:`ワークスペース`,execution_status:`実行状態`,check_session_history_the_session_list_and_the:`先に履歴、セッション一覧、元の実行環境を確認してください。削除するのはこのブラウザーの未確認記録のみで、タスクの停止や再送信は行いません。`,this_session_is_still_running_wait_or_interrupt:`まだ実行中です。終了を待つか通常の方法で中断してから確認してください。`,i_checked_history_and_the_original_environment_no:`履歴と元の実行環境を確認し、追加の確認は不要と判断しました`,clear_this_browser_s_pending_record:`このブラウザーの未確認記録を削除`,refresh_status_to_check_the_compatibility_confirmation_this:`互換性の確認結果を確認するには状態を更新してください。この記録はタスクの実行を示すものではなく、自動再送信もされません。`,this_task_is_still_running_use_the_interrupt:`タスクは実行中です。入力欄の中断ボタンを使用してください。`,checked_at_original_submission_status_preserved:`{{v0}} に確認済み。{{v1}}元の送信状態は保持されています。`,current_session:`現在のセッション`,operations_and_reconciliation:`この会話の送信`,browser_connection:`ブラウザー接続`,account_authentication:`アカウント認証`,compatibility:`互換性`,gateway_authentication:`アクセス認証`,supported_capabilities:`対応機能`,connecting:`接続中`,live_connection_healthy:`リアルタイム接続は正常です`,disconnected:`切断されました`,login_required_again:`再ログインが必要です`,accepted_by_gateway:`ゲートウェイが受け付けました`,awaiting_upstream_confirmation:`上流サービスの確認待ち`,submission_confirmed_by_upstream:`上流サービスが送信を確認しました`,submission_failed:`送信に失敗`,submission_result_needs_checking:`送信結果の確認が必要です`,finished:`終了済み`,end_not_confirmed:`終了未確認`,refresh_the_session_list_and_check_for_a:`一覧を更新し、元の履歴を含む新しいセッションの有無を確認してください。分岐結果の確認で元のタスクが停止したり状態が変わったりすることはありません。`,tasks_will_not_be_resent_automatically_check_history:`タスクは自動再送信されません。履歴と元の実行環境を確認してから結果を照合してください。`,i_checked_the_session_list_and_history_and:`一覧と履歴を確認し、この分岐の結果を検証しました`,i_verified_that_the_previous_execution_has_ended:`以前の実行が終了したことを確認しました`,submitting_reconciliation:`確認結果を送信中…`,reconcile_this_fork:`この分岐の結果を確認`,reconcile_and_release_previous_execution:`終了を確認して以前の占有を解除`,fork_result_checked_manually_original_task_state_unchanged:`分岐結果を手動確認済み。元のタスク状態は変わりません。`,previous_execution_end_checked_manually:`以前の実行の終了を手動確認済み。`,diagnostics_details:`診断の詳細`,refresh_status:`状態を更新`,current_session_information:`現在のセッション情報`,failed_to_load_session_details:`セッションの詳細を読み込めませんでした`,loading_session_details:`セッションの詳細を読み込み中…`,checking_session_history_and_submission_receipts:`セッション履歴と送信の受付結果を確認中…`,session_state_still_needs_checking_inspect_operation_records:`この会話の状態をまだ確認できません。再確認するか、対応する履歴を確認してください。`,check_submission_records_reconciliation_does_not_resend_tasks:`送信記録を確認してください。結果の確認でタスクは再送信されません。`,no_submissions_need_checking:`確認が必要な送信はありません。`,ready:`準備完了`,starting:`起動中`,unavailable:`利用不可`,available:`利用可能`,log_in_to_codex_on_the_server_computer:`サーバーのパソコンで Codex にログインしてください`,unconfirmed:`未確認`,version_verified:`バージョン検証済み`,version_unverified_continued_with_consent:`バージョン未検証 · 続行確認済み`,version_unverified_confirmation_pending:`バージョン未検証 · 確認待ち`,local_mode:`ローカルモード`,none:`なし`,your_login_expired_or_the_gateway_returned_a:`ログインが期限切れか、入口がログイン画面を返しました。再ログインして接続を復旧してください。`,request_failed:`リクエスト失敗({{v0}})`,submission_cannot_be_confirmed_record_not_found_404:`送信結果を確認できません。記録がありません(404 / OPERATION_NOT_FOUND)。未到達やサービスデータ変更の可能性がありますが、未実行の証明にはなりません。`,submission_cannot_be_confirmed:`送信結果を確認できません:{{v0}}`,unrecognized_server_message_check_version_compatibility:`認識できないサーバーメッセージです。バージョンの互換性を確認してください。`,could_not_parse_a_live_message_refresh_the:`リアルタイムメッセージを解析できません。セッションのスナップショットを更新してください。`,this_history_chunk_does_not_belong_to_the:`この履歴は現在のセッションに属していません。`,history_pagination_did_not_advance_retry_syncing_the:`履歴のページングが進みません。セッションの同期を再試行してください。`,httpFailure:`リクエスト失敗({{code}})。操作とサービスの状態を確認してから再試行してください。`,invalidName:`セッション名は空欄や改行不可、100 文字以内です。`,unsupportedSchema:`このフォーム形式は未対応です。技術的な詳細を確認するか、リクエストをキャンセルしてください。`,AUTH_REQUIRED:`ログインの有効期限が切れました。再ログインして再試行してください。`,ACTION_EXPIRED:`リクエストが失効しました。セッションを更新して再試行してください。`,ACTION_CONFLICT:`リクエストの状態が変わりました。セッションを確認してください。`,CODEX_UNAVAILABLE:`Codex は利用できません。状態の診断を確認してください。`,THREAD_IN_USE:`このセッションは別のプロセスで使用中です。解放後に再試行するか、履歴を分岐してください。`,THREAD_BUSY:`セッションが実行中か未処理のリクエストがあります。完了後に再試行してください。`,THREAD_ARCHIVED:`セッションはアーカイブ済みです。先に解除してください。`,THREAD_NOT_RESUMED:`セッションを再開してから再試行してください。`,THREAD_NOT_FOUND:`セッションが見つかりません。一覧を更新してください。`,PROJECT_UNAVAILABLE:`プロジェクトディレクトリを利用できません。サーバーのパスと権限を確認してください。`,INVALID_PROJECT_PATH:`プロジェクトのパスが無効です。サーバー上の絶対パスとアクセス権限を確認してください。`,WORK_DIR_UNAVAILABLE:`workDir が存在しない、ディレクトリではない、またはアクセスできません。サービスホスト上のディレクトリと権限を確認するか、別の絶対パスを入力してください。`,PROJECT_EXISTS:`このディレクトリはすでにプロジェクトとして追加されています。既存のプロジェクトを使用するか、別のディレクトリを選択してください。`,PROJECT_NOT_FOUND:`プロジェクトが見つかりません。一覧を更新してください。`,PROJECT_BUSY:`実行中のタスクまたは未確認の操作があります。先に処理してください。`,RESULT_UNKNOWN:`送信結果は未確認です。重複操作せず、結果を確認してください。`,OPERATION_BUSY:`操作を処理中です。受付結果をお待ちください。`,COMPATIBILITY_CONFIRMATION_REQUIRED:`先に現在の Codex の互換性の注意事項を確認してください。`,CONFIG_CONFLICT:`他のプロセスが設定を変更しました。再読み込みしてから保存してください。`,CONFIG_READ_ONLY:`現在の設定は読み取り専用のため保存できません。`,CONFIG_UNAVAILABLE:`設定にアクセスできません。ファイルとサービスの権限を確認してください。`,INVALID_CONFIG:`無効な設定です。各項目、ネットワーク、認証を確認してください。`,VALIDATION_FAILED:`入力内容が条件を満たしていません。確認して再試行してください。`,HISTORY_UNAVAILABLE:`セッション履歴を利用できません。再同期してください。`,UPDATE_MAINTENANCE:`サービスを更新中です。復旧後に再試行してください。`,PERMISSION_MODE_UNAVAILABLE:`現在の機能または管理ポリシーでは、この権限モードは利用できません。`,BODY_TOO_LARGE:`リクエストが大きすぎます。画像やテキストを減らして再試行してください。`,SHELL_BUSY:`Shell コマンドは実行中です。終了を待つか中断してください。`,SHELL_NOT_FOUND:`Shell の実行記録がありません。サーバーで結果を確認してください。`,IMAGE_NOT_FOUND:`画像ファイルが存在しないか削除されました。`,IMAGE_UNREADABLE:`画像ファイルを読み取れません。`,UNSUPPORTED_IMAGE_TYPE:`PNG、JPEG、WebP、GIF の画像のみ対応しています。`,UNAVAILABLE:`サービスを一時的に利用できません。後でもう一度お試しください。`,READ_FAILED:`現在セッション履歴を読み取れません。再試行してください。`,EXPORT_FAILED:`履歴全体を読み取れないため、ダウンロードは行いません。後で再試行してください。`,MARKDOWN_NOT_FOUND:`ファイルが存在しないか削除されました。`,JSON_NOT_FOUND:`ファイルが存在しないか削除されました。`,MARKDOWN_TOO_LARGE:`Markdown ファイルはプレビューの上限 2 MiB を超えています。`,JSON_TOO_LARGE:`JSON ファイルはプレビューの上限 2 MiB を超えています。`,INVALID_REPOSITORY:`HTTPS または SSH の Git リポジトリ URL を入力してください。ホストの既存の認証情報を使用し、パスワード、トークン、クエリパラメーターを含めないでください。`,CLONE_PARENT_UNAVAILABLE:`保存先の親ディレクトリが存在し、サービスに書き込みとアクセスの権限が必要です。`,CLONE_TARGET_EXISTS:`保存先が空の通常ディレクトリではありません。新しいディレクトリか空のディレクトリを選択してください。既存のファイルは上書きしません。`,CLONE_TARGET_UNAVAILABLE:`保存先を確認できません。サーバー上のパスとアクセス権限を確認してください。`,CLONE_IN_PROGRESS:`このディレクトリへのクローンが進行中です。完了を待つか、キャンセルしてから操作してください。`,CLONE_ID_CONFLICT:`この操作 ID は別のクローン要求ですでに使用されています。`,GATEWAY_STOPPING:`サービスを停止中です。しばらくしてから再試行してください。`,CLONE_LIMIT:`複数のリポジトリをクローン中です。完了を待ってから再試行してください。`,CLONE_NOT_FOUND:`クローンの記録が見つかりません。サービスの再起動後は保存先を確認し、既存のディレクトリとして追加するか、新しい空のディレクトリで再試行してください。`,WORKSPACE_UNAVAILABLE:`セッションの作業ディレクトリを利用できません。サーバー上のパスと権限を確認してから再試行してください。`,CLONE_GIT_MISSING:`サーバーに Git がインストールされていないか、サービスの PATH に含まれていません。Git を設定し、空のディレクトリで再試行してください。プロジェクトは追加されていません。保存先に残ったファイルを先に確認してください。`,CLONE_AUTH_FAILED:`Git の認証に失敗したか、リポジトリへのアクセス権がありません。サーバー上で Git の認証情報または SSH 鍵を設定してください。プロジェクトは追加されていません。保存先を確認し、新しい空のディレクトリで再試行してください。`,CLONE_HOST_KEY_FAILED:`SSH ホストの検証に失敗しました。サーバー上でリポジトリのホストを確認し、SSH の信頼設定を行ってください。プロジェクトは追加されていません。保存先を確認してから空のディレクトリで再試行してください。`,CLONE_REPOSITORY_UNAVAILABLE:`リポジトリが存在しないか、アクセスできません。URL とサーバー上の Git アクセス権を確認してください。プロジェクトは追加されていません。保存先を確認してから空のディレクトリで再試行してください。`,CLONE_NETWORK_FAILED:`Git リポジトリに接続できません。サーバーのネットワーク、プロキシ、証明書を確認してください。プロジェクトは追加されていません。保存先を確認してから空のディレクトリで再試行してください。`,CLONE_TARGET_NOT_EMPTY:`保存先にファイルがあるため Git は停止しました。既存のファイルは上書きも削除もされていません。プロジェクトは追加されていません。保存先を確認し、新しい空のディレクトリで再試行してください。`,CLONE_DISK_FULL:`サーバーのディスク容量が不足しています。空き容量を確保し、残ったファイルを確認してから、新しい空のディレクトリで再試行してください。プロジェクトは追加されていません。`,CLONE_FAILED:`Git のクローンに失敗しました。リポジトリの URL、サーバーの認証情報、ディレクトリ権限、ディスク容量を確認してください。プロジェクトは追加されていません。残ったファイルを確認し、新しい空のディレクトリで再試行してください。`,CLONE_REGISTRATION_FAILED:`プロジェクトの登録に失敗しました。クローン済みのファイルは保存先に保持されています。再クローンせずに追加を再試行するか、「既存のディレクトリ」から追加してください。`,CLONE_TIMED_OUT:`クローンが 30 分を超えたため停止しました。プロジェクトの追加もファイルの削除も行っていません。保存先を確認し、新しい空のディレクトリで再試行してください。`,CLONE_CANCELLED:`プロジェクトの追加もファイルの削除も行っていません。保存先にファイルが残っている場合があります。確認してから新しい空のディレクトリで再試行してください。`,BACKUP_BUSY:`バックアップが進行中です。完了までお待ちください。`,BACKUP_UNAVAILABLE:`バックアップを利用できません。サービス設定と技術的な詳細を確認してください。`,BACKUP_FAILED:`バックアップに失敗しました。設定、ディレクトリの権限、ディスク容量を確認して再試行してください。`,BACKUP_INVALID:`バックアップは破損、不完全、または互換性がないため復元できません。`,BACKUP_TIMEOUT:`安全な状態になるまでの待機がタイムアウトしました。実行中のタスクの完了後に再試行してください。`,BACKUP_MAINTENANCE:`バックアップ中です。完了後に再試行してください。`,PROJECT_ORDER_CONFLICT:`プロジェクト一覧が変更されました。更新してから再度並べ替えてください。`,TEXT_NOT_FOUND:`テキストファイルが存在しないか、削除されました。`,TEXT_TOO_LARGE:`テキストファイルがプレビュー上限の 2 MiB を超えています。`,TEXT_UNREADABLE:`テキストファイルを読み取れません。アクセス権を確認してください。`,INVALID_TEXT_CONTENT:`有効な UTF-8 テキストではないか、バイナリデータが含まれています。`,UNSUPPORTED_TEXT_TYPE:`このファイル形式はテキストプレビューに対応していません。`,INVALID_TEXT_PATH:`テキストファイルのパスが無効です。`,TEXT_OUTSIDE_PROJECT:`このセッションのプロジェクトまたはサーバーの一時ディレクトリ内のファイルのみプレビューできます。`,TEXT_CHANGED:`テキストファイルが変更されました。プレビューを開き直してください。`,TEXT_NOT_FILE:`テキストファイルのパスは通常のファイルではありません。`,AGENTS_EXISTS:`AGENTS.md は既に存在します。既存の内容を保持しました。`,AGENTS_CHECK_FAILED:`AGENTS.md を確認できないため、初期化を送信しませんでした。`,GIT_NOT_REPOSITORY:`現在の作業領域は Git リポジトリではありません。`,GIT_UNAVAILABLE:`サーバーで Git を利用できません。`,GIT_DIFF_FAILED:`変更を読み込めません。作業ディレクトリを確認して再試行してください。`,DENIAL_EXPIRED:`拒否記録は失効しています。現在の会話の一覧を開き直してください。`,RECAP_BUSY:`この会話の要約を生成中です。`,RECAP_FAILED:`要約を完了できませんでした。元の会話は変更されていません。`,GOAL_UNAVAILABLE:`現在の Codex では目標が無効か、利用できません。`,GOAL_CONFLICT:`目標が変更されました。現在の状態を読み直してください。`,GOAL_BUSY:`別の目標更新を処理中です。応答をお待ちください。`,SKILL_UNAVAILABLE:`選択したスキルは現在のワークスペースでは利用できません。更新して選び直してください。`,SKILLS_READ_FAILED:`スキルを読み込めませんでした。更新して再試行してください。`,SKILL_STEER_UNSUPPORTED:`Codex 0.164.0 では実行中のタスクに選択したスキルを確実に適用できません。完了後にこの下書きを送信してください。`,QUESTION_EXPIRED:`この質問は現在利用できません。セッションを更新してください。`,QUESTION_BUSY:`回答を送信中、または受領確認待ちです。結果を確認してから続行してください。`,QUESTION_CONFLICT:`この質問は処理済み、または送信中です。セッションを更新してください。`,FILE_REFERENCE_OUTSIDE:`選択したファイルは現在のワークスペース外です。選択し直してください。`,FILE_REFERENCE_NOT_FOUND:`ファイルが移動または削除されました。選択し直してください。`,FILE_REFERENCE_UNREADABLE:`ファイルを読み取れません。権限を確認してください。`,FILE_REFERENCE_NOT_FILE:`ワークスペース内の通常のファイルを選択してください。`,FILE_REFERENCE_CHANGED:`ファイルまたはワークスペースが変更されました。選択し直してください。`,FILE_SEARCH_BUSY:`ファイル検索が混雑しています。しばらくして再試行してください。`,FILE_SEARCH_TIMEOUT:`ファイル検索がタイムアウトしました。パスを絞って再試行してください。`,FILE_SEARCH_CANCELLED:`ファイル検索がキャンセルされました。`,recovery_operation_send:`メッセージ送信`,recovery_operation_steer:`メッセージ追加`,recovery_operation_resolve:`承認・入力への回答`,recovery_operation_fork:`会話を複製`,recovery_operation_create:`会話を作成`,recovery_operation_resume:`会話を再開`,recovery_operation_archive:`会話をアーカイブ`,recovery_operation_rename:`会話名を変更`,recovery_operation_compact:`コンテキスト圧縮`,recovery_operation_review:`レビュー開始`,recovery_operation_interrupt:`タスク停止`,recovery_operation_settings:`設定更新`,recovery_operation_other:`操作の送信`,recovery_missing:`サーバーにこの送信記録がなく、結果を確認できません。`,recovery_unreachable:`現在この送信を確認できません。接続を復旧して再試行してください。`,recovery_execution_unknown:`このタスクの終了を確認できる記録がありません。`,recovery_receipt_unknown:`この操作の確定した結果をまだ受信していません。`,recovery_thread_unavailable:`会話名を取得できません`,recovery_project_unavailable:`プロジェクト名を取得できません`,recovery_running:`この会話のタスクは実行中です。会話を開いて確認または停止してください。`,recovery_clear_local:`このページの制限を解除`,recovery_restore_session:`会話の操作を復旧`,recovery_view_history:`対応する履歴を表示`,recovery_open_thread:`会話を開く`,recovery_check_again:`再確認`,recovery_go_to_thread:`対応する会話を開き、履歴を確認してこの送信を処理してください。`,recovery_retry_connection:`確認が復旧するまで制限は保持され、自動で再送信されません。`,recovery_action_owner_missing:`古い記録に会話の情報がありません。承認がある会話で処理結果を確認してください。`,recovery_clear_effect:`現在のブラウザーのこの未確認記録だけを削除します。タスクの停止や再送信は行いません。元の操作は実行済みの可能性があり、再送信すると重複実行される場合があります。`,recovery_fork_effect:`会話一覧と履歴で複製の結果を確認してください。この複製の確認待ちだけを終了します。元のタスクの停止や再複製は行いません。`,recovery_restore_effect:`対応する履歴を確認し、前のタスクが終了したことを確かめてください。続行するとその古い実行枠だけを解除します。停止や再送信は行わず、サーバーが実行中と判断したタスクは解除できません。`,recovery_confirm_ended:`前のタスクの終了を確認して復旧`,recovery_other_threads:`他の会話と操作`,recovery_handle_submission:`復旧方法を表示`,recovery_responding:`この承認・入力への回答は確認待ちです。重複して送信することはできません。`,CLONE_INTERRUPTED:`サービスが停止または再起動したため、結果を確認できません。自動再試行やファイル削除は行いません。保存先を確認し、完全な場合のみ既存のディレクトリとして追加してください。それ以外は新しい空のディレクトリで再試行してください。`},notifications:{browser_notifications:`ブラウザー通知`,send_test_notification:`テスト通知を送信`,background_notifications_and_sleeping_tabs:`バックグラウンド通知とタブの休止`,keep_this_page_and_browser_open_background_tabs:`通知にはページのオンライン接続が必要です。ページとブラウザーを起動したままにしてください。Web Push は使用しないため、ページの凍結、破棄、終了中は通知が届かない場合があります。復帰後に結果と未読表示を同期しますが、過去の通知は再送しません。`,keep_this_site_active:`このサイトを常にアクティブにする方法`,chrome_settings_performance_always_keep_these_sites_active:`Chrome:設定 → パフォーマンス → 常にアクティブにするサイトに、このサイトを追加してください。`,settings_instructions:`設定手順`,edge_settings_system_and_performance_performance_always_keep:`Edge:設定 → システムとパフォーマンス → パフォーマンスで、このサイトを常にアクティブにする、またはスリープさせないサイトに追加してください。`,configure_this_manually_in_the_browser_names_may:`ブラウザーで手動設定が必要です。項目名はバージョンにより異なります。`,permission_not_granted:`未許可`,permission_granted:`許可済み`,blocked_by_browser:`ブラウザーがブロック`,unsupported_browser:`ブラウザーが未対応`,secure_connection_required:`安全な接続が必要です`,close_notification_settings:`通知設定を閉じる`,waiting_for_permission:`許可を待機中…`,disable_notifications:`通知をオフ`,enable_notifications:`通知をオン`,allow_notifications_in_the_browser_s_site_settings:`ブラウザーのサイト設定で通知を許可してから、ここでオンにしてください。`,use_https_localhost_or_127_0_0_1:`HTTPS でアクセスしてください。ローカルでは localhost または 127.0.0.1 を使用できます。`,use_a_desktop_browser_that_supports_system_notifications:`システム通知対応のブラウザーを使用してください。ページ内の状態と未読表示は引き続き利用できます。`,permission_is_requested_only_when_you_click_enable:`「オン」をクリックしたときのみ許可を求めます。この設定は同じブラウザーのこのサイトのタブ間で共有されます。`,cannot_save_notification_settings_allow_browser_storage_for:`通知設定を保存できません。このサイトのストレージ利用を許可して再試行してください。`,cannot_enable_notifications_check_notification_permissions_and_site:`通知をオンにできません。通知の許可とサイトのストレージ設定を確認してください。`,the_browser_could_not_show_notifications_check_browser:`ブラウザーが通知を表示できません。ブラウザーとシステムの設定を確認してください。ページ内の状態と未読表示は利用できます。`,cannot_show_notifications_or_save_deduplication_records_check:`通知表示または重複防止記録の保存ができません。通知の許可とストレージを確認してください。ページ内の状態と未読表示は利用できます。`,test_notification:`テスト通知`,this_browser_cannot_show_system_notifications_check_browser:`このブラウザーはシステム通知を表示できません。ブラウザーとシステムの設定を確認してください。`,notification_records_are_in_use_by_another_page:`通知記録が他のページで使用されています。古いページを閉じて再試行してください。`,agentCompleted:`エージェントの作業が完了しました`,agentFailed:`エージェントの作業が失敗しました`,agentInterrupted:`エージェントの作業を中断しました`,events_description:`作業の終了、回答や承認が必要なときにプロジェクトと会話を通知します。クリックすると会話を開き、未処理のリクエストに移動します。`,test_description:`作業が終了したときや、回答・承認が必要なときに通知します。`,answer_required:`Agent への回答が必要です`,approval_required:`Agent の承認が必要です`,preparing_delivery:`準備中…`,delivery_unavailable:`送信できません`,delivery_error_initialization:`通知サービスを初期化できませんでした。ページを再読み込みするか、通知を再度有効にしてください。`,delivery_error_unsupported:`このブラウザーでは通知送信 API を利用できません。システム通知対応のブラウザーを使用してください。`,delivery_error_permission:`通知の許可が取り消されました。ブラウザーのサイト設定で通知を再度許可してください。`,delivery_error_delivery:`通知を送信できませんでした。ブラウザーとシステムの通知設定を確認し、再試行してください。ページ内の状態と未読表示は引き続き利用できます。`,test_submitted:`ブラウザーに通知を送信しました。システムの通知一覧を確認してください。`},preview:{a_change_snapshot_from_codex_containing_patches_in:`Codex によるこの範囲の変更スナップショットです。ワークスペース全体の未コミット変更ではありません。`,unable_to_load_changes:`変更を読み込めません`,loading_changes:`変更を読み込み中…`,this_patch_is_truncated_only_received_content_is:`パッチが途中で切れています。受信した部分のみ表示しています。`,changed_files:`変更されたファイル`,original_path:`元のパス:{{v0}}`,wrap_lines:`折り返し表示`,hunks:`{{v0}} 個の変更ブロック`,this_patch_is_incomplete_or_malformed_line_numbers:`パッチが不完全か形式に誤りがあります。行番号と統計は受信した部分のみを対象としています。`,binary_file_changed:`バイナリファイルの変更`,line_by_line_preview_is_unavailable_for_this:`このファイルは行単位でプレビューできません。`,unable_to_read_change_content:`変更内容を読み取れません`,the_content_is_not_a_recognized_unified_diff:`受信内容は unified diff として認識できません。Codex のパッチ更新を待つか、プレビューを開き直してください。`,old_line:`変更前の行`,new_line:`変更後の行`,code:`コード`,hunk:`変更ブロック {{v0}}`,no_line_changes:`行単位の変更はありません`,this_patch_changes_only_metadata_paths_or_empty:`このパッチは属性、パス、空ファイルのみの変更で、表示できるコード行はありません。`,no_file_changes_yet:`ファイルの変更はまだありません`,no_previewable_patch_received_in_this_scope_yet:`この範囲でプレビュー可能なパッチはまだありません。`,lines_added_lines_removed:`{{v0}} 行追加、{{v1}} 行削除`,reading_changes_timed_out_please_retry:`変更の読み込みがタイムアウトしました。再試行してください。`,changes_from_this_turn_are_no_longer_in:`このターンの変更は読み込み可能な履歴にありません。`,changes_from_this_tool_are_no_longer_in:`このツールの変更は読み込み可能な履歴にありません。`,code_change_preview:`コード変更プレビュー`,code_changes:`コードの変更`,read_only:`{{v0}} · 読み取り専用`,change_hunk_navigation:`変更ブロックの移動`,previous_change_hunk:`前の変更ブロック`,next_change_hunk:`次の変更ブロック`,change_content:`変更内容`,line_changes_in:`{{v0}} の行変更`,change_type:`変更の種類`,context:`コンテキスト`,note:`注記`,copy_source:`原文をコピー`,preview:`プレビュー`,source:`原文`,cannot_preview_this_file:`このファイルはプレビューできません`,loading_file:`ファイルを読み込み中…`,file_loading_timed_out_please_retry:`ファイルの読み込みがタイムアウトしました。再試行してください。`,copied_source:`{{v0}} の原文をコピーしました`,copy_failed_select_and_copy_the_source_manually:`コピーできませんでした。原文を選択して手動でコピーしてください。`,file_preview:`{{v0}} ファイルのプレビュー`,close_file_preview:`ファイルプレビューを閉じる`,file:`{{v0}} ファイル`,file_display_mode:`ファイルの表示方法`,file_content:`ファイルの内容`,source_2:`{{v0}} の原文`,close:`{{v0}} を閉じる`,open_original_image:`元の画像を開く`,retry_loading_image:`画像の読み込みを再試行`,loading_image:`画像を読み込み中…`,image_url_unavailable:`画像の URL は利用できません。`,fit_to_window:`ウィンドウに合わせる`,to_zoom_esc_to_close:`+ / − で拡大縮小 · Esc で閉じる`,image_loading_timed_out_please_retry:`画像の読み込みがタイムアウトしました。再試行してください。`,image_failed_to_load_it_may_have_expired:`画像を読み込めません。期限切れ、アクセス制限、接続の問題が考えられます。`,cannot_decode_image_the_file_may_be_damaged:`画像をデコードできません。ファイルの破損や未対応の形式が考えられます。`,click_to_enlarge_image:`クリックして画像を拡大`,image_preview:`画像プレビュー`,close_image_preview:`画像プレビューを閉じる`,image_zoom:`画像の拡大縮小`,zoom_out:`縮小`,image_zoom_level:`画像の表示倍率`,zoom_in:`拡大`,image_viewing_area:`画像の表示領域`,original_image_link:`元の画像へのリンク`,original_path_2:`元のパス`,copy_failed_select_and_copy_the_code_manually:`コピーできませんでした。コードを選択して手動でコピーしてください。`,copy_code_block:`コードブロックをコピー`,code_block:`コードブロック`,preview_file:`ファイルをプレビュー:{{v0}}`,table:`表`,modified:`変更`,renamed:`名前変更`,unknown_file:`不明なファイル`,no_newline_at_end_of_file:`ファイル末尾に改行なし`,output_truncated:`[出力を省略`,content_truncated:`[内容を省略`,invalid_json_source_preserved_check_quotes_commas_and:`JSON が無効です。原文は保持されています。引用符、カンマ、括弧を確認してください。`,json_is_too_deep_or_large_to_format:`JSON が深すぎるか大きすぎて整形できません。閲覧用の原文は保持されています。`,cannot_read_image_check_login_and_file_access:`画像を読み取れません。ログイン状態とファイルのアクセス権を確認してください。`,image_loading_failed_please_retry:`画像の読み込みに失敗しました({{v0}})。再試行してください。`,your_login_may_have_expired_log_in_again:`ログインが期限切れの可能性があります。再ログインして画像をプレビューしてください。`,the_server_did_not_return_a_supported_image:`サーバーが対応する画像形式を返しませんでした。`,hunks_other:`{{v0}} 個の変更ブロック`,hunks_one:`{{v0}} 個の変更ブロック`,new_files_in_this_snapshot:`このスナップショット:{{v0}} ファイル`,new_choose_expand_changes_to_view_it:`{{v0}}「変更を展開」で表示できます。`,new_collapse_changes:`変更を折りたたむ`,new_hunks:`{{v0}} / {{v1}} 変更ブロック`,new_changed_file_list:`変更ファイル一覧`,new_expand_changes:`変更を展開`,new_changes_were_collapsed_manually:`変更は手動で折りたたまれています。`,new_changes_in:`{{v0}} の変更内容`,new_copy_source:`ソースをコピー`,new_receiving_mermaid_source_the_diagram_appears_when:`Mermaid ソースを受信中です。コードブロックが完成すると図を表示します。`,new_cannot_render_this_mermaid_diagram_check_the:`Mermaid 図を描画できません。構文を確認するか、ソースをエディターにコピーして修正してください。`,new_rendering_mermaid_diagram:`Mermaid 図を描画中…`,new_mermaid_source_copied:`Mermaid ソースをコピーしました`,new_copy_failed_select_and_copy_the_source:`コピーできませんでした。ソースを選択して手動でコピーしてください。`,new_view_diagram:`図を表示`,new_view_source:`ソースを表示`,new_fit_width:`幅に合わせる`,new_actual_size:`実際のサイズ`,new_mermaid_source:`Mermaid ソース`,new_mermaid_diagram_region:`Mermaid 図の表示領域`,new_mermaid_diagram:`Mermaid 図`,new_this_file_has_lines_exceeding_300_collapsed:`このファイルは {{v0}} 行あり、300 行を超えるため初期状態では折りたたまれます。`,new_this_file_exceeds_50_000_characters_collapsed:`このファイルは 50,000 文字を超えるため初期状態では折りたたまれます。`,empty_file:`このファイルは空です。`,dev_title:`開発プレビュー`,dev_preview:`プレビュー`,dev_enable:`開発プレビュープロキシを有効にする`,dev_full:`すべてのリクエストを許可 · 高リスク`,dev_risk:`登録済みサービスの業務 API、書き込み、任意の応答形式、業務 WebSocket を許可します。認証、プロセス確認、ブラウザーの隔離は維持されます。`,dev_open:`プレビューを開く`,dev_empty:`このセッションに所有者を確認できた開発サービスはありません。`,dev_running:`実行中`,dev_withdrawn:`利用不可`,dev_failed:`プレビューのリクエストに失敗しました。接続を確認して再試行し、新しいタブを許可してください。`,dev_reopen:`設定を適用しました。新しいポリシーでプレビューを開き直してください。`,dev_inspection_failed:`プロセスの確認に失敗したため、プレビューへのアクセスを取り消しました。`,dev_unavailable:`このプラットフォームではサービス検出を利用できません。`,dev_workspace:`セッションのワークスペース`},settings:{currently_running:`実行中:{{v0}}`,configure_the_computer_running_this_service_restart_it:`このサービスを実行するパソコンの設定です。保存した変更は手動再起動で反映されます。`,configuration_file:`設定ファイル`,saving_does_not_restart_the_service_or_interrupt:`保存してもサービスの再起動やタスクの中断は行いません。`,reloading_discards_current_edits_and_loads_the_latest:`再読み込みすると編集中の内容を破棄し、最新のファイル内容を読み込みます。`,discard_edits_and_reload:`編集を破棄して再読み込み`,discard_unsaved_changes:`未保存の変更を破棄しますか?`,the_configuration_file_has_not_been_changed:`設定ファイルは変更されていません。`,keep_editing:`編集を続ける`,discard_changes_and_close:`変更を破棄して閉じる`,keep_the_current_data_directory_and_initial_project:`現在のデータディレクトリとプロジェクトの初期設定を保持します。{{v0}}`,saved:`保存済み:{{v0}}`,change_to:`変更後:{{v0}}`,no_differences_from_the_saved_configuration:`保存済み設定との差分はありません。`,view_full_json:`JSON 全体を表示`,back_to_editing:`編集に戻る`,apply_to_form:`フォームに適用`,import_configuration:`設定をインポート`,export_saved_configuration:`保存済み設定をエクスポート`,import_updates_service_settings_only_export_includes_initial:`インポートはサービス設定のみを更新します。エクスポートにはファイル内のプロジェクト初期設定が含まれますが、登録済みプロジェクト、セッション、データベース、ログイン情報は含まれません。`,network_and_access:`ネットワークとアクセス`,local_tailscale_local:`ローカル / Tailscale(local)`,local_mode_listens_only_on_loopback_addresses_use:`ローカルモードはループバックのみで待ち受けます。インターネット公開には Cloudflare Access を使用してください。`,data_and_projects:`データとプロジェクト`,work_dir:`プロジェクトの基準ディレクトリ(workDir、任意)`,work_dir_help:`サービスホスト上の絶対パスを指定します。保存後の追加とクローンにすぐ適用されます。空欄の場合は絶対パスが必要です。既存のプロジェクトは移動しません。`,service_settings_apply_help:`サービスを実行するコンピューターを設定します。workDir は保存時に適用され、他の設定は再起動が必要です。`,data_directory_read_only:`データディレクトリ(読み取り専用)`,current_runtime_directory:`現在の実行ディレクトリ`,changing_the_data_directory_requires_database_migration_while:`データディレクトリの変更には、サービス停止中のデータベース移行が必要です。プロジェクトはサイドバーで管理してください。ここでは保存済みのプロジェクト管理結果を上書きしません。`,advanced_settings:`詳細設定`,operation_failed_please_retry:`操作に失敗しました。再試行してください。`,configuration_files_cannot_exceed_256_kib:`設定ファイルは 256 KiB 以下にしてください。`,cannot_parse_json_check_the_file_format:`JSON を解析できません。ファイル形式を確認してください。`,exported_saved_configuration_from_the_file_unsaved_edits:`ファイルの保存済み設定をエクスポートしました。未保存の編集は含まれません。`,not_set:`未設定`,close_service_settings:`サービス設定を閉じる`,loading_configuration:`設定を読み込み中…`,reload_configuration:`設定を再読み込み`,saved_restart_to_apply:`保存済み・再起動後に反映`,saved_and_running_configurations_match:`保存済み設定と実行中の設定は一致しています`,confirm_discarding_edits:`編集の破棄を確認`,import_configuration_preview:`インポート設定のプレビュー`,save_configuration_preview:`保存設定のプレビュー`,preview_imported_configuration:`インポート設定をプレビュー`,confirm_configuration_changes:`設定変更を確認`,applying_to_the_form_replaces_editable_settings_but:`フォームに適用すると編集可能な設定を置き換えます。確認して保存するまでファイルは変更されません。`,these_changes_apply_after_restarting_the_service_confirm:`以下の変更はサービス再起動後に反映されます。新しいアクセス先と認証設定を確認してください。`,ignored_from_the_imported_file:`インポートファイル内の {{v0}} を無視しました。`,imported_configuration_applied_to_form_not_saved_yet:`インポート設定をフォームに適用しました。まだ保存されていません。`,configuration_saved_restart_the_service_manually_when_convenient:`設定を保存しました。都合のよいときにサービスを手動で再起動してください。`,configuration_saved_and_matches_the_running_configuration:`設定を保存しました。実行中の設定と一致しています。`,confirm_save:`確認して保存`,choose_configuration_file:`設定ファイルを選択`,unsaved_changes:`未保存の変更あり`,no_unsaved_changes:`未保存の変更なし`,validating:`検証中…`,review_changes:`変更を確認`,keep_current_settings:`{{v0}}(現在の設定を保持)`,current_mode:`現在のモード:{{v0}}{{v1}}`,permission_scope:`権限の範囲`,approval_policy:`承認ポリシー`,permission_profile:`権限プロファイル`,writable_directories:`書き込み可能なディレクトリ`,temporary_directory:`一時ディレクトリ`,current_network_permission:`現在のネットワーク権限:{{v0}}`,approval_reviewer:`承認の実行者:{{v0}}`,changes_apply_only_to_this_via_subject_to:`変更はこの{{v0}}にのみ適用され、{{v1}}のリクエスト後に Codex が確定します。グローバル設定は変更しません。`,keep_actual_settings_permissions_are_unchanged_until_another:`実際の設定を保持します。他のモードを選ぶまで権限を変更しません。`,pending_selection_is_currently_unavailable:`適用待ちの選択は現在利用できません:{{v0}}`,permission_mode:`権限モード:{{v0}}{{v1}}`,pending:`(適用待ち)`,permission_mode_2:`権限モード`,pending_2:`適用待ち`,write_within_project:`プロジェクト内で書き込み`,full_access:`フルアクセス`,external_sandbox:`外部サンドボックス`,approval_for_untrusted_operations:`信頼されない操作は承認が必要`,approval_requested_by_codex:`Codex が承認を要求`,never_request_approval:`承認を要求しない`,custom_approval_rules:`カスタム承認ルール`,pending_3:`;適用待ち:{{v0}}`,inherited:`(継承 {{v0}})`,no_codex_sandbox_restrictions:`Codex のサンドボックス制限なし`,writing_requires_additional_approval:`書き込みには追加の承認が必要`,project_directory:`プロジェクトディレクトリ`,excluded:`除外`,allowed:`許可`,restricted:`制限あり`,session_s_subsequent_operations:`セッションの後続操作`,project_s_new_sessions:`プロジェクトの新規セッション`,starting_the_next_task:`次のタスク開始時`,creating_a_new_session:`新規セッション作成時`,current:`{{v0}} · 現在 {{v1}} / {{v2}}{{v3}}{{v4}}`,save_defaults_again:`既定値を再保存`,retry:`再試行`,reasoning_effort:`推論の強度:{{v0}}`,pending_current:`適用待ち · 現在 {{v0}}`,current_session_settings:`現在のセッション設定`,saved_session_settings:`保存済みセッション設定`,new_session_defaults:`新規セッションの既定値`,runtime_settings:`実行設定`,applies_when_creating_a_session:`新規セッション作成時に反映`,applies_to_the_next_task:`次のタスクに反映`,applies_when_sending_after_resume_or_forking:`再開後の送信または分岐時に反映`,pending_speed_current:` · 速度の適用待ち:{{v0}};現在:{{v1}}`,pending_permissions_current:` · 権限の適用待ち:{{v0}};現在:{{v1}}`,undo_session_changes:`このセッションの変更を取り消す`,undo_changes:`変更を取り消す`,saving_default_model_and_reasoning_effort:`モデルと推論の強度の既定値を保存中…`,saved_as_codex_defaults_for_new_sessions:`Codex の新規セッションの既定値として保存済み`,defaults_saved_but_overridden_by_higher_priority_configuration:`既定値を保存しましたが、上位の設定で上書きされています。新規セッションには実際の設定が適用されます。`,could_not_confirm_defaults_were_saved_pending_selections:`既定値の保存を確認できません。適用待ちの選択は保持されています。送信結果を確認してください。`,no_project_selected:`プロジェクト未選択`,model:`モデル:{{v0}}`,model_2:`モデル`,reasoning_effort_2:`推論の強度`,turn_fast_off:`Fast をオフ`,turn_fast_on_faster_replies_increased_usage:`Fast をオン · 応答が速くなり、使用量が増えます`,fast_is_unavailable_for_this_model:`このモデルでは Fast を利用できません`,fast_mode:`Fast モード`,"0_0009765625_mib_minimum_1_kib":`0.0009765625~{{v0}} MiB(最小 1 KiB)`,range_default_mib_decimals_must_correspond_to_whole:`範囲 {{v0}}、既定 {{v1}} MiB。小数は整数バイトに正確に対応する値を指定してください。1 MiB = 1024 × 1024 バイト。`,listen_address:`待ち受けアドレス`,use_127_0_0_1_localhost_or_1:`ローカルモードでは 127.0.0.1、localhost、::1 を使用してください。`,listen_port:`待ち受けポート`,range_1_65535_use_the_new_port_after:`範囲 1~65535。変更後は新しいポートでアクセスしてください。`,allowed_origins:`許可するアクセス元`,one_complete_http_s_origin_per_line_scheme:`1 行に 1 つ、プロトコル・ホスト・ポートのみの完全な HTTP(S) オリジンを入力してください。`,access_team_domain:`Access チームのドメイン`,for_example_https_your_team_cloudflareaccess_com:`例:https://your-team.cloudflareaccess.com`,access_application_aud:`Access アプリの AUD`,enter_the_cloudflare_access_application_s_audience:`Cloudflare Access アプリの Audience を入力してください。`,codex_executable:`Codex 実行ファイル`,enter_codex_or_an_absolute_path_on_the:`codex またはサーバー上の絶対パスを入力できます。`,codex_home_optional:`CODEX_HOME(任意)`,leave_blank_to_inherit_the_service_environment_or:`空欄の場合はサービスの環境を継承します。指定する場合はサーバー上の絶対パスが必要です。`,request_timeout_milliseconds:`リクエストのタイムアウト(ミリ秒)`,range_100_300000_default_30000:`範囲 100~300000、既定 30000。`,codex_message_line_limit:`Codex の 1 行のメッセージ上限`,event_buffer_limit:`イベントバッファー上限`,websocket_buffer_limit:`WebSocket バッファー上限`,item_content_limit:`項目ごとの内容上限`,development_origins:`開発環境のオリジン`,one_local_http_s_origin_per_line_used:`1 行に 1 つのローカル HTTP(S) オリジンを指定します。--dev モードのみで使用します。`,enter_a_value_in_mib:`MiB の値を入力してください。`,enter_a_valid_mib_value_decimals_are_allowed:`有効な MiB 値を入力してください。小数も使用できます。`,range:`範囲:{{v0}}。`,the_mib_value_must_correspond_to_whole_bytes:`MiB 値は整数バイトに正確に対応する必要があります。自動丸めは行わないため、小数を調整してください。`,custom:`カスタム · {{v0}}`,custom_2:`カスタム`,cannot_determine_mode:`モードを判定できません`,fast_off:`Fast オフ`,fast_on:`Fast オン`,permission_ask:`承認を求める`,permission_ask_description:`プロジェクト内の読み書き・コマンド実行が可能です。ネットワークや範囲外の操作はあなたが承認します。`,"permission_auto-review":`自動承認審査`,"permission_auto-review_description":`承認を求めるモードと同じ権限範囲です。対象のリクエストは自動審査します。`,"permission_full-access":`フルアクセス`,"permission_full-access_description":`プロジェクト外のファイルとネットワークにアクセスできます。Codex のサンドボックス制限や承認はありません。`,"permission_read-only":`読み取り専用`,"permission_read-only_description":`ファイルを読み取れます。書き込みやネットワークへのアクセスには承認が必要です。`,permission_unavailable:`現在の Codex の機能または管理ポリシーでは、このモードは利用できません。`,missingCapabilities:`権限モードの利用条件をまだ取得していません。`,profileRestricted:`管理ポリシーにより、この権限プロファイルは許可されていません。`,scopeRestricted:`管理ポリシーにより、この権限範囲は許可されていません。`,policyRestricted:`管理ポリシーにより、この承認ポリシーは許可されていません。`,reviewerMissing:`審査者の利用条件をまだ取得していません。`,reviewerRestricted:`管理ポリシーにより、この審査者は許可されていません。`,autoReviewDisabled:`現在の Codex では自動審査(guardian_approval)が有効ではありません。`,autoReviewRequired:`管理ポリシーにより、このモデルには自動審査が必要です。`,fieldUnit:`{{label}}(MiB)`,fieldError:`{{label}}:{{reason}}`,temporaryDirectories:`TMPDIR:{{tmpdir}};/tmp:{{slashTmp}}`,model_settings:`モデル設定`,close_model_settings:`モデル設定を閉じる`,next_turn:`次のターンで適用`,live_updating:`実行中のタスクを更新中…`,live_fast_applied:`Fast:後続のモデルステップに反映`,live_reviewer_applied:`承認担当:後続ステップに反映。保留中の承認は変更なし`,live_permissions_deferred:`権限:次のターンで適用(サンドボックスと承認ポリシーは固定)`,live_fast_deferred:`Fast:実行中の更新が確認されるまで次のターンで適用`,context_trigger:`コンテキスト使用量`,context_not_reported:`使用量は未報告`,context_stale:`最後に確認した使用量`,context_compaction:`コンテキスト変更後の報告を待機中`,context_modelChanged:`モデル変更後の報告を待機中`,context_recent:`直近のモデル呼び出し`,context_usage:`コンテキスト {{used}} / {{limit}} トークン`,thread_only_model_selection:`このセッションにのみ適用`,model_catalog_unavailable:`このセッションのモデル候補を取得できません。`,restart_idle:`Covro はアイドル状態です。`,restart_title:`Covro を再起動`,restart_description:`サービスと管理対象の Codex app-server を再起動し、保存済みの設定を反映します。`,restart_unsupported:`Web からの再起動は macOS または Linux で Covro CLI から起動した場合に使えます。この環境では元のサービス管理方法を使ってください。`,restart_busy:`次の処理の完了を待っています:{{tasks}}。`,restart_when_idle:`アイドル時に再起動`,restart_cancel:`再起動の予約を取り消す`,restart_phase_waiting:`アイドル状態を待機中`,restart_phase_restarting:`Covro を再起動中`,restart_phase_verifying:`新しい Codex app-server を確認中`,restart_phase_succeeded:`Covro を再起動して再接続しました`,restart_phase_cancelled:`再起動を取り消しました`,restart_failed:`再起動に失敗しました`,restart_reconnecting:`Covro に再接続中…`,restart_unreachable:`Covro に再接続できていません。ホストでサービスを確認してください。`,restart_blocker_running:`実行中のセッション`,restart_blocker_approval:`承認待ち`,restart_blocker_input:`入力待ち`,restart_blocker_clone:`Git クローン`,restart_blocker_shell:`シェルコマンド`,restart_blocker_retry:`モデルの再試行`,restart_blocker_operation:`処理中または未確認の操作`,restart_blocker_maintenance:`サービスのメンテナンス`,restart_failure_timedOut:`30 分以内にアイドル状態になりませんでした。残りの処理を確認してから再試行してください。`,restart_failure_config:`Covro の設定を読み取るか検証できませんでした。保存済みのファイルを確認してください。`,restart_failure_identity:`データディレクトリ、待受先、またはアクセス設定が変更されました。元のサービス管理方法で適用してください。`,restart_failure_launch:`Covro の実行ファイルを検証または再読み込みできませんでした。元のインストールと起動環境を確認してください。`,restart_failure_shutdown:`管理対象サービスの停止を確認できませんでした。再び起動する前にホストのログを確認してください。`,restart_failure_interrupted:`再起動を確認する前にサービスが停止しました。`,restart_failure_startup:`新しい Covro プロセスを起動できませんでした。ホストのサービスログを確認してください。`,restart_failure_codex:`Covro は起動しましたが、新しい Codex app-server の準備が間に合いませんでした。Codex の設定とログを確認してください。`,restart_failure_storage:`再起動の記録を保存できませんでした。権限と空き容量を確認してください。`,restart_failure_activity:`app-server がアイドル状態か確認できませんでした。Codex の接続を確認して再試行してください。`,restart_request_failed:`リクエストを完了できませんでした。最新の状態を確認してから再試行してください。`,restart_receipt_unknown:`リクエストの応答を受信できませんでした。保存された再起動の状態を確認中です。`,restart_retry_request:`同じリクエストを確認`,restart_status_unavailable:`再起動の状態を取得できません。再接続を試みています。`,restart_recovery_help:`ホストで同じ --config を指定して covro status と covro logs を実行し、ログ内で下の再起動 ID を検索してください。`},shell:{collapsing_does_not_stop_commands:`折りたたんでもコマンドは停止しません{{v0}}`,commands_use_the_codex_server_sandbox_independently_of:`コマンドはセッション権限とは独立した Codex サーバーのサンドボックスで、プロジェクトのルートから実行されます。対話入力はできません。折りたたみ、パネル終了、プロジェクト切替でもコマンドは停止しません。`,still_running_in_other_projects_switch_to_view:`他のプロジェクトで実行中:{{v0}}。表示や中断には該当プロジェクトに切り替えてください。`,shell_disconnected_reconnecting_received_output_is_preserved_and:`Shell が切断され、再接続中です。受信済みの出力は保持されていますが、状態の確認が必要です。ブラウザーの切断でコマンドは停止しません。`,checking_command_submission:`コマンドの送信結果を確認中:`,check_and_retry_original_submission:`確認して元の送信を再試行`,recent_commands:`最近のコマンド`,not_run_yet:`未実行`,reuse_command:`コマンドを再利用`,exit_code:`終了コード {{v0}}`,output_truncated_64_kib_maximum:`出力を省略(上限 64 KiB)`,run_commands_in_the_project_directory_and_view:`プロジェクトディレクトリでコマンドを実行し、出力をリアルタイムで確認できます。`,for_example_git_status_pwd_or_project_tests:`例:git status、pwd、プロジェクトのテスト`,shell_command:`Shell コマンド`,interrupting:`中断中`,result_unknown:`結果不明`,shell_panel:`Shell パネル`,select_a_project:`プロジェクトを選択してください`,expand_shell:`Shell を展開`,collapse_shell:`Shell を折りたたむ`,close_shell_panel:`Shell パネルを閉じる`,running_in_other_projects:` · 他の {{v0}} プロジェクトで実行中`,recent_shell_commands:`最近の Shell コマンド`,shell_output:`Shell 出力`,waiting_for_output:`出力を待機中…`,no_output:`出力なし`,enter_a_command:`コマンドを入力…`,commands_run_on_the_server_and_can_be:`コマンドはサーバーで実行され、随時中断できます`,ctrl_enter_to_run_10_minute_limit:`Ctrl / ⌘ + Enter で実行 · 上限 10 分`,interrupting_2:`中断中…`,interrupt_command:`コマンドを中断`,the_service_restarted_execution_state_cannot_be_restored:`サービスが再起動したため実行状態を復元できません。受信済み出力は保持されています。`,execution_was_submitted_but_its_record_expired_or:`実行を送信済みですが、記録が期限切れかサービスが再起動しました。サーバーの結果を確認してください。`,command_could_not_start:`コマンドを開始できませんでした`,submission_is_unconfirmed_and_being_checked_do_not:`送信結果を確認中です。重複実行しないでください。`,submission_is_still_unconfirmed:`送信結果はまだ未確認です`,interrupt_result_is_unconfirmed_refresh_and_check:`中断の結果は未確認です。更新して確認してください。`,interrupt_failed_please_retry:`中断に失敗しました。再試行してください。`,still_running_in_other_projects_switch_to_view_other:`他のプロジェクトで実行中:{{v0}}。表示や中断には該当プロジェクトに切り替えてください。`,still_running_in_other_projects_switch_to_view_one:`他のプロジェクトで実行中:{{v0}}。表示や中断には該当プロジェクトに切り替えてください。`,running_in_other_projects_other:` · 他の {{v0}} プロジェクトで実行中`,running_in_other_projects_one:` · 他の {{v0}} プロジェクトで実行中`},sidebar:{remove_from_this_workspace:`「{{v0}}」をワークスペースから削除しますか?`,only_the_project_list_entry_is_removed_server:`一覧の登録のみを削除します。サーバー上のファイルとセッション履歴は保持されます。`,add_the_same_directory_later_to_access_its:`同じディレクトリを再追加すると履歴にアクセスできます。実行中のタスクと未確認の操作を先に処理してください。`,server_directory:`サーバーディレクトリ`,enter_an_existing_absolute_path_on_the_server:`ブラウザー端末ではなく、サーバー上の既存ディレクトリの絶対パスを入力してください。サービスのアクセス権が必要です。`,resolved_path:`最終的なサーバーパス`,path_resolving:`パスを解決中…`,path_retry:`パスを再確認`,work_dir_path_help:`サーバー上の既存のディレクトリを指定します。相対パスはサービス設定の workDir を基準に補完され、絶対パスはそのまま使用されます。`,work_dir_clone_help:`設定済みの場合は workDir/リポジトリ名が既定値です。変更できます。相対パスは workDir を基準に補完され、絶対パスはそのまま使用されます。親ディレクトリは存在し、書き込み可能である必要があります。`,your_login_expired_log_in_again_to_manage:`ログインの有効期限が切れました。再ログインしてプロジェクトを管理してください。`,remove_project:`プロジェクトを削除…`,remove_project_2:`プロジェクトを削除`,add_server_project:`サーバーのプロジェクトを追加`,close_project_management:`プロジェクト管理を閉じる`,set_a_recognizable_project_name_or_remove_it:`識別しやすい名前を設定するか、ワークスペースから削除できます。`,add_an_existing_directory_on_the_server_running:`Codex Web UI を実行するサーバー上の既存ディレクトリを追加すると、履歴の表示やタスクの開始ができます。`,project_name:`プロジェクト名`,project_name_optional:`プロジェクト名(任意)`,defaults_to_directory_name:`既定はディレクトリ名`,back:`戻る`,removing:`削除中…`,confirm_removal:`確認して削除`,save_name:`名前を保存`,projects_and_sessions:`プロジェクトとセッション`,archived_sessions:`アーカイブ済み`,all_sessions_loaded:`すべてのセッションを読み込み済み`,runs_on_server:`サーバーで実行`,code_and_credentials_stay_on_the_computer_running:`コードと認証情報はサービスを実行するパソコンに保持されます`,close_session_navigation:`セッションナビゲーションを閉じる`,updating:`更新中`,update_available:`新しいバージョンあり`,version_and_updates:`バージョンと更新`,close_navigation:`ナビゲーションを閉じる`,search_projects_and_loaded_sessions:`プロジェクトと読み込み済みセッションを検索`,search_results_projects:`検索結果 · {{v0}} プロジェクト`,all_projects:`すべてのプロジェクト · {{v0}}`,session_list_scope:`セッション一覧の範囲`,refresh_session_list:`セッション一覧を更新`,active_sessions:`実行中のセッション {{v0}} 件`,creating:`作成中…`,new_session:`新しいセッション`,manage_project:`プロジェクト {{v0}} を管理`,no_matches_among_loaded_sessions:`読み込み済みのセッションに一致するものはありません。`,no_archived_sessions_yet:`アーカイブ済みセッションはありません。`,no_sessions_yet_create_one_to_get_started:`セッションはまだありません。新しく作成して始めましょう。`,local_list_sync_failed_browsing_is_still_available:`ローカル一覧の同期に失敗しましたが、閲覧は可能です。`,showing_local_list_syncing_in_background:`ローカル一覧を表示し、バックグラウンドで同期中…`,some_local_entries_are_not_synced_load_more:`ローカル一覧の一部が未同期です。追加読み込みで確認してください。`,loading_more_sessions:`セッションを追加読み込み中…`,syncing_sessions:`セッションを同期中…`,load_failed_retry:`読み込み失敗・再試行`,load_more_sessions:`セッションをさらに読み込む`,no_matching_projects_or_loaded_sessions:`一致するプロジェクトや読み込み済みセッションはありません。`,no_projects_yet_add_a_server_directory_to:`プロジェクトはまだありません。サーバーのディレクトリを追加して始めましょう。`,loading_projects:`プロジェクトを読み込み中…`,copy_full_thread_id:`Thread ID 全体をコピー`,copy_thread_id:`Thread ID をコピー`,copy_failed_select_and_copy_the_id_manually:`コピーできませんでした。ID を選択して手動でコピーしてください。`,created_from:`作成元`,updated_at:`更新日時`,task_status:`タスクの状態`,read_status:`既読状態`,pending:`未処理`,pending_requests:`未処理 {{v0}} 件`,session_type:`セッションの種類`,forked_session:`分岐したセッション`,source_records_the_client_used_at_creation_not:`作成元は作成時のクライアントを示し、現在の実行場所や接続状態ではありません。`,untitled_session:`無題のセッション`,archive_session:`セッションをアーカイブ`,unread:` · 未読`,pending_requests_2:` · 未処理 {{v0}} 件`,session_details_and_source:`セッションの詳細と作成元`,session_details:`セッションの詳細:{{v0}}`,fork_session_copy_saved_history_both_sessions_can:`保存済み履歴をコピーして分岐します。元と新しいセッションは同時に実行できます。`,fork_session:`セッションを分岐`,unread_2:`未読`,read:`既読`,session_history:`セッション履歴`,enter_a_session_name:`セッション名を入力してください。`,rename_session:`セッション名を変更`,session_name:`セッション名`,save_session_name:`セッション名を保存`,cancel_rename:`名前の変更をキャンセル`,enter_to_save_esc_to_cancel_up_to:`Enter で保存 · Esc でキャンセル · {{v0}} 文字まで`,click_title_to_rename_session:`タイトルをクリックして名前を変更`,created_by_covro_this_web_page:`Covro(このページ)で作成。`,created_by_the_codex_terminal_cli:`Codex のターミナル CLI で作成。`,created_by_the_codex_extension_in_vs_code:`VS Code の Codex 拡張で作成。`,created_by_the_codex_desktop_app:`Codex デスクトップアプリで作成。`,recorded_creator:`記録された作成元:「{{v0}}」。`,recorded_as_a_codex_terminal_cli_source:`Codex ターミナル CLI が提供元として記録されています。`,interactive_client:`対話型クライアント`,codex_only_recorded_an_interactive_source_category_it:`Codex は対話型の分類のみを記録しています。ウェブ、ターミナル、IDE の可能性があり、作成クライアントは特定できません。`,recorded_as_a_codex_mcp_service_source:`Codex MCP サービスが提供元として記録されています。`,command_line_task:`コマンドラインタスク`,recorded_as_a_non_interactive_codex_command_line:`非対話型の Codex コマンドラインタスクとして記録されています。`,source_unconfirmed:`作成元未確認`,no_recognizable_creator_codex_source_is_recorded_as:`作成元を識別できません。Codex の記録上の提供元は「{{v0}}」です。`,no_recognizable_creator_information:`識別できる作成元情報がありません。`,the_session_service_restarted_retry_loading_sessions:`セッションサービスが再起動しました。読み込みを再試行してください。`,session_pagination_did_not_advance_retry_or_refresh:`セッションのページングが進みません。再試行するか一覧を更新してください。`,too_many_session_pages_read_retry_or_refresh:`セッションページの読み込みが多すぎます。再試行するか一覧を更新してください。`,search_results_projects_other:`検索結果 · {{v0}} プロジェクト`,search_results_projects_one:`検索結果 · {{v0}} プロジェクト`,all_projects_other:`すべてのプロジェクト · {{v0}}`,all_projects_one:`すべてのプロジェクト · {{v0}}`,active_sessions_other:`実行中のセッション {{v0}} 件`,active_sessions_one:`実行中のセッション {{v0}} 件`,pending_requests_other:`未処理 {{v0}} 件`,pending_requests_one:`未処理 {{v0}} 件`,pending_requests_2_other:` · 未処理 {{v0}} 件`,pending_requests_2_one:` · 未処理 {{v0}} 件`,enter_to_save_esc_to_cancel_up_to_other:`Enter で保存 · Esc でキャンセル · {{v0}} 文字まで`,enter_to_save_esc_to_cancel_up_to_one:`Enter で保存 · Esc でキャンセル · {{v0}} 文字まで`,clone_intro:`Git リポジトリを Covro が稼働するサーバーにクローンします。完了後、プロジェクトが自動的に追加されます。`,clone_repository:`Git リポジトリの URL`,clone_auth_help:`HTTPS と SSH(例:git@github.com:owner/repo.git)に対応しています。サーバーの既存の Git 認証情報を使用します。URL にパスワードやトークンを含めないでください。`,clone_target:`サーバー上の保存先ディレクトリ`,clone_path_help:`サーバー上の絶対パスを入力してください。親ディレクトリが存在し、書き込み可能である必要があります。保存先は未作成または空のディレクトリを指定してください。既存のファイルは上書きしません。`,clone_background_help:`ページを閉じたり再読み込みしたりしても、クローンはキャンセルされません。停止するには「クローンをキャンセル」を選択してください。`,clone_open:`プロジェクトを開く`,clone_register_retry:`プロジェクトの追加を再試行`,clone_empty_retry:`空のディレクトリで再試行`,clone_checking:`クローンの状態を確認中…`,clone_progress:`クローンの進行状況`,clone_cancelling:`キャンセル中…`,clone_cancel:`クローンをキャンセル`,clone_start:`クローンしてプロジェクトを追加`,import_existing:`既存のディレクトリ`,import_clone:`Git リポジトリをクローン`,import_source:`プロジェクトの取り込み元`,search_results_groups:`検索結果 · {{v0}} グループ`,all_sessions_projects:`すべてのセッション · {{v0}} プロジェクト`,new_unassigned_session:`新しいセッション(プロジェクト不要)`,no_sessions_yet:`セッションはまだありません。そのまま新しいセッションを始めるか、プロジェクトを追加してください。`,clone_progress_percent:`{{v0}} {{v1}}`,clone_stage_connecting:`リポジトリに接続中…`,clone_stage_receiving:`オブジェクトを受信中`,clone_stage_resolving:`差分を解決中`,clone_stage_checking_out:`ファイルをチェックアウト中`,clone_stage_counting:`オブジェクトを集計中`,clone_stage_compressing:`オブジェクトを圧縮中`,clone_stage_cancelling:`キャンセル中。Git の終了を待っています…`,clone_stage_completed:`クローンが完了し、プロジェクトを追加しました`,clone_stage_registration_failed:`クローンは完了しましたが、プロジェクトはまだ追加されていません`,clone_stage_timed_out:`クローンがタイムアウトしたため停止しました`,clone_stage_cancelled:`クローンをキャンセルしました`,clone_stage_failed:`クローンに失敗しました`,search_results_groups_one:`検索結果 · {{v0}} グループ`,search_results_groups_other:`検索結果 · {{v0}} グループ`,all_sessions_projects_one:`すべてのセッション · {{v0}} プロジェクト`,all_sessions_projects_other:`すべてのセッション · {{v0}} プロジェクト`,reorder_projects:`プロジェクトを並べ替え`,project_order:`プロジェクトの順序`,order_done:`完了`,order_help:`ドラッグまたは上下ボタンで並べ替えます。新規・再追加のプロジェクトは末尾に表示されます。`,project_display_order:`プロジェクトの表示順`,order_position:`{{v1}} 件中 {{v0}} 番目`,order_move_up:`プロジェクトを上へ移動: {{v0}}`,order_move_down:`プロジェクトを下へ移動: {{v0}}`,order_saving:`順序を保存中…`,order_saved:`順序を保存しました`,order_auto_save:`変更は自動保存され、再読み込みや再起動後も保持されます。`,order_save_failed:`{{v0}} もう一度お試しください。`,settings:`設定`,browser_notifications:`ブラウザー通知`,browser_notifications_status:`ブラウザー通知 · {{v0}}`,tasks:`タスク`,background_tasks:`バックグラウンドタスク`,clone_background:`バックグラウンドで実行`,tasks_empty:`バックグラウンドタスクはありません`,tasks_connection_lost:`接続が切れました。タスクの状態を再確認しています。`,tasks_view:`表示`,tasks_checking:`送信結果を確認中です。閉じてタスクから確認できます。再送信しないでください。`,clone_stage_interrupted:`サービスが中断され、クローン結果は未確認です`},updates:{recommended_verified:`推奨:{{v0}} · 検証済み:{{v1}}`,current_covro:`現在の Covro`,release_channel:`リリースチャンネル`,auto_update_when_idle:`アイドル時に自動更新`,periodically_check_this_channel_and_install_verified_codex:`このチャンネルを定期確認し、タスク終了後に検証済みの Codex の組み合わせをインストールして再起動します。`,subscribed_to_switches_to_after_a_successful_update:`現在は {{v0}} を購読中です。更新成功後に {{v1}} に切り替わります。`,i_agree_to_try_the_unverified_combination_of:`今回の更新に限り、未検証の Codex {{v0}} と Covro {{v1}} の組み合わせを試すことに同意します。`,allow_downgrade_incompatible_databases_still_block_switching:`ダウングレードを許可(データベース非互換時は切り替え不可)`,version_source_official_npm_registry:`バージョンの取得元:npm 公式レジストリ · {{v0}}`,update_history:`更新履歴`,updates_preserve_configuration_projects_and_session_history_processing:`更新時も設定、プロジェクト、履歴は保持されます。ページを閉じても処理は続き、再起動後に自動再接続します。`,stable:`安定版`,beta:`プレビュー版`,development:`開発版`,installing_candidate_version:`候補バージョンをインストール中`,waiting_for_tasks_to_finish:`タスクの終了待ち`,backing_up_and_restarting:`バックアップ・再起動中`,verifying_new_version:`新バージョンを検証中`,update_successful:`更新成功`,previous_version_restored:`以前のバージョンに復元済み`,update_failed:`更新失敗`,verified:`検証済み`,unverified:`未検証`,explicitly_unsupported:`明示的に非対応`,cannot_confirm:`確認できません`,unrecognized:`識別できません`,close_update_settings:`更新設定を閉じる`,current_codex:`実行中の Codex`,verified_releases_for_everyday_use:`日常利用に適した検証済み正式版です。`,try_features_being_prepared_for_release:`Beta と新しい安定版を受け取ります。更新後も Beta の購読を維持します。`,follows_checked_main_commits_for_developers_testing_new:`チェック済み main の変更と新しい安定版を受け取ります。Beta は含まず、更新後も開発版の購読を維持します。`,disabled:`オフ`,this_channel_is_already_at_the_current_version:`このチャンネルは現在のバージョンと同じです`,target_version:`対象バージョン`,available_version:`利用可能なバージョン`,target_version_compatibility:`対象バージョンの互換性`,allow_trying_an_unverified_codex_combination:`未検証の Codex の組み合わせを試す`,auto_update_is_paused_adjust_the_codex_version:`自動更新は一時停止中です。Codex のバージョンを変更して再確認するか、同意して手動で試してください。`,auto_update_is_paused_restore_the_codex_connection:`自動更新を停止しています。再起動後の Codex の起動元と更新先の互換性情報を確認し、再確認してください。`,processing:`処理中…`,check_for_updates:`更新を確認`,use_this_channel:`このチャンネルを使用`,switch_and_restart:`切り替えて再起動`,update_and_restart:`更新して再起動`,update_progress:`更新の進行状況`,draft_backup_failed_page_reload_postponed:`下書きをバックアップできないため再読み込みを延期しました`,connection_interrupted_waiting_for_the_service_to_recover:`接続が中断されました。サービスの復旧を待機中…`,operation_unconfirmed_check_update_status:`操作の結果が未確認です。更新状態を確認してください。`,cannot_open_draft_backup_close_old_pages_and:`下書きのバックアップを開けません。古いページを閉じて再試行してください。`,draft_backup_failed:`下書きのバックアップに失敗`,manualUpdate:`この環境ではバージョン確認のみ対応しています。元の導入方法で更新し、サービスを再起動してください。`,checkFailed:`更新を確認できません。技術的な詳細を確認し、後でもう一度試してください。`,installingDescription:`候補バージョンをインストール中です。既存のセッションは保持されます。`,waitingDescription:`タスク、承認、未確認の操作が終わるまで切り替えを待機しています。`,stoppingDescription:`旧サービスの停止とバックアップ中です。新しいタスクの受付は一時停止しています。`,verifyingDescription:`新版を起動し、データの移行と検証を行っています。新しいタスクはまだ受け付けません。`,succeededDescription:`更新が成功し、サービスが復旧しました。`,rolledBackDescription:`新版を起動できないため、以前のバージョンに復元しました。技術的な詳細を確認してください。`,failedDescription:`更新を完了できませんでした。技術的な詳細とサービスログを確認し、実行中のバージョンを確認してください。`,releaseNotes:`リリースノート`,releaseNotesFor:`リリースノート · {{version}}`,viewOnGitHub:`GitHub で見る`,releaseNotesContent:`リリースノート本文`,releaseNotesLoading:`リリースノートを読み込み中…`,releaseNotesMissing:`このバージョンのリリースノートはありません。一部の Beta / Dev バージョンには GitHub Release がありません。更新は続行できます。`,releaseNotesEmpty:`このリリースにはまだ説明がありません。更新は続行できます。`,releaseNotesRateLimited:`GitHub のリクエスト制限に達しました。後で再試行してください。更新は続行できます。`,releaseNotesFailed:`リリースノートを読み込めませんでした。接続を確認して再試行してください。更新は続行できます。`,runtime:`Node 環境`,installation_source:`インストール元`,runtime_unavailable:`移行先の Node 環境を確認できません。詳細を確認して再チェックしてください。`,migrate_and_restart:`Node を切り替えて再起動`,cancelled:`更新をキャンセルしました`,cancel_pending_update:`待機中の更新をキャンセル`,cancelledDescription:`待機中の更新をキャンセルしました。現在のサービスは稼働を続けます。`,after_restart:`再起動後の Codex`,unverified_combination:`Codex {{version}} とこの Covro の組み合わせは未検証です。`,unknown_compatibility:`Codex のバージョンまたは互換性情報を確認できません。再確認してください。`,restart_unavailable:`再起動後の Codex を確認できません。起動元を確認して再試行してください。`,unsupported_combination:`この Covro は Codex {{version}} をサポートしていません。`},workspace:{simulation_mode_results_come_from_the_explicitly_enabled:`シミュレーションモード · 結果は明示的に有効にしたテスト用 app-server によるものです`,your_login_has_expired_disconnecting_this_page_does:`ログインの有効期限が切れました。ページの切断でタスクはキャンセルされません。`,reopen_login:`ログイン画面を開く`,live_connection_showing_the_last_known_state:`リアルタイム接続:{{v0}}。最後に確認した状態を表示しています。`,reconnect_now:`今すぐ再接続`,codex_is_unavailable:`Codex は利用できません:{{v0}}`,error_details:`エラーの詳細`,this_session_is_archived:`このセッションはアーカイブ済みです`,history_is_preserved_unarchive_to_continue_the_conversation:`履歴は保存されています。アーカイブを解除すると会話を続けられます。`,confirming_the_fork_wait_for_the_receipt_before:`分岐の結果を確認中…受付結果が届くまで再度分岐できません。`,this_codex_version_does_not_support_session_forks:`この Codex バージョンはセッションの分岐に対応していません。`,you_can_fork_once_the_connection_recovers_and:`接続が復旧し Codex の準備が整うと分岐できます。`,the_project_directory_is_unavailable_restore_access_before:`プロジェクトディレクトリが利用できません。アクセスを復旧すると分岐できます。`,confirm_compatibility_with_the_current_codex_version_first:`先に現在の Codex バージョンの互換性を確認してください。`,send_the_first_message_to_enable_forking_saved:`最初のメッセージを送信すると保存済み履歴から分岐できます。`,check_settings:`設定を確認`,check_the_session_operation_results_first:`先にセッション操作の結果を確認してください`,available_when_the_connection_recovers:`接続の復旧後に操作できます`,confirm_codex_version_compatibility_first:`先に Codex のバージョン互換性を確認してください`,this_codex_version_does_not_support_this_operation:`現在の Codex はこの操作に対応していません`,finish_the_task_and_resolve_pending_requests_before:`タスクを終了し、保留中のリクエストを処理するとアーカイブできます`,session_state_needs_checking_archiving_is_temporarily_unavailable:`セッションの状態確認が必要なため、現在はアーカイブできません`,open_projects_and_sessions:`プロジェクトとセッションを開く`,more_actions:`その他の操作`,diagnostics_with_count:`診断({{v0}})`,workspace:`ワークスペース`,new_session:`新しいセッション`,start_your_next_task:`次のタスクを始めましょう`,open_shell_panel:`Shell パネルを開く`,running_shell_commands:`実行中の Shell コマンド`,return_to_original_session:`元のセッションに戻る`,connecting:`接続中`,disconnected_reconnecting:`切断されました。再接続中`,check_the_codex_installation_authentication_and_service_on:`サービスを実行しているパソコンで Codex のインストール、認証、稼働状態を確認してください。`,dismiss_error:`エラー表示を閉じる`,rename_result_awaiting_confirmation:`名前変更の結果を確認待ち`,saving_session_name:`セッション名を保存中…`,archive_result_awaiting_confirmation:`アーカイブの結果を確認待ち`,archiving_session:`セッションをアーカイブ中…`,unarchive_result_awaiting_confirmation:`アーカイブ解除の結果を確認待ち`,unarchiving:`アーカイブを解除中…`,check_submission:`送信結果を確認`,pending_requests:`未処理のリクエスト`,the_new_session_submission_is_unconfirmed_check_it:`新規セッションの作成結果が未確認です。重複作成を避けるため、先に送信結果を確認してください。`,the_fork_result_is_unconfirmed_check_the_submission:`分岐の結果が未確認です。再度分岐する前に送信結果を確認してください。`,the_submission_result_is_unconfirmed_check_it_or:`送信結果が未確認です。結果を確認するか、保存済み履歴を新しいセッションに分岐してください。`,your_answer_is_needed:`回答が必要です`,free_text_answer:`自由入力`,your_answer_will_be_sent_to_this_session:`回答は現在のセッションに送信され、Codex が作業を続けられます。`,questions_from_codex:`Codex からの質問`,answer_sent:`回答を送信済み`,sending:`送信中…`,you_can_answer_later:`後で回答できます`,answer_submit_shortcut:`{{shortcut}} で送信 / Enter で改行`,send_answer:`回答を送信`,codex_has_not_been_verified_some_features_may:`Codex {{v0}} の互換性は未検証のため、一部の機能が正常に動作しない可能性があります。{{v1}}`,view_compatibility_notice:`互換性の注意事項を表示`,codex_version_compatibility_is_unverified:`Codex バージョンの互換性は未検証です`,this_codex_version_is_unverified_some_features_may:`現在の Codex バージョンは未検証のため、一部の機能が正常に動作しない可能性があります。続行しても互換性の注意事項は表示されます。`,codex_is_unavailable_close_this_notice_and_check:`Codex が利用できないため続行できません。この表示を閉じ、状態の診断を確認してください。`,wait_for_the_connection_and_codex_authentication_to:`接続と Codex の認証が復旧してから確認してください。`,the_confirmation_result_needs_checking_refresh_status_or:`確認リクエストの結果は未確認です。状態を更新するか、現在のバージョンの使用を再確認してください。タスクは再送信されません。`,refresh_confirmation_status:`確認状態を更新`,confirm_again:`再度確認`,you_can_still_view_diagnostics_or_interrupt_tasks:`閉じた後も診断の表示やタスクの中断は可能です。確認だけではタスクは送信されず、未送信の下書きも保持されます。`,not_now:`今は使用しない`,permission_to_continue_confirmed_this_does_not_verify:`続行は確認済みですが、バージョンが検証されたわけではありません。`,confirmation_required_before_use:`使用前に確認が必要です。`,confirming:`確認中…`,json_source:`JSON 原文`,formatted_json:`整形済み JSON`,copy_reply_markdown:`返信をコピー(Markdown)`,copy_reply:`返信をコピー`,copy_failed_select_and_copy_the_reply_manually:`コピーできませんでした。返信を選択して手動でコピーしてください。`,cannot_read_default_settings:`既定の設定を読み取れません`,the_browser_cannot_save_operation_records_keep_this:`操作記録を保存できません。未確認の送信結果を照合できるよう、ページを開いたままにしてください。`,operation_failed_check_details:`操作に失敗しました。詳細を確認してください。`,confirm_the_codex_version_compatibility_notice_before_starting:`操作前に Codex のバージョン互換性の注意事項を確認してください。`,cannot_read_session_history_no_file_downloaded:`セッション履歴を読み取れません。ファイルはダウンロードされていません。`,login_expired_or_history_response_was_not_markdown:`ログインが期限切れか、履歴が Markdown で返されませんでした。再ログインして再試行してください。`,export_response_has_no_valid_filename_no_file:`エクスポートの応答に有効なファイル名がありません。ダウンロードは行いません。`,export_response_lacks_history_completeness_information_no_file:`履歴の完全性情報がないため、ダウンロードは行いません。`,request_failed_please_try_again:`リクエストに失敗しました。再試行してください。`,open_github_repository:`GitHub リポジトリを開く`,end_question_tracking:`スキップ`,end_remaining_tracking:`すべてスキップ`,end_tracking_hint:`Covro の通知のみを停止します。回答や下書きは送信せず、タスクも停止しません。`,question_tracking_ended:`スキップ済み · 回答は未送信`,questions_handled:`処理済み`,answer_receipt_pending:`回答の受領確認待ち`,skip_all_questions_hint:`入力済みの下書きを含め、このグループの未回答の質問をすべてスキップします。回答は送信せず、タスクも停止しません。`}},ko:{account:{title:`계정 사용량`,scope:`현재 Codex 인스턴스의 계정 한도입니다. 세션 토큰과 별도로 집계됩니다.`,refresh:`새로 고침`,refreshing:`새로 고치는 중…`,updatedAt:`조회 시각: {{time}}`,loading:`계정 사용량을 읽는 중…`,signedOut:`Codex에 로그인하지 않았습니다.`,unsupported:`이 계정 또는 Codex 인스턴스는 사용량 정보를 제공하지 않습니다.`,offline:`Codex가 오프라인입니다. 다시 연결하면 사용량을 조회할 수 있습니다.`,refreshFailed:`새로 고침에 실패했습니다. 표시된 값은 마지막으로 조회한 결과입니다.`,noWindows:`보고된 한도 기간이 없습니다.`,quota:`계정 한도`,primary:`기본 기간`,secondary:`보조 기간`,used:`{{value}} 사용`,remaining:`{{value}} 남음`,usageUnknown:`사용 비율이 보고되지 않음`,resetsAt:`초기화 시각: {{time}}`,resetUnknown:`초기화 시각이 보고되지 않음`,resetPassed:`초기화 시각이 지났습니다. 새로 고침하여 현재 사용량을 확인하세요`,exhausted:`한도 소진`,credits:`크레딧`,unlimited:`무제한`,balance:`잔액: {{value}}`,balanceUnknown:`잔액이 보고되지 않음`,creditsAvailable:`크레딧 사용 가능`,creditsDepleted:`사용 가능한 크레딧 없음`,individualLimit:`개인 지출 한도`,reportedUsed:`사용량: {{value}}`,reportedLimit:`한도: {{value}}`,spendControlReached:`지출 한도에 도달함`,spendControlNotReached:`지출 한도에 도달하지 않음`,usageAllowed:`플랜에 포함된 사용량 이용 가능`,usageBlocked:`플랜에 포함된 사용량 이용 불가`,resetCredits:`획득한 초기화 중 사용 가능한 횟수: {{count}}`,ownerCreditsDepleted:`워크스페이스 소유자의 크레딧 소진`,memberCreditsDepleted:`워크스페이스 구성원의 크레딧 소진`,ownerUsageReached:`워크스페이스 소유자의 사용량 한도 도달`,memberUsageReached:`워크스페이스 구성원의 사용량 한도 도달`},approvals:{working_directory:`작업 디렉터리:`,another_answer:`다른 답변`,this_interaction_is_unsupported_no_approval_was_sent:`지원되지 않는 상호작용 요청이며 승인은 전송되지 않았습니다. 호환성 진단을 확인하세요.`,request_could_not_be_handled:`요청을 처리하지 못했습니다`,network_destination:`네트워크 대상`,change_details:`변경 세부 정보`,request_details:`요청 세부 정보`,automatic_review:`자동 검토`,review_rationale:`검토 사유`,risk_assessment:`위험 평가`,user_authorization_assessment:`사용자 권한 부여 평가`,review_id:`검토 ID`,operation_id:`작업 ID`,started_at:`시작 시간`,finished_at:`종료 시간`,reviewing:`검토 중`,allowed:`허용됨`,review_aborted:`검토 중단됨`,low:`낮음`,medium:`중간`,high:`높음`,critical:`매우 높음`,unknown:`알 수 없음`,no_valid_time_provided:`유효한 시간이 제공되지 않았습니다`,automatic_review_2:`자동 검토 결과: {{v0}}, {{v1}}`,no_reviewed_operation_provided:`검토 대상 작업이 제공되지 않았습니다.`,no_review_rationale_provided:`검토 사유가 제공되지 않았습니다.`,source:`출처:`,session_approval_applies_only_to_this_request_s:`세션 승인은 이 요청의 도구 또는 연결 범위에만 적용되며 승인 정책을 따릅니다. 새 세션에서는 다시 확인해야 합니다.`,url:`접속 주소`,open_in_new_tab:`새 탭에서 열기`,complete_the_steps_on_the_page_then_click:`페이지에서 작업을 완료한 후 “완료했습니다”를 눌러 계속하세요.`,leave_blank:`입력하지 않음`,select_an_option:`선택하세요`,yes:`예`,no:`아니요`,check_the_highlighted_fields_before_submitting:`표시된 항목을 확인한 후 제출하세요.`,allow_for_this_session:`이 세션에서 허용`,deny:`거부`,enter_an_integer:`정수를 입력하세요`,minimum:`최소 {{v0}}`,maximum:`최대 {{v0}}`,at_least_characters:`최소 {{v0}}자`,at_most_characters:`최대 {{v0}}자`,select_at_least_items:`최소 {{v0}}개 선택`,select_at_most_items:`최대 {{v0}}개 선택`,include_a_time_zone_e_g_2026_10:`날짜와 시간에 시간대를 포함하세요. 예: 2026-10-14T12:30:00+08:00`,this_field_is_required:`필수 항목입니다.`,check_the_requirements_for_this_field:`이 항목의 입력 조건을 확인하세요.`,allow_once:`이번만 허용`,i_m_done:`완료했습니다`,this_request_has_no_safe_http_or_https:`안전하게 열 수 있는 HTTP 또는 HTTPS 주소가 없어 완료를 확인할 수 없습니다.`,no_url_provided:`주소가 제공되지 않았습니다`,required:`필수`,optional:`선택 사항`,not_provided_optional:`입력하지 않음(선택 사항)`,network_access:`네트워크 접근`,files_and_directories:`파일 및 디렉터리`,directory_matching_depth:`디렉터리 검색 깊이: {{v0}}`,no_additional_network_or_file_access_requested:`추가 네트워크 또는 파일 접근 권한이 요청되지 않았습니다.`,read:`읽기`,write:`쓰기`,deny_access:`접근 금지`,network_access_allowed:`네트워크 접근 허용`,no_additional_network_access:`추가 네트워크 접근 없음`,no_network_access_changes_specified:`네트워크 접근 변경 지정 없음`,action_required:`처리 필요`,handled:`처리됨`,request_expired:`요청 만료됨`,commandApproval:`명령 실행 승인`,humanCommandApproval:`사람의 승인이 필요한 명령`,fileApproval:`파일 변경 승인`,permissionsApproval:`추가 권한 승인`,networkApproval:`네트워크 권한: {{target}}`,mcpApproval:`MCP 도구 승인: {{server}}`,mcpInteraction:`MCP 상호작용: {{server}}`,unsupported:`지원되지 않는 Codex 상호작용 요청`,cancelTask:`현재 작업 취소`,allowTask:`현재 작업에서 허용`,commandRule:`명령 규칙 허용 및 저장: {{rule}}`,networkRule:`네트워크 규칙 적용: {{rule}}`,command:`명령 실행`,execve:`프로그램 실행`,writeStdin:`터미널 입력`,applyPatch:`파일 변경`,networkAccess:`네트워크 접근`,mcpToolCall:`도구 호출`,requestPermissions:`권한 변경`,unknownAction:`작업 검토`,at_least_characters_other:`최소 {{v0}}자`,at_least_characters_one:`최소 {{v0}}자`,at_most_characters_other:`최대 {{v0}}자`,at_most_characters_one:`최대 {{v0}}자`,select_at_least_items_other:`최소 {{v0}}개 선택`,select_at_least_items_one:`최소 {{v0}}개 선택`,select_at_most_items_other:`최대 {{v0}}개 선택`,select_at_most_items_one:`최대 {{v0}}개 선택`,program:`프로그램`,arguments:`인수`,process:`프로세스`,depth:`디렉터리 검색 깊이`,networkAllowed:`네트워크 접근 허용`,networkRestricted:`추가 네트워크 접근 없음`,fieldValue:`{{label}}: {{value}}`,denyDecision:`거부`,accessDeny:`접근 금지`,skip_question:`이 질문 건너뛰기`,answer_question:`이 질문에 답변`,question_skipped:`건너뜀`,question_will_be_skipped:`제출 시 건너뜁니다`,skip_all_questions:`모두 건너뛰고 제출`,submit_with_skipped:`건너뛴 질문과 함께 제출`},backups:{title:`백업 및 복원`,close:`백업 및 복원 닫기`,introduction:`백업은 서비스를 실행하는 컴퓨터에 저장됩니다. 실행 중인 작업을 중단하지 않고 작업, 승인 및 미확인 작업이 끝날 때까지 기다린 후 스냅샷을 생성합니다.`,overview:`백업 개요`,currentSchema:`현재 스키마 {{version}}`,completed_one:`완료된 백업 {{number}}개 · {{size}}`,completed_other:`완료된 백업 {{number}}개 · {{size}}`,processing:`처리 중…`,create:`지금 백업`,cancel:`백업 취소`,progress:`백업 진행 상황`,databaseProgress:`데이터베이스 백업 진행 상황`,continues:`이 페이지를 닫아도 서비스는 처리를 계속합니다.`,records:`백업 기록`,loading:`백업 기록을 불러오는 중…`,empty:`아직 백업이 없습니다. 첫 스냅샷을 생성하거나 업그레이드 전 자동 백업을 기다리세요.`,protected:`업그레이드 복구용으로 보관 · 삭제하지 마세요`,verify:`다시 검증`,verified:`백업을 다시 검증했습니다. 현재 버전의 복원 절차에 사용할 수 있습니다.`,recovery:`복원 방법`,recoveryWarning:`먼저 서버 터미널에서 사전 확인한 후 서비스를 중지하고 같은 백업 ID로 복원을 확정하세요. 복원하면 설정과 앱 데이터를 덮어쓰며 백업 이후 생성된 앱 데이터는 삭제됩니다.`,recoveryPreview:`사전 확인에서 덮어쓸 범위, 호환성 및 이후 확인 절차를 표시합니다.`,scope:`백업 범위 및 보관 정책`,scopeTitle:`범위 및 보관`,included:`Covro 서비스 설정, 프로젝트 등록, 환경 설정 및 앱 데이터베이스 기록을 포함합니다. Codex 대화 본문, 자격 증명, 첨부 파일, 산출물 및 프로젝트 파일은 별도로 백업하세요.`,retention:`백업은 자동으로 삭제되지 않습니다. 업그레이드 복구에 필요한 백업은 보관하세요. 복원 전에 저장하는 원본 파일 사본도 디스크 공간을 사용합니다.`,directory:`저장 디렉터리`,loadFailed:`백업 기록을 불러올 수 없습니다. 다시 시도하세요.`,operationFailed:`백업 작업에 실패했습니다. 다시 시도하세요.`,unavailable:`이 서비스에서는 백업을 사용할 수 없습니다. 기술 세부 정보를 확인하세요.`,phase_waiting:`안전한 시점 대기 중`,phase_copying:`백업 중`,phase_verifying:`검증 중`,phase_succeeded:`백업 성공`,phase_failed:`백업 실패`,phase_cancelled:`취소됨`,phase_interrupted:`백업 중단됨`,phase_corrupt:`백업 사용 불가`,description_waiting:`작업, 승인, 입력 및 미확인 작업이 끝나기를 기다리는 중입니다.`,description_copying:`데이터베이스와 설정의 스냅샷을 생성하는 중입니다.`,description_verifying:`파일 무결성과 데이터베이스 호환성을 확인하는 중입니다.`,description_succeeded:`스냅샷 검증을 완료했으며 오프라인 복원에 사용할 수 있습니다.`,description_failed:`복원 가능한 스냅샷이 생성되지 않았습니다. 설정, 디렉터리 권한 및 디스크 공간을 확인한 후 다시 시도하세요.`,description_cancelled:`백업이 취소되어 복원 가능한 스냅샷이 생성되지 않았습니다.`,description_interrupted:`복원 가능한 스냅샷이 완성되기 전에 프로세스가 중단되었습니다.`,description_corrupt:`이 백업은 손상되었거나 불완전하거나 현재 버전과 호환되지 않아 복원할 수 없습니다.`,trigger_manual:`수동 백업`,trigger_preUpgrade:`업그레이드 전`,trigger_preRestore:`복원 전`,completed:`완료된 백업 {{number}}개 · {{size}}`},commands:{session_commands:`세션 명령`,applies_to_the_current_project_and_session:`현재 프로젝트 및 세션에 적용`,no_matching_commands_type_help_to_view_supported:`일치하는 명령이 없습니다. /help를 입력하여 지원 범위를 확인하세요.`,to_select_enter_to_run_esc_to_close:`↑ ↓로 선택 · Enter로 실행 · Esc로 닫기`,slash_commands:`슬래시 명령`,unknown_command_use_help_for_available_commands_or:`알 수 없는 명령 /{{v0}}. /help로 사용 가능한 명령을 확인하거나 /로 시작하는 일반 메시지에는 //를 사용하세요.`,select_a_command_or_type_help_for_available:`명령을 선택하거나 /help를 입력하여 사용 가능한 명령을 확인하세요.`,does_not_accept_arguments_usage:`/{{v0}}에는 인수를 지정할 수 없습니다. 사용법: {{v1}}`,view_supported_commands_and_usage:`지원 명령 및 사용법 보기`,open_a_new_session_draft_in_the_current:`현재 작업 공간에서 새 세션 입력 화면 열기`,copy_saved_session_history_into_a_new_session:`저장된 세션 기록을 새 세션으로 복사`,resume_the_selected_session_not_the_cli_session:`선택한 이전 세션 재개(CLI 세션 선택기 아님)`,rename_this_session_spaces_are_allowed:`세션 이름 변경, 공백 사용 가능`,request_interruption_of_the_current_task_web_shortcut:`현재 작업 중단 요청(웹 바로 가기 명령)`,open_connection_runtime_and_submission_diagnostics:`연결, 실행 상태 및 제출 진단 열기`,compact_context_and_continue_in_this_session:`컨텍스트를 압축하고 이 세션에서 계속 작업`,download_saved_session_history_as_markdown:`저장된 세션 기록을 Markdown으로 다운로드`,your_login_expired_log_in_again_and_retry:`로그인이 만료되었습니다. 다시 로그인한 후 시도하세요.`,you_are_offline_wait_for_the_connection_to:`오프라인 상태입니다. 연결이 복구될 때까지 기다리세요.`,codex_is_not_logged_in_authenticate_first:`Codex에 로그인하지 않았습니다. 먼저 인증하세요.`,codex_is_unavailable_check_diagnostics_first:`Codex를 사용할 수 없습니다. 먼저 상태 진단을 확인하세요.`,session_loading_try_again_shortly:`세션을 불러오는 중입니다. 잠시 후 다시 시도하세요.`,select_a_session_first:`먼저 세션을 선택하세요.`,this_codex_does_not_provide_thread_read:`현재 Codex는 thread/read 기능을 제공하지 않습니다.`,confirm_the_codex_version_compatibility_notice_first:`먼저 Codex 버전 호환성 안내를 확인하세요.`,this_codex_does_not_provide:`현재 Codex는 {{v0}} 기능을 제공하지 않습니다.`,select_a_project_first:`먼저 프로젝트를 선택하세요.`,the_project_directory_is_unavailable_check_project_configuration:`프로젝트 디렉터리를 사용할 수 없습니다. 프로젝트 설정을 확인하세요.`,creating_a_session_wait_for_the_receipt:`세션 생성 중입니다. 처리 결과를 기다리세요.`,session_creation_is_unconfirmed_use_status_to_check:`세션 생성이 확인되지 않았습니다. /status로 제출 결과를 확인하세요.`,unarchive_before_compacting_context:`보관을 해제한 후 컨텍스트를 압축하세요.`,resume_this_session_before_compacting_context:`현재 세션을 재개한 후 컨텍스트를 압축하세요.`,this_session_is_empty_there_is_no_context:`빈 세션이므로 압축할 컨텍스트가 없습니다.`,submitting_compaction_wait_for_the_receipt:`압축 요청 제출 중입니다. 처리 결과를 기다리세요.`,wait_for_this_task_to_finish_before_compacting:`현재 작업이 종료된 후 컨텍스트를 압축하세요.`,an_execution_still_needs_checking_use_status_to:`확인이 필요한 실행이 있습니다. /status로 제출 결과를 확인하세요.`,this_session_is_archived_unarchive_it_first:`보관된 세션입니다. 먼저 보관을 해제하세요.`,resume_this_session_before_starting_code_review:`세션을 재개한 후 코드 리뷰를 시작하세요.`,submitting_code_review_wait_for_the_receipt:`코드 리뷰 제출 중입니다. 처리 결과를 기다리세요.`,this_session_has_an_unconfirmed_request_use_status:`이 세션에 미확인 요청이 있습니다. /status로 확인하세요.`,wait_for_this_task_to_finish_before_starting:`현재 작업이 종료된 후 코드 리뷰를 시작하세요.`,this_session_is_still_occupied_by_an_execution:`이 세션에 실행 점유가 남아 있습니다. /status로 이전 작업을 확인하세요.`,unarchive_and_resume_this_session_before_renaming:`보관을 해제하고 세션을 재개한 후 이름을 변경하세요.`,resume_this_session_before_renaming_sessions_occupied_by:`이름을 변경하려면 현재 세션을 재개하세요. 다른 프로세스가 점유한 세션은 변경할 수 없습니다.`,renaming_wait_for_the_receipt:`이름 변경 중입니다. 처리 결과를 기다리세요.`,rename_is_unconfirmed_use_status_to_check_the:`이름 변경이 확인되지 않았습니다. /status로 제출 결과를 확인하세요.`,archiving_is_unconfirmed_use_status_to_check_the:`보관 작업이 확인되지 않았습니다. /status로 제출 결과를 확인하세요.`,this_session_is_empty_send_the_first_message:`빈 세션입니다. 첫 메시지를 보낸 후 저장된 기록에서 분기하세요.`,forking_session_wait_for_the_receipt:`세션 분기 중입니다. 처리 결과를 기다리세요.`,fork_request_unconfirmed_use_status_to_check_the:`분기 요청이 확인되지 않았습니다. /status로 제출 결과를 확인하세요.`,resuming_session_wait_for_the_receipt:`세션 재개 중입니다. 처리 결과를 기다리세요.`,this_session_is_running_wait_for_it_to:`이 세션은 실행 중입니다. 종료를 기다리거나 /stop을 사용하세요.`,this_session_is_already_resumed:`이 세션은 이미 재개되었습니다.`,another_process_is_using_this_session_its_task:`다른 프로세스가 이 세션을 사용 중이므로 웹에서 해당 작업을 중단할 수 없습니다.`,this_session_has_not_been_resumed_tasks_in:`이 세션은 재개되지 않았으며 다른 프로세스의 작업을 웹에서 중단할 수 없습니다.`,submitting_interrupt_request_wait_for_the_receipt:`중단 요청 제출 중입니다. 처리 결과를 기다리세요.`,interrupt_request_unconfirmed_use_status_to_check_the:`중단 요청이 확인되지 않았습니다. /status로 제출 결과를 확인하세요.`,task_state_is_unconfirmed_use_status_to_check:`작업 상태가 확인되지 않았습니다. /status로 제출 결과를 확인하세요.`,this_session_has_no_task_to_interrupt:`이 세션에 중단할 작업이 없습니다.`,no_confirmed_success_receipt_received_check_errors_or:`성공을 확인할 수 있는 결과를 받지 못했습니다. 오류 또는 /status를 확인하세요. 입력은 유지됩니다.`,operation_failed_check_diagnostics:`작업에 실패했습니다. 상태 진단을 확인하세요.`,submission_result_unconfirmed_use_status_before_submitting_again:`제출 결과가 확인되지 않았습니다. 다시 제출하기 전에 /status로 확인하세요.`,context_compaction_requested_follow_task_status_in_the:`컨텍스트 압축을 요청했습니다. 진행 상황과 결과는 대화 내 작업 상태를 확인하세요.`,session_renamed_to:`세션 이름을 “{{v0}}”(으)로 변경했습니다.`,rename_accepted_but_the_name_is_unconfirmed_use:`이름 변경이 수락되었지만 이름을 확인할 수 없습니다. /status로 확인하세요.`,request_accepted_but_no_new_session_id_received:`요청이 수락되었지만 새 세션 ID를 받지 못했습니다. /status로 확인하세요.`,forked_into_a_new_session:`새 세션으로 분기했습니다.`,code_review_submitted_view_progress_and_results_in:`코드 리뷰를 제출했습니다. 현재 세션에서 진행 상황과 결과를 확인하세요.`,interrupt_requested_wait_for_task_status_to_update:`중단을 요청했습니다. 작업 상태가 업데이트될 때까지 기다리세요.`,selected_session_resumed:`선택한 세션을 재개했습니다.`,rename_name:`/rename <이름>`,no_arguments:`/{{v0}}(인수 없음)`,rename_requires_a_name_other_commands_take_no:`명령 및 사용법:
|
|
20
|
-
{{v0}}
|
|
21
|
-
표시된 인수만 사용할 수 있습니다.
|
|
22
|
-
/로 시작하는 일반 메시지에는 //를 사용하세요.`,name:` <이름>`,diagnostics_opened_refresh_status_or_reconcile_submissions_in:`상태 진단을 열었습니다. 패널에서 상태를 새로 고치거나 제출 결과를 확인하세요.`,the_project_or_session_changed_select_the_command:`프로젝트 또는 세션이 변경되었습니다. 명령을 다시 선택하세요.`,markdown_download_started_some_content_is_unfinished_unconfirmed:`Markdown 다운로드를 시작했습니다. 미완료, 미확인 또는 잘린 내용이 있으므로 파일 안내를 확인하세요.`,saved_history_download_started_the_file_describes_omitted:`저장된 기록의 다운로드를 시작했습니다. 생략된 이미지 및 내부 기록의 범위는 파일 안내를 확인하세요.`,new_session_draft_opened_a_session_will_be:`새 세션 입력 화면을 열었습니다. 첫 메시지를 보내면 세션이 생성됩니다.`,renameEmpty:`세션 이름을 입력하세요. 사용법: /rename <이름>`,renameLong:`세션 이름은 최대 {{max}}자입니다.`,renameControls:`세션 이름에 줄바꿈 또는 제어 문자를 사용할 수 없습니다.`,commandLine:`/{{name}}{{arguments}}: {{description}}`,review_uncommitted_working_directory_changes:`현재 세션 설정으로 작업 디렉터리의 미커밋 변경 리뷰`,planDescription:`Plan 모드를 선택하고 필요한 경우 작업 제출`,planUsage:`/plan [작업]`,optionalTask:` [작업]`,planSelected:`다음 작업에 Plan 모드를 선택했습니다. Codex 확인을 기다립니다.`,planSubmitted:`Plan 작업을 제출했습니다. 대화에서 실제 모드와 결과를 확인하세요.`,planNotSubmitted:`작업 제출이 확인되지 않았습니다. 재시도 전에 진단을 확인하세요.`,planUnavailable:`유휴 대화를 재개하거나 새 작업 공간 초안을 여세요.`,mode:`협업 모드`,modeUnknown:`모드 미보고`,executeMode:`실행`,planMode:`Plan`,modePending:`{{selected}} 적용 대기 · 현재: {{current}}`,reviewTarget:`코드 검토 대상`,reviewUncommitted:`커밋하지 않은 변경`,reviewBranch:`기준 브랜치와 비교`,reviewCommit:`특정 커밋`,reviewCustom:`사용자 지정 요구`,branchName:`기준 브랜치`,reviewInstructions:`검토 요구`,startReview:`검토 시작`,cancelDialog:`취소`,closeDialog:`닫기`,reviewCancelled:`검토를 취소했습니다. 명령 초안을 보관합니다.`,reviewDescription:`변경, 브랜치, 커밋 또는 사용자 요구 검토`,reviewUsage:`/review [요구]`,initDescription:`기존 파일을 유지하며 프로젝트 AGENTS.md 생성`,initSubmitted:`AGENTS.md 생성 작업을 제출했습니다. 대화에서 결과를 확인하세요.`,initUnavailable:`유휴 대화를 재개하거나 새 작업 공간 초안을 여세요.`,workspaceDiff:`작업 공간 Git 변경`,diffSection:`변경 범위`,diff_staged:`스테이징됨`,diff_unstaged:`스테이징 안 됨`,diff_untracked:`추적되지 않음`,diffPartial:`파일 변경, 읽기 실패 또는 크기 제한으로 일부 내용을 생략했습니다.`,diffDescription:`스테이징, 미스테이징 및 미추적 변경 보기`,diffUnavailable:`프로젝트 또는 저장된 대화를 선택하세요.`,diffOpened:`작업 공간 변경을 열었습니다. 새 스냅샷을 보려면 새로고침하세요.`,approveDescription:`거부된 작업을 한 번 허용`,approveTitle:`거부된 작업`,approveEmpty:`현재 런타임에 재시도 가능한 거부 기록이 없습니다.`,approveSelect:`거부된 작업 선택`,approveConfirm:`이 작업을 한 번만 허용합니다. 기본 권한은 변경되지 않습니다.`,approveOnce:`한 번 허용`,approveSubmitted:`재시도 승인을 기록했습니다. 계속할 작업을 보내세요.`,approveCancelled:`승인을 취소했습니다.`,recapDescription:`최근 대화를 별도로 요약`,recapTitle:`대화 요약`,recapNotice:`별도 모델 요청으로 최근 메시지를 요약합니다. 원래 대화 컨텍스트는 유지됩니다.`,recapPartial:`저장된 대화 일부만 포함되었습니다.`,recapEmpty:`먼저 메시지를 보내세요.`,recapFailed:`요약 결과를 확인할 수 없습니다.`,recapOpened:`대화 요약을 열었습니다.`,goalDescription:`기본 세션 목표 관리`,goalTitle:`세션 목표`,goalEmpty:`설정된 목표가 없습니다.`,goalObjective:`목표`,goalBudget:`토큰 예산 (비워두면 현재 예산 유지)`,goalActivation:`활성화하면 Codex가 자동으로 작업을 계속할 수 있습니다. 일시 중지나 지우기는 이후 진행을 멈춥니다. 현재 작업은 중지 버튼으로 중단하세요.`,goalActivate:`저장 및 활성화`,goalPause:`일시 중지`,goalComplete:`완료로 표시`,goalClear:`목표 지우기`,goalManage:`목표 관리`,goalUnconfirmed:`결과가 확인되지 않았습니다. 다시 제출하기 전에 진단을 확인하세요.`,goalUnavailable:`현재 런타임에서 목표를 사용할 수 없습니다.`,goalCommandUsage:`/goal [목표 | edit | pause | resume | clear]`,goalOpened:`목표 관리 창을 열었습니다.`,goalUsageTokens:`토큰 {{used}} / {{budget}}`,goalTime:`{{seconds}} 초`,goal_active:`진행 중`,goal_paused:`일시 중지됨`,goal_blocked:`차단됨`,goal_usageLimited:`사용량 제한`,goal_budgetLimited:`예산 제한`,goal_complete:`완료됨`},common:{language:`언어`,requestFailed:`요청에 실패했습니다. 다시 시도하세요.`,lessThanSecond:`1초 미만`,fork_into_a_new_session:`새 세션으로 분기`,on:`켜짐`,off:`꺼짐`,saving:`저장 중…`,project_directory_unavailable:`프로젝트 디렉터리를 사용할 수 없습니다`,sessions:`세션`,loading_session:`세션 불러오는 중…`,checking:`확인 중…`,unarchive:`보관 해제`,technical_details:`기술 세부 정보`,free_text_answer:`{{v0}}: 직접 입력`,enter_your_answer:`답변을 입력하세요`,confirm_selection:`선택 확인`,submit_answer:`답변 제출`,running:`실행 중`,failed:`실패`,denied:`거부됨`,review_timed_out:`검토 시간 초과`,result_unconfirmed:`결과 미확인`,completed:`완료`,working_directory:`작업 디렉터리`,running_version:`실행 중인 버전`,verified_version:`검증된 버전`,not_detected:`감지되지 않음`,loading:`불러오는 중`,confirm_and_continue:`확인 후 계속`,loading_2:`불러오는 중…`,could_not_read_the_image_please_paste_it:`이미지를 읽지 못했습니다. 다시 붙여넣으세요.`,confirming_fork:`분기 확인 중…`,run_command:`명령 실행`,submitting:`제출 중…`,last_known:`마지막 확인:`,add_project:`프로젝트 추가`,interrupted:`중단됨`,diagnostics:`상태 진단`,session_not_created_yet:`아직 세션이 생성되지 않았습니다`,reload:`다시 불러오기`,added:`추가`,removed:`삭제`,cancel:`취소`,read_only:`읽기 전용`,copied:`복사됨`,service_settings:`서비스 설정`,authentication_mode:`인증 모드`,image:`이미지`,preview_image:`이미지 미리 보기: {{v0}}`,permission_details:`권한 세부 정보`,not_reported:`보고되지 않음`,manage_project:`프로젝트 관리`,execution_failed:`실행 실패`,covro_updates:`Covro 업데이트`,model_defaults_are_being_saved_wait_before_proceeding:`모델 기본값을 저장 중입니다. 완료 후 진행하세요.`,unassigned:`프로젝트 미연결`,close:`닫기`},composer:{resuming_session:`세션 재개 중…`,retry_resume:`재개 다시 시도`,an_update_will_load_automatically_once_typing_or:`입력 또는 이미지 읽기가 끝나면 새 버전이 자동으로 로드됩니다`,slash_commands_cannot_include_images_remove_the_images:`슬래시 명령에는 이미지를 첨부할 수 없습니다. 이미지를 제거하거나 일반 메시지로 보내세요.`,running:`/{{v0}} 실행 중…`,command_failed_please_try_again:`명령 실행에 실패했습니다. 다시 시도하세요.`,pasted_image:`붙여넣은 이미지`,submitting_message:`메시지 제출 중…`,creating_a_session_and_sending_the_first_message:`세션 생성 및 첫 메시지 전송 중…`,this_session_is_in_use_by_another_process:`다른 프로세스에서 이 세션을 사용 중입니다`,unable_to_resume_session:`세션을 재개할 수 없습니다`,fork_saved_history_to_continue_or_retry_once:`저장된 기록에서 분기하거나 원래 프로세스가 세션을 해제한 후 다시 시도하세요. 새 세션도 같은 프로젝트 디렉터리를 사용합니다.`,images_to_send:`전송할 이미지`,image_to_send:`전송할 이미지 {{v0}}`,remove_image:`이미지 {{v0}} 제거`,additional_instructions:`추가 지침`,task_content:`작업 내용`,unarchive_to_continue_the_conversation:`보관을 해제하면 대화를 계속할 수 있습니다…`,add_requirements_or_adjust_direction:`요구 사항 추가 또는 방향 조정…`,describe_a_task_paste_an_image_or_type:`작업을 설명하거나 이미지를 붙여넣거나 /를 입력해 명령을 확인하세요…`,interrupt:`중단`,requesting:`요청 중…`,enter_to_run_command_esc_to_close_menu:`Enter로 명령 실행 / Esc로 메뉴 닫기`,enter_to_send_shift_enter_for_a_new:`Enter로 전송 / Shift + Enter로 줄바꿈`,running_command:`명령 실행 중…`,send_task:`작업 보내기`,running_2:`실행 중…`,closing_this_page_does_not_stop_tasks_interruptions:`페이지를 닫아도 작업은 중지되지 않습니다. 중단 여부는 Codex가 반환하는 실제 상태에 따라 결정됩니다.`,codex_runs_with_the_server_project_s_permissions:`Codex는 서버 프로젝트와 권한으로 실행됩니다. 작업과 변경 내용을 확인하세요.`,drag_up_to_increase_height_down_to_decrease:`위로 드래그하면 높아지고 아래로 드래그하면 낮아집니다. 방향키로도 조절할 수 있습니다`,resize_input_height:`입력창 높이 조절`,pixels:`{{v0}}픽셀`,paste_a_png_jpeg_webp_or_gif_image:`PNG, JPEG, WebP 또는 GIF 이미지를 선택하거나 붙여넣으세요.`,the_image_is_empty_copy_and_paste_it:`이미지가 비어 있습니다. 다시 선택하거나 붙여넣으세요.`,pixels_other:`{{v0}}픽셀`,pixels_one:`{{v0}}픽셀`,tap_to_send_enter_for_new_line:`전송 버튼으로 전송 · Enter로 줄바꿈`,tap_to_run_command_enter_for_new_line:`탭하여 명령 실행 · Enter로 줄바꿈`,add_images:`이미지 추가`,retry_image:`다시 읽기`,image_read_failed:`이미지를 읽을 수 없습니다. 다시 시도하거나 다시 선택하세요.`,skills_title:`스킬`,skills_search:`스킬 검색`,skills_partial:`일부 스킬을 찾지 못했습니다`,skills_no_match:`일치하는 스킬이 없습니다`,skills_empty:`스킬이 없습니다`,skills_enabled:`사용 가능`,skills_disabled:`비활성화`,skills_scope_repo:`프로젝트`,skills_scope_user:`사용자`,skills_scope_system:`시스템`,skills_scope_admin:`관리자`,skills_not_ready:`Codex가 준비되지 않았습니다. 다시 연결한 후 재시도하세요.`,skills_offline:`오프라인입니다. 스킬을 불러오려면 다시 연결하세요.`,skills_selected:`선택한 스킬`,skills_slash:`명령을 실행하기 전에 스킬 참조를 제거하세요.`,skills_steer_unsupported:`Codex 0.164.0은 실행 중인 작업에 선택한 스킬을 안정적으로 적용하지 못합니다. 작업이 끝난 후 이 초안을 보내세요.`,files_title:`작업 공간 파일`,files_type_path:`@ 뒤에 경로를 입력하세요. 공백에는 @"를 사용하세요.`,files_no_match:`일치하는 파일이 없습니다`,files_limited:`최대 50개를 표시합니다. 경로를 좁혀 주세요.`,files_offline:`오프라인입니다. 다시 연결하여 파일을 검색하세요.`,files_not_ready:`Codex가 준비되지 않아 파일을 검색할 수 없습니다.`,files_slash:`슬래시 명령을 실행하기 전에 파일 참조를 제거하세요.`,references_selected:`선택한 참조`,files_limit:`메시지당 최대 32개 파일을 참조할 수 있습니다.`},conversation:{activities:`활동 {{v0}}개`,includes_automatic_reviews:`자동 검토 {{v0}}건 포함`,aborted:`중단됨`,activities_2:`활동 {{v0}}개{{v1}}`,collapse:`접기`,expand:`펼치기`,compacting_context:`컨텍스트 압축 중…`,context_compacted:`컨텍스트 압축 완료`,context_compaction_failed:`컨텍스트 압축 실패`,context_compaction_interrupted:`컨텍스트 압축 중단됨`,context_compaction_state_unknown:`컨텍스트 압축 상태를 알 수 없습니다`,organizing_context_the_current_task_will_continue_when:`컨텍스트를 정리하고 있습니다. 완료되면 현재 작업을 계속합니다.`,no_definite_completion_result_received_check_subsequent_task:`명확한 완료 결과를 받지 못했습니다. 이후 작업 상태를 확인하세요.`,context_compaction_status:`컨텍스트 압축 상태`,output_exceeds_the_display_limit_and_has_been:`표시 한도를 초과하여 출력 일부가 잘렸습니다.`,view_changes:`변경 보기`,activity_details:`활동 세부 정보`,connection_details:`연결 세부 정보`,resynchronize:`다시 동기화`,some_older_history_is_omitted_from_this_live:`전송 크기를 줄이기 위해 실시간 스냅샷에서 이전 기록 일부를 생략했습니다.`,retry_reading:`읽기 다시 시도`,your_development_workspace:`나의 개발 작업 공간`,connect_an_existing_server_directory_to_continue_sessions:`서버의 기존 디렉터리를 연결하여 세션을 계속하거나 새 작업을 시작하세요.`,projects_are_saved_on_the_server_so_you:`프로젝트는 서버에 저장되므로 다음에도 이어서 작업할 수 있습니다.`,describe_your_task_or_paste_an_image_question:`작업을 설명하거나 이미지, 질문 또는 오류 메시지를 붙여넣으세요.`,sending_starts_a_new_session_in:`전송하면 {{v0}}에서 새 세션이 시작됩니다.`,live_execution:`실시간 실행 과정`,changes_by_turn:`턴별 변경 미리 보기`,approve_and_follow_up_anytime:`언제든 승인 및 추가 지시`,turn:`턴 {{v0}}`,changes_in_this_turn:`이 턴의 변경 내용`,view_file_and_line_changes:`파일 및 코드 줄 변경 보기`,back_to_latest:`최신 내용으로 이동`,file_changes:`파일 변경`,reasoning:`추론 과정`,tool_call:`도구 호출`,web_search:`웹 검색`,execution_plan:`실행 계획`,start_code_review:`코드 리뷰 시작`,code_review_results:`코드 리뷰 결과`,no_output_yet:`아직 출력이 없습니다`,file_changes_from_this_tool:`이 도구의 파일 변경`,codex_reply:`Codex 응답`,codex_connection_status:`Codex 연결 상태`,codex_reconnection_failed:`Codex 재연결 실패`,reconnecting_to_the_model_service_codex_will_retry:`모델 서비스에 다시 연결하고 있습니다. Codex가 자동으로 재시도하며 연결이 복구되면 작업을 계속합니다.`,codex_stopped_retrying_check_the_server_network_and:`Codex가 재시도를 중지했습니다. 서버 네트워크와 모델 서비스를 확인하세요. 이 턴이 실행 중이면 아래에서 중단한 후 지침을 다시 보내세요.`,codex_stopped_retrying_check_the_server_network_and_2:`Codex가 재시도를 중지했습니다. 서버 네트워크와 모델 서비스를 확인한 후 지침을 다시 보내세요.`,showing_local_cache_sync_failed_some_history_may:`로컬 캐시 표시 중 · 동기화에 실패하여 일부 기록이 누락되었을 수 있습니다.`,showing_local_cache_checking_latest_messages_and_task:`로컬 캐시 표시 중 · 최신 메시지 및 작업 상태 확인 중…`,session_messages:`세션 메시지`,loading_earlier_messages:`이전 메시지 불러오는 중…`,scroll_up_to_load_earlier_messages:`위로 스크롤하여 이전 메시지 불러오기`,retry_loading:`불러오기 다시 시도`,load_earlier_messages:`이전 메시지 불러오기`,no_local_cache_here_yet:`아직 로컬 캐시가 없습니다`,continue_reading_local_history:`로컬 기록 계속 읽기`,add_a_project_start_working:`프로젝트를 추가하고 작업을 시작하세요.`,start_with_an_idea:`아이디어로 시작하세요.`,the_current_project:`현재 프로젝트`,turn_changes:`턴 {{v0}} 변경 내용`,ready:`준비됨`,awaiting_approval:`승인 대기`,awaiting_answer:`답변 대기`,status_needs_checking:`상태 확인 필요`,your_instructions:`내 지침`,back_to_original_prompt:`원래 프롬프트로 이동`,images:`이미지 {{v0}}장`,user_prompt:`사용자 프롬프트`,completed_at:`완료 시간`,turn_completion_details:`턴 완료 정보`,took:`소요 시간 {{v0}}`,duration_unknown:`소요 시간 알 수 없음`,tps_unknown:`TPS 알 수 없음`,average_tps:`평균 {{v0}} TPS`,tps_cannot_be_calculated_without_complete_token_counts:`전체 토큰 통계 또는 유효한 소요 시간이 없어 TPS를 계산할 수 없습니다.`,output_tokens_including_reasoning_total_turn_duration_in:`출력 {{v0}}토큰(추론 포함) ÷ 전체 턴 소요 시간(초)입니다. 도구 호출, 승인 및 대기를 포함하므로 보통 모델 생성만의 TPS보다 낮습니다.`,completion_time_unknown:`완료 시간 알 수 없음`,images_have_no_preview:`이미지 {{v0}}장에 미리 보기가 없습니다`,your_message:`내 메시지`,sent_image:`전송된 이미지 {{v0}}`,less_than_1_second:`1초 미만`,hours:`{{v0}}시간`,min:`{{v0}}분`,sec:`{{v0}}초`,reconnecting:`Codex 다시 연결 중…`,activityState:`{{status}} {{count}}`,activities_other:`활동 {{v0}}개`,activities_one:`활동 {{v0}}개`,includes_automatic_reviews_other:`자동 검토 {{v0}}건 포함`,includes_automatic_reviews_one:`자동 검토 {{v0}}건 포함`,activities_2_other:`활동 {{v0}}개{{v1}}`,activities_2_one:`활동 {{v0}}개{{v1}}`,images_other:`이미지 {{v0}}장`,images_one:`이미지 {{v0}}장`,images_have_no_preview_other:`이미지 {{v0}}장에 미리 보기가 없습니다`,images_have_no_preview_one:`이미지 {{v0}}장에 미리 보기가 없습니다`,activityWithCommand:`{{label}}: {{command}}`,start_in_project:`전송하면 “{{v0}}”에서 새 세션이 시작됩니다.`,start_without_project:`프로젝트를 선택하지 않고 시작할 수 있습니다. 전송하면 독립된 작업 디렉터리가 할당되며 세션과 파일이 계속 보관됩니다.`,copy_command_output:`명령 출력 복사`,copy_loaded_command_output:`이 명령의 로드된 출력 복사`,command_output_copy_failed:`복사하지 못했습니다. 출력을 선택하여 직접 복사하세요.`,command_output_truncated:`출력이 잘렸습니다. 로드된 부분만 복사할 수 있습니다.`,copied_truncated_command_output:`로드된 부분을 복사했습니다(출력 잘림)`,model_busy_retrying:`모델 사용량이 많아 재시도 중`,model_busy_stopped:`모델 사용량이 많아 재시도 중지됨`,model_busy_native_retry:`Codex가 모델 용량이 확보되면 현재 작업을 계속합니다.`,retry_attempt:`재시도 {{attempt}} / {{limit}}`,model_capacity_unavailable:`모델 용량 부족`,retry_progress:`재시도 {{attempt}}/{{limit}}`,retrying_short:`재시도 중`,retry_stopped_short:`재시도 중지됨`,error_details:`오류 세부 정보`,capacity_waiting:`모델 사용량이 많아 재시도 대기 중`,capacity_cancelled:`자동 재시도가 취소되었습니다`,capacity_in_seconds:`{{seconds}}초 후 재시도`,capacity_dispatching:`재시도 시작 중…`,capacity_stopped_progress:`이 턴에 출력 또는 도구 작업이 있습니다. 확인한 후 수동으로 계속하세요.`,capacity_stopped_native:`Codex가 자체 재시도를 중지했습니다.`,capacity_stopped_limit:`자동 재시도 한도에 도달했습니다.`,capacity_stopped_error:`작업 또는 실행 환경이 변경되었습니다. 상태를 확인하세요.`,cancel_retry:`재시도 취소`,retry_with_selected_model:`선택한 모델로 재시도`,capacity_in_seconds_short:`{{seconds}}초 후`,capacity_cancelled_short:`취소됨`,capacity_limit_short:`한도 도달`,turn_tokens:`이번 턴 {{tokens}} 토큰`,turn_tokens_unknown:`턴 토큰 미보고`,submission_submitting:`전송 중…`,submission_submitted:`제출됨`,submission_unknown:`전송 결과 확인 필요`,submission_failed:`전송 실패`},errors:{operation:`작업`,target:`대상`,operation_id:`작업 ID`,workspace:`작업 공간`,execution_status:`실행 상태`,check_session_history_the_session_list_and_the:`먼저 세션 기록, 세션 목록 및 원래 실행 환경을 확인하세요. 삭제하면 이 브라우저의 미확인 기록만 제거되며 작업을 중지하거나 다시 제출하지 않습니다.`,this_session_is_still_running_wait_or_interrupt:`세션이 아직 실행 중입니다. 종료를 기다리거나 정상적으로 중단한 후 확인하세요.`,i_checked_history_and_the_original_environment_no:`기록 및 원래 실행 환경을 확인했으며 추가 확인이 필요하지 않습니다`,clear_this_browser_s_pending_record:`이 브라우저의 미확인 기록 삭제`,refresh_status_to_check_the_compatibility_confirmation_this:`호환성 확인 결과를 확인하려면 상태를 새로 고치세요. 이 기록은 작업 실행을 의미하지 않으며 자동으로 다시 제출되지 않습니다.`,this_task_is_still_running_use_the_interrupt:`작업이 아직 실행 중입니다. 입력 영역의 중단 버튼을 사용하세요.`,checked_at_original_submission_status_preserved:`{{v0}}에 확인했습니다. {{v1}} 원래 제출 상태는 유지됩니다.`,current_session:`현재 세션`,operations_and_reconciliation:`이 대화의 제출`,browser_connection:`브라우저 연결`,account_authentication:`계정 인증`,compatibility:`호환성`,gateway_authentication:`접속 인증`,supported_capabilities:`지원 기능`,connecting:`연결 중`,live_connection_healthy:`실시간 연결 정상`,disconnected:`연결 끊김`,login_required_again:`다시 로그인해야 합니다`,accepted_by_gateway:`게이트웨이에서 수락됨`,awaiting_upstream_confirmation:`상위 서비스 확인 대기`,submission_confirmed_by_upstream:`상위 서비스에서 제출 확인됨`,submission_failed:`제출 실패`,submission_result_needs_checking:`제출 결과 확인 필요`,finished:`종료됨`,end_not_confirmed:`종료 미확인`,refresh_the_session_list_and_check_for_a:`세션 목록을 새로 고쳐 원래 기록이 포함된 새 세션이 생성되었는지 확인하세요. 분기 결과 확인은 원래 작업을 중지하거나 상태를 변경하지 않습니다.`,tasks_will_not_be_resent_automatically_check_history:`작업은 자동으로 재전송되지 않습니다. 기록 및 원래 실행 환경을 확인한 후 제출 결과를 확인하세요.`,i_checked_the_session_list_and_history_and:`세션 목록과 기록을 확인하고 이번 분기 결과를 확인했습니다`,i_verified_that_the_previous_execution_has_ended:`이전 실행이 종료되었음을 확인했습니다`,submitting_reconciliation:`확인 결과 제출 중…`,reconcile_this_fork:`이번 분기 결과 확인`,reconcile_and_release_previous_execution:`종료 확인 및 이전 점유 해제`,fork_result_checked_manually_original_task_state_unchanged:`분기 결과를 수동으로 확인했습니다. 원래 작업 상태는 유지됩니다.`,previous_execution_end_checked_manually:`이전 실행의 종료를 수동으로 확인했습니다.`,diagnostics_details:`진단 세부 정보`,refresh_status:`상태 새로 고침`,current_session_information:`현재 세션 정보`,failed_to_load_session_details:`세션 세부 정보 불러오기 실패`,loading_session_details:`세션 세부 정보 불러오는 중…`,checking_session_history_and_submission_receipts:`세션 기록 및 제출 결과 확인 중…`,session_state_still_needs_checking_inspect_operation_records:`이 대화의 상태를 아직 확인할 수 없습니다. 다시 확인하거나 관련 기록을 확인하세요.`,check_submission_records_reconciliation_does_not_resend_tasks:`제출 기록을 확인하세요. 결과 확인으로 작업이 재전송되지는 않습니다.`,no_submissions_need_checking:`확인이 필요한 제출이 없습니다.`,ready:`준비됨`,starting:`시작 중`,unavailable:`사용 불가`,available:`사용 가능`,log_in_to_codex_on_the_server_computer:`서버 컴퓨터에서 Codex에 로그인해야 합니다`,unconfirmed:`미확인`,version_verified:`버전 검증됨`,version_unverified_continued_with_consent:`버전 미검증 · 계속 진행 확인됨`,version_unverified_confirmation_pending:`버전 미검증 · 확인 대기`,local_mode:`로컬 모드`,none:`없음`,your_login_expired_or_the_gateway_returned_a:`로그인이 만료되었거나 접속 경로에서 로그인 페이지를 반환했습니다. 다시 로그인하여 연결을 복구하세요.`,request_failed:`요청 실패({{v0}})`,submission_cannot_be_confirmed_record_not_found_404:`제출 결과를 확인할 수 없습니다. 기록을 찾지 못했습니다(404 / OPERATION_NOT_FOUND). 요청 미도착 또는 서비스 데이터 변경일 수 있으며 작업이 실행되지 않았다는 증거는 아닙니다.`,submission_cannot_be_confirmed:`제출 결과를 확인할 수 없습니다: {{v0}}`,unrecognized_server_message_check_version_compatibility:`인식할 수 없는 서버 메시지입니다. 버전 호환성을 확인하세요.`,could_not_parse_a_live_message_refresh_the:`실시간 메시지를 분석하지 못했습니다. 세션 스냅샷을 새로 고치세요.`,this_history_chunk_does_not_belong_to_the:`이 기록 조각은 현재 세션에 속하지 않습니다.`,history_pagination_did_not_advance_retry_syncing_the:`기록 페이지가 진행되지 않았습니다. 세션 동기화를 다시 시도하세요.`,httpFailure:`요청 실패({{code}}). 작업 및 서비스 상태를 확인한 후 다시 시도하세요.`,invalidName:`세션 이름은 비워 두거나 줄바꿈을 포함할 수 없으며 최대 100자입니다.`,unsupportedSchema:`지원되지 않는 양식 구조입니다. 기술 세부 정보를 확인하거나 요청을 취소하세요.`,AUTH_REQUIRED:`로그인이 만료되었습니다. 다시 로그인한 후 시도하세요.`,ACTION_EXPIRED:`요청이 만료되었습니다. 세션을 새로 고친 후 다시 시도하세요.`,ACTION_CONFLICT:`요청 상태가 변경되었습니다. 세션을 확인한 후 진행하세요.`,CODEX_UNAVAILABLE:`Codex를 사용할 수 없습니다. 상태 진단을 확인하세요.`,THREAD_IN_USE:`다른 프로세스가 이 세션을 사용 중입니다. 해제 후 다시 시도하거나 기록에서 분기하세요.`,THREAD_BUSY:`세션이 실행 중이거나 대기 중인 요청이 있습니다. 처리 후 다시 시도하세요.`,THREAD_ARCHIVED:`보관된 세션입니다. 먼저 보관을 해제하세요.`,THREAD_NOT_RESUMED:`세션을 재개한 후 다시 시도하세요.`,THREAD_NOT_FOUND:`세션을 찾을 수 없습니다. 세션 목록을 새로 고치세요.`,PROJECT_UNAVAILABLE:`프로젝트 디렉터리를 사용할 수 없습니다. 서버 경로 및 권한을 확인하세요.`,INVALID_PROJECT_PATH:`프로젝트 경로가 올바르지 않습니다. 서버의 절대 경로와 접근 권한을 확인하세요.`,WORK_DIR_UNAVAILABLE:`workDir가 없거나 디렉터리가 아니거나 접근할 수 없습니다. 서비스 호스트의 디렉터리와 권한을 확인하거나 다른 절대 경로를 입력하세요.`,PROJECT_EXISTS:`이 디렉터리는 이미 프로젝트로 추가되어 있습니다. 기존 프로젝트를 사용하거나 다른 디렉터리를 선택하세요.`,PROJECT_NOT_FOUND:`프로젝트를 찾을 수 없습니다. 프로젝트 목록을 새로 고치세요.`,PROJECT_BUSY:`프로젝트에 실행 중인 작업 또는 미확인 작업이 있습니다. 먼저 처리하세요.`,RESULT_UNKNOWN:`제출 결과가 확인되지 않았습니다. 중복 작업 전에 제출 결과를 확인하세요.`,OPERATION_BUSY:`작업 처리 중입니다. 제출 결과를 기다리세요.`,COMPATIBILITY_CONFIRMATION_REQUIRED:`먼저 현재 Codex 호환성 안내를 확인하세요.`,CONFIG_CONFLICT:`다른 프로세스가 설정을 변경했습니다. 다시 불러온 후 저장하세요.`,CONFIG_READ_ONLY:`현재 설정은 읽기 전용이므로 저장할 수 없습니다.`,CONFIG_UNAVAILABLE:`설정에 접근할 수 없습니다. 파일 및 서비스 권한을 확인하세요.`,INVALID_CONFIG:`설정이 잘못되었습니다. 입력 값, 네트워크 및 인증 설정을 확인하세요.`,VALIDATION_FAILED:`입력이 요구 사항을 충족하지 않습니다. 확인 후 다시 시도하세요.`,HISTORY_UNAVAILABLE:`세션 기록을 사용할 수 없습니다. 다시 동기화하세요.`,UPDATE_MAINTENANCE:`서비스 업데이트 중입니다. 복구 후 다시 시도하세요.`,PERMISSION_MODE_UNAVAILABLE:`현재 기능 또는 관리 정책에서 이 권한 모드를 사용할 수 없습니다.`,BODY_TOO_LARGE:`요청 크기가 너무 큽니다. 이미지 또는 텍스트를 줄인 후 다시 시도하세요.`,SHELL_BUSY:`Shell 명령이 실행 중입니다. 종료를 기다리거나 중단하세요.`,SHELL_NOT_FOUND:`Shell 실행 기록을 찾을 수 없습니다. 서버에서 결과를 확인하세요.`,IMAGE_NOT_FOUND:`이미지 파일이 없거나 삭제되었습니다.`,IMAGE_UNREADABLE:`이미지 파일을 읽을 수 없습니다.`,UNSUPPORTED_IMAGE_TYPE:`PNG, JPEG, WebP 및 GIF 이미지만 지원합니다.`,UNAVAILABLE:`서비스를 일시적으로 사용할 수 없습니다. 나중에 다시 시도하세요.`,READ_FAILED:`지금 세션 기록을 읽을 수 없습니다. 다시 시도하세요.`,EXPORT_FAILED:`전체 기록을 읽을 수 없어 파일을 다운로드하지 않았습니다. 나중에 다시 시도하세요.`,MARKDOWN_NOT_FOUND:`파일이 없거나 삭제되었습니다.`,JSON_NOT_FOUND:`파일이 없거나 삭제되었습니다.`,MARKDOWN_TOO_LARGE:`Markdown 파일이 미리 보기 한도인 2 MiB를 초과합니다.`,JSON_TOO_LARGE:`JSON 파일이 미리 보기 한도인 2 MiB를 초과합니다.`,INVALID_REPOSITORY:`HTTPS 또는 SSH Git 저장소 주소를 입력하세요. 호스트의 기존 인증 정보를 사용하고 비밀번호, 토큰, 쿼리 매개변수를 포함하지 마세요.`,CLONE_PARENT_UNAVAILABLE:`대상 디렉터리의 상위 디렉터리가 존재하고 서비스에 쓰기 및 접근 권한이 있어야 합니다.`,CLONE_TARGET_EXISTS:`대상이 비어 있는 일반 디렉터리가 아닙니다. 새 디렉터리나 빈 디렉터리를 선택하세요. 기존 파일은 덮어쓰지 않습니다.`,CLONE_TARGET_UNAVAILABLE:`대상 디렉터리를 확인할 수 없습니다. 서버 경로와 접근 권한을 확인하세요.`,CLONE_IN_PROGRESS:`이 디렉터리에 복제 중입니다. 완료될 때까지 기다리거나 취소한 후 계속하세요.`,CLONE_ID_CONFLICT:`이 작업 ID는 다른 복제 요청에 이미 사용되었습니다.`,GATEWAY_STOPPING:`서비스가 종료 중입니다. 잠시 후 다시 시도하세요.`,CLONE_LIMIT:`여러 저장소를 이미 복제 중입니다. 완료된 후 다시 시도하세요.`,CLONE_NOT_FOUND:`복제 기록을 찾을 수 없습니다. 서비스가 재시작되었다면 대상 디렉터리를 확인하고 기존 디렉터리로 추가하거나 새 빈 디렉터리로 다시 시도하세요.`,WORKSPACE_UNAVAILABLE:`세션의 작업 디렉터리를 사용할 수 없습니다. 서버 경로와 권한을 확인한 후 다시 시도하세요.`,CLONE_GIT_MISSING:`서버에 Git이 설치되어 있지 않거나 서비스의 PATH에서 찾을 수 없습니다. Git을 설치하거나 설정한 후 빈 디렉터리로 다시 시도하세요. 프로젝트는 추가되지 않았으며 먼저 대상 디렉터리에 남은 파일을 확인하세요.`,CLONE_AUTH_FAILED:`Git 인증에 실패했거나 저장소 접근 권한이 없습니다. 서버에서 Git 인증 정보나 SSH 키를 설정하세요. 프로젝트는 추가되지 않았습니다. 대상 디렉터리를 확인한 후 새 빈 디렉터리로 다시 시도하세요.`,CLONE_HOST_KEY_FAILED:`SSH 호스트 검증에 실패했습니다. 서버에서 저장소 호스트를 확인하고 SSH 신뢰 설정을 구성하세요. 프로젝트는 추가되지 않았습니다. 대상 디렉터리를 확인한 후 빈 디렉터리로 다시 시도하세요.`,CLONE_REPOSITORY_UNAVAILABLE:`저장소가 없거나 접근할 수 없습니다. 주소와 서버의 Git 접근 권한을 확인하세요. 프로젝트는 추가되지 않았습니다. 대상 디렉터리를 확인한 후 빈 디렉터리로 다시 시도하세요.`,CLONE_NETWORK_FAILED:`Git 저장소에 연결할 수 없습니다. 서버의 네트워크, 프록시, 인증서 설정을 확인하세요. 프로젝트는 추가되지 않았습니다. 대상 디렉터리를 확인한 후 빈 디렉터리로 다시 시도하세요.`,CLONE_TARGET_NOT_EMPTY:`대상 디렉터리에 파일이 있어 Git이 중지되었습니다. 기존 파일은 덮어쓰거나 삭제하지 않았습니다. 프로젝트는 추가되지 않았습니다. 대상 디렉터리를 확인한 후 새 빈 디렉터리로 다시 시도하세요.`,CLONE_DISK_FULL:`서버의 디스크 공간이 부족합니다. 공간을 확보하고 남은 파일을 확인한 후 새 빈 디렉터리로 다시 시도하세요. 프로젝트는 추가되지 않았습니다.`,CLONE_FAILED:`Git 복제에 실패했습니다. 저장소 주소, 서버 인증 정보, 디렉터리 권한, 디스크 공간을 확인하세요. 프로젝트는 추가되지 않았습니다. 남은 파일을 확인한 후 새 빈 디렉터리로 다시 시도하세요.`,CLONE_REGISTRATION_FAILED:`프로젝트 등록에 실패했습니다. 복제된 파일은 대상 디렉터리에 보관됩니다. 다시 복제하지 않고 프로젝트 추가를 다시 시도하거나 “기존 디렉터리”로 추가하세요.`,CLONE_TIMED_OUT:`복제가 30분을 초과하여 중지되었습니다. 프로젝트는 추가되지 않았으며 파일도 삭제되지 않았습니다. 대상 디렉터리를 확인한 후 새 빈 디렉터리로 다시 시도하세요.`,CLONE_CANCELLED:`프로젝트는 추가되지 않았으며 파일도 삭제되지 않았습니다. 대상 디렉터리에 파일이 남아 있을 수 있으니 확인한 후 새 빈 디렉터리로 다시 시도하세요.`,BACKUP_BUSY:`백업이 이미 진행 중입니다. 완료될 때까지 기다리세요.`,BACKUP_UNAVAILABLE:`백업을 사용할 수 없습니다. 서비스 설정과 기술 세부 정보를 확인하세요.`,BACKUP_FAILED:`백업에 실패했습니다. 설정, 디렉터리 권한 및 디스크 공간을 확인한 후 다시 시도하세요.`,BACKUP_INVALID:`백업이 손상되었거나 불완전하거나 호환되지 않아 복원할 수 없습니다.`,BACKUP_TIMEOUT:`안전한 시점 대기 시간이 초과되었습니다. 실행 중인 작업이 끝나면 다시 시도하세요.`,BACKUP_MAINTENANCE:`백업 중입니다. 완료된 후 다시 시도하세요.`,PROJECT_ORDER_CONFLICT:`프로젝트 목록이 변경되었습니다. 새로고침한 후 다시 순서를 변경하세요.`,TEXT_NOT_FOUND:`텍스트 파일이 없거나 삭제되었습니다.`,TEXT_TOO_LARGE:`텍스트 파일이 미리 보기 제한인 2 MiB를 초과합니다.`,TEXT_UNREADABLE:`텍스트 파일을 읽을 수 없습니다. 접근 권한을 확인하세요.`,INVALID_TEXT_CONTENT:`유효한 UTF-8 텍스트가 아니거나 바이너리 데이터가 포함되어 있습니다.`,UNSUPPORTED_TEXT_TYPE:`이 파일 형식은 텍스트 미리 보기를 지원하지 않습니다.`,INVALID_TEXT_PATH:`텍스트 파일 경로가 올바르지 않습니다.`,TEXT_OUTSIDE_PROJECT:`이 세션의 프로젝트 또는 서버 임시 디렉터리 안의 파일만 미리 볼 수 있습니다.`,TEXT_CHANGED:`텍스트 파일이 변경되었습니다. 미리 보기를 다시 여세요.`,TEXT_NOT_FILE:`텍스트 파일 경로가 일반 파일이 아닙니다.`,AGENTS_EXISTS:`AGENTS.md가 이미 있습니다. 기존 내용을 유지했습니다.`,AGENTS_CHECK_FAILED:`AGENTS.md를 확인하지 못해 초기화 작업을 제출하지 않았습니다.`,GIT_NOT_REPOSITORY:`현재 작업 공간은 Git 저장소가 아닙니다.`,GIT_UNAVAILABLE:`서버에서 Git을 사용할 수 없습니다.`,GIT_DIFF_FAILED:`변경을 읽지 못했습니다. 작업 디렉터리를 확인하고 재시도하세요.`,DENIAL_EXPIRED:`거부 기록이 만료되었습니다. 현재 대화의 목록을 다시 여세요.`,RECAP_BUSY:`이 대화의 요약을 생성 중입니다.`,RECAP_FAILED:`요약을 완료할 수 없습니다. 원래 대화는 유지됩니다.`,GOAL_UNAVAILABLE:`현재 Codex에서 목표를 사용할 수 없거나 비활성화되었습니다.`,GOAL_CONFLICT:`목표가 변경되었습니다. 현재 상태를 다시 읽으세요.`,GOAL_BUSY:`다른 목표 업데이트를 처리 중입니다. 응답을 기다리세요.`,SKILL_UNAVAILABLE:`선택한 스킬을 현재 작업 공간에서 사용할 수 없습니다. 새로 고침 후 다시 선택하세요.`,SKILLS_READ_FAILED:`스킬을 읽지 못했습니다. 새로 고침 후 재시도하세요.`,SKILL_STEER_UNSUPPORTED:`Codex 0.164.0은 실행 중인 작업에 선택한 스킬을 안정적으로 적용하지 못합니다. 작업이 끝난 후 이 초안을 보내세요.`,QUESTION_EXPIRED:`이 질문은 더 이상 사용할 수 없습니다. 세션을 새로 고치세요.`,QUESTION_BUSY:`답변을 제출 중이거나 수신 확인 대기 중입니다. 결과를 확인한 후 계속하세요.`,QUESTION_CONFLICT:`이미 처리했거나 제출 중인 질문입니다. 세션을 새로 고치세요.`,FILE_REFERENCE_OUTSIDE:`선택한 파일이 현재 작업 공간 밖에 있습니다. 다시 선택하세요.`,FILE_REFERENCE_NOT_FOUND:`파일이 이동되거나 삭제되었습니다. 다시 선택하세요.`,FILE_REFERENCE_UNREADABLE:`파일을 읽을 수 없습니다. 권한을 확인하세요.`,FILE_REFERENCE_NOT_FILE:`작업 공간의 일반 파일을 선택하세요.`,FILE_REFERENCE_CHANGED:`파일 또는 작업 공간이 변경되었습니다. 파일을 다시 선택하세요.`,FILE_SEARCH_BUSY:`파일 검색이 사용 중입니다. 잠시 후 다시 시도하세요.`,FILE_SEARCH_TIMEOUT:`파일 검색 시간이 초과되었습니다. 경로를 좁혀 다시 시도하세요.`,FILE_SEARCH_CANCELLED:`파일 검색이 취소되었습니다.`,recovery_operation_send:`메시지 전송`,recovery_operation_steer:`메시지 추가`,recovery_operation_resolve:`승인 또는 입력 응답`,recovery_operation_fork:`대화 복제`,recovery_operation_create:`대화 만들기`,recovery_operation_resume:`대화 재개`,recovery_operation_archive:`대화 보관`,recovery_operation_rename:`대화 이름 변경`,recovery_operation_compact:`컨텍스트 압축`,recovery_operation_review:`검토 시작`,recovery_operation_interrupt:`작업 중지`,recovery_operation_settings:`설정 업데이트`,recovery_operation_other:`작업 제출`,recovery_missing:`서버에서 이 제출 기록을 찾을 수 없어 결과를 확인할 수 없습니다.`,recovery_unreachable:`지금은 제출 결과를 조회할 수 없습니다. 연결을 복구한 후 다시 확인하세요.`,recovery_execution_unknown:`이 작업이 종료되었음을 확인할 수 있는 기록이 없습니다.`,recovery_receipt_unknown:`이 작업의 확정된 결과를 아직 받지 못했습니다.`,recovery_thread_unavailable:`대화 이름을 확인할 수 없음`,recovery_project_unavailable:`프로젝트 이름을 확인할 수 없음`,recovery_running:`이 대화의 작업이 실행 중입니다. 대화를 열어 확인하거나 중지하세요.`,recovery_clear_local:`이 페이지의 제한 해제`,recovery_restore_session:`대화 조작 복구`,recovery_view_history:`관련 기록 보기`,recovery_open_thread:`대화 열기`,recovery_check_again:`다시 확인`,recovery_go_to_thread:`관련 대화를 열어 기록을 확인하고 이 제출을 처리하세요.`,recovery_retry_connection:`조회가 복구될 때까지 제한이 유지되며 자동으로 다시 제출하지 않습니다.`,recovery_action_owner_missing:`이전 기록에 대화 정보가 없습니다. 승인이 있는 대화에서 처리 결과를 확인하세요.`,recovery_clear_effect:`현재 브라우저의 이 미확인 기록만 제거합니다. 작업을 중지하거나 다시 전송하지 않습니다. 원래 작업이 이미 실행되었을 수 있으므로 다시 제출하면 중복 실행될 수 있습니다.`,recovery_fork_effect:`대화 목록과 관련 기록에서 복제 결과를 확인하세요. 이 복제의 대기만 종료하며 원본 작업을 중지하거나 다시 복제하지 않습니다.`,recovery_restore_effect:`관련 기록에서 이전 작업이 종료되었는지 확인하세요. 계속하면 해당 작업의 이전 점유만 해제합니다. 작업을 중지하거나 다시 전송하지 않으며, 서버에서 실행 중으로 확인한 작업은 해제하지 않습니다.`,recovery_confirm_ended:`이전 작업 종료 확인 및 복구`,recovery_other_threads:`다른 대화 및 작업`,recovery_handle_submission:`복구 방법 보기`,recovery_responding:`이 승인 또는 입력 응답은 처리 확인을 기다리고 있으며 아직 다시 제출할 수 없습니다.`,CLONE_INTERRUPTED:`서비스가 중지되거나 다시 시작되어 복제 결과를 확인할 수 없습니다. 자동 재시도나 파일 삭제는 하지 않습니다. 대상 디렉터리를 확인하고 완료된 경우에만 기존 디렉터리로 추가하세요. 그렇지 않으면 새 빈 디렉터리에서 다시 시도하세요.`},notifications:{browser_notifications:`브라우저 알림`,send_test_notification:`테스트 알림 보내기`,background_notifications_and_sleeping_tabs:`백그라운드 알림 및 탭 절전`,keep_this_page_and_browser_open_background_tabs:`알림을 받으려면 페이지가 온라인 상태여야 합니다. 페이지와 브라우저를 계속 실행해 두세요. Web Push를 사용하지 않으므로 페이지가 동결, 삭제 또는 종료된 동안 알림이 누락될 수 있습니다. 돌아오면 결과와 읽지 않음 표시가 동기화되지만 이전 알림은 다시 보내지 않습니다.`,keep_this_site_active:`이 사이트를 활성 상태로 유지하는 방법`,chrome_settings_performance_always_keep_these_sites_active:`Chrome: 설정 → 성능 → 항상 활성 상태로 유지할 사이트에 이 사이트를 추가하세요.`,settings_instructions:`설정 안내`,edge_settings_system_and_performance_performance_always_keep:`Edge: 설정 → 시스템 및 성능 → 성능에서 항상 활성 상태로 유지할 사이트(또는 절전 모드로 전환하지 않을 사이트)에 이 사이트를 추가하세요.`,configure_this_manually_in_the_browser_names_may:`브라우저에서 직접 설정해야 하며 메뉴 이름은 버전에 따라 다를 수 있습니다.`,permission_not_granted:`권한 미부여`,permission_granted:`권한 허용됨`,blocked_by_browser:`브라우저에서 차단됨`,unsupported_browser:`지원하지 않는 브라우저`,secure_connection_required:`보안 연결 필요`,close_notification_settings:`알림 설정 닫기`,waiting_for_permission:`권한 허용 대기 중…`,disable_notifications:`알림 끄기`,enable_notifications:`알림 켜기`,allow_notifications_in_the_browser_s_site_settings:`브라우저 사이트 설정에서 알림을 허용한 후 여기에서 켜세요.`,use_https_localhost_or_127_0_0_1:`HTTPS로 접속하세요. 로컬 접속에는 localhost 또는 127.0.0.1을 사용할 수 있습니다.`,use_a_desktop_browser_that_supports_system_notifications:`시스템 알림을 지원하는 브라우저를 사용하세요. 페이지 내 상태와 읽지 않음 표시는 계속 사용할 수 있습니다.`,permission_is_requested_only_when_you_click_enable:`켜기를 눌러야 권한을 요청합니다. 이 설정은 현재 브라우저에서 이 사이트의 탭 간에 공유됩니다.`,cannot_save_notification_settings_allow_browser_storage_for:`알림 설정을 저장할 수 없습니다. 이 사이트의 브라우저 저장소 사용을 허용한 후 다시 시도하세요.`,cannot_enable_notifications_check_notification_permissions_and_site:`알림을 켤 수 없습니다. 알림 권한 및 사이트 저장소 설정을 확인하세요.`,the_browser_could_not_show_notifications_check_browser:`브라우저가 알림을 표시하지 못했습니다. 브라우저 및 시스템 설정을 확인하세요. 페이지 내 상태와 읽지 않음 표시는 계속 사용할 수 있습니다.`,cannot_show_notifications_or_save_deduplication_records_check:`알림을 표시하거나 중복 방지 기록을 저장할 수 없습니다. 알림 권한 및 사이트 저장소를 확인하세요. 페이지 내 상태와 읽지 않음 표시는 계속 사용할 수 있습니다.`,test_notification:`테스트 알림`,this_browser_cannot_show_system_notifications_check_browser:`현재 브라우저에서 시스템 알림을 표시할 수 없습니다. 브라우저 및 시스템 설정을 확인하세요.`,notification_records_are_in_use_by_another_page:`다른 페이지에서 알림 기록을 사용 중입니다. 이전 페이지를 닫고 다시 시도하세요.`,agentCompleted:`에이전트 작업이 완료되었습니다`,agentFailed:`에이전트 작업에 실패했습니다`,agentInterrupted:`에이전트 작업이 중단되었습니다`,events_description:`작업이 끝나거나 답변 또는 승인이 필요할 때 프로젝트와 대화를 표시합니다. 알림을 클릭하면 대화를 열고 대기 중인 요청으로 이동합니다.`,test_description:`에이전트 작업이 끝나거나 답변 또는 승인이 필요할 때 알려드립니다.`,answer_required:`Agent 답변 필요`,approval_required:`Agent 승인 필요`,preparing_delivery:`준비 중…`,delivery_unavailable:`알림 전송 불가`,delivery_error_initialization:`알림 서비스를 초기화하지 못했습니다. 페이지를 새로 고치거나 알림을 다시 켜세요.`,delivery_error_unsupported:`이 브라우저에서는 알림 전송 API를 사용할 수 없습니다. 시스템 알림을 지원하는 브라우저를 사용하세요.`,delivery_error_permission:`알림 권한이 취소되었습니다. 브라우저 사이트 설정에서 알림을 다시 허용하세요.`,delivery_error_delivery:`알림을 보내지 못했습니다. 브라우저와 시스템 알림 설정을 확인한 후 다시 시도하세요. 페이지 내 상태와 읽지 않음 표시는 계속 사용할 수 있습니다.`,test_submitted:`브라우저에 알림을 전달했습니다. 시스템 알림 센터를 확인하세요.`},preview:{a_change_snapshot_from_codex_containing_patches_in:`Codex가 제공한 이 범위의 변경 스냅샷입니다. 작업 공간의 모든 미커밋 변경을 나타내지는 않습니다.`,unable_to_load_changes:`변경 내용을 불러올 수 없습니다`,loading_changes:`변경 내용 불러오는 중…`,this_patch_is_truncated_only_received_content_is:`패치가 잘렸습니다. 수신한 내용만 표시합니다.`,changed_files:`변경된 파일`,original_path:`원래 경로: {{v0}}`,wrap_lines:`자동 줄바꿈`,hunks:`변경 블록 {{v0}}개`,this_patch_is_incomplete_or_malformed_line_numbers:`패치가 불완전하거나 형식이 잘못되었습니다. 줄 번호와 통계는 수신한 내용만 나타냅니다.`,binary_file_changed:`바이너리 파일 변경됨`,line_by_line_preview_is_unavailable_for_this:`이 파일은 줄별로 미리 볼 수 없습니다.`,unable_to_read_change_content:`변경 내용을 읽을 수 없습니다`,the_content_is_not_a_recognized_unified_diff:`수신한 내용이 인식 가능한 unified diff가 아닙니다. Codex의 패치 업데이트를 기다리거나 미리 보기를 다시 여세요.`,old_line:`이전 줄`,new_line:`새 줄`,code:`코드 내용`,hunk:`변경 블록 {{v0}}`,no_line_changes:`줄별 변경 내용 없음`,this_patch_changes_only_metadata_paths_or_empty:`이 패치는 파일 속성, 경로 또는 빈 파일만 변경하며 표시할 코드 줄이 없습니다.`,no_file_changes_yet:`아직 파일 변경이 없습니다`,no_previewable_patch_received_in_this_scope_yet:`이 범위에서 미리 볼 수 있는 패치를 아직 받지 못했습니다.`,lines_added_lines_removed:`{{v0}}줄 추가, {{v1}}줄 삭제`,reading_changes_timed_out_please_retry:`변경 내용 읽기 시간이 초과되었습니다. 다시 시도하세요.`,changes_from_this_turn_are_no_longer_in:`이 턴의 변경 내용이 읽을 수 있는 세션 기록에 없습니다.`,changes_from_this_tool_are_no_longer_in:`이 도구의 변경 내용이 읽을 수 있는 세션 기록에 없습니다.`,code_change_preview:`코드 변경 미리 보기`,code_changes:`코드 변경`,read_only:`{{v0}} · 읽기 전용`,change_hunk_navigation:`변경 블록 탐색`,previous_change_hunk:`이전 변경 블록`,next_change_hunk:`다음 변경 블록`,change_content:`변경 내용`,line_changes_in:`{{v0}}의 줄 변경`,change_type:`변경 유형`,context:`컨텍스트`,note:`안내`,copy_source:`원문 복사`,preview:`미리 보기`,source:`원문`,cannot_preview_this_file:`이 파일을 미리 볼 수 없습니다`,loading_file:`파일 불러오는 중…`,file_loading_timed_out_please_retry:`파일 불러오기 시간이 초과되었습니다. 다시 시도하세요.`,copied_source:`{{v0}} 원문 복사됨`,copy_failed_select_and_copy_the_source_manually:`복사하지 못했습니다. 원문을 직접 선택하여 복사하세요.`,file_preview:`{{v0}} 파일 미리 보기`,close_file_preview:`파일 미리 보기 닫기`,file:`{{v0}} 파일`,file_display_mode:`파일 표시 방식`,file_content:`파일 내용`,source_2:`{{v0}} 원문`,close:`{{v0}} 닫기`,open_original_image:`원본 이미지 열기`,retry_loading_image:`이미지 불러오기 다시 시도`,loading_image:`이미지 불러오는 중…`,image_url_unavailable:`이미지 주소를 사용할 수 없습니다.`,fit_to_window:`창에 맞추기`,to_zoom_esc_to_close:`+ / −로 확대·축소 · Esc로 닫기`,image_loading_timed_out_please_retry:`이미지 불러오기 시간이 초과되었습니다. 다시 시도하세요.`,image_failed_to_load_it_may_have_expired:`이미지를 불러오지 못했습니다. 만료, 접근 제한 또는 네트워크 문제일 수 있습니다.`,cannot_decode_image_the_file_may_be_damaged:`이미지를 해석할 수 없습니다. 파일이 손상되었거나 브라우저에서 지원하지 않는 형식일 수 있습니다.`,click_to_enlarge_image:`클릭하여 이미지 확대`,image_preview:`이미지 미리 보기`,close_image_preview:`이미지 미리 보기 닫기`,image_zoom:`이미지 확대·축소`,zoom_out:`축소`,image_zoom_level:`이미지 배율`,zoom_in:`확대`,image_viewing_area:`이미지 표시 영역`,original_image_link:`원본 이미지 링크`,original_path_2:`원래 경로`,copy_failed_select_and_copy_the_code_manually:`복사하지 못했습니다. 코드를 직접 선택하여 복사하세요.`,copy_code_block:`코드 블록 복사`,code_block:`코드 블록`,preview_file:`파일 미리 보기: {{v0}}`,table:`표`,modified:`수정`,renamed:`이름 변경`,unknown_file:`알 수 없는 파일`,no_newline_at_end_of_file:`파일 끝에 줄바꿈 없음`,output_truncated:`[출력 잘림`,content_truncated:`[내용 잘림`,invalid_json_source_preserved_check_quotes_commas_and:`JSON 형식이 잘못되었습니다. 원문은 유지됩니다. 따옴표, 쉼표 및 괄호를 확인하세요.`,json_is_too_deep_or_large_to_format:`JSON이 너무 깊거나 커서 서식을 적용할 수 없습니다. 원문은 그대로 확인할 수 있습니다.`,cannot_read_image_check_login_and_file_access:`이미지를 읽을 수 없습니다. 로그인 상태 및 파일 접근 권한을 확인하세요.`,image_loading_failed_please_retry:`이미지 불러오기 실패({{v0}}). 다시 시도하세요.`,your_login_may_have_expired_log_in_again:`로그인이 만료되었을 수 있습니다. 다시 로그인한 후 이미지를 미리 보세요.`,the_server_did_not_return_a_supported_image:`서버가 지원되는 이미지 형식을 반환하지 않았습니다.`,hunks_other:`변경 블록 {{v0}}개`,hunks_one:`변경 블록 {{v0}}개`,new_files_in_this_snapshot:`이 스냅샷의 파일: {{v0}}개`,new_choose_expand_changes_to_view_it:`{{v0}} “변경 펼치기”를 선택하여 확인하세요.`,new_collapse_changes:`변경 접기`,new_hunks:`변경 블록 {{v0}} / {{v1}}`,new_changed_file_list:`변경 파일 목록`,new_expand_changes:`변경 펼치기`,new_changes_were_collapsed_manually:`변경 내용을 수동으로 접었습니다.`,new_changes_in:`{{v0}}의 변경 내용`,new_copy_source:`소스 복사`,new_receiving_mermaid_source_the_diagram_appears_when:`Mermaid 소스를 수신 중입니다. 코드 블록이 완성되면 다이어그램을 표시합니다.`,new_cannot_render_this_mermaid_diagram_check_the:`Mermaid 다이어그램을 표시할 수 없습니다. 문법을 확인하거나 소스를 편집기에 복사하여 수정하세요.`,new_rendering_mermaid_diagram:`Mermaid 다이어그램 표시 중…`,new_mermaid_source_copied:`Mermaid 소스 복사됨`,new_copy_failed_select_and_copy_the_source:`복사하지 못했습니다. 소스를 직접 선택하여 복사하세요.`,new_view_diagram:`다이어그램 보기`,new_view_source:`소스 보기`,new_fit_width:`너비에 맞추기`,new_actual_size:`실제 크기`,new_mermaid_source:`Mermaid 소스`,new_mermaid_diagram_region:`Mermaid 다이어그램 영역`,new_mermaid_diagram:`Mermaid 다이어그램`,new_this_file_has_lines_exceeding_300_collapsed:`이 파일은 {{v0}}줄로 300줄을 초과하여 기본적으로 접혀 있습니다.`,new_this_file_exceeds_50_000_characters_collapsed:`이 파일은 50,000자를 초과하여 기본적으로 접혀 있습니다.`,empty_file:`빈 파일입니다.`,dev_title:`개발 미리 보기`,dev_preview:`미리 보기`,dev_enable:`개발 미리 보기 프록시 사용`,dev_full:`전체 요청 허용 · 고위험`,dev_risk:`등록된 서비스의 업무 API, 쓰기 요청, 모든 응답 형식 및 업무 WebSocket을 허용합니다. 인증, 프로세스 확인 및 브라우저 격리는 유지됩니다.`,dev_open:`미리 보기 열기`,dev_empty:`이 세션에서 소유권이 확인된 개발 서비스가 없습니다.`,dev_running:`실행 중`,dev_withdrawn:`사용 불가`,dev_failed:`미리 보기 요청에 실패했습니다. 연결을 확인하고 다시 시도하세요. 미리 보기를 열려면 새 탭을 허용해야 합니다.`,dev_reopen:`설정이 적용되었습니다. 새 정책을 사용하려면 미리 보기를 다시 여세요.`,dev_inspection_failed:`프로세스 확인에 실패하여 미리 보기 권한이 취소되었습니다.`,dev_unavailable:`이 플랫폼에서는 서비스 검색을 사용할 수 없습니다.`,dev_workspace:`세션 작업 공간`},settings:{currently_running:`현재 실행: {{v0}}`,configure_the_computer_running_this_service_restart_it:`이 서비스를 실행하는 컴퓨터를 설정합니다. 저장한 변경은 수동으로 재시작해야 적용됩니다.`,configuration_file:`설정 파일`,saving_does_not_restart_the_service_or_interrupt:`저장해도 서비스가 재시작되거나 작업이 중단되지 않습니다.`,reloading_discards_current_edits_and_loads_the_latest:`다시 불러오면 현재 편집 내용을 버리고 최신 파일 내용을 불러옵니다.`,discard_edits_and_reload:`편집 내용 버리고 다시 불러오기`,discard_unsaved_changes:`저장하지 않은 변경 내용을 버릴까요?`,the_configuration_file_has_not_been_changed:`설정 파일은 아직 변경되지 않았습니다.`,keep_editing:`계속 편집`,discard_changes_and_close:`변경 내용 버리고 닫기`,keep_the_current_data_directory_and_initial_project:`현재 데이터 디렉터리 및 프로젝트 초기 설정을 유지합니다. {{v0}}`,saved:`저장됨: {{v0}}`,change_to:`변경 후: {{v0}}`,no_differences_from_the_saved_configuration:`저장된 설정과 차이가 없습니다.`,view_full_json:`전체 JSON 보기`,back_to_editing:`편집으로 돌아가기`,apply_to_form:`양식에 적용`,import_configuration:`설정 가져오기`,export_saved_configuration:`저장된 설정 내보내기`,import_updates_service_settings_only_export_includes_initial:`가져오기는 서비스 설정만 업데이트합니다. 내보내기는 파일의 프로젝트 초기 설정을 포함하며 등록된 프로젝트, 세션, 데이터베이스 및 로그인 자격 증명은 포함하지 않습니다.`,network_and_access:`네트워크 및 접근`,local_tailscale_local:`로컬 / Tailscale(local)`,local_mode_listens_only_on_loopback_addresses_use:`로컬 모드는 루프백 주소에서만 수신합니다. 공개 인터넷 접속에는 Cloudflare Access를 사용하세요.`,data_and_projects:`데이터 및 프로젝트`,work_dir:`프로젝트 기본 디렉터리(workDir, 선택 사항)`,work_dir_help:`서비스 호스트의 절대 경로를 입력하세요. 저장 후 추가 및 복제에 즉시 적용됩니다. 비워 두면 절대 경로가 필요합니다. 기존 프로젝트는 이동하지 않습니다.`,service_settings_apply_help:`서비스를 실행하는 컴퓨터를 설정합니다. workDir는 저장 즉시 적용되며 다른 설정은 다시 시작해야 합니다.`,data_directory_read_only:`데이터 디렉터리(읽기 전용)`,current_runtime_directory:`현재 실행 디렉터리`,changing_the_data_directory_requires_database_migration_while:`데이터 디렉터리를 변경하려면 서비스를 중지하고 데이터베이스를 이전해야 합니다. 프로젝트는 사이드바에서 관리하세요. 이 설정은 저장된 프로젝트 관리 결과를 덮어쓰지 않습니다.`,advanced_settings:`고급 설정`,operation_failed_please_retry:`작업에 실패했습니다. 다시 시도하세요.`,configuration_files_cannot_exceed_256_kib:`설정 파일은 256 KiB를 초과할 수 없습니다.`,cannot_parse_json_check_the_file_format:`JSON을 분석할 수 없습니다. 파일 형식을 확인하세요.`,exported_saved_configuration_from_the_file_unsaved_edits:`파일에 저장된 설정을 내보냈습니다. 저장하지 않은 편집 내용은 포함되지 않습니다.`,not_set:`설정되지 않음`,close_service_settings:`서비스 설정 닫기`,loading_configuration:`설정 불러오는 중…`,reload_configuration:`설정 다시 불러오기`,saved_restart_to_apply:`저장됨, 재시작 후 적용`,saved_and_running_configurations_match:`저장된 설정과 현재 실행 중인 설정이 같습니다`,confirm_discarding_edits:`편집 내용 버리기 확인`,import_configuration_preview:`가져올 설정 미리 보기`,save_configuration_preview:`저장할 설정 미리 보기`,preview_imported_configuration:`가져올 설정 미리 보기`,confirm_configuration_changes:`설정 변경 확인`,applying_to_the_form_replaces_editable_settings_but:`양식에 적용하면 편집 가능한 설정을 대체합니다. 검토 후 저장해야 파일이 변경됩니다.`,these_changes_apply_after_restarting_the_service_confirm:`이 변경은 서비스 재시작 후 적용됩니다. 새 접속 주소 및 인증 설정을 확인하세요.`,ignored_from_the_imported_file:`가져온 파일의 {{v0}}을(를) 무시했습니다.`,imported_configuration_applied_to_form_not_saved_yet:`가져온 설정을 양식에 적용했습니다. 아직 저장되지 않았습니다.`,configuration_saved_restart_the_service_manually_when_convenient:`설정을 저장했습니다. 편한 때에 서비스를 수동으로 재시작하세요.`,configuration_saved_and_matches_the_running_configuration:`설정을 저장했으며 현재 실행 중인 설정과 같습니다.`,confirm_save:`확인 후 저장`,choose_configuration_file:`설정 파일 선택`,unsaved_changes:`저장하지 않은 변경 있음`,no_unsaved_changes:`저장하지 않은 변경 없음`,validating:`검증 중…`,review_changes:`변경 검토`,keep_current_settings:`{{v0}}(현재 설정 유지)`,current_mode:`현재 모드: {{v0}}{{v1}}`,permission_scope:`권한 범위`,approval_policy:`승인 정책`,permission_profile:`권한 프로필`,writable_directories:`쓰기 가능한 디렉터리`,temporary_directory:`임시 디렉터리`,current_network_permission:`현재 네트워크 권한: {{v0}}`,approval_reviewer:`승인 검토자: {{v0}}`,changes_apply_only_to_this_via_subject_to:`변경은 이 {{v0}}에만 적용되며 {{v1}} 요청 후 Codex가 확인합니다. 전역 설정은 변경되지 않습니다.`,keep_actual_settings_permissions_are_unchanged_until_another:`실제 설정을 유지합니다. 다른 모드를 선택하기 전에는 권한이 변경되지 않습니다.`,pending_selection_is_currently_unavailable:`적용 대기 중인 선택을 현재 사용할 수 없습니다: {{v0}}`,permission_mode:`권한 모드: {{v0}}{{v1}}`,pending:`(적용 대기)`,permission_mode_2:`권한 모드`,pending_2:`적용 대기`,write_within_project:`프로젝트 내 쓰기`,full_access:`전체 접근`,external_sandbox:`외부 샌드박스`,approval_for_untrusted_operations:`신뢰하지 않는 작업은 승인 필요`,approval_requested_by_codex:`Codex가 승인 요청`,never_request_approval:`승인 요청 안 함`,custom_approval_rules:`사용자 지정 승인 규칙`,pending_3:`; 적용 대기: {{v0}}`,inherited:`(상속됨 {{v0}})`,no_codex_sandbox_restrictions:`Codex 샌드박스 제한 없음`,writing_requires_additional_approval:`쓰기에 추가 승인 필요`,project_directory:`프로젝트 디렉터리`,excluded:`제외`,allowed:`허용`,restricted:`제한됨`,session_s_subsequent_operations:`세션의 후속 작업`,project_s_new_sessions:`프로젝트의 새 세션`,starting_the_next_task:`다음 작업 시작 시`,creating_a_new_session:`새 세션 생성 시`,current:`{{v0}} · 현재 {{v1}} / {{v2}}{{v3}}{{v4}}`,save_defaults_again:`기본값 다시 저장`,retry:`다시 시도`,reasoning_effort:`추론 강도: {{v0}}`,pending_current:`적용 대기 · 현재 {{v0}}`,current_session_settings:`현재 세션 설정`,saved_session_settings:`저장된 세션 설정`,new_session_defaults:`새 세션 기본값`,runtime_settings:`실행 설정`,applies_when_creating_a_session:`새 세션 생성 시 적용`,applies_to_the_next_task:`다음 작업에 적용`,applies_when_sending_after_resume_or_forking:`재개 후 전송 또는 분기 시 적용`,pending_speed_current:` · 속도 적용 대기: {{v0}}; 현재: {{v1}}`,pending_permissions_current:` · 권한 적용 대기: {{v0}}; 현재: {{v1}}`,undo_session_changes:`이 세션의 변경 취소`,undo_changes:`변경 취소`,saving_default_model_and_reasoning_effort:`모델 및 추론 강도 기본값 저장 중…`,saved_as_codex_defaults_for_new_sessions:`Codex 새 세션 기본값으로 저장됨`,defaults_saved_but_overridden_by_higher_priority_configuration:`기본값이 저장되었지만 우선순위가 높은 설정이 적용됩니다. 새 세션은 실제 유효 설정을 사용합니다.`,could_not_confirm_defaults_were_saved_pending_selections:`기본값 저장을 확인하지 못했습니다. 적용 대기 중인 선택은 유지됩니다. 제출 결과를 확인하세요.`,no_project_selected:`선택된 프로젝트 없음`,model:`모델: {{v0}}`,model_2:`모델`,reasoning_effort_2:`추론 강도`,turn_fast_off:`Fast 끄기`,turn_fast_on_faster_replies_increased_usage:`Fast 켜기 · 빠른 응답, 사용량 증가`,fast_is_unavailable_for_this_model:`이 모델은 Fast를 지원하지 않습니다`,fast_mode:`Fast 모드`,"0_0009765625_mib_minimum_1_kib":`0.0009765625–{{v0}} MiB(최소 1 KiB)`,range_default_mib_decimals_must_correspond_to_whole:`범위 {{v0}}, 기본값 {{v1}} MiB. 소수는 정수 바이트로 정확히 변환되어야 합니다. 1 MiB = 1024 × 1024바이트.`,listen_address:`수신 주소`,use_127_0_0_1_localhost_or_1:`로컬 모드에서는 127.0.0.1, localhost 또는 ::1을 사용하세요.`,listen_port:`수신 포트`,range_1_65535_use_the_new_port_after:`범위 1–65535. 변경 후 새 포트로 접속하세요.`,allowed_origins:`허용된 출처`,one_complete_http_s_origin_per_line_scheme:`줄마다 프로토콜, 호스트 및 포트만 포함한 전체 HTTP(S) 주소를 하나씩 입력하세요.`,access_team_domain:`Access 팀 주소`,for_example_https_your_team_cloudflareaccess_com:`예: https://your-team.cloudflareaccess.com`,access_application_aud:`Access 앱 AUD`,enter_the_cloudflare_access_application_s_audience:`Cloudflare Access 앱의 Audience를 입력하세요.`,codex_executable:`Codex 실행 파일`,enter_codex_or_an_absolute_path_on_the:`codex 또는 서버의 절대 경로를 입력하세요.`,codex_home_optional:`CODEX_HOME(선택 사항)`,leave_blank_to_inherit_the_service_environment_or:`비워 두면 서비스 환경을 상속합니다. 지정하려면 서버의 절대 경로를 입력하세요.`,request_timeout_milliseconds:`요청 제한 시간(밀리초)`,range_100_300000_default_30000:`범위 100–300000, 기본값 30000.`,codex_message_line_limit:`Codex 단일 행 메시지 한도`,event_buffer_limit:`이벤트 버퍼 한도`,websocket_buffer_limit:`WebSocket 버퍼 한도`,item_content_limit:`항목별 내용 한도`,development_origins:`개발 환경 출처`,one_local_http_s_origin_per_line_used:`줄마다 로컬 HTTP(S) 출처를 하나씩 입력하세요. --dev 모드에서만 사용합니다.`,enter_a_value_in_mib:`MiB 값을 입력하세요.`,enter_a_valid_mib_value_decimals_are_allowed:`유효한 MiB 값을 입력하세요. 소수도 사용할 수 있습니다.`,range:`범위: {{v0}}.`,the_mib_value_must_correspond_to_whole_bytes:`MiB 값은 정수 바이트로 정확히 변환되어야 합니다. 자동 반올림하지 않으므로 소수 값을 조정하세요.`,custom:`사용자 지정 · {{v0}}`,custom_2:`사용자 지정`,cannot_determine_mode:`모드를 확인할 수 없습니다`,fast_off:`Fast 꺼짐`,fast_on:`Fast 켜짐`,permission_ask:`승인 요청`,permission_ask_description:`프로젝트 내 읽기, 쓰기 및 명령 실행이 가능합니다. 네트워크 또는 범위 밖 접근은 사용자가 승인합니다.`,"permission_auto-review":`자동 승인 검토`,"permission_auto-review_description":`승인 요청 모드와 같은 권한 범위이며 해당되는 요청은 자동 검토합니다.`,"permission_full-access":`전체 접근`,"permission_full-access_description":`프로젝트 밖 파일 및 네트워크에 접근하며 Codex 샌드박스 제한이나 승인이 없습니다.`,"permission_read-only":`읽기 전용`,"permission_read-only_description":`파일을 읽을 수 있으며 쓰기 또는 네트워크 접근에는 사용자 승인이 필요합니다.`,permission_unavailable:`현재 Codex 기능 또는 관리 정책에 따라 이 모드를 사용할 수 없습니다.`,missingCapabilities:`권한 모드의 사용 조건을 아직 읽지 않았습니다.`,profileRestricted:`관리 정책에서 이 권한 프로필을 허용하지 않습니다.`,scopeRestricted:`관리 정책에서 이 권한 범위를 허용하지 않습니다.`,policyRestricted:`관리 정책에서 이 승인 정책을 허용하지 않습니다.`,reviewerMissing:`검토자의 사용 조건을 아직 읽지 않았습니다.`,reviewerRestricted:`관리 정책에서 이 검토자를 허용하지 않습니다.`,autoReviewDisabled:`현재 Codex에서 자동 검토(guardian_approval)가 활성화되지 않았습니다.`,autoReviewRequired:`관리 정책에 따라 이 모델은 자동 검토를 사용해야 합니다.`,fieldUnit:`{{label}}(MiB)`,fieldError:`{{label}}: {{reason}}`,temporaryDirectories:`TMPDIR: {{tmpdir}}; /tmp: {{slashTmp}}`,model_settings:`모델 설정`,close_model_settings:`모델 설정 닫기`,next_turn:`다음 턴에 적용`,live_updating:`실행 중인 작업 업데이트 중…`,live_fast_applied:`Fast: 이후 모델 단계에 반영`,live_reviewer_applied:`검토자: 이후 단계에 반영. 대기 중인 승인은 유지`,live_permissions_deferred:`권한: 다음 턴에 적용 (샌드박스 및 승인 정책 고정)`,live_fast_deferred:`Fast: 실행 중 업데이트가 확인될 때까지 다음 턴에 적용`,context_trigger:`컨텍스트 사용량`,context_not_reported:`사용량 미보고`,context_stale:`마지막으로 확인된 사용량`,context_compaction:`컨텍스트 변경 후 보고 대기 중`,context_modelChanged:`모델 변경 후 보고 대기 중`,context_recent:`최근 모델 호출`,context_usage:`컨텍스트 {{used}} / {{limit}} 토큰`,thread_only_model_selection:`현재 세션에만 적용`,model_catalog_unavailable:`이 세션의 모델 목록을 불러올 수 없습니다.`,restart_idle:`Covro가 유휴 상태입니다.`,restart_title:`Covro 재시작`,restart_description:`서비스와 관리 중인 Codex app-server를 재시작해 저장된 설정을 적용합니다.`,restart_unsupported:`웹 재시작은 macOS 또는 Linux에서 Covro CLI로 실행한 서비스에 제공됩니다. 이 배포에서는 기존 서비스 제어 방법을 사용하세요.`,restart_busy:`다음 작업이 끝나기를 기다리는 중입니다. {{tasks}}.`,restart_when_idle:`유휴 상태가 되면 재시작`,restart_cancel:`예약된 재시작 취소`,restart_phase_waiting:`유휴 상태 대기 중`,restart_phase_restarting:`Covro 재시작 중`,restart_phase_verifying:`새 Codex app-server 확인 중`,restart_phase_succeeded:`Covro를 재시작하고 다시 연결했습니다`,restart_phase_cancelled:`재시작이 취소되었습니다`,restart_failed:`재시작에 실패했습니다`,restart_reconnecting:`Covro에 다시 연결하는 중…`,restart_unreachable:`Covro에 아직 연결되지 않았습니다. 호스트에서 서비스를 확인하세요.`,restart_blocker_running:`실행 중인 세션`,restart_blocker_approval:`대기 중인 승인`,restart_blocker_input:`입력 요청`,restart_blocker_clone:`Git 복제`,restart_blocker_shell:`셸 명령`,restart_blocker_retry:`모델 재시도`,restart_blocker_operation:`처리 중이거나 확인이 필요한 작업`,restart_blocker_maintenance:`서비스 유지보수`,restart_failure_timedOut:`30분 이내에 유휴 상태가 되지 않았습니다. 남은 작업을 확인하고 다시 시도하세요.`,restart_failure_config:`Covro 설정을 읽거나 검증하지 못했습니다. 저장된 파일을 확인하세요.`,restart_failure_identity:`데이터 디렉터리, 수신 주소 또는 접근 설정이 변경되었습니다. 기존 서비스 제어 방법으로 변경 사항을 적용하세요.`,restart_failure_launch:`현재 Covro 실행 파일을 확인하거나 다시 불러오지 못했습니다. 기존 설치 및 실행 환경을 확인하세요.`,restart_failure_shutdown:`관리 중인 서비스가 중지되었는지 확인하지 못했습니다. 서비스를 다시 시작하기 전에 호스트 로그를 확인하세요.`,restart_failure_interrupted:`재시작을 확인하기 전에 서비스가 중지되었습니다.`,restart_failure_startup:`새 Covro 프로세스를 시작하지 못했습니다. 호스트의 서비스 로그를 확인하세요.`,restart_failure_codex:`Covro는 시작되었지만 새 Codex app-server가 제시간에 준비되지 않았습니다. Codex 설정과 로그를 확인하세요.`,restart_failure_storage:`재시작 기록을 저장하지 못했습니다. 권한과 여유 공간을 확인하세요.`,restart_failure_activity:`app-server가 유휴 상태인지 확인하지 못했습니다. Codex 연결을 확인하고 다시 시도하세요.`,restart_request_failed:`요청을 완료하지 못했습니다. 최신 상태를 확인한 뒤 다시 시도하세요.`,restart_receipt_unknown:`요청 응답을 받지 못했습니다. 저장된 재시작 상태를 확인 중입니다.`,restart_retry_request:`같은 요청 확인`,restart_status_unavailable:`재시작 상태를 확인할 수 없습니다. 다시 연결하고 있습니다.`,restart_recovery_help:`호스트에서 동일한 --config로 covro status와 covro logs를 실행하고 로그에서 아래의 재시작 ID를 확인하세요.`},shell:{collapsing_does_not_stop_commands:`접어도 명령은 중지되지 않습니다{{v0}}`,commands_use_the_codex_server_sandbox_independently_of:`명령은 세션 권한과 별개로 Codex 서버의 샌드박스에서 프로젝트 루트를 기준으로 실행됩니다. 대화형 입력은 지원하지 않습니다. 접기, 닫기 또는 프로젝트 전환으로 명령이 중지되지는 않습니다.`,still_running_in_other_projects_switch_to_view:`다른 프로젝트에서 실행 중: {{v0}}. 해당 프로젝트로 전환하여 확인하거나 중단하세요.`,shell_disconnected_reconnecting_received_output_is_preserved_and:`Shell 연결이 끊겨 다시 연결하고 있습니다. 수신된 출력은 유지되며 실행 상태는 확인이 필요합니다. 브라우저 연결이 끊겨도 명령은 중지되지 않습니다.`,checking_command_submission:`명령 제출 결과 확인 중:`,check_and_retry_original_submission:`확인 후 원래 제출 다시 시도`,recent_commands:`최근 명령`,not_run_yet:`아직 실행하지 않음`,reuse_command:`명령 재사용`,exit_code:`종료 코드 {{v0}}`,output_truncated_64_kib_maximum:`출력 잘림(최대 64 KiB)`,run_commands_in_the_project_directory_and_view:`프로젝트 디렉터리에서 명령을 실행하고 출력을 실시간으로 확인하세요.`,for_example_git_status_pwd_or_project_tests:`예: git status, pwd 또는 프로젝트 테스트`,shell_command:`Shell 명령`,interrupting:`중단 중`,result_unknown:`결과 알 수 없음`,shell_panel:`Shell 패널`,select_a_project:`프로젝트를 선택하세요`,expand_shell:`Shell 펼치기`,collapse_shell:`Shell 접기`,close_shell_panel:`Shell 패널 닫기`,running_in_other_projects:` · 다른 프로젝트 {{v0}}개에서 실행 중`,recent_shell_commands:`최근 Shell 명령`,shell_output:`Shell 출력`,waiting_for_output:`출력 대기 중…`,no_output:`출력 없음`,enter_a_command:`명령을 입력하세요…`,commands_run_on_the_server_and_can_be:`명령은 서버에서 실행되며 언제든 중단할 수 있습니다`,ctrl_enter_to_run_10_minute_limit:`Ctrl / ⌘ + Enter로 실행 · 최대 10분`,interrupting_2:`중단 중…`,interrupt_command:`명령 중단`,the_service_restarted_execution_state_cannot_be_restored:`서비스가 재시작되어 실행 상태를 복구할 수 없습니다. 수신된 출력은 유지됩니다.`,execution_was_submitted_but_its_record_expired_or:`실행이 제출되었지만 기록이 만료되었거나 서비스가 재시작되었습니다. 서버의 결과를 확인하세요.`,command_could_not_start:`명령을 시작하지 못했습니다`,submission_is_unconfirmed_and_being_checked_do_not:`제출 결과를 확인 중입니다. 중복 실행하지 마세요.`,submission_is_still_unconfirmed:`제출 결과가 아직 확인되지 않았습니다`,interrupt_result_is_unconfirmed_refresh_and_check:`중단 결과가 확인되지 않았습니다. 새로 고친 후 확인하세요.`,interrupt_failed_please_retry:`중단하지 못했습니다. 다시 시도하세요.`,still_running_in_other_projects_switch_to_view_other:`다른 프로젝트에서 실행 중: {{v0}}. 해당 프로젝트로 전환하여 확인하거나 중단하세요.`,still_running_in_other_projects_switch_to_view_one:`다른 프로젝트에서 실행 중: {{v0}}. 해당 프로젝트로 전환하여 확인하거나 중단하세요.`,running_in_other_projects_other:` · 다른 프로젝트 {{v0}}개에서 실행 중`,running_in_other_projects_one:` · 다른 프로젝트 {{v0}}개에서 실행 중`},sidebar:{remove_from_this_workspace:`작업 공간에서 “{{v0}}”을(를) 제거할까요?`,only_the_project_list_entry_is_removed_server:`프로젝트 목록의 항목만 제거됩니다. 서버 파일 및 세션 기록은 유지됩니다.`,add_the_same_directory_later_to_access_its:`나중에 같은 디렉터리를 추가하면 기존 기록에 다시 접근할 수 있습니다. 실행 중인 작업 및 미확인 작업을 먼저 처리하세요.`,server_directory:`서버 디렉터리`,enter_an_existing_absolute_path_on_the_server:`브라우저가 실행되는 기기가 아닌 서버의 기존 절대 경로를 입력하세요. 서비스에 접근 권한이 있어야 합니다.`,resolved_path:`최종 서버 경로`,path_resolving:`경로 확인 중…`,path_retry:`경로 다시 확인`,work_dir_path_help:`서버에 있는 디렉터리를 입력하세요. 상대 경로는 서비스 설정의 workDir를 기준으로 완성되며 절대 경로는 그대로 사용됩니다.`,work_dir_clone_help:`설정된 경우 workDir/저장소 이름이 기본값이며 수정할 수 있습니다. 상대 경로는 workDir를 기준으로 완성되며 절대 경로는 그대로 사용됩니다. 상위 디렉터리가 존재하고 쓰기 가능해야 합니다.`,your_login_expired_log_in_again_to_manage:`로그인이 만료되었습니다. 다시 로그인한 후 프로젝트를 관리하세요.`,remove_project:`프로젝트 제거…`,remove_project_2:`프로젝트 제거`,add_server_project:`서버 프로젝트 추가`,close_project_management:`프로젝트 관리 닫기`,set_a_recognizable_project_name_or_remove_it:`알아보기 쉬운 이름을 설정하거나 작업 공간에서 프로젝트를 제거하세요.`,add_an_existing_directory_on_the_server_running:`Codex Web UI를 실행하는 서버의 기존 디렉터리를 추가하여 기록을 보고 작업을 시작하세요.`,project_name:`프로젝트 이름`,project_name_optional:`프로젝트 이름(선택 사항)`,defaults_to_directory_name:`기본값은 디렉터리 이름`,back:`뒤로`,removing:`제거 중…`,confirm_removal:`제거 확인`,save_name:`이름 저장`,projects_and_sessions:`프로젝트 및 세션`,archived_sessions:`보관된 세션`,all_sessions_loaded:`모든 세션을 불러왔습니다`,runs_on_server:`서버에서 실행`,code_and_credentials_stay_on_the_computer_running:`코드와 자격 증명은 서비스를 실행하는 컴퓨터에 보관됩니다`,close_session_navigation:`세션 탐색 닫기`,updating:`업데이트 중`,update_available:`새 버전 있음`,version_and_updates:`버전 및 업데이트`,close_navigation:`탐색 닫기`,search_projects_and_loaded_sessions:`프로젝트 및 불러온 세션 검색`,search_results_projects:`검색 결과 · 프로젝트 {{v0}}개`,all_projects:`모든 프로젝트 · {{v0}}`,session_list_scope:`세션 목록 범위`,refresh_session_list:`세션 목록 새로 고침`,active_sessions:`진행 중인 세션 {{v0}}개`,creating:`생성 중…`,new_session:`새 세션`,manage_project:`프로젝트 {{v0}} 관리`,no_matches_among_loaded_sessions:`불러온 세션에 일치하는 결과가 없습니다.`,no_archived_sessions_yet:`아직 보관된 세션이 없습니다.`,no_sessions_yet_create_one_to_get_started:`아직 세션이 없습니다. 새로 만들어 시작하세요.`,local_list_sync_failed_browsing_is_still_available:`로컬 목록 동기화에 실패했습니다. 계속 탐색할 수 있습니다.`,showing_local_list_syncing_in_background:`로컬 목록 표시 중, 백그라운드 동기화 중…`,some_local_entries_are_not_synced_load_more:`일부 로컬 목록이 동기화되지 않았습니다. 더 불러와서 확인하세요.`,loading_more_sessions:`세션 더 불러오는 중…`,syncing_sessions:`세션 동기화 중…`,load_failed_retry:`불러오기 실패, 다시 시도`,load_more_sessions:`세션 더 불러오기`,no_matching_projects_or_loaded_sessions:`일치하는 프로젝트 또는 불러온 세션이 없습니다.`,no_projects_yet_add_a_server_directory_to:`아직 프로젝트가 없습니다. 서버 디렉터리를 추가하여 시작하세요.`,loading_projects:`프로젝트 불러오는 중…`,copy_full_thread_id:`전체 Thread ID 복사`,copy_thread_id:`Thread ID 복사`,copy_failed_select_and_copy_the_id_manually:`복사하지 못했습니다. ID를 직접 선택하여 복사하세요.`,created_from:`생성 출처`,updated_at:`업데이트 시간`,task_status:`작업 상태`,read_status:`읽음 상태`,pending:`대기 중`,pending_requests:`대기 중인 요청 {{v0}}개`,session_type:`세션 유형`,forked_session:`분기된 세션`,source_records_the_client_used_at_creation_not:`출처는 생성 시 사용한 클라이언트를 나타내며 현재 실행 위치나 연결 상태를 의미하지 않습니다.`,untitled_session:`제목 없는 세션`,archive_session:`세션 보관`,unread:` · 읽지 않음`,pending_requests_2:` · 대기 중인 요청 {{v0}}개`,session_details_and_source:`세션 세부 정보 및 출처`,session_details:`세션 세부 정보: {{v0}}`,fork_session_copy_saved_history_both_sessions_can:`세션 분기: 저장된 기록을 복사합니다. 원래 세션과 새 세션을 동시에 실행할 수 있습니다.`,fork_session:`세션 분기`,unread_2:`읽지 않음`,read:`읽음`,session_history:`세션 기록`,enter_a_session_name:`세션 이름을 입력하세요.`,rename_session:`세션 이름 변경`,session_name:`세션 이름`,save_session_name:`세션 이름 저장`,cancel_rename:`이름 변경 취소`,enter_to_save_esc_to_cancel_up_to:`Enter로 저장 · Esc로 취소 · 최대 {{v0}}자`,click_title_to_rename_session:`제목을 클릭하여 세션 이름 변경`,created_by_covro_this_web_page:`Covro(이 웹페이지)에서 생성되었습니다.`,created_by_the_codex_terminal_cli:`Codex 터미널 CLI에서 생성되었습니다.`,created_by_the_codex_extension_in_vs_code:`VS Code의 Codex 확장에서 생성되었습니다.`,created_by_the_codex_desktop_app:`Codex 데스크톱 앱에서 생성되었습니다.`,recorded_creator:`기록된 생성 클라이언트: “{{v0}}”.`,recorded_as_a_codex_terminal_cli_source:`Codex 터미널 CLI 출처로 기록되었습니다.`,interactive_client:`대화형 클라이언트`,codex_only_recorded_an_interactive_source_category_it:`Codex는 대화형 출처 분류만 기록했습니다. 웹, 터미널 또는 IDE일 수 있으며 정확한 생성 클라이언트는 알 수 없습니다.`,recorded_as_a_codex_mcp_service_source:`Codex MCP 서비스 출처로 기록되었습니다.`,command_line_task:`명령줄 작업`,recorded_as_a_non_interactive_codex_command_line:`비대화형 Codex 명령줄 작업으로 기록되었습니다.`,source_unconfirmed:`출처 미확인`,no_recognizable_creator_codex_source_is_recorded_as:`식별 가능한 생성 정보가 없으며 Codex 출처는 “{{v0}}”(으)로 기록되었습니다.`,no_recognizable_creator_information:`식별 가능한 생성 정보가 없습니다.`,the_session_service_restarted_retry_loading_sessions:`세션 서비스가 재시작되었습니다. 세션 불러오기를 다시 시도하세요.`,session_pagination_did_not_advance_retry_or_refresh:`세션 페이지가 진행되지 않았습니다. 다시 시도하거나 세션 목록을 새로 고치세요.`,too_many_session_pages_read_retry_or_refresh:`읽은 세션 페이지가 너무 많습니다. 다시 시도하거나 목록을 새로 고치세요.`,search_results_projects_other:`검색 결과 · 프로젝트 {{v0}}개`,search_results_projects_one:`검색 결과 · 프로젝트 {{v0}}개`,all_projects_other:`모든 프로젝트 · {{v0}}`,all_projects_one:`모든 프로젝트 · {{v0}}`,active_sessions_other:`진행 중인 세션 {{v0}}개`,active_sessions_one:`진행 중인 세션 {{v0}}개`,pending_requests_other:`대기 중인 요청 {{v0}}개`,pending_requests_one:`대기 중인 요청 {{v0}}개`,pending_requests_2_other:` · 대기 중인 요청 {{v0}}개`,pending_requests_2_one:` · 대기 중인 요청 {{v0}}개`,enter_to_save_esc_to_cancel_up_to_other:`Enter로 저장 · Esc로 취소 · 최대 {{v0}}자`,enter_to_save_esc_to_cancel_up_to_one:`Enter로 저장 · Esc로 취소 · 최대 {{v0}}자`,clone_intro:`Git 저장소를 Covro가 실행 중인 서버에 복제합니다. 복제가 완료되면 프로젝트가 자동으로 추가됩니다.`,clone_repository:`Git 저장소 주소`,clone_auth_help:`HTTPS와 SSH(예: git@github.com:owner/repo.git)를 지원합니다. 서버의 기존 Git 인증 정보를 사용합니다. 주소에 비밀번호나 토큰을 포함하지 마세요.`,clone_target:`서버 대상 디렉터리`,clone_path_help:`서버의 절대 경로를 입력하세요. 상위 디렉터리가 존재하고 쓰기 가능해야 합니다. 대상 디렉터리는 없거나 비어 있어야 하며 기존 파일은 덮어쓰지 않습니다.`,clone_background_help:`페이지를 닫거나 새로고침해도 복제가 취소되지 않습니다. 중지하려면 “복제 취소”를 선택하세요.`,clone_open:`프로젝트 열기`,clone_register_retry:`프로젝트 추가 다시 시도`,clone_empty_retry:`빈 디렉터리로 다시 시도`,clone_checking:`복제 상태 확인 중…`,clone_progress:`복제 진행률`,clone_cancelling:`취소 중…`,clone_cancel:`복제 취소`,clone_start:`복제 후 프로젝트 추가`,import_existing:`기존 디렉터리`,import_clone:`Git 저장소 복제`,import_source:`프로젝트 가져오기 방식`,search_results_groups:`검색 결과 · 그룹 {{v0}}개`,all_sessions_projects:`전체 세션 · 프로젝트 {{v0}}개`,new_unassigned_session:`새 세션 (프로젝트 불필요)`,no_sessions_yet:`아직 세션이 없습니다. 바로 새 세션을 시작하거나 프로젝트를 추가하세요.`,clone_progress_percent:`{{v0}} {{v1}}`,clone_stage_connecting:`저장소에 연결 중…`,clone_stage_receiving:`객체 수신 중`,clone_stage_resolving:`델타 분석 중`,clone_stage_checking_out:`파일 체크아웃 중`,clone_stage_counting:`객체 수 계산 중`,clone_stage_compressing:`객체 압축 중`,clone_stage_cancelling:`취소 중입니다. Git이 종료되기를 기다리는 중…`,clone_stage_completed:`복제가 완료되어 프로젝트가 추가되었습니다`,clone_stage_registration_failed:`복제는 완료되었지만 프로젝트가 아직 추가되지 않았습니다`,clone_stage_timed_out:`복제 시간이 초과되어 중지되었습니다`,clone_stage_cancelled:`복제가 취소되었습니다`,clone_stage_failed:`복제에 실패했습니다`,search_results_groups_one:`검색 결과 · 그룹 {{v0}}개`,search_results_groups_other:`검색 결과 · 그룹 {{v0}}개`,all_sessions_projects_one:`전체 세션 · 프로젝트 {{v0}}개`,all_sessions_projects_other:`전체 세션 · 프로젝트 {{v0}}개`,reorder_projects:`프로젝트 순서 변경`,project_order:`프로젝트 순서`,order_done:`완료`,order_help:`프로젝트를 드래그하거나 위아래 버튼으로 순서를 변경하세요. 새로 추가하거나 다시 추가한 프로젝트는 마지막에 표시됩니다.`,project_display_order:`프로젝트 표시 순서`,order_position:`{{v1}}개 중 {{v0}}번째`,order_move_up:`프로젝트 위로 이동: {{v0}}`,order_move_down:`프로젝트 아래로 이동: {{v0}}`,order_saving:`순서 저장 중…`,order_saved:`순서가 저장되었습니다`,order_auto_save:`변경 사항은 자동 저장되며 새로고침과 재시작 후에도 유지됩니다.`,order_save_failed:`{{v0}} 다시 시도하세요.`,settings:`설정`,browser_notifications:`브라우저 알림`,browser_notifications_status:`브라우저 알림 · {{v0}}`,tasks:`작업`,background_tasks:`백그라운드 작업`,clone_background:`백그라운드에서 실행`,tasks_empty:`아직 백그라운드 작업이 없습니다`,tasks_connection_lost:`연결이 끊겼습니다. 작업 상태를 다시 확인하고 있습니다.`,tasks_view:`보기`,tasks_checking:`제출 결과를 확인 중입니다. 닫고 작업에서 확인하세요. 다시 제출하지 마세요.`,clone_stage_interrupted:`서비스 중단으로 복제 결과를 확인하지 못했습니다`},updates:{recommended_verified:`권장: {{v0}} · 검증됨: {{v1}}`,current_covro:`현재 Covro`,release_channel:`출시 채널`,auto_update_when_idle:`유휴 시 자동 업데이트`,periodically_check_this_channel_and_install_verified_codex:`이 채널을 주기적으로 확인하고 작업 종료 후 검증된 Codex 조합을 설치한 다음 재시작합니다.`,subscribed_to_switches_to_after_a_successful_update:`현재 구독: {{v0}}. 업데이트 성공 후 {{v1}}(으)로 전환됩니다.`,i_agree_to_try_the_unverified_combination_of:`이번 업데이트에 한해 검증되지 않은 Codex {{v0}} 및 Covro {{v1}} 조합을 사용해 보는 데 동의합니다.`,allow_downgrade_incompatible_databases_still_block_switching:`다운그레이드 허용, 데이터베이스가 호환되지 않으면 전환 차단`,version_source_official_npm_registry:`버전 출처: npm 공식 레지스트리 · {{v0}}`,update_history:`업데이트 기록`,updates_preserve_configuration_projects_and_session_history_processing:`업데이트해도 설정, 프로젝트 및 세션 기록은 유지됩니다. 페이지를 닫아도 처리가 계속되며 재시작 후 자동으로 다시 연결됩니다.`,stable:`안정 버전`,beta:`미리 보기 버전`,development:`개발 버전`,installing_candidate_version:`후보 버전 설치 중`,waiting_for_tasks_to_finish:`작업 종료 대기`,backing_up_and_restarting:`백업 및 재시작 중`,verifying_new_version:`새 버전 검증 중`,update_successful:`업데이트 성공`,previous_version_restored:`이전 버전 복원됨`,update_failed:`업데이트 실패`,verified:`검증됨`,unverified:`검증되지 않음`,explicitly_unsupported:`명시적으로 지원하지 않음`,cannot_confirm:`확인할 수 없음`,unrecognized:`인식되지 않음`,close_update_settings:`업데이트 설정 닫기`,current_codex:`실행 중인 Codex`,verified_releases_for_everyday_use:`일상적인 사용에 적합한 검증된 정식 버전입니다.`,try_features_being_prepared_for_release:`베타와 더 최신의 안정 버전을 받으며 업데이트 후에도 베타 구독을 유지합니다.`,follows_checked_main_commits_for_developers_testing_new:`검증된 main 변경 사항과 더 최신의 안정 버전을 받습니다. 베타는 포함하지 않으며 업데이트 후에도 개발 버전 구독을 유지합니다.`,disabled:`꺼짐`,this_channel_is_already_at_the_current_version:`이 채널은 이미 현재 버전입니다`,target_version:`대상 버전`,available_version:`사용 가능한 버전`,target_version_compatibility:`대상 버전 호환성`,allow_trying_an_unverified_codex_combination:`검증되지 않은 Codex 조합 시도 허용`,auto_update_is_paused_adjust_the_codex_version:`자동 업데이트가 일시 중지되었습니다. Codex 버전을 조정한 후 다시 확인하거나 동의한 후 수동으로 시도하세요.`,auto_update_is_paused_restore_the_codex_connection:`자동 업데이트가 일시 중지되었습니다. 재시작 후 Codex 실행 경로와 대상 버전의 호환성 정보를 확인한 후 다시 확인하세요.`,processing:`처리 중…`,check_for_updates:`업데이트 확인`,use_this_channel:`이 채널 사용`,switch_and_restart:`전환 및 재시작`,update_and_restart:`업데이트 및 재시작`,update_progress:`업데이트 진행 상황`,draft_backup_failed_page_reload_postponed:`초안 백업에 실패하여 페이지 새로 고침을 보류했습니다`,connection_interrupted_waiting_for_the_service_to_recover:`연결이 중단되었습니다. 서비스 복구 대기 중…`,operation_unconfirmed_check_update_status:`작업 결과가 확인되지 않았습니다. 업데이트 상태를 확인하세요.`,cannot_open_draft_backup_close_old_pages_and:`초안 백업을 열 수 없습니다. 이전 페이지를 닫고 다시 시도하세요.`,draft_backup_failed:`초안 백업 실패`,manualUpdate:`이 배포 환경에서는 버전 확인만 지원합니다. 기존 배포 방식으로 업데이트한 후 서비스를 재시작하세요.`,checkFailed:`업데이트를 확인하지 못했습니다. 기술 세부 정보를 확인하고 나중에 다시 시도하세요.`,installingDescription:`후보 버전을 설치 중이며 기존 세션은 유지됩니다.`,waitingDescription:`작업, 승인 및 미확인 작업이 끝난 후 버전을 전환합니다.`,stoppingDescription:`기존 서비스를 중지하고 데이터를 백업 중이며 새 작업은 일시 중지됩니다.`,verifyingDescription:`새 버전 시작, 데이터 이전 및 검증 중이며 새 작업은 계속 일시 중지됩니다.`,succeededDescription:`업데이트에 성공했으며 서비스가 복구되었습니다.`,rolledBackDescription:`새 버전을 시작하지 못해 이전 버전으로 복구했습니다. 기술 세부 정보를 확인하세요.`,failedDescription:`업데이트가 완료되지 않았습니다. 기술 세부 정보 및 서비스 로그를 확인하고 실행 중인 버전을 확인하세요.`,releaseNotes:`릴리스 노트`,releaseNotesFor:`릴리스 노트 · {{version}}`,viewOnGitHub:`GitHub에서 보기`,releaseNotesContent:`릴리스 노트 본문`,releaseNotesLoading:`릴리스 노트 로드 중…`,releaseNotesMissing:`이 버전의 릴리스 노트가 없습니다. 일부 Beta / Dev 버전에는 GitHub Release가 없습니다. 업데이트는 계속할 수 있습니다.`,releaseNotesEmpty:`이 릴리스에는 아직 설명이 없습니다. 업데이트는 계속할 수 있습니다.`,releaseNotesRateLimited:`GitHub 요청 한도에 도달했습니다. 나중에 다시 시도하세요. 업데이트는 계속할 수 있습니다.`,releaseNotesFailed:`릴리스 노트를 로드하지 못했습니다. 연결을 확인하고 다시 시도하세요. 업데이트는 계속할 수 있습니다.`,runtime:`Node 환경`,installation_source:`설치 위치`,runtime_unavailable:`대상 Node 환경을 확인할 수 없습니다. 세부 정보를 확인한 후 다시 확인하세요.`,migrate_and_restart:`Node 전환 후 다시 시작`,cancelled:`업데이트 취소됨`,cancel_pending_update:`대기 중인 업데이트 취소`,cancelledDescription:`대기 중인 업데이트가 취소되었습니다. 현재 서비스는 계속 실행됩니다.`,after_restart:`재시작 후 Codex`,unverified_combination:`Codex {{version}}과(와) 이 Covro 버전의 조합은 검증되지 않았습니다.`,unknown_compatibility:`Codex 버전 또는 호환성 정보를 확인할 수 없습니다. 다시 확인하세요.`,restart_unavailable:`재시작 후 Codex를 확인할 수 없습니다. 실행 경로를 확인하고 다시 시도하세요.`,unsupported_combination:`이 Covro 버전은 Codex {{version}}을(를) 지원하지 않습니다.`},workspace:{simulation_mode_results_come_from_the_explicitly_enabled:`시뮬레이션 모드 · 명시적으로 활성화한 테스트 app-server의 실행 결과입니다`,your_login_has_expired_disconnecting_this_page_does:`로그인이 만료되었습니다. 페이지 연결이 끊겨도 작업은 취소되지 않습니다.`,reopen_login:`로그인 화면 다시 열기`,live_connection_showing_the_last_known_state:`실시간 연결: {{v0}}. 마지막으로 확인한 상태를 표시합니다.`,reconnect_now:`지금 다시 연결`,codex_is_unavailable:`Codex를 사용할 수 없습니다: {{v0}}`,error_details:`오류 세부 정보`,this_session_is_archived:`보관된 세션입니다`,history_is_preserved_unarchive_to_continue_the_conversation:`기록은 유지됩니다. 보관을 해제하면 대화를 계속할 수 있습니다.`,confirming_the_fork_wait_for_the_receipt_before:`분기 결과 확인 중…처리 결과를 받을 때까지 다시 분기할 수 없습니다.`,this_codex_version_does_not_support_session_forks:`이 Codex 버전은 세션 분기를 지원하지 않습니다.`,you_can_fork_once_the_connection_recovers_and:`연결이 복구되고 Codex가 준비되면 분기할 수 있습니다.`,the_project_directory_is_unavailable_restore_access_before:`프로젝트 디렉터리를 사용할 수 없습니다. 접근이 복구되면 분기할 수 있습니다.`,confirm_compatibility_with_the_current_codex_version_first:`현재 Codex 버전의 호환성을 먼저 확인하세요.`,send_the_first_message_to_enable_forking_saved:`첫 메시지를 보내면 저장된 기록에서 분기할 수 있습니다.`,check_settings:`설정 확인 필요`,check_the_session_operation_results_first:`세션 작업의 결과를 먼저 확인하세요`,available_when_the_connection_recovers:`연결이 복구되면 사용할 수 있습니다`,confirm_codex_version_compatibility_first:`Codex 버전 호환성을 먼저 확인하세요`,this_codex_version_does_not_support_this_operation:`현재 Codex는 이 작업을 지원하지 않습니다`,finish_the_task_and_resolve_pending_requests_before:`작업을 마치고 대기 중인 요청을 처리한 후 보관할 수 있습니다`,session_state_needs_checking_archiving_is_temporarily_unavailable:`세션 상태 확인이 필요하여 지금은 보관할 수 없습니다`,open_projects_and_sessions:`프로젝트 및 세션 열기`,more_actions:`추가 작업`,diagnostics_with_count:`상태 진단 ({{v0}})`,workspace:`작업 공간`,new_session:`새 세션`,start_your_next_task:`다음 작업 시작하기`,open_shell_panel:`Shell 패널 열기`,running_shell_commands:`실행 중인 Shell 명령`,return_to_original_session:`원래 세션으로 돌아가기`,connecting:`연결 중`,disconnected_reconnecting:`연결 끊김, 다시 연결 중`,check_the_codex_installation_authentication_and_service_on:`서비스를 실행하는 컴퓨터에서 Codex 설치, 인증 및 서비스 상태를 확인하세요.`,dismiss_error:`오류 알림 닫기`,rename_result_awaiting_confirmation:`이름 변경 결과 확인 대기`,saving_session_name:`세션 이름 저장 중…`,archive_result_awaiting_confirmation:`보관 결과 확인 대기`,archiving_session:`세션 보관 중…`,unarchive_result_awaiting_confirmation:`보관 해제 결과 확인 대기`,unarchiving:`보관 해제 중…`,check_submission:`제출 결과 확인`,pending_requests:`대기 중인 요청`,the_new_session_submission_is_unconfirmed_check_it:`새 세션 생성 결과가 확인되지 않았습니다. 중복 생성을 방지하려면 먼저 제출 결과를 확인하세요.`,the_fork_result_is_unconfirmed_check_the_submission:`분기 결과가 확인되지 않았습니다. 다시 분기하기 전에 제출 결과를 확인하세요.`,the_submission_result_is_unconfirmed_check_it_or:`제출 결과가 확인되지 않았습니다. 결과를 확인하거나 저장된 기록을 새 세션으로 분기하세요.`,your_answer_is_needed:`답변이 필요합니다`,free_text_answer:`직접 입력`,your_answer_will_be_sent_to_this_session:`답변이 현재 세션으로 전송되어 Codex가 작업을 계속할 수 있습니다.`,questions_from_codex:`Codex의 질문`,answer_sent:`답변 전송됨`,sending:`전송 중…`,you_can_answer_later:`나중에 답변할 수 있습니다`,answer_submit_shortcut:`{{shortcut}}로 전송 / Enter로 줄바꿈`,send_answer:`답변 보내기`,codex_has_not_been_verified_some_features_may:`Codex {{v0}}의 호환성이 검증되지 않아 일부 기능이 정상적으로 작동하지 않을 수 있습니다. {{v1}}`,view_compatibility_notice:`호환성 안내 보기`,codex_version_compatibility_is_unverified:`Codex 버전 호환성이 검증되지 않았습니다`,this_codex_version_is_unverified_some_features_may:`현재 Codex 버전은 검증되지 않아 일부 기능이 정상적으로 작동하지 않을 수 있습니다. 계속 진행해도 호환성 안내는 유지됩니다.`,codex_is_unavailable_close_this_notice_and_check:`Codex를 사용할 수 없습니다. 안내를 닫고 상태 진단을 확인하세요.`,wait_for_the_connection_and_codex_authentication_to:`연결 및 Codex 인증이 복구된 후 확인하세요.`,the_confirmation_result_needs_checking_refresh_status_or:`확인 요청의 결과를 확인해야 합니다. 상태를 새로 고치거나 현재 버전의 사용 허가를 다시 확인하세요. 작업은 재전송되지 않습니다.`,refresh_confirmation_status:`확인 상태 새로 고침`,confirm_again:`다시 확인`,you_can_still_view_diagnostics_or_interrupt_tasks:`안내를 닫아도 진단을 보거나 작업을 중단할 수 있습니다. 확인만으로 작업이 전송되지 않으며 미전송 초안은 유지됩니다.`,not_now:`나중에`,permission_to_continue_confirmed_this_does_not_verify:`계속 진행하도록 확인했지만 버전이 검증된 것은 아닙니다.`,confirmation_required_before_use:`사용 전에 확인이 필요합니다.`,confirming:`확인 중…`,json_source:`JSON 원문`,formatted_json:`서식 있는 JSON`,copy_reply_markdown:`응답 복사(Markdown)`,copy_reply:`응답 복사`,copy_failed_select_and_copy_the_reply_manually:`복사하지 못했습니다. 응답을 직접 선택하여 복사하세요.`,cannot_read_default_settings:`기본 설정을 읽을 수 없습니다`,the_browser_cannot_save_operation_records_keep_this:`브라우저가 작업 기록을 저장할 수 없습니다. 미확인 제출을 확인할 수 있도록 페이지를 열어 두세요.`,operation_failed_check_details:`작업에 실패했습니다. 세부 정보를 확인하세요.`,confirm_the_codex_version_compatibility_notice_before_starting:`작업을 시작하기 전에 Codex 버전 호환성 안내를 확인하세요.`,cannot_read_session_history_no_file_downloaded:`세션 기록을 읽을 수 없습니다. 파일이 다운로드되지 않았습니다.`,login_expired_or_history_response_was_not_markdown:`로그인이 만료되었거나 기록 응답이 Markdown이 아닙니다. 다시 로그인한 후 시도하세요.`,export_response_has_no_valid_filename_no_file:`내보내기 응답에 유효한 파일 이름이 없어 다운로드하지 않았습니다.`,export_response_lacks_history_completeness_information_no_file:`내보내기 응답에 기록 완전성 정보가 없어 다운로드하지 않았습니다.`,request_failed_please_try_again:`요청에 실패했습니다. 다시 시도하세요.`,open_github_repository:`GitHub 저장소 열기`,end_question_tracking:`건너뛰기`,end_remaining_tracking:`모두 건너뛰기`,end_tracking_hint:`Covro 알림만 중지합니다. 답변이나 초안을 보내거나 작업을 중지하지 않습니다.`,question_tracking_ended:`건너뜀 · 답변 미전송`,questions_handled:`처리됨`,answer_receipt_pending:`답변 수신 확인 대기 중`,skip_all_questions_hint:`작성한 초안을 포함하여 이 그룹의 미답변 질문을 모두 건너뜁니다. 답변을 보내거나 작업을 중지하지 않습니다.`}}},st=[`zh-Hans`,`en`,`ja`,`ko`],ct={"zh-Hans":`简体中文`,en:`English`,ja:`日本語`,ko:`한국어`},lt=`covro.locale`;function ut(e){return st.includes(e)}function dt(e){try{let t=new Intl.Locale(e);switch(t.language){case`en`:case`ja`:case`ko`:return t.language;case`zh`:return t.maximize().script===`Hans`?`zh-Hans`:void 0;default:return}}catch{return}}function ft(e,t){if(ut(t))return t;for(let t of e){let e=dt(t);if(e)return e}return`en`}function pt(){let e=null;try{e=localStorage.getItem(lt)}catch{}return ft(typeof navigator>`u`?[]:navigator.languages?.length?navigator.languages:[navigator.language],e)}function mt(e){try{localStorage.setItem(lt,e)}catch{}}function ht(e,t=ot){let n=Ne().use(Qe);return n.init({resources:t,lng:e,supportedLngs:[...st],fallbackLng:`en`,defaultNS:`common`,load:`currentOnly`,initAsync:!1,returnEmptyString:!1,returnNull:!1,interpolation:{escapeValue:!1},react:{useSuspense:!1}}),n}var gt=ht(pt());function _t(){return ut(gt.resolvedLanguage)?gt.resolvedLanguage:`en`}function H(e,t={}){let n=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t==null||t===!1?``:typeof t==`number`&&e!==`count`?bt(t):t]));if(!gt.exists(e,n))return String(gt.t(`common:requestFailed`));let r=gt.t(e,n);return String(r&&r!==e?r:gt.t(`common:requestFailed`))}function vt(e){return mt(e),gt.changeLanguage(e)}function yt(){at(void 0,{i18n:gt});let e=_t();return(0,y.useEffect)(()=>{document.documentElement.lang=e,document.title=`Covro · ${H(`workspace:workspace`)}`},[e]),(0,y.useEffect)(()=>{let e=e=>{e.key===`covro.locale`&&ut(e.newValue)&>.changeLanguage(e.newValue)};return window.addEventListener(`storage`,e),()=>window.removeEventListener(`storage`,e)},[]),e}var bt=(e,t)=>new Intl.NumberFormat(_t(),t).format(e),xt=(e,t)=>new Intl.DateTimeFormat(_t(),t).format(e),St=`covro-message:`;function Ct(e,t={}){return St+JSON.stringify({key:e,values:t})}function U(e){if(e!=null){if(!e.startsWith(St))return e;try{let{key:t,values:n}=JSON.parse(e.slice(15));return H(t,Object.fromEntries(Object.entries(n).map(([e,t])=>[e,typeof t==`string`?U(t):t])))}catch{return H(`common:requestFailed`)}}}function wt(e){if(e?.startsWith(St))try{let t=JSON.parse(e.slice(15));return typeof t.values?.details==`string`?t.values.details:void 0}catch{return}}var Tt=e=>new Intl.ListFormat(_t(),{style:`short`,type:`conjunction`}).format(e),Et=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Dt(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Et(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Ot=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},kt=e=>{let t=Ot(e);return t.charAt(0).toUpperCase()+t.slice(1)},At=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),jt={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Mt(e){return e!=null}function Nt(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??jt.width,a=e.size??e.height??jt.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?At(...c):At(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??jt[`stroke-width`])*Number(e.size??e.width??jt.width)/Number(t.size??t.width??jt.width):t.strokeWidth??jt[`stroke-width`];return[`svg`,{...Object.entries(jt).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Mt(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Mt(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Mt(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Pt(e,t={}){return Nt(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Ft=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},It=(0,y.createContext)({}),Lt=()=>(0,y.useContext)(It),Rt=(0,y.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=Lt()??{},b=!!c||Ft(d),[x,S,C=[]]=Pt(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:At(v,s),hasA11yProp:b,attributes:d});return(0,y.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,y.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function zt(e,t=[],n=[]){let r=typeof e==`string`?Dt(e,t,n):e,i=(0,y.forwardRef)(({className:e,...t},n)=>(0,y.createElement)(Rt,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=kt(r.name)),i}var Bt={name:`arrow-down-up`,size:24,node:[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`m21 8-4-4-4 4`,key:`1c9v7m`}],[`path`,{d:`M17 4v16`,key:`7dpous`}]]};Bt.node;var Vt=zt(Bt),Ht={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};Ht.node;var Ut=zt(Ht),Wt={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};Wt.node;var Gt=zt(Wt),Kt={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Kt.node;var qt=zt(Kt),Jt={name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]};Jt.node;var Yt=zt(Jt),Xt={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Xt.node;var Zt=zt(Xt),Qt={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Qt.node;var $t=zt(Qt),en={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};en.node;var tn=zt(en),nn={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};nn.node;var rn=zt(nn),an={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};an.node;var on=zt(an),sn={name:`circle-arrow-up`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]],aliases:[`arrow-up-circle`]};sn.node;var cn=zt(sn),ln={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};ln.node;var un=zt(ln),dn={name:`database-backup`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 12a9 3 0 0 0 5 2.69`,key:`1ui2ym`}],[`path`,{d:`M21 9.3V5`,key:`6k6cib`}],[`path`,{d:`M3 5v14a9 3 0 0 0 6.47 2.88`,key:`i62tjy`}],[`path`,{d:`M12 12v4h4`,key:`1bxaet`}],[`path`,{d:`M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16`,key:`1f4ei9`}]]};dn.node;var fn=zt(dn),pn={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};pn.node;var mn=zt(pn),hn={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};hn.node;var gn=zt(hn),_n={name:`external-link`,size:24,node:[[`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`}]]};_n.node;var vn=zt(_n),yn={name:`file-code-corner`,size:24,node:[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]],aliases:[`file-code-2`]};yn.node;var bn=zt(yn),xn={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};xn.node;var Sn=zt(xn),Cn={name:`gauge`,size:24,node:[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]};Cn.node;var wn=zt(Cn),Tn={name:`grip-vertical`,size:24,node:[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]};Tn.node;var En=zt(Tn),Dn={name:`languages`,size:24,node:[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]};Dn.node;var On=zt(Dn),kn={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};kn.node;var An=zt(kn),jn={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};jn.node;var Mn=zt(jn),Nn={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};Nn.node;var Pn=zt(Nn),Fn={name:`puzzle`,size:24,node:[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]};Fn.node;var In=zt(Fn),Ln={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};Ln.node;var Rn=zt(Ln),zn={name:`rotate-cw`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]};zn.node;var Bn=zt(zn),Vn={name:`server`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]};Vn.node;var Hn=zt(Vn),Un={name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]};Un.node;var Wn=zt(Un),Gn={name:`settings`,size:24,node:[[`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`}]]};Gn.node;var Kn=zt(Gn),qn={name:`shield-check`,size:24,node:[[`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`}]]};qn.node;var Jn=zt(qn),Yn={name:`text-wrap`,size:24,node:[[`path`,{d:`m16 16-3 3 3 3`,key:`117b85`}],[`path`,{d:`M3 12h14.5a1 1 0 0 1 0 7H13`,key:`18xa6z`}],[`path`,{d:`M3 19h6`,key:`1ygdsz`}],[`path`,{d:`M3 5h18`,key:`1u36vt`}]],aliases:[`wrap-text`]};Yn.node;var Xn=zt(Yn),Zn={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Zn.node;var Qn=zt(Zn),$n={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};$n.node;var er=zt($n),tr={name:`zap`,size:24,node:[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]};tr.node;var nr=zt(tr);function rr(e){if(e.message.startsWith(`covro-message:`))return e.message;let t={UNAUTHENTICATED:`AUTH_REQUIRED`,VALIDATION_ERROR:`VALIDATION_FAILED`,CONFIG_READ_FAILED:`CONFIG_UNAVAILABLE`,CONFIG_WRITE_FAILED:`CONFIG_UNAVAILABLE`,CONFIG_BUSY:`OPERATION_BUSY`,PROJECT_OWNERSHIP:`PROJECT_UNAVAILABLE`,HISTORY_CURSOR_EXPIRED:`HISTORY_UNAVAILABLE`,EXPORT_HISTORY_INCOMPLETE:`HISTORY_UNAVAILABLE`}[e.code]??e.code;return t in ot.en.errors?Ct(`errors:${t}`,{details:e.message}):Ct(`errors:httpFailure`,{code:t,details:e.message})}var ir=[`txt`,`csv`,`tsv`,`toml`,`yaml`,`yml`,`jsonl`,`log`,`ini`];function ar(e){if(/\.(md|markdown)$/i.test(e))return`markdown`;if(/\.json$/i.test(e))return`json`;let t=/\.([^./\\]+)$/.exec(e)?.[1]?.toLowerCase();return ir.some(e=>e===t)?`text`:void 0}var or=/^[a-z][a-z\d+.-]*:/i,sr=e=>Array.from(e).some(e=>e===`\\`||e.charCodeAt(0)<32||e.charCodeAt(0)===127);function cr(e){if(!e||e!==e.trim()||sr(e))return;let t;if(/^file:/i.test(e)){if(!/^file:\/\/(?:localhost)?\//i.test(e))return;try{let n=new URL(e);if(n.hostname&&n.hostname!==`localhost`)return;t=n.pathname}catch{return}}else{if(or.test(e)||e.startsWith(`//`))return;t=e.split(/[?#]/,1)[0]??``}let n;try{n=decodeURIComponent(t)}catch{return}if(!(!n||n!==n.trim()||n.startsWith(`//`)||or.test(n)||sr(n)))return n}function lr(e,t){return t&&!e.startsWith(`/`)?t.slice(0,t.lastIndexOf(`/`)+1)+e:e}function ur(e){let t=cr(e.replace(/:(\d+)(?::\d+)?$/,``));return t&&ar(t)?t:void 0}function dr(e,t){let n=ar(t)??`text`;return`/api/threads/${encodeURIComponent(e)}/${n}?${new URLSearchParams({path:t})}`}var fr=class extends Error{status;problem;constructor(e,t){super(U(rr(t))),this.status=e,this.problem=t,this.name=`HttpError`}get authenticationRequired(){return this.status===401||this.status===403||this.problem.code===`AUTH_REQUIRED`}};async function W(e,t,n){let r=await fetch(e,{method:t===void 0?`GET`:`POST`,credentials:`same-origin`,headers:t===void 0?{Accept:`application/json`}:{Accept:`application/json`,"Content-Type":`application/json`},...t===void 0?{}:{body:JSON.stringify(t)},signal:n??AbortSignal.timeout(35e3)});if(!r.headers.get(`content-type`)?.includes(`application/json`))throw new fr(r.status===200?401:r.status,{code:`AUTH_REQUIRED`,message:Ct(`errors:your_login_expired_or_the_gateway_returned_a`)});let i=await r.json();if(!r.ok){let e=i&&typeof i==`object`&&`error`in i?i.error:void 0;throw new fr(r.status,e??{code:`HTTP_ERROR`,message:Ct(`errors:request_failed`,{v0:r.status})})}return i}var pr={projectPath:(e,t)=>W(`/api/project-path?${new URLSearchParams({path:e,...t===void 0?{}:{directory:t}})}`),gatewayConfig:()=>W(`/api/config`),saveGatewayConfig:(e,t)=>W(`/api/config`,{revision:e,config:t}),importGatewayConfig:e=>W(`/api/config/import`,{config:e}),exportGatewayConfig:()=>W(`/api/config/export`),historyCacheContext:()=>W(`/api/history-cache-context`),system:()=>W(`/api/system`),accountUsage:()=>W(`/api/account/usage`),runtimeSettings:e=>W(`${C(e)}/runtime-settings`),projects:()=>W(`/api/projects`),reorderProjects:e=>W(`/api/projects/reorder`,{projectIds:e}),addProject:e=>W(`/api/projects`,e),projectClones:e=>W(`/api/project-clones`,void 0,e),cloneProject:e=>W(`/api/project-clones`,e),projectClone:e=>W(`/api/project-clones/${encodeURIComponent(e)}`),cancelProjectClone:e=>W(`/api/project-clones/${encodeURIComponent(e)}/cancel`,{}),registerProjectClone:e=>W(`/api/project-clones/${encodeURIComponent(e)}/register`,{}),renameProject:(e,t)=>W(`/api/projects/${encodeURIComponent(e)}/rename`,{name:t}),removeProject:e=>W(`/api/projects/${encodeURIComponent(e)}/remove`,{}),threads:(e,t,n=!1,r)=>W(`${C(e)}/threads${n?`?archived=true`:``}${t?`${n?`&`:`?`}cursor=${encodeURIComponent(t)}`:``}`,void 0,r),thread:(e,t)=>W(`/api/threads/${encodeURIComponent(e)}`,void 0,t),threadSnapshot:(e,t)=>W(`/api/threads/${encodeURIComponent(e)}/snapshot`,void 0,t),threadAttention:e=>W(`/api/threads/${encodeURIComponent(e)}/attention`),threadHistory:(e,t,n)=>W(`/api/threads/${encodeURIComponent(e)}/history?${new URLSearchParams({cursor:t})}`,void 0,n),threadMetadata:e=>W(`/api/threads/${encodeURIComponent(e)}/metadata`),previewFile:(e,t,n)=>W(dr(e,t),void 0,n),operation:e=>W(`/api/operations/${encodeURIComponent(e)}`),submit:(e,t)=>W(e,t)},mr=Object.defineProperty,hr=(e,t)=>mr(e,`name`,{value:t,configurable:!0});function gr(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}hr(gr,`setRef`);function _r(...e){return t=>{let n=!1,r=e.map(e=>{let r=gr(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():gr(e[t],null)}}}}hr(_r,`composeRefs`);function vr(...e){return y.useCallback(_r(...e),e)}hr(vr,`useComposedRefs`);var yr=Object.defineProperty,br=(e,t)=>yr(e,`name`,{value:t,configurable:!0});function xr(e){let t=y.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Ar(r)&&typeof Fr==`function`&&(r=Fr(r._payload)),y.Children.forEach(r,e=>{if(Or(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Ar(n)&&typeof Fr==`function`&&(n=Fr(n._payload)),a=Tr(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=y.cloneElement(a,void 0,s):!o&&y.Children.count(r)===1&&y.isValidElement(r)&&(a=r);let c=a?Dr(a):void 0,l=vr(n,c);if(!a){if(r||r===0)throw Error(o?Pr(e):Nr(e));return r}let u=Er(i,a.props??{});return a.type!==y.Fragment&&(u.ref=n?l:c),y.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}br(xr,`createSlot`);var Sr=xr(`Slot`),Cr=Symbol.for(`radix.slottable`);function wr(e){let t=br(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Cr,t}br(wr,`createSlottable`);var Tr=br((e,t)=>{if(`child`in e.props){let t=e.props.child;return y.isValidElement(t)?y.cloneElement(t,void 0,e.props.children(t.props.children)):null}return y.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function Er(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Mr(a,i))}return{...e,...n}}br(Er,`mergeProps`);function Dr(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}br(Dr,`getElementRef`);function Or(e){return y.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Cr}br(Or,`isSlottable`);var kr=Symbol.for(`react.lazy`);function Ar(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===kr&&`_payload`in e&&jr(e._payload)}br(Ar,`isLazyComponent`);function jr(e){return typeof e==`object`&&!!e&&`then`in e}br(jr,`isPromiseLike`);function Mr(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}br(Mr,`concatAriaDescribedby`);var Nr=br(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Pr=br(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Fr=y.use;function Ir(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ir(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Lr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ir(e))&&(r&&(r+=` `),r+=t);return r}var Rr=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,zr=Lr,Br=(e,t)=>n=>{if(t?.variants==null)return zr(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Rr(t)||Rr(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return zr(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Vr=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Hr=(e,t)=>({classGroupId:e,validator:t}),Ur=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Wr=`-`,Gr=[],Kr=`arbitrary..`,qr=e=>{let t=Xr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Yr(e);let n=e.split(Wr);return Jr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Vr(i,t):t:i||Gr}return n[e]||Gr}}},Jr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Jr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Wr):e.slice(t).join(Wr),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Yr=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Kr+r:void 0})(),Xr=e=>{let{theme:t,classGroups:n}=e;return Zr(n,t)},Zr=(e,t)=>{let n=Ur();for(let r in e){let i=e[r];Qr(i,n,r,t)}return n},Qr=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];$r(i,t,n,r)}},$r=(e,t,n,r)=>{typeof e==`string`?ei(e,t,n):typeof e==`function`?ti(e,t,n,r):ni(e,t,n,r)},ei=(e,t,n)=>{let r=e===``?t:ri(t,e);r.classGroupId=n},ti=(e,t,n,r)=>{ii(e)?Qr(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(Hr(n,e)))},ni=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Qr(o,ri(t,a),n,r)}},ri=(e,t)=>{let n=e,r=t.split(Wr),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Ur(),n.nextPart.set(t,i)),n=i}return n},ii=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ai=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},oi=`!`,si=`:`,ci=[],li=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ui=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===si){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(oi)?(c=s.slice(0,-1),l=!0):s.startsWith(oi)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return li(t,l,c,u)};if(t){let e=t+si,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):li(ci,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},di=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},fi=e=>({cache:ai(e.cacheSize),parseClassName:ui(e),sortModifiers:di(e),postfixLookupClassGroupIds:pi(e),...qr(e)}),pi=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},mi=/\s+/,hi=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(mi),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+oi:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},gi=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=_i(n))&&(i&&(i+=` `),i+=r);return i},_i=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=_i(e[r]))&&(n&&(n+=` `),n+=t);return n},vi=(e,...t)=>{let n,r,i,a,o=o=>(n=fi(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=hi(e,n);return i(e,a),a};return a=o,(...e)=>a(gi(...e))},yi=[],bi=e=>{let t=t=>t[e]||yi;return t.isThemeGetter=!0,t.themeKey=e,t},xi=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Si=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ci=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ti=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ei=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,Di=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Oi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ki=e=>Ci.test(e),Ai=e=>!!e&&!Number.isNaN(Number(e)),ji=e=>!!e&&Number.isInteger(Number(e)),Mi=e=>e.endsWith(`%`)&&Ai(e.slice(0,-1)),Ni=e=>wi.test(e),Pi=()=>!0,Fi=e=>Ti.test(e)&&!Ei.test(e),Ii=()=>!1,Li=e=>Di.test(e),Ri=e=>Oi.test(e),zi=e=>!G(e)&&!K(e),Bi=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Vi=e=>na(e,oa,Ii),G=e=>xi.test(e),Hi=e=>na(e,sa,Fi),Ui=e=>na(e,ca,Ai),Wi=e=>na(e,ua,Pi),Gi=e=>na(e,la,Ii),Ki=e=>na(e,ia,Ii),qi=e=>na(e,aa,Ri),Ji=e=>na(e,da,Li),K=e=>Si.test(e),Yi=e=>ra(e,sa),Xi=e=>ra(e,la),Zi=e=>ra(e,ia),Qi=e=>ra(e,oa),$i=e=>ra(e,aa),ea=e=>ra(e,da,!0),ta=e=>ra(e,ua,!0),na=(e,t,n)=>{let r=xi.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ra=(e,t,n=!1)=>{let r=Si.exec(e);return r?r[1]?t(r[1]):n:!1},ia=e=>e===`position`||e===`percentage`,aa=e=>e===`image`||e===`url`,oa=e=>e===`length`||e===`size`||e===`bg-size`,sa=e=>e===`length`,ca=e=>e===`number`,la=e=>e===`family-name`,ua=e=>e===`number`||e===`weight`,da=e=>e===`shadow`,fa=vi(()=>{let e=bi(`color`),t=bi(`font`),n=bi(`text`),r=bi(`font-weight`),i=bi(`tracking`),a=bi(`leading`),o=bi(`breakpoint`),s=bi(`container`),c=bi(`spacing`),l=bi(`radius`),u=bi(`shadow`),d=bi(`inset-shadow`),f=bi(`text-shadow`),p=bi(`drop-shadow`),m=bi(`blur`),h=bi(`perspective`),g=bi(`aspect`),_=bi(`ease`),v=bi(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),K,G],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[K,G,c],T=()=>[ki,`full`,`auto`,...w()],E=()=>[ji,`none`,`subgrid`,K,G],D=()=>[`auto`,{span:[`full`,ji,K,G]},ji,K,G],O=()=>[ji,`auto`,K,G],k=()=>[`auto`,`min`,`max`,`fr`,K,G],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[ki,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[s,ki,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[ki,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,K,G],ee=()=>[...b(),Zi,Ki,{position:[K,G]}],te=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,Qi,Vi,{size:[K,G]}],L=()=>[Mi,Yi,Hi],re=()=>[``,`none`,`full`,l,K,G],ie=()=>[``,Ai,Yi,Hi],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],se=()=>[Ai,Mi,Zi,Ki],ce=()=>[``,`none`,m,K,G],le=()=>[`none`,Ai,K,G],ue=()=>[`none`,Ai,K,G],R=()=>[Ai,K,G],z=()=>[ki,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Ni],breakpoint:[Ni],color:[Pi],container:[Ni],"drop-shadow":[Ni],ease:[`in`,`out`,`in-out`],font:[zi],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Ni],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Ni],shadow:[Ni],spacing:[`px`,Ai],text:[Ni],"text-shadow":[Ni],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ki,G,K,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,K,G]}],"container-named":[Bi],columns:[{columns:[Ai,`auto`,G,K,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ji,`auto`,K,G]}],basis:[{basis:[ki,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Ai,ki,`auto`,`initial`,`none`,G]}],grow:[{grow:[``,Ai,K,G]}],shrink:[{shrink:[``,Ai,K,G]}],order:[{order:[ji,`first`,`last`,`none`,K,G]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...N()]}],"font-size":[{text:[`base`,n,Yi,Hi]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ta,Wi]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Mi,G]}],"font-family":[{font:[Xi,Gi,t]}],"font-features":[{"font-features":[G]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,K,G]}],"line-clamp":[{"line-clamp":[Ai,`none`,K,Ui]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,K,G]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,K,G]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[Ai,`from-font`,`auto`,K,Hi]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Ai,`auto`,K,G]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[ji,K,G]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,K,G]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,K,G]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ji,K,G],radial:[``,K,G],conic:[``,ji,K,G]},$i,qi]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-bs":[{"border-bs":ie()}],"border-w-be":[{"border-be":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Ai,K,G]}],"outline-w":[{outline:[``,Ai,Yi,Hi]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`inner`,`none`,u,ea,Ji]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,ea,Ji]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ie()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Ai,Hi]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,ea,Ji]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Ai,K,G]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Ai]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[K,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Ai]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,K,G]}],filter:[{filter:[``,`none`,K,G]}],blur:[{blur:ce()}],brightness:[{brightness:[Ai,K,G]}],contrast:[{contrast:[Ai,K,G]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ea,Ji]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,Ai,K,G]}],"hue-rotate":[{"hue-rotate":[Ai,K,G]}],invert:[{invert:[``,Ai,K,G]}],saturate:[{saturate:[Ai,K,G]}],sepia:[{sepia:[``,Ai,K,G]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,K,G]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[Ai,K,G]}],"backdrop-contrast":[{"backdrop-contrast":[Ai,K,G]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Ai,K,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ai,K,G]}],"backdrop-invert":[{"backdrop-invert":[``,Ai,K,G]}],"backdrop-opacity":[{"backdrop-opacity":[Ai,K,G]}],"backdrop-saturate":[{"backdrop-saturate":[Ai,K,G]}],"backdrop-sepia":[{"backdrop-sepia":[``,Ai,K,G]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,K,G]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Ai,`initial`,K,G]}],ease:[{ease:[`linear`,`initial`,_,K,G]}],delay:[{delay:[Ai,K,G]}],animate:[{animate:[`none`,v,K,G]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,K,G]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:R()}],"skew-x":[{"skew-x":R()}],"skew-y":[{"skew-y":R()}],transform:[{transform:[K,G,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":[`translate-none`],zoom:[{zoom:[ji,K,G]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,K,G]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,K,G]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[Ai,Yi,Hi,Ui]}],stroke:[{stroke:[`none`,...I()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function pa(...e){return fa(Lr(e))}function ma(e){let t=typeof e==`number`&&e<0xe8d4a51000?new Date(e*1e3):new Date(e);return Number.isNaN(t.valueOf())?``:new Intl.DateTimeFormat(_t(),{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}).format(t)}function ha(e){return e instanceof fr?rr(e.problem):e instanceof Error?e.message:H(`workspace:request_failed_please_try_again`)}var ga=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),q=o(((e,t)=>{t.exports=ga()}))(),_a=Br(`button`,{variants:{variant:{default:`button-primary`,secondary:`button-secondary`,ghost:`button-ghost`,destructive:`button-destructive`},size:{default:``,sm:`button-small`,icon:`button-icon`}},defaultVariants:{variant:`default`,size:`default`}}),J=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,type:i=`button`,...a},o)=>(0,q.jsx)(r?Sr:`button`,{type:i,className:pa(_a({variant:t,size:n,className:e})),ref:o,...a}));J.displayName=`Button`;var va={github:`M9 19c-4.3 1.4-4.3-2.5-6-3m12 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 19 4.77 5.07 5.07 0 0 0 18.91 1S17.73.65 15 2.48a13.38 13.38 0 0 0-7 0C5.27.65 4.09 1 4.09 1A5.07 5.07 0 0 0 4 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 8 18.13V22`,compress:`M4 3h16M4 21h16M12 4v5m-3-3 3 3 3-3M12 20v-5m-3 3 3-3 3 3M5 12h14`,loader:`M12 3a9 9 0 1 1-9 9`,shieldPending:`M12 3 4 6v6c0 5 8 9 8 9s8-4 8-9V6Z`,question:`M9.5 9a2.5 2.5 0 0 1 5 .5c0 1.5-2.5 2-2.5 3.5M12 17h.01M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0`,info:`M12 8h.01M11 11h1v6m-1 0h2M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0`,archive:`M3 3h18v5H3ZM5 8v13h14V8M10 12h4`,unarchive:`M3 3h18v5H3ZM5 8v13h14V8M12 17v-6m-3 3 3-3 3 3`,plus:`M12 5v14M5 12h14`,fork:`M6 3v12a4 4 0 0 0 4 4h8M6 7h8a4 4 0 0 0 4-4M15 16l3 3-3 3M15 4l3-3 3 3`,send:`m5 12 14-7-7 14-1-7-6-0Z M11 13l8-8`,stop:`M6 6h12v12H6z`,chevron:`m9 5 7 7-7 7`,menu:`M4 6h16M4 12h16M4 18h16`,close:`m6 6 12 12M6 18 18 6`,folder:`M3 7V5h6l2 2h10v13H3Z`,chat:`M4 4h16v12H9l-5 4Z`,terminal:`m4 6 6 6-6 6M13 18h7`,down:`m6 9 6 6 6-6`,refresh:`M20 7v5h-5M4 17v-5h5M5 8a8 8 0 0 1 13-3l2 3M4 16l2 3a8 8 0 0 0 13-3`,search:`M21 21l-6-6M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0`,shield:`M12 3 4 6v6c0 5 8 9 8 9s8-4 8-9V6ZM8 12l3 3 5-6`,settings:`M4 7h16M4 17h16M8 4v6M16 14v6`,check:`m5 12 4 4L19 6`,copy:`M9 9h12v12H9ZM5 15H3V3h12v2`,alert:`M12 3 2 21h20ZM12 9v5M12 17v1`,code:`m8 6-6 6 6 6m8-12 6 6-6 6M14 3l-4 18`};function Y({name:e,size:t=18,style:n}){return e===`skill`?(0,q.jsx)(In,{size:t,strokeWidth:1.7,"aria-hidden":`true`,style:n}):(0,q.jsx)(`svg`,{width:t,height:t,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,style:n,children:(0,q.jsx)(`path`,{d:va[e]})})}function ya(e){let t=e>=1048576;return`${bt(e/(t?1048576:1024),{minimumFractionDigits:1,maximumFractionDigits:1})} ${t?`MiB`:`KiB`}`}function ba(e,t){return e instanceof fr?rr(e.problem):Ct(t,{details:e instanceof Error?e.message:void 0})}function xa({value:e}){return e?(0,q.jsxs)(`details`,{className:`backup-technical-details`,children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsx)(`pre`,{children:e})]}):null}function Sa({onClose:e}){let t=(0,y.useRef)(null),n=()=>{t.current?.close(),e()},[r,i]=(0,y.useState)(),[a,o]=(0,y.useState)(),[s,c]=(0,y.useState)(),l=(0,y.useRef)(0),[u,d]=(0,y.useState)(),[f,p]=(0,y.useState)(!1),m=(0,y.useRef)(void 0),h=(0,y.useRef)(!0),g=r?.active;(0,y.useEffect)(()=>{let e=t.current;e?.showModal(),h.current=!0;let n=new AbortController,r,a=async()=>{let e=l.current;try{let t=await W(`/api/backups`,void 0,n.signal);if(n.signal.aborted||e!==l.current)return;c(void 0),i(t),t.records.some(e=>e.id===m.current)&&(m.current=void 0)}catch(e){n.signal.aborted||c(ba(e,`backups:loadFailed`))}finally{n.signal.aborted||(r=setTimeout(()=>void a(),1e3))}};return a(),()=>{h.current=!1,n.abort(),clearTimeout(r),e?.close()}},[]);async function _(e,t,n){l.current++,p(!0),o(void 0),d(void 0);try{let r=await W(e,t);h.current&&(i(r),d(n),m.current=void 0)}catch(e){h.current&&o(ba(e,`backups:operationFailed`))}finally{l.current++,h.current&&p(!1)}}let v=r?.records??[],b=v.filter(e=>e.phase===`succeeded`),x=b.reduce((e,t)=>e+(t.manifest?.files.reduce((e,t)=>e+t.size,0)??0),0);return(0,q.jsxs)(`dialog`,{ref:t,className:`project-dialog backup-dialog`,"aria-labelledby":`backup-title`,onCancel:e=>{e.preventDefault(),n()},children:[(0,q.jsxs)(`div`,{className:`project-dialog-heading`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(fn,{size:20,"aria-hidden":`true`}),(0,q.jsx)(`h2`,{id:`backup-title`,children:H(`backups:title`)})]}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`backups:close`),onClick:n,children:(0,q.jsx)(Y,{name:`close`,size:17})})]}),(0,q.jsx)(`p`,{className:`subtle`,children:H(`backups:introduction`)}),(0,q.jsxs)(`section`,{className:`backup-summary`,"aria-label":H(`backups:overview`),children:[(0,q.jsx)(`span`,{children:H(`backups:currentSchema`,{version:String(r?.schemaVersion??`…`)})}),(0,q.jsx)(`span`,{children:H(`backups:completed`,{count:b.length,number:bt(b.length),size:ya(x)})})]}),(0,q.jsxs)(`div`,{className:`backup-actions`,children:[(0,q.jsxs)(J,{disabled:!r?.supported||f||!!g,onClick:()=>{m.current??=crypto.randomUUID(),_(`/api/backups`,{clientOperationId:m.current})},children:[(0,q.jsx)(fn,{size:16,"aria-hidden":`true`}),H(f?`backups:processing`:`backups:create`)]}),g&&(0,q.jsx)(J,{variant:`secondary`,disabled:f,onClick:()=>void _(`/api/backups/${encodeURIComponent(g.id)}/cancel`,{}),children:H(`backups:cancel`)})]}),g&&(0,q.jsxs)(`section`,{className:`backup-progress`,role:`status`,"aria-label":H(`backups:progress`),children:[(0,q.jsx)(`strong`,{children:H(`backups:phase_${g.phase}`)}),(0,q.jsx)(`p`,{children:H(`backups:description_${g.phase}`)}),(0,q.jsx)(xa,{value:g.message}),g.phase!==`waiting`&&(0,q.jsx)(`progress`,{"aria-label":H(`backups:databaseProgress`),max:100,value:g.progress}),(0,q.jsx)(`p`,{className:`subtle`,children:H(`backups:continues`)})]}),(a||s)&&(0,q.jsxs)(`div`,{className:`inline-error`,role:`alert`,children:[(0,q.jsx)(`p`,{children:U(a??s)}),(0,q.jsx)(xa,{value:wt(a??s)})]}),u&&(0,q.jsxs)(`p`,{className:`backup-notice`,role:`status`,children:[(0,q.jsx)(Jn,{size:16,"aria-hidden":`true`}),U(u)]}),r?.unsupportedReason&&(0,q.jsxs)(`div`,{className:`inline-error`,children:[(0,q.jsx)(`p`,{children:H(`backups:unavailable`)}),(0,q.jsx)(xa,{value:r.unsupportedReason})]}),(0,q.jsx)(`h3`,{children:H(`backups:records`)}),!r&&!a&&!s&&(0,q.jsx)(`p`,{className:`subtle`,children:H(`backups:loading`)}),r&&!v.length&&(0,q.jsx)(`p`,{className:`backup-empty`,children:H(`backups:empty`)}),(0,q.jsx)(`ol`,{className:`backup-records`,children:v.map(e=>(0,q.jsxs)(`li`,{className:`backup-record`,"data-phase":e.phase,children:[(0,q.jsxs)(`div`,{className:`backup-record-heading`,children:[(0,q.jsx)(`strong`,{children:H(`backups:phase_${e.phase}`)}),(0,q.jsx)(`span`,{children:H(`backups:trigger_${e.trigger}`)})]}),(0,q.jsx)(`time`,{dateTime:new Date(e.createdAt).toISOString(),children:xt(new Date(e.createdAt),{dateStyle:`short`,timeStyle:`medium`})}),e.manifest&&(0,q.jsxs)(`p`,{children:[`Covro `,e.manifest.appVersion,` · Schema `,e.manifest.schemaVersion,` ·`,` `,ya(e.manifest.files.reduce((e,t)=>e+t.size,0))]}),(0,q.jsx)(`p`,{className:`backup-record-message`,role:[`failed`,`corrupt`,`interrupted`].includes(e.phase)?`alert`:void 0,children:H(`backups:description_${e.phase}`)}),(0,q.jsx)(xa,{value:e.message}),e.manifest?.protectedBy&&(0,q.jsx)(`p`,{className:`subtle`,children:H(`backups:protected`)}),(0,q.jsx)(`code`,{className:`backup-path`,children:e.path}),e.manifest&&![`waiting`,`copying`,`verifying`].includes(e.phase)&&(0,q.jsxs)(J,{size:`sm`,variant:`secondary`,disabled:f||!!g,onClick:()=>void _(`/api/backups/${encodeURIComponent(e.id)}/verify`,{},Ct(`backups:verified`)),children:[(0,q.jsx)(Rn,{size:13,"aria-hidden":`true`}),H(`backups:verify`)]}),e.phase===`succeeded`&&(0,q.jsxs)(`details`,{className:`backup-restore`,children:[(0,q.jsx)(`summary`,{children:H(`backups:recovery`)}),(0,q.jsx)(`p`,{children:H(`backups:recoveryWarning`)}),(0,q.jsxs)(`code`,{children:[`covro backup restore `,e.id,` --config`,` `,JSON.stringify(e.manifest?.configPath)]}),(0,q.jsx)(`p`,{children:H(`backups:recoveryPreview`)})]})]},e.id))}),(0,q.jsxs)(`section`,{className:`backup-scope`,"aria-label":H(`backups:scope`),children:[(0,q.jsx)(`h3`,{children:H(`backups:scopeTitle`)}),(0,q.jsx)(`p`,{children:H(`backups:included`)}),(0,q.jsx)(`p`,{children:H(`backups:retention`)}),r&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{children:H(`backups:directory`)}),(0,q.jsx)(`code`,{className:`backup-path`,children:r.directory})]})]})]})}function Ca(e){let t=(0,y.useRef)(e);t.current=e;let n=(0,y.useRef)(void 0),[r,i]=(0,y.useState)(),a=(0,y.useCallback)(e=>{let r=n.current;n.current=void 0,i(void 0),r?.resolve(r.scope===t.current?e:void 0)},[]);(0,y.useEffect)(()=>{n.current?.scope!==e&&a()},[e,a]),(0,y.useEffect)(()=>()=>{n.current?.resolve(void 0),n.current=void 0},[]);let o=(0,y.useCallback)(()=>new Promise(e=>{n.current?.resolve(void 0),n.current={scope:t.current,resolve:e},i(t.current)}),[]);return{open:r===e,request:o,finish:a}}var wa=l(g(),1);function Ta({open:e,title:t,onClose:n,children:r,wide:i=!1,className:a=``,portal:o=!1}){let s=(0,y.useRef)(null),c=(0,y.useId)();(0,y.useEffect)(()=>{e&&!s.current?.open&&s.current?.showModal(),e||s.current?.close()},[e]);let l=()=>{s.current?.close(),n()},u=(0,q.jsxs)(`dialog`,{ref:s,className:`project-dialog command-dialog${i?` command-dialog-wide`:``} ${a}`,"aria-labelledby":c,onCancel:e=>{e.preventDefault(),l()},children:[(0,q.jsxs)(`div`,{className:`project-dialog-heading`,children:[(0,q.jsx)(`h2`,{id:c,children:t}),(0,q.jsx)(J,{type:`button`,variant:`ghost`,size:`icon`,"aria-label":H(`commands:closeDialog`),onClick:l,children:(0,q.jsx)(Y,{name:`close`,size:17})})]}),r]});return o?(0,wa.createPortal)(u,document.body):u}function Ea({open:e,onChoose:t,disabled:n}){let[r,i]=(0,y.useState)(`uncommittedChanges`),[a,o]=(0,y.useState)(``),[s,c]=(0,y.useState)(``),[l,u]=(0,y.useState)(``);return(0,q.jsx)(Ta,{open:e,title:H(`commands:reviewTarget`),onClose:()=>t(),children:(0,q.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),!n&&t(r===`baseBranch`?{type:r,branch:a.trim()}:r===`commit`?{type:r,sha:s.trim()}:r===`custom`?{type:r,instructions:l.trim()}:{type:r})},children:[(0,q.jsxs)(`label`,{className:`project-field`,children:[(0,q.jsx)(`span`,{className:`sr-only`,children:H(`commands:reviewTarget`)}),(0,q.jsxs)(`select`,{value:r,onChange:e=>i(e.target.value),children:[(0,q.jsx)(`option`,{value:`uncommittedChanges`,children:H(`commands:reviewUncommitted`)}),(0,q.jsx)(`option`,{value:`baseBranch`,children:H(`commands:reviewBranch`)}),(0,q.jsx)(`option`,{value:`commit`,children:H(`commands:reviewCommit`)}),(0,q.jsx)(`option`,{value:`custom`,children:H(`commands:reviewCustom`)})]})]}),r===`baseBranch`&&(0,q.jsxs)(`label`,{className:`project-field`,children:[(0,q.jsx)(`span`,{children:H(`commands:branchName`)}),(0,q.jsx)(`input`,{required:!0,maxLength:256,value:a,onChange:e=>o(e.target.value),placeholder:`main`,autoComplete:`off`})]}),r===`commit`&&(0,q.jsxs)(`label`,{className:`project-field`,children:[(0,q.jsx)(`span`,{children:`Commit SHA`}),(0,q.jsx)(`input`,{required:!0,pattern:`[a-fA-F0-9]{7,64}`,maxLength:64,value:s,onChange:e=>c(e.target.value),autoComplete:`off`})]}),r===`custom`&&(0,q.jsxs)(`label`,{className:`project-field`,children:[(0,q.jsx)(`span`,{children:H(`commands:reviewInstructions`)}),(0,q.jsx)(`textarea`,{required:!0,maxLength:1e5,value:l,onChange:e=>u(e.target.value)})]}),(0,q.jsxs)(`div`,{className:`project-dialog-actions`,children:[(0,q.jsx)(J,{type:`button`,variant:`ghost`,onClick:()=>t(),children:H(`commands:cancelDialog`)}),(0,q.jsx)(J,{type:`submit`,disabled:n,children:H(`commands:startReview`)})]})]})})}function Da({goal:e}){return(0,q.jsxs)(`div`,{className:`goal-summary`,children:[(0,q.jsx)(`p`,{children:e.objective}),(0,q.jsxs)(`p`,{children:[H(`commands:goal_${e.status}`),` ·`,` `,H(`commands:goalUsageTokens`,{used:e.tokensUsed,budget:e.tokenBudget===null?`—`:bt(e.tokenBudget)}),` `,`· `,H(`commands:goalTime`,{seconds:e.timeUsedSeconds})]})]})}function Oa({threadId:e,initial:t,onClose:n,run:r,disabled:i,stoppingDisabled:a}){let[o,s]=(0,y.useState)(),[c,l]=(0,y.useState)(),[u,d]=(0,y.useState)(/^(edit|pause|resume|clear)$/i.test(t)?``:t),[f,p]=(0,y.useState)(``),[m,h]=(0,y.useState)(!1),[g,_]=(0,y.useState)(0);(0,y.useEffect)(()=>{let n=new AbortController;return s(void 0),l(void 0),W(`/api/threads/${encodeURIComponent(e)}/goal`,void 0,n.signal).then(e=>{n.signal.aborted||(s(e),d(t&&!/^(edit|pause|resume|clear)$/i.test(t)?t:e.goal?.objective??``),p(e.goal?.tokenBudget?.toString()??``))}).catch(e=>{n.signal.aborted||l(ha(e))}),()=>n.abort()},[e,g,t]);async function v(e){if(!m&&o){h(!0),l(void 0);try{(await r({...e,expectedVersion:o.version,confirm:!0}))?.status===`acknowledged`?_(e=>e+1):l(H(`commands:goalUnconfirmed`))}catch(e){l(ha(e))}finally{h(!1)}}}return(0,q.jsxs)(Ta,{open:!0,title:H(`commands:goalTitle`),onClose:n,children:[c&&(0,q.jsx)(`p`,{role:`alert`,children:c}),o?(0,q.jsxs)(q.Fragment,{children:[o.goal?(0,q.jsx)(Da,{goal:o.goal}):(0,q.jsx)(`p`,{children:H(`commands:goalEmpty`)}),(0,q.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),v({action:`set`,objective:u.trim(),status:`active`,...f?{tokenBudget:Number(f)}:{}})},children:[(0,q.jsxs)(`label`,{className:`project-field`,children:[(0,q.jsx)(`span`,{children:H(`commands:goalObjective`)}),(0,q.jsx)(`textarea`,{required:!0,maxLength:1e4,value:u,onChange:e=>d(e.target.value)})]}),(0,q.jsxs)(`label`,{className:`project-field`,children:[(0,q.jsx)(`span`,{children:H(`commands:goalBudget`)}),(0,q.jsx)(`input`,{type:`number`,min:1,max:1e9,step:1,value:f,onChange:e=>p(e.target.value)})]}),(0,q.jsx)(`p`,{children:H(`commands:goalActivation`)}),(0,q.jsxs)(`div`,{className:`project-dialog-actions`,children:[(0,q.jsx)(J,{type:`button`,variant:`ghost`,disabled:m,onClick:()=>_(e=>e+1),children:H(`common:reload`)}),(0,q.jsx)(J,{type:`submit`,disabled:m||i||!u.trim(),children:H(`commands:goalActivate`)})]})]}),o.goal&&(0,q.jsxs)(`div`,{className:`project-dialog-actions`,children:[(0,q.jsx)(J,{disabled:m||a||o.goal.status===`paused`,variant:`secondary`,onClick:()=>void v({action:`set`,status:`paused`}),children:H(`commands:goalPause`)}),(0,q.jsx)(J,{disabled:m||a||o.goal.status===`complete`,variant:`secondary`,onClick:()=>void v({action:`set`,status:`complete`}),children:H(`commands:goalComplete`)}),(0,q.jsx)(J,{disabled:m||a,variant:`destructive`,onClick:()=>void v({action:`clear`}),children:H(`commands:goalClear`)})]})]}):(0,q.jsx)(J,{variant:`ghost`,disabled:m,onClick:()=>_(e=>e+1),children:H(`common:reload`)})]})}function ka({threadId:e,onChoose:t,disabled:n}){let[r,i]=(0,y.useState)(),[a,o]=(0,y.useState)(),[s,c]=(0,y.useState)(),l=r?.find(e=>e.id===s);return(0,y.useEffect)(()=>{let t=new AbortController;return W(`/api/threads/${encodeURIComponent(e)}/denials`,void 0,t.signal).then(({data:e})=>{t.signal.aborted||i(e)}).catch(e=>{t.signal.aborted||o(ha(e))}),()=>t.abort()},[e]),(0,q.jsxs)(Ta,{open:!0,title:H(`commands:approveTitle`),onClose:()=>t(),children:[a?(0,q.jsx)(`p`,{role:`alert`,children:a}):r?r.length?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`label`,{className:`project-field`,children:[(0,q.jsx)(`span`,{className:`sr-only`,children:H(`commands:approveTitle`)}),(0,q.jsxs)(`select`,{value:s??``,onChange:e=>c(e.target.value),children:[(0,q.jsx)(`option`,{value:``,children:H(`commands:approveSelect`)}),r.map(e=>(0,q.jsx)(`option`,{value:e.id,children:e.review.actionSummary.slice(0,100)},e.id))]})]}),l&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`pre`,{className:`command-action-content`,children:l.review.actionSummary}),l.review.cwd&&(0,q.jsx)(`p`,{className:`file-preview-path`,children:l.review.cwd}),(0,q.jsx)(`p`,{children:l.review.rationale}),(0,q.jsx)(`p`,{children:H(`commands:approveConfirm`)})]})]}):(0,q.jsx)(`p`,{children:H(`commands:approveEmpty`)}):(0,q.jsx)(`p`,{role:`status`,children:H(`common:loading`)}),(0,q.jsxs)(`div`,{className:`project-dialog-actions`,children:[(0,q.jsx)(J,{variant:`ghost`,onClick:()=>t(),children:H(`commands:cancelDialog`)}),(0,q.jsx)(J,{disabled:n||!l,onClick:()=>l&&t(l.id),children:H(`commands:approveOnce`)})]})]})}var Aa={get added(){return H(`common:added`)},get deleted(){return H(`common:removed`)},get modified(){return H(`preview:modified`)},get renamed(){return H(`preview:renamed`)}};function ja(e){let t=0,n=0;for(let r of e.hunks){t+=r.lines.length,n+=r.header.length;for(let e of r.lines)n+=e.text.length}if(t){if(t>300)return H(`preview:new_this_file_has_lines_exceeding_300_collapsed`,{v0:t});if(n>5e4)return H(`preview:new_this_file_exceeds_50_000_characters_collapsed`)}}function Ma(e,t=!0){let n=e.split(` `)[0];return n.startsWith(`"`)&&n.endsWith(`"`)&&(n=n.slice(1,-1).replace(/(?:\\[0-7]{1,3})+/g,e=>new TextDecoder().decode(Uint8Array.from([...e.matchAll(/\\([0-7]{1,3})/g)].map(e=>parseInt(e[1],8))))).replace(/\\([\\"tnr])/g,(e,t)=>({t:` `,n:`
|
|
23
|
-
`,r:`\r`})[t]??t)),t?n.replace(/^[ab]\//,``):n}function Na(e,t){let n=e.replace(/\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)/g,``).replace(/\x1b\[[0-?]*[ -/]*[@-~]/g,``).replace(/\r\n/g,`
|
|
24
|
-
`);if(!n.trim()&&!t)return[];let r=[],i,a,o=0,s=0,c=0,l=0,u=!1,d=!1,f=()=>{i&&a&&(c!==0||l!==0)&&(i.incomplete=!0),a=void 0},p=e=>(f(),i={path:e,kind:`modified`,additions:0,deletions:0,hunks:[],metadata:[],binary:!1,incomplete:!1},r.push(i),u=!1,d=!1,i),m=n.split(`
|
|
25
|
-
`);m.at(-1)===``&&m.pop();for(let e of m)if(e.startsWith(`diff --git `)){let n=/^diff --git ("(?:\\.|[^"\\])*"|a\/.*?) ("(?:\\.|[^"\\])*"|b\/.*)$/.exec(e);p(n?Ma(n[2]):t?.path??H(`preview:unknown_file`))}else if(a&&(c>0||l>0)&&/^[ +\-\\]/.test(e))e.startsWith(`\\`)?a.lines.push({kind:`note`,text:H(`preview:no_newline_at_end_of_file`)}):e.startsWith(`+`)?(a.lines.push({kind:`added`,text:e.slice(1),newLine:s++}),l--,i.additions++):e.startsWith(`-`)?(a.lines.push({kind:`removed`,text:e.slice(1),oldLine:o++}),c--,i.deletions++):(a.lines.push({kind:`context`,text:e.slice(1),oldLine:o++,newLine:s++}),c--,l--);else if(e.startsWith(`--- `)){(!i||d)&&p(t?.path??H(`preview:unknown_file`)),f(),u=!0;let n=Ma(e.slice(4));n===`/dev/null`?i.kind=`added`:(i.oldPath=n,i.path=n)}else if(e.startsWith(`+++ `)){i??=p(t?.path??H(`preview:unknown_file`)),d=!0;let n=Ma(e.slice(4));n===`/dev/null`?i.kind=`deleted`:(i.path=n,i.oldPath&&i.oldPath!==n&&(i.kind=`renamed`))}else if(e.startsWith(`@@`)){i??=p(t?.path??H(`preview:unknown_file`)),f();let n=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/.exec(e);if(!n){i.incomplete=!0,i.metadata.push(e);continue}o=Number(n[1]),s=Number(n[3]),c=Number(n[2]??1),l=Number(n[4]??1),a={header:e,lines:[]},i.hunks.push(a)}else e.startsWith(`\\ No newline`)&&a?a.lines.push({kind:`note`,text:H(`preview:no_newline_at_end_of_file`)}):(e||i)&&(i??=p(t?.path??H(`preview:unknown_file`)),(e.startsWith(`[输出已截断`)||e.startsWith(`[内容已截断`))&&(i.incomplete=!0),e.startsWith(`new file mode`)?i.kind=`added`:e.startsWith(`deleted file mode`)?i.kind=`deleted`:e.startsWith(`rename from `)?(i.oldPath=Ma(e.slice(12),!1),i.kind=`renamed`):e.startsWith(`rename to `)&&(i.path=Ma(e.slice(10),!1),i.kind=`renamed`),/^(Binary files |GIT binary patch)/.test(e)&&(i.binary=!0),!i.binary&&!e.startsWith(`index `)&&e&&i.metadata.push(e));return f(),!r.length&&t&&p(t.path),t&&r.length===1&&(!u&&!d&&(i.path=t.path),t.kind===`add`&&(i.kind=`added`),t.kind===`delete`&&(i.kind=`deleted`)),r}var Pa=new Intl.Segmenter(void 0,{granularity:`grapheme`}),Fa=e=>Array.from(Pa.segment(e),e=>e.segment),Ia=new Intl.Segmenter(void 0,{granularity:`word`}),La=e=>Array.from(Ia.segment(e.join(``)),e=>e.segment);function Ra(e,t,n){if(!t)return;let r=e.at(-1);r?.changed===n?r.text+=t:e.push({text:t,changed:n})}function za(e,t,n){let r=Fa(e),i=Fa(t),a=[],o=[],s=0,c=0;for(;s<r.length&&s<i.length&&r[s]===i[s];)s++;for(;c<r.length-s&&c<i.length-s&&r.at(-c-1)===i.at(-c-1);)c++;Ra(a,r.slice(0,s).join(``),!1),Ra(o,i.slice(0,s).join(``),!1);let l=La(r.slice(s,r.length-c)),u=La(i.slice(s,i.length-c)),d=(l.length+1)*(u.length+1);if(!l.length||!u.length||d>n.cells)Ra(a,l.join(``),!0),Ra(o,u.join(``),!0);else{n.cells-=d;let e=u.length+1,t=new Uint16Array(d);for(let n=l.length-1;n>=0;n--)for(let r=u.length-1;r>=0;r--)t[n*e+r]=l[n]===u[r]?1+t[(n+1)*e+r+1]:Math.max(t[(n+1)*e+r],t[n*e+r+1]);let r=0,i=0;for(;r<l.length||i<u.length;)r<l.length&&i<u.length&&l[r]===u[i]?(Ra(a,l[r++],!1),Ra(o,u[i++],!1)):r<l.length&&(i===u.length||t[(r+1)*e+i]>=t[r*e+i+1])?Ra(a,l[r++],!0):Ra(o,u[i++],!0)}return Ra(a,r.slice(r.length-c).join(``),!1),Ra(o,i.slice(i.length-c).join(``),!1),[a,o]}function Ba(e){let t=e.trim().slice(0,4096),n=new Map,r=0;for(let e of t.match(/[\p{L}\p{N}_]+|[^\s\p{L}\p{N}_]/gu)??[])n.set(e,(n.get(e)??0)+1),r+=e.length;return{trimmed:t,tokens:n,size:r}}function Va(e,t){if(e.trimmed===t.trimmed)return 1;let n=0,r=0,i=0;for(let[r,i]of e.tokens)n+=Math.min(i,t.tokens.get(r)??0)*r.length;let a=e.trimmed,o=t.trimmed;for(;r<a.length&&r<o.length&&a[r]===o[r];)r++;for(;i<a.length-r&&i<o.length-r&&a.at(-i-1)===o.at(-i-1);)i++;return Math.max(2*n/Math.max(1,e.size+t.size),(r+i)/Math.max(1,a.length,o.length))}function Ha(e){let t={cells:2e5},n=1e4;return e.map(e=>{let r=[...e.lines];for(let e=0;e<r.length;){if(r[e].kind===`context`){e++;continue}let i=e,a=[],o=[];for(;i<r.length&&r[i].kind!==`context`;)r[i].kind===`removed`&&a.push(i),r[i].kind===`added`&&o.push(i),i++;let s=(a.length+1)*(o.length+1);if(a.length&&o.length&&s<=n){n-=s;let e=a.map(e=>Ba(r[e].text)),i=o.map(e=>Ba(r[e].text)),c=o.length+1,l=new Float64Array(s),u=new Uint8Array(s);for(let t=a.length-1;t>=0;t--)for(let n=o.length-1;n>=0;n--){let r=Va(e[t],i[n])*2-.5,a=r>0?r+l[(t+1)*c+n+1]:-1,o=l[(t+1)*c+n],s=l[t*c+n+1];l[t*c+n]=Math.max(a,o,s),u[t*c+n]=a>=o&&a>=s?1:o>=s?2:3}let d=0,f=0;for(;d<a.length&&f<o.length;){let e=u[d*c+f];if(e===1){let e=a[d++],n=o[f++],i=r[e],s=r[n];if(i.text!==s.text){let[a,o]=za(i.text,s.text,t);r[e]={...i,segments:a},r[n]={...s,segments:o}}}else e===2?d++:f++}}e=i}return{...e,lines:r}})}function Ua({label:e,closeLabel:t=H(`preview:close`,{v0:e}),title:n,subtitle:r,icon:i,actions:a,onClose:o,children:s}){let c=(0,y.useRef)(null),l=(0,y.useRef)(null);return(0,y.useEffect)(()=>{let e=c.current,t=document.activeElement,n=window.matchMedia(`(max-width: 1279px)`),r=()=>{e.close(),n.matches?e.showModal():e.show()};r(),l.current?.focus({preventScroll:!0}),n.addEventListener(`change`,r);let i=e=>{e.key===`Escape`&&!e.defaultPrevented&&!document.querySelector(`dialog[open]:modal:not(.file-preview)`)&&(e.preventDefault(),o())};return document.addEventListener(`keydown`,i),()=>{n.removeEventListener(`change`,r),document.removeEventListener(`keydown`,i),e.close(),t instanceof HTMLElement&&t.isConnected&&t.focus({preventScroll:!0})}},[o]),(0,q.jsxs)(`dialog`,{ref:c,className:`file-preview`,"aria-label":e,onCancel:e=>{e.target===e.currentTarget&&(e.preventDefault(),o())},children:[(0,q.jsxs)(`header`,{className:`file-preview-header`,children:[(0,q.jsxs)(J,{ref:l,variant:`ghost`,size:`icon`,"aria-label":t,onClick:o,children:[(0,q.jsx)(Gt,{className:`file-preview-back`,size:20}),(0,q.jsx)(er,{className:`file-preview-close`,size:20})]}),i,(0,q.jsxs)(`div`,{className:`file-preview-title`,children:[(0,q.jsx)(`h2`,{children:n}),(0,q.jsx)(`span`,{children:r})]}),a]}),s]})}function Wa({file:e}){return(0,q.jsxs)(`span`,{className:`diff-stats`,"aria-label":H(`preview:lines_added_lines_removed`,{v0:e.additions,v1:e.deletions}),children:[(0,q.jsxs)(`span`,{children:[`+`,e.additions]}),(0,q.jsxs)(`span`,{children:[`−`,e.deletions]})]})}function Ga({target:e,threadId:t,onClose:n}){let[r,i]=(0,y.useState)(),[a,o]=(0,y.useState)(),[s,c]=(0,y.useState)(0);return(0,y.useEffect)(()=>{let n=new AbortController,r=setTimeout(()=>{n.abort(),o(Ct(`preview:reading_changes_timed_out_please_retry`))},35e3);return i(void 0),o(void 0),(e.cursor?pr.threadHistory(t,e.cursor,n.signal):pr.thread(t,n.signal)).then(t=>{if(!n.signal.aborted){if(e.source===`turn`){let n=t.turns.find(t=>t.id===e.id);if(!n)throw Error(H(`preview:changes_from_this_turn_are_no_longer_in`));i({...e,text:n.diff,changes:n.diff===void 0?n.items.flatMap(e=>e.changes??[]):void 0,truncated:t.historyTruncated||n.items.some(e=>e.type===`fileChange`&&e.truncated)})}else{let n=t.turns.flatMap(e=>e.items).find(t=>t.id===e.id);if(!n)throw Error(H(`preview:changes_from_this_tool_are_no_longer_in`));i({...e,changes:n.changes??[],truncated:n.truncated})}}}).catch(e=>{n.signal.aborted||o(ha(e))}).finally(()=>clearTimeout(r)),()=>{n.abort(),clearTimeout(r)}},[e,t,s]),(0,q.jsxs)(Ua,{label:H(`preview:code_change_preview`),title:H(`preview:code_changes`),subtitle:H(`preview:read_only`,{v0:U(e.scope)}),icon:(0,q.jsx)(bn,{size:19,className:`file-preview-icon`,"aria-hidden":`true`}),onClose:n,children:[(0,q.jsx)(`p`,{className:`diff-scope`,children:H(`preview:a_change_snapshot_from_codex_containing_patches_in`)}),a?(0,q.jsxs)(`div`,{className:`diff-empty`,role:`alert`,children:[(0,q.jsx)(`h3`,{children:H(`preview:unable_to_load_changes`)}),(0,q.jsx)(`p`,{children:U(a)}),wt(a)&&(0,q.jsxs)(`details`,{children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsx)(`pre`,{children:wt(a)})]}),(0,q.jsx)(J,{variant:`secondary`,onClick:()=>c(e=>e+1),children:H(`common:reload`)})]}):r?(0,q.jsx)(Ka,{target:r},s):(0,q.jsx)(`p`,{className:`file-preview-loading diff-loading`,role:`status`,children:H(`preview:loading_changes`)})]})}function Ka({target:e,showScope:t=!0}){let n=_t(),r=(0,y.useMemo)(()=>e.changes?e.changes.flatMap(e=>Na(e.diff,e)):Na(e.text??``),[e,n]),[i,a]=(0,y.useState)(!1);return(0,q.jsxs)(q.Fragment,{children:[e.truncated&&(0,q.jsx)(`p`,{className:`diff-warning`,role:`status`,children:H(`preview:this_patch_is_truncated_only_received_content_is`)}),r.length?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`diff-list-toolbar`,children:[(0,q.jsx)(`span`,{children:H(`preview:new_files_in_this_snapshot`,{v0:r.length})}),(0,q.jsxs)(J,{variant:`ghost`,size:`sm`,"aria-pressed":i,onClick:()=>a(!i),children:[(0,q.jsx)(Xn,{size:15}),H(`preview:wrap_lines`)]})]}),(0,q.jsx)(`div`,{className:`diff-files`,tabIndex:0,"aria-label":H(`preview:new_changed_file_list`),children:r.map((t,n)=>(0,q.jsx)(qa,{file:t,wrap:i,reveal:e.selectedPath!==void 0&&(t.path===e.selectedPath||t.oldPath===e.selectedPath)},n))})]}):(0,q.jsxs)(`div`,{className:`diff-empty`,role:`status`,children:[(0,q.jsx)(bn,{size:28}),(0,q.jsx)(`h3`,{children:H(`preview:no_file_changes_yet`)}),(0,q.jsx)(`p`,{children:H(`preview:no_previewable_patch_received_in_this_scope_yet`)})]}),t&&(0,q.jsx)(`footer`,{className:`file-preview-path`,children:U(e.scope)})]})}function qa({file:e,wrap:t,reveal:n}){let r=(0,y.useMemo)(()=>ja(e),[e]),[i,a]=(0,y.useState)(()=>n||!r),o=(0,y.useRef)(null),s=(0,y.useRef)(null),c=(0,y.useRef)(void 0),l=(0,y.useId)();(0,y.useEffect)(()=>{n&&o.current?.scrollIntoView({block:`start`})},[n]),(0,y.useLayoutEffect)(()=>{let e=c.current,t=o.current,n=t?.closest(`.diff-files`);e!==void 0&&t&&n&&(n.scrollTop+=t.getBoundingClientRect().top-e,s.current?.focus({preventScroll:!0}),c.current=void 0)},[i]);function u(){let e=o.current,t=e?.closest(`.diff-files`);e&&t&&(c.current=Math.max(e.getBoundingClientRect().top,t.getBoundingClientRect().top)),a(!1)}return(0,q.jsxs)(`section`,{ref:o,className:`diff-file`,"aria-label":e.path,children:[(0,q.jsxs)(`div`,{className:`diff-file-heading`,children:[(0,q.jsx)(`h3`,{children:(0,q.jsx)(`code`,{children:e.path})}),(0,q.jsx)(`span`,{className:`diff-kind diff-kind-${e.kind}`,children:Aa[e.kind]}),(0,q.jsx)(Wa,{file:e}),(0,q.jsxs)(J,{ref:s,variant:`ghost`,size:`sm`,"aria-expanded":i,"aria-controls":l,onClick:()=>i?u():a(!0),children:[i?(0,q.jsx)(rn,{size:15}):(0,q.jsx)($t,{size:15}),H(i?`preview:new_collapse_changes`:`preview:new_expand_changes`)]})]}),e.kind===`renamed`&&e.oldPath&&(0,q.jsx)(`p`,{className:`diff-rename`,children:H(`preview:original_path`,{v0:e.oldPath})}),e.incomplete&&(0,q.jsx)(`p`,{className:`diff-warning`,role:`status`,children:H(`preview:this_patch_is_incomplete_or_malformed_line_numbers`)}),!i&&(0,q.jsx)(`p`,{className:`diff-collapsed`,children:H(`preview:new_choose_expand_changes_to_view_it`,{v0:r??H(`preview:new_changes_were_collapsed_manually`)})}),(0,q.jsxs)(`div`,{id:l,hidden:!i,children:[i&&(0,q.jsx)(Ja,{file:e,wrap:t}),i&&r&&(0,q.jsxs)(J,{className:`diff-collapse-bottom`,variant:`ghost`,size:`sm`,onClick:u,children:[(0,q.jsx)(rn,{size:15}),H(`preview:new_collapse_changes`)]})]})]})}function Ja({file:e,wrap:t}){let[n,r]=(0,y.useState)(0),i=(0,y.useRef)([]),a=(0,y.useMemo)(()=>Ha(e.hunks),[e]),o=!e.binary&&!e.hunks.length&&e.metadata.some(e=>!/^(old mode |new mode |new file mode |deleted file mode |similarity index |dissimilarity index |rename from |rename to )/.test(e));function s(e){r(e);let t=i.current[e],n=t?.closest(`.diff-files`),a=t?.closest(`.diff-file`)?.querySelector(`.diff-file-heading`);t&&n&&a&&(n.scrollTop+=t.getBoundingClientRect().top-n.getBoundingClientRect().top-a.getBoundingClientRect().height-12)}return(0,q.jsxs)(q.Fragment,{children:[e.hunks.length>1&&(0,q.jsxs)(`div`,{className:`diff-controls`,role:`group`,"aria-label":H(`preview:change_hunk_navigation`),children:[(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`preview:previous_change_hunk`),disabled:n===0,onClick:()=>s(n-1),children:(0,q.jsx)(rn,{size:16})}),(0,q.jsx)(`span`,{children:H(`preview:new_hunks`,{v0:n+1,v1:e.hunks.length})}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`preview:next_change_hunk`),disabled:n>=e.hunks.length-1,onClick:()=>s(n+1),children:(0,q.jsx)($t,{size:16})})]}),(0,q.jsx)(`div`,{className:`diff-content${t?` diff-wrap`:``}`,tabIndex:0,"aria-label":H(`preview:new_changes_in`,{v0:e.path}),children:e.binary?(0,q.jsxs)(`div`,{className:`diff-empty`,children:[(0,q.jsx)(bn,{size:28}),(0,q.jsx)(`h3`,{children:H(`preview:binary_file_changed`)}),(0,q.jsx)(`p`,{children:H(`preview:line_by_line_preview_is_unavailable_for_this`)})]}):o?(0,q.jsxs)(`div`,{className:`diff-empty`,role:`alert`,children:[(0,q.jsx)(`h3`,{children:H(`preview:unable_to_read_change_content`)}),(0,q.jsx)(`p`,{children:H(`preview:the_content_is_not_a_recognized_unified_diff`)})]}):e.hunks.length?(0,q.jsxs)(`table`,{className:`diff-table`,"aria-label":H(`preview:line_changes_in`,{v0:e.path}),children:[(0,q.jsx)(`thead`,{children:(0,q.jsxs)(`tr`,{children:[(0,q.jsx)(`th`,{scope:`col`,children:H(`preview:old_line`)}),(0,q.jsx)(`th`,{scope:`col`,children:H(`preview:new_line`)}),(0,q.jsx)(`th`,{scope:`col`,"aria-label":H(`preview:change_type`)}),(0,q.jsx)(`th`,{scope:`col`,children:H(`preview:code`)})]})}),a.map((e,t)=>(0,q.jsxs)(`tbody`,{ref:e=>{i.current[t]=e},children:[(0,q.jsx)(`tr`,{className:`diff-hunk`,children:(0,q.jsxs)(`td`,{colSpan:4,children:[(0,q.jsx)(`span`,{children:H(`preview:hunk`,{v0:t+1})}),` `,e.header]})}),e.lines.map((e,t)=>(0,q.jsxs)(`tr`,{className:`diff-line diff-${e.kind}`,children:[(0,q.jsx)(`td`,{className:`diff-line-number`,children:e.oldLine}),(0,q.jsx)(`td`,{className:`diff-line-number`,children:e.newLine}),(0,q.jsx)(`td`,{className:`diff-marker`,"aria-label":{added:H(`common:added`),removed:H(`common:removed`),context:H(`preview:context`),note:H(`preview:note`)}[e.kind],children:e.kind===`added`?`+`:e.kind===`removed`?`−`:``}),(0,q.jsx)(`td`,{className:`diff-code`,children:(0,q.jsx)(`code`,{children:e.segments?e.segments.map((e,t)=>e.changed?(0,q.jsx)(`mark`,{className:`diff-inline-change`,children:e.text},t):e.text):e.text||` `})})]},t))]},t))]}):(0,q.jsxs)(`div`,{className:`diff-empty`,children:[(0,q.jsx)(`h3`,{children:H(`preview:no_line_changes`)}),(0,q.jsx)(`p`,{children:H(`preview:this_patch_changes_only_metadata_paths_or_empty`)})]})})]})}function Ya({path:e,onClose:t}){let[n,r]=(0,y.useState)(),[i,a]=(0,y.useState)(),[o,s]=(0,y.useState)(0),[c,l]=(0,y.useState)(`unstaged`);return(0,y.useEffect)(()=>{let t=new AbortController;return r(void 0),a(void 0),W(e,void 0,t.signal).then(e=>{t.signal.aborted||r(e)}).catch(e=>{t.signal.aborted||a(ha(e))}),()=>t.abort()},[e,o]),(0,q.jsxs)(Ta,{open:!0,title:H(`commands:workspaceDiff`),onClose:t,wide:!0,children:[(0,q.jsxs)(`div`,{className:`diff-list-toolbar`,children:[(0,q.jsx)(`div`,{role:`group`,"aria-label":H(`commands:diffSection`),children:[`staged`,`unstaged`,`untracked`].map(e=>(0,q.jsx)(J,{size:`sm`,variant:e===c?`secondary`:`ghost`,"aria-pressed":e===c,onClick:()=>l(e),children:H(`commands:diff_${e}`)},e))}),(0,q.jsx)(J,{variant:`ghost`,size:`sm`,onClick:()=>s(e=>e+1),children:H(`common:reload`)})]}),i?(0,q.jsx)(`p`,{role:`alert`,children:U(i)}):n?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`p`,{className:`file-preview-path`,children:[n.cwd,` ·`,` `,xt(new Date(n.readAt),{dateStyle:`short`,timeStyle:`medium`})]}),n.truncated&&(0,q.jsx)(`p`,{className:`diff-warning`,role:`status`,children:H(`commands:diffPartial`)}),(0,q.jsx)(Ka,{showScope:!1,target:{scope:H(`commands:diff_${c}`),...c===`untracked`?{changes:n.untracked}:{text:n[c]}}},`${o}:${c}`)]}):(0,q.jsx)(`p`,{role:`status`,children:H(`preview:loading_changes`)})]})}var Xa=`<send_user_message_question_reply>`,Za=`</send_user_message_question_reply>`;function Qa(e,t){return JSON.stringify([`request_user_input_async`,e,t])}function $a(e){return`${Xa}${JSON.stringify(e)}${Za}`}function eo(e){let t=e.trim();if(t.startsWith(`# Context from my IDE setup:
|
|
26
|
-
`)){let e=t.lastIndexOf(`
|
|
27
|
-
## My request for Codex:
|
|
28
|
-
`);if(e<0)return;t=t.slice(e+26).trim()}if(t.startsWith(Xa)&&t.endsWith(Za))try{let e=JSON.parse(t.slice(34,-35)),n=Array.isArray(e)?e:[e];return!n.length||!n.every(e=>typeof e==`object`&&!!e&&`questionItemId`in e&&typeof e.questionItemId==`string`&&!!e.questionItemId.trim()&&`question`in e&&typeof e.question==`string`&&`answer`in e&&typeof e.answer==`string`)?void 0:n.map(({questionItemId:e,question:t,answer:n})=>({questionItemId:e,question:t,answer:n}))}catch{return}}function to(e){if(e.archived)return[];let t={threadId:e.id,projectId:e.projectId,title:e.title},n=e.actions.flatMap(e=>{if(e.status!==`pending`||e.kind===`unsupported`)return[];let n=e.kind===`questions`||e.kind===`elicitation`&&!e.elicitation?.approval;return[{...t,kind:n?`answer`:`approval`,target:{kind:`action`,id:e.actionId}}]}),r=e.turns.flatMap(e=>e.items.flatMap(e=>e.questionReplies??[]));for(let i of e.turns)if(i.status!==`failed`&&i.status!==`interrupted`)for(let a of i.items)a.questions?.length&&a.type===`agentMessage`&&a.questions.some((t,n)=>e.questionTracking?.[Qa(a.id,n)]?.status!==`dismissed`&&!r.some(e=>e.questionItemId===Qa(a.id,n)||e.questionItemId===a.id&&e.question===t.title))&&n.push({...t,kind:`answer`,target:{kind:`question`,id:a.id}});return n}function no(e){return JSON.stringify([`attention`,e.threadId,e.target.kind,e.target.id])}function ro(e){let t=e.turns.at(-1);return{id:e.id,...e.archived===void 0?{}:{archived:e.archived},...e.forkedFromId===void 0?{}:{forkedFromId:e.forkedFromId},projectId:e.projectId,source:e.source,originator:e.originator??null,title:e.title,status:e.status,managed:e.managed,...e.historyVisible===void 0?{}:{historyVisible:e.historyVisible},...e.updatedAt===void 0?{}:{updatedAt:e.updatedAt},pendingActionCount:e.actions.filter(e=>e.status===`pending`||e.status===`responding`).length,pendingQuestionCount:to(e).filter(e=>e.target.kind===`question`).length,...t===void 0?{}:{lastTurnId:t.id,lastTurnStatus:t.status}}}function io(e,t){let n=eo(t.text);return{id:`submission:${e}`,type:`userMessage`,clientId:e,text:n?n.map(e=>`${e.question}\n${e.answer}`).join(`
|
|
29
|
-
|
|
30
|
-
`):t.text,...n?{questionReplies:n}:{},...t.images?.length?{images:[...t.images],imageCount:t.images.length}:{}}}function ao(e,t){return t===`serverOverloaded`||t===`policyCapacityUnavailable`||(!t||t===`other`)&&e.trim()===`Selected model is at capacity. Please try a different model.`}function oo(e){return ao(e.message,e.errorCode)||(!e.errorCode||e.errorCode===`other`||e.errorCode===`responseStreamDisconnected`)&&e.errorDetails?.trim()===`Selected model is at capacity. Please try a different model.`}function so(e){let t=/^Reconnecting(?:\.{3}|…)\s+(\d+)\/(\d+)(?:\s|$)/.exec(e);if(!t)return;let n=Number(t[1]),r=Number(t[2]);return Number.isSafeInteger(n)&&Number.isSafeInteger(r)&&n>0&&n<=r&&r<=100?{attempt:n,limit:r}:void 0}function co(e){return!!(e.reconnect&&oo(e.reconnect))||!!(e.error&&ao(e.error,e.errorCode))}function lo(e){let t=[];for(let n of e.turns){let e=t.at(-1);n.retryOf&&e?.root===n.retryOf&&e.turn.status===`failed`&&e.turn.items.every(e=>e.type===`userMessage`)&&!n.items.some(e=>e.type===`userMessage`)?e.turn={...n,items:[...e.turn.items,...n.items]}:t.push({root:n.retryOf??n.id,turn:n})}let n=t.map(e=>e.turn),r=n.at(-1);if(!r)return n;let i=e.capacityRetry;return(i||r.status===`failed`&&ao(r.error??``,r.errorCode))&&(n[n.length-1]={...r,status:i?.status===`waiting`||i?.status===`retrying`?`running`:r.status,error:void 0,reconnect:void 0}),n}function uo(e,t){return e.turns.some(e=>(!t.turnId||t.turnId===e.id)&&e.items.some(e=>e.type===`userMessage`&&e.clientId===t.id))}function fo(e,t){let n=new Map(t.filter(t=>t.threadId===e.id).map(e=>[e.id,e]));for(let t of e.pendingMessages??[])n.set(t.id,t);return{...e,pendingMessages:[...n.values()].filter(t=>!uo(e,t)).sort((e,t)=>e.createdAt-t.createdAt||e.id.localeCompare(t.id))}}function po(e){let t=e.turns.map(e=>({...e,items:[...e.items]})),n=[];for(let r of e.pendingMessages??[]){if(uo(e,r))continue;let i={...r.item,submissionStatus:r.status},a=r.turnId?t.find(e=>e.id===r.turnId):void 0;a?r.kind===`steer`?a.items.push(i):a.items.unshift(i):n.push(i)}return{turns:lo({...e,turns:t}),unbound:n}}var mo={ask:{label:`请求批准`,description:`可在项目内读写和运行命令,联网或越界操作由你批准。`,profile:`:workspace`,sandbox:`workspace-write`,approvalPolicy:`on-request`,approvalReviewer:`user`},"auto-review":{label:`帮我批准`,description:`与请求批准的权限相同,符合条件的申请由自动审核处理。`,profile:`:workspace`,sandbox:`workspace-write`,approvalPolicy:`on-request`,approvalReviewer:`auto_review`},"full-access":{label:`完全访问`,description:`可访问项目外文件和网络,无 Codex 沙箱限制,无需审批。`,profile:`:danger-full-access`,sandbox:`danger-full-access`,approvalPolicy:`never`,approvalReviewer:`user`},"read-only":{label:`只读`,description:`可读取文件,写入或联网需要你批准。`,profile:`:read-only`,sandbox:`read-only`,approvalPolicy:`on-request`,approvalReviewer:`user`}};function ho(e,t,n){if(!t)return`尚未读取权限模式的可用条件`;if(t.unavailableReason)return t.unavailableReason;let r=mo[e];return t.allowedProfiles&&!t.allowedProfiles.includes(r.profile)?`受管要求不允许此权限 profile`:t.allowedSandboxModes&&!t.allowedSandboxModes.includes(r.sandbox)?`受管要求不允许此权限范围`:t.allowedApprovalPolicies&&!t.allowedApprovalPolicies.includes(r.approvalPolicy)?`受管要求不允许此审批策略`:go(r.approvalReviewer,t,n)}function go(e,t,n){if(!t)return`尚未读取审核方的可用条件`;if(t.unavailableReason)return t.unavailableReason;if(t.allowedReviewers&&!t.allowedReviewers.includes(e))return`受管要求不允许此审核方`;if(e===`auto_review`&&!t.autoReview)return`当前 Codex 未启用自动审核(guardian_approval)`;if(n&&t.autoReviewRequiredModels.includes(n)&&e!==`auto_review`)return`受管要求规定此模型必须使用自动审核`}var _o=Object.fromEntries(Object.keys(mo).map(e=>[e,{...mo[e],get label(){return H(`settings:permission_${e}`)},get description(){return H(`settings:permission_${e}_description`)}}]));function vo(...e){let t=ho(...e);if(!t)return;let n=[`missingCapabilities`,`profileRestricted`,`scopeRestricted`,`policyRestricted`,`reviewerMissing`,`reviewerRestricted`,`autoReviewDisabled`,`autoReviewRequired`].find(e=>ot[`zh-Hans`].settings[e]===t);return H(n?`settings:${n}`:`settings:permission_unavailable`)}function yo(e){if(e?.permissionMode)return e.permissionMode;if(e?.sandbox===`external-sandbox`||e?.approvalPolicy===`granular`)return`custom`}function bo(e,t=H(`common:not_reported`)){let n=yo(e);return n===`custom`?e?.permissionProfile?H(`settings:custom`,{v0:e.permissionProfile.id}):H(`settings:custom_2`):n?_o[n].label:e?.sandbox||e?.permissionProfile?H(`settings:cannot_determine_mode`):t}function xo(e,t,n){let r={...e,permissionMode:n};return delete r.sandbox,delete r.approvalPolicy,delete r.approvalReviewer,So(r,t)}function So(e,t){return Object.fromEntries(Object.entries(e).filter(([n,r])=>r!==void 0&&(r!==t?.[n]||n===`reasoningEffort`&&e.model!==void 0&&e.model!==t?.model)))}function Co(e,t,n){let r=e.reasoningEffort??t?.reasoningEffort;return{model:n.id,reasoningEffort:r&&n.reasoningEfforts.includes(r)?r:n.reasoningEfforts.includes(n.defaultReasoningEffort??``)?n.defaultReasoningEffort??null:n.reasoningEfforts[0]??null}}function wo(e,t,n){let r=Co(e,t,n),i={...e,model:r.model};return r.reasoningEffort===null?delete i.reasoningEffort:i.reasoningEffort=r.reasoningEffort,(e.serviceTier===void 0?t?.serviceTier:e.serviceTier)===`fast`&&!n.serviceTiers?.includes(`fast`)&&(i.serviceTier=null),So(i,t)}function To(e,t=H(`common:not_reported`)){return e===null||e==="default"?H(`settings:fast_off`):e===`fast`?H(`settings:fast_on`):e===void 0?`Fast ${t}`:e}function Eo(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Do(e,t=`|`){return e.map(e=>Qo(e)).join(t)}function Oo(e,t){return typeof t==`bigint`?t.toString():t}var ko=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function Ao(e){return new ko(e)}function jo(e){return e==null}function Mo(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function No(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function Po(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Fo(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function Io(e){return Fo(e._zod.def)??e._zod.def.shape}function Lo(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return Po(this,t,e),e},enumerable:!0,configurable:!0})}function Ro(e,t,n){t in e?Po(e,t,n):e[t]=n}function zo(e,t,n,r){let i=Io(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?Lo(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):Ro(e,a,r?r(n.value,a):n.value))}}function Bo(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?Lo(e,n,()=>t[n]):Ro(e,n,r.value))}}function Vo(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function Ho(e){return JSON.stringify(e)}function Uo(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var Wo=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Go(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Ko=Ao(()=>{if(Hs.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function qo(e){if(Go(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return Go(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function Jo(e){return qo(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Yo=new Set([`string`,`number`,`symbol`]);function Xo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Zo(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function X(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Qo(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function $o(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var es={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ts={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function ns(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return zo(i,e,rs(e,t)),Zo(e,Vo(n,{shape:i,checks:[]}))}function rs(e,t){let n=Io(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function is(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(rs(e,t)),a={};return zo(a,e,Reflect.ownKeys(Io(e)).filter(e=>!i.has(e))),Zo(e,Vo(n,{shape:a,checks:[]}))}function as(e,t){if(!qo(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=Io(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Zo(e,Vo(e._zod.def,{shape:os(e,t)}))}function os(e,t){let n={};return zo(n,e,Reflect.ownKeys(Io(e))),Bo(n,t),n}function ss(e,t){if(!qo(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Zo(e,Vo(e._zod.def,{shape:os(e,t)}))}function cs(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return zo(n,e,Reflect.ownKeys(Io(e))),zo(n,t,Reflect.ownKeys(Io(t))),Zo(e,Vo(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function ls(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(rs(t,n)):void 0,o={};return zo(o,t,Reflect.ownKeys(Io(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),Zo(t,Vo(t._zod.def,{shape:o,checks:[]}))}function us(e,t,n){let r=n?new Set(rs(t,n)):void 0,i={};return zo(i,t,Reflect.ownKeys(Io(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),Zo(t,Vo(t._zod.def,{shape:i}))}function ds(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function fs(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function ps(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function ms(e){return typeof e==`string`?e:e?.message}function hs(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function gs(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function _s(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:ms(e.inst?._zod.def?.error?.(e))??ms(a?.(e))??ms(t?.error?.(e))??ms(n.customError?.(e))??ms(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var vs=/[\uD800-\uDBFF]/;function ys(e){let t=e.length;if(!vs.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function bs(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function xs(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Ss(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Cs(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Ds(e,n,r.value)}}function ws(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Ts(e,t,n){return ws(e,t,n,!1)}function Es(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return ws(this,n,r(this))},set(e){ws(this,n,e)}})}return t}function Ds(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:ws(this,t,n.bind(this))},set(e){ws(this,t,e)}})}function Os(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var ks,As=!1,js={configurable:!0,get(){As=!0}};function Ms(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&ks!==e._zod?ks=void 0:(ks=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,js);let e=As;As=!1;try{let r=n(this);return As?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),As||=e,r}catch(n){throw delete this[t],As||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function Ns(e,t,n,r){let i=Os(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var Ps=`~constantCatch`;function Fs(e){let t=()=>e;return t[Ps]=!0,t}var Is,Ls={value:void 0,enumerable:!1},Rs=`captureStackTrace`in Error?Error:null;function zs(e){let t=Rs;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Rs=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function Z(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){Ls.value=new a(r);try{Object.defineProperty(n,"_zod",Ls)}finally{Ls.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),Cs(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?zs(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var Bs=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Vs=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(Is=globalThis).__zod_globalConfig??(Is.__zod_globalConfig={});var Hs=globalThis.__zod_globalConfig;function Us(e){return e&&Object.assign(Hs,e),Hs}function Ws(){let e=this._zod;return e.message??=JSON.stringify(e.def,Oo,2),e.message}function Gs(e){this._zod.message=e}var Ks={get:Ws,set:Gs,enumerable:!0,configurable:!0},qs={value:void 0,enumerable:!1},Js=new WeakSet([Object.prototype,Error.prototype]),Ys=(e,t)=>{e.name=`$ZodError`,qs.value=t,Object.defineProperty(e,"issues",qs),qs.value=void 0,Object.defineProperty(e,"message",Ks);let n=Object.getPrototypeOf(e);Js.has(n)||(Js.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},Xs=Z(`$ZodError`,Ys);Z(`$ZodError`,Ys,void 0,{Parent:Error});function Zs(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Qs(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?Zs(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function $s(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function ec(e,t){return{callee:t?.callee??e,Err:t?.Err}}var tc=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new Bs;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>_s(e,o,Us())));throw Wo(n,a?.callee??t),n}return s.value};return t},nc=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>_s(e,o,Us())));throw Wo(n,a?.callee??t),n}return s.value};return t},rc=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Bs;return a.issues.length?ic(e,a.issues,i):{success:!0,data:a.value}};function ic(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>_s(e,n,Us()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var ac=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?ic(e,a.issues,i):{success:!0,data:a.value}},oc=Symbol.for(`zod.compile.invalid`),sc=Symbol.for(`zod.compile.fallback`),cc=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==oc)return!0;if(r.definite===!0&&n===void 0)return!1}return lc(e,t,n)});function lc(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[sc]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new Bs;return a.issues.length===0}var uc=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},dc=e=>{let t=tc(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,ec(n,a))};return n},fc=e=>{let t=tc(e),n=(e,r,i,a)=>t(e,r,i,ec(n,a));return n},pc=e=>{let t=nc(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,ec(n,a))};return n},mc=e=>{let t=nc(e),n=async(e,r,i,a)=>await t(e,r,i,ec(n,a));return n},hc=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return rc(e)(t,n,i)},gc=e=>(t,n,r)=>rc(e)(t,n,r),_c=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ac(e)(t,n,i)},vc=e=>async(t,n,r)=>ac(e)(t,n,r),yc=/^[cC][0-9a-z]{6,}$/,bc=/^[0-9a-z]+$/,xc=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Sc=/^[0-9a-vA-V]{20}$/,Cc=/^[A-Za-z0-9]{27}$/,wc=/^[a-zA-Z0-9_-]{21}$/;function Tc(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Ec=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Dc=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Oc=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,kc=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ac=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function jc(){return new RegExp(Ac,`u`)}var Mc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Nc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Pc=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Fc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ic=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Lc=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Rc=/^https?$/,zc=/^\+[1-9]\d{6,14}$/,Bc=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function Vc(e){return RegExp(`^${e}$`)}var Hc=Vc(Bc);function Uc(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Wc(e){return RegExp(`^${Uc(e)}$`)}function Gc(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${Uc({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${Uc({precision:e.precision})}`:n;return RegExp(`^${Bc}T(?:${r})$`)}var Kc=/^[\s\S]{0,}$/,qc=/^-?\d+$/,Jc=/^-?\d+(?:\.\d+)?$/,Yc=/^(?:true|false)$/i,Xc=/^[^A-Z]*$/,Zc=/^[^a-z]*$/,Qc=Z(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),$c=e=>{let t=e.value;return!jo(t)&&t.length!==void 0},el={number:`number`,bigint:`bigint`,object:`date`},tl=Z(`$ZodCheckLessThan`,(e,t)=>{Qc.init(e,t);let n=el[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:el[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),nl=Z(`$ZodCheckGreaterThan`,(e,t)=>{Qc.init(e,t);let n=el[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:el[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rl=Z(`$ZodCheckMultipleOf`,(e,t)=>{Qc.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):No(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),il=Z(`$ZodCheckNumberFormat`,(e,t)=>{Qc.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=es[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),al=Z(`$ZodCheckMaxLength`,(e,t)=>{var n;Qc.init(e,t),(n=e._zod.def).when??(n.when=$c),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?ys(r):i)<=t.maximum)return;let a=bs(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ol=Z(`$ZodCheckMinLength`,(e,t)=>{var n;Qc.init(e,t),(n=e._zod.def).when??(n.when=$c),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?ys(r):i)>=t.minimum)return;let a=bs(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),sl=Z(`$ZodCheckLengthEquals`,(e,t)=>{var n;Qc.init(e,t),(n=e._zod.def).when??(n.when=$c),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?ys(r):i;if(a===t.length)return;let o=bs(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),cl=Z(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Qc.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ll=Z(`$ZodCheckRegex`,(e,t)=>{cl.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ul=Z(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Xc,cl.init(e,t)}),dl=Z(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Zc,cl.init(e,t)}),fl=Z(`$ZodCheckIncludes`,(e,t)=>{Qc.init(e,t);let n=Xo(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),pl=Z(`$ZodCheckStartsWith`,(e,t)=>{Qc.init(e,t);let n=RegExp(`^${Xo(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),ml=Z(`$ZodCheckEndsWith`,(e,t)=>{Qc.init(e,t);let n=RegExp(`.*${Xo(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),hl=Z(`$ZodCheckOverwrite`,(e,t)=>{Qc.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),gl=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
31
|
-
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
|
|
32
|
-
`)}\n};`)(...Object.values(this.closed))}},_l={major:4,minor:6,patch:6},vl=Z(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=_l;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=ds(t),a;for(let o of n){if(o._zod.def.when){if(fs(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new Bs;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(gs(t.issues,n,e),i||=ds(t,n))});else{if(t.issues.length===n)continue;gs(t.issues,n,e),i||=ds(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(ds(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new Bs;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new Bs;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return Ts(this,`~standard`,xl(this))},set"~standard"(e){ws(this,`~standard`,e)}}),yl=(e,t)=>e.issues.length?{issues:e.issues.map(e=>_s(e,t,Us()))}:{value:e.value};async function bl(e,t){let n={async:!0};return yl(await e._zod.run({value:t,issues:[]},n),n)}function xl(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return yl(r,n)}catch{}return bl(e,t)},vendor:`zod`,version:1}}var Sl=Z(`$ZodString`,(e,t)=>{vl.init(e,t),e._zod.pattern=t.pattern??Kc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Cl=Z(`$ZodStringFormat`,(e,t)=>{cl.init(e,t),Sl.init(e,t)}),wl=Z(`$ZodGUID`,(e,t)=>{t.pattern??=Dc,Cl.init(e,t)}),Tl=Z(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Oc(e)}else t.pattern??=Oc();Cl.init(e,t)}),El=Z(`$ZodEmail`,(e,t)=>{t.pattern??=kc,Cl.init(e,t)});function Dl(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Ol(e,t){return!(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?Dl(e)||2:kl(e,t)}function kl(e,t){if(!t.normalize&&t.protocol?.source===Rc.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<`u`){let t=URL;if(typeof t.parse==`function`)return t.parse(e)??2}return new URL(e)}catch{return 2}}var Al=/[\t\n\r]/g;function jl(e){return e.replace(Al,``)}function Ml(e,t){return t.lastIndex=0,t.test(e.hostname)}function Nl(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var Pl=Z(`$ZodURL`,(e,t)=>{Cl.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=Ol(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=jl(r);return}t.hostname&&!Ml(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!Nl(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:jl(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Fl=Z(`$ZodEmoji`,(e,t)=>{t.pattern??=jc(),Cl.init(e,t)}),Il=Z(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?wc:Tc(t.length),Cl.init(e,t)}),Ll=Z(`$ZodCUID`,(e,t)=>{t.pattern??=yc,Cl.init(e,t)}),Rl=Z(`$ZodCUID2`,(e,t)=>{t.pattern??=bc,Cl.init(e,t)}),zl=Z(`$ZodULID`,(e,t)=>{t.pattern??=xc,Cl.init(e,t)}),Bl=Z(`$ZodXID`,(e,t)=>{t.pattern??=Sc,Cl.init(e,t)}),Vl=Z(`$ZodKSUID`,(e,t)=>{t.pattern??=Cc,Cl.init(e,t)}),Hl=Z(`$ZodISODateTime`,(e,t)=>{t.pattern??=Gc(t),Cl.init(e,t)}),Ul=Z(`$ZodISODate`,(e,t)=>{t.pattern??=Hc,Cl.init(e,t)}),Wl=Z(`$ZodISOTime`,(e,t)=>{t.pattern??=Wc(t),Cl.init(e,t)}),Gl=Z(`$ZodISODuration`,(e,t)=>{t.pattern??=Ec,Cl.init(e,t)}),Kl=Z(`$ZodIPv4`,(e,t)=>{t.pattern??=Mc,Cl.init(e,t)}),ql=/^[0-9a-fA-F:.]+$/;function Jl(e){return ql.test(e)?Dl(`http://[${e}]`):!1}var Yl=Z(`$ZodIPv6`,(e,t)=>{t.pattern??=Nc,Cl.init(e,t),e._zod.check=n=>{Jl(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),Xl=Z(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Pc,Cl.init(e,t)});function Zl(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:Jl(n)}var Ql=Z(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Fc,Cl.init(e,t),e._zod.check=n=>{Zl(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function $l(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var eu=/^[0-9a-zA-Z+/]*={0,2}$/,tu=Z(`$ZodBase64`,(e,t)=>{t.pattern??=eu,Cl.init(e,t),e._zod.check=n=>{$l(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),nu=/^[A-Za-z0-9_-]*$/;function ru(e){if(!nu.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return $l(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var iu=Z(`$ZodBase64URL`,(e,t)=>{t.pattern??=nu,Cl.init(e,t),e._zod.check=n=>{ru(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),au=Z(`$ZodE164`,(e,t)=>{t.pattern??=zc,Cl.init(e,t)});function ou(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var su=Z(`$ZodJWT`,(e,t)=>{Cl.init(e,t),e._zod.check=n=>{ou(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),cu=Z(`$ZodNumber`,(e,t)=>{vl.init(e,t),e._zod.pattern=Jc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),lu=Z(`$ZodNumberFormat`,(e,t)=>{il.init(e,t),cu.init(e,t)}),uu=Z(`$ZodBoolean`,(e,t)=>{vl.init(e,t),e._zod.pattern=Yc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),du=Z(`$ZodUnknown`,(e,t)=>{vl.init(e,t),e._zod.parse=e=>e}),fu=Z(`$ZodNever`,(e,t)=>{vl.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function pu(e,t){let n=hs(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(e=>e[0])),i=e._zod.parse;e._zod.parse=(n,a)=>{let o=t(n.value);if(o>r&&!a?.skipChecks&&a?.direction!==`backward`){for(let[t,r]of hs(e._zod.def.checks))if(o>t&&r._zod.def.when(n)){let t=n.issues.length;return r._zod.check(n),n.issues[t].continue=!1,gs(n.issues,t,e),n}}return i(n,a)}}var mu=e=>Array.isArray(e)?e.length:-1;function hu(e,t,n){e.issues.length&&t.issues.push(...ps(n,e.issues)),t.value[n]=e.value}var gu=Z(`$ZodArray`,(e,t)=>{vl.init(e,t);let n=Hs.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>hu(t,r,e)));else if(hu(c,r,e),s&&c.issues.length!==0&&ds(c))break}return o.length?Promise.all(o).then(()=>r):r},pu(e,mu)});function _u(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...ps(n,e.issues))}!o&&i===void 0?e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]}):e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var vu=[];function yu(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:vu,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=$o(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function bu(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(ds(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>_u(e,n,i,t,d,f))):_u(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var xu=Z(`$ZodObject`,(e,t)=>{vl.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=Ao(()=>yu(t));Ms(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||Po(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=Go,o=t.catchall,s,c=Hs.memoizer;c?.attach(e),e._zod.parse=(t,n)=>{s??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=c?c.alloc(e,t,{},n):{};let l=[],u=s.shape,d=n?.abortEarly,f=t.issues.length;for(let e of s.allKeys){if(d&&t.issues.length!==f){if(ds(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,s=i._zod.run({value:r[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>_u(n,t,e,r,a,o))):_u(s,t,e,r,a,o)}return o?bu(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),Su=Z(`$ZodObjectJIT`,(e,t)=>{xu.init(e,t);let n=e._zod.parse,r=Ao(()=>yu(t)),i=Hs.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new gl([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
|
|
33
|
-
let ${e}_ab = false;
|
|
34
|
-
for (let i = 0; i < ${e}.issues.length; i++) {
|
|
35
|
-
const iss = ${e}.issues[i];
|
|
36
|
-
iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
|
|
37
|
-
payload.issues.push(iss);
|
|
38
|
-
if (iss.continue !== true) ${e}_ab = true;
|
|
39
|
-
}
|
|
40
|
-
if (${e}_ab && ctx && ctx.abortEarly) {
|
|
41
|
-
payload.value = newResult;
|
|
42
|
-
return payload;
|
|
43
|
-
}`;o.write(`const input = payload.value;`);let l=Object.create(null),u=0;for(let e of n.allKeys)l[e]=`key_${u++}`;o.write(i?`const newResult = memo.alloc(inst, payload, {}, ctx);`:`const newResult = {};`);for(let e of n.allKeys){if(e===`__proto__`)continue;let n=l[e],r=typeof e==`symbol`?`syms[${a.indexOf(e)}]`:Ho(e),i=`${r} in input`,u=t[e],d=u?._zod?.optin,f=d!==void 0,p=u?._zod?.optout===`optional`;if(o.write(`const ${n} = ${s(r)};`),f&&p){let e=d===`optional`?`${n}_present`:`${n}.value !== undefined || ${n}_present`;o.write(`
|
|
44
|
-
const ${n}_present = ${i};
|
|
45
|
-
if (!${n}.issues.length || ${n}_present) {
|
|
46
|
-
if (${n}.issues.length) {${c(n,r)}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (${e}) {
|
|
50
|
-
newResult[${r}] = ${n}.value;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
`)}else f?(o.write(`
|
|
55
|
-
if (${n}.issues.length) {${c(n,r)}
|
|
56
|
-
}
|
|
57
|
-
`),d===`defaulted`?o.write(`newResult[${r}] = ${n}.value;`):o.write(`
|
|
58
|
-
if (${n}.value !== undefined || ${i}) {
|
|
59
|
-
newResult[${r}] = ${n}.value;
|
|
60
|
-
}
|
|
61
|
-
`)):o.write(`
|
|
62
|
-
const ${n}_present = ${i};
|
|
63
|
-
if (${n}.issues.length) {${c(n,r)}
|
|
64
|
-
}
|
|
65
|
-
if (!${n}_present && !${n}.issues.length) {
|
|
66
|
-
payload.issues.push({
|
|
67
|
-
code: "invalid_type",
|
|
68
|
-
expected: "nonoptional",
|
|
69
|
-
input: undefined,
|
|
70
|
-
path: [${r}]
|
|
71
|
-
});
|
|
72
|
-
if (ctx && ctx.abortEarly) {
|
|
73
|
-
payload.value = newResult;
|
|
74
|
-
return payload;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if (${n}_present) {
|
|
79
|
-
newResult[${r}] = ${n}.value;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
`)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=Go,c=!Hs.jitless,l=c&&Ko.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?bu([],p,i,f,d,e,f?.abortEarly===!0):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function Cu(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!ds(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>_s(e,r,Us())))}),t)}var wu=Z(`$ZodUnion`,(e,t)=>{vl.init(e,t),Ms(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),Ms(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),Ms(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),Ms(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>Mo(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Cu(t,r,e,i)):Cu(o,r,e,i)}});function Tu(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t}var Eu=Z(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,wu.init(e,t);let n=e._zod.parse;Ms(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||Po(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=Fo(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=Ao(()=>Tu(t));e._zod.parse=(i,a)=>{let o=i.value;if(!Go(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),Du=Z(`$ZodIntersection`,(e,t)=>{vl.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>ku(e,t,n)):ku(e,i,a)}});function Ou(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(qo(e)&&qo(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=Ou(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Ou(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ku(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=Ou(t.value,n.value);if(!c.valid){if(ds(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Au=Z(`$ZodRecord`,(e,t)=>{vl.init(e,t);let n=Hs.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!qo(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>_s(e,i,Us())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...ps(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...ps(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e)){if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e)}l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&Jc.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>_s(e,i,Us())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...ps(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...ps(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),ju=Z(`$ZodEnum`,(e,t)=>{vl.init(e,t);let n=Eo(t.entries),r=new Set(n);e._zod.values=r,Ms(e,`pattern`,e=>{let t=Eo(e.def.entries).filter(e=>Yo.has(typeof e));return RegExp(t.length?`^(${t.map(e=>Xo(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Mu=Z(`$ZodLiteral`,(e,t)=>{vl.init(e,t);let n=new Set(t.values);e._zod.values=n,Ms(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?Xo(e):e?Xo(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Nu=Z(`$ZodTransform`,(e,t)=>{vl.init(e,t),e._zod.optin=`optional`,Hs.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Vs(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new Bs;return n.value=i,n}});function Pu(e,t){return e.value=t.issues.length?void 0:t.value,e}var Fu=Z(`$ZodOptional`,(e,t)=>{vl.init(e,t),Ms(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,Ms(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),Ms(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Mo(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>Pu(e,t)):Pu(e,r)}return t.innerType._zod.run(e,n)}}),Iu=Z(`$ZodExactOptional`,(e,t)=>{Fu.init(e,t),Ms(e,`values`,e=>e.def.innerType._zod.values),Ms(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Lu=Z(`$ZodNullable`,(e,t)=>{vl.init(e,t),Ms(e,`optin`,e=>e.def.innerType._zod.optin),Ms(e,`optout`,e=>e.def.innerType._zod.optout),Ms(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Mo(t.source)}|null)$`):void 0}),Ms(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Ru=Z(`$ZodDefault`,(e,t)=>{vl.init(e,t),e._zod.optin=`defaulted`,Ms(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>zu(e,t)):zu(r,t)}});function zu(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Bu=Z(`$ZodPrefault`,(e,t)=>{vl.init(e,t),e._zod.optin=`defaulted`,Ms(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Vu=Z(`$ZodNonOptional`,(e,t)=>{vl.init(e,t),Ms(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Hu(t,e)):Hu(i,e)}});function Hu(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Uu(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>_s(e,r,Us()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Wu=Z(`$ZodCatch`,(e,t)=>{vl.init(e,t),Ms(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),Ms(e,`optout`,e=>e.def.innerType._zod.optout),Ms(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>Uu(e,r,t,n)):Uu(e,r,t,n)}}),Gu=Z(`$ZodPipe`,(e,t)=>{vl.init(e,t),Ms(e,`values`,e=>e.def.in._zod.values),Ms(e,`optin`,e=>e.def.in._zod.optin),Ms(e,`optout`,e=>e.def.out._zod.optout),Ms(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Ku(e,t.in,n)):Ku(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Ku(e,t.out,n)):Ku(r,t.out,n)}});function Ku(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var qu=Z(`$ZodReadonly`,(e,t)=>{vl.init(e,t),Ms(e,`propValues`,e=>e.def.innerType._zod.propValues),Ms(e,`values`,e=>e.def.innerType._zod.values),Ms(e,`optin`,e=>e.def.innerType?._zod?.optin),Ms(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Ju):Ju(r)}});function Ju(e){return e.memo||(e.value=Object.freeze(e.value)),e}var Yu=Z(`$ZodCustom`,(e,t)=>{Qc.init(e,t),vl.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Xu(t,n,r,e));Xu(i,n,r,e)}});function Xu(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Ss(e))}}var Zu=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},Qu=`~memo`,$u=[];function ed(e){return typeof e==`object`&&!!e}function td(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var nd=new WeakMap,rd=0,id=1,ad=2;function od(e,t,n){let r=nd.get(e);if(r!==void 0)return r?ad:rd;if(t.has(e))return ad;t.add(e);let i=rd,a=e=>{if(i!==ad&&e?._zod){let r=od(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=rd;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?id:o.value?._zod?od(o.value,t,n):rd;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=Fo(c);s(e?o(e,!0):id),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?od(r,t,!1):id);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),sd(e,i)}function sd(e,t){return t!==id&&nd.set(e,t===ad),t}function cd(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var ld,ud=[],dd={alloc(e,t,n){let r=ld;if(!r)return n;ld=void 0;let i={value:n,issues:null};return r.set(t.value,i),ud.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&pd(n,e.value))throw new Zu;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=od(e,new Set,!1);if(i===rd)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===ad||r?n=!0:r=!0}let l=s.value;if(!ed(l))return t(s,c);let u=c[Qu];u||(u={buckets:new WeakMap,backEdges:void 0},c[Qu]=u);let d;i===c?d=a:(d=cd(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...td(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;ld=d;let p=ud.length,m=t(s,c);ld=void 0;let h=ud.length>p?ud.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?td(e.issues):$u),e)):(h&&(h.issues=m.issues.length?td(m.issues):$u),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function fd(){return dd}function pd(e,t){let n=e[Qu]?.backEdges;return n!==void 0&&ed(t)&&n.has(t)}var md=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(xs(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${Qo(e.values[0])}`:`Invalid option: expected one of ${Do(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${Do(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function hd(){return{localeError:md()}}var gd,_d=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function vd(){return new _d}(gd=globalThis).__zod_globalRegistry??(gd.__zod_globalRegistry=vd());var yd=globalThis.__zod_globalRegistry;function bd(e){return e.checks&&=[...e.checks],e}function xd(e,t){return new e(bd({type:`string`,...X(t)}))}function Sd(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...X(t)})}function Cd(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...X(t)})}function wd(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...X(t)})}function Td(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...X(t)})}function Ed(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...X(t)})}function Dd(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...X(t)})}function Od(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...X(t)})}function kd(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...X(t)})}function Ad(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...X(t)})}function jd(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...X(t)})}function Md(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...X(t)})}function Nd(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...X(t)})}function Pd(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...X(t)})}function Fd(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...X(t)})}function Id(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...X(t)})}function Ld(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...X(t)})}function Rd(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...X(t)})}function zd(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...X(t)})}function Bd(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...X(t)})}function Vd(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...X(t)})}function Hd(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...X(t)})}function Ud(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...X(t)})}function Wd(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...X(t)})}function Gd(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...X(t)})}function Kd(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...X(t)})}function qd(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...X(t)})}function Jd(e,t){return new e(bd({type:`number`,checks:[],...X(t)}))}function Yd(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...X(t)})}function Xd(e,t){return new e({type:`boolean`,...X(t)})}function Zd(e){return new e({type:`unknown`})}function Qd(e,t){return new e({type:`never`,...X(t)})}function $d(e,t){return new tl({check:`less_than`,...X(t),value:e,inclusive:!1})}function ef(e,t){return new tl({check:`less_than`,...X(t),value:e,inclusive:!0})}function tf(e,t){return new nl({check:`greater_than`,...X(t),value:e,inclusive:!1})}function nf(e,t){return new nl({check:`greater_than`,...X(t),value:e,inclusive:!0})}function rf(e,t){return new rl({check:`multiple_of`,...X(t),value:e})}function af(e,t){return new al({check:`max_length`,...X(t),maximum:e})}function of(e,t){return new ol({check:`min_length`,...X(t),minimum:e})}function sf(e,t){return new sl({check:`length_equals`,...X(t),length:e})}function cf(e,t){return new ll({check:`string_format`,format:`regex`,...X(t),pattern:e})}function lf(e){return new ul({check:`string_format`,format:`lowercase`,...X(e)})}function uf(e){return new dl({check:`string_format`,format:`uppercase`,...X(e)})}function df(e,t){return new fl({check:`string_format`,format:`includes`,...X(t),includes:e})}function ff(e,t){return new pl({check:`string_format`,format:`starts_with`,...X(t),prefix:e})}function pf(e,t){return new ml({check:`string_format`,format:`ends_with`,...X(t),suffix:e})}function mf(e){return new hl({check:`overwrite`,tx:e})}function hf(e){return mf(t=>t.normalize(e))}function gf(){return mf(e=>e.trim())}function _f(){return mf(e=>e.toLowerCase())}function vf(){return mf(e=>e.toUpperCase())}function yf(){return mf(e=>Uo(e))}function bf(e,t,n){return new e({type:`array`,element:t,...X(n)})}function xf(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...X(n)})}function Sf(e,t){let n=Cf(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Ss(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Ss(r))}},e(t.value,t)),t);return n}function Cf(e,t){let n=new Qc({check:`custom`,...X(t)});return n._zod.check=e,n}function wf(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&Po(e,t,n[t]);return e}function Tf(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??yd,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function Ef(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function Df(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Df(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&wf(o.schema,c),t.io===`input`&&Lf(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Of(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function kf(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${Of(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+Of(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
83
|
-
|
|
84
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function Af(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;Af(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var jf=new Set([`type`,`properties`,`required`,`additionalProperties`]),Mf=[`oneOf`,`anyOf`];function Nf(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function Pf(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!jf.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??Nf(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}Po(n,r,e.length===1?e[0]:Pf(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=Nf(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function Ff(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of jf)if(t in e)return;let n=t.filter(e=>Mf.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=Pf(t);else{let e=n[0],i=Mf.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>Pf([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,wf(e,r))}function If(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):wf(i,s),wf(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())Af(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])Ff(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}wf(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,Po(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:zf(t,`input`,e.processors),output:zf(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Lf(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Lf(r.element,n);if(r.type===`set`)return Lf(r.valueType,n);if(r.type===`lazy`)return Lf(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return Lf(r.innerType,n);if(r.type===`intersection`)return Lf(r.left,n)||Lf(r.right,n);if(r.type===`record`||r.type===`map`)return Lf(r.keyType,n)||Lf(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Lf(r.in,n)||Lf(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Lf(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Lf(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Lf(e,n))return!0;return!!(r.rest&&Lf(r.rest,n))}return!1}var Rf=(e,t={})=>n=>{let r=Tf({...n,processors:t});return Df(e,r),kf(r,e),If(r,e)},zf=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Tf({...i??{},target:a,io:t,processors:n});return Df(e,o),kf(o,e),If(o,e)},Bf=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Vf=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Hf=(e,t)=>{Bf(e,`minimum`,t),Vf(e,`maximum`,t)},Uf=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},Wf=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},Gf=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},Kf=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},qf=(e,t)=>Bf(e,`minimum`,t.minimum),Jf=(e,t)=>Vf(e,`maximum`,t.maximum),Yf=e=>(t,n)=>{Kf(t,n.format);let[r,i]=e[n.format];Bf(t,`minimum`,r),Vf(t,`maximum`,i)},Xf={greater_than:(e,t)=>Bf(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>Vf(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>Uf(e,t.value),number_format:Yf(es),bigint_format:Yf(ts),min_length:qf,max_length:Jf,length_equals:(e,t)=>Hf(e,t.length),min_size:qf,max_size:Jf,size_equals:(e,t)=>Hf(e,t.size),string_format:(e,t)=>{Kf(e,t.format),t.pattern&&Wf(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Gf(e,t.mime)};function Zf(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)Xf[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&Bf(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&Bf(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&Vf(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&Vf(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&Uf(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&Gf(t,i.mime);for(let e of i.patterns??[])Wf(t,e);return t}var Qf={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},$f=new Map([[eu,Ic],[nu,Lc]]),ep=e=>$f.get(e)??e,tp=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=Zf(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Qf[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(ep);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},np=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=Zf(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):Ef(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},rp=(e,t,n,r)=>{n.type=`boolean`},ip=(e,t,n,r)=>{n.not={}},ap=(e,t,n,r)=>{let i=e._zod.def,a=Eo(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},op=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(Ef(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(Ef(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},sp=(e,t,n,r)=>{Ef(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},cp=(e,t,n,r)=>{Ef(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},lp=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=Zf(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Df(a.element,t,{...r,path:[...r.path,`items`]})};function up(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?up(t.out):t.type===`catch`?up(t.innerType):e._zod.optin}var dp=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&Ef(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)Po(i.properties,e,Df(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?up(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Df(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},fp=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Df(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},pp=(e,t,n,r)=>{let i=e._zod.def,a=Df(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Df(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)};function mp(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=mp(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>mp(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i&&(p.type=`string`,a||(p.pattern=(r.includes(`number`)?Jc:qc).source)),p}var hp=new WeakMap;function gp(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of hp.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=mp(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var _p=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=Zf(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=Df(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)Po(i.patternProperties,ep(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=Df(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=hp.get(t);n||(n=[],hp.set(t,n),t.deferred.push(()=>gp(t))),n.push(e)}i.additionalProperties=Df(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&up(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},vp=(e,t,n,r)=>{let i=e._zod.def,a=Df(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},yp=(e,t,n,r)=>{let i=e._zod.def;Df(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},bp=Symbol();function xp(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(Ef(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),bp):JSON.parse(o)}var Sp=(e,t,n,r)=>{let i=e._zod.def;Df(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=xp(i.defaultValue,e,t,n,r);o!==bp&&(n.default=o)},Cp=(e,t,n,r)=>{let i=e._zod.def;Df(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=xp(i.defaultValue,e,t,n,r);o!==bp&&(n._prefault=o)},wp=(e,t,n,r)=>{let i=e._zod.def;Df(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{Ef(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},Tp=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Df(o,t,r);let s=t.seen.get(e);s.ref=o},Ep=(e,t,n,r)=>{let i=e._zod.def;Df(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Dp=(e,t,n,r)=>{let i=e._zod.def;Df(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Op=new WeakSet([Object.prototype,Error.prototype]);function kp(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var Ap=Z(`ZodError`,(e,t)=>{Xs.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);Op.has(n)||(Op.add(n),kp(n,`format`,e=>t=>$s(e,t)),kp(n,`flatten`,e=>t=>Qs(e,t)),kp(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Oo,2)}),kp(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Oo,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),jp=tc(Ap),Mp=nc(Ap),Np=rc(Ap),Pp=ac(Ap),Fp=dc(Ap),Ip=fc(Ap),Lp=pc(Ap),Rp=mc(Ap),zp=hc(Ap),Bp=gc(Ap),Vp=_c(Ap),Hp=vc(Ap);function Up(){Hs.localeError||Us(hd())}function Wp(){Hs.memoizer||Us({memoizer:fd()})}var Gp=Z(`ZodType`,(e,t)=>(Up(),vl.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Vo(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Zo(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(dh(e,t))},superRefine(e,t){return this.check(fh(e,t))},overwrite(e){return this.check(mf(e))},optional(){return qm(this)},exactOptional(){return Ym(this)},nullable(){return Zm(this)},nullish(){return qm(Zm(this))},nonoptional(e){return rh(this,e)},array(){return km(this)},or(e){return Nm([this,e])},and(e){return Lm(this,e)},transform(e){return sh(this,Gm(e))},default(e){return $m(this,e)},prefault(e){return th(this,e)},catch(e){return ah(this,e)},pipe(e){return sh(this,e)},readonly(){return lh(this)},describe(e){let t=this.clone();return yd.add(t,{description:e}),t},meta(...e){if(e.length===0)return yd.get(this);let t=this.clone();return yd.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Ts(this,`~standard`,{...xl(this),jsonSchema:{input:zf(this,`input`),output:zf(this,`output`)}})},set"~standard"(e){ws(this,`~standard`,e)},parse:function e(t,n){return jp(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Mp(this,t,n,{callee:e})},safeParse(e,t){return Np(this,e,t)},async safeParseAsync(e,t){return Pp(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){ws(this,`spa`,e)},validate(e,t){return cc(this,e,t)},validateAsync(e,t){return uc(this,e,t)},encode:function e(t,n){return Fp(this,t,n,{callee:e})},decode:function e(t,n){return Ip(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Lp(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Rp(this,t,n,{callee:e})},safeEncode(e,t){return zp(this,e,t)},safeDecode(e,t){return Bp(this,e,t)},async safeEncodeAsync(e,t){return Vp(this,e,t)},async safeDecodeAsync(e,t){return Hp(this,e,t)},toJSONSchema(e){return Rf(this,{})(e)},get description(){return yd.get(this)?.description},get _def(){return this._zod.def}}),Kp=Z(`_ZodString`,(e,t)=>{Sl.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tp(e,t,n,r)},Es({format:e=>Zf(e).format??null,minLength:e=>Zf(e).minimum??null,maxLength:e=>Zf(e).maximum??null},{regex(...e){return this.check(cf(...e))},includes(...e){return this.check(df(...e))},startsWith(...e){return this.check(ff(...e))},endsWith(...e){return this.check(pf(...e))},min(...e){return this.check(of(...e))},max(...e){return this.check(af(...e))},length(...e){return this.check(sf(...e))},nonempty(...e){return this.check(of(1,...e))},lowercase(e){return this.check(lf(e))},uppercase(e){return this.check(uf(e))},trim(){return this.check(gf())},normalize(...e){return this.check(hf(...e))},toLowerCase(){return this.check(_f())},toUpperCase(){return this.check(vf())},slugify(){return this.check(yf())}})),qp=Z(`ZodString`,(e,t)=>{Sl.init(e,t),Kp.init(e,t)},{email(e){return this.check(Sd($p,e))},url(e){return this.check(Od(nm,e))},jwt(e){return this.check(Ud(_m,e))},emoji(e){return this.check(kd(rm,e))},guid(e){return this.check(Cd(em,e))},uuid(e){return this.check(wd(tm,e))},uuidv4(e){return this.check(Td(tm,e))},uuidv6(e){return this.check(Ed(tm,e))},uuidv7(e){return this.check(Dd(tm,e))},nanoid(e){return this.check(Ad(im,e))},cuid(e){return this.check(jd(am,e))},cuid2(e){return this.check(Md(om,e))},ulid(e){return this.check(Nd(sm,e))},base64(e){return this.check(Bd(mm,e))},base64url(e){return this.check(Vd(hm,e))},xid(e){return this.check(Pd(cm,e))},ksuid(e){return this.check(Fd(lm,e))},ipv4(e){return this.check(Id(um,e))},ipv6(e){return this.check(Ld(dm,e))},cidrv4(e){return this.check(Rd(fm,e))},cidrv6(e){return this.check(zd(pm,e))},e164(e){return this.check(Hd(gm,e))},datetime(e){return this.check(Wd(Yp,e))},date(e){return this.check(Gd(Xp,e))},time(e){return this.check(Kd(Zp,e))},duration(e){return this.check(qd(Qp,e))}});function Q(e){return xd(qp,e)}var Jp=Z(`ZodStringFormat`,(e,t)=>{Cl.init(e,t),Kp.init(e,t)}),Yp=Z(`ZodISODateTime`,(e,t)=>{Hl.init(e,t),Jp.init(e,t)}),Xp=Z(`ZodISODate`,(e,t)=>{Ul.init(e,t),Jp.init(e,t)}),Zp=Z(`ZodISOTime`,(e,t)=>{Wl.init(e,t),Jp.init(e,t)}),Qp=Z(`ZodISODuration`,(e,t)=>{Gl.init(e,t),Jp.init(e,t)}),$p=Z(`ZodEmail`,(e,t)=>{El.init(e,t),Jp.init(e,t)}),em=Z(`ZodGUID`,(e,t)=>{wl.init(e,t),Jp.init(e,t)}),tm=Z(`ZodUUID`,(e,t)=>{Tl.init(e,t),Jp.init(e,t)}),nm=Z(`ZodURL`,(e,t)=>{Pl.init(e,t),Jp.init(e,t)}),rm=Z(`ZodEmoji`,(e,t)=>{Fl.init(e,t),Jp.init(e,t)}),im=Z(`ZodNanoID`,(e,t)=>{Il.init(e,t),Jp.init(e,t)}),am=Z(`ZodCUID`,(e,t)=>{Ll.init(e,t),Jp.init(e,t)}),om=Z(`ZodCUID2`,(e,t)=>{Rl.init(e,t),Jp.init(e,t)}),sm=Z(`ZodULID`,(e,t)=>{zl.init(e,t),Jp.init(e,t)}),cm=Z(`ZodXID`,(e,t)=>{Bl.init(e,t),Jp.init(e,t)}),lm=Z(`ZodKSUID`,(e,t)=>{Vl.init(e,t),Jp.init(e,t)}),um=Z(`ZodIPv4`,(e,t)=>{Kl.init(e,t),Jp.init(e,t)}),dm=Z(`ZodIPv6`,(e,t)=>{Yl.init(e,t),Jp.init(e,t)}),fm=Z(`ZodCIDRv4`,(e,t)=>{Xl.init(e,t),Jp.init(e,t)}),pm=Z(`ZodCIDRv6`,(e,t)=>{Ql.init(e,t),Jp.init(e,t)}),mm=Z(`ZodBase64`,(e,t)=>{tu.init(e,t),Jp.init(e,t)}),hm=Z(`ZodBase64URL`,(e,t)=>{iu.init(e,t),Jp.init(e,t)}),gm=Z(`ZodE164`,(e,t)=>{au.init(e,t),Jp.init(e,t)}),_m=Z(`ZodJWT`,(e,t)=>{su.init(e,t),Jp.init(e,t)}),vm=Z(`ZodNumber`,(e,t)=>{cu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>np(e,t,n,r),e.isFinite=!0},Es({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Zf(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Zf(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=Zf(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>Zf(e).format??null},{gt(e,t){return this.check(tf(e,t))},gte(e,t){return this.check(nf(e,t))},min(e,t){return this.check(nf(e,t))},lt(e,t){return this.check($d(e,t))},lte(e,t){return this.check(ef(e,t))},max(e,t){return this.check(ef(e,t))},int(e){return this.check(xm(e))},safe(e){return this.check(xm(e))},positive(e){return this.check(tf(0,e))},nonnegative(e){return this.check(nf(0,e))},negative(e){return this.check($d(0,e))},nonpositive(e){return this.check(ef(0,e))},multipleOf(e,t){return this.check(rf(e,t))},step(e,t){return this.check(rf(e,t))},finite(){return this}}));function ym(e){return Jd(vm,e)}var bm=Z(`ZodNumberFormat`,(e,t)=>{lu.init(e,t),vm.init(e,t)});function xm(e){return Yd(bm,e)}var Sm=Z(`ZodBoolean`,(e,t)=>{uu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rp(e,t,n,r)});function Cm(e){return Xd(Sm,e)}var wm=Z(`ZodUnknown`,(e,t)=>{du.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Tm(){return Zd(wm)}var Em=Z(`ZodNever`,(e,t)=>{fu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ip(e,t,n,r)});function Dm(e){return Qd(Em,e)}var Om=Z(`ZodArray`,(e,t)=>{Wp(),gu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lp(e,t,n,r),e.element=t.element},{min(e,t){return this.check(of(e,t))},nonempty(e){return this.check(of(1,e))},max(e,t){return this.check(af(e,t))},length(e,t){return this.check(sf(e,t))},unwrap(){return this.element}});function km(e,t){return bf(Om,e,t)}var Am=Z(`ZodObject`,(e,t)=>{Wp(),Su.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dp(e,t,n,r),Ns(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return Vm(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Vo(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Vo(this._zod.def,{catchall:Tm()}))},loose(){return this.clone(Vo(this._zod.def,{catchall:Tm()}))},strict(){return this.clone(Vo(this._zod.def,{catchall:Dm()}))},strip(){return this.clone(Vo(this._zod.def,{catchall:void 0}))},extend(e){return as(this,e)},safeExtend(e){return ss(this,e)},merge(e){return cs(this,e)},pick(e){return ns(this,e)},omit(e){return is(this,e)},partial(...e){return ls(Km,this,e[0])},exactPartial(...e){return ls(Jm,this,e[0],`exactPartial`)},required(...e){return us(nh,this,e[0])}});function jm(e,t){return new Am({type:`object`,shape:e??{},...X(t)})}var Mm=Z(`ZodUnion`,(e,t)=>{wu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fp(e,t,n,r),e.options=t.options});function Nm(e,t){return new Mm({type:`union`,options:e,...X(t)})}var Pm=Z(`ZodDiscriminatedUnion`,(e,t)=>{Mm.init(e,t),Eu.init(e,t)});function Fm(e,t,n){return new Pm({type:`union`,options:t,discriminator:e,...X(n)})}var Im=Z(`ZodIntersection`,(e,t)=>{Du.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pp(e,t,n,r)});function Lm(e,t){return new Im({type:`intersection`,left:e,right:t})}var Rm=Z(`ZodRecord`,(e,t)=>{Wp(),Au.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_p(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function zm(e,t,n){return!t||!t._zod?new Rm({type:`record`,keyType:Q(),valueType:e,...X(t)}):new Rm({type:`record`,keyType:e,valueType:t,...X(n)})}var Bm=Z(`ZodEnum`,(e,t)=>{ju.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ap(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Bm({...t,checks:[],...X(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Bm({...t,checks:[],...X(r),entries:i})}});function Vm(e,t){return new Bm({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...X(t)})}var Hm=Z(`ZodLiteral`,(e,t)=>{Mu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>op(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Um(e,t){return new Hm({type:`literal`,values:Array.isArray(e)?e:[e],...X(t)})}var Wm=Z(`ZodTransform`,(e,t)=>{Wp(),Nu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cp(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Vs(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ss(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Ss(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Gm(e){return new Wm({type:`transform`,transform:e})}var Km=Z(`ZodOptional`,(e,t)=>{Fu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qm(e){return new Km({type:`optional`,innerType:e})}var Jm=Z(`ZodExactOptional`,(e,t)=>{Iu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ym(e){return new Jm({type:`optional`,innerType:e})}var Xm=Z(`ZodNullable`,(e,t)=>{Lu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Zm(e){return new Xm({type:`nullable`,innerType:e})}var Qm=Z(`ZodDefault`,(e,t)=>{Ru.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function $m(e,t){return new Qm({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Jo(t)}})}var eh=Z(`ZodPrefault`,(e,t)=>{Bu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function th(e,t){return new eh({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Jo(t)}})}var nh=Z(`ZodNonOptional`,(e,t)=>{Vu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rh(e,t){return new nh({type:`nonoptional`,innerType:e,...X(t)})}var ih=Z(`ZodCatch`,(e,t)=>{Wu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ah(e,t){return new ih({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Fs(t)})}var oh=Z(`ZodPipe`,(e,t)=>{Gu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tp(e,t,n,r),e.in=t.in,e.out=t.out});function sh(e,t){return new oh({type:`pipe`,in:e,out:t})}var ch=Z(`ZodReadonly`,(e,t)=>{qu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ep(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function lh(e){return new ch({type:`readonly`,innerType:e})}var uh=Z(`ZodCustom`,(e,t)=>{Yu.init(e,t),Gp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sp(e,t,n,r)});function dh(e,t={}){return xf(uh,e,t)}function fh(e,t){return Sf(e,t)}var ph=[`image/png`,`image/jpeg`,`image/webp`,`image/gif`];function mh(e){let t=e.indexOf(`,`);if(!/^data:image\/(png|jpeg|webp|gif);base64$/.test(e.slice(0,t)))return;let n=e.slice(t+1);if(n.length&&n.length%4==0&&/^[A-Za-z0-9+/]+={0,2}$/.test(n))return n.length/4*3-(n.endsWith(`==`)?2:+!!n.endsWith(`=`))}function hh(e){if(!e.trim())return`请输入会话名称。用法:/rename <名称>`;if(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/u.test(e))return`会话名称不能包含换行或控制字符。`;if([...e.trim()].length>100)return`会话名称最多 100 个字符。`}Q().min(1).max(4096);var gh=Q().min(1).max(256),_h=Q().trim().min(1).max(100),vh=jm({path:Q().trim().min(1).max(4096),name:_h.optional()}).strict();jm({name:_h}).strict(),vh.extend({clientOperationId:Q().uuid(),repository:Q().trim().min(1).max(4096)}),jm({}).strict(),jm({projectIds:km(gh).refine(e=>new Set(e).size===e.length)}).strict();var yh=jm({model:Q().min(1).max(200).optional(),collaborationMode:Vm([`plan`,`default`]).optional(),reasoningEffort:Q().min(1).max(40).optional(),serviceTier:Um(`fast`).nullable().optional(),permissionMode:Vm([`ask`,`auto-review`,`full-access`,`read-only`]).optional(),approvalPolicy:Vm([`untrusted`,`on-request`,`never`]).optional(),approvalReviewer:Vm([`user`,`auto_review`]).optional(),sandbox:Vm([`read-only`,`workspace-write`,`danger-full-access`]).optional()}).strict().refine(e=>e.permissionMode===void 0||e.sandbox===void 0&&e.approvalPolicy===void 0&&e.approvalReviewer===void 0,`权限模式不能与独立的权限、审批策略或审核方同时设置`),bh=jm({clientOperationId:Q().uuid()}).strict();bh.extend({expectedTurnId:gh,settings:jm({serviceTier:Um(`fast`).nullable().optional(),permissionMode:Vm([`ask`,`auto-review`,`full-access`,`read-only`]).optional()}).strict().refine(e=>Object.keys(e).length>0,`Settings are required`)}),bh.extend({settings:jm({modelProvider:Q().min(1).max(256).optional(),model:Q().min(1).max(200),reasoningEffort:Q().min(1).max(40).nullable()}).strict()});var xh=Fm(`type`,[jm({type:Um(`uncommittedChanges`)}).strict(),jm({type:Um(`baseBranch`),branch:Q().trim().min(1).max(256).refine(e=>!e.startsWith(`-`)&&!/\s/.test(e)&&[...e].every(e=>e.codePointAt(0)>=32&&e.codePointAt(0)!==127))}).strict(),jm({type:Um(`commit`),sha:Q().trim().regex(/^[a-fA-F0-9]{7,64}$/)}).strict(),jm({type:Um(`custom`),instructions:Q().trim().min(1).max(1e5)}).strict()]);bh.extend({target:xh.optional()}),bh.extend({codexEpoch:gh,codexVersion:Q().min(1).max(200),verifiedVersion:Q().min(1).max(200),confirm:Um(!0)});var Sh=bh.extend({settings:yh.optional()});bh.extend({prompt:Q().max(1e5).refine(e=>!!e.trim(),`Prompt is required`)}),bh.extend({name:Q().superRefine((e,t)=>{let n=hh(e);n&&t.addIssue({code:`custom`,message:n})}).transform(e=>e.trim())}),Sh.extend({confirmExternalStopped:Cm().optional()});var Ch={files:km(jm({cwd:Q().min(1).max(4096),path:Q().min(1).max(4096),start:ym().int().min(0).max(1e5),end:ym().int().min(1).max(1e5)}).strict().refine(e=>e.end>e.start)).max(32).optional(),skills:km(jm({name:Q().min(1).max(256),path:Q().min(1).max(4096),cwd:Q().min(1).max(4096)}).strict()).max(32).optional(),text:Q().max(1e5),images:km(Q().refine(e=>mh(e)!==void 0,`Invalid image`)).optional()},wh=e=>!!(e.text.trim()||e.images?.length);Sh.extend({...Ch,taskKind:Um(`init`).optional()}).refine(wh,`Text or an image is required`).refine(e=>e.taskKind!==`init`||!e.images?.length&&!e.skills?.length&&!e.files?.length,`Project initialization cannot include images`),bh.extend({expectedTurnId:gh,...Ch}).refine(wh,`Text or an image is required`),Fm(`action`,[bh.extend({action:Um(`clear`),confirm:Um(!0),expectedVersion:Q().regex(/^[a-f0-9]{64}$/)}),bh.extend({action:Um(`set`),confirm:Um(!0),expectedVersion:Q().regex(/^[a-f0-9]{64}$/),objective:Q().trim().min(1).max(1e4).optional(),status:Vm([`active`,`paused`,`complete`]).optional(),tokenBudget:ym().int().positive().max(1e9).optional()}).refine(e=>e.objective!==void 0||e.status!==void 0||e.tokenBudget!==void 0,`Goal update is empty`)]),bh.extend({language:Vm([`en`,`zh-Hans`,`ja`,`ko`])}),bh.extend({denialId:gh,confirm:Um(!0)}),bh.extend({expectedTurnId:gh}),Sh.extend({expectedTurnId:gh});var Th=Nm([Q().max(1e4),ym().finite(),Cm(),km(Q().max(1e4)).max(500)]);bh.extend({resolution:Nm([jm({decision:Q().min(1).max(200),content:zm(Q().max(1e3),Th).optional(),persist:Um(`session`).optional()}).strict(),jm({answers:zm(Q(),km(Q().max(1e4)).max(50)),skippedQuestionIds:km(gh).max(100).optional()}).strict()])}),bh.extend({questionIds:km(gh).min(1).max(100)}),bh.extend({confirmEnded:Um(!0)}),Fm(`type`,[jm({type:Um(`subscribe`),threadId:gh,incremental:Cm().optional(),subscriptionId:ym().int().positive().optional(),after:jm({serverEpoch:gh,seq:ym().int().nonnegative()}).strict().optional()}).strict(),jm({type:Um(`unsubscribe`),threadId:gh.optional()}).strict()]),bh.extend({archived:Cm()}),Vm([`true`,`false`]).optional().transform(e=>e===`true`),jm({projectId:gh.nullable(),threadId:gh.optional(),draftId:Q().uuid().optional(),forceReload:Cm().optional()}).strict().refine(e=>e.projectId!==null||e.threadId||e.draftId,`A session or draft is required`),jm({projectId:gh.nullable(),threadId:gh.optional(),draftId:Q().uuid().optional(),query:Q().max(512).refine(e=>Array.from(e).every(e=>e.charCodeAt(0)>=32&&e.charCodeAt(0)!==127))}).strict().refine(e=>e.projectId!==null||e.threadId||e.draftId,`A session or draft is required`).refine(e=>!(e.threadId&&e.draftId),`Choose a session or a draft`);var Eh=`covro.session-settings.v1`;function Dh(){try{let e=JSON.parse(sessionStorage.getItem(Eh)??`{}`);return!e||typeof e!=`object`||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).flatMap(([e,t])=>{let n=yh.safeParse(t);return/^thread:.+/.test(e)&&n.success?[[e,n.data]]:[]}))}catch{return{}}}function Oh(e){try{sessionStorage.setItem(Eh,JSON.stringify(Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(`thread:`)))))}catch{}}var kh=`codex-web.operations.v1`;function Ah(e,t){if(!(!t||t.projectId!==null&&typeof t.projectId!=`string`)){if(e===`archive`&&typeof t.archived==`boolean`)return{projectId:t.projectId,archived:t.archived};if(e===`rename`&&typeof t.title==`string`&&!hh(t.title))return{projectId:t.projectId,title:t.title}}}function jh(e){if(e&&typeof e.threadId==`string`&&(e.projectId===null||typeof e.projectId==`string`)&&typeof e.title==`string`)return{threadId:e.threadId,projectId:e.projectId,title:e.title}}function Mh(e){return e.operation?.execution?.threadId??e.context?.threadId??([`create`,`resolve`,`reconcile`,`confirmCompatibility`,`saveModelDefaults`].includes(e.kind)?void 0:e.target)}function Nh(e){let t=e instanceof fr&&e.status===404&&e.problem.code===`OPERATION_NOT_FOUND`;return{missing:t,details:e instanceof fr?e.problem.message:void 0,get message(){return U(t?H(`errors:submission_cannot_be_confirmed_record_not_found_404`):H(`errors:submission_cannot_be_confirmed`,{v0:U(ha(e))}))}}}function Ph(e){return e.lookupError?.missing===!0&&e.status===`unknown`&&!e.operation}function Fh(e){try{let t=JSON.parse((e??localStorage).getItem(kh)??`[]`);return Array.isArray(t)?t.filter(e=>!!e&&typeof e==`object`&&typeof e.clientOperationId==`string`&&typeof e.target==`string`&&typeof e.kind==`string`&&typeof e.createdAt==`number`).map(({clientOperationId:e,kind:t,target:n,createdAt:r,projectId:i,navigateToResult:a,navigationSource:o,mutation:s,context:c})=>({clientOperationId:e,kind:t,target:n,createdAt:r,status:`unknown`,...jh(c)?{context:jh(c)}:{},...Ah(t,s)?{mutation:Ah(t,s)}:{},...(t===`fork`||t===`create`)&&typeof i==`string`?{projectId:i,navigateToResult:a===!0}:{},...t===`fork`&&typeof o?.projectId==`string`&&(o.threadId===null||typeof o.threadId==`string`)?{navigationSource:{projectId:o.projectId,threadId:o.threadId}}:{}})):[]}catch{return[]}}function Ih(e,t){try{return(t??localStorage).setItem(kh,JSON.stringify(e.map(({clientOperationId:e,kind:t,target:n,createdAt:r,projectId:i,navigateToResult:a,navigationSource:o,mutation:s,context:c})=>({clientOperationId:e,kind:t,target:n,createdAt:r,...jh(c)?{context:jh(c)}:{},...t===`fork`||t===`create`?{projectId:i,navigateToResult:a}:{},...Ah(t,s)?{mutation:Ah(t,s)}:{},...t===`fork`&&o?{navigationSource:o}:{}})))),!0}catch{return!1}}function Lh(e){return e.operation&&Rh(e.operation)?!1:e.status===`unknown`||e.operation?.execution!==void 0&&!e.operation.execution.ended}function Rh(e){return!!e.reconciliation||e.status===`unknown`&&!!e.execution?.ended||e.status===`failed`||e.status===`acknowledged`&&(!e.execution||e.execution.ended)}function zh(e,t){return e.kind!==`liveSettings`&&e.target===t&&!e.operation?.reconciliation&&!e.operation?.execution?.ended&&[`accepted`,`dispatching`,`unknown`].includes(e.status)}function Bh(e,t){if(t.thread.id!==e.id||t.thread.execution&&t.thread.execution.threadId!==e.id)throw Error(`Mismatched thread patch`);let n=new Map(e.turns.map(e=>[e.id,e]));for(let r of t.turns){if(r.turn.threadId!==e.id)throw Error(`Mismatched turn patch`);let t=n.get(r.turn.id),i=new Map(t?.items.map(e=>[e.id,e]));for(let e of r.items)if(e.value){if(e.value.id!==e.id)throw Error(`Mismatched item patch`);i.set(e.id,e.value)}else if(e.append){let t=i.get(e.id),{field:n,offset:r,text:a}=e.append;if(!t||!Number.isSafeInteger(r)||r<0||(t[n]?.length??0)<r)throw Error(`Missing streamed content; reload the thread snapshot`);i.set(e.id,{...t,[n]:(t[n]??``).slice(0,r)+a})}let a=r.itemIds??[...i.keys()];n.set(r.turn.id,{...r.turn,items:a.map(e=>{let t=i.get(e);if(!t)throw Error(`Missing item; reload the thread snapshot`);return t})})}return{...t.thread,turns:(t.turnIds??[...n.keys()]).map(e=>{let t=n.get(e);if(!t)throw Error(`Missing turn; reload the thread snapshot`);return t})}}var Vh=class{threads=new Map;summaryCursors=new Map;runtimeCursor;projectsCursor;get(e){return this.threads.get(e)}advance(e,t,n){let r=this.threads.get(e);return r?.cursor.serverEpoch!==t.serverEpoch||r.cursor.seq<n?!1:(r.cursor.seq<t.seq&&this.threads.set(e,{...r,cursor:t}),!0)}invalidateDetail(e){this.threads.delete(e)}removeProject(e){for(let[t,n]of this.threads)n.data.projectId===e&&(this.threads.delete(t),this.summaryCursors.delete(t))}apply(e){if(e.type===`error`||e.type===`resync`||e.type===`subscribed`||e.type===`event`&&[`turnCompletion`,`attentionRequest`].includes(e.kind))return!0;if(e.type===`snapshot`){let t=this.threads.get(e.threadId);return!Uh(e.data,e.threadId)||t?.cursor.serverEpoch===e.cursor.serverEpoch&&t.cursor.seq>e.cursor.seq?!1:(this.threads.set(e.threadId,{data:e.data,cursor:e.cursor}),!0)}if(e.kind===`projects`)return this.projectsCursor?.serverEpoch===e.cursor.serverEpoch&&this.projectsCursor.seq>=e.cursor.seq?!1:(this.projectsCursor=e.cursor,!0);if(e.kind===`threadSummary`&&e.threadId){let t=this.summaryCursors.get(e.threadId);return t?.serverEpoch===e.cursor.serverEpoch&&t.seq>=e.cursor.seq?!1:(this.summaryCursors.set(e.threadId,e.cursor),!0)}if((e.kind===`thread`||e.kind===`threadPatch`)&&e.threadId){let t=this.threads.get(e.threadId);if(!t||t.cursor.serverEpoch!==e.cursor.serverEpoch||t.cursor.seq>=e.cursor.seq)return!1;if(e.previousThreadSeq!==void 0&&t.cursor.seq<e.previousThreadSeq)throw Error(`Missing thread event`);if(e.kind===`thread`&&!Uh(e.payload,e.threadId))throw Error(`Mismatched thread event`);return this.threads.set(e.threadId,{data:e.kind===`threadPatch`?Bh(t.data,e.payload):e.payload,cursor:e.cursor}),!0}return this.runtimeCursor?.serverEpoch===e.cursor.serverEpoch&&this.runtimeCursor.seq>=e.cursor.seq?!1:(this.runtimeCursor=e.cursor,!0)}};function Hh(e,t=Math.random){return Math.min(3e4,700*2**Math.min(e,6))*(.75+t()*.25)}function Uh(e,t){return e.id===t&&(!e.execution||e.execution.threadId===t)&&e.turns.every(e=>e.threadId===t)}function Wh(e){if(!e||typeof e!=`object`||!(`type`in e))return!1;let t=e;if(t.type===`error`)return!!(t.error&&typeof t.error==`object`&&`message`in t.error);if(!t.cursor||typeof t.cursor!=`object`)return!1;let n=t.cursor;if(typeof n.serverEpoch!=`string`||typeof n.seq!=`number`||!Number.isSafeInteger(n.seq)||n.seq<0)return!1;if(t.type===`resync`)return typeof t.threadId==`string`;if(t.type===`subscribed`)return typeof t.threadId==`string`&&typeof t.threadSeq==`number`&&Number.isSafeInteger(t.threadSeq)&&t.threadSeq>=0&&t.threadSeq<=n.seq;let r=t.type===`snapshot`?t.data:t.payload;if(!r||typeof r!=`object`)return!1;if(t.type===`event`&&t.kind===`threadPatch`){let e=r;return typeof t.threadId==`string`&&e.thread?.id===t.threadId&&Array.isArray(e.turns)}if(t.type===`event`&&t.kind===`projects`)return Array.isArray(r)&&r.every(e=>typeof e==`object`&&!!e&&`id`in e&&typeof e.id==`string`&&`name`in e&&typeof e.name==`string`&&`rootPath`in e&&typeof e.rootPath==`string`&&`available`in e&&typeof e.available==`boolean`);if(t.type===`snapshot`||t.kind===`thread`)return typeof t.threadId==`string`&&r.id===t.threadId&&Array.isArray(r.turns)&&Array.isArray(r.actions);if(t.type===`event`&&t.kind===`threadSummary`)return typeof t.threadId==`string`&&r.id===t.threadId&&(r.projectId===null||typeof r.projectId==`string`)&&typeof r.title==`string`&&typeof r.status==`string`&&typeof r.pendingActionCount==`number`;if(t.type===`event`&&t.kind===`turnCompletion`)return typeof t.threadId==`string`&&r.threadId===t.threadId&&typeof r.turnId==`string`&&(r.projectId===null||typeof r.projectId==`string`)&&typeof r.title==`string`&&[`completed`,`failed`,`interrupted`].includes(String(r.status));if(t.type===`event`&&t.kind===`attentionRequest`){let e=r.target;return typeof t.threadId==`string`&&r.threadId===t.threadId&&(r.projectId===null||typeof r.projectId==`string`)&&typeof r.title==`string`&&[`answer`,`approval`].includes(String(r.kind))&&!!(e&&[`action`,`question`].includes(String(e.kind))&&typeof e.id==`string`)}return t.type===`event`&&(t.kind===`runtime`||t.kind===`operation`)}var Gh=class{handlers;cache=new Vh;watches=new Map;socket;timer;attempt=0;stopped=!0;selected;reconnectQueue;reconnecting;blocked=!1;nextSubscriptionId=0;constructor(e){this.handlers=e}start(){this.stopped=!1,window.addEventListener(`online`,this.retry),window.addEventListener(`offline`,this.offline),window.addEventListener(`focus`,this.retry),window.addEventListener(`pageshow`,this.resume),typeof document<`u`&&(document.addEventListener(`freeze`,this.offline),document.addEventListener(`resume`,this.resume),document.addEventListener(`visibilitychange`,this.visible)),this.connect()}stop(){this.stopped=!0,clearTimeout(this.timer),window.removeEventListener(`online`,this.retry),window.removeEventListener(`offline`,this.offline),window.removeEventListener(`focus`,this.retry),window.removeEventListener(`pageshow`,this.resume),typeof document<`u`&&(document.removeEventListener(`freeze`,this.offline),document.removeEventListener(`resume`,this.resume),document.removeEventListener(`visibilitychange`,this.visible));let e=this.socket;this.socket=void 0,e?.close(),this.resetWatches()}view(e){if(this.watches.get(e)?.ready)return this.cache.get(e)?.data}select(e,t=null){if(this.selected=e,!e)return;let n=this.watches.get(e);if(n)this.retryWatch(e,n);else{let n={projectId:t,ready:!1};this.watches.set(e,n),this.subscribe(e,n)}this.retry()}observe(e,t){let n=this.watches.get(e.id);if(!n)return;let r=this.cache.get(e.id);r&&!!r.data.archived!=!!e.archived&&(r.cursor.serverEpoch!==t.serverEpoch||r.cursor.seq<t.seq)?(n.read?.controller.abort(),n.read=void 0,n.ready=!1,this.cache.invalidateDetail(e.id),this.subscribe(e.id,n)):this.retryWatch(e.id,n)}removeProject(e){for(let[t,n]of this.watches)n.projectId===e&&this.forget(t);this.cache.removeProject(e)}forget(e){let t=this.watches.get(e);t&&(t.read?.controller.abort(),this.watches.delete(e),this.cache.invalidateDetail(e),this.socket?.readyState===WebSocket.OPEN&&this.socket.send(JSON.stringify({type:`unsubscribe`,threadId:e})),this.finishReconnect(e))}retryWatch(e,t){!t.ready&&t.subscriptionId===void 0&&!t.read&&this.subscribe(e,t)}isWatching(e){return this.watches.has(e)}refresh(e){let t=this.watches.get(e);if(t&&this.socket?.readyState===WebSocket.OPEN)return!t.ready&&t.subscriptionId!==void 0?t.read?.promise:this.readSnapshot(e,t,this.socket,t.minimum);this.retry()}retry=()=>{this.stopped||this.blocked||this.socket?.readyState===WebSocket.OPEN||this.socket?.readyState===WebSocket.CONNECTING||(clearTimeout(this.timer),this.connect())};resetWatches(){this.reconnectQueue=void 0,this.reconnecting=void 0;for(let e of this.watches.values())e.ready=!1,e.read?.controller.abort(),e.read=void 0,e.subscriptionId=void 0,e.minimum=void 0}offline=()=>{this.resetWatches(),clearTimeout(this.timer);let e=this.socket;this.socket=void 0,e?.close(),this.handlers.connection(`disconnected`)};resume=()=>{this.stopped||this.blocked||(this.retry(),this.handlers.refresh?.())};visible=()=>{document.visibilityState===`visible`&&this.resume()};reconnectNext(){if(this.reconnectQueue&&!this.reconnecting){for(let e=this.reconnectQueue.next();!e.done;e=this.reconnectQueue.next()){let t=e.value,n=this.watches.get(t);if(!(!n||n.ready||n.subscriptionId!==void 0||n.read)){this.reconnecting=t,this.subscribe(t,n);return}}this.reconnectQueue=void 0}}finishReconnect(e){this.reconnecting===e&&(this.reconnecting=void 0,this.reconnectNext())}subscribe(e,t){if(this.socket?.readyState!==WebSocket.OPEN)return;let n=this.cache.get(e)?.cursor;t.ready=!1,t.subscriptionId=++this.nextSubscriptionId,this.socket.send(JSON.stringify({type:`subscribe`,threadId:e,incremental:!0,subscriptionId:t.subscriptionId,...n?{after:n}:{}}))}publish(e){if(this.selected!==e)return;let t=this.cache.get(e)?.data;t&&this.handlers.thread(t)}readSnapshot(e,t,n,r){if(t.read)return t.read.promise;let i=new AbortController,a=()=>!i.signal.aborted&&this.socket===n&&this.watches.get(e)===t,o=(async()=>{try{let o=await(this.handlers.snapshot??pr.threadSnapshot)(e,AbortSignal.any([i.signal,AbortSignal.timeout(35e3)]));if(!a())return;let s={type:`snapshot`,threadId:e,...o};if(!Wh(s)||!Uh(o.data,e))throw Error(`Invalid thread snapshot`);let c=this.cache.get(e),l=r?.serverEpoch??c?.cursor.serverEpoch;if(l&&o.cursor.serverEpoch!==l){n.close();return}if(r&&o.cursor.seq<r.seq)throw Error(`Thread snapshot precedes the recovery boundary`);this.cache.apply(s)&&t.ready&&this.publish(e),t.ready||this.subscribe(e,t)}catch(t){if(!a())return;t instanceof fr&&[401,403,404].includes(t.status)&&this.forget(e),this.selected===e&&this.handlers.readError?.(e,t),t instanceof fr&&t.authenticationRequired?(this.blocked=!0,n.close()):this.finishReconnect(e)}finally{t.read?.controller===i&&(t.read=void 0)}})();return t.read={controller:i,promise:o},o}detail(e,t){if(e.threadId===void 0)return;let n=e.threadId,r=this.watches.get(n);if(!r||e.subscriptionId===void 0||r.subscriptionId!==e.subscriptionId)return;if(e.type===`error`){this.forget(n),n===this.selected&&this.handlers.readError?.(n,new fr(e.status??400,e.error));return}let i=()=>{r.ready=!1,r.read?.controller.abort(),r.read=void 0,r.subscriptionId=void 0,r.minimum=e.cursor,t.send(JSON.stringify({type:`unsubscribe`,threadId:n})),this.readSnapshot(n,r,t,e.cursor)};if(e.type===`resync`)i();else if(e.type===`subscribed`){if(!this.cache.advance(n,e.cursor,e.threadSeq)){i();return}r.ready=!0,r.minimum=void 0,this.publish(n),this.finishReconnect(n)}else try{this.cache.apply(e)&&r.ready&&this.publish(n)}catch{i()}}connect(){if(this.stopped||this.blocked)return;if(!navigator.onLine){this.handlers.connection(`disconnected`);return}this.handlers.connection(this.attempt===0?`connecting`:`disconnected`);let e=new WebSocket(`${location.protocol===`https:`?`wss:`:`ws:`}//${location.host}/ws?overview=1`);this.socket=e,e.onopen=()=>{if(this.socket!==e)return e.close();this.attempt=0,this.reconnectQueue=this.watches.keys();let t=this.selected?this.watches.get(this.selected):void 0;this.selected&&t&&this.subscribe(this.selected,t),this.reconnectNext(),this.handlers.connection(`connected`)},e.onmessage=t=>{if(this.socket===e)try{let n=JSON.parse(String(t.data));if(!Wh(n)){this.handlers.error(H(`errors:unrecognized_server_message_check_version_compatibility`));return}if(n.type===`snapshot`||n.type===`resync`||n.type===`subscribed`||n.type===`event`&&(n.kind===`thread`||n.kind===`threadPatch`)||n.type===`error`&&n.subscriptionId!==void 0){this.detail(n,e);return}if(n.type===`event`&&n.kind===`operation`&&(!this.selected||n.threadId&&n.threadId!==this.selected)||!this.cache.apply(n)||(n.type===`error`&&this.handlers.error(n.error.message),n.type!==`event`))return;n.kind===`turnCompletion`&&this.handlers.completion?.(n.payload),n.kind===`attentionRequest`&&this.handlers.attention?.(n.payload),n.kind===`threadSummary`&&this.handlers.summary(n.payload,n.cursor),n.kind===`runtime`&&this.handlers.system(n.payload),n.kind===`projects`&&this.handlers.projects?.(n.payload),n.kind===`operation`&&this.handlers.operation(n.payload)}catch{this.handlers.error(H(`errors:could_not_parse_a_live_message_refresh_the`)),e.close()}},e.onclose=t=>{this.stopped||this.socket!==e||(this.socket=void 0,this.resetWatches(),this.blocked||[4001,4401,4403,1008].includes(t.code)?(this.blocked=!0,this.handlers.connection(`authenticationRequired`)):(this.handlers.connection(`disconnected`),this.timer=setTimeout(()=>this.connect(),Hh(this.attempt++))))},e.onerror=()=>{}}},Kh=new Set([`create`,`fork`,`resume`,`rename`,`send`,`steer`,`resolve`,`archive`,`compact`,`review`,`saveModelDefaults`,`liveSettings`]);function qh(e){return e?JSON.stringify([e.codexEpoch,e.codexVersion,e.verifiedVersion]):void 0}function Jh(e){return e?.compatibilityConfirmation===`required`}function Yh(e,t,n){let r=qh(e);return!(!Jh(e)||!r||t===r&&n!==r)}function Xh(e,t,n){return!!(Jh(e)&&e?.ready&&e.authenticated===!0&&e.codexVersion&&t===`connected`&&!n)}function Zh(e,t){return Kh.has(e)&&Jh(t)}function Qh(e,t,n,r){if(t?.codexVersion&&qh(t)===e&&Xh(t,n,r))return{codexEpoch:t.codexEpoch,codexVersion:t.codexVersion,verifiedVersion:t.verifiedVersion,confirm:!0}}var $h=class{runtimeRevision=0;requestSequence=0;beginRead(){return{runtimeRevision:this.runtimeRevision,requestSequence:++this.requestSequence}}runtimeEvent(){this.runtimeRevision++}canApplyRead(e){return e.runtimeRevision===this.runtimeRevision&&e.requestSequence===this.requestSequence}},eg=()=>({data:[],nextCursor:null,loading:!1}),tg=e=>e.sort((e,t)=>(t.updatedAt??0)-(e.updatedAt??0)||e.id.localeCompare(t.id)),ng=class{value={};sequences=new Map;versions=new Map;authoritative=new Map;revision=0;seen=new Map;archived=!1;mutations=new Map;constructor(e=[]){for(let t of e)t.mutation&&this.beginMutation(t.clientOperationId,t.target,t.mutation)}beginMutation(e,t,n,r){r??=Object.values(this.value).flatMap(e=>e.data).find(e=>e.id===t),this.mutations.set(e,{target:t,change:n,base:r,revision:this.revision})}seedMutation(e,t){let n=this.mutations.get(e);n&&!n.base&&n.target===t.id&&n.change.projectId===t.projectId&&(n.base=t)}project(e){let t=e;for(let{target:n,change:r}of this.mutations.values())n===e.id&&(t={...t,...r.archived===void 0?{}:{archived:r.archived},...r.title===void 0?{}:{title:r.title}});return t}settleMutation(e,t){let n=this.mutations.get(e);if(n){if(t?.summary?.id===n.target&&t.summary.projectId===n.change.projectId&&t.cursor){let e=this.versions.get(n.target);(!e||e.cursor.serverEpoch===t.cursor.serverEpoch||e.revision<=n.revision)&&this.applySummary(t.summary,t.cursor)}if(n.base){let e=this.get(n.change.projectId);!e.data.some(e=>e.id===n.target)&&this.includes(n.base)&&this.set(n.change.projectId,{...e,data:tg([...e.data,n.base])})}return this.mutations.delete(e),n.base}}setArchived(e){if(this.archived===e)return!1;this.archived=e;for(let e of this.sequences.keys())this.sequences.set(e,this.sequences.get(e)+1);return this.value={},this.seen.clear(),!0}includes(e){return e.historyVisible!==!1&&!!e.archived===this.archived}get snapshot(){if(!this.mutations.size)return this.value;let e={...this.value};for(let{change:t,base:n}of this.mutations.values()){let r=e[S(t.projectId)]??eg(),i=new Map(r.data.map(e=>[e.id,e]));n&&!i.has(n.id)&&i.set(n.id,n),e[S(t.projectId)]={...r,data:[...i.values()]}}for(let[t,n]of Object.entries(e))e[t]={...n,data:tg(n.data.map(e=>this.project(e)).filter(e=>this.includes(e)))};return e}cacheRows(e){return this.value[e]?.data}discardCached(){let e=!1;for(let[t,n]of Object.entries(this.value)){if(!n.unverified?.length)continue;let r=new Set(n.unverified);this.set(t,{...n,data:n.data.filter(e=>!r.has(e.id)),unverified:[]}),e=!0}return e}restoreCached(e,t){let n=this.get(e);if(n.cacheBlocked||n.loaded&&n.nextCursor===null)return!1;let r=new Map(n.data.map(e=>[e.id,e])),i=new Set(n.unverified);for(let n of t){let t=this.authoritative.get(n.id),a=t??n;S(a.projectId)===e&&this.includes(a)&&!r.has(a.id)&&(r.set(a.id,a),t||i.add(a.id))}return r.size!==n.data.length&&(this.set(e,{...n,data:tg([...r.values()]),unverified:[...i]}),!0)}findProject(e){return Object.entries(this.value).find(([,t])=>t.data.some(t=>t.id===e))?.[0]}removeProject(e){for(let[t,n]of this.mutations)n.change.projectId===e&&this.mutations.delete(t);this.sequences.set(e,(this.sequences.get(e)??0)+1);let t={...this.value};for(let[t,n]of this.authoritative)n.projectId===e&&(this.authoritative.delete(t),this.versions.delete(t));delete t[e],this.seen.delete(e),this.value=t}beginRead(e,t=!1){let n=(this.sequences.get(e)??0)+1;return this.sequences.set(e,n),this.set(e,{...this.get(e),loading:!0,appending:t,error:void 0,retryCursor:void 0}),{projectId:e,sequence:n,revision:this.revision,append:t}}isCurrent(e){return this.sequences.get(e.projectId)===e.sequence}finishRead(e,t){if(!this.isCurrent(e))return!1;let n=this.get(e.projectId),r=new Map((e.append||t.nextCursor!==null?n.data:[]).map(e=>[e.id,e])),i=n=>{let r=this.versions.get(n);return!!(r&&(r.cursor.serverEpoch===t.cursor.serverEpoch?r.cursor.seq>t.cursor.seq:r.revision>e.revision))},a=e.append?this.seen.get(e.projectId)??new Set:new Set,o=new Set(n.unverified);for(let n of t.data)if(S(n.projectId)===e.projectId){if(a.add(n.id),o.delete(n.id),i(n.id)){let e=this.authoritative.get(n.id);e&&this.includes(e)?r.set(n.id,e):r.delete(n.id)}else{this.includes(n)?r.set(n.id,n):r.delete(n.id),this.versions.set(n.id,{cursor:t.cursor,revision:++this.revision}),this.authoritative.set(n.id,n);for(let e of this.mutations.values())e.target===n.id&&(e.base=n)}}for(let t of this.authoritative.values())S(t.projectId)===e.projectId&&this.includes(t)&&i(t.id)&&(r.set(t.id,t),a.add(t.id));if(this.seen.set(e.projectId,a),t.nextCursor===null)for(let o of[...n.data,...this.authoritative.values()])S(o.projectId)!==e.projectId||!this.includes(o)||a.has(o.id)||i(o.id)||(r.delete(o.id),this.authoritative.set(o.id,{...o,historyVisible:!1}),this.versions.set(o.id,{cursor:t.cursor,revision:++this.revision}));return this.set(e.projectId,{data:tg([...r.values()]),unverified:t.nextCursor===null?[]:[...o],nextCursor:t.nextCursor,loading:!1,loaded:!0}),!0}failRead(e,t,n,r=!1){return this.isCurrent(e)?(this.set(e.projectId,{...r?eg():this.get(e.projectId),loading:!1,error:t,retryCursor:n,cacheBlocked:r}),!0):!1}applySummary(e,t){let n=this.versions.get(e.id);if(n?.cursor.serverEpoch===t.serverEpoch&&n.cursor.seq>=t.seq)return!1;this.versions.set(e.id,{cursor:t,revision:++this.revision}),this.authoritative.set(e.id,e);for(let t of this.mutations.values())t.target===e.id&&(t.base=e);let r=this.get(e.projectId);return this.includes(e)&&this.seen.get(S(e.projectId))?.add(e.id),this.set(e.projectId,{...r,unverified:r.unverified?.filter(t=>t!==e.id),data:tg([...this.includes(e)?[e]:[],...r.data.filter(t=>t.id!==e.id)])}),!0}get(e){return this.value[S(e)]??eg()}set(e,t){this.value={...this.value,[S(e)]:t}}};async function rg(e){let t=e.cursor,n=new Set,r,i=new Map;for(let a=0;a<100;a++){if(!e.isCurrent())return;t&&n.add(t);let a=await e.read(t);if(!e.isCurrent())return;if(r??=a.cursor,r.serverEpoch!==a.cursor.serverEpoch)throw Error(H(`sidebar:the_session_service_restarted_retry_loading_sessions`));if(a.nextCursor!==null&&(!a.nextCursor||n.has(a.nextCursor)))throw Error(H(`sidebar:session_pagination_did_not_advance_retry_or_refresh`));for(let t of a.data)S(t.projectId)===e.projectId&&!!t.archived===e.archived&&t.historyVisible!==!1&&i.set(t.id,t);if(a.nextCursor===null||[...i.keys()].some(t=>!e.knownIds.has(t)))return{data:[...i.values()],nextCursor:a.nextCursor,cursor:r};t=a.nextCursor}throw Error(H(`sidebar:too_many_session_pages_read_retry_or_refresh`))}var ig=256,ag=524288,og=1;async function sg(e){let t=await crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(e));return Array.from(new Uint8Array(t),e=>e.toString(16).padStart(2,`0`)).join(``)}function cg(){return new Promise(e=>{try{if(typeof indexedDB>`u`)return e(void 0);let t=indexedDB.open(`covro-conversation-history`,og),n=!1,r=setTimeout(()=>{n=!0,e(void 0)},1e3);t.onupgradeneeded=()=>{t.result.createObjectStore(`pages`),t.result.createObjectStore(`metadata`,{keyPath:`key`})},t.onblocked=t.onerror=()=>{clearTimeout(r),e(void 0)},t.onsuccess=()=>{clearTimeout(r),n?t.result.close():(t.result.onversionchange=()=>t.result.close(),e(t.result))}}catch{e(void 0)}})}function lg(e){return new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error)})}function ug(e){return new Promise((t,n)=>{e.oncomplete=()=>t(),e.onerror=e.onabort=()=>n(e.error)})}var dg=Promise.resolve(),fg=class{write(e,t){let n=dg.then(()=>this.save(e,t));return dg=n.catch(()=>{}),n}remove(e){let t=dg.then(()=>this.delete(e));return dg=t.catch(()=>{}),t}async read(e){let t=await cg();if(t)try{let n=t.transaction([`pages`,`metadata`]),[r,i]=await Promise.all([lg(n.objectStore(`metadata`).get(e)),lg(n.objectStore(`pages`).get(e))]);return!r||r.version!==og||r.savedAt<Date.now()-6048e5||!i||typeof i.json!=`string`||r.bytes>ag||await sg(i.json)!==i.digest?void 0:JSON.parse(i.json)}catch{return}finally{t.close()}}async save(e,t){let n=await cg();if(n)try{let r=JSON.stringify(t),i=new TextEncoder().encode(r).length;if(i>ag)return;let a={json:r,digest:await sg(r)},o=n.transaction([`pages`,`metadata`],`readwrite`),s=ug(o);s.catch(()=>{});let c=o.objectStore(`metadata`),l=o.objectStore(`pages`);c.put({key:e,bytes:i,savedAt:Date.now(),version:og}),l.put(a,e);let u=await lg(c.getAll()),d=u.reduce((e,t)=>e+t.bytes,0),f=u.length;for(let e of u.sort((e,t)=>e.savedAt-t.savedAt))d<=8388608&&f<=ig&&e.version===og&&e.savedAt>=Date.now()-6048e5||(l.delete(e.key),c.delete(e.key),d-=e.bytes,f--);await s}catch{}finally{n.close()}}async delete(e){let t=await cg();if(t)try{let n=t.transaction([`pages`,`metadata`],`readwrite`),r=ug(n);r.catch(()=>{});let i=n.objectStore(`metadata`);for(let t of await lg(i.getAll()))e(JSON.parse(t.key))&&(n.objectStore(`pages`).delete(t.key),i.delete(t.key));await r}catch{}finally{t.close()}}},pg=new fg,mg=(e,t,n)=>JSON.stringify([e,t,`thread-list`,`v1`,n?`archived`:`active`]);function hg(e){return{id:e.id,projectId:e.projectId,title:e.title,source:e.source,originator:e.originator,forkedFromId:e.forkedFromId,updatedAt:e.updatedAt,archived:!!e.archived,historyVisible:e.historyVisible,status:`unknown`,managed:!1,pendingActionCount:0}}var gg=class{scope;constructor(e){this.scope=e}async read(e,t){let n=await pg.read(mg(this.scope,e,t));if(!(!Array.isArray(n)||n.length>300)&&!n.some(n=>!n||typeof n.id!=`string`||!n.id||S(n.projectId)!==e||typeof n.title!=`string`||typeof n.source!=`string`||n.originator!=null&&typeof n.originator!=`string`||n.forkedFromId!=null&&typeof n.forkedFromId!=`string`||n.updatedAt!==void 0&&!Number.isFinite(n.updatedAt)||!!n.archived!==t||n.historyVisible===!1))return[...new Map(n.map(e=>[e.id,hg(e)])).values()]}write(e,t,n){return pg.write(mg(this.scope,e,t),n.filter(n=>S(n.projectId)===e&&!!n.archived===t&&n.historyVisible!==!1).slice(0,300).map(hg))}remove(e){return pg.remove(([t,n,r,i])=>t===this.scope&&n===e&&r===`thread-list`&&i===`v1`)}};function _g(e,t,n,r){let i=JSON.stringify([r?.codexEpoch,n.map(e=>[e.id,e.rootPath,e.available])]),[a,o]=(0,y.useState)();return(0,y.useEffect)(()=>{if(e){o(void 0);return}let t=!0;return pr.historyCacheContext().then(({scope:e})=>{t&&o({context:i,scope:e})}).catch(()=>{}),()=>{t=!1}},[e,t,i]),!e&&a?.context===i?a.scope:void 0}var vg=`#notification=`,yg=e=>typeof e==`string`&&e.length>0&&e.length<=4096;function bg(e){return e?`/${vg}${encodeURIComponent(JSON.stringify(e))}`:`/`}function xg(e){if(!(typeof e!=`string`||e.length>32768))try{let t=new URL(e,window.location.origin);if(t.origin!==window.location.origin||t.pathname!==`/`||!t.hash.startsWith(vg))return;let n=JSON.parse(decodeURIComponent(t.hash.slice(14)));return!n||!yg(n.threadId)||!yg(n.projectId)||n.target!==void 0&&(!n.target||![`action`,`question`].includes(n.target.kind)||!yg(n.target.id))?void 0:{threadId:n.threadId,projectId:n.projectId,...n.target&&{target:{kind:n.target.kind,id:n.target.id}}}}catch{return}}var Sg=class extends Error{reason;constructor(e,t){super(`Notification ${e} failed`,{cause:t}),this.reason=e}},Cg;function wg(e){return new Promise((t,n)=>{let r=setTimeout(()=>n(Error(`Notification registration timed out`)),1e4);e.then(e=>{clearTimeout(r),t(e)},e=>{clearTimeout(r),n(e)})})}function Tg(e){if(e.active?.state===`activated`)return Promise.resolve();let t=e.installing??e.waiting??e.active;return t?new Promise((e,n)=>{let r=r=>{clearTimeout(a),t.removeEventListener(`statechange`,i),r?n(r):e()},i=()=>{t.state===`activated`?r():t.state===`redundant`&&r(Error(`Notification worker failed`))},a=setTimeout(()=>r(Error(`Notification worker timed out`)),1e4);t.addEventListener(`statechange`,i),i()}):Promise.reject(Error(`No notification worker`))}function Eg(){return navigator.serviceWorker?(Cg||=(async()=>{let e=await wg(navigator.serviceWorker.register(`/notification-worker.js`,{updateViaCache:`none`}));if(await Tg(e),typeof e.showNotification!=`function`)throw new Sg(`unsupported`);return e})().catch(e=>{throw Cg=void 0,e instanceof Sg?e:new Sg(`initialization`,e)}),Cg):Promise.resolve(void 0)}async function Dg(e,t,n,r,i,a){let o=await Eg();if(!a())return!1;if(Notification.permission!==`granted`)throw new Sg(`permission`);try{if(o)await o.showNotification(e,{...t,data:{type:`covro-notification`,url:bg(n)}});else{let n=new Notification(e,t);n.onclick=()=>{window.focus(),r(),n.close()},n.onerror=()=>i(new Sg(`delivery`))}return!0}catch(e){throw new Sg(!o&&e instanceof TypeError?`unsupported`:`delivery`,e)}}var Og=`codex-web.notifications-enabled`;function kg(){return window.isSecureContext?`Notification`in window?Notification.permission:`unsupported`:`insecure`}function Ag(){try{return localStorage.getItem(Og)===`1`}catch{return!1}}function jg(e,t){return{title:{completed:H(`notifications:agentCompleted`),failed:H(`notifications:agentFailed`),interrupted:H(`notifications:agentInterrupted`)}[e.status],options:{body:`${t} · ${e.title}`,tag:JSON.stringify([e.threadId,e.turnId])}}}function Mg(e,t){return Pg(JSON.stringify([e,t]))}function Ng(e,t){return{title:H(e.kind===`answer`?`notifications:answer_required`:`notifications:approval_required`),options:{body:`${t} · ${e.title}`,tag:no(e)}}}async function Pg(e){let t=await new Promise((e,t)=>{let n=indexedDB.open(`codex-web.notifications`,1),r=!1;n.onupgradeneeded=()=>{n.result.createObjectStore(`completions`,{keyPath:`key`})},n.onerror=()=>t(n.error),n.onblocked=()=>{r=!0,t(Error(H(`notifications:notification_records_are_in_use_by_another_page`)))},n.onsuccess=()=>{r?n.result.close():e(n.result)}});try{return await new Promise((n,r)=>{let i=t.transaction(`completions`,`readwrite`),a=i.objectStore(`completions`).add({key:e}),o=!1;a.onerror=e=>{a.error?.name===`ConstraintError`&&(o=!0,e.preventDefault())},i.oncomplete=()=>n(!o),i.onabort=()=>r(i.error)})}finally{t.close()}}function Fg(e){let t=(0,y.useRef)(e);t.current=e;let n=(0,y.useRef)(!1),[r,i]=(0,y.useState)(Ag),[a,o]=(0,y.useState)(kg),[s,c]=(0,y.useState)(!1),l=(0,y.useRef)(!1),[u,d]=(0,y.useState)(),[f,p]=(0,y.useState)(!1),[m,h]=(0,y.useState)(!1),[g,_]=(0,y.useState)(!1),[v,b]=(0,y.useState)(),[x,C]=(0,y.useState)(),w=(0,y.useCallback)(e=>{if(!n.current)return;let t=e instanceof Sg?e.reason:`delivery`;d(Ct(`notifications:delivery_error_${t}`)),b(void 0)},[]);(0,y.useEffect)(()=>{n.current=!0;let e=()=>{i(Ag()),o(kg())},t=t=>{(t.key===null||t.key===`codex-web.notifications-enabled`)&&e()},r=e=>{let t=xg(e);return t&&C(t),t},a=()=>{r(window.location.href)&&history.replaceState(history.state,``,window.location.pathname+window.location.search)},s=e=>{e.source?.scriptURL===new URL(`/notification-worker.js`,window.location.origin).href&&e.origin===window.location.origin&&e.data?.type===`covro-notification-click`&&r(e.data.url)};return navigator.serviceWorker?.addEventListener(`message`,s),window.addEventListener(`hashchange`,a),a(),window.addEventListener(`storage`,t),window.addEventListener(`focus`,e),document.addEventListener(`visibilitychange`,e),()=>{n.current=!1,navigator.serviceWorker?.removeEventListener(`message`,s),window.removeEventListener(`hashchange`,a),window.removeEventListener(`storage`,t),window.removeEventListener(`focus`,e),document.removeEventListener(`visibilitychange`,e)}},[]),(0,y.useEffect)(()=>{x&&e.navigationReady&&(C(void 0),t.current.projectName(x.projectId)&&t.current.openThread(x.threadId,x.projectId,x.target))},[x,e.navigationReady]),(0,y.useEffect)(()=>{let e=!0;if(p(!1),!r||a!==`granted`)h(!1);else return h(!0),Eg().then(()=>{e&&p(!0)}).catch(t=>{e&&w(t)}).finally(()=>{e&&h(!1)}),()=>{e=!1}},[r,a,w]);let T=async()=>{if(l.current)return;d(void 0),b(void 0);let e=kg();if(o(e),r)try{localStorage.setItem(Og,`0`),i(!1)}catch{d(Ct(`notifications:cannot_save_notification_settings_allow_browser_storage_for`))}else if([`default`,`granted`].includes(e)){l.current=!0,c(!0);try{let t=e==="default"?await Notification.requestPermission():e;if(!n.current)return;if(o(t),t===`granted`){if(await Eg(),!n.current)return;if(kg()!==`granted`)throw new Sg(`permission`);localStorage.setItem(Og,`1`),i(!0)}}catch(e){e instanceof Sg?w(e):n.current&&d(Ct(`notifications:cannot_enable_notifications_check_notification_permissions_and_site`))}finally{l.current=!1,n.current&&c(!1)}}},E=(0,y.useCallback)((e,r,i)=>Dg(e,r,i,()=>{i&&t.current.openThread(i.threadId,i.projectId,i.target)},w,()=>n.current&&Ag()&&kg()===`granted`&&(!i||!!t.current.projectName(i.projectId))),[w]);return{enabled:r,access:a,requesting:s,error:u,ready:f,initializing:m,testing:g,testResult:v,toggle:T,test:async()=>{if(!g&&Ag()&&kg()===`granted`){d(void 0),b(void 0),_(!0);try{await E(H(`notifications:test_notification`),{body:H(`notifications:test_description`)})&&n.current&&b(Ct(`notifications:test_submitted`))}catch(e){w(e)}finally{n.current&&_(!1)}}},notify:(0,y.useCallback)(async e=>{if(!Ag()||kg()!==`granted`)return;let r=t.current.projectName(S(e.projectId));if(r)try{if(await Eg(),!await Mg(e.threadId,e.turnId)||!n.current||!Ag()||kg()!==`granted`||!t.current.projectName(S(e.projectId)))return;let i=jg(e,r);await E(i.title,i.options,{threadId:e.threadId,projectId:S(e.projectId)})}catch(e){e instanceof Sg?w(e):n.current&&d(Ct(`notifications:cannot_show_notifications_or_save_deduplication_records_check`))}},[E,w]),notifyAttention:(0,y.useCallback)(async e=>{if(!Ag()||kg()!==`granted`)return;let r=S(e.projectId);if(t.current.projectName(r))try{if(await Eg(),!await Pg(no(e))||!(await pr.threadAttention(e.threadId)).some(t=>no(t)===no(e)))return;let i=t.current.projectName(r);if(!n.current||!i||!Ag()||kg()!==`granted`)return;let a=Ng(e,i);await E(a.title,a.options,{threadId:e.threadId,projectId:r,target:e.target})}catch(e){e instanceof Sg?w(e):n.current&&d(Ct(`notifications:cannot_show_notifications_or_save_deduplication_records_check`))}},[E,w])}}var Ig=class{keys=new Map;submissions=new Map;snapshotKeys(){return Object.fromEntries(this.keys)}restoreKeys(e){for(let[t,n]of Object.entries(e))this.keys.has(t)||this.keys.set(t,n)}creationId(e){let t=`creation:${e}`,n=this.keys.get(t)??crypto.randomUUID();return this.keys.set(t,n),n}key(e,t){let n=t??`project:${e}`;return this.keys.get(n)??n}track(e,t){this.submissions.set(e,t)}discard(e){let t=this.submissions.get(e);t?.kind===`create`&&this.keys.delete(`creation:${t.key}`),this.submissions.delete(e)}apply(e){let t=this.submissions.get(e.clientOperationId);if(!t||(e.status===`failed`&&this.discard(e.clientOperationId),e.status!==`acknowledged`))return;if(this.discard(e.clientOperationId),t.kind===`send`)return{sent:t};let n=e.result?.threadId;if(n)return this.keys.set(n,t.key),this.keys.set(`project:${t.projectId}`,`draft:${crypto.randomUUID()}`),{created:{id:n,settings:t.settings}}}},Lg=`covro:prepare-upgrade-reload`,Rg=`covro.upgrade-tab`;async function zg(){return new Promise((e,t)=>{let n=indexedDB.open(`covro-upgrade`,1);n.onupgradeneeded=()=>n.result.createObjectStore(`snapshots`),n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error),n.onblocked=()=>t(Error(H(`updates:cannot_open_draft_backup_close_old_pages_and`)))})}async function Bg(e,t,n){let r=sessionStorage.getItem(Rg);if(!r&&e!==`put`)return;r||(r=crypto.randomUUID(),sessionStorage.setItem(Rg,r));let i=await zg();try{return await new Promise((a,o)=>{let s=i.transaction(`snapshots`,e===`get`?`readonly`:`readwrite`),c=s.objectStore(`snapshots`),l=`${r}:${t}`,u=e===`get`?c.get(l):e===`delete`?c.delete(l):c.put({value:n,time:Date.now()},l);s.oncomplete=()=>a(e===`get`?u.result:void 0),s.onerror=s.onabort=()=>o(s.error??Error(H(`updates:draft_backup_failed`)))})}finally{i.close()}}function Vg(e,t,n){let r=(0,y.useRef)({read:t,restore:n});r.current={read:t,restore:n},(0,y.useEffect)(()=>{let t=!0,n=(async()=>{let n=await Bg(`get`,e);t&&n&&Date.now()-n.time<864e5&&(r.current.restore(n.value),await Bg(`delete`,e))})().catch(()=>{}),i=t=>{t.detail.push(n.then(async()=>{await Bg(`put`,e,r.current.read())}))};return window.addEventListener(Lg,i),()=>{t=!1,window.removeEventListener(Lg,i)}},[e])}async function Hg(){let e=[];document.body.inert=!0;try{sessionStorage.setItem(Rg,crypto.randomUUID()),window.dispatchEvent(new CustomEvent(Lg,{detail:e})),await Promise.all(e),window.location.reload()}catch(t){throw await Promise.allSettled(e),await Promise.allSettled([Bg(`delete`,`composer`),Bg(`delete`,`workspace`)]),document.body.inert=!1,t}}function Ug(){try{return localStorage.getItem(`codex-web.project`)??``}catch{return``}}function Wg(){let[e,t]=(0,y.useState)([]),[n,r]=(0,y.useState)(!1),i=(0,y.useRef)(!1),a=(0,y.useRef)(0),o=(0,y.useRef)(0),[s,c]=(0,y.useState)(Ug),l=(0,y.useRef)([]),[u,d]=(0,y.useState)(Fh),f=(0,y.useRef)(u),p=(0,y.useRef)(new ng(u)),[m,h]=(0,y.useState)(!1),[g,_]=(0,y.useState)(p.current.snapshot),[v,b]=(0,y.useState)(),[w,T]=(0,y.useState)({}),E=(0,y.useCallback)((e,t,n)=>{T(r=>r[e]?{...r,[e]:{...r[e],status:t,...n?{turnId:n}:{}}}:r)},[]),[D,O]=(0,y.useState)(),[k,A]=(0,y.useState)(),[j,M]=(0,y.useState)(),N=(0,y.useCallback)(()=>M(void 0),[]),P=(0,y.useRef)(void 0),F=(0,y.useRef)(void 0),I=(0,y.useRef)({}),[ee,te]=(0,y.useState)(),ne=(0,y.useRef)(new $h),[L,re]=(0,y.useState)(`connecting`),[ie,ae]=(0,y.useState)(),[oe,se]=(0,y.useState)(),ce=(0,y.useRef)(void 0),[le,ue]=(0,y.useState)(),[R,z]=(0,y.useState)(!1),B=_g(R||L===`authenticationRequired`,L,e,ee),de=(0,y.useMemo)(()=>B?new gg(B):void 0,[B]),fe=(0,y.useMemo)(()=>new Map,[de]),pe=(0,y.useRef)(de),me=(0,y.useRef)(new Map);pe.current=de;let he=JSON.stringify([x,...e.filter(e=>e.available).map(e=>e.id)]);(0,y.useLayoutEffect)(()=>{p.current.discardCached()&&_(p.current.snapshot)},[de]),(0,y.useEffect)(()=>{let e=!0,t=p.current;for(let n of JSON.parse(he))de?.read(n,m).then(r=>{e&&r&&(n===`@unassigned`||l.current.some(e=>e.id===n&&e.available))&&t.restoreCached(n,r)&&_(t.snapshot)});return()=>{e=!1}},[de,he,m]),(0,y.useEffect)(()=>{if(!de)return;let e=setTimeout(()=>{for(let e of JSON.parse(he)){let t=p.current.snapshot[e],n=p.current.cacheRows(e),r=`${e}:${m}`;n&&t?.loaded&&fe.get(r)!==n&&(fe.set(r,n),de.write(e,m,n))}},150);return()=>clearTimeout(e)},[de,fe,he,m,g]);let[ge,V]=(0,y.useState)([]),_e=(0,y.useRef)(new Set),ve=(0,y.useRef)(void 0),ye=(0,y.useRef)(s),[be,xe]=(0,y.useState)(Dh),Se=(0,y.useRef)(be),Ce=(0,y.useRef)(new Map),we=(0,y.useRef)(new Ig),[Te,Ee]=(0,y.useState)({}),De=(0,y.useRef)(new Set),[Oe,ke]=(0,y.useState)([]);(0,y.useEffect)(()=>Oh(be),[be]),Vg(`workspace`,()=>({settings:Se.current,keys:we.current.snapshotKeys()}),e=>{we.current.restoreKeys(e.keys),Se.current={...e.settings,...Se.current},xe(Se.current)});let[Ae,je]=(0,y.useState)(0),Me=(0,y.useRef)(0),Ne=(0,y.useRef)(new Map),Pe=(0,y.useRef)(0),Fe=(0,y.useRef)(void 0),[Ie,Le]=(0,y.useState)(!1),Re=(0,y.useCallback)(e=>Se.current[`project:${e}`]??{},[]),ze=(0,y.useCallback)(e=>{let t=P.current?`thread:${P.current}`:`project:${ye.current}`;Se.current={...Se.current,[t]:e},xe(Se.current)},[]),Be=(0,y.useCallback)((e,t,n)=>{ce.current=n,ae(ha(e)),se(t),ue(e instanceof fr?e.problem.details:void 0),e instanceof fr&&e.authenticationRequired&&z(!0)},[]),Ve=(0,y.useCallback)(async()=>{let e=ne.current.beginRead();try{let t=await pr.system();if(ne.current.canApplyRead(e))return te(t),t}catch(t){ne.current.canApplyRead(e)&&Be(t)}},[Be]),He=(0,y.useCallback)(e=>{let t=e(f.current);f.current=t,d(t),Ih(t)||ae(Ct(`workspace:the_browser_cannot_save_operation_records_keep_this`))},[]),Ue=(0,y.useCallback)(async(e,t)=>{if(e!==`@unassigned`&&!l.current.some(t=>t.id===e))return;let n=p.current,r=n.snapshot[e];if(r?.loading&&!!t==!!r.appending||t&&(r?.loading||r?.nextCursor!==t))return;let i=n.archived,a=new Set(r?.unverified),o=new Set(t?r?.data.filter(e=>!a.has(e.id)).map(e=>e.id):[]);me.current.get(e)?.abort();let s=new AbortController;me.current.set(e,s);let c=n.beginRead(e,!!t);_(p.current.snapshot);try{let r=AbortSignal.any([s.signal,AbortSignal.timeout(35e3)]),a=await rg({projectId:e,archived:i,cursor:t,knownIds:o,read:t=>pr.threads(e,t,i,r),isCurrent:()=>n.isCurrent(c)});a&&n.finishRead(c,a)&&_(n.snapshot)}catch(r){let i=r instanceof fr&&[401,403,404].includes(r.status);i&&n.isCurrent(c)&&pe.current?.remove(e),n.failRead(c,ha(r),t,i)&&_(p.current.snapshot),r instanceof fr&&r.authenticationRequired&&Be(r)}finally{me.current.get(e)===s&&me.current.delete(e)}},[Be]),We=(0,y.useCallback)(()=>Promise.all([Ue(x),...l.current.filter(e=>e.available).map(e=>Ue(e.id))]),[Ue]),Ge=(0,y.useCallback)(e=>{p.current.setArchived(e)&&(h(e),_(p.current.snapshot),We())},[We]),Ke=(0,y.useCallback)((e,t)=>{I.current[t]===e&&delete I.current[t];try{localStorage.getItem(`codex-web.selected:${t}`)===e&&localStorage.removeItem(`codex-web.selected:${t}`)}catch{}},[]),qe=(0,y.useCallback)(()=>{let e=P.current;e&&Ke(e,ye.current),Me.current++,Pe.current++,P.current=void 0,F.current=void 0,A(void 0),b(void 0),ve.current?.select(void 0)},[Ke]),Je=(0,y.useCallback)((e,t)=>{(e.projectId===null||l.current.some(t=>t.id===e.projectId))&&p.current.applySummary(e,t)&&(ve.current?.observe(e,t),_(p.current.snapshot),e.archived&&!p.current.archived&&Ke(e.id,S(e.projectId)))},[Ke]),Ye=(0,y.useCallback)(e=>{if(e.projectId!==null&&!l.current.some(t=>t.id===e.projectId))return;if(T(t=>{let n=new Set(e.pendingMessages?.map(e=>e.id)),r=Object.entries(t).filter(([t,r])=>r.threadId!==e.id||!n.has(t)&&!uo(e,r));return r.length===Object.keys(t).length?t:Object.fromEntries(r)}),e.id===P.current&&S(e.projectId)===ye.current){O(void 0);let t=F.current,n=p.current.project(e);if(n.archived&&t?.id===e.id&&!t.archived)qe();else if(F.current=e,b(e),Ge(!!n.archived),e.historyVisible)try{localStorage.setItem(`codex-web.selected:${S(e.projectId)}`,e.id)}catch{}}let t=f.current.filter(t=>t.kind===`resolve`&&e.actions.some(e=>e.actionId===t.target));t.length&&He(n=>n.flatMap(n=>{if(!t.includes(n))return[n];let r=e.actions.find(e=>e.actionId===n.target);return[`responded`,`expired`].includes(r.status)&&!_e.current.has(`${n.kind}:${n.target}`)?(ce.current===n.clientOperationId&&ae(void 0),[]):[{...n,context:{threadId:e.id,projectId:e.projectId,title:e.title}}]}));let n=`thread:${e.id}`,r=Se.current[n];if(r&&e.runtimeSettings){let t=So(r,e.runtimeSettings);Object.keys(t).length!==Object.keys(r).length&&(Se.current={...Se.current,[n]:t},xe(Se.current))}if(e.execution&&!e.execution.ended&&!f.current.some(t=>t.clientOperationId===e.execution?.operationId)){let t=e.execution;He(n=>[...n,{clientOperationId:t.operationId,kind:`send`,target:e.id,context:{threadId:e.id,projectId:e.projectId,title:e.title},createdAt:Date.now(),status:`unknown`}])}},[He,Ge,qe]),Xe=(0,y.useCallback)(e=>{ye.current=e,c(e);try{localStorage.setItem(`codex-web.project`,e)}catch{}},[]),Ze=(0,y.useCallback)(async(e,t,n=!1)=>{let r=Me.current,i=++Pe.current;n||(Fe.current=void 0,Le(!1)),O(void 0);let a=t??p.current.findProject(e)??(ve.current?.cache.get(e)?S(ve.current.cache.get(e).data.projectId):void 0),o,s=()=>{if(a){delete I.current[a];try{localStorage.removeItem(`codex-web.selected:${a}`)}catch{}}P.current=void 0,F.current=void 0,A(void 0),b(void 0),ve.current?.select(void 0)};if(a&&n&&(Xe(a),P.current=e,F.current=void 0,A(e),b(void 0)),!a||n)try{if(o=await pr.threadMetadata(e),Me.current!==r||Pe.current!==i||a&&S(o.projectId)!==a)return;if(a??=S(o.projectId),n&&o.historyVisible===!1&&!f.current.some(t=>zh(t,e))){s();return}n&&(o=void 0)}catch(t){Me.current===r&&Pe.current===i&&(n&&t instanceof fr&&t.problem.code===`THREAD_NOT_FOUND`&&!f.current.some(t=>zh(t,e))?s():(t instanceof fr&&O({id:e,status:t.status}),Be(t)));return}if(a!==`@unassigned`&&!l.current.some(e=>e.id===a))return;Xe(a),P.current=e,I.current[a]=e,A(e);let c=ve.current,u=c?.view(e);u&&!!u.archived!==p.current.archived&&c?.forget(e),c?.select(e,a===`@unassigned`?null:a);let d=c?.view(e);F.current=d,b(d),d&&Ye(d);try{localStorage.setItem(`codex-web.selected:${a}`,e)}catch{}},[Xe,Be,Ye]),Qe=(0,y.useCallback)((e,t=!1)=>{Xe(e),Pe.current++,P.current=void 0,F.current=void 0,A(void 0),b(void 0),ve.current?.select(void 0);let n=I.current[e];try{n??=localStorage.getItem(`codex-web.selected:${e}`)??void 0}catch{}if(!t){delete I.current[e];try{localStorage.removeItem(`codex-web.selected:${e}`)}catch{}}if(t&&e&&n){let t=Ze(n,e,!0),r=Pe.current;Fe.current=r,Le(!0),t.finally(()=>{Fe.current===r&&(Fe.current=void 0,Le(!1))})}else Fe.current=void 0,Le(!1)},[Xe,Ze]),$e=(0,y.useCallback)(e=>{let n=new Set([x,...e.map(e=>e.id)]),a=l.current.filter(e=>!n.has(e.id));if(a.length>0){n.has(ye.current)||(Me.current++,Pe.current++);for(let e of a)me.current.get(e.id)?.abort(),p.current.removeProject(e.id),pe.current?.remove(e.id),ve.current?.removeProject(e.id);_(p.current.snapshot)}let o=e.filter(e=>e.available&&!l.current.some(t=>t.id===e.id));l.current=e,t(e);let s=ye.current;(!i.current||!n.has(s))&&Qe(n.has(s)?s:e.find(e=>e.available)?.id??e[0]?.id??`@unassigned`,!i.current),i.current||Ue(x),i.current=!0,r(!0);for(let e of o)Ue(e.id)},[Ue,Qe]),et=(0,y.useCallback)(async()=>{let e=++o.current,t=a.current;try{let{data:n}=await pr.projects();e===o.current&&t===a.current&&$e(n)}catch(n){e===o.current&&t===a.current&&Be(n)}},[$e,Be]),tt=(0,y.useCallback)((e,t,n=!t)=>{let r=p.current.settleMutation(e,t);_(p.current.snapshot),b(e=>e&&r?.id===e.id?{...e,archived:r.archived,title:r.title}:e&&{...e});let i=Ne.current.get(e);Ne.current.delete(e),n&&i&&i.projectId===ye.current&&i.revision===Me.current&&(i.left&&!P.current?Ze(i.threadId,i.projectId):P.current===i.threadId&&Ge(i.archived))},[Ze,Ge]),nt=(0,y.useCallback)(e=>{let t=f.current.find(t=>t.clientOperationId===e.clientOperationId);if(!t||t.operation&&(t.operation.updatedAt>e.updatedAt||t.operation.execution?.ended&&!e.execution?.ended||t.operation.reconciliation&&!e.reconciliation))return;let n=e.result?.turnId;E(e.clientOperationId,e.status===`acknowledged`?`submitted`:e.status===`failed`?`failed`:e.status===`unknown`?`unknown`:`submitting`,n),t.mutation&&(Rh(e)||e.reconciliation)&&tt(e.clientOperationId,e.status===`acknowledged`?e.result:void 0,e.status===`failed`);let r=we.current.apply(e);if(r?.created&&(Se.current={...Se.current,[`thread:${r.created.id}`]:r.created.settings},xe(Se.current)),r?.sent){let e=r.sent;Ee(t=>({...t,[e.key]:e}))}if(t.lookupError&&ae(e=>e===t.lookupError?.message?void 0:e),He(t=>t.map(t=>t.clientOperationId===e.clientOperationId?{...t,status:e.status,operation:e,error:e.error?rr(e.error):void 0,lookupError:void 0,...e.reconciliation?{mutation:void 0}:{}}:t)),e.status===`failed`&&e.error?.code!==`THREAD_IN_USE`&&t.kind!==`reconcile`&&(ce.current=e.clientOperationId,se(Mh(t)),ae((e.error?rr(e.error):void 0)??Ct(`workspace:operation_failed_check_details`)),ue(e.error?.details)),e.status===`acknowledged`){if((!i.current||Fe.current!==void 0)&&t.navigateToResult&&(t.kind===`create`||t.kind===`fork`))return;t.kind===`confirmCompatibility`&&Ve(),t.kind===`saveModelDefaults`&&(Se.current=Object.fromEntries(Object.entries(Se.current).map(([e,t])=>{if(!e.startsWith(`project:`))return[e,t];let n={...t};return delete n.model,delete n.reasoningEffort,[e,n]})),xe(Se.current),je(e=>e+1));let n=e.result,r=n?.threadId??n?.thread?.id??(t.kind===`create`?n?.id:void 0);if((t.kind===`create`||t.kind===`fork`)&&r){let e=t.projectId??(t.kind===`create`?t.target:void 0);e&&Ue(e),t.navigateToResult&&(t.navigationSource?.projectId??e)===ye.current&&(t.kind===`create`||(t.navigationSource?t.navigationSource.threadId??void 0:t.target)===P.current)&&Ze(r,e)}}Rh(e)&&(e.status!==`failed`&&ce.current===e.clientOperationId&&ae(void 0),He(t=>t.filter(t=>t.clientOperationId!==e.clientOperationId)))},[Ve,Ze,He,Ue,tt,E]);(0,y.useEffect)(()=>{for(let e of f.current)e.mutation&&pr.threadMetadata(e.target).then(t=>{p.current.seedMutation(e.clientOperationId,ro(t)),_(p.current.snapshot)}).catch(Be)},[Be]),(0,y.useEffect)(()=>{if(n)for(let e of f.current)e.operation?.status===`acknowledged`&&nt(e.operation)},[n,Ie,nt]);let rt=(0,y.useCallback)((e,t)=>{let n=Nh(t),r=!1;return He(t=>t.map(t=>t.clientOperationId!==e.clientOperationId||t.operation!==e.operation?t:(r=!0,{...t,lookupError:n}))),r?n.message:void 0},[He]),it=(0,y.useRef)(void 0),at=(0,y.useRef)(new Map),ot=(0,y.useCallback)(async(e=!1)=>{if(it.current)return await it.current,e?ot(!0):void 0;let t=(async()=>{let t=new Map;await Promise.all(f.current.map(async n=>{if(!_e.current.has(`${n.kind}:${n.target}`))try{let r=await pr.operation(n.clientOperationId);nt(r);let i=Mh({...n,operation:r});if(i&&r.execution&&!r.execution.ended&&(e||Date.now()-(at.current.get(i)??0)>15e3)){let e=t.get(i);if(!e){at.current.set(i,Date.now());let n=ve.current;e=n?.isWatching(i)?Promise.resolve(n.refresh(i)):pr.thread(i).then(()=>void 0),t.set(i,e)}await e,r=await pr.operation(n.clientOperationId),nt(r)}}catch(e){if(e instanceof fr&&e.authenticationRequired){Be(e);return}rt(n,e)}}))})();it.current=t;try{await t}finally{it.current===t&&(it.current=void 0)}},[nt,Be,rt]),st=(0,y.useCallback)(async()=>{let e=P.current,t=ve.current;e&&t&&(t.select(e,ye.current===`@unassigned`?null:ye.current),await t.refresh(e))},[]),ct=(0,y.useCallback)(e=>Ue(ye.current,e),[Ue]),lt=Fg({navigationReady:n&&!Ie,projectName:e=>e===`@unassigned`?H(`common:unassigned`):l.current.find(t=>t.id===e)?.name,openThread:(e,t,n)=>{pt(),Ze(e,t),n&&M({threadId:e,target:n})}}),ut=lt.notify,dt=lt.notifyAttention;(0,y.useEffect)(()=>(et(),Ve(),()=>{o.current++}),[Ve,et]),(0,y.useEffect)(()=>{let e=new Gh({connection:e=>{re(e),e===`connected`&&(Ve(),et().then(We),ot(!0))},thread:Ye,readError:(e,t)=>{t instanceof fr&&O({id:e,status:t.status}),Be(t,e)},summary:Je,completion:e=>{ut(e)},attention:e=>{dt(e)},refresh:()=>{et().then(We),st().then(()=>ot(!0)),Ve()},system:e=>{ne.current.runtimeEvent(),te(e)},projects:e=>{a.current++,$e(e)},operation:nt,error:e=>{ae(e),ue(void 0)}});return ve.current=e,e.start(),P.current&&e.select(P.current,ye.current===`@unassigned`?null:ye.current),()=>{e.stop(),ve.current=void 0}},[nt,Ve,Ye,Je,We,et,$e,ut,dt,st,ot,Be]),(0,y.useEffect)(()=>{R&&(ve.current?.stop(),re(`authenticationRequired`))},[R]),(0,y.useEffect)(()=>{if(R)return;ot();let e=setInterval(()=>{ot()},4e3),t=setInterval(()=>{Ve()},3e4);return()=>{clearInterval(e),clearInterval(t)}},[R,ot,Ve]),(0,y.useEffect)(()=>{if(R||!v?.managed||v.status!==`unknown`)return;st();let e=setInterval(()=>{st()},15e3);return()=>clearInterval(e)},[R,v?.id,v?.managed,v?.status,st]);let ft=(0,y.useCallback)(async(e,t,n,r={},i)=>{if(Zh(e,ee)){ae(Ct(`workspace:confirm_the_codex_version_compatibility_notice_before_starting`)),ue(void 0);return}let a=`${e}:${t}`;if((e===`create`||e===`saveModelDefaults`)&&[..._e.current].some(e=>e.startsWith(`saveModelDefaults:`))){ae(Ct(`common:model_defaults_are_being_saved_wait_before_proceeding`));return}if(_e.current.has(a)||(e===`archive`||e===`rename`)&&f.current.some(e=>(e.kind===`archive`||e.kind===`rename`)&&zh(e,t))||(e===`fork`||e===`create`||e===`send`)&&f.current.some(n=>(e!==`fork`||n.kind===`fork`)&&zh(n,t)))return;_e.current.add(a),V([..._e.current]),ae(void 0),se(void 0),ue(void 0);let o=i?.kind===`create`&&i.creationId?i.creationId:crypto.randomUUID();if(i&&we.current.track(o,i),i?.kind===`send`){let n=r;T(r=>({...r,[o]:{id:o,threadId:t,kind:e===`steer`?`steer`:`start`,...n.expectedTurnId?{turnId:n.expectedTurnId}:{},item:io(o,n),status:`submitting`,createdAt:Date.now()}}))}let s=F.current?.id===t?ro(F.current):Object.values(p.current.snapshot).flatMap(e=>e.data).find(e=>e.id===t),c=e===`reconcile`?f.current.find(e=>e.clientOperationId===t):void 0,l=e===`resolve`&&F.current?.actions.some(e=>e.actionId===t)?F.current:void 0,u=c&&Mh(c),d=u?F.current?.id===u?F.current:Object.values(p.current.snapshot).flatMap(e=>e.data).find(e=>e.id===u):void 0,m=l??s??d,h=m?{threadId:m.id,projectId:m.projectId,title:m.title}:c?.context,g=h?.threadId??(c&&Mh(c)),v=e===`archive`&&s&&typeof r.archived==`boolean`?{projectId:s.projectId,archived:r.archived}:e===`rename`&&s&&typeof r.name==`string`?{projectId:s.projectId,title:r.name.trim()}:void 0;if(v&&(p.current.beginMutation(o,t,v,s),_(p.current.snapshot),P.current===t&&v.archived!==void 0)){let e=p.current.archived,n=v.archived;n?qe():Ge(!1),Ne.current.set(o,{projectId:S(v.projectId),threadId:t,revision:Me.current,archived:e,left:n}),b(e=>e&&{...e})}He(n=>[...n,{clientOperationId:o,kind:e,target:t,createdAt:Date.now(),status:`accepted`,...h?{context:h}:{},...v?{mutation:v}:{},...e===`fork`||e===`create`?{projectId:e===`create`?t:p.current.findProject(t)??ye.current,navigateToResult:!0,...e===`fork`?{navigationSource:{projectId:ye.current,threadId:P.current??null}}:{}}:{}}]);try{let e=await pr.submit(n,{...r,clientOperationId:o});return nt(e),e}catch(n){let r=n instanceof fr&&n.status>=400&&n.status<500&&n.status!==408&&n.problem.code!==`RESULT_UNKNOWN`;if((!g||r&&e!==`reconcile`)&&!(n instanceof fr&&n.problem.code===`THREAD_IN_USE`)&&Be(n,g,e===`reconcile`?t:o),e===`reconcile`&&He(e=>e.map(e=>e.clientOperationId===t?{...e,recoveryError:ha(n)}:e)),n instanceof fr&&n.status>=400&&n.status<500&&n.status!==408&&n.problem.code!==`RESULT_UNKNOWN`){we.current.discard(o),E(o,`failed`),v&&tt(o),He(e=>e.filter(e=>e.clientOperationId!==o));return}He(e=>e.map(e=>e.clientOperationId===o?{...e,status:`unknown`,error:ha(n)}:e)),E(o,`unknown`);let i=f.current.find(e=>e.clientOperationId===o);try{let e=await pr.operation(o);if(nt(e),e.status===`acknowledged`)return ae(e=>e===ha(n)?void 0:e),e}catch(e){e instanceof fr&&e.authenticationRequired?Be(e):i&&rt(i,e)}return}finally{_e.current.delete(a),V([..._e.current])}},[nt,Be,He,ee,rt,qe,Ge,tt,E]),pt=()=>{M(void 0),Me.current++,f.current.some(e=>e.navigateToResult)&&He(e=>e.map(e=>e.navigateToResult?{...e,navigateToResult:!1}:e))},mt=(0,y.useMemo)(()=>v?fo(p.current.project(v),Object.values(w)):void 0,[v,g,u,w]);return{notificationTarget:j,clearNotificationTarget:N,projects:e,projectsLoaded:n,reorderProjects:async e=>{let t=++a.current;try{let{data:n}=await pr.reorderProjects(e);t===a.current&&(a.current++,$e(n))}catch(e){throw e instanceof fr&&e.authenticationRequired&&Be(e),await et(),e}},openImportedProject:async e=>{a.current++,await et(),l.current.some(t=>t.id===e)&&(pt(),Qe(e))},addProject:async e=>{a.current++;try{let t=await pr.addProject(e);await et(),l.current.some(e=>e.id===t.id)&&(pt(),Qe(t.id))}catch(e){throw e instanceof fr&&e.authenticationRequired&&Be(e),e}},renameProject:async(e,t)=>{a.current++;try{await pr.renameProject(e,t),await et()}catch(e){throw e instanceof fr&&e.authenticationRequired&&Be(e),e}},removeProject:async e=>{a.current++;try{await pr.removeProject(e),await et()}catch(e){throw e instanceof fr&&e.authenticationRequired&&Be(e),e}},projectId:s,draftKey:we.current.key(s,k),draftCreationId:we.current.creationId(we.current.key(s,k)),sentDrafts:Te,restoringSelection:Ie,firstMessages:Oe,sendFirstMessage:async(e,t,n,r,i)=>{let a=ye.current;if(P.current||De.current.has(a))return!1;let o=we.current.key(a),s=Re(a);De.current.add(a),ke([...De.current]);try{let c=await ft(`create`,a,`${C(a)}/threads`,{settings:s},{kind:`create`,key:o,projectId:a,settings:s,creationId:we.current.creationId(o)}),l=c?.result?.threadId;return c?.status!==`acknowledged`||!l?!1:(await ft(`send`,l,`/api/threads/${encodeURIComponent(l)}/turns`,{text:e,images:t,skills:r,files:i,settings:s,...n?{taskKind:n}:{}},{kind:`send`,key:o,text:e,images:t,skills:r,files:i}))?.status===`acknowledged`}finally{De.current.delete(a),ke([...De.current])}},openDraft:()=>(pt(),Qe(ye.current),we.current.key(ye.current)),setProjectId:e=>{pt(),Qe(e)},archiveView:m,setArchiveView:e=>{e!==p.current.archived&&(pt(),qe(),Ge(e))},archiveThread:async(e,t)=>{let n=Me.current;(await ft(`archive`,e,`/api/threads/${encodeURIComponent(e)}/archive`,{archived:t}))?.status===`acknowledged`&&P.current===e&&Me.current===n&&await st()},projectThreads:g,cacheScope:B,threads:g[s]?.data??[],nextCursor:g[s]?.nextCursor??null,thread:mt,selectedId:k,threadReadFailure:D,selectThread:(e,t)=>(pt(),Ze(e,t)),system:ee,connection:L,error:!oe||oe===k?ie:void 0,errorDetails:le,clearError:()=>{ae(void 0),ue(void 0)},authRequired:R||L===`authenticationRequired`,busy:ge,loadingThreads:g[s]?.loading??!1,operations:u,settings:be[k?`thread:${k}`:`project:${s}`]??{},setSettings:ze,getProjectSettings:Re,updateLiveSettings:e=>{let t=F.current,n=t?.turns.at(-1);if(!t?.managed||!n)return;let r=(Ce.current.get(t.id)??Promise.resolve()).catch(()=>{}).then(()=>ft(`liveSettings`,t.id,`/api/threads/${encodeURIComponent(t.id)}/live-settings`,{expectedTurnId:n.id,settings:e}));Ce.current.set(t.id,r),r.finally(()=>{Ce.current.get(t.id)===r&&Ce.current.delete(t.id)})},runtimeDefaultsRevision:Ae,savingModelDefaults:ge.some(e=>e.startsWith(`saveModelDefaults:`)),saveModelDefaults:async e=>{let t=ye.current,n=await ft(`saveModelDefaults`,`model-defaults:${t}`,`${C(t)}/model-defaults`,{settings:e});return n?.status===`acknowledged`?n.result:void 0},run:ft,loadThreads:ct,loadProjectThreads:Ue,refreshProjectsThreads:We,refreshProjects:et,refreshThread:st,refreshSystem:Ve,refreshOperations:ot,discardMissingOperation:e=>{let t=f.current.find(t=>t.clientOperationId===e);t&&Ph(t)&&!_e.current.has(`${t.kind}:${t.target}`)&&(we.current.discard(e),t.mutation&&tt(e,void 0,!1),He(t=>t.filter(t=>t.clientOperationId!==e)),ae(e=>e===t.lookupError?.message?void 0:e))},retryConnection:()=>ve.current?.retry(),notifications:lt}}var Gg=`codex-web.read-completion:`;function Kg(e){return(e.status===`completed`||e.status===`idle`)&&e.lastTurnStatus===`completed`?e.lastTurnId:void 0}function qg(e,t){return`${Gg}${encodeURIComponent(e)}:${encodeURIComponent(t)}`}var Jg=class{storage;memory=new Set;constructor(e=()=>localStorage){this.storage=e}isRead(e,t){let n=qg(e,t);if(this.memory.has(n))return!0;try{return this.storage().getItem(n)===`1`}catch{return!1}}markRead(e,t){if(this.isRead(e,t))return!1;let n=qg(e,t);this.memory.add(n);try{this.storage().setItem(n,`1`)}catch{}return!0}invalidate(e){e===null?this.memory.clear():this.memory.delete(e)}};function Yg(){let[e]=(0,y.useState)(()=>new Jg),[,t]=(0,y.useReducer)(e=>e+1,0);return(0,y.useEffect)(()=>{let n=n=>{(n.key===null||n.key.startsWith(`codex-web.read-completion:`))&&(e.invalidate(n.key),t())};return window.addEventListener(`storage`,n),()=>window.removeEventListener(`storage`,n)},[e]),{isUnreadCompletion:t=>{let n=Kg(t);return!(!n||e.isRead(t.id,n))},markCompletedRead:(0,y.useCallback)((n,r)=>{e.markRead(n,r)&&t()},[e])}}function Xg(e){let t=/Mac|iPhone|iPad|iPod/i.test(e);return{mac:t,label:t?`⌘ + ⌥ + N`:`Ctrl + Alt + N`,aria:t?`Meta+Alt+N`:`Control+Alt+N`}}function Zg(e,t){let{mac:n}=Xg(navigator.platform),r=(0,y.useEffectEvent)(n=>{e&&(n.preventDefault(),t())});(0,y.useEffect)(()=>{let e=!1,t=-1/0,i=()=>{e=!1,t=-1/0},a=()=>{e=!0},o=()=>{e=!1,t=performance.now()},s=e=>{e.code===`KeyN`&&(t=-1/0)},c=i=>{i.defaultPrevented||i.repeat||i.isComposing||i.keyCode===229||e||performance.now()-t<100||i.getModifierState(`AltGraph`)||!i.altKey||i.shiftKey||(n?!i.metaKey||i.ctrlKey:!i.ctrlKey||i.metaKey)||(i.code?i.code!==`KeyN`:i.key.toLowerCase()!==`n`)||document.querySelector(`dialog:modal, [aria-modal="true"], [role="listbox"], [role="menu"], [popover]:popover-open`)||i.target instanceof Element&&i.target.closest(`dialog[open], [role="dialog"], [role="alertdialog"], [role="combobox"]`)||r(i)};return document.addEventListener(`compositionstart`,a,!0),document.addEventListener(`compositionend`,o,!0),document.addEventListener(`blur`,i,!0),document.addEventListener(`keyup`,s),document.addEventListener(`keydown`,c),window.addEventListener(`blur`,i),()=>{document.removeEventListener(`compositionstart`,a,!0),document.removeEventListener(`compositionend`,o,!0),document.removeEventListener(`blur`,i,!0),document.removeEventListener(`keyup`,s),document.removeEventListener(`keydown`,c),window.removeEventListener(`blur`,i)}},[n])}var Qg=Object.defineProperty,$g=(e,t)=>Qg(e,`name`,{value:t,configurable:!0}),e_=!!(typeof window<`u`&&window.document&&window.document.createElement);function t_(e,t,{checkForDefaultPrevented:n=!0}={}){return $g(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}$g(t_,`composeEventHandlers`);function n_(e){if(!e_)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}$g(n_,`getOwnerWindow`);function r_(e){if(!e_)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}$g(r_,`getOwnerDocument`);function i_(e,t=!1){let{activeElement:n}=r_(e);if(!n?.nodeName)return null;if(a_(n)&&n.contentDocument)return i_(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=r_(n).getElementById(e);if(t)return t}}return n}$g(i_,`getActiveElement`);function a_(e){return e.tagName===`IFRAME`}$g(a_,`isFrame`);var o_=Object.defineProperty,s_=(e,t)=>o_(e,`name`,{value:t,configurable:!0});function c_(e,t){let n=y.createContext(t);n.displayName=e+`Context`;let r=s_(e=>{let{children:t,...r}=e,i=y.useMemo(()=>r,Object.values(r));return(0,q.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=y.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return s_(i,`useContext`),[r,i]}s_(c_,`createContext`);function l_(e,t=[]){let n=[];function r(t,r){let i=y.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=s_(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=y.useMemo(()=>o,Object.values(o));return(0,q.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=y.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return s_(s,`useContext`),[o,s]}s_(r,`createContext`);let i=s_(()=>{let t=n.map(e=>y.createContext(e));return s_(function(n){let r=n?.[e]||t;return y.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,u_(i,...t)]}s_(l_,`createContextScope`);function u_(...e){let t=e[0];if(e.length===1)return t;let n=s_(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return s_(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}s_(u_,`composeContextScopes`);var d_=Object.defineProperty,f_=(e,t)=>d_(e,`name`,{value:t,configurable:!0});function p_(e){let t=y.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=C_(r),y.Children.forEach(r,e=>{if(y_(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;x_(n)&&typeof D_==`function`;)n=D_(n._payload);a=g_(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=y.cloneElement(a,void 0,s):!o&&y.Children.count(r)===1&&y.isValidElement(r)&&(a=r);let c=a?v_(a):void 0,l=vr(n,c);if(!a){if(r||r===0)throw Error(o?E_(e):T_(e));return r}let u=__(i,a.props??{});return a.type!==y.Fragment&&(u.ref=n?l:c),y.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}f_(p_,`createSlot`);var m_=Symbol.for(`radix.slottable`);function h_(e){let t=f_(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=m_,t}f_(h_,`createSlottable`);var g_=f_((e,t)=>`child`in e.props?y.isValidElement(t)?y.cloneElement(t,void 0,e.props.children(t.props.children)):null:y.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function __(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=w_(a,i))}return{...e,...n}}f_(__,`mergeProps`);function v_(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}f_(v_,`getElementRef`);function y_(e){return y.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===m_}f_(y_,`isSlottable`);var b_=Symbol.for(`react.lazy`);function x_(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===b_&&`_payload`in e&&S_(e._payload)}f_(x_,`isLazyComponent`);function S_(e){return typeof e==`object`&&!!e&&`then`in e}f_(S_,`isPromiseLike`);function C_(e){let t=e;for(;x_(t)&&typeof D_==`function`;)t=D_(t._payload);return t}f_(C_,`useUnwrappedLazy`);function w_(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}f_(w_,`concatAriaDescribedby`);var T_=f_(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),E_=f_(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),D_=y.use,O_=Object.defineProperty,k_=(e,t)=>O_(e,`name`,{value:t,configurable:!0}),A_=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=p_(`Primitive.${t}`),r=y.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,q.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function j_(e,t){e&&wa.flushSync(()=>e.dispatchEvent(t))}k_(j_,`dispatchDiscreteCustomEvent`);var M_=globalThis?.document?y.useLayoutEffect:()=>{},N_=Object.defineProperty,P_=(e,t)=>N_(e,`name`,{value:t,configurable:!0}),F_=y.useInsertionEffect;function I_(e){let t=y.useRef(e);return typeof F_==`function`?F_(()=>{t.current=e}):M_(()=>{t.current=e}),y.useMemo(()=>((...e)=>t.current?.(...e)),[])}P_(I_,`useCallbackRef`);var L_=Object.defineProperty,R_=(e,t)=>L_(e,`name`,{value:t,configurable:!0}),z_=`dismissableLayer.update`,B_=`dismissableLayer.pointerDownOutside`,V_=`dismissableLayer.focusOutside`,H_,U_=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),W_=y.forwardRef(R_(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=y.useContext(U_),[d,f]=y.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=y.useState({}),h=vr(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,b=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=v,C=y.useRef(!1),w=q_(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:y.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return S&&!t},[u.branches,S])}),T=J_(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?b===g.length-1:!1,D=I_(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return y.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),y.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(H_=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Y_(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=H_))}},[d,p,n,u]),y.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Y_())},[d,u]),y.useEffect(()=>{let e=R_(()=>m({}),`handleUpdate`);return document.addEventListener(z_,e),()=>document.removeEventListener(z_,e)},[]),(0,q.jsx)(A_.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:t_(e.onFocusCapture,T.onFocusCapture),onBlurCapture:t_(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:t_(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function G_(){let e=y.useContext(U_),[t,n]=y.useState(null);return y.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}R_(G_,`useDismissableLayerSurface`);var K_=R_(()=>!0,`IS_TRUE`);function q_(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=K_}=t,s=I_(e),c=y.useRef(!1),l=y.useRef(!1),u=y.useRef(new Map),d=y.useRef(()=>{});return y.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}R_(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}R_(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}R_(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}R_(p,`handleInteractionBubble`);let m=R_(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||X_(B_,s,p,{discrete:!0})};if(R_(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:R_(()=>c.current=!0,`onPointerDownCapture`)}}R_(q_,`usePointerDownOutside`);function J_(e,t=globalThis?.document){let n=I_(e),r=y.useRef(!1);return y.useEffect(()=>{let e=R_(e=>{e.target&&!r.current&&X_(V_,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:R_(()=>r.current=!0,`onFocusCapture`),onBlurCapture:R_(()=>r.current=!1,`onBlurCapture`)}}R_(J_,`useFocusOutside`);function Y_(){let e=new CustomEvent(z_);document.dispatchEvent(e)}R_(Y_,`dispatchUpdate`);function X_(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?j_(i,a):i.dispatchEvent(a)}R_(X_,`handleAndDispatchCustomEvent`);var Z_=Object.defineProperty,Q_=(e,t)=>Z_(e,`name`,{value:t,configurable:!0}),$_=`focusScope.autoFocusOnMount`,ev=`focusScope.autoFocusOnUnmount`,tv={bubbles:!1,cancelable:!0},nv=y.forwardRef(Q_(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=y.useState(null),u=I_(a),d=I_(o),f=y.useRef(null),p=vr(t,l),m=y.useRef(i);y.useEffect(()=>{m.current=i});let h=y.useCallback(e=>e?c?.contains(e)?!0:!!m.current?.some(t=>t.contains(e)):!1,[c]),g=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;h(t)?f.current=t:pv(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||pv(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&pv(c)};Q_(e,`handleFocusIn`),Q_(t,`handleFocusOut`),Q_(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,g.paused,h]),y.useEffect(()=>{if(c){mv.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent($_,tv);c.addEventListener($_,u),c.dispatchEvent(t),t.defaultPrevented||(sv(_v(lv(c)),{select:!0}),document.activeElement===e&&pv(c))}return()=>{c.removeEventListener($_,u);let t=c.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(ev,tv);c.addEventListener(ev,d),c.dispatchEvent(r),r.defaultPrevented||pv(e??t.body,{select:!0}),c.removeEventListener(ev,d),mv.remove(g)},0)}}},[c,u,d,g]);let _=y.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=cv(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&pv(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&pv(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,q.jsx)(A_.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),rv=y.createContext(null);function iv({registry:e,children:t}){return e?(0,q.jsx)(rv.Provider,{value:e,children:t}):t}Q_(iv,`FocusScopeBranchProvider`);function av(){let[e,t]=y.useState([]);return{nodes:e,registry:y.useMemo(()=>({add:Q_(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:Q_(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}Q_(av,`useFocusScopeBranchRegistry`);function ov(e){let t=y.useContext(rv);y.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}Q_(ov,`useFocusScopeBranch`);function sv(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(pv(r,{select:t}),document.activeElement!==n)return}Q_(sv,`focusFirst`);function cv(e){let t=lv(e);return[uv(t,e),uv(t.reverse(),e)]}Q_(cv,`getTabbableEdges`);function lv(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Q_(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}Q_(lv,`getTabbableCandidates`);function uv(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):dv(r,{upTo:t})))return r}Q_(uv,`findVisible`);function dv(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}Q_(dv,`isHidden`);function fv(e){return e.tagName===`INPUT`&&typeof e.select==`function`}Q_(fv,`isSelectableInput`);function pv(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&fv(e)&&t&&e.select()}}Q_(pv,`focus`);var mv=hv();function hv(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=gv(e,t),e.unshift(t)},remove(t){e=gv(e,t),e[0]?.resume()}}}Q_(hv,`createFocusScopesStack`);function gv(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Q_(gv,`arrayRemove`);function _v(e){return e.filter(e=>e.tagName!==`A`)}Q_(_v,`removeLinks`);var vv=Object.defineProperty,yv=(e,t)=>vv(e,`name`,{value:t,configurable:!0}),bv=y.useId||(()=>void 0),xv=0;function Sv(e){let[t,n]=y.useState(bv());return M_(()=>{e||n(e=>e??String(xv++))},[e]),e||(t?`radix-${t}`:``)}yv(Sv,`useId`);var Cv=[`top`,`right`,`bottom`,`left`],wv=Math.min,Tv=Math.max,Ev=Math.round,Dv=Math.floor,Ov=e=>({x:e,y:e}),kv={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Av(e,t,n){return Tv(e,wv(t,n))}function jv(e,t){return typeof e==`function`?e(t):e}function Mv(e){return e.split(`-`)[0]}function Nv(e){return e.split(`-`)[1]}function Pv(e){return e===`x`?`y`:`x`}function Fv(e){return e===`y`?`height`:`width`}function Iv(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Lv(e){return Pv(Iv(e))}function Rv(e,t,n){n===void 0&&(n=!1);let r=Nv(e),i=Lv(e),a=Fv(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=qv(o)),[o,qv(o)]}function zv(e){let t=qv(e);return[Bv(e),t,Bv(t)]}function Bv(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Vv=[`left`,`right`],Hv=[`right`,`left`],Uv=[`top`,`bottom`],Wv=[`bottom`,`top`];function Gv(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Hv:Vv:t?Vv:Hv;case`left`:case`right`:return t?Uv:Wv;default:return[]}}function Kv(e,t,n,r){let i=Nv(e),a=Gv(Mv(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Bv)))),a}function qv(e){let t=Mv(e);return kv[t]+e.slice(t.length)}function Jv(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Yv(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Jv(e)}function Xv(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Zv(e,t,n){let{reference:r,floating:i}=e,a=Iv(t),o=Lv(t),s=Fv(o),c=Mv(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Nv(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Qv(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=jv(t,e),p=Yv(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Xv(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Xv(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var $v=50,ey=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Qv},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Zv(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<$v&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Zv(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ty=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=jv(e,t)||{};if(l==null)return{};let d=Yv(u),f={x:n,y:r},p=Lv(i),m=Fv(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=wv(d[_],T),D=wv(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Av(E,k,O),j=!c.arrow&&Nv(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),ny=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=jv(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Mv(r),_=Iv(o),v=Mv(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[qv(o)]:zv(o)),x=p!==`none`;!d&&x&&b.push(...Kv(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Rv(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Iv(t)||T.every(e=>Iv(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Iv(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function ry(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function iy(e){return Cv.some(t=>e[t]>=0)}var ay=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=jv(e,t);switch(i){case`referenceHidden`:{let e=ry(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:iy(e)}}}case`escaped`:{let e=ry(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:iy(e)}}}default:return{}}}}},oy=new Set([`left`,`top`]);async function sy(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Mv(n),s=Nv(n),c=Iv(n)===`y`,l=oy.has(o)?-1:1,u=a&&c?-1:1,d=jv(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var cy=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await sy(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ly=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=jv(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Iv(i),p=Pv(f),m=u[p],h=u[f],g=(e,t)=>Av(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},uy=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=jv(e,t),u={x:n,y:r},d=Iv(i),f=Pv(d),p=u[f],m=u[d],h=jv(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=oy.has(Mv(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},dy=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=jv(e,t),c=await i.detectOverflow(t,s),l=Mv(n),u=Nv(n),d=Iv(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=wv(p-c[m],g),y=wv(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Tv(c.left,c.right):S=p-2*Tv(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function fy(){return typeof window<`u`}function py(e){return gy(e)?(e.nodeName||``).toLowerCase():`#document`}function my(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hy(e){return((gy(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function gy(e){return fy()?e instanceof Node||e instanceof my(e).Node:!1}function _y(e){return fy()?e instanceof Element||e instanceof my(e).Element:!1}function vy(e){return fy()?e instanceof HTMLElement||e instanceof my(e).HTMLElement:!1}function yy(e){return!fy()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof my(e).ShadowRoot}function by(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=jy(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function xy(e){return/^(table|td|th)$/.test(py(e))}function Sy(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Cy=/transform|translate|scale|rotate|perspective|filter/,wy=/paint|layout|strict|content/,Ty=e=>!!e&&e!==`none`,Ey;function Dy(e){let t=_y(e)?jy(e):e;return Ty(t.transform)||Ty(t.translate)||Ty(t.scale)||Ty(t.rotate)||Ty(t.perspective)||!ky()&&(Ty(t.backdropFilter)||Ty(t.filter))||Cy.test(t.willChange||``)||wy.test(t.contain||``)}function Oy(e){let t=Ny(e);for(;vy(t)&&!Ay(t);){if(Dy(t))return t;if(Sy(t))return null;t=Ny(t)}return null}function ky(){return Ey??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ey}function Ay(e){return/^(html|body|#document)$/.test(py(e))}function jy(e){return my(e).getComputedStyle(e)}function My(e){return _y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ny(e){if(py(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||yy(e)&&e.host||hy(e);return yy(t)?t.host:t}function Py(e){let t=Ny(e);return Ay(t)?(e.ownerDocument||e).body:vy(t)&&by(t)?t:Py(t)}function Fy(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Py(e),i=r===e.ownerDocument?.body,a=my(r);if(i){let e=Iy(a);return t.concat(a,a.visualViewport||[],by(r)?r:[],e&&n?Fy(e):[])}return t.concat(r,Fy(r,[],n))}function Iy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ly(e){let t=jy(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=vy(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ev(n)!==a||Ev(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ry(e){return _y(e)?e:e.contextElement}function zy(e){let t=Ry(e);if(!vy(t))return Ov(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ly(t),o=(a?Ev(n.width):n.width)/r,s=(a?Ev(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var By=Ov(0);function Vy(e){let t=my(e);return!ky()||!t.visualViewport?By:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Hy(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===my(e)}function Uy(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ry(e),o=Ov(1);t&&(r?_y(r)&&(o=zy(r)):o=zy(e));let s=Hy(a,n,r)?Vy(a):Ov(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=my(a),t=_y(r)?my(r):r,n=e,i=Iy(n);for(;i&&t!==n;){let e=zy(i),t=i.getBoundingClientRect(),r=jy(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=my(i),i=Iy(n)}}return Xv({width:u,height:d,x:c,y:l})}function Wy(e,t){let n=My(e).scrollLeft;return t?t.left+n:Uy(hy(e)).left+n}function Gy(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Wy(e,n),y:n.top+t.scrollTop}}function Ky(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=hy(r),s=t?Sy(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ov(1),u=Ov(0),d=vy(r);if((d||!a)&&((py(r)!==`body`||by(o))&&(c=My(r)),d)){let e=Uy(r);l=zy(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Gy(o,c):Ov(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function qy(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Jy(e){let t=My(e),n=e.ownerDocument.body,r=Tv(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Tv(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Wy(e),o=-t.scrollTop;return jy(n).direction===`rtl`&&(a+=Tv(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Yy=25;function Xy(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=my(e),a=hy(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!ky()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Wy(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Yy&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Zy(e,t){let n=Uy(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=zy(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Qy(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Xy(e,n,t);else if(t===`document`)r=Jy(hy(e));else if(_y(t))r=Zy(t,n);else{let n=Vy(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Xv(r)}function $y(e,t){let n=t.get(e);if(n)return n;let r=Fy(e,[],!1).filter(e=>_y(e)&&py(e)!==`body`),i=null,a=jy(e).position===`fixed`,o=a?Ny(e):e;for(;_y(o)&&!Ay(o);){let e=jy(o),t=Dy(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Ny(o)}return t.set(e,r),r}function eb(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Sy(t)?[]:$y(t,this._c):[].concat(n),r],o=Qy(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Qy(t,a[e],i);s=Tv(n.top,s),c=wv(n.right,c),l=wv(n.bottom,l),u=Tv(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function tb(e){let{width:t,height:n}=Ly(e);return{width:t,height:n}}function nb(e,t,n){let r=vy(t),i=hy(t),a=n===`fixed`,o=Uy(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ov(0);if((r||!a)&&((py(t)!==`body`||by(i))&&(s=My(t)),r)){let e=Uy(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Wy(i));let l=i&&!r&&!a?Gy(i,s):Ov(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function rb(e){return jy(e).position===`static`}function ib(e,t){if(!vy(e)||jy(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return hy(e)===n&&(n=n.ownerDocument.body),n}function ab(e,t){let n=my(e);if(Sy(e))return n;if(!vy(e)){let t=Ny(e);for(;t&&!Ay(t);){if(_y(t)&&!rb(t))return t;t=Ny(t)}return n}let r=ib(e,t);for(;r&&xy(r)&&rb(r);)r=ib(r,t);return r&&Ay(r)&&rb(r)&&!Dy(r)?n:r||Oy(e)||n}var ob=async function(e){let t=this.getOffsetParent||ab,n=this.getDimensions,r=await n(e.floating);return{reference:nb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function sb(e){return jy(e).direction===`rtl`}var cb={convertOffsetParentRelativeRectToViewportRelativeRect:Ky,getDocumentElement:hy,getClippingRect:eb,getOffsetParent:ab,getElementRects:ob,getClientRects:qy,getDimensions:tb,getScale:zy,isElement:_y,isRTL:sb};function lb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ub(e,t,n){let r=null,i,a=hy(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Dv(d),h=Dv(a.clientWidth-(u+f)),g=Dv(a.clientHeight-(d+p)),_=Dv(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Tv(0,wv(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!lb(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=my(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function db(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Ry(e),u=i||a?[...l?Fy(l):[],...t?Fy(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?ub(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Uy(e):null;c&&g();function g(){let t=Uy(e);h&&!lb(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var fb=cy,pb=ly,mb=ny,hb=dy,gb=ay,_b=ty,vb=uy,yb=(e,t,n)=>{let r=new Map,i=n??{},a={...cb,...i.platform,_c:r};return ey(e,t,{...i,platform:a})},bb=typeof document<`u`?y.useLayoutEffect:function(){};function xb(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!xb(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!xb(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Sb(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cb(e,t){let n=Sb(e);return Math.round(t*n)/n}function wb(e){let t=y.useRef(e);return bb(()=>{t.current=e}),t}function Tb(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=y.useState(r);xb(f,r)||p(r);let[m,h]=y.useState(null),[g,_]=y.useState(null),v=y.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=y.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=a||m,S=o||g,C=y.useRef(null),w=y.useRef(null),T=y.useRef(u),E=c!=null,D=wb(c),O=wb(i),k=wb(l),A=y.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),yb(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!xb(T.current,t)&&(T.current=t,wa.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);bb(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=y.useRef(!1);bb(()=>(j.current=!0,()=>{j.current=!1}),[]),bb(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=y.useMemo(()=>({reference:C,floating:w,setReference:v,setFloating:b}),[v,b]),N=y.useMemo(()=>({reference:x,floating:S}),[x,S]),P=y.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Cb(N.floating,u.x),r=Cb(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Sb(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var Eb=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:_b({element:r.current,padding:i}).fn(n):r?_b({element:r,padding:i}).fn(n):{}}}},Db=(e,t)=>{let n=fb(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ob=(e,t)=>{let n=pb(e);return{name:n.name,fn:n.fn,options:[e,t]}},kb=(e,t)=>({fn:vb(e).fn,options:[e,t]}),Ab=(e,t)=>{let n=mb(e);return{name:n.name,fn:n.fn,options:[e,t]}},jb=(e,t)=>{let n=hb(e);return{name:n.name,fn:n.fn,options:[e,t]}},Mb=(e,t)=>{let n=gb(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nb=(e,t)=>{let n=Eb(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pb=Object.defineProperty,Fb=y.forwardRef(((e,t)=>Pb(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,q.jsx)(A_.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,q.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),Ib=Object.defineProperty,Lb=(e,t)=>Ib(e,`name`,{value:t,configurable:!0});function Rb(e){let[t,n]=y.useState(void 0);return M_(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}Lb(Rb,`useSize`);var zb=Object.defineProperty,Bb=(e,t)=>zb(e,`name`,{value:t,configurable:!0}),Vb={Partial:`partial`,Always:`always`},Hb={Optimized:`optimized`,Always:`always`},Ub=`Popper`,[Wb,Gb]=l_(Ub),[Kb,qb]=Wb(Ub),Jb=Bb(e=>{let{__scopePopper:t,children:n}=e,[r,i]=y.useState(null),[a,o]=y.useState(void 0);return(0,q.jsx)(Kb,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Yb=`PopperAnchor`,Xb=y.forwardRef(Bb(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=qb(Yb,n),o=y.useRef(null),s=a.onAnchorChange,c=vr(t,y.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=y.useRef(null);y.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&ox(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,q.jsx)(A_.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),Zb=`PopperContent`,[Qb,$b]=Wb(Zb),ex=y.forwardRef(Bb(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=Vb.Partial,hideWhenDetached:f=!1,updatePositionStrategy:p=Hb.Optimized,onPlaced:m,...h}=e,g=qb(Zb,n),[_,v]=y.useState(null),b=vr(t,v),[x,S]=y.useState(null),C=Rb(x),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],k=O.length>0,A={padding:D,boundary:O.filter(ix),altBoundary:k},{refs:j,floatingStyles:M,placement:N,isPositioned:P,middlewareData:F}=Tb({strategy:`fixed`,placement:E,whileElementsMounted:Bb((...e)=>db(...e,{animationFrame:p===Hb.Always}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[Db({mainAxis:i+T,alignmentAxis:o}),c&&Ob({mainAxis:!0,crossAxis:!1,...d===Vb.Partial?{limiter:kb()}:{},...A}),c&&Ab({...A}),jb({...A,apply:Bb(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),x&&Nb({element:x,padding:s}),ax({arrowWidth:w,arrowHeight:T}),f&&Mb(k?{strategy:`referenceHidden`,...A}:{strategy:`referenceHidden`,padding:A.padding,altBoundary:A.altBoundary})]}),I=g.setPlacementState;M_(()=>(I(N),()=>{I(void 0)}),[N,I]);let[ee,te]=ox(N),ne=I_(m);M_(()=>{P&&ne?.()},[P,ne]);let L=F.arrow?.x,re=F.arrow?.y,ie=F.arrow?.centerOffset!==0,[ae,oe]=y.useState();return M_(()=>{_&&oe(window.getComputedStyle(_).zIndex)},[_]),(0,q.jsx)(`div`,{ref:j.setFloating,"data-radix-popper-content-wrapper":``,style:{...M,transform:P?M.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ae,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(` `),...F.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,q.jsx)(Qb,{scope:n,placedSide:ee,placedAlign:te,onArrowChange:S,arrowX:L,arrowY:re,shouldHideArrow:ie,children:(0,q.jsx)(A_.div,{"data-side":ee,"data-align":te,...h,ref:b,style:{...h.style,animation:P?h.style?.animation:`none`}})})})},`PopperContent`)),tx=`PopperArrow`,nx={top:`bottom`,right:`left`,bottom:`top`,left:`right`},rx=y.forwardRef(Bb(function(e,t){let{__scopePopper:n,...r}=e,i=$b(tx,n),a=nx[i.placedSide];return(0,q.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,q.jsx)(Fb,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function ix(e){return e!==null}Bb(ix,`isNotNull`);var ax=Bb(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=ox(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function ox(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Bb(ox,`getSideAndAlignFromPlacement`);var sx=Object.defineProperty,cx=y.forwardRef(((e,t)=>sx(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=y.useState(!1);M_(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?wa.createPortal((0,q.jsx)(A_.div,{...r,ref:t}),o):null},`Portal`)),lx=Object.defineProperty,ux=(e,t)=>lx(e,`name`,{value:t,configurable:!0});function dx(e,t){return y.useReducer((e,n)=>t[e][n]??e,e)}ux(dx,`useStateMachine`);var fx=ux(e=>{let{present:t,children:n}=e,r=px(t),i=typeof n==`function`?n({present:r.isPresent}):y.Children.only(n),a=hx(r.ref,_x(i));return typeof n==`function`||r.isPresent?y.cloneElement(i,{ref:a}):null},`Presence`);function px(e){let[t,n]=y.useState(),r=y.useRef(null),i=y.useRef(e),a=y.useRef(`none`),o=y.useRef(void 0),[s,c]=dx(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return y.useEffect(()=>{s===`mounted`?(a.current=o.current??gx(r.current),o.current=void 0):a.current=`none`},[s]),M_(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=gx(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),M_(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=ux(a=>{let o=gx(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=ux(e=>{e.target===t&&(a.current=gx(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:y.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=gx(t)}else r.current=null;n(e)},[])}}ux(px,`usePresence`);function mx(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}ux(mx,`setRef`);function hx(...e){let t=y.useRef(e);return t.current=e,y.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=mx(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():mx(n[e],null)}}},[])}ux(hx,`useStableComposedRefs`);function gx(e){return e?.animationName||`none`}ux(gx,`getAnimationName`);function _x(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}ux(_x,`getElementRef`);var vx=Object.defineProperty,yx=(e,t)=>vx(e,`name`,{value:t,configurable:!0}),bx=y.useEffectEvent,xx=y.useInsertionEffect;function Sx(e){if(typeof bx==`function`)return bx(e);let t=y.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof xx==`function`?xx(()=>{t.current=e}):M_(()=>{t.current=e}),y.useMemo(()=>((...e)=>t.current?.(...e)),[])}yx(Sx,`useEffectEvent`);var Cx=Object.defineProperty,wx=(e,t)=>Cx(e,`name`,{value:t,configurable:!0}),Tx=y.useInsertionEffect||M_;function Ex({prop:e,defaultProp:t,onChange:n=wx(()=>{},`onChange`),caller:r}){let[i,a,o]=Dx({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,y.useCallback(t=>{if(s){let n=Ox(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}wx(Ex,`useControllableState`);function Dx({defaultProp:e,onChange:t}){let[n,r]=y.useState(e),i=y.useRef(n),a=y.useRef(t);return Tx(()=>{a.current=t},[t]),y.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}wx(Dx,`useUncontrolledState`);function Ox(e){return typeof e==`function`}wx(Ox,`isFunction`);var kx=Symbol(`RADIX:SYNC_STATE`);function Ax(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Sx(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=y.useReducer((t,n)=>{if(n.type===kx)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=y.useRef(p);y.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=y.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return y.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:kx,state:i})},[i,d.state,c]),[h,f]}wx(Ax,`useControllableStateReducer`);var jx=Object.defineProperty,Mx=(e,t)=>jx(e,`name`,{value:t,configurable:!0}),Nx=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Px=y.forwardRef(Mx(function(e,t){return(0,q.jsx)(A_.span,{...e,ref:t,style:{...Nx,...e.style}})},`VisuallyHidden`)),Fx=Object.defineProperty,Ix=(e,t)=>Fx(e,`name`,{value:t,configurable:!0}),[Lx,Rx]=l_(`Tooltip`,[Gb]),zx=Gb(),Bx=`TooltipProvider`,Vx=700,Hx=`tooltip.open`,[Ux,Wx]=Lx(Bx),Gx=Ix(e=>{let{__scopeTooltip:t,delayDuration:n=Vx,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=y.useRef(!0),s=y.useRef(!1),c=y.useRef(0);return y.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,q.jsx)(Ux,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:y.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:y.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:y.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),Kx=`Tooltip`,[qx,Jx]=Lx(Kx),Yx=Ix(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=Wx(Kx,e.__scopeTooltip),l=zx(t),[u,d]=y.useState(null),[f,p]=y.useState(void 0),m=Sv(),h=y.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,v=y.useRef(!1),[b,x]=Ex({prop:r,defaultProp:i??!1,onChange:Ix(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Hx))):c.onClose(),a?.(e)},`onChange`),caller:Kx}),S=y.useMemo(()=>b?v.current?`delayed-open`:`instant-open`:`closed`,[b]),C=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,x(!0)},[x]),w=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),T=y.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,x(!0),h.current=0},_)},[_,x]);y.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let E=f??m;return(0,q.jsx)(Jb,{...l,children:(0,q.jsx)(qx,{scope:t,contentId:E,setContentId:p,open:b,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:y.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:y.useCallback(()=>{g?w():(window.clearTimeout(h.current),h.current=0)},[w,g]),onOpen:C,onClose:w,disableHoverableContent:g,children:n})})},`Tooltip`),Xx=`TooltipTrigger`,Zx=y.forwardRef(Ix(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=Jx(Xx,n),o=Wx(Xx,n),s=zx(n),c=vr(t,y.useRef(null),a.onTriggerChange),l=y.useRef(!1),u=y.useRef(!1),d=y.useCallback(()=>l.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,q.jsx)(Xb,{asChild:!0,...s,children:(0,q.jsx)(A_.button,{"aria-describedby":a.open?mS(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:c,onPointerMove:t_(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:t_(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:t_(e.onPointerDown,()=>{a.open&&a.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:t_(e.onFocus,()=>{l.current||a.onOpen()}),onBlur:t_(e.onBlur,a.onClose),onClick:t_(e.onClick,a.onClose)})})},`TooltipTrigger`)),Qx=`TooltipPortal`,[$x,eS]=Lx(Qx,{forceMount:void 0}),tS=Ix(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Jx(Qx,t);return(0,q.jsx)($x,{scope:t,forceMount:n,children:(0,q.jsx)(fx,{present:n||a.open,children:(0,q.jsx)(cx,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),nS=`TooltipContent`,rS=y.forwardRef(Ix(function(e,t){let n=eS(nS,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Jx(nS,e.__scopeTooltip);return(0,q.jsx)(fx,{present:r||o.open,children:o.disableHoverableContent?(0,q.jsx)(oS,{side:i,...a,ref:t}):(0,q.jsx)(iS,{side:i,...a,ref:t})})},`TooltipContent`)),iS=y.forwardRef(Ix(function(e,t){let n=Jx(nS,e.__scopeTooltip),r=Wx(nS,e.__scopeTooltip),i=y.useRef(null),a=vr(t,i),[o,s]=y.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=y.useCallback(()=>{s(null),d(!1)},[d]),p=y.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=lS(r,cS(r,n.getBoundingClientRect())),a=uS(t.getBoundingClientRect()),o=fS([...i,...a]);s(o),d(!0)},[d]);return y.useEffect(()=>()=>f(),[f]),y.useEffect(()=>{if(c&&u){let e=Ix(e=>p(e,u),`handleTriggerLeave`),t=Ix(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),y.useEffect(()=>{if(o){let e=Ix(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!dS(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,q.jsx)(oS,{...e,ref:a})},`TooltipContentHoverable`)),aS=h_(`TooltipContent`),oS=y.forwardRef(Ix(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=Jx(nS,n),u=zx(n),{onClose:d}=l,[f,p]=y.useState(null),m=vr(t,p);ov(f),y.useEffect(()=>(document.addEventListener(Hx,d),()=>document.removeEventListener(Hx,d)),[d]),y.useEffect(()=>{if(l.trigger){let e=Ix(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:h}=l;return M_(()=>(h(a),()=>{h(void 0)}),[a,h]),(0,q.jsx)(W_,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,q.jsxs)(ex,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:m,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,q.jsx)(aS,{children:r}),i?(0,q.jsx)(Px,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),sS=y.forwardRef(Ix(function(e,t){let{__scopeTooltip:n,...r}=e,i=zx(n);return(0,q.jsx)(rx,{...i,...r,ref:t})},`TooltipArrow`));function cS(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}Ix(cS,`getExitSideFromRect`);function lS(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}Ix(lS,`getPaddedExitPoints`);function uS(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}Ix(uS,`getPointsFromRect`);function dS(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Ix(dS,`isPointInPolygon`);function fS(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),pS(t)}Ix(fS,`getHull`);function pS(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}Ix(pS,`getHullPresorted`);function mS(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Ix(mS,`concatAriaDescribedby`);var hS=tS;function gS({delayDuration:e=0,...t}){return(0,q.jsx)(Gx,{delayDuration:e,...t})}function _S(e){return(0,q.jsx)(Yx,{...e})}function vS(e){return(0,q.jsx)(Zx,{"data-slot":`tooltip-trigger`,...e})}function yS({className:e,container:t,sideOffset:n=8,collisionPadding:r=8,children:i,...a}){return(0,q.jsx)(tS,{container:t,children:(0,q.jsxs)(rS,{"data-slot":`tooltip-content`,sideOffset:n,collisionPadding:r,className:pa(`tooltip-content`,e),...a,children:[i,(0,q.jsx)(sS,{className:`tooltip-arrow`})]})})}function bS({id:e,content:t,children:n,suppressed:r=!1,toggleOnClick:i=!1,className:a,tooltipClassName:o,asChild:s=!1,side:c=`top`,align:l=`end`}){let u=(0,y.useId)(),d=e??u,[f,p]=(0,y.useState)(!1),[m,h]=(0,y.useState)(null),g=(0,y.useCallback)(e=>h(e?.closest(`dialog, [popover]`)??null),[]),_=(0,y.useRef)(!1);if((0,y.useEffect)(()=>{if(r&&(p(!1),_.current=!0),!_.current)return;let e=e=>{e.key===`Tab`&&!r&&(_.current=!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),!t)return n;let v=(0,q.jsx)(`span`,{id:d,className:`sr-only control-hint-description`,"aria-hidden":`true`,children:t}),b=(0,y.isValidElement)(n)?(0,y.cloneElement)(n,{"aria-describedby":n.props[`aria-describedby`]??d}):n;return(0,q.jsx)(gS,{children:(0,q.jsxs)(_S,{open:f&&!r,onOpenChange:e=>p(e&&!r),children:[(0,q.jsx)(vS,{asChild:!0,onClick:i?e=>{e.preventDefault(),p(e=>!e)}:void 0,"aria-describedby":s?d:void 0,className:s?a:void 0,onFocus:e=>{(_.current||!e.target.matches(`:focus-visible`))&&e.preventDefault()},children:s?b:(0,q.jsxs)(`span`,{ref:g,className:pa(`control-hint`,a),children:[b,v]})}),s&&(0,q.jsx)(hS,{forceMount:!0,children:v}),(0,q.jsx)(yS,{className:o,container:m,side:c,align:l,sideOffset:m?.hasAttribute(`popover`)?4:8,children:(0,q.jsx)(`div`,{className:`control-hint-content`,children:t})})]})})}var xS={get idle(){return H(`conversation:ready`)},get running(){return H(`common:running`)},get waitingApproval(){return H(`conversation:awaiting_approval`)},get waitingInput(){return H(`conversation:awaiting_answer`)},get completed(){return H(`common:completed`)},get failed(){return H(`common:failed`)},get interrupted(){return H(`common:interrupted`)},get unknown(){return H(`conversation:status_needs_checking`)}};function SS(e){return e===`running`||e===`waitingApproval`||e===`waitingInput`}function CS({status:e,offline:t=!1}){return(0,q.jsxs)(`span`,{className:pa(`status`,`status-${e}`),children:[(0,q.jsx)(`span`,{className:`status-dot`}),t&&SS(e)?H(`common:last_known`):``,xS[e]]})}function wS(e){let{originator:t,source:n}=e;if(t?.trim())switch(t){case`codex_web_ui`:return{label:`Web`,description:H(`sidebar:created_by_covro_this_web_page`)};case`codex-tui`:return{label:`CLI`,description:H(`sidebar:created_by_the_codex_terminal_cli`)};case`codex_vscode`:return{label:`VS Code`,description:H(`sidebar:created_by_the_codex_extension_in_vs_code`)};case`Codex Desktop`:return{label:`Codex Desktop`,description:H(`sidebar:created_by_the_codex_desktop_app`)};default:return{label:t,description:H(`sidebar:recorded_creator`,{v0:t})}}switch(n){case`cli`:return{label:`CLI`,description:H(`sidebar:recorded_as_a_codex_terminal_cli_source`)};case`vscode`:return{label:H(`sidebar:interactive_client`),description:H(`sidebar:codex_only_recorded_an_interactive_source_category_it`)};case`appServer`:case`mcp`:return{label:`MCP`,description:H(`sidebar:recorded_as_a_codex_mcp_service_source`)};case`exec`:return{label:H(`sidebar:command_line_task`),description:H(`sidebar:recorded_as_a_non_interactive_codex_command_line`)};default:return{label:H(`sidebar:source_unconfirmed`),description:n&&n!==`unknown`?H(`sidebar:no_recognizable_creator_codex_source_is_recorded_as`,{v0:n}):H(`sidebar:no_recognizable_creator_information`)}}}function TS({id:e,placeholder:t}){return e?(0,q.jsx)(ES,{id:e},e):(0,q.jsx)(`span`,{children:t??H(`common:session_not_created_yet`)})}function ES({id:e}){let[t,n]=(0,y.useState)(`idle`),r=(0,y.useRef)(!1),i=(0,y.useRef)(!0),a=(0,y.useRef)(void 0);(0,y.useEffect)(()=>(i.current=!0,()=>{i.current=!1,clearTimeout(a.current)}),[]);async function o(){if(!r.current){r.current=!0,clearTimeout(a.current),n(`idle`);try{if(await navigator.clipboard.writeText(e),!i.current)return;n(`copied`),a.current=setTimeout(()=>n(`idle`),2e3)}catch{i.current&&n(`failed`)}finally{r.current=!1}}}return(0,q.jsxs)(`div`,{className:`thread-id`,children:[(0,q.jsxs)(`div`,{className:`thread-id-value`,children:[(0,q.jsx)(`code`,{children:e}),(0,q.jsx)(bS,{asChild:!0,content:H(`sidebar:copy_full_thread_id`),children:(0,q.jsx)(J,{variant:`ghost`,size:`icon`,className:`thread-id-copy`,"aria-label":H(`sidebar:copy_thread_id`),onClick:()=>void o(),children:(0,q.jsx)(Y,{name:t===`copied`?`check`:`copy`,size:14})})})]}),(0,q.jsxs)(`span`,{className:`thread-id-feedback thread-id-${t}`,role:`status`,children:[t===`copied`&&H(`common:copied`),t===`failed`&&H(`sidebar:copy_failed_select_and_copy_the_id_manually`)]})]})}var DS={running:`loader`,waitingApproval:`shieldPending`,waitingInput:`chat`,failed:`alert`,interrupted:`stop`,unknown:`question`};function OS({status:e,label:t,offline:n,pending:r}){return(0,q.jsx)(bS,{asChild:!0,content:t,children:(0,q.jsxs)(`span`,{className:pa(`thread-status-indicator`,`thread-status-${e}`),"data-status":e,role:`img`,"aria-label":t,children:[(0,q.jsx)(`span`,{className:pa(`thread-status-glyph`,e===`running`&&!n&&`thread-status-spinning`),children:e===`idle`||e===`completed`?(0,q.jsx)(`span`,{className:`thread-status-dot`}):(0,q.jsx)(Y,{name:DS[e],size:15})}),(r||e===`waitingApproval`)&&(0,q.jsx)(`span`,{className:`thread-status-notification`})]})})}function kS({thread:e,selected:t,unreadCompletion:n,offline:r,onSelect:i,onArchive:a,archiveDisabledReason:o,onFork:s,forkDisabledReason:c,forking:l}){let u=(0,y.useId)(),d=(0,y.useId)(),f=(0,y.useId)(),p=(0,y.useRef)(null),[m,h]=(0,y.useState)(!1),g=e.title||H(`sidebar:untitled_session`),_=wS(e),v=e.archived?H(`common:unarchive`):H(`sidebar:archive_session`),b=e.lastTurnStatus,x=e.status===`idle`&&b&&[`completed`,`failed`,`interrupted`].includes(b)?b:e.status,S=e.pendingQuestionCount??0,C=e.pendingActionCount+(x===`waitingInput`?S:0),w=`${r&&SS(x)?H(`common:last_known`):``}${xS[x]}${x===`completed`&&n?H(`sidebar:unread`):``}${C>0?H(`sidebar:pending_requests_2`,{count:C,v0:C}):``}`,T=S>0&&x!==`waitingInput`,E=`${H(`conversation:awaiting_answer`)}${H(`sidebar:pending_requests_2`,{count:S,v0:S})}`,D=x!==`idle`&&x!==`completed`||n||e.pendingActionCount>0;return(0,q.jsxs)(`div`,{className:`thread-row`,onKeyDown:e=>{e.key===`Escape`&&m&&(e.stopPropagation(),h(!1),p.current?.focus())},children:[(0,q.jsx)(bS,{asChild:!0,content:g,tooltipClassName:`thread-title-tooltip`,children:(0,q.jsxs)(`button`,{className:pa(`thread-link`,t&&`thread-selected`),"data-thread-id":e.id,onClick:()=>{h(!1),i()},"aria-current":t?`page`:void 0,children:[e.forkedFromId&&(0,q.jsx)(Y,{name:`fork`,size:14}),(0,q.jsxs)(`span`,{className:`thread-link-content`,children:[(0,q.jsx)(`span`,{className:`thread-title`,children:g}),(0,q.jsxs)(`span`,{className:`sr-only`,children:[` · `,w,T?` · ${E}`:``]})]})]})}),(0,q.jsxs)(`div`,{className:`thread-row-actions`,children:[T&&(0,q.jsx)(OS,{status:`waitingInput`,label:E,offline:r,pending:!0}),D?(0,q.jsx)(OS,{status:x===`completed`&&!n?`idle`:x,label:w,offline:r,pending:C>0}):(0,q.jsx)(`span`,{className:`thread-status-placeholder`,"aria-hidden":`true`}),(0,q.jsx)(bS,{asChild:!0,content:H(`sidebar:session_details_and_source`),children:(0,q.jsx)(J,{ref:p,variant:`ghost`,size:`icon`,className:`thread-details-trigger`,"aria-label":H(`sidebar:session_details`,{v0:g}),"aria-expanded":m,"aria-controls":d,onClick:()=>h(e=>!e),children:(0,q.jsx)(Y,{name:`info`,size:15})})}),(0,q.jsx)(bS,{id:f,className:`thread-fork`,content:c??H(`sidebar:fork_session_copy_saved_history_both_sessions_can`),children:(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(l?`common:confirming_fork`:`sidebar:fork_session`),"aria-describedby":f,"aria-busy":l,disabled:!!c,onClick:s,children:l?(0,q.jsx)(An,{size:15,className:`thread-status-spinning`}):(0,q.jsx)(Y,{name:`fork`,size:15})})}),(0,q.jsx)(bS,{id:u,className:`thread-archive`,content:o??v,side:`bottom`,children:(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":v,"aria-describedby":u,"aria-disabled":!!o,onClick:()=>{o||a()},children:(0,q.jsx)(Y,{name:e.archived?`unarchive`:`archive`,size:15})})})]}),(0,q.jsxs)(`section`,{id:d,className:`thread-details`,"data-testid":`thread-details`,hidden:!m,"aria-labelledby":`${d}-title`,children:[(0,q.jsx)(`h3`,{id:`${d}-title`,children:g}),(0,q.jsxs)(`dl`,{children:[(0,q.jsxs)(`div`,{className:`thread-id-row`,children:[(0,q.jsx)(`dt`,{children:`Thread ID`}),(0,q.jsx)(`dd`,{children:(0,q.jsx)(TS,{id:e.id})})]}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`dt`,{children:H(`sidebar:created_from`)}),(0,q.jsx)(`dd`,{children:_.label})]}),e.updatedAt!==void 0&&(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`dt`,{children:H(`sidebar:updated_at`)}),(0,q.jsx)(`dd`,{children:ma(e.updatedAt)})]}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`dt`,{children:H(`sidebar:task_status`)}),(0,q.jsx)(`dd`,{children:(0,q.jsx)(CS,{status:x,offline:r})})]}),x===`completed`&&e.lastTurnId&&(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`dt`,{children:H(`sidebar:read_status`)}),(0,q.jsx)(`dd`,{children:H(n?`sidebar:unread_2`:`sidebar:read`)})]}),e.pendingActionCount>0&&(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`dt`,{children:H(`sidebar:pending`)}),(0,q.jsx)(`dd`,{children:H(`sidebar:pending_requests`,{count:e.pendingActionCount,v0:e.pendingActionCount})})]}),S>0&&(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`dt`,{children:H(`conversation:awaiting_answer`)}),(0,q.jsx)(`dd`,{children:H(`sidebar:pending_requests`,{count:S,v0:S})})]}),e.forkedFromId&&(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`dt`,{children:H(`sidebar:session_type`)}),(0,q.jsx)(`dd`,{children:H(`sidebar:forked_session`)})]})]}),(0,q.jsx)(`p`,{children:_.description}),(0,q.jsx)(`p`,{className:`thread-origin-note`,children:H(`sidebar:source_records_the_client_used_at_creation_not`)}),o&&(0,q.jsx)(`p`,{children:o})]})]})}var AS=class extends y.Component{list=(0,y.createRef)();getSnapshotBeforeUpdate(e){let t=this.list.current;if(!t||e.rows===this.props.rows&&e.locale===this.props.locale||t.scrollTop===0||e.context!==this.props.context)return null;let n=t.getBoundingClientRect().top,r=[...t.querySelectorAll(`[data-thread-id]`)].find(e=>e.getBoundingClientRect().top>=n+32);return r?{id:r.dataset.threadId,top:r.getBoundingClientRect().top}:null}componentDidUpdate(e,t,n){let r=this.list.current;if(!r||!n)return;let i=[...r.querySelectorAll(`[data-thread-id]`)].find(e=>e.dataset.threadId===n.id);i&&(r.scrollTop+=i.getBoundingClientRect().top-n.top)}render(){return(0,q.jsx)(`nav`,{ref:this.list,className:`project-list`,"aria-label":H(`sidebar:session_history`),style:{overflowAnchor:`none`},children:this.props.children})}};function jS({projects:e,disabled:t,onReorder:n,onClose:r}){let[i,a]=(0,y.useState)(!1),o=(0,y.useRef)(!1),[s,c]=(0,y.useState)(),[l,u]=(0,y.useState)(!1),[d,f]=(0,y.useState)(),[p,m]=(0,y.useState)(),h=t||i;async function g(r){if(!(t||o.current||r.every((t,n)=>t===e[n]?.id))){o.current=!0,a(!0),u(!1),c(void 0);try{await n(r),u(!0)}catch(e){c(ha(e))}finally{o.current=!1,a(!1)}}}function _(t,n){let r=e.map(e=>e.id),[i]=r.splice(t,1);r.splice(t+n,0,i),g(r)}function v(){f(void 0),m(void 0)}return(0,q.jsxs)(`section`,{className:`project-order`,"aria-label":H(`sidebar:project_order`),"aria-busy":i,children:[(0,q.jsxs)(`div`,{className:`project-order-header`,children:[(0,q.jsx)(`h2`,{children:H(`sidebar:project_order`)}),(0,q.jsx)(J,{variant:`secondary`,size:`sm`,onClick:r,disabled:i,children:H(`sidebar:order_done`)})]}),(0,q.jsx)(`p`,{className:`project-order-help`,children:H(`sidebar:order_help`)}),(0,q.jsx)(`ol`,{className:`project-order-list`,"aria-label":H(`sidebar:project_display_order`),children:e.map((t,n)=>(0,q.jsxs)(`li`,{className:`project-order-row`,"data-project-id":t.id,"data-dragging":d===t.id||void 0,"data-drop":p?.id===t.id?p.before?`before`:`after`:void 0,draggable:!h,onDragStart:e=>{e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`text/plain`,t.id),f(t.id)},onDragEnd:v,onDragOver:e=>{if(!d||d===t.id||h)return;e.preventDefault(),e.dataTransfer.dropEffect=`move`;let n=e.currentTarget.getBoundingClientRect();m({id:t.id,before:e.clientY<n.y+n.height/2})},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||m(void 0)},onDrop:n=>{if(n.preventDefault(),!h&&d&&d!==t.id){let r=e.map(e=>e.id).filter(e=>e!==d),i=n.currentTarget.getBoundingClientRect(),a=n.clientY<i.y+i.height/2,o=r.indexOf(t.id);o>=0&&e.some(e=>e.id===d)&&(r.splice(o+ +!a,0,d),g(r))}v()},children:[(0,q.jsx)(En,{className:`project-order-grip`,size:16,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`project-order-name`,title:t.name,children:t.name}),(0,q.jsx)(`span`,{className:`sr-only`,children:H(`sidebar:order_position`,{v0:n+1,v1:e.length})}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`sidebar:order_move_up`,{v0:t.name}),disabled:h||n===0,onClick:()=>_(n,-1),children:(0,q.jsx)(qt,{size:16,"aria-hidden":`true`})}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`sidebar:order_move_down`,{v0:t.name}),disabled:h||n===e.length-1,onClick:()=>_(n,1),children:(0,q.jsx)(Ut,{size:16,"aria-hidden":`true`})})]},t.id))}),(0,q.jsx)(`p`,{className:`project-order-status`,role:`status`,children:H(i?`sidebar:order_saving`:l?`sidebar:order_saved`:`sidebar:order_auto_save`)}),s&&(0,q.jsx)(`p`,{className:`inline-error`,role:`alert`,children:H(`sidebar:order_save_failed`,{v0:U(s)})})]})}var MS=Object.defineProperty,NS=(e,t)=>MS(e,`name`,{value:t,configurable:!0});function PS(e,[t,n]){return Math.min(n,Math.max(t,e))}NS(PS,`clamp`);var FS=Object.defineProperty,IS=(e,t)=>FS(e,`name`,{value:t,configurable:!0});function LS(e){let t=e+`CollectionProvider`,[n,r]=l_(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=IS(e=>{let{scope:t,children:n}=e,r=y.useRef(null),a=y.useRef(new Map).current;return(0,q.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=p_(s),l=y.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=vr(t,a(s,n).collectionRef);return(0,q.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=p_(u),p=y.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=y.useRef(null),s=vr(t,o),c=a(u,n);return y.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,q.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return y.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return IS(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}IS(LS,`createCollection`);var RS=new WeakMap,zS=class e extends Map{static{IS(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],RS.set(this,!0)}set(e,t){return RS.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=HS(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=BS(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=BS(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return BS(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function BS(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=VS(e,t);return n===-1?void 0:e[n]}IS(BS,`at`);function VS(e,t){let n=e.length,r=HS(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}IS(VS,`toSafeIndex`);function HS(e){return e!==e||e===0?0:Math.trunc(e)}IS(HS,`toSafeInteger`);function US(e){let t=e+`CollectionProvider`,[n,r]=l_(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[o,s]=n(t);o.displayName=e+`CollectionStatefulContextProvider`;let c=IS(({state:e,...t})=>e?(0,q.jsx)(u,{...t,state:e}):(0,q.jsx)(l,{...t}),`CollectionProvider`);c.displayName=t;let l=IS(e=>{let t=_();return(0,q.jsx)(u,{...e,state:t})},`CollectionInit`);l.displayName=e+`CollectionInit`;let u=IS(e=>{let{scope:t,children:n,state:r}=e,a=y.useRef(null),[s,c]=y.useState(null),l=vr(a,c),[u,d]=r,f=y.useRef(new zS),p=y.useCallback(()=>{let e=f.current;return KS(e)||e.sort(qS),e},[]);return y.useEffect(()=>{if(!s)return;let e=JS(()=>{d(e=>{let t=e.toSorted(qS);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,d]),(0,q.jsx)(i,{scope:t,collectionElementRef:l,collectionElementRefObject:a,getCollection:p,setCollection:d,registryRef:f,children:(0,q.jsx)(o,{scope:t,collectionElement:s,collection:u,children:n})})},`CollectionProviderImpl`);u.displayName=e+`CollectionProviderImpl`;let d=e+`CollectionSlot`,f=p_(d),p=y.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=vr(t,a(d,n).collectionElementRef);return(0,q.jsx)(f,{ref:i,children:r})});p.displayName=d;let m=e+`CollectionItemSlot`,h=p_(m),g=y.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=y.useRef(null),{setCollection:s,registryRef:c}=a(m,n),l=y.useRef(i);WS(l.current,i)||(l.current=i);let u=l.current,d=vr(t,y.useCallback(e=>{let t=c.current;e?t.set(e,{...l.current,element:e}):o.current&&t.delete(o.current)},[c]),o);M_(()=>{let e=o.current,t=c.current;e&&t.has(e)&&t.set(e,{...u,element:e})},[u,c]);let f=y.useRef(null);return y.useEffect(()=>{let e=o.current,t=f.current;((t?.element??null)!==e||e&&t?.itemData!==u)&&(f.current=e?{element:e,itemData:u}:null,s(n=>{let r=new zS(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...u,element:e}),r.sort(qS)}))}),y.useEffect(()=>()=>{let e=f.current;f.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new zS(t);return n.delete(e.element),n})},[s]),(0,q.jsx)(h,{"data-radix-collection-item":``,ref:d,children:r})});g.displayName=m;function _(){return y.useState(new zS)}IS(_,`useInitCollection`);function v(t){let{collection:n}=s(e+`CollectionConsumer`,t);return n}IS(v,`useCollection`);function b(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return IS(b,`useGetCollection`),[{Provider:c,Slot:p,ItemSlot:g},{createCollectionScope:r,useCollection:v,useGetCollection:b,useInitCollection:_}]}IS(US,`createCollection`);function WS(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}IS(WS,`shallowEqual`);function GS(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}IS(GS,`isElementPreceding`);function KS(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}IS(KS,`isInDocumentOrder`);function qS(e,t){return!e[1].element||!t[1].element?0:GS(e[1].element,t[1].element)?-1:1}IS(qS,`sortByDocumentPosition`);function JS(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}IS(JS,`getChildListObserver`);var YS=Object.defineProperty,XS=(e,t)=>YS(e,`name`,{value:t,configurable:!0}),ZS={LTR:`ltr`,RTL:`rtl`},QS=y.createContext(void 0);function $S(e){let t=y.useContext(QS);return e||t||ZS.LTR}XS($S,`useDirection`);var eC=Object.defineProperty,tC=(e,t)=>eC(e,`name`,{value:t,configurable:!0}),nC=0,rC=null;function iC(e){return aC(),e.children}tC(iC,`FocusGuards`);function aC(){y.useEffect(()=>{rC||={start:oC(),end:oC()};let{start:e,end:t}=rC;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),nC++,()=>{nC===1&&(rC?.start.remove(),rC?.end.remove(),rC=null),nC=Math.max(0,nC-1)}},[])}tC(aC,`useFocusGuards`);function oC(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}tC(oC,`createFocusGuard`);var sC=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},cC=new WeakMap,lC=new WeakMap,uC={},dC=0,fC=function(e){return e&&(e.host||fC(e.parentNode))},pC=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=fC(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},mC=function(e,t,n,r){var i=pC(t,Array.isArray(e)?e:[e]);uC[n]||(uC[n]=new WeakMap);var a=uC[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(cC.get(e)||0)+1,l=(a.get(e)||0)+1;cC.set(e,c),a.set(e,l),o.push(e),c===1&&i&&lC.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),dC++,function(){o.forEach(function(e){var t=cC.get(e)-1,i=a.get(e)-1;cC.set(e,t),a.set(e,i),t||(lC.has(e)||e.removeAttribute(r),lC.delete(e)),i||e.removeAttribute(n)}),dC--,dC||(cC=new WeakMap,cC=new WeakMap,lC=new WeakMap,uC={})}},hC=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||sC(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),mC(r,i,n,`aria-hidden`)):function(){return null}},gC=function(){return gC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},gC.apply(this,arguments)};function _C(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function vC(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var yC=`right-scroll-bar-position`,bC=`width-before-scroll-bar`,xC=`with-scroll-bars-hidden`,SC=`--removed-body-scroll-bar-size`;function CC(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function wC(e,t){var n=(0,y.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var TC=typeof window<`u`?y.useLayoutEffect:y.useEffect,EC=new WeakMap;function DC(e,t){var n=wC(t||null,function(t){return e.forEach(function(e){return CC(e,t)})});return TC(function(){var t=EC.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||CC(e,null)}),i.forEach(function(e){r.has(e)||CC(e,a)})}EC.set(n,e)},[e]),n}function OC(e){return e}function kC(e,t){t===void 0&&(t=OC);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function AC(e){e===void 0&&(e={});var t=kC(null);return t.options=gC({async:!0,ssr:!1},e),t}var jC=function(e){var t=e.sideCar,n=_C(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return y.createElement(r,gC({},n))};jC.isSideCarExport=!0;function MC(e,t){return e.useMedium(t),jC}var NC=AC(),PC=function(){},FC=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:PC,onWheelCapture:PC,onTouchMoveCapture:PC}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,b=e.gapMode,x=_C(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=DC([n,t]),w=gC(gC({},x),i);return y.createElement(y.Fragment,null,u&&y.createElement(S,{sideCar:NC,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?y.cloneElement(y.Children.only(s),gC(gC({},w),{ref:C})):y.createElement(v,gC({},w,{className:c,ref:C}),s))});FC.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},FC.classNames={fullWidth:bC,zeroRight:yC};var IC=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function LC(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=IC();return t&&e.setAttribute(`nonce`,t),e}function RC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zC(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var BC=function(){var e=0,t=null;return{add:function(n){e==0&&(t=LC())&&(RC(t,n),zC(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},VC=function(){var e=BC();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},HC=function(){var e=VC();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},UC={left:0,top:0,right:0,gap:0},WC=function(e){return parseInt(e||``,10)||0},GC=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[WC(n),WC(r),WC(i)]},KC=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return UC;var t=GC(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},qC=HC(),JC=`data-scroll-locked`,YC=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
85
|
-
.${xC} {
|
|
86
|
-
overflow: hidden ${r};
|
|
87
|
-
padding-right: ${s}px ${r};
|
|
88
|
-
}
|
|
89
|
-
body[${JC}] {
|
|
90
|
-
overflow: hidden ${r};
|
|
91
|
-
overscroll-behavior: contain;
|
|
92
|
-
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
93
|
-
padding-left: ${i}px;
|
|
94
|
-
padding-top: ${a}px;
|
|
95
|
-
padding-right: ${o}px;
|
|
96
|
-
margin-left:0;
|
|
97
|
-
margin-top:0;
|
|
98
|
-
margin-right: ${s}px ${r};
|
|
99
|
-
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.${yC} {
|
|
103
|
-
right: ${s}px ${r};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.${bC} {
|
|
107
|
-
margin-right: ${s}px ${r};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.${yC} .${yC} {
|
|
111
|
-
right: 0 ${r};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.${bC} .${bC} {
|
|
115
|
-
margin-right: 0 ${r};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
body[${JC}] {
|
|
119
|
-
${SC}: ${s}px;
|
|
120
|
-
}
|
|
121
|
-
`},XC=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},ZC=function(){y.useEffect(function(){return document.body.setAttribute(JC,(XC()+1).toString()),function(){var e=XC()-1;e<=0?document.body.removeAttribute(JC):document.body.setAttribute(JC,e.toString())}},[])},QC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;ZC();var a=y.useMemo(function(){return KC(i)},[i]);return y.createElement(qC,{styles:YC(a,!t,i,n?``:`!important`)})},$C=!1;if(typeof window<`u`)try{var ew=Object.defineProperty({},"passive",{get:function(){return $C=!0,!0}});window.addEventListener(`test`,ew,ew),window.removeEventListener(`test`,ew,ew)}catch{$C=!1}var tw=$C?{passive:!1}:!1,nw=function(e){return e.tagName===`TEXTAREA`},rw=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!nw(e)&&n[t]===`visible`)},iw=function(e){return rw(e,`overflowY`)},aw=function(e){return rw(e,`overflowX`)},ow=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),lw(e,r)){var i=uw(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},sw=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},cw=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},lw=function(e,t){return e===`v`?iw(t):aw(t)},uw=function(e,t){return e===`v`?sw(t):cw(t)},dw=function(e,t){return e===`h`&&t===`rtl`?-1:1},fw=function(e,t,n,r,i){var a=dw(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=uw(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&lw(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},pw=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mw=function(e){return[e.deltaX,e.deltaY]},hw=function(e){return e&&`current`in e?e.current:e},gw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_w=function(e){return`
|
|
122
|
-
.block-interactivity-${e} {pointer-events: none;}
|
|
123
|
-
.allow-interactivity-${e} {pointer-events: all;}
|
|
124
|
-
`},vw=0,yw=[];function bw(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),i=y.useState(vw++)[0],a=y.useState(HC)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=vC([e.lockRef.current],(e.shards||[]).map(hw),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=y.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=pw(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=ow(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=ow(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return fw(h,t,e,h===`h`?s:c,!0)},[]),c=y.useCallback(function(e){var n=e;if(yw.length&&yw[yw.length-1]===a){var r=`deltaY`in n?mw(n):pw(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&gw(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(hw).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=y.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:xw(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=y.useCallback(function(e){n.current=pw(e),r.current=void 0},[]),d=y.useCallback(function(t){l(t.type,mw(t),t.target,s(t,e.lockRef.current))},[]),f=y.useCallback(function(t){l(t.type,pw(t),t.target,s(t,e.lockRef.current))},[]);y.useEffect(function(){return yw.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,tw),document.addEventListener(`touchmove`,c,tw),document.addEventListener(`touchstart`,u,tw),function(){yw=yw.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,tw),document.removeEventListener(`touchmove`,c,tw),document.removeEventListener(`touchstart`,u,tw)}},[]);var p=e.removeScrollBar,m=e.inert;return y.createElement(y.Fragment,null,m?y.createElement(a,{styles:_w(i)}):null,p?y.createElement(QC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function xw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Sw=MC(NC,bw),Cw=y.forwardRef(function(e,t){return y.createElement(FC,gC({},e,{ref:t,sideCar:Sw}))});Cw.classNames=FC.classNames;var ww=Object.defineProperty,Tw=(e,t)=>ww(e,`name`,{value:t,configurable:!0}),Ew={ItemAligned:`item-aligned`,Popper:`popper`},Dw={LTR:`ltr`,RTL:`rtl`},Ow=[` `,`Enter`,`ArrowUp`,`ArrowDown`],kw=[` `,`Enter`],Aw=`Select`,[jw,Mw,Nw]=LS(Aw),[Pw,Fw]=l_(Aw,[Nw,Gb]),Iw=Gb(),[Lw,Rw]=Pw(Aw),[zw,Bw]=Pw(Aw);function Vw(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=Iw(t),[_,v]=y.useState(null),[b,x]=y.useState(null),[S,C]=y.useState(!1),w=$S(l),[T,E]=Ex({prop:r,defaultProp:i??!1,onChange:a,caller:Aw}),[D,O]=Ex({prop:o,defaultProp:s,onChange:c,caller:Aw}),k=y.useRef(null),A=y.useRef(!1),[j,M]=y.useState(null),N=Tw(e=>{M({value:e,hasConsumerStoppedPropagation:A.current}),O(e)},`handleUserSelect`),P=y.useRef(D);y.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=Tw(()=>O(P.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,O]);let F=!_||!!m||!!_.closest(`form`),[I,ee]=y.useState(new Set),te=Sv(),ne=Array.from(I).map(e=>e.props.value).join(`;`),L=y.useCallback(e=>{ee(t=>new Set(t).add(e))},[]),re=y.useCallback(e=>{ee(t=>{let n=new Set(t);return n.delete(e),n})},[]),ie={required:p,trigger:_,onTriggerChange:v,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:te,value:D,onValueChange:O,hasConsumerStoppedPropagationRef:A,userSelection:j,onUserSelect:N,open:T,onOpenChange:E,dir:w,triggerPointerDownPosRef:k,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:I,nativeSelectKey:ne,isFormControl:F};return(0,q.jsx)(Jb,{...g,children:(0,q.jsx)(Lw,{scope:t,...ie,children:(0,q.jsx)(jw.Provider,{scope:t,children:(0,q.jsx)(zw,{scope:t,onNativeOptionAdd:L,onNativeOptionRemove:re,children:OT(h)?h(ie):n})})})})}Tw(Vw,`SelectProvider`);var Hw=Tw(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,q.jsx)(Vw,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,q.jsxs)(q.Fragment,{children:[n,e?(0,q.jsx)(DT,{__scopeSelect:t}):null]})})},`Select`),Uw=`SelectTrigger`,Ww=y.forwardRef(Tw(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=Iw(n),o=Rw(Uw,n),s=o.disabled||r,c=vr(t,o.onTriggerChange),l=Mw(n),u=y.useRef(`touch`),[d,f,p]=AT(e=>{let t=l().filter(e=>!e.disabled),n=jT(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onUserSelect(n.value)}),m=Tw(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,q.jsx)(Xb,{asChild:!0,...a,children:(0,q.jsx)(A_.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":kT(o.value)?``:void 0,...i,ref:c,onClick:t_(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:t_(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:t_(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&(o.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),f(e.key)),!(t&&e.key===` `)&&Ow.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),Gw=`SelectValue`,Kw=y.forwardRef(Tw(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Rw(Gw,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=vr(t,c.onValueNodeChange);M_(()=>{l(u)},[l,u]);let f=kT(c.value);return(0,q.jsx)(A_.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,q.jsx)(y.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),qw=y.forwardRef(Tw(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,q.jsx)(A_.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[Jw,Yw]=Pw(`SelectPortal`,{forceMount:void 0}),Xw=Tw(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,q.jsx)(Jw,{scope:e.__scopeSelect,forceMount:n,children:(0,q.jsx)(cx,{asChild:!0,...r})})},`SelectPortal`),Zw=`SelectContent`,Qw=y.forwardRef(Tw(function(e,t){let n=Yw(Zw,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=Rw(Zw,e.__scopeSelect),[o,s]=y.useState();return M_(()=>{s(new DocumentFragment)},[]),(0,q.jsx)(fx,{present:r||a.open,children:({present:e})=>e?(0,q.jsx)(iT,{...i,ref:t}):(0,q.jsx)($w,{...i,fragment:o})})},`SelectContent`)),$w=y.forwardRef(Tw(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?wa.createPortal((0,q.jsx)(tT,{scope:n,children:(0,q.jsx)(jw.Slot,{scope:n,children:(0,q.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),eT=10,[tT,nT]=Pw(Zw),rT=p_(`SelectContent.RemoveScroll`),iT=y.forwardRef(Tw(function(e,t){let{__scopeSelect:n}=e,{position:r=Ew.ItemAligned,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,v=Rw(Zw,n),[b,x]=y.useState(null),[S,C]=y.useState(null),w=vr(t,x),[T,E]=y.useState(null),[D,O]=y.useState(null),k=Mw(n),[A,j]=y.useState(!1),M=y.useRef(!1),N=y.useRef(!1),P=y.useRef(!1);y.useEffect(()=>{if(b)return hC(b)},[b]),aC();let F=y.useCallback(e=>{let[t,...n]=k().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[k,S]),I=y.useCallback(()=>F([T,b]),[F,T,b]);y.useEffect(()=>{A&&I()},[A,I]);let{onOpenChange:ee,triggerPointerDownPosRef:te}=v;y.useEffect(()=>{if(b){let e={x:0,y:0},t=Tw(t=>{e={x:Math.abs(Math.round(t.pageX)-(te.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(te.current?.y??0))}},`handlePointerMove`),n=Tw(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(b)||ee(!1),document.removeEventListener(`pointermove`,t),te.current=null},`handlePointerUp`);return te.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,ee,te]),y.useEffect(()=>{let e=Tw(()=>ee(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[ee]);let[ne,L]=AT(e=>{let t=k().filter(e=>!e.disabled),n=jT(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),re=y.useCallback((e,t,n)=>{let r=!N.current;r&&(N.current=!0);let i=!M.current&&!n;v.value!==void 0&&v.value===t||i?(E(e),i&&(M.current=!0)):r&&E(e)},[v.value]),ie=y.useCallback(()=>b?.focus(),[b]),ae=y.useCallback((e,t,n)=>{if(!e)return;let r=!P.current;r&&(P.current=!0);let i=!M.current&&!n;(v.value!==void 0&&v.value===t||i||r)&&O(e)},[v.value]),oe=r===Ew.Popper?oT:aT,se=oe===oT?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,q.jsx)(tT,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:re,selectedItem:T,onItemLeave:ie,itemTextRefCallback:ae,focusSelectedItem:I,selectedItemText:D,position:r,isPositioned:A,searchRef:ne,children:(0,q.jsx)(Cw,{as:rT,allowPinchZoom:!0,children:(0,q.jsx)(nv,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:t_(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,q.jsx)(W_,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,q.jsx)(oe,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...se,onPlaced:()=>j(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:t_(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&L(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=k().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>F(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),aT=y.forwardRef(Tw(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=Rw(Zw,n),o=nT(Zw,n),[s,c]=y.useState(null),[l,u]=y.useState(null),d=vr(t,u),f=Mw(n),p=y.useRef(!1),m=y.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,b=y.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==Dw.RTL){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-eT,d=PS(a,[eT,Math.max(eT,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-eT,d=PS(a,[eT,Math.max(eT,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-eT*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-eT,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+v+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${eT}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);M_(()=>b(),[b]);let[x,S]=y.useState();M_(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);let C=y.useCallback(e=>{e&&m.current===!0&&(b(),v?.(),m.current=!1)},[b,v]);return(0,q.jsx)(sT,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:(0,q.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,q.jsx)(A_.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),oT=y.forwardRef(Tw(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=eT,...a}=e,o=Iw(n);return(0,q.jsx)(ex,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[sT,cT]=Pw(Zw,{}),lT=`SelectViewport`,uT=y.forwardRef(Tw(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=nT(lT,n),o=cT(lT,n),s=vr(t,a.onViewportChange),c=y.useRef(0);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,q.jsx)(jw.Slot,{scope:n,children:(0,q.jsx)(A_.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:t_(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-eT*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[dT,fT]=Pw(`SelectGroup`),pT=`SelectItem`,[mT,hT]=Pw(pT),gT=y.forwardRef(Tw(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Rw(pT,n),c=nT(pT,n),l=s.value===r,[u,d]=y.useState(a??``),[f,p]=y.useState(!1),m=vr(t,I_(e=>c.itemRefCallback?.(e,r,i))),h=Sv(),g=y.useRef(`touch`);function _(e){s.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),s.onUserSelect(r),s.onOpenChange(!1)}return Tw(_,`handleSelect`),(0,q.jsx)(mT,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:y.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,q.jsx)(jw.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,q.jsx)(A_.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:t_(o.onFocus,()=>p(!0)),onBlur:t_(o.onBlur,()=>p(!1)),onClick:t_(o.onClick,e=>{i||g.current!==`mouse`&&_(e)}),onPointerUp:t_(o.onPointerUp,e=>{i||g.current===`mouse`&&_(e)}),onPointerDown:t_(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:t_(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:t_(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:t_(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(kw.includes(e.key)&&_(e),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),_T=`SelectItemText`,vT=y.forwardRef(Tw(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=Rw(_T,n),s=nT(_T,n),c=hT(_T,n),l=Bw(_T,n),[u,d]=y.useState(null),f=I_(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=vr(t,d,c.onItemTextChange,f),m=u?.textContent,h=y.useMemo(()=>(0,q.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=l;return M_(()=>(g(h),()=>_(h)),[g,_,h]),(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(A_.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!kT(o.value)?wa.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),yT=`SelectItemIndicator`,bT=y.forwardRef(Tw(function(e,t){let{__scopeSelect:n,...r}=e;return hT(yT,n).isSelected?(0,q.jsx)(A_.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),xT=`SelectScrollUpButton`,ST=y.forwardRef(Tw(function(e,t){let n=nT(xT,e.__scopeSelect),r=cT(xT,e.__scopeSelect),[i,a]=y.useState(!1),o=vr(t,r.onScrollButtonChange);return M_(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};Tw(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,q.jsx)(TT,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),CT=`SelectScrollDownButton`,wT=y.forwardRef(Tw(function(e,t){let n=nT(CT,e.__scopeSelect),r=cT(CT,e.__scopeSelect),[i,a]=y.useState(!1),o=vr(t,r.onScrollButtonChange);return M_(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};Tw(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,q.jsx)(TT,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),TT=y.forwardRef(Tw(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=nT(`SelectScrollButton`,n),o=y.useRef(null),s=Mw(n),c=y.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return y.useEffect(()=>()=>c(),[c]),M_(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,q.jsx)(A_.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:t_(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:t_(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:t_(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),ET=`SelectBubbleInput`,DT=y.forwardRef(Tw(function({__scopeSelect:e,...t},n){let r=Rw(ET,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u,userSelection:d}=r,{nativeOptions:f,nativeSelectKey:p}=r,m=y.useRef(null),h=vr(n,m),g=i??``,_=y.useRef(g),v=y.useRef(d),b=y.useRef(!1),x=Array.from(f).some(e=>(e.props.value??``)===``);return y.useEffect(()=>{let e=m.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set,r=d!==null&&d!==v.current;v.current=d;let i=_.current!==g;_.current=g;let a=r&&i;if(r&&!i&&d.value!==g&&!d.hasConsumerStoppedPropagation&&n){b.current=!0;try{n.call(e,d.value),e.dispatchEvent(new Event(`change`,{bubbles:!0}))}finally{b.current=!1,n.call(e,g)}return}let o=a&&!d.hasConsumerStoppedPropagation;if(i&&n){let t=new Event(`change`,{bubbles:o});n.call(e,g),e.dispatchEvent(t)}},[g,d]),(0,q.jsxs)(A_.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>{b.current||a(e.target.value)},...t,style:{...Nx,...t.style},ref:h,defaultValue:g,children:[kT(i)&&!x?(0,q.jsx)(`option`,{value:``}):null,Array.from(f)]},p)},`SelectBubbleInput`));function OT(e){return typeof e==`function`}Tw(OT,`isFunction`);function kT(e){return e===``||e===void 0}Tw(kT,`shouldShowPlaceholder`);function AT(e){let t=I_(e),n=y.useRef(``),r=y.useRef(0),i=y.useCallback(e=>{let i=n.current+e;t(i);function a(e){n.current=e,window.clearTimeout(r.current),e!==``&&(r.current=window.setTimeout(()=>a(``),1e3))}Tw(a,`updateSearch`),a(i)},[t]),a=y.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}Tw(AT,`useTypeaheadSearch`);function jT(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=MT(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Tw(jT,`findNextItem`);function MT(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Tw(MT,`wrapArray`);var NT=(0,y.createContext)({container:null,setContainer:()=>{}});function PT(e){let[t,n]=(0,y.useState)(null);return(0,q.jsx)(NT.Provider,{value:{container:t,setContainer:n},children:(0,q.jsx)(Hw,{...e})})}function FT(e){return(0,q.jsx)(Kw,{"data-slot":`select-value`,...e})}function IT({className:e,children:t,ref:n,...r}){let{setContainer:i}=(0,y.useContext)(NT),a=(0,y.useCallback)(e=>{if(i(e?.closest(`dialog, [popover]`)??null),typeof n==`function`)return n(e);n&&(n.current=e)},[n,i]);return(0,q.jsxs)(Ww,{ref:a,"data-slot":`select-trigger`,className:pa(`select-trigger`,e),...r,children:[t,(0,q.jsx)(qw,{asChild:!0,children:(0,q.jsx)($t,{className:`select-chevron`,size:14})})]})}function LT({className:e,children:t,position:n=`popper`,align:r=`end`,sideOffset:i=6,collisionPadding:a=8,...o}){let{container:s}=(0,y.useContext)(NT);return(0,q.jsx)(Xw,{container:s,children:(0,q.jsxs)(Qw,{"data-slot":`select-content`,className:pa(`select-content`,e),position:n,align:r,sideOffset:i,collisionPadding:a,...o,children:[(0,q.jsx)(zT,{}),(0,q.jsx)(uT,{className:`select-viewport`,children:t}),(0,q.jsx)(BT,{})]})})}function RT({className:e,children:t,description:n,...r}){let i=(0,y.useId)();return(0,q.jsxs)(gT,{"data-slot":`select-item`,className:pa(`select-item`,e),"aria-describedby":n?i:void 0,...r,children:[(0,q.jsx)(vT,{children:t}),n&&(0,q.jsx)(`span`,{className:`select-item-description`,id:i,children:n}),(0,q.jsx)(`span`,{className:`select-item-indicator`,children:(0,q.jsx)(bT,{children:(0,q.jsx)(Zt,{size:14})})})]})}function zT({className:e,...t}){return(0,q.jsx)(ST,{className:pa(`select-scroll-button`,e),...t,children:(0,q.jsx)(rn,{size:14})})}function BT({className:e,...t}){return(0,q.jsx)(wT,{className:pa(`select-scroll-button`,e),...t,children:(0,q.jsx)($t,{size:14})})}function VT(e){return new Intl.NumberFormat(_t(),{style:`percent`,maximumFractionDigits:1}).format(e/100)}function HT({seconds:e,now:t}){if(e===null)return(0,q.jsx)(`span`,{children:H(`account:resetUnknown`)});let n=new Date(e*1e3);return(0,q.jsxs)(`span`,{className:`account-reset`,children:[(0,q.jsx)(`span`,{children:H(`account:resetsAt`,{time:xt(n,{dateStyle:`medium`,timeStyle:`long`})})}),e*1e3<=t&&(0,q.jsx)(`span`,{children:H(`account:resetPassed`)})]})}function UT({value:e,label:t,now:n}){let r=e.windowDurationMins,i=r!==null&&r>0&&r%1440==0?`day`:r!==null&&r>0&&r%60==0?`hour`:`minute`,a=r===null?null:new Intl.NumberFormat(_t(),{style:`unit`,unit:i,unitDisplay:`long`,maximumFractionDigits:1}).format(r/(i===`day`?1440:i===`hour`?60:1)),o=e.usedPercent;return(0,q.jsxs)(`div`,{className:`account-window`,children:[(0,q.jsxs)(`strong`,{children:[t,a!==null&&` · ${a}`]}),o===null?(0,q.jsx)(`span`,{children:H(`account:usageUnknown`)}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`account-window-values`,children:[(0,q.jsx)(`span`,{children:H(`account:used`,{value:VT(o)})}),(0,q.jsx)(`span`,{children:H(`account:remaining`,{value:VT(Math.max(0,100-o))})})]}),(0,q.jsx)(`progress`,{"aria-label":t,value:Math.max(0,Math.min(100,o)),max:100}),o>=100&&(0,q.jsx)(`strong`,{className:`account-limit-reached`,children:H(`account:exhausted`)})]}),(0,q.jsx)(HT,{seconds:e.resetsAt,now:n})]})}var WT={rate_limit_reached:`account:exhausted`,workspace_owner_credits_depleted:`account:ownerCreditsDepleted`,workspace_member_credits_depleted:`account:memberCreditsDepleted`,workspace_owner_usage_limit_reached:`account:ownerUsageReached`,workspace_member_usage_limit_reached:`account:memberUsageReached`};function GT({group:e,now:t}){let n=e.limitName||e.limitId||H(`account:quota`);return(0,q.jsxs)(`section`,{className:`account-group`,"aria-label":n,children:[(0,q.jsxs)(`div`,{className:`account-group-heading`,children:[(0,q.jsx)(`h3`,{children:n}),e.planType&&(0,q.jsx)(`span`,{children:e.planType})]}),e.limitName&&e.limitId&&e.limitId!==e.limitName&&(0,q.jsx)(`span`,{className:`account-metadata`,children:e.limitId}),e.normalModelSlug&&(0,q.jsx)(`span`,{className:`account-metadata`,children:e.normalModelSlug}),e.primary&&(0,q.jsx)(UT,{value:e.primary,label:H(`account:primary`),now:t}),e.secondary&&(0,q.jsx)(UT,{value:e.secondary,label:H(`account:secondary`),now:t}),e.credits&&(0,q.jsxs)(`div`,{className:`account-window`,children:[(0,q.jsx)(`strong`,{children:H(`account:credits`)}),e.credits.unlimited===!0?(0,q.jsx)(`span`,{children:H(`account:unlimited`)}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{children:e.credits.balance===null?H(`account:balanceUnknown`):H(`account:balance`,{value:e.credits.balance})}),e.credits.hasCredits!==null&&(0,q.jsx)(`span`,{children:H(e.credits.hasCredits?`account:creditsAvailable`:`account:creditsDepleted`)})]})]}),e.individualLimit&&(0,q.jsxs)(`div`,{className:`account-window`,children:[(0,q.jsx)(`strong`,{children:H(`account:individualLimit`)}),e.individualLimit.used!==null&&(0,q.jsx)(`span`,{children:H(`account:reportedUsed`,{value:e.individualLimit.used})}),e.individualLimit.limit!==null&&(0,q.jsx)(`span`,{children:H(`account:reportedLimit`,{value:e.individualLimit.limit})}),e.individualLimit.remainingPercent!==null&&(0,q.jsx)(`span`,{children:H(`account:remaining`,{value:VT(e.individualLimit.remainingPercent)})}),(0,q.jsx)(HT,{seconds:e.individualLimit.resetsAt,now:t})]}),e.spendControlReached!==null&&(0,q.jsx)(`p`,{children:H(e.spendControlReached?`account:spendControlReached`:`account:spendControlNotReached`)}),e.rateLimitReachedType&&(0,q.jsx)(`p`,{className:`account-limit-reached`,children:WT[e.rateLimitReachedType]?H(WT[e.rateLimitReachedType]):e.rateLimitReachedType}),!e.primary&&!e.secondary&&!e.credits&&!e.individualLimit&&!e.rateLimitReachedType&&(0,q.jsx)(`p`,{children:H(`account:noWindows`)})]})}function KT({system:e,offline:t,onClose:n}){let r=(0,y.useRef)(null),i=e?.accountUsage,a=`${e?.codexEpoch}:${i?.scope}`,[o,s]=(0,y.useState)(),[c,l]=(0,y.useState)(Date.now()),u=t||!e?.ready,d=()=>{s({scope:a,busy:!0,failed:!1}),pr.accountUsage().then(()=>s({scope:a,busy:!1,failed:!1}),()=>s({scope:a,busy:!1,failed:!0}))};(0,y.useEffect)(()=>{let e=r.current;e?.showModal();let t=setInterval(()=>l(Date.now()),1e4);return()=>{e?.close(),clearInterval(t)}},[]),(0,y.useEffect)(()=>{u||d()},[e?.codexEpoch,u]);let f=()=>{r.current?.close(),n()},p=u?`offline`:i?.status??`unsupported`,m=!u&&(i?.refreshing||o?.scope===a&&o.busy),h=!u&&(p===`error`||o?.scope===a&&o.failed);return(0,q.jsxs)(`dialog`,{ref:r,className:`project-dialog account-dialog`,"aria-labelledby":`account-usage-title`,onCancel:e=>{e.preventDefault(),f()},children:[(0,q.jsxs)(`div`,{className:`project-dialog-heading`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(wn,{size:20,"aria-hidden":`true`}),(0,q.jsx)(`h2`,{id:`account-usage-title`,children:H(`account:title`)})]}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`common:close`),onClick:f,children:(0,q.jsx)(Y,{name:`close`,size:17})})]}),(0,q.jsx)(`p`,{className:`account-scope`,children:H(`account:scope`)}),(0,q.jsxs)(`div`,{className:`account-refresh`,children:[(0,q.jsxs)(J,{variant:`secondary`,size:`sm`,disabled:u||m,onClick:d,children:[(0,q.jsx)(Rn,{size:14,"aria-hidden":`true`}),H(m?`account:refreshing`:`account:refresh`)]}),!u&&i?.updatedAt!==null&&i?.updatedAt!==void 0&&(0,q.jsx)(`span`,{children:H(`account:updatedAt`,{time:xt(new Date(i.updatedAt),{dateStyle:`medium`,timeStyle:`medium`})})})]}),(0,q.jsxs)(`div`,{role:`status`,"aria-live":`polite`,children:[p!==`ready`&&p!==`error`&&(0,q.jsx)(`p`,{children:H(`account:${p}`)}),h&&(0,q.jsx)(`p`,{className:`inline-error`,children:H(`account:refreshFailed`)})]}),!u&&(p===`ready`||p===`error`)&&(0,q.jsxs)(q.Fragment,{children:[i?.ordinaryUsageAllowed!==null&&i?.ordinaryUsageAllowed!==void 0&&(0,q.jsx)(`p`,{children:H(i.ordinaryUsageAllowed?`account:usageAllowed`:`account:usageBlocked`)}),i?.groups.map((e,t)=>(0,q.jsx)(GT,{group:e,now:c},e.limitId??t)),p===`ready`&&!i?.groups.length&&(0,q.jsx)(`p`,{children:H(`account:noWindows`)}),i?.resetCreditsAvailable!==null&&i?.resetCreditsAvailable!==void 0&&(0,q.jsx)(`p`,{children:H(`account:resetCredits`,{count:i.resetCreditsAvailable})})]})]})}function qT(e){let[t,n]=(0,y.useState)(!1),[r,i]=(0,y.useState)(!1);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(J,{className:`sidebar-settings-trigger`,variant:`ghost`,size:`sm`,"aria-haspopup":`dialog`,"aria-expanded":t,onClick:()=>n(!0),children:[(0,q.jsx)(Kn,{size:16,"aria-hidden":`true`}),H(`sidebar:settings`)]}),t&&(0,q.jsx)(JT,{...e,onAccountUsage:()=>i(!0),onClose:()=>n(!1)}),r&&(0,q.jsx)(KT,{system:e.system,offline:e.offline??!1,onClose:()=>i(!1)})]})}function JT({onClose:e,onAccountUsage:t,...n}){let r=(0,y.useRef)(null),{onBackups:i}=n;(0,y.useEffect)(()=>{let e=r.current;return e?.showModal(),()=>e?.close()},[]);let a=()=>{r.current?.close(),e()},o=e=>{a(),e()};return(0,q.jsxs)(`dialog`,{ref:r,className:`project-dialog sidebar-settings-dialog`,"aria-labelledby":`sidebar-settings-title`,onCancel:e=>{e.preventDefault(),a()},children:[(0,q.jsxs)(`div`,{className:`project-dialog-heading`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(Kn,{size:20,"aria-hidden":`true`}),(0,q.jsx)(`h2`,{id:`sidebar-settings-title`,children:H(`sidebar:settings`)})]}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`common:close`),onClick:a,children:(0,q.jsx)(Y,{name:`close`,size:17})})]}),(0,q.jsxs)(`label`,{className:`language-selector`,children:[(0,q.jsx)(On,{size:18,"aria-hidden":`true`}),(0,q.jsx)(`span`,{children:H(`common:language`)}),(0,q.jsxs)(PT,{value:_t(),onValueChange:e=>void vt(e),children:[(0,q.jsx)(IT,{"aria-label":H(`common:language`),"data-value":_t(),children:(0,q.jsx)(FT,{})}),(0,q.jsx)(LT,{children:st.map(e=>(0,q.jsx)(RT,{value:e,lang:e,children:ct[e]},e))})]})]}),(0,q.jsxs)(`div`,{className:`sidebar-settings-links`,children:[(0,q.jsxs)(J,{variant:`ghost`,onClick:()=>o(t),children:[(0,q.jsx)(wn,{size:18,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`sidebar-settings-label`,children:H(`account:title`)}),(0,q.jsx)(tn,{size:16,"aria-hidden":`true`})]}),(0,q.jsxs)(J,{variant:`ghost`,"aria-label":H(`sidebar:browser_notifications_status`,{v0:n.notificationStatus}),onClick:()=>o(n.onNotificationSettings),children:[(0,q.jsx)(Yt,{size:18,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`sidebar-settings-label`,children:H(`sidebar:browser_notifications`)}),(0,q.jsx)(`span`,{className:`sidebar-settings-status`,children:n.notificationStatus}),(0,q.jsx)(tn,{size:16,"aria-hidden":`true`})]}),(0,q.jsxs)(J,{variant:`ghost`,onClick:()=>o(n.onGatewaySettings),children:[(0,q.jsx)(Kn,{size:18,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`sidebar-settings-label`,children:H(`common:service_settings`)}),(0,q.jsx)(tn,{size:16,"aria-hidden":`true`})]}),i&&(0,q.jsxs)(J,{variant:`ghost`,onClick:()=>o(i),children:[(0,q.jsx)(fn,{size:18,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`sidebar-settings-label`,children:H(`backups:title`)}),(0,q.jsx)(tn,{size:16,"aria-hidden":`true`})]})]}),(0,q.jsxs)(`div`,{className:`sidebar-settings-execution`,children:[(0,q.jsx)(Hn,{size:17,"aria-hidden":`true`}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`strong`,{children:H(`sidebar:runs_on_server`)}),(0,q.jsx)(`p`,{children:H(`sidebar:code_and_credentials_stay_on_the_computer_running`)})]})]})]})}function YT(e){let t=Xg(navigator.platform),[n,r]=(0,y.useState)(``),[i,a]=(0,y.useState)(!1),o=n.trim().toLocaleLowerCase(),s=[{id:x,name:H(`common:unassigned`),rootPath:``,available:!0,error:void 0,project:void 0},...e.projects.map(e=>({...e,project:e}))].flatMap(t=>{let n=e.projectThreads[t.id],r=`${t.name} ${t.rootPath}`.toLocaleLowerCase().includes(o),i=(n?.data??[]).filter(e=>r||e.title.toLocaleLowerCase().includes(o));return r||i.length>0?[{project:t,state:n,threads:i}]:[]});return(0,q.jsxs)(q.Fragment,{children:[e.open&&(0,q.jsx)(`button`,{className:`sidebar-backdrop`,"aria-label":H(`sidebar:close_session_navigation`),onClick:e.onClose}),(0,q.jsxs)(`aside`,{className:pa(`sidebar`,e.open&&`sidebar-open`),"aria-label":H(`sidebar:projects_and_sessions`),children:[(0,q.jsxs)(`div`,{className:`sidebar-header`,children:[(0,q.jsxs)(`div`,{className:`brand`,children:[(0,q.jsx)(`div`,{className:`brand-mark`,children:(0,q.jsx)(`img`,{src:`/covro.svg`,alt:``,width:`28`,height:`28`})}),(0,q.jsx)(bS,{asChild:!0,side:`bottom`,align:`start`,content:`Covro ${e.appVersion??``} · ${e.updating?H(`sidebar:updating`):e.updateAvailable?H(`sidebar:update_available`):H(`sidebar:version_and_updates`)}`,children:(0,q.jsxs)(`button`,{type:`button`,className:`brand-name covro-brand-button`,"aria-label":H(`common:covro_updates`),"data-update-available":e.updateAvailable||e.updating,onClick:e.onUpdates,children:[`Covro `,(0,q.jsx)(cn,{size:13,"aria-hidden":`true`})]})}),(0,q.jsxs)(J,{className:`add-project`,variant:`secondary`,size:`sm`,onClick:e.onAddProject,disabled:!e.canManageProjects,children:[(0,q.jsx)(Y,{name:`plus`,size:15}),H(`common:add_project`)]}),(0,q.jsx)(J,{className:`mobile-only`,variant:`ghost`,size:`icon`,"aria-label":H(`sidebar:close_navigation`),onClick:e.onClose,children:(0,q.jsx)(Y,{name:`close`})})]}),(0,q.jsxs)(`div`,{className:`project-search`,children:[(0,q.jsx)(`label`,{className:`sr-only`,htmlFor:`project-search`,children:H(`sidebar:projects_and_sessions`)}),(0,q.jsx)(`input`,{id:`project-search`,type:`search`,"aria-label":H(`sidebar:search_projects_and_loaded_sessions`),"aria-describedby":`sidebar-search-summary`,placeholder:H(`sidebar:search_projects_and_loaded_sessions`),value:n,disabled:i,onChange:e=>r(e.target.value)}),(0,q.jsx)(`span`,{id:`sidebar-search-summary`,className:`sr-only`,role:`status`,children:o?H(`sidebar:search_results_groups`,{v0:s.length,count:s.length}):H(`sidebar:all_sessions_projects`,{v0:e.projects.length,count:e.projects.length})})]}),(0,q.jsxs)(`div`,{className:`sidebar-toolbar`,children:[(0,q.jsxs)(`div`,{className:`archive-switch`,role:`group`,"aria-label":H(`sidebar:session_list_scope`),children:[(0,q.jsx)(J,{variant:e.archiveView?`ghost`:`secondary`,size:`sm`,"aria-pressed":!e.archiveView,onClick:()=>e.onArchiveView(!1),children:H(`common:sessions`)}),(0,q.jsxs)(J,{variant:e.archiveView?`secondary`:`ghost`,size:`sm`,"aria-pressed":e.archiveView,onClick:()=>e.onArchiveView(!0),children:[(0,q.jsx)(Y,{name:`archive`,size:14}),H(`sidebar:archived_sessions`)]})]}),(0,q.jsx)(bS,{content:H(`sidebar:reorder_projects`),children:(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`sidebar:reorder_projects`),"aria-pressed":i,disabled:i||!e.canManageProjects||e.projects.length<2,onClick:()=>{r(``),a(!0)},children:(0,q.jsx)(Vt,{size:14,"aria-hidden":`true`})})}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`sidebar:refresh_session_list`),onClick:e.onRefresh,disabled:!e.projectsLoaded,children:(0,q.jsx)(Y,{name:`refresh`,size:14})})]})]}),(0,q.jsxs)(AS,{locale:_t(),context:`${e.archiveView}:${o}:${i}`,rows:e.projectThreads,children:[i&&(0,q.jsx)(jS,{projects:e.projects,disabled:!e.canManageProjects,onReorder:e.onReorderProjects,onClose:()=>a(!1)}),(i?[]:s).map(({project:n,state:r,threads:i})=>{let a=(r?.data??[]).filter(e=>SS(e.status)).length,s=e.creating(n.id)?H(`sidebar:creating`):n.project?H(`sidebar:new_session`):H(`sidebar:new_unassigned_session`),c=e.projectId===n.id&&!e.creating(n.id);return(0,q.jsxs)(`section`,{className:`project-group`,"aria-label":n.name,"data-project-id":n.project?.id,"data-scope-id":n.id,children:[(0,q.jsxs)(`h2`,{className:`project-heading`,children:[(0,q.jsx)(bS,{asChild:!0,content:n.name,children:(0,q.jsxs)(`button`,{className:`project-link`,onClick:()=>e.onProject(n.id),"aria-current":e.projectId===n.id?`true`:void 0,children:[(0,q.jsx)(Y,{name:n.project?`folder`:`code`,size:16}),(0,q.jsx)(`span`,{children:n.name}),a>0&&(0,q.jsx)(`span`,{className:`project-activity`,"aria-label":H(`sidebar:active_sessions`,{count:a,v0:a}),children:a})]})}),(0,q.jsx)(bS,{content:c?`${s} · ${t.label}`:s,children:(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":s,"aria-keyshortcuts":c?t.aria:void 0,onClick:()=>e.onCreate(n.id),disabled:!e.canCreate(n.id)||e.creating(n.id),children:(0,q.jsx)(Y,{name:e.creating(n.id)?`loader`:`plus`,size:15})})}),n.project&&(0,q.jsx)(bS,{content:H(`common:manage_project`),children:(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`sidebar:manage_project`,{v0:n.name}),onClick:()=>e.onManageProject(n.project),disabled:!e.canManageProjects,children:(0,q.jsx)(Y,{name:`settings`,size:15})})})]}),!n.available&&(0,q.jsx)(`p`,{className:`inline-error project-error`,role:`status`,children:H(`common:project_directory_unavailable`)}),(0,q.jsxs)(`div`,{className:`thread-list`,children:[i.map(t=>(0,q.jsx)(kS,{thread:t,selected:t.id===e.selectedId,unreadCompletion:e.isUnreadCompletion(t),offline:e.offline,onArchive:()=>e.onArchive(t.id,!t.archived),archiveDisabledReason:e.archiveDisabledReason(t),onFork:()=>e.onFork(t),forkDisabledReason:e.forkDisabledReason(t),forking:e.forking(t.id),onSelect:()=>{e.onThread(t.id,n.id),e.onClose()}},t.id)),n.available&&!r?.loading&&!r?.error&&i.length===0&&(0,q.jsx)(`p`,{className:`sidebar-empty`,children:o?H(`sidebar:no_matches_among_loaded_sessions`):e.archiveView?H(`sidebar:no_archived_sessions_yet`):H(`sidebar:no_sessions_yet_create_one_to_get_started`)}),r&&(0,q.jsxs)(`div`,{className:`thread-pagination`,"aria-live":`polite`,"aria-busy":r.loading,children:[!!r.unverified?.length&&(0,q.jsx)(`p`,{className:`sidebar-pagination-status`,role:`status`,children:r.error?H(`sidebar:local_list_sync_failed_browsing_is_still_available`):r.loading?H(`sidebar:showing_local_list_syncing_in_background`):H(`sidebar:some_local_entries_are_not_synced_load_more`)}),r.loading||r.error||r.nextCursor?(0,q.jsx)(bS,{content:U(r.error),children:(0,q.jsx)(J,{variant:`ghost`,className:pa(`load-more`,r.error&&`load-more-error`),size:`sm`,disabled:r.loading,"aria-describedby":r.error?`thread-pagination-error-${n.id}`:void 0,onClick:()=>{r.error?e.onRetry(n.id):r.nextCursor&&e.onMore(n.id,r.nextCursor)},children:r.loading?r.appending?H(`sidebar:loading_more_sessions`):H(`sidebar:syncing_sessions`):r.error?H(`sidebar:load_failed_retry`):H(`sidebar:load_more_sessions`)})}):r.loaded&&r.data.length>0&&!o?(0,q.jsx)(`p`,{className:`sidebar-pagination-status`,children:H(`sidebar:all_sessions_loaded`)}):null,r.error&&(0,q.jsx)(`span`,{className:`sr-only`,id:`thread-pagination-error-${n.id}`,children:U(r.error)})]})]})]},n.id)}),!i&&s.length===0&&(0,q.jsx)(`p`,{className:`sidebar-empty`,children:o?H(`sidebar:no_matching_projects_or_loaded_sessions`):e.projectsLoaded?H(`sidebar:no_sessions_yet`):H(`sidebar:loading_projects`)})]}),(0,q.jsxs)(`div`,{className:`sidebar-footer`,children:[(0,q.jsx)(qT,{system:e.system,offline:e.offline,notificationStatus:e.notificationStatus,onNotificationSettings:e.onNotificationSettings,onGatewaySettings:e.onGatewaySettings,onBackups:e.onBackups}),(0,q.jsxs)(`span`,{className:`sidebar-execution-location`,children:[(0,q.jsx)(Hn,{size:14,"aria-hidden":`true`}),H(`sidebar:runs_on_server`)]})]})]})]})}function XT(e){let t=e.replace(/^\uFEFF/,``);try{JSON.parse(t)}catch{return{error:H(`preview:invalid_json_source_preserved_check_quotes_commas_and`)}}let n=[],r=/"(?:[^"\\]|\\[\s\S])*"|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?|true|false|null|[{}[\],:]/g,i=0,a=0,o=``;for(let e of t.matchAll(r)){let r=e[0],s=r===`}`||r===`]`,c=s&&(o===`{`||o===`[`);s&&i--;let l=s&&!c||o===`,`||o===`{`||o===`[`?c?``:`
|
|
125
|
-
`+` `.repeat(i):o===`:`?` `:``,u=r.startsWith(`"`)?/^\s*:/.test(t.slice(e.index+r.length))?`key`:`string`:r===`null`?`null`:r===`true`||r===`false`?`boolean`:/^-?\d/.test(r)?`number`:void 0;if(n.push({text:l+r,kind:u}),a+=l.length+r.length,(r===`{`||r===`[`)&&i++,i>100||a>4194304||n.length>3e4)return{error:H(`preview:json_is_too_deep_or_large_to_format`)};o=r}return{tokens:n}}function ZT({content:e}){let t=_t(),n=(0,y.useMemo)(()=>XT(e),[e,t]);return n.error===void 0?(0,q.jsx)(`pre`,{className:`file-preview-source json-preview`,tabIndex:0,"aria-label":H(`workspace:formatted_json`),children:(0,q.jsx)(`code`,{children:n.tokens.map((e,t)=>e.kind?(0,q.jsx)(`span`,{className:`json-${e.kind}`,children:e.text},t):e.text)})}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`p`,{className:`json-preview-warning`,role:`alert`,children:U(n.error)}),(0,q.jsx)(`pre`,{className:`file-preview-source`,tabIndex:0,"aria-label":H(`workspace:json_source`),children:e})]})}function QT(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var $T=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tE={};function nE(e,t){return((t||tE).jsx?eE:$T).test(e)}var rE=/[ \t\n\f\r]/g;function iE(e){return typeof e==`object`?e.type===`text`&&aE(e.value):aE(e)}function aE(e){return e.replace(rE,``)===``}var oE=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};oE.prototype.normal={},oE.prototype.property={},oE.prototype.space=void 0;function sE(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new oE(n,r,t)}function cE(e){return e.toLowerCase()}var lE=class{constructor(e,t){this.attribute=t,this.property=e}};lE.prototype.attribute=``,lE.prototype.booleanish=!1,lE.prototype.boolean=!1,lE.prototype.commaOrSpaceSeparated=!1,lE.prototype.commaSeparated=!1,lE.prototype.defined=!1,lE.prototype.mustUseProperty=!1,lE.prototype.number=!1,lE.prototype.overloadedBoolean=!1,lE.prototype.property=``,lE.prototype.spaceSeparated=!1,lE.prototype.space=void 0;var uE=s({boolean:()=>fE,booleanish:()=>pE,commaOrSpaceSeparated:()=>_E,commaSeparated:()=>gE,number:()=>$,overloadedBoolean:()=>mE,spaceSeparated:()=>hE}),dE=0,fE=vE(),pE=vE(),mE=vE(),$=vE(),hE=vE(),gE=vE(),_E=vE();function vE(){return 2**++dE}var yE=Object.keys(uE),bE=class extends lE{constructor(e,t,n,r){let i=-1;if(super(e,t),xE(this,`space`,r),typeof n==`number`)for(;++i<yE.length;){let e=yE[i];xE(this,yE[i],(n&uE[e])===uE[e])}}};bE.prototype.defined=!0;function xE(e,t,n){n&&(e[t]=n)}function SE(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new bE(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[cE(r)]=r,n[cE(a.attribute)]=r}return new oE(t,n,e.space)}var CE=SE({properties:{ariaActiveDescendant:null,ariaAtomic:pE,ariaAutoComplete:null,ariaBusy:pE,ariaChecked:pE,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:hE,ariaCurrent:null,ariaDescribedBy:hE,ariaDetails:null,ariaDisabled:pE,ariaDropEffect:hE,ariaErrorMessage:null,ariaExpanded:pE,ariaFlowTo:hE,ariaGrabbed:pE,ariaHasPopup:null,ariaHidden:pE,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:hE,ariaLevel:$,ariaLive:null,ariaModal:pE,ariaMultiLine:pE,ariaMultiSelectable:pE,ariaOrientation:null,ariaOwns:hE,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:pE,ariaReadOnly:pE,ariaRelevant:null,ariaRequired:pE,ariaRoleDescription:hE,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:pE,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function wE(e,t){return t in e?e[t]:t}function TE(e,t){return wE(e,t.toLowerCase())}var EE=SE({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:gE,acceptCharset:hE,accessKey:hE,action:null,allow:null,allowFullScreen:fE,allowPaymentRequest:fE,allowUserMedia:fE,alpha:fE,alt:null,as:null,async:fE,autoCapitalize:null,autoComplete:hE,autoFocus:fE,autoPlay:fE,blocking:hE,capture:null,charSet:null,checked:fE,cite:null,className:hE,closedBy:null,colorSpace:null,cols:$,colSpan:$,command:null,commandFor:null,content:null,contentEditable:pE,controls:fE,controlsList:hE,coords:$|gE,crossOrigin:null,data:null,dateTime:null,decoding:null,default:fE,defer:fE,dir:null,dirName:null,disabled:fE,download:mE,draggable:pE,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:fE,formTarget:null,headers:hE,height:$,hidden:mE,high:$,href:null,hrefLang:null,htmlFor:hE,httpEquiv:hE,id:null,imageSizes:null,imageSrcSet:null,inert:fE,inputMode:null,integrity:null,is:null,isMap:fE,itemId:null,itemProp:hE,itemRef:hE,itemScope:fE,itemType:hE,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:fE,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:fE,muted:fE,name:null,nonce:null,noModule:fE,noValidate:fE,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:fE,optimum:$,pattern:null,ping:hE,placeholder:null,playsInline:fE,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:fE,referrerPolicy:null,rel:hE,required:fE,reversed:fE,rows:$,rowSpan:$,sandbox:hE,scope:null,scoped:fE,seamless:fE,selected:fE,shadowRootClonable:fE,shadowRootCustomElementRegistry:fE,shadowRootDelegatesFocus:fE,shadowRootMode:null,shadowRootSerializable:fE,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:pE,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:fE,useMap:null,value:pE,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:hE,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:fE,declare:fE,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:fE,noHref:fE,noShade:fE,noWrap:fE,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:pE,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:fE,disablePictureInPicture:fE,disableRemotePlayback:fE,exportParts:gE,part:hE,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:TE}),DE=SE({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,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`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,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`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,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`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:_E,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:hE,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:fE,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:gE,g2:gE,glyphName:gE,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:_E,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:hE,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_E,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_E,rev:_E,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_E,requiredFeatures:_E,requiredFonts:_E,requiredFormats:_E,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:_E,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_E,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_E,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:wE}),OE=SE({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),kE=SE({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:TE}),AE=SE({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),jE={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},ME=/[A-Z]/g,NE=/-[a-z]/g,PE=/^data[-\w.:]+$/i;function FE(e,t){let n=cE(t),r=t,i=lE;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&PE.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(NE,LE);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!NE.test(e)){let n=e.replace(ME,IE);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=bE}return new i(r,t)}function IE(e){return`-`+e.toLowerCase()}function LE(e){return e.charAt(1).toUpperCase()}var RE=sE([CE,EE,OE,kE,AE],`html`),zE=sE([CE,DE,OE,kE,AE],`svg`);function BE(e){return e.join(` `).trim()}var VE=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
126
|
-
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),HE=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(VE());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),UE=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),WE=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(HE()),r=UE();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),GE=qE(`end`),KE=qE(`start`);function qE(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function JE(e){let t=KE(e),n=GE(e);if(t&&n)return{start:t,end:n}}function YE(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?ZE(e.position):`start`in e||`end`in e?ZE(e):`line`in e||`column`in e?XE(e):``}function XE(e){return QE(e&&e.line)+`:`+QE(e&&e.column)}function ZE(e){return XE(e&&e.start)+`-`+XE(e&&e.end)}function QE(e){return e&&typeof e==`number`?e:1}var $E=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=YE(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};$E.prototype.file=``,$E.prototype.name=``,$E.prototype.reason=``,$E.prototype.message=``,$E.prototype.stack=``,$E.prototype.column=void 0,$E.prototype.line=void 0,$E.prototype.ancestors=void 0,$E.prototype.cause=void 0,$E.prototype.fatal=void 0,$E.prototype.place=void 0,$E.prototype.ruleId=void 0,$E.prototype.source=void 0;var eD=l(WE(),1),tD={}.hasOwnProperty,nD=new Map,rD=/[A-Z]/g,iD=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),aD=new Set([`td`,`th`]),oD=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function sD(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=vD(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=_D(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?zE:RE,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=cD(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function cD(e,t,n){if(t.type===`element`)return lD(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return uD(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return fD(e,t,n);if(t.type===`mdxjsEsm`)return dD(e,t);if(t.type===`root`)return pD(e,t,n);if(t.type===`text`)return mD(e,t)}function lD(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=zE,e.schema=i),e.ancestors.push(t);let a=wD(e,t.tagName,!1),o=yD(e,t),s=xD(e,t);return iD.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!iE(e)})),hD(e,o,a,t),gD(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function uD(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}TD(e,t.position)}function dD(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);TD(e,t.position)}function fD(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=zE,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:wD(e,t.name,!0),o=bD(e,t),s=xD(e,t);return hD(e,o,a,t),gD(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function pD(e,t,n){let r={};return gD(r,xD(e,t)),e.create(t,e.Fragment,r,n)}function mD(e,t){return t.value}function hD(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function gD(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function _D(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function vD(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=KE(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function yD(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&tD.call(t.properties,i)){let a=SD(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&aD.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function bD(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else TD(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else TD(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function xD(e,t){let n=[],r=-1,i=e.passKeys?new Map:nD;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=cD(e,a,o);s!==void 0&&n.push(s)}return n}function SD(e,t,n){let r=FE(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?QT(n):BE(n)),r.property===`style`){let t=typeof n==`object`?n:CD(e,String(n));return e.stylePropertyNameCase===`css`&&(t=ED(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?jE[r.property]||r.property:r.attribute,n]}}function CD(e,t){try{return(0,eD.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new $E("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=oD+`#cannot-parse-style-attribute`,r}}function wD(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=nE(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=nE(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return tD.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);TD(e)}function TD(e,t){let n=new $E("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=oD+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function ED(e){let t={},n;for(n in e)tD.call(e,n)&&(t[DD(n)]=e[n]);return t}function DD(e){let t=e.replace(rD,OD);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function OD(e){return`-`+e.toLowerCase()}var kD={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},AD={};function jD(e,t){let n=t||AD;return MD(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function MD(e,t,n){if(PD(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return ND(e.children,t,n)}return Array.isArray(e)?ND(e,t,n):``}function ND(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=MD(e[i],t,n);return r.join(``)}function PD(e){return!!(e&&typeof e==`object`)}var FD=document.createElement(`i`);function ID(e){let t=`&`+e+`;`;FD.innerHTML=t;let n=FD.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function LD(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function RD(e,t){return e.length>0?(LD(e,e.length,0,t),e):t}var zD={}.hasOwnProperty;function BD(e){let t={},n=-1;for(;++n<e.length;)VD(t,e[n]);return t}function VD(e,t){let n;for(n in t){let r=(zD.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){zD.call(r,a)||(r[a]=[]);let e=i[a];HD(r[a],Array.isArray(e)?e:e?[e]:[])}}}function HD(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);LD(e,0,0,r)}function UD(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function WD(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var GD=rO(/[A-Za-z]/),KD=rO(/[\dA-Za-z]/),qD=rO(/[#-'*+\--9=?A-Z^-~]/);function JD(e){return e!==null&&(e<32||e===127)}var YD=rO(/\d/),XD=rO(/[\dA-Fa-f]/),ZD=rO(/[!-/:-@[-`{-~]/);function QD(e){return e!==null&&e<-2}function $D(e){return e!==null&&(e<0||e===32)}function eO(e){return e===-2||e===-1||e===32}var tO=rO(/\p{P}|\p{S}/u),nO=rO(/\s/);function rO(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function iO(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&KD(e.charCodeAt(n+1))&&KD(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function aO(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return eO(r)?(e.enter(n),s(r)):t(r)}function s(r){return eO(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function oO(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&eO(t)?(e.enter(r),c(t)):l(t)}function c(t){return eO(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var sO={tokenize:cO};function cO(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),aO(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return QD(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var lO=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){uO(this,e,t,n,!1)}addBefore(e,t,n){uO(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function uO(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var dO={tokenize:pO},fO={tokenize:mO};function pO(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new lO;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(fO,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(fO,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return QD(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new lO;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function mO(e,t,n){return aO(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function hO(e){if(e===null||$D(e)||nO(e))return 1;if(tO(e))return 2}function gO(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var _O={name:`attention`,resolveAll:vO,tokenize:yO};function vO(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};bO(o,-a),bO(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=RD(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=RD(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=RD(r,gO(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=RD(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=RD(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),LD(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function yO(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=hO(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=hO(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function bO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var xO={name:`autolink`,tokenize:SO};function SO(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return GD(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||KD(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||KD(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||JD(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):qD(t)?(e.consume(t),l):n(t)}function u(e){return KD(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||KD(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var CO={partial:!0,tokenize:wO};function wO(e,t,n){return r;function r(t){return eO(t)?aO(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||QD(e)?t(e):n(e)}}var TO={continuation:{tokenize:DO},exit:OO,name:`blockQuote`,tokenize:EO};function EO(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return eO(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function DO(e,t,n){let r=this;return i;function i(t){return eO(t)?aO(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(TO,t,n)(r)}}function OO(e){e.exit(`blockQuote`)}var kO={name:`characterEscape`,tokenize:AO};function AO(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return ZD(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var jO={name:`characterReference`,tokenize:MO};function MO(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=KD,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=XD,u):(e.enter(`characterReferenceValue`),a=7,o=YD,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===KD&&!ID(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var NO={partial:!0,tokenize:PO};function PO(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var FO={concrete:!0,name:`codeFenced`,tokenize:IO};function IO(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),eO(t)?aO(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||QD(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(NO,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||QD(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):eO(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),aO(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||QD(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||QD(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&eO(t)?aO(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||QD(t)?e.check(NO,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||QD(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),eO(t)?aO(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),eO(t)?aO(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||QD(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var LO={name:`codeIndented`,tokenize:zO},RO={partial:!0,tokenize:BO};function zO(e,t,n){return r;function r(t){return e.enter(`codeIndented`),oO(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):QD(t)?e.attempt(RO,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||QD(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function BO(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):QD(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):oO(e,t,a,`linePrefix`,4,4)(o)}function a(e){return QD(e)?i(e):n(e)}}var VO={name:`codeText`,previous:UO,resolve:HO,tokenize:WO};function HO(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function UO(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function WO(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):QD(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||QD(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var GO=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&KO(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),KO(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),KO(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);KO(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);KO(this.left,t.reverse())}}}};function KO(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function qO(e){let t={},n=-1,r,i,a,o,s,c,l,u=new GO(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,JO(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return LD(e,0,1/0,u.slice(0)),!l}function JO(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var YO={resolve:ZO,tokenize:QO},XO={partial:!0,tokenize:$O};function ZO(e){return qO(e),e}function QO(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):QD(t)?e.check(XO,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function $O(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),aO(e,a,`linePrefix`)}function a(i){if(i===null||QD(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function ek(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||JD(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||QD(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||$D(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||JD(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function tk(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):QD(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||QD(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!eO(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function nk(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):QD(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),aO(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||QD(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function rk(e,t){let n;return r;function r(i){return QD(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):eO(i)?aO(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var ik={name:`definition`,tokenize:ok},ak={partial:!0,tokenize:sk};function ok(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return tk.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=WD(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return $D(t)?rk(e,l)(t):l(t)}function l(t){return ek(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(ak,d,d)(t)}function d(t){return eO(t)?aO(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||QD(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function sk(e,t,n){return r;function r(t){return $D(t)?rk(e,i)(t):n(t)}function i(t){return nk(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return eO(t)?aO(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||QD(e)?t(e):n(e)}}var ck={name:`hardBreakEscape`,tokenize:lk};function lk(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return QD(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var uk={name:`headingAtx`,resolve:dk,tokenize:fk};function dk(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};LD(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function fk(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||$D(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||QD(n)?(e.exit(`atxHeading`),t(n)):eO(n)?aO(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||$D(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var pk=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),mk=[`pre`,`script`,`style`,`textarea`],hk={concrete:!0,name:`htmlFlow`,resolveTo:_k,tokenize:vk},gk={partial:!0,tokenize:yk};function _k(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function vk(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):GD(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):GD(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return GD(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||$D(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&mk.includes(l)?(i=1,r.interrupt?t(s):O(s)):pk.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||KD(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return eO(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||GD(t)?(e.consume(t),b):eO(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||KD(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):eO(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):eO(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||QD(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||$D(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||eO(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||QD(t)?O(t):eO(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),ee):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):QD(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(gk,te,k)(t)):t===null||QD(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(NO,A,te)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||QD(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return mk.includes(n)?(e.consume(t),ee):O(t)}return GD(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),ee):t===45&&i===2?(e.consume(t),I):O(t)}function ee(t){return t===null||QD(t)?(e.exit(`htmlFlowData`),te(t)):(e.consume(t),ee)}function te(n){return e.exit(`htmlFlow`),t(n)}}function yk(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(CO,t,n)}}var bk={name:`htmlText`,tokenize:xk};function xk(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):GD(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):GD(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):QD(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):QD(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):QD(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):QD(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return GD(t)?(e.consume(t),S):n(t)}function S(t){return t===45||KD(t)?(e.consume(t),S):C(t)}function C(t){return QD(t)?(o=C,N(t)):eO(t)?(e.consume(t),C):M(t)}function w(t){return t===45||KD(t)?(e.consume(t),w):t===47||t===62||$D(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||GD(t)?(e.consume(t),E):QD(t)?(o=T,N(t)):eO(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||KD(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):QD(t)?(o=D,N(t)):eO(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):QD(t)?(o=O,N(t)):eO(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):QD(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||$D(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||$D(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return eO(t)?aO(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var Sk={name:`labelEnd`,resolveAll:Ek,resolveTo:Dk,tokenize:Ok},Ck={tokenize:kk},wk={tokenize:Ak},Tk={tokenize:jk};function Ek(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&LD(e,0,e.length,n),e}function Dk(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=RD(o,e.slice(i+1,i+r+3)),o=RD(o,[[`enter`,l,t]]),o=RD(o,gO(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=RD(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=RD(o,e.slice(a+1)),o=RD(o,[[`exit`,s,t]]),LD(e,i,e.length,o),e}function Ok(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(WD(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(Ck,u,o?u:d)(t):t===91?e.attempt(wk,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Tk,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function kk(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return $D(t)?rk(e,a)(t):a(t)}function a(t){return t===41?u(t):ek(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return $D(t)?rk(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?nk(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return $D(t)?rk(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function Ak(e,t,n){let r=this;return i;function i(t){return tk.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(WD(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function jk(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var Mk={name:`labelStartImage`,resolveAll:Sk.resolveAll,tokenize:Nk};function Nk(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var Pk={name:`labelStartLink`,resolveAll:Sk.resolveAll,tokenize:Fk};function Fk(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var Ik={name:`lineEnding`,tokenize:Lk};function Lk(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),aO(e,t,`linePrefix`)}}var Rk={name:`thematicBreak`,tokenize:zk};function zk(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||QD(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),eO(t)?aO(e,s,`whitespace`)(t):s(t))}}var Bk={continuation:{tokenize:Wk},exit:Kk,name:`list`,tokenize:Uk},Vk={partial:!0,tokenize:qk},Hk={partial:!0,tokenize:Gk};function Uk(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:YD(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(Rk,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return YD(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(CO,r.interrupt?n:u,e.attempt(Vk,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return eO(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Wk(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(CO,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,aO(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!eO(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Hk,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,aO(e,e.attempt(Bk,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Gk(e,t,n){let r=this;return aO(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Kk(e){e.exit(this.containerState.type)}function qk(e,t,n){let r=this;return aO(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!eO(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Jk={name:`setextUnderline`,resolveTo:Yk,tokenize:Xk};function Yk(e,t){let n=new lO,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function Xk(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),eO(t)?aO(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||QD(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Zk={tokenize:Qk};function Qk(e){let t=this,n=e.attempt(CO,r,e.attempt(this.parser.constructs.flowInitial,i,aO(e,e.attempt(this.parser.constructs.flow,i,e.attempt(YO,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var $k={resolveAll:rA()},eA=nA(`string`),tA=nA(`text`);function nA(e){return{resolveAll:rA(e===`text`?iA:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function rA(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function iA(e,t){let n=new lO,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var aA=s({attentionMarkers:()=>pA,contentInitial:()=>sA,disable:()=>mA,document:()=>oA,flow:()=>lA,flowInitial:()=>cA,insideSpan:()=>fA,string:()=>uA,text:()=>dA}),oA={42:Bk,43:Bk,45:Bk,48:Bk,49:Bk,50:Bk,51:Bk,52:Bk,53:Bk,54:Bk,55:Bk,56:Bk,57:Bk,62:TO},sA={91:ik},cA={[-2]:LO,[-1]:LO,32:LO},lA={35:uk,42:Rk,45:[Jk,Rk],60:hk,61:Jk,95:Rk,96:FO,126:FO},uA={38:jO,92:kO},dA={[-5]:Ik,[-4]:Ik,[-3]:Ik,33:Mk,38:jO,42:_O,60:[xO,bk],91:Pk,92:[ck,kO],93:Sk,95:_O,96:VO},fA={null:[_O,$k]},pA={null:[42,95]},mA={null:[]};function hA(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=RD(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=gO(a,l.events,l),l.events):[]}function f(e,t){return _A(p(e),t)}function p(e){return gA(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){QD(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&LD(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function gA(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function _A(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
127
|
-
`;break;case-3:o=`\r
|
|
128
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function vA(e){let t={constructs:BD([aA,...(e||{}).extensions||[]]),content:n(sO),defined:[],document:n(dO),flow:n(Zk),lazy:{},string:n(eA),text:n(tA)};return t;function n(e){return n;function n(n){return hA(t,e,n)}}}function yA(e){for(;!qO(e););return e}var bA=/[\0\t\n\r]/g;function xA(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){bA.lastIndex=c;let n=bA.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var SA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function CA(e){return e.replace(SA,wA)}function wA(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return UD(n.slice(t?2:1),t?16:10)}return ID(n)||e}var TA={}.hasOwnProperty;function EA(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),DA(n)(yA(vA(n).document().write(xA()(e,t,!0))))}function DA(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(he),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(de),blockQuote:o(le),characterEscape:E,characterReference:E,codeFenced:o(ue),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(ue,s),codeText:o(R,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(z),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(B),hardBreakEscape:o(fe),hardBreakTrailing:o(fe),htmlFlow:o(pe,s),htmlFlowData:E,htmlText:o(pe,s),htmlTextData:E,image:o(me),label:s,link:o(he),listItem:o(V),listItemValue:p,listOrdered:o(ge,f),listUnordered:o(ge),paragraph:o(_e),reference:L,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(de),strong:o(ve),thematicBreak:o(be)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:ce,autolinkProtocol:se,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ie,characterReferenceMarkerNumeric:ie,characterReferenceValue:ae,characterReference:oe,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(M),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(A),htmlFlowData:D,htmlText:l(j),htmlTextData:D,image:l(P),label:I,labelText:F,lineEnding:O,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:re,resourceDestinationString:ee,resourceTitleString:te,resource:ne,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};kA(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),TA.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||jA).call(o,void 0,e[0])}for(r.position={start:OA(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:OA(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:OA(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+YE({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||jA).call(this,e,r[0])),n.position.end=OA(e.end)}function d(){return jD(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=WD(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=ye(),n.position={start:OA(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=OA(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=OA(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function k(){this.data.atHardBreak=!0}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function F(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=CA(t),n.identifier=WD(t).toLowerCase()}function I(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ne(){this.data.inReference=void 0}function L(){this.data.referenceType=`collapsed`}function re(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=WD(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ie(e){this.data.characterReferenceType=e.type}function ae(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=UD(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=ID(t);let i=this.stack[this.stack.length-1];i.value+=r}function oe(e){let t=this.stack.pop();t.position.end=OA(e.end)}function se(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ce(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function le(){return{type:`blockquote`,children:[],position:void 0}}function ue(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function R(){return{type:`inlineCode`,value:``,position:void 0}}function z(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function B(){return{type:`emphasis`,children:[],position:void 0}}function de(){return{type:`heading`,depth:0,children:[],position:void 0}}function fe(){return{type:`break`,position:void 0}}function pe(){return{type:`html`,value:``,position:void 0}}function me(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function he(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function ge(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function V(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function _e(){return{type:`paragraph`,children:[],position:void 0}}function ve(){return{type:`strong`,children:[],position:void 0}}function ye(){return{type:`text`,value:``,position:void 0}}function be(){return{type:`thematicBreak`,position:void 0}}}function OA(e){return{line:e.line,column:e.column,offset:e.offset}}function kA(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?kA(e,r):AA(e,r)}}function AA(e,t){let n;for(n in t)if(TA.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function jA(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+YE({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+YE({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+YE({start:t.start,end:t.end})+`) is still open`)}function MA(e){let t=this;t.parser=n;function n(n){return EA(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function NA(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function PA(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
129
|
-
`}]}function FA(e,t){let n=t.value?t.value+`
|
|
130
|
-
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function IA(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function LA(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RA(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=iO(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function zA(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function BA(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function VA(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function HA(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return VA(e,t);let i={src:iO(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function UA(e,t){let n={src:iO(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function WA(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function GA(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return VA(e,t);let i={href:iO(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function KA(e,t){let n={href:iO(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function qA(e,t,n){let r=e.all(t),i=n?JA(n):YA(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
131
|
-
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
132
|
-
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function JA(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=YA(n[r])}return t}function YA(e){return e.spread??e.children.length>1}function XA(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function ZA(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function QA(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function $A(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ej(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=KE(t.children[1]),o=GE(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function tj(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function nj(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var rj=9,ij=32;function aj(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(oj(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(oj(t.slice(i),i>0,!1)),a.join(``)}function oj(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===rj||t===ij;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===rj||t===ij;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function sj(e,t){let n={type:`text`,value:aj(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function cj(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var lj={blockquote:NA,break:PA,code:FA,delete:IA,emphasis:LA,footnoteReference:RA,heading:zA,html:BA,imageReference:HA,image:UA,inlineCode:WA,linkReference:GA,link:KA,listItem:qA,list:XA,paragraph:ZA,root:QA,strong:$A,table:ej,tableCell:nj,tableRow:tj,text:sj,thematicBreak:cj,toml:uj,yaml:uj,definition:uj,footnoteDefinition:uj};function uj(){}var{defineProperty:dj}=Object,fj=typeof self==`object`?self:globalThis,pj=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new fj[e](t)},mj=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?dj(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof fj[e]==`function`?pj(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(pj(a,o),i)};return r},hj=e=>mj(new Map,e)(0),gj=``,{toString:_j}={},{keys:vj,is:yj}=Object,bj=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=_j.call(e).slice(8,-1);switch(n){case`Array`:return[1,gj];case`Object`:return[2,gj];case`Date`:return[3,gj];case`RegExp`:return[4,gj];case`Map`:return[5,gj];case`Set`:return[6,gj];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},xj=([e,t])=>e===0&&(t===`function`||t===`symbol`),Sj=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=bj(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&yj(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of vj(o))(e||!xj(bj(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?gj:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(xj(bj(n))||xj(bj(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!xj(bj(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},Cj=(e,{json:t,lossy:n}={})=>{let r=[];return Sj(!(t||n),!!t,new Map,r)(e),r},wj=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?hj(Cj(e,t)):structuredClone(e):(e,t)=>hj(Cj(e,t));function Tj(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function Ej(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Dj(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||Tj,r=e.options.footnoteBackLabel||Ej,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=iO(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...wj(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
133
|
-
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
134
|
-
`}]}}var Oj=(function(e){if(e==null)return Nj;if(typeof e==`function`)return Mj(e);if(typeof e==`object`)return Array.isArray(e)?kj(e):Aj(e);if(typeof e==`string`)return jj(e);throw Error(`Expected function, string, or object as test`)});function kj(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Oj(e[n]);return Mj(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Aj(e){let t=e;return Mj(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function jj(e){return Mj(t);function t(t){return t&&t.type===e}}function Mj(e){return t;function t(t,n,r){return!!(Pj(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Nj(){return!0}function Pj(e){return typeof e==`object`&&!!e&&`type`in e}function Fj(e){return e}var Ij=[];function Lj(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=Oj(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+Fj(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=Ij,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=Rj(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function Rj(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?Ij:[e]}function zj(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Lj(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var Bj={}.hasOwnProperty,Vj={};function Hj(e,t){let n=t||Vj,r=new Map,i=new Map,a={all:s,applyData:Wj,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...lj,...n.handlers},one:o,options:n,patch:Uj,wrap:Kj};return zj(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(Bj.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=wj(n);return r.children=a.all(e),r}return wj(e)}return(a.options.unknownHandler||Gj)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=qj(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=qj(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function Uj(e,t){e.position&&(t.position=JE(e))}function Wj(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,wj(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function Gj(e,t){let n=t.data||{},r=`value`in t&&!(Bj.call(n,`hProperties`)||Bj.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Kj(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
135
|
-
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
136
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
137
|
-
`}),n}function qj(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Jj(e,t){let n=Hj(e,t),r=n.one(e,void 0),i=Dj(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
138
|
-
`},i)),a}function Yj(e,t){return e&&`run`in e?async function(n,r){let i=Jj(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Jj(n,{file:r,...e||t})}}function Xj(e){if(e)throw e}var Zj=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function Qj(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $j(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?eM(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function eM(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var tM={basename:nM,dirname:rM,extname:iM,join:aM,sep:`/`};function nM(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);cM(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function rM(e){if(cM(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function iM(e){cM(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function aM(...e){let t=-1,n;for(;++t<e.length;)cM(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:oM(n)}function oM(e){cM(e);let t=e.codePointAt(0)===47,n=sM(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function sM(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function cM(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var lM={cwd:uM};function uM(){return`/`}function dM(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function fM(e){if(typeof e==`string`)e=new URL(e);else if(!dM(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return pM(e)}function pM(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var mM=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],hM=class{constructor(e){let t;t=e?dM(e)?{path:e}:typeof e==`string`||yM(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:lM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<mM.length;){let e=mM[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)mM.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?tM.basename(this.path):void 0}set basename(e){_M(e,`basename`),gM(e,`basename`),this.path=tM.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?tM.dirname(this.path):void 0}set dirname(e){vM(this.basename,`dirname`),this.path=tM.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?tM.extname(this.path):void 0}set extname(e){if(gM(e,`extname`),vM(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=tM.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){dM(e)&&(e=fM(e)),_M(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?tM.basename(this.path,this.extname):void 0}set stem(e){_M(e,`stem`),gM(e,`stem`),this.path=tM.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new $E(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function gM(e,t){if(e&&e.includes(tM.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+tM.sep+"`")}function _M(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function vM(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function yM(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var bM=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),xM=l(Zj(),1),SM={}.hasOwnProperty,CM=new class e extends bM{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$j()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,xM.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(EM(`data`,this.frozen),this.namespace[e]=t,this):SM.call(this.namespace,e)&&this.namespace[e]||void 0:e?(EM(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=kM(e),n=this.parser||this.Parser;return wM(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),wM(`process`,this.parser||this.Parser),TM(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=kM(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);jM(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),wM(`processSync`,this.parser||this.Parser),TM(`processSync`,this.compiler||this.Compiler),this.process(e,r),OM(`processSync`,`process`,t),n;function r(e,r){t=!0,Xj(e),n=r}}run(e,t,n){DM(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=kM(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),OM(`runSync`,`run`,n),r;function i(e,t){Xj(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=kM(t),r=this.compiler||this.Compiler;return TM(`stringify`,r),DM(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(EM(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,xM.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Qj(o)&&Qj(r)&&(r=(0,xM.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function wM(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function TM(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function EM(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function DM(e){if(!Qj(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function OM(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function kM(e){return AM(e)?e:new hM(e)}function AM(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function jM(e){return typeof e==`string`||MM(e)}function MM(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var NM=[],PM={allowDangerousHtml:!0},FM=/^(https?|ircs?|mailto|xmpp)$/i,IM=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function LM(e){let t=RM(e),n=zM(e);return BM(t.runSync(t.parse(n),n),e)}function RM(e){let t=e.rehypePlugins||NM,n=e.remarkPlugins||NM,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...PM}:PM;return CM().use(MA).use(n).use(Yj,r).use(t)}function zM(e){let t=e.children||``,n=new hM;return typeof t==`string`?n.value=t:``+t,n}function BM(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||VM;for(let e of IM)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return zj(e,l),sD(e,{Fragment:q.Fragment,components:i,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in kD)if(Object.hasOwn(kD,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=kD[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function VM(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||FM.test(e.slice(0,t))?e:``}function HM(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function UM(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function WM(e,t,n){let r=Oj((n||{}).ignore||[]),i=GM(t),a=-1;for(;++a<i.length;)Lj(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1)r.lastIndex=n+1;else{if(s!==n&&f({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a))for(let e of a)f(e);else a&&f(a);s=n+d[0].length,l=!0}if(!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&f({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function GM(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([KM(e[0]),qM(e[1])])}return t}function KM(e){return typeof e==`string`?new RegExp(UM(e),`g`):e}function qM(e){return typeof e==`function`?e:function(){return e}}var JM=`phrasing`,YM=[`autolink`,`link`,`image`,`label`];function XM(){return{transforms:[iN],enter:{literalAutolink:QM,literalAutolinkEmail:$M,literalAutolinkHttp:$M,literalAutolinkWww:$M},exit:{literalAutolink:rN,literalAutolinkEmail:nN,literalAutolinkHttp:eN,literalAutolinkWww:tN}}}function ZM(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:JM,notInConstruct:YM},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:JM,notInConstruct:YM},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:JM,notInConstruct:YM}]}}function QM(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function $M(e){this.config.enter.autolinkProtocol.call(this,e)}function eN(e){this.config.exit.autolinkProtocol.call(this,e)}function tN(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function nN(e){this.config.exit.autolinkEmail.call(this,e)}function rN(e){this.exit(e)}function iN(e){WM(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,aN],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,oN]],{ignore:[`link`,`linkReference`]})}function aN(e,t,n,r,i){let a=``;if(!lN(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!sN(n)))return!1;let o=cN(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function oN(e,t,n,r){return!lN(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function sN(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function cN(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=HM(e,`(`),a=HM(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function lN(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||nO(n)||tO(n))&&(!t||n!==47)}yN.peek=vN;function uN(){this.buffer()}function dN(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function fN(){this.buffer()}function pN(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function mN(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=WD(this.sliceSerialize(e)).toLowerCase(),n.label=t}function hN(e){this.exit(e)}function gN(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=WD(this.sliceSerialize(e)).toLowerCase(),n.label=t}function _N(e){this.exit(e)}function vN(){return`[`}function yN(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function bN(){return{enter:{gfmFootnoteCallString:uN,gfmFootnoteCall:dN,gfmFootnoteDefinitionLabelString:fN,gfmFootnoteDefinition:pN},exit:{gfmFootnoteCallString:mN,gfmFootnoteCall:hN,gfmFootnoteDefinitionLabelString:gN,gfmFootnoteDefinition:_N}}}function xN(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:yN},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
139
|
-
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?CN:SN))),s(),o}}function SN(e,t,n){return t===0?e:CN(e,t,n)}function CN(e,t,n){return(n?``:` `)+e}var wN=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];kN.attention=AN,kN.peek=jN;function TN(){return{canContainEols:[`delete`],enter:{strikethrough:DN},exit:{strikethrough:ON}}}function EN(){return{handlers:{delete:kN},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:wN}]}}function DN(e){this.enter({type:`delete`,children:[],position:void 0},e)}function ON(e){this.exit(e)}function kN(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function AN(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function jN(){return`~`}function MN(e){return e.length}function NN(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||MN,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=PN(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=FN(r[d]);else{let e=FN(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&(n.alignDelimiters!==!1||i!==``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
140
|
-
`)}function PN(e){return e==null?``:String(e)}function FN(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var IN=Oj([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function LN(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),RN);return i(),o}function RN(e,t,n){return`>`+(n?``:` `)+e}function zN(e,t){return BN(e,t.inConstruct,!0)&&!BN(e,t.notInConstruct,!1)}function BN(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function VN(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
|
|
141
|
-
`&&!e.before&&!e.after&&zN(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
|
|
142
|
-
`}function HN(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function UN(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function WN(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function GN(e,t,n,r){let i=WN(n),a=e.value||``;if(UN(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,KN);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(HN(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:`
|
|
143
|
-
`,encode:["`"],...o.current()})),t()}return u+=o.move(`
|
|
144
|
-
`),a&&(u+=o.move(a+`
|
|
145
|
-
`)),u+=o.move(s),c(),u}function KN(e,t,n){return(n?``:` `)+e}function qN(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function JN(e,t,n,r){let i=qN(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
146
|
-
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function YN(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}XN.attention=ZN,XN.peek=QN;function XN(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function ZN(e,t){return{construct:`emphasis`,markers:YN(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function QN(e,t,n){return n.options.emphasis||`*`}function $N(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function eP(e,t){let n=!1;return zj(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&jD(e)&&(t.options.setext||n))}function tP(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(eP(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
147
|
-
`,after:`
|
|
148
|
-
`});return r(),t(),o+`
|
|
149
|
-
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
150
|
-
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
151
|
-
`,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=$N(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}nP.peek=rP;function nP(e){return e.value||``}function rP(){return`<`}iP.peek=aP;function iP(e,t,n,r){let i=qN(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function aP(){return`!`}oP.peek=sP;function oP(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function sP(){return`!`}cP.peek=lP;function cP(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e);if(!e.atBreak)continue;let i;for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function lP(){return"`"}function uP(e,t){let n=jD(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][+\-.a-z]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}dP.peek=fP;function dP(e,t,n,r){let i=qN(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(uP(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function fP(e,t,n){return uP(e,n)?`<`:`[`}pP.peek=mP;function pP(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function mP(){return`[`}function hP(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function gP(e){let t=hP(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function _P(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function vP(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function yP(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?_P(n):hP(n),s=e.ordered?o===`.`?`)`:`.`:gP(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),vP(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function bP(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function xP(e,t,n,r){let i=bP(n),a=n.bulletCurrent||hP(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function SP(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function CP(e,t,n,r){if(!e.children.some(function(e){return IN(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function wP(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}TP.attention=EP,TP.peek=DP;function TP(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function EP(e,t){return{construct:`strong`,markers:wP(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function DP(e,t,n){return n.options.strong||`*`}function OP(e,t,n,r){let i=t?t.children:[],a=i.indexOf(e);return n.safe(e.value,{...r,afterNode:i[a+1],beforeNode:i[a-1]})}function kP(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function AP(e,t,n){let r=(vP(n)+(n.options.ruleSpaces?` `:``)).repeat(kP(n));return n.options.ruleSpaces?r.slice(0,-1):r}var jP={blockquote:LN,break:VN,code:GN,definition:JN,emphasis:XN,hardBreak:VN,heading:tP,html:nP,image:iP,imageReference:oP,inlineCode:cP,link:dP,linkReference:pP,list:yP,listItem:xP,paragraph:SP,root:CP,strong:TP,text:OP,thematicBreak:AP};function MP(){return{enter:{table:NP,tableData:LP,tableHeader:LP,tableRow:FP},exit:{codeText:RP,table:PP,tableData:IP,tableHeader:IP,tableRow:IP}}}function NP(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function PP(e){this.exit(e),this.data.inTable=void 0}function FP(e){this.enter({type:`tableRow`,children:[]},e)}function IP(e){this.exit(e)}function LP(e){this.enter({type:`tableCell`,children:[]},e)}function RP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,zP));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function zP(e,t){return t===`|`?t:e}function BP(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
152
|
-
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
153
|
-
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return NN(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=jP.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function VP(){return{exit:{taskListCheckValueChecked:UP,taskListCheckValueUnchecked:UP,paragraph:WP}}}function HP(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:GP}}}function UP(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function WP(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function GP(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=jP.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function KP(){return[XM(),bN(),TN(),MP(),VP()]}function qP(e){return{extensions:[ZM(),xN(e),EN(),BP(e),HP()]}}var JP={tokenize:cF,partial:!0},YP={tokenize:lF,partial:!0},XP={tokenize:uF,partial:!0},ZP={tokenize:dF,partial:!0},QP={tokenize:fF,partial:!0},$P={name:`wwwAutolink`,tokenize:oF,previous:pF},eF={name:`protocolAutolink`,tokenize:sF,previous:mF},tF={name:`emailAutolink`,tokenize:aF,previous:hF},nF={};function rF(){return{text:nF}}for(var iF=48;iF<123;)nF[iF]=tF,iF++,iF===58?iF=65:iF===91&&(iF=97);nF[43]=tF,nF[45]=tF,nF[46]=tF,nF[95]=tF,nF[72]=[tF,eF],nF[104]=[tF,eF],nF[87]=[tF,$P],nF[119]=[tF,$P];function aF(e,t,n){let r=this,i,a;return o;function o(t){return!gF(t)||!hF.call(r,r.previous)||_F(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return gF(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(QP,u,l)(t):t===45||t===95||KD(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&GD(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function oF(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!pF.call(r,r.previous)||_F(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(JP,e.attempt(YP,e.attempt(XP,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function sF(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&mF.call(r,r.previous)&&!_F(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(GD(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||JD(t)||$D(t)||nO(t)||tO(t)?n(t):e.attempt(YP,e.attempt(XP,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function cF(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function lF(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(ZP,c,s)(t):t===null||$D(t)||nO(t)||t!==45&&tO(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function uF(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(ZP,t,a)(o):o===null||$D(o)||nO(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function dF(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||$D(o)||nO(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||$D(e)||nO(e)?t(e):r(e)}function a(e){return GD(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):GD(t)?(e.consume(t),o):n(t)}}function fF(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return KD(e)?n(e):t(e)}}function pF(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||$D(e)}function mF(e){return!GD(e)}function hF(e){return!(e===47||gF(e))}function gF(e){return e===43||e===45||e===46||e===95||KD(e)}function _F(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var vF={tokenize:EF,partial:!0};function yF(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:CF,continuation:{tokenize:wF},exit:TF}},text:{91:{name:`gfmFootnoteCall`,tokenize:SF},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:bF,resolveTo:xF}}}}function bF(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=WD(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function xF(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function SF(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||$D(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(WD(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return $D(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function CF(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||$D(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=WD(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return $D(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),aO(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function wF(e,t,n){return e.check(CO,t,e.attempt(vF,t,n))}function TF(e){e.exit(`gfmFootnoteDefinition`)}function EF(e,t,n){let r=this;return aO(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function DF(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&LD(o,o.length,0,gO(s,e.slice(r+1,n),t)),LD(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),LD(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=hO(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=hO(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var OF=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){kF(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function kF(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function AF(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function jF(){return{flow:{null:{name:`table`,tokenize:MF,resolveAll:NF}}}}function MF(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):QD(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):eO(t)?aO(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||$D(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,eO(t)?aO(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return eO(t)?aO(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||QD(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return eO(t)?aO(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||QD(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||QD(n)?(e.exit(`tableRow`),t(n)):eO(n)?aO(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||$D(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function NF(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new OF;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(FF(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=PF(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=PF(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=PF(f,t,o,i,n,d)):(o[0]=o[1],d=PF(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&FF(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=AF(t.events,n))}return e}function PF(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},IF(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=IF(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=IF(t.events,n[2]),a=IF(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},IF(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function FF(e,t,n,r,i){let a=[],o=IF(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function IF(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var LF={name:`tasklistCheck`,tokenize:zF};function RF(){return{text:{91:LF}}}function zF(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return $D(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return QD(r)?t(r):eO(r)?e.check({tokenize:BF},t,n)(r):n(r)}}function BF(e,t,n){return aO(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function VF(e){return BD([rF(),yF(),DF(e),jF(),RF()])}var HF={};function UF(e){let t=this,n=e||HF,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(VF(n)),a.push(KP()),o.push(qP(n))}var WF=/\.(?:png|jpe?g|gif|webp|svg|avif|bmp|ico|tiff?|heic|heif)$/i;function GF(e,t=!1){let n=cr(e);return n&&(t||WF.test(n))?n:void 0}function KF(e,t){return`/api/threads/${encodeURIComponent(e)}/images?path=${encodeURIComponent(t)}`}async function qF(e,t,n){let r=await fetch(KF(e,t),{credentials:`same-origin`,headers:{Accept:`image/png, image/jpeg, image/gif, image/webp, application/json`},signal:n}),i=r.headers.get(`content-type`)?.split(`;`,1)[0]?.trim().toLowerCase();if(!r.ok){if(i===`application/json`){let e=await r.json();if(e&&typeof e==`object`&&`error`in e){let t=e.error;if(t&&typeof t==`object`&&`code`in t&&typeof t.code==`string`&&`message`in t&&typeof t.message==`string`)throw new fr(r.status,{code:t.code,message:t.message})}}throw Error(r.status===401||r.status===403?Ct(`preview:cannot_read_image_check_login_and_file_access`):Ct(`preview:image_loading_failed_please_retry`,{v0:r.status}))}if(!i||![`image/png`,`image/jpeg`,`image/gif`,`image/webp`].includes(i))throw Error(Ct(i===`text/html`?`preview:your_login_may_have_expired_log_in_again`:`preview:the_server_did_not_return_a_supported_image`));return r.blob()}var JF=32,YF=67108864,XF={},ZF=class{threadId;entries=new Map;constructor(e){this.threadId=e}snapshot(e){return this.entries.get(e)?.state??XF}subscribe(e,t){let n=this.entry(e);return n.listeners.add(t),()=>{n.listeners.delete(t),this.trim()}}load(e,t=!1){let n=this.entry(e);if(n.pending)return n.pending.promise;if(!t&&n.state.src&&Date.now()-n.checkedAt<3e4)return Promise.resolve();n.state.error&&this.publish(n,XF);let r=new AbortController,i={controller:r,promise:Promise.resolve()};n.pending=i;let a=()=>this.entries.get(e)===n&&n.pending===i,o=setTimeout(()=>r.abort(Error(Ct(`preview:image_loading_timed_out_please_retry`))),35e3);return i.promise=qF(this.threadId,e,r.signal).then(e=>{if(!a()||r.signal.aborted)return;let t=n.state.src;n.bytes=e.size,n.checkedAt=Date.now(),this.publish(n,{src:URL.createObjectURL(e)}),t&&URL.revokeObjectURL(t)}).catch(e=>{a()&&this.reject(n,ha(e))}).finally(()=>{clearTimeout(o),a()&&(n.pending=void 0,this.trim())}),i.promise}fail(e,t,n){let r=this.entries.get(e);r&&r.state.src===t&&this.reject(r,n)}clear(){let e=[...this.entries.values()];this.entries.clear();for(let t of e)t.pending?.controller.abort(),t.state.src&&URL.revokeObjectURL(t.state.src),this.publish(t,XF)}entry(e){let t=this.entries.get(e)??{state:XF,checkedAt:0,bytes:0,listeners:new Set};return this.entries.delete(e),this.entries.set(e,t),t}publish(e,t){e.state=t;for(let t of e.listeners)t()}reject(e,t){let n=e.state.src;e.bytes=0,e.checkedAt=0,this.publish(e,{error:t}),n&&URL.revokeObjectURL(n)}trim(){let e=[...this.entries].filter(([,e])=>e.listeners.size===0),t=e.length,n=e.reduce((e,[,t])=>e+t.bytes,0);for(let[r,i]of e){if(t<=JF&&n<=YF)break;this.entries.delete(r),i.pending?.controller.abort(),i.state.src&&URL.revokeObjectURL(i.state.src),t--,n-=i.bytes}}},QF=(0,y.createContext)({open:()=>{}});function $F(e){return(0,q.jsx)(eI,{...e},e.threadId)}function eI({threadId:e,children:t}){let[n,r]=(0,y.useState)(),i=(0,y.useMemo)(()=>e?new ZF(e):void 0,[e]);(0,y.useEffect)(()=>()=>i?.clear(),[i]);let a=(0,y.useMemo)(()=>({threadId:e,cache:i,open:r}),[e,i]);return(0,q.jsxs)(QF,{value:a,children:[t,n&&(n.url||e)&&(0,q.jsx)(sI,{target:n,onClose:()=>r(void 0)},n.url||n.path)]})}function tI(){return(0,y.useContext)(QF)}function nI({path:e,url:t}){let{cache:n}=tI(),r=(0,y.useCallback)(t=>n&&e?n.subscribe(e,t):()=>{},[n,e]),i=(0,y.useCallback)(()=>n&&e?n.snapshot(e):XF,[n,e]),a=(0,y.useSyncExternalStore)(r,i,()=>XF),[o,s]=(0,y.useState)(()=>({src:t})),[c,l]=(0,y.useState)(0);(0,y.useEffect)(()=>{t?s({src:t}):n&&e&&n.load(e)},[n,e,t,c]);let u=t?o:a;return{...u,retry:()=>{n&&e?n.load(e,!0):(s({}),l(e=>e+1))},fail:()=>{let r=H(t?`preview:image_failed_to_load_it_may_have_expired`:`preview:cannot_decode_image_the_file_may_be_damaged`);n&&e?n.fail(e,u.src,r):s({error:r})}}}function rI({error:e,path:t,retry:n,url:r}){return(0,q.jsxs)(`span`,{className:`local-image-error`,role:`alert`,children:[(0,q.jsx)(`span`,{children:U(e)}),(0,q.jsx)(`code`,{children:t}),r&&(0,q.jsx)(`a`,{href:r,target:`_blank`,rel:`noopener noreferrer`,children:H(`preview:open_original_image`)}),n&&(0,q.jsx)(`button`,{type:`button`,className:`image-retry`,onClick:n,children:H(`preview:retry_loading_image`)})]})}function iI({source:e,alt:t,title:n,interactive:r=!0}){let{open:i}=tI(),a=nI(e),{path:o,url:s}=e,c=t||(o?o.split(`/`).at(-1):void 0)||H(`common:image`),l=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`img`,{className:`local-image-thumbnail`,src:a.src,alt:t||c,referrerPolicy:s?`no-referrer`:void 0,onError:a.fail}),(0,q.jsxs)(`span`,{className:`local-image-caption`,children:[c,r&&(0,q.jsx)(`span`,{"aria-hidden":`true`,children:` ↗`})]})]});return(0,q.jsx)(`span`,{className:`local-image`,children:a.error?(0,q.jsx)(rI,{error:U(a.error),path:s??o,retry:r?a.retry:void 0,url:r?s:void 0}):a.src?r?(0,q.jsx)(bS,{asChild:!0,content:n||H(`preview:click_to_enlarge_image`),children:(0,q.jsx)(`button`,{type:`button`,className:`local-image-open`,"aria-label":H(`common:preview_image`,{v0:c}),onClick:()=>i({...e,label:c}),children:l})}):(0,q.jsx)(bS,{asChild:!0,content:n,children:(0,q.jsx)(`span`,{className:`local-image-open`,children:l})}):(0,q.jsxs)(`span`,{className:`local-image-loading`,role:`status`,children:[H(`preview:loading_image`),(0,q.jsx)(`code`,{children:s||o})]})})}function aI({path:e,...t}){return(0,q.jsx)(iI,{source:{path:e},...t})}function oI({src:e,...t}){return e?(0,q.jsx)(iI,{source:{url:e},...t}):(0,q.jsx)(`span`,{className:`local-image-error`,role:`alert`,children:H(`preview:image_url_unavailable`)})}function sI({target:e,onClose:t}){let n=(0,y.useRef)(null),r=(0,y.useRef)(null),i=nI(e),[a,o]=(0,y.useState)(1),[s,c]=(0,y.useState)({width:0,height:0}),[l,u]=(0,y.useState)({width:0,height:0});(0,y.useEffect)(()=>{let e=n.current,t=document.activeElement;return e?.showModal(),()=>{e?.close(),t instanceof HTMLElement&&t.isConnected&&t.focus()}},[]),(0,y.useEffect)(()=>{let e=r.current;if(!e)return;let t=new ResizeObserver(()=>u({width:e.clientWidth,height:e.clientHeight}));return t.observe(e),()=>t.disconnect()},[]);let d=s.width&&l.width?Math.min(1,l.width/s.width,l.height/s.height):0,f=!(!i.src||i.error);return(0,q.jsxs)(`dialog`,{ref:n,className:`image-preview-dialog`,"aria-label":H(`preview:image_preview`),onCancel:e=>{e.preventDefault(),t()},onKeyDown:e=>{e.ctrlKey||e.metaKey||e.altKey||!f||(e.key===`+`||e.key===`=`?(e.preventDefault(),o(e=>Math.min(4,e+.25))):e.key===`-`?(e.preventDefault(),o(e=>Math.max(.5,e-.25))):e.key===`0`&&(e.preventDefault(),o(1)))},children:[(0,q.jsxs)(`div`,{className:`image-preview-heading`,children:[(0,q.jsx)(`h2`,{children:e.label}),(0,q.jsx)(J,{autoFocus:!0,variant:`ghost`,size:`icon`,"aria-label":H(`preview:close_image_preview`),onClick:t,children:(0,q.jsx)(Y,{name:`close`,size:19})})]}),(0,q.jsxs)(`div`,{className:`image-preview-toolbar`,"aria-label":H(`preview:image_zoom`),children:[(0,q.jsx)(J,{variant:`secondary`,size:`sm`,"aria-label":H(`preview:zoom_out`),disabled:!f||a<=.5,onClick:()=>o(e=>Math.max(.5,e-.25)),children:`−`}),(0,q.jsxs)(`output`,{"aria-label":H(`preview:image_zoom_level`),children:[Math.round(a*100),`%`]}),(0,q.jsx)(J,{variant:`secondary`,size:`sm`,"aria-label":H(`preview:zoom_in`),disabled:!f||a>=4,onClick:()=>o(e=>Math.min(4,e+.25)),children:`+`}),(0,q.jsx)(J,{variant:`ghost`,size:`sm`,disabled:!f,onClick:()=>o(1),children:H(`preview:fit_to_window`)}),(0,q.jsx)(`span`,{className:`image-preview-shortcuts`,children:H(`preview:to_zoom_esc_to_close`)})]}),(0,q.jsx)(`div`,{className:`image-preview-viewport`,ref:r,tabIndex:0,"aria-label":H(`preview:image_viewing_area`),children:i.error?(0,q.jsx)(rI,{error:U(i.error),path:e.url??e.path,retry:i.retry,url:e.url}):i.src?(0,q.jsx)(`div`,{className:`image-preview-canvas`,children:(0,q.jsx)(`img`,{src:i.src,referrerPolicy:e.url?`no-referrer`:void 0,alt:e.label,style:d?{width:s.width*d*a,height:s.height*d*a}:{maxWidth:`100%`},onLoad:e=>c({width:e.currentTarget.naturalWidth,height:e.currentTarget.naturalHeight}),onError:i.fail})}):(0,q.jsx)(`span`,{className:`local-image-loading`,role:`status`,children:H(`preview:loading_image`)})}),(0,q.jsxs)(`p`,{className:`image-preview-path`,children:[(0,q.jsx)(`span`,{children:e.url?H(`preview:original_image_link`):H(`preview:original_path_2`)}),e.url?(0,q.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,children:H(`preview:open_original_image`)}):(0,q.jsx)(`code`,{children:e.path})]})]})}function cI({children:e}){let t=(0,y.useRef)(null),n=(0,y.useRef)(!1),r=(0,y.useRef)(void 0),[i,a]=(0,y.useState)(`idle`);(0,y.useEffect)(()=>()=>clearTimeout(r.current),[]);async function o(){if(!n.current&&t.current){n.current=!0,clearTimeout(r.current),a(`idle`);try{await navigator.clipboard.writeText(t.current.textContent??``),a(`copied`),r.current=setTimeout(()=>a(`idle`),2e3)}catch{a(`failed`)}finally{n.current=!1}}}return(0,q.jsxs)(`div`,{className:`markdown-code-block`,children:[(0,q.jsxs)(`div`,{className:`markdown-code-toolbar`,children:[(0,q.jsxs)(`span`,{className:`code-copy-feedback code-copy-${i}`,role:`status`,children:[i===`copied`&&H(`common:copied`),i===`failed`&&H(`preview:copy_failed_select_and_copy_the_code_manually`)]}),(0,q.jsx)(bS,{asChild:!0,content:H(`preview:copy_code_block`),children:(0,q.jsx)(J,{variant:`ghost`,size:`icon`,className:`code-copy-button`,"aria-label":H(`preview:copy_code_block`),onClick:()=>void o(),children:(0,q.jsx)(Y,{name:i===`copied`?`check`:`copy`,size:16})})})]}),(0,q.jsx)(`pre`,{ref:t,tabIndex:0,"aria-label":H(`preview:code_block`),children:e})]})}var lI=`modulepreload`,uI=function(e){return`/`+e},dI={},fI=function(e){return e.pathname.endsWith(`.css`)},pI=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},mI=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=uI(t,n);let r=s(t),i=fI(r);return pI(dI,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:lI,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},hI=0,gI=Promise.resolve();function _I(e,t,n){let r=gI.then(async()=>{if(n.throwIfAborted(),e.length>5e4)throw Error(`Mermaid source exceeds the rendering limit`);let{default:r}=await mI(async()=>{let{default:e}=await import(`./mermaid.core-Cpmnbntb.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));n.throwIfAborted(),r.initialize({startOnLoad:!1,securityLevel:`strict`,suppressErrorRendering:!0,maxTextSize:5e4,maxEdges:500,theme:`base`,fontFamily:t.fontFamily,themeVariables:{darkMode:t.dark,background:t.background,fontFamily:t.fontFamily,primaryColor:t.accentSoft,primaryTextColor:t.text,primaryBorderColor:t.border,secondaryColor:t.panel,secondaryTextColor:t.text,secondaryBorderColor:t.border,tertiaryColor:t.panel,tertiaryTextColor:t.text,tertiaryBorderColor:t.border,lineColor:t.muted,arrowheadColor:t.muted,edgeLabelBackground:t.background,clusterBkg:t.panel,clusterBorder:t.border,actorLineColor:t.muted,signalColor:t.muted,signalTextColor:t.text,activationBkgColor:t.accentSoft,activationBorderColor:t.border,noteBkgColor:t.panel,noteTextColor:t.text,noteBorderColor:t.border,attributeBackgroundColorOdd:t.background,attributeBackgroundColorEven:t.panel,gridColor:t.border,todayLineColor:t.accent,pie1:t.accentSoft,pie2:t.border,pie3:t.panel,pieStrokeColor:t.border,pieOuterStrokeColor:t.border,pieStrokeWidth:`1px`,pieOuterStrokeWidth:`1px`,pieOpacity:`1`,useGradient:!1,dropShadow:`none`},themeCSS:`
|
|
154
|
-
* { filter: none !important; text-shadow: none !important; }
|
|
155
|
-
.grid .tick line { stroke: ${t.border}; }
|
|
156
|
-
`,htmlLabels:!1,flowchart:{htmlLabels:!1},secure:[`secure`,`securityLevel`,`startOnLoad`,`suppressErrorRendering`,`maxTextSize`,`maxEdges`,`dompurifyConfig`,`theme`,`themeCSS`,`themeVariables`,`fontFamily`,`htmlLabels`,`flowchart`]});let i=document.createElement(`div`);i.style.cssText=`position:fixed;left:-100000px;top:0;visibility:hidden;`,i.setAttribute(`aria-hidden`,`true`),document.body.append(i);try{let{svg:t}=await r.render(`mermaid-${++hI}`,e,i);n.throwIfAborted();let a=new DOMParser().parseFromString(t,`image/svg+xml`),o=a.documentElement;if(o.localName!==`svg`||a.querySelector(`parsererror`))throw Error(`Invalid Mermaid SVG`);let s=o.getAttribute(`viewBox`)?.trim().split(/[\s,]+/).map(Number);return s?.length===4&&s.every(Number.isFinite)&&(o.setAttribute(`width`,String(s[2])),o.setAttribute(`height`,String(s[3]))),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(o))}`}finally{i.remove()}});return gI=r.catch(()=>{}),r}function vI(){let e=getComputedStyle(document.documentElement),t=document.createElement(`canvas`);t.width=t.height=1;let n=t.getContext(`2d`),r=e=>(n.fillStyle=e,n.fillRect(0,0,1,1),`#`+[...n.getImageData(0,0,1,1).data].slice(0,3).map(e=>e.toString(16).padStart(2,`0`)).join(``)),i=t=>r(e.getPropertyValue(t).trim()),a=r(e.backgroundColor),o=a.slice(1).match(/../g).map(e=>parseInt(e,16));return{dark:o[0]*.299+o[1]*.587+o[2]*.114<128,background:a,text:r(e.color),border:i(`--border`),muted:i(`--muted`),panel:i(`--sidebar`),accent:i(`--accent`),accentSoft:i(`--accent-soft`),fontFamily:e.fontFamily}}function yI(){let[e,t]=(0,y.useState)(vI);return(0,y.useEffect)(()=>{let e=matchMedia(`(prefers-color-scheme: dark)`),n=()=>{let e=vI();t(t=>JSON.stringify(t)===JSON.stringify(e)?t:e)},r=new MutationObserver(n);return r.observe(document.documentElement,{attributes:!0}),n(),e.addEventListener(`change`,n),()=>{r.disconnect(),e.removeEventListener(`change`,n)}},[]),e}function bI({source:e,pending:t}){let n=yI(),[r,i]=(0,y.useState)(),[a,o]=(0,y.useState)(!1),[s,c]=(0,y.useState)(!1),[l,u]=(0,y.useState)(``),d=(0,y.useRef)(!1),f=(0,y.useRef)(void 0);(0,y.useEffect)(()=>()=>clearTimeout(f.current),[]),(0,y.useEffect)(()=>{if(t)return;let r=new AbortController;return _I(e,n,r.signal).then(t=>{r.signal.aborted||i({source:e,theme:n,url:t})},()=>{r.signal.aborted||i({source:e,theme:n,failed:!0})}),()=>r.abort()},[e,n,t]);let p=!t&&r?.source===e&&r.theme===n?r:void 0,m=t||p?.failed||a;async function h(){if(!d.current){d.current=!0,clearTimeout(f.current);try{await navigator.clipboard.writeText(e),u(Ct(`preview:new_mermaid_source_copied`)),f.current=setTimeout(()=>u(``),2e3)}catch{o(!0),u(Ct(`preview:new_copy_failed_select_and_copy_the_source`))}finally{d.current=!1}}}return(0,q.jsxs)(`div`,{className:`mermaid-block`,"data-theme":n.dark?`dark`:`light`,style:{"--mermaid-background":n.background,"--mermaid-text":n.text},children:[(0,q.jsxs)(`div`,{className:`mermaid-toolbar`,children:[(0,q.jsx)(`span`,{className:`mermaid-label`,children:`Mermaid`}),(0,q.jsx)(J,{variant:`ghost`,size:`sm`,disabled:!p?.url,"aria-pressed":a,onClick:()=>o(e=>!e),children:H(a?`preview:new_view_diagram`:`preview:new_view_source`)}),(0,q.jsx)(J,{variant:`ghost`,size:`sm`,disabled:!p?.url||!!m,"aria-pressed":s,onClick:()=>c(e=>!e),children:H(s?`preview:new_fit_width`:`preview:new_actual_size`)}),(0,q.jsx)(J,{variant:`ghost`,size:`sm`,onClick:()=>void h(),children:H(`preview:new_copy_source`)})]}),l&&(0,q.jsx)(`p`,{className:`mermaid-feedback`,role:`status`,children:U(l)}),t?(0,q.jsx)(`p`,{className:`mermaid-notice`,role:`status`,children:H(`preview:new_receiving_mermaid_source_the_diagram_appears_when`)}):p?.failed?(0,q.jsx)(`p`,{className:`mermaid-notice mermaid-error`,role:`alert`,children:H(`preview:new_cannot_render_this_mermaid_diagram_check_the`)}):p?.url?null:(0,q.jsx)(`p`,{className:`mermaid-notice`,role:`status`,children:H(`preview:new_rendering_mermaid_diagram`)}),m?(0,q.jsx)(`pre`,{className:`mermaid-source`,tabIndex:0,"aria-label":H(`preview:new_mermaid_source`),children:(0,q.jsx)(`code`,{children:e})}):p?.url?(0,q.jsx)(`div`,{className:`mermaid-diagram${s?` mermaid-actual-size`:``}`,role:`region`,"aria-label":H(`preview:new_mermaid_diagram_region`),tabIndex:0,children:(0,q.jsx)(`img`,{src:p.url,alt:H(`preview:new_mermaid_diagram`),onError:()=>i({source:e,theme:n,failed:!0})})}):null]})}function xI(e){let t=e.trimEnd().split(`
|
|
157
|
-
`),n=/^(`{3,}|~{3,})/.exec(t[0]??``),r=/^(?:[ \t]*>[ \t]?)*[ \t]*(`+|~+)[ \t]*$/.exec(t.at(-1)??``);return!!(t.length>1&&n?.[1]&&r?.[1]&&r[1][0]===n[1][0]&&r[1].length>=n[1].length)}var SI=(e,t)=>GF(e,t===`src`)||t===`href`&&ur(e)?e:VM(e),CI=(0,y.createContext)(void 0),wI=(0,y.createContext)(!1),TI=(0,y.createContext)({text:``,streaming:!1}),EI={pre:function({children:e,node:t}){let{text:n,streaming:r}=(0,y.useContext)(TI),i=y.Children.toArray(e)[0];if((0,y.isValidElement)(i)&&i.type===`code`&&i.props.className?.toLowerCase()===`language-mermaid`){let e=n.slice(t?.position?.start.offset,t?.position?.end.offset);return(0,q.jsx)(bI,{source:String(i.props.children??``),pending:r&&!xI(e)})}return(0,q.jsx)(cI,{children:e})},a:function({children:e,href:t,title:n}){let{threadId:r,open:i}=tI(),a=(0,y.useContext)(CI),o=AI(),s=t?ur(t):void 0;if(s&&o.threadId){let t=lr(s,a);return(0,q.jsx)(wI,{value:!0,children:(0,q.jsx)(`a`,{href:dr(o.threadId,t),className:`local-file-link`,title:n||H(`preview:preview_file`,{v0:t}),onClick:e=>{e.preventDefault(),o.open(t)},children:e})})}let c=t?GF(t):void 0,l=c?lr(c,a):void 0;return l&&r?(0,q.jsx)(wI,{value:!0,children:(0,q.jsx)(bS,{asChild:!0,content:n||H(`common:preview_image`,{v0:l}),children:(0,q.jsx)(`a`,{href:KF(r,l),className:`local-image-link`,onClick:t=>{t.preventDefault(),i({path:l,label:typeof e==`string`?e:l.split(`/`).at(-1)||H(`common:image`)})},children:e})})}):(0,q.jsx)(wI,{value:!0,children:(0,q.jsx)(bS,{asChild:!0,content:n,children:(0,q.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,children:e})})})},img:function({src:e,alt:t,title:n}){let r=(0,y.useContext)(wI),i=(0,y.useContext)(CI),a=typeof e==`string`?GF(e,!0):void 0,o=a?lr(a,i):void 0;return o?(0,q.jsx)(aI,{path:o,alt:t,title:n,interactive:!r},o):(0,q.jsx)(oI,{src:typeof e==`string`?e:``,alt:t,title:n,interactive:!r},String(e))},table:({children:e})=>(0,q.jsx)(`div`,{className:`markdown-table-scroll`,role:`region`,"aria-label":H(`preview:table`),tabIndex:0,children:(0,q.jsx)(`table`,{children:e})})};function DI({text:e,baseFile:t,streaming:n=!1,externalBaseUrl:r}){return(0,q.jsx)(CI,{value:t,children:(0,q.jsx)(TI,{value:{text:e,streaming:n},children:(0,q.jsx)(`div`,{className:`markdown`,children:(0,q.jsx)(LM,{skipHtml:!0,remarkPlugins:[UF],components:EI,urlTransform:r?e=>{let t=VM(e);if(!t)return``;try{return new URL(t,r).href}catch{return``}}:SI,children:e})})})})}function OI({threadId:e,path:t,onClose:n}){let r=ar(t),i=r===`text`,a=r===`markdown`?`Markdown`:t.split(`.`).at(-1).toUpperCase(),o=(0,y.useRef)(null),[s,c]=(0,y.useState)(),[l,u]=(0,y.useState)(),[d,f]=(0,y.useState)(0),[p,m]=(0,y.useState)(`preview`),[h,g]=(0,y.useState)(!0),[_,v]=(0,y.useState)(``),b=(0,y.useRef)(!1),x=(0,y.useRef)(void 0);(0,y.useEffect)(()=>()=>clearTimeout(x.current),[]),(0,y.useEffect)(()=>{let n=new AbortController,r=setTimeout(()=>{n.abort(),u(Ct(`preview:file_loading_timed_out_please_retry`))},35e3);return c(void 0),u(void 0),pr.previewFile(e,t,n.signal).then(e=>{n.signal.aborted||c(e)}).catch(e=>{n.signal.aborted||u(ha(e))}).finally(()=>clearTimeout(r)),()=>{clearTimeout(r),n.abort()}},[e,t,d]);async function S(){if(s&&!b.current){b.current=!0,clearTimeout(x.current),v(``);try{await navigator.clipboard.writeText(s.content),v(Ct(`preview:copied_source`,{v0:a})),x.current=setTimeout(()=>v(``),2500)}catch{m(`source`),v(Ct(`preview:copy_failed_select_and_copy_the_source_manually`))}finally{b.current=!1}}}return(0,y.useEffect)(()=>{p===`source`&&o.current?.focus({preventScroll:!0})},[p]),(0,q.jsxs)(Ua,{label:H(`preview:file_preview`,{v0:a}),closeLabel:H(`preview:close_file_preview`),title:t.split(`/`).at(-1)??t,subtitle:H(`preview:file`,{v0:a}),icon:(0,q.jsx)(Sn,{size:19,className:`file-preview-icon`,"aria-hidden":`true`}),onClose:n,actions:(0,q.jsxs)(J,{variant:`secondary`,size:`sm`,disabled:!s,onClick:()=>void S(),children:[_.startsWith(H(`common:copied`))?(0,q.jsx)(Zt,{size:15}):(0,q.jsx)(un,{size:15}),H(`preview:copy_source`)]}),children:[(0,q.jsxs)(`div`,{className:`file-preview-toolbar`,children:[i?(0,q.jsx)(J,{variant:`ghost`,size:`sm`,"aria-pressed":h,onClick:()=>g(e=>!e),children:H(`preview:wrap_lines`)}):(0,q.jsxs)(`div`,{role:`group`,"aria-label":H(`preview:file_display_mode`),children:[(0,q.jsx)(J,{variant:`ghost`,size:`sm`,"aria-pressed":p===`preview`,onClick:()=>m(`preview`),children:H(`preview:preview`)}),(0,q.jsx)(J,{variant:`ghost`,size:`sm`,"aria-pressed":p===`source`,onClick:()=>m(`source`),children:H(`preview:source`)})]}),(0,q.jsx)(`span`,{children:H(`common:read_only`)})]}),(0,q.jsx)(`p`,{className:`file-preview-feedback`,role:`status`,children:U(_)}),(0,q.jsx)(`div`,{className:`file-preview-scroll`,tabIndex:0,"aria-label":H(`preview:file_content`),children:l?(0,q.jsxs)(`div`,{className:`file-preview-error`,role:`alert`,children:[(0,q.jsx)(Sn,{size:28,"aria-hidden":`true`}),(0,q.jsx)(`h3`,{children:H(`preview:cannot_preview_this_file`)}),(0,q.jsx)(`p`,{children:U(l)}),wt(l)&&(0,q.jsxs)(`details`,{children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsx)(`pre`,{children:wt(l)})]}),(0,q.jsx)(J,{variant:`secondary`,onClick:()=>f(e=>e+1),children:H(`common:reload`)})]}):s?i?(0,q.jsxs)(q.Fragment,{children:[s.content.length===0&&(0,q.jsx)(`p`,{className:`file-preview-loading`,role:`status`,children:H(`preview:empty_file`)}),(0,q.jsx)(`pre`,{ref:o,className:`file-preview-source text-file-source${h?``:` text-file-nowrap`}`,tabIndex:0,"aria-label":H(`preview:source_2`,{v0:a}),children:s.content})]}):p===`preview`?a===`JSON`?(0,q.jsx)(ZT,{content:s.content}):(0,q.jsx)($F,{threadId:e,children:(0,q.jsx)(DI,{text:s.content,baseFile:s.path})}):(0,q.jsx)(`pre`,{ref:o,className:`file-preview-source`,tabIndex:0,"aria-label":H(`preview:source_2`,{v0:a}),children:s.content}):(0,q.jsx)(`p`,{className:`file-preview-loading`,role:`status`,children:H(`preview:loading_file`)})},`${d}:${p}`),(0,q.jsx)(`footer`,{className:`file-preview-path`,title:s?.path??t,children:s?.path??t})]})}var kI=(0,y.createContext)({open:()=>{},openDiff:()=>{}}),AI=()=>(0,y.useContext)(kI),jI=()=>(0,y.useContext)(kI).openDiff;function MI({threadId:e,getHistoryCursor:t,children:n}){let[r,i]=(0,y.useState)();(0,y.useEffect)(()=>i(void 0),[e]);let a=(0,y.useCallback)(()=>i(void 0),[]),o=(0,y.useMemo)(()=>({threadId:e,open:t=>{e&&i({threadId:e,kind:`file`,path:t})},openDiff:n=>{e&&i({threadId:e,kind:`diff`,diff:{...n,cursor:t?.(n.id)}})}}),[e,t]);return(0,q.jsxs)(kI,{value:o,children:[n,r&&r.threadId===e&&(r.kind===`file`?(0,q.jsx)(OI,{threadId:r.threadId,path:r.path,onClose:a},`${e}:${r.path}`):(0,q.jsx)(Ga,{threadId:r.threadId,target:r.diff,onClose:a},`${e}:${r.diff.id}`))]})}function NI(e){if(e.requiresHumanApproval)return H(`approvals:humanCommandApproval`);switch(e.kind){case`command`:return H(`approvals:commandApproval`);case`file`:return H(`approvals:fileApproval`);case`permissions`:return H(`approvals:permissionsApproval`);case`questions`:return H(e.status===`pending`||e.status===`responding`?`workspace:your_answer_is_needed`:`workspace:questions_from_codex`);case`network`:return H(`approvals:networkApproval`,{target:e.title.slice(e.title.indexOf(`:`)+1)});case`elicitation`:return H(e.elicitation?.approval?`approvals:mcpApproval`:`approvals:mcpInteraction`,{server:e.elicitation?.serverName??``});case`unsupported`:return H(`approvals:unsupported`)}}function PI(e,t){switch(t.id){case`accept`:return H(e.kind===`permissions`?`approvals:allowTask`:`approvals:allow_once`);case`acceptForSession`:case`acceptSession`:return H(`approvals:allow_for_this_session`);case`decline`:return H(`approvals:denyDecision`);case`cancel`:return H(e.kind===`command`||e.kind===`network`||e.kind===`file`?`approvals:cancelTask`:`common:cancel`);case`acceptWithRule`:return H(`approvals:commandRule`,{rule:t.label.slice(t.label.indexOf(`:`)+1)});default:return t.id.startsWith(`networkRule:`)?H(`approvals:networkRule`,{rule:t.label.slice(t.label.indexOf(`:`)+1)}):t.label}}var FI={get read(){return H(`approvals:read`)},get write(){return H(`approvals:write`)},get deny(){return H(`approvals:deny_access`)}};function II({request:e}){let t=e.fileSystem,n=[...t?.read.map(e=>({path:e,access:`read`}))??[],...t?.write.map(e=>({path:e,access:`write`}))??[],...t?.entries??[]];return(0,q.jsxs)(`div`,{className:`permission-details`,children:[e.network!==void 0&&(0,q.jsxs)(`div`,{className:`permission-network`,children:[(0,q.jsx)(`strong`,{children:H(`approvals:network_access`)}),(0,q.jsx)(`span`,{children:e.network===!0?H(`approvals:network_access_allowed`):e.network===!1?H(`approvals:no_additional_network_access`):H(`approvals:no_network_access_changes_specified`)})]}),n.length>0&&(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h4`,{children:H(`approvals:files_and_directories`)}),(0,q.jsx)(`ul`,{className:`permission-paths`,children:n.map((e,t)=>(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`span`,{className:`permission-access permission-access-${e.access}`,children:FI[e.access]??e.access}),(0,q.jsx)(`code`,{children:e.path})]},`${e.access}-${e.path}-${t}`))})]}),t?.globScanMaxDepth!==void 0&&(0,q.jsx)(`p`,{children:H(`approvals:directory_matching_depth`,{v0:t.globScanMaxDepth})}),e.network===void 0&&n.length===0&&(0,q.jsx)(`p`,{children:H(`approvals:no_additional_network_or_file_access_requested`)})]})}var LI=class extends Error{code;status;details;constructor(e,t,n=400,r){super(t),this.code=e,this.status=n,this.details=r,this.name=`AppError`}toJSON(e){return{code:this.code,message:this.message,...e?{clientOperationId:e}:{},...this.details===void 0?{}:{details:this.details}}}},RI=e=>{throw new LI(`VALIDATION_ERROR`,e)};function zI(e){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return!1;let t=new Date(`${e}T00:00:00.000Z`);return Number.isFinite(t.getTime())&&t.toISOString().slice(0,10)===e}function BI(e,t){switch(e){case`email`:return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t);case`uri`:try{return!/\s/.test(t)&&!!new URL(t).protocol}catch{return!1}case`date`:return zI(t);case`date-time`:{let e=/^(\d{4}-\d{2}-\d{2})[Tt](\d{2}):(\d{2}):(\d{2})(?:\.\d+)?(?:[Zz]|[+-](\d{2}):(\d{2}))$/.exec(t);return!!(e&&zI(e[1])&&Number(e[2])<=23&&Number(e[3])<=59&&Number(e[4])<=59&&(e[5]===void 0||Number(e[5])<=23)&&(e[6]===void 0||Number(e[6])<=59)&&Number.isFinite(Date.parse(t)))}default:return!0}}function VI(e,t){let n=()=>RI(`“${e.title}”的回答不符合字段要求`);switch(e.type){case`string`:if(typeof t!=`string`)n();else{let r=[...t].length;(e.minLength!==void 0&&r<e.minLength||e.maxLength!==void 0&&r>e.maxLength||t.length>1e4||!BI(e.format,t))&&n()}break;case`number`:case`integer`:(typeof t!=`number`||!Number.isFinite(t)||e.type===`integer`&&!Number.isSafeInteger(t)||e.minimum!==void 0&&t<e.minimum||e.maximum!==void 0&&t>e.maximum)&&n();break;case`boolean`:typeof t!=`boolean`&&n();break;case`enum`:(typeof t!=`string`||t.length>1e4||!e.options?.some(e=>e.value===t))&&n();break;case`multiEnum`:(!Array.isArray(t)||t.some(t=>typeof t!=`string`||t.length>1e4||!e.options?.some(e=>e.value===t))||t.length>500||new Set(t).size!==t.length||e.minItems!==void 0&&t.length<e.minItems||e.maxItems!==void 0&&t.length>e.maxItems)&&n()}}function HI(e){switch(e){case`pending`:return H(`approvals:action_required`);case`responding`:return H(`common:submitting`);case`responded`:return H(`approvals:handled`);case`expired`:return H(`approvals:request_expired`)}}function UI(e){return Object.fromEntries(e.filter(e=>e.default!==void 0).map(e=>[e.name,typeof e.default==`number`?String(e.default):e.default]))}function WI(e){let t=[];return e.type===`integer`&&t.push(H(`approvals:enter_an_integer`)),e.minimum!==void 0&&t.push(H(`approvals:minimum`,{v0:e.minimum})),e.maximum!==void 0&&t.push(H(`approvals:maximum`,{v0:e.maximum})),e.minLength!==void 0&&t.push(H(`approvals:at_least_characters`,{count:e.minLength,v0:e.minLength})),e.maxLength!==void 0&&t.push(H(`approvals:at_most_characters`,{count:e.maxLength,v0:e.maxLength})),e.minItems!==void 0&&t.push(H(`approvals:select_at_least_items`,{count:e.minItems,v0:e.minItems})),e.maxItems!==void 0&&t.push(H(`approvals:select_at_most_items`,{count:e.maxItems,v0:e.maxItems})),e.format===`date-time`&&t.push(H(`approvals:include_a_time_zone_e_g_2026_10`)),t.join(` · `)}function GI(e,t){let n=Object.create(null),r=Object.create(null);for(let i of e){let e=Object.hasOwn(t,i.name)?t[i.name]:void 0;if(e===void 0||(i.type===`number`||i.type===`integer`)&&e===``){i.required&&(r[i.name]=H(`approvals:this_field_is_required`));continue}let a=i.type===`number`||i.type===`integer`?Number(e):e;try{VI(i,a),n[i.name]=a}catch{r[i.name]=H(`approvals:check_the_requirements_for_this_field`)}}return{content:n,errors:r}}function KI(e){if(e)try{let t=new URL(e);return(t.protocol===`https:`||t.protocol===`http:`)&&!t.username&&!t.password?t.href:void 0}catch{return}}function qI({request:e,actionId:t,status:n,disabled:r,onResolve:i}){let a=e.fields??[],o=n===`pending`?e.approval?H(`approvals:allow_once`):e.mode===`url`?H(`approvals:i_m_done`):a.length===0?H(`common:confirm_and_continue`):a.every(e=>[`boolean`,`enum`,`multiEnum`].includes(e.type))?H(`common:confirm_selection`):H(`common:submit_answer`):HI(n),[s,c]=(0,y.useState)(()=>UI(a)),[l,u]=(0,y.useState)(!1),{content:d,errors:f}=GI(a,s),p=KI(e.url),m=(e.schemaError?H(`errors:unsupportedSchema`):void 0)||(e.mode===`url`&&!p?H(`approvals:this_request_has_no_safe_http_or_https`):void 0),h=(e,t)=>c(n=>({...n,[e]:t}));return(0,q.jsxs)(`form`,{className:`elicitation-form`,noValidate:!0,onSubmit:t=>{t.preventDefault(),!(r||m)&&(u(!0),!(e.mode===`form`&&Object.keys(f).length>0)&&i(e.mode===`form`&&!e.approval?{decision:`accept`,content:d}:{decision:`accept`}))},children:[(0,q.jsxs)(`p`,{className:`elicitation-source`,children:[H(`approvals:source`),(0,q.jsx)(`strong`,{children:e.serverName})]}),e.approval?.allowSession&&(0,q.jsx)(`p`,{className:`elicitation-scope subtle`,children:H(`approvals:session_approval_applies_only_to_this_request_s`)}),m&&(0,q.jsx)(`p`,{className:`elicitation-error`,role:`alert`,children:m}),e.mode===`url`?(0,q.jsxs)(`div`,{className:`elicitation-url`,children:[(0,q.jsx)(`span`,{children:H(`approvals:url`)}),(0,q.jsx)(`code`,{children:e.url??H(`approvals:no_url_provided`)}),p&&(0,q.jsx)(`a`,{href:p,target:`_blank`,rel:`noopener noreferrer`,referrerPolicy:`no-referrer`,children:H(`approvals:open_in_new_tab`)}),(0,q.jsx)(`p`,{children:H(`approvals:complete_the_steps_on_the_page_then_click`)})]}):!m&&(0,q.jsx)(`div`,{className:`elicitation-fields`,children:a.map((e,n)=>{let i=`elicitation-${t}-${n}`,a=WI(e),o=l?f[e.name]:void 0,c=Object.hasOwn(s,e.name)?s[e.name]:void 0,u=[e.description&&`${i}-description`,a&&`${i}-hint`,o&&`${i}-error`].filter(Boolean).join(` `)||void 0;return(0,q.jsxs)(`div`,{className:`elicitation-field`,children:[(0,q.jsxs)(`div`,{className:`elicitation-field-heading`,children:[(0,q.jsxs)(`label`,{id:`${i}-label`,htmlFor:e.type===`multiEnum`?void 0:i,children:[e.title,(0,q.jsx)(`span`,{className:`field-necessity`,"aria-hidden":`true`,children:e.required?H(`approvals:required`):H(`approvals:optional`)})]}),!e.required&&c!==void 0&&(0,q.jsxs)(`button`,{type:`button`,className:`field-unset`,disabled:r,onClick:()=>h(e.name,void 0),children:[H(`approvals:leave_blank`),(0,q.jsx)(`span`,{className:`sr-only`,children:e.title})]})]}),e.description&&(0,q.jsx)(`p`,{id:`${i}-description`,className:`field-description`,children:e.description}),e.type===`boolean`||e.type===`enum`?(0,q.jsxs)(PT,{value:c===void 0?``:e.type===`boolean`?c?`true`:`false`:`option:${String(c)}`,disabled:r,required:e.required,onValueChange:t=>h(e.name,t===``||t===`unset`?void 0:e.type===`boolean`?t===`true`:t.slice(7)),children:[(0,q.jsx)(IT,{id:i,"aria-required":e.required,"aria-invalid":!!o,"aria-describedby":u,children:(0,q.jsx)(FT,{placeholder:H(`approvals:select_an_option`)})}),(0,q.jsxs)(LT,{align:`start`,children:[(0,q.jsx)(RT,{value:`unset`,children:H(`approvals:select_an_option`)}),e.type===`boolean`?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(RT,{value:`true`,children:H(`approvals:yes`)}),(0,q.jsx)(RT,{value:`false`,children:H(`approvals:no`)})]}):e.options?.map(e=>(0,q.jsx)(RT,{value:`option:${e.value}`,children:e.label},e.value))]})]}):e.type===`multiEnum`?(0,q.jsx)(`div`,{role:`group`,"aria-labelledby":`${i}-label`,"aria-describedby":u,"aria-invalid":!!o,className:`elicitation-multi-options`,children:e.options?.map(t=>(0,q.jsxs)(`label`,{className:`question-option`,children:[(0,q.jsx)(`input`,{type:`checkbox`,disabled:r,checked:Array.isArray(c)&&c.includes(t.value),onChange:n=>{let r=Array.isArray(c)?c:[];h(e.name,n.target.checked?[...r,t.value]:r.filter(e=>e!==t.value))}}),(0,q.jsx)(`span`,{children:t.label})]},t.value))}):(0,q.jsx)(`input`,{id:i,className:`text-input`,type:e.type===`number`||e.type===`integer`?`number`:e.format===`email`?`email`:e.format===`uri`?`url`:e.format===`date`?`date`:`text`,value:typeof c==`string`?c:``,step:e.type===`integer`?1:`any`,min:e.minimum,max:e.maximum,disabled:r,"aria-required":e.required,"aria-invalid":!!o,"aria-describedby":u,placeholder:e.required?void 0:H(`approvals:not_provided_optional`),autoComplete:`off`,onChange:t=>h(e.name,t.target.value)}),a&&(0,q.jsx)(`p`,{id:`${i}-hint`,className:`field-hint`,children:a}),o&&(0,q.jsx)(`p`,{id:`${i}-error`,className:`elicitation-error`,role:`alert`,children:U(o)})]},e.name)})}),l&&Object.keys(f).length>0&&!m&&(0,q.jsx)(`p`,{className:`elicitation-error`,role:`alert`,children:H(`approvals:check_the_highlighted_fields_before_submitting`)}),(0,q.jsxs)(`div`,{className:`action-options`,children:[!m&&(0,q.jsx)(J,{type:`submit`,disabled:r,children:o}),!m&&e.approval?.allowSession&&(0,q.jsx)(J,{variant:`secondary`,disabled:r,onClick:()=>i({decision:`accept`,persist:`session`}),children:H(`approvals:allow_for_this_session`)}),(0,q.jsx)(J,{variant:`secondary`,disabled:r,onClick:()=>i({decision:`decline`}),children:H(`approvals:deny`)}),(0,q.jsx)(J,{variant:`ghost`,disabled:r,onClick:()=>i({decision:`cancel`}),children:H(`common:cancel`)})]})]})}function JI({action:e,disabled:t,onResolve:n}){let[r,i]=(0,y.useState)({}),[a,o]=(0,y.useState)({}),[s,c]=(0,y.useState)([]),l=e.status===`pending`,u=e.questions??[],d=e=>r[e]===`__other__`?a[e]?.trim()??``:r[e]?.trim()??``,f=u.length>0&&u.every(e=>s.includes(e.id)||d(e.id)),p=u.length>0&&u.every(e=>e.options.length>0&&r[e.id]!==`__other__`);return(0,q.jsxs)(`section`,{className:`action-card${e.kind===`unsupported`?` action-card-unsupported`:``}`,"aria-label":NI(e),"data-attention-kind":`action`,"data-attention-id":e.actionId,tabIndex:-1,children:[(0,q.jsxs)(`div`,{className:`action-heading`,children:[(0,q.jsx)(`span`,{className:`action-icon`,children:(0,q.jsx)(Y,{name:e.kind===`questions`?`chat`:`alert`,size:17})}),(0,q.jsx)(`h3`,{children:NI(e)}),(0,q.jsx)(`span`,{className:`action-state`,children:e.kind===`unsupported`&&e.status===`expired`?H(`approvals:request_could_not_be_handled`):HI(e.status)})]}),e.reason&&(0,q.jsx)(`p`,{children:e.reason}),e.cwd&&(0,q.jsxs)(`p`,{className:`mono subtle action-cwd`,children:[(0,q.jsx)(`span`,{children:H(`approvals:working_directory`)}),e.cwd]}),e.command&&(0,q.jsx)(`pre`,{className:`command`,children:(0,q.jsx)(`code`,{children:e.command})}),e.kind===`permissions`&&e.permissionRequest&&(0,q.jsx)(II,{request:e.permissionRequest}),e.details!==void 0&&(0,q.jsxs)(`details`,{className:`raw-details`,open:e.kind===`network`||e.kind===`file`||void 0,children:[(0,q.jsx)(`summary`,{children:e.kind===`network`?H(`approvals:network_destination`):e.kind===`file`?H(`approvals:change_details`):e.kind===`permissions`||e.kind===`elicitation`?H(`common:technical_details`):H(`approvals:request_details`)}),(0,q.jsx)(`pre`,{children:JSON.stringify(e.details,null,2)})]}),e.kind===`elicitation`&&e.elicitation?(0,q.jsx)(qI,{request:e.elicitation,actionId:e.actionId,status:e.status,disabled:t||!l,onResolve:n}):e.kind===`questions`?(0,q.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),!t&&l&&f&&n({answers:Object.fromEntries(u.filter(e=>!s.includes(e.id)).map(e=>[e.id,[d(e.id)]])),...s.length?{skippedQuestionIds:s}:{}})},children:[u.map(n=>(0,q.jsxs)(`fieldset`,{disabled:t||!l,children:[(0,q.jsx)(`legend`,{children:n.header}),(0,q.jsx)(`p`,{children:n.question}),l?s.includes(n.id)?(0,q.jsx)(`p`,{children:H(`approvals:question_will_be_skipped`)}):(0,q.jsxs)(q.Fragment,{children:[n.options.map((t,a)=>(0,q.jsxs)(`label`,{className:`question-option`,children:[(0,q.jsx)(`input`,{type:`radio`,name:`${e.actionId}-${n.id}`,value:t.label,checked:r[n.id]===t.label,onChange:()=>i(e=>({...e,[n.id]:t.label}))}),(0,q.jsxs)(`span`,{children:[(0,q.jsx)(`strong`,{children:t.label}),(0,q.jsx)(`small`,{children:t.description})]}),(0,q.jsx)(`span`,{className:`option-number`,children:a+1})]},t.label)),n.options.length>0&&n.isOther&&(0,q.jsxs)(`label`,{className:`question-option`,children:[(0,q.jsx)(`input`,{type:`radio`,name:`${e.actionId}-${n.id}`,checked:r[n.id]===`__other__`,onChange:()=>i(e=>({...e,[n.id]:`__other__`}))}),(0,q.jsx)(`span`,{children:H(`approvals:another_answer`)})]})]}):(0,q.jsx)(`p`,{className:`async-question-answer`,children:e.questionAnswers?.[n.id]?.length===0?H(`approvals:question_skipped`):e.questionAnswers?.[n.id]?.join(`
|
|
158
|
-
`)??HI(e.status)}),l&&(0,q.jsx)(J,{type:`button`,variant:`ghost`,size:`sm`,onClick:()=>c(e=>e.includes(n.id)?e.filter(e=>e!==n.id):[...e,n.id]),children:s.includes(n.id)?H(`approvals:answer_question`):H(`approvals:skip_question`)}),l&&!s.includes(n.id)&&(n.options.length===0||r[n.id]===`__other__`)&&(0,q.jsx)(`input`,{className:`text-input`,type:n.isSecret?`password`:`text`,"aria-label":H(`common:free_text_answer`,{v0:n.header}),value:n.options.length===0?r[n.id]??``:a[n.id]??``,maxLength:1e4,onChange:e=>n.options.length===0?i(t=>({...t,[n.id]:e.target.value})):o(t=>({...t,[n.id]:e.target.value})),placeholder:H(`common:enter_your_answer`),autoComplete:`off`})]},n.id)),l&&(0,q.jsxs)(`div`,{className:`action-options`,children:[(0,q.jsx)(J,{type:`button`,variant:`secondary`,disabled:t,onClick:()=>n({answers:{},skippedQuestionIds:u.map(e=>e.id)}),children:H(`approvals:skip_all_questions`)}),(0,q.jsx)(J,{type:`submit`,disabled:t||!f,children:s.length?H(`approvals:submit_with_skipped`):H(p?`common:confirm_selection`:`common:submit_answer`)})]})]}):(0,q.jsx)(`div`,{className:`action-options`,children:e.options.map(r=>(0,q.jsx)(J,{variant:/decline|cancel|reject|deny/i.test(r.id)?`secondary`:`default`,disabled:t||!l,onClick:()=>n({decision:r.id}),children:PI(e,r)},r.id))}),e.kind===`unsupported`&&(0,q.jsx)(`p`,{className:`inline-error`,children:H(`approvals:this_interaction_is_unsupported_no_approval_was_sent`)})]})}function YI({progress:e,details:t,children:n,offline:r=!1,retrying:i=!1,testId:a=`model-capacity-status`,state:o=`failed`}){return(0,q.jsxs)(`div`,{className:`error-banner model-capacity-notice`,role:i?`status`:`alert`,"aria-label":H(`conversation:model_capacity_unavailable`),"data-testid":a,"data-state":o,children:[(0,q.jsxs)(`div`,{className:`model-capacity-heading`,children:[(0,q.jsxs)(`span`,{className:`model-capacity-label`,children:[(0,q.jsx)(Y,{name:`alert`,size:16}),r&&H(`common:last_known`),H(`conversation:model_capacity_unavailable`)]}),e&&(0,q.jsx)(`div`,{className:`model-capacity-progress`,children:e})]}),n,t&&(0,q.jsxs)(`details`,{className:`model-capacity-details`,children:[(0,q.jsx)(`summary`,{children:H(`conversation:error_details`)}),(0,q.jsx)(`p`,{className:`codex-reconnect-message`,children:t})]})]})}function XI({thread:e,offline:t,controls:n}){let r=e.capacityRetry,i=e.turns.at(-1),a=i?.status===`failed`&&ao(i.error??``,i.errorCode),[,o]=(0,y.useState)(0);if((0,y.useEffect)(()=>{if(r?.status!==`waiting`)return;let e=window.setInterval(()=>o(e=>e+1),250);return()=>window.clearInterval(e)},[r?.status,r?.nextAttemptAt]),!r&&!a)return null;let s=r?.status===`waiting`,c=s||r?.status===`retrying`,l=Math.max(0,Math.ceil(((r?.nextAttemptAt??Date.now())-Date.now())/1e3)),u=r?.status===`cancelled`?`capacity_cancelled_short`:r?.reason===`limit`?`capacity_limit_short`:`retry_stopped_short`;return(0,q.jsx)(YI,{offline:t,retrying:c,testId:`capacity-retry-status`,state:r?.status??`stopped`,details:a?i.error:void 0,progress:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{children:c&&r?H(`conversation:retry_progress`,{attempt:r.attempt,limit:r.limit}):H(`conversation:${u}`)}),s&&!t&&(0,q.jsx)(`span`,{children:H(l>0?`conversation:capacity_in_seconds_short`:`conversation:capacity_dispatching`,{seconds:l})}),n&&(c?(0,q.jsx)(J,{variant:`ghost`,size:`sm`,disabled:t||n.disabled||n.busy,onClick:n.onCancel,children:H(`conversation:cancel_retry`)}):(0,q.jsx)(J,{variant:`secondary`,size:`sm`,disabled:t||n.disabled||n.busy||!a||!!e.execution,onClick:()=>i&&n.onRetry(i.id),children:H(`conversation:retry_with_selected_model`)}))]}),children:r?.status===`stopped`&&(r.reason===`progress`||r.reason===`error`)&&(0,q.jsx)(`p`,{className:`model-capacity-note`,children:H(`conversation:capacity_stopped_${r.reason}`)})})}function ZI(e){return e.userAgentData?.mobile===!0||/Android|iPhone|iPad|iPod/i.test(e.userAgent)||e.platform===`MacIntel`&&e.maxTouchPoints>1}function QI({itemId:e,questions:t,replies:n=[],disabled:r,onReply:i,tracking:a,onDismiss:o}){let s=(0,y.useId)(),c=`${s}-shortcut`,l=/Mac|iPhone|iPad|iPod/i.test(navigator.platform),u=ZI(navigator),d=l?`⌘ + Enter`:`Ctrl + Enter`,f=l?`Meta+Enter`:`Control+Enter`,p=(0,y.useRef)(!1),m=(0,y.useRef)(-1/0),[h,g]=(0,y.useState)(()=>t.map(e=>e.options?.length?0:-1)),[_,v]=(0,y.useState)([]),[b,x]=(0,y.useState)(!1),S=(0,y.useRef)(!1),C=t.map((t,r)=>n.find(t=>t.questionItemId===Qa(e,r))?.answer??n.find(n=>n.questionItemId===e&&n.question===t.title)?.answer),w=t.map((t,n)=>a?.[Qa(e,n)]?.status===`dismissed`),T=C.map((e,t)=>e!==void 0||w[t]),E=t.some((t,n)=>!T[n]&&[`submitting`,`unknown`].includes(a?.[Qa(e,n)]?.status??``)),D=T.every(Boolean),O=async t=>{if(!(r||S.current||!o)){S.current=!0,x(!0);try{await o(t.map(t=>Qa(e,t)))}finally{S.current=!1,x(!1)}}},k=t.map((e,t)=>C[t]??(h[t]===-1?_[t]?.trim():e.options?.[h[t]??0])??``),A=r||b||E||D,j=k.some((e,t)=>!T[t]&&!e),M=!u&&h.some((e,t)=>e===-1&&C[t]===void 0);return(0,q.jsxs)(`section`,{className:`async-question-card`,"aria-label":H(`workspace:questions_from_codex`),"data-attention-kind":`question`,"data-attention-id":e,tabIndex:-1,children:[(0,q.jsxs)(`div`,{className:`async-question-heading`,children:[(0,q.jsxs)(`span`,{children:[(0,q.jsx)(Y,{name:`chat`,size:16}),H(D?`workspace:questions_from_codex`:`workspace:your_answer_is_needed`)]}),(0,q.jsx)(`small`,{children:D?w.some(Boolean)?H(`workspace:questions_handled`):H(`workspace:answer_sent`):H(b?`workspace:sending`:E?`workspace:answer_receipt_pending`:`workspace:you_can_answer_later`)})]}),(0,q.jsxs)(`form`,{onSubmit:async n=>{if(n.preventDefault(),!(A||S.current||j)){S.current=!0,x(!0);try{await i(t.flatMap((t,n)=>T[n]?[]:[{questionItemId:Qa(e,n),question:t.title,answer:k[n]}]))}finally{S.current=!1,x(!1)}}},children:[t.map((e,t)=>(0,q.jsxs)(`fieldset`,{disabled:A||T[t],"aria-labelledby":`${s}-question-${t}`,children:[(0,q.jsxs)(`div`,{className:`async-question-item-heading`,children:[(0,q.jsx)(`div`,{className:`async-question-title`,id:`${s}-question-${t}`,children:(0,q.jsx)(DI,{text:e.title})}),!T[t]&&o&&(0,q.jsx)(J,{type:`button`,variant:`ghost`,size:`sm`,className:`async-question-dismiss`,disabled:A,title:H(`workspace:end_tracking_hint`),onClick:()=>void O([t]),children:H(`workspace:end_question_tracking`)})]}),C[t]===void 0?w[t]?(0,q.jsx)(`p`,{className:`async-question-answer`,children:H(`workspace:question_tracking_ended`)}):(0,q.jsxs)(q.Fragment,{children:[e.options?.map((e,n)=>(0,q.jsxs)(`div`,{className:`question-option`,onClick:e=>{A||e.target instanceof Element&&e.target.closest(`a, button, input, textarea, select, summary`)||(g(e=>e.map((e,r)=>r===t?n:e)),e.currentTarget.querySelector(`input`)?.focus())},children:[(0,q.jsx)(`input`,{type:`radio`,name:`${s}-${t}`,"aria-labelledby":`${s}-option-${t}-${n}`,checked:h[t]===n,onChange:()=>g(e=>e.map((e,r)=>r===t?n:e))}),(0,q.jsx)(`div`,{id:`${s}-option-${t}-${n}`,className:`async-option-content`,children:(0,q.jsx)(DI,{text:e})})]},n)),!!e.options?.length&&(0,q.jsxs)(`label`,{className:`question-option`,children:[(0,q.jsx)(`input`,{type:`radio`,name:`${s}-${t}`,checked:h[t]===-1,onChange:()=>g(e=>e.map((e,n)=>n===t?-1:e))}),(0,q.jsx)(`span`,{children:H(`workspace:free_text_answer`)})]}),h[t]===-1&&(0,q.jsx)(`textarea`,{className:`text-input`,"aria-label":H(`common:free_text_answer`,{v0:e.title}),placeholder:H(`common:enter_your_answer`),enterKeyHint:`enter`,"aria-describedby":u?void 0:c,"aria-keyshortcuts":u?void 0:f,onCompositionStart:()=>{p.current=!0},onCompositionEnd:()=>{p.current=!1,m.current=performance.now()},onBlur:()=>{p.current=!1,m.current=-1/0},onKeyUp:e=>{e.key===`Enter`&&(m.current=-1/0)},onKeyDown:e=>{u||e.defaultPrevented||e.key!==`Enter`||e.shiftKey||e.altKey||(l?!e.metaKey||e.ctrlKey:!e.ctrlKey||e.metaKey)||e.nativeEvent.isComposing||e.nativeEvent.keyCode===229||p.current||(e.preventDefault(),e.stopPropagation(),!(e.repeat||performance.now()-m.current<100)&&e.currentTarget.form?.requestSubmit())},rows:2,maxLength:1e4,value:_[t]??``,onChange:e=>v(n=>{let r=[...n];return r[t]=e.target.value,r})})]}):(0,q.jsx)(`div`,{className:`async-question-answer`,children:(0,q.jsx)(DI,{text:C[t]})})]},t)),!D&&(0,q.jsxs)(`div`,{className:`async-question-footer`,children:[(0,q.jsx)(`span`,{children:H(`workspace:your_answer_will_be_sent_to_this_session`)}),(0,q.jsxs)(`div`,{className:`async-question-actions`,children:[o&&T.filter(e=>!e).length>1&&(0,q.jsx)(J,{type:`button`,variant:`secondary`,disabled:A,title:H(`workspace:skip_all_questions_hint`),onClick:()=>void O(T.flatMap((e,t)=>e?[]:[t])),children:H(`workspace:end_remaining_tracking`)}),(0,q.jsx)(bS,{id:c,content:M?H(`workspace:answer_submit_shortcut`,{shortcut:d}):void 0,asChild:!0,children:(0,q.jsxs)(J,{type:`submit`,disabled:A||j,children:[H(b?`workspace:sending`:`workspace:send_answer`),M&&(0,q.jsx)(`kbd`,{className:`answer-submit-shortcut`,"aria-hidden":`true`,children:d})]})})]})]})]})]})}var $I=[`command`,`execve`,`writeStdin`,`applyPatch`,`networkAccess`,`mcpToolCall`,`requestPermissions`];function eL(e){let t=e.presentation?.kind??$I.find(t=>ot[`zh-Hans`].approvals[t]===e.actionLabel);return t&&$I.includes(t)?H(`approvals:${t}`):H(`approvals:unknownAction`)}function tL(e){return e.presentation?e.presentation.parts.map(e=>e.label===`raw`?e.value:e.value?H(`approvals:fieldValue`,{label:H(`approvals:${e.label===`deny`?`accessDeny`:e.label}`),value:e.value}):H(`approvals:${e.label===`deny`?`accessDeny`:e.label}`)).join(`
|
|
159
|
-
`):e.actionSummary}function nL({className:e=``,label:t,summary:n,children:r,group:i=!1}){let a=(0,y.useRef)(null),o=(0,y.useRef)(void 0),[s,c]=(0,y.useState)(!1);return(0,y.useLayoutEffect)(()=>{let e=a.current,t=e?.querySelector(`:scope > summary`);if(!i||!e||!t)return;let n=()=>{e.style.setProperty(`--activity-group-header-height`,`${t.getBoundingClientRect().height}px`)};n();let r=new ResizeObserver(n);return r.observe(t),()=>r.disconnect()},[i]),(0,y.useEffect)(()=>()=>{o.current!==void 0&&cancelAnimationFrame(o.current)},[]),(0,q.jsxs)(`details`,{ref:a,className:`collapsible-activity${i?` collapsible-activity-group`:``} ${e}`,onToggle:e=>{e.target===e.currentTarget&&c(e.currentTarget.open)},children:[(0,q.jsxs)(`summary`,{"aria-label":`${H(s?`conversation:collapse`:`conversation:expand`)}${t}`,onClick:e=>{let t=a.current,n=t?.closest(`.conversation-scroll`);if(!t?.open||!n)return;let r=e.currentTarget,i=Number.parseFloat(getComputedStyle(r).top)||0,s=n.getBoundingClientRect().top+n.clientTop;t.getBoundingClientRect().top>=s+i||(o.current!==void 0&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{if(o.current=void 0,!t.isConnected||t.open)return;let e=n.getBoundingClientRect().top+n.clientTop;n.scrollTop+=t.getBoundingClientRect().top-e-i-8,r.focus({preventScroll:!0})}))},children:[n,(0,q.jsx)(`span`,{className:`activity-collapse-hint`,"aria-hidden":`true`,children:H(`conversation:collapse`)}),(0,q.jsx)(Y,{name:`chevron`,size:14})]}),r]})}var rL={get inProgress(){return H(`approvals:reviewing`)},get approved(){return H(`approvals:allowed`)},get denied(){return H(`common:denied`)},get timedOut(){return H(`common:review_timed_out`)},get aborted(){return H(`approvals:review_aborted`)},get unknown(){return H(`common:result_unconfirmed`)}},iL={get low(){return H(`approvals:low`)},get medium(){return H(`approvals:medium`)},get high(){return H(`approvals:high`)},get critical(){return H(`approvals:critical`)}},aL={get unknown(){return H(`approvals:unknown`)},get low(){return H(`approvals:low`)},get medium(){return H(`approvals:medium`)},get high(){return H(`approvals:high`)}};function oL(e){let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleString(_t(),{hour12:!1}):H(`approvals:no_valid_time_provided`)}function sL({review:e}){return(0,q.jsx)(nL,{className:`auto-review-card auto-review-${e.status}`,label:H(`approvals:automatic_review_2`,{v0:tL(e)||eL(e),v1:rL[e.status]}),summary:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Y,{name:e.status===`approved`?`check`:e.status===`denied`?`close`:e.status===`inProgress`?`refresh`:`alert`,size:15}),(0,q.jsxs)(`span`,{className:`activity-description`,children:[(0,q.jsx)(`span`,{className:`activity-label`,children:H(`approvals:automatic_review`)}),(0,q.jsx)(`code`,{className:`command-summary`,children:tL(e)||eL(e)})]}),(0,q.jsx)(`span`,{className:`auto-review-status`,role:`status`,children:rL[e.status]})]}),children:(0,q.jsxs)(`div`,{className:`activity-body auto-review-body`,children:[(0,q.jsxs)(`div`,{className:`auto-review-operation`,children:[(0,q.jsx)(`span`,{children:eL(e)}),(0,q.jsx)(`code`,{children:tL(e)||H(`approvals:no_reviewed_operation_provided`)})]}),(0,q.jsxs)(`div`,{className:`auto-review-rationale`,children:[(0,q.jsx)(`strong`,{children:H(`approvals:review_rationale`)}),(0,q.jsx)(`p`,{children:e.rationale?.trim()?e.rationale:H(`approvals:no_review_rationale_provided`)})]}),(0,q.jsxs)(`details`,{className:`auto-review-details`,children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsxs)(`dl`,{children:[e.cwd&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`dt`,{children:H(`common:working_directory`)}),(0,q.jsx)(`dd`,{children:(0,q.jsx)(`code`,{children:e.cwd})})]}),e.riskLevel&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`dt`,{children:H(`approvals:risk_assessment`)}),(0,q.jsx)(`dd`,{children:iL[e.riskLevel]})]}),e.userAuthorization&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`dt`,{children:H(`approvals:user_authorization_assessment`)}),(0,q.jsx)(`dd`,{children:aL[e.userAuthorization]})]}),(0,q.jsx)(`dt`,{children:H(`approvals:review_id`)}),(0,q.jsx)(`dd`,{children:(0,q.jsx)(`code`,{children:e.reviewId})}),e.targetItemId&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`dt`,{children:H(`approvals:operation_id`)}),(0,q.jsx)(`dd`,{children:(0,q.jsx)(`code`,{children:e.targetItemId})})]}),(0,q.jsx)(`dt`,{children:H(`approvals:started_at`)}),(0,q.jsx)(`dd`,{children:oL(e.startedAtMs)}),e.completedAtMs!==void 0&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`dt`,{children:H(`approvals:finished_at`)}),(0,q.jsx)(`dd`,{children:oL(e.completedAtMs)})]})]})]})]})})}function cL({output:e,truncated:t=!1}){let n=(0,y.useRef)(!1),r=(0,y.useRef)(!0),i=(0,y.useRef)(void 0),[a,o]=(0,y.useState)(`idle`);(0,y.useEffect)(()=>(r.current=!0,()=>{r.current=!1,clearTimeout(i.current)}),[]);async function s(){if(!n.current&&e){n.current=!0,clearTimeout(i.current),o(`idle`);try{if(await navigator.clipboard.writeText(e),!r.current)return;o(`copied`),i.current=setTimeout(()=>o(`idle`),2e3)}catch{r.current&&o(`failed`)}finally{n.current=!1}}}return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(bS,{asChild:!0,content:H(`conversation:copy_loaded_command_output`),children:(0,q.jsx)(J,{variant:`ghost`,size:`icon`,className:`command-output-copy-button`,"aria-label":H(`conversation:copy_command_output`),disabled:!e,onClick:()=>void s(),children:(0,q.jsx)(Y,{name:a===`copied`?`check`:`copy`,size:16})})}),(0,q.jsx)(`span`,{className:`command-output-copy-feedback command-output-copy-${a}`,role:`status`,children:a===`failed`?H(`conversation:command_output_copy_failed`):t?H(a===`copied`?`conversation:copied_truncated_command_output`:`conversation:command_output_truncated`):a===`copied`?H(`common:copied`):``})]})}function lL(e){let t=[];for(let n of e){if(n.type===`userMessage`||n.type===`agentMessage`||n.type===`exitedReviewMode`||n.type===`contextCompaction`){t.push({kind:`message`,key:`message:${n.type===`userMessage`?n.clientId??n.id:n.id}`,item:n});continue}let e=t.at(-1);e?.kind===`activity`?e.items.push(n):t.push({kind:`activity`,key:`activity:${n.id}`,items:[n]})}return t}function uL(e){let t={total:e.length,reviews:0,running:0,completed:0,failed:0,denied:0,timedOut:0,interrupted:0,unknown:0};for(let n of e){let e=n.type===`autoApprovalReview`;e&&(t.reviews+=1);let r=e?n.autoReview?.status??`unknown`:n.status,i=n.details&&typeof n.details==`object`&&!Array.isArray(n.details)?n.details:void 0,a=n.type===`mcpToolCall`&&i?.error!=null||n.type===`dynamicToolCall`&&i?.success===!1||n.type===`imageGeneration`&&i?.failure!=null;n.error||r===`failed`||a?t.failed+=1:r===`denied`||r===`declined`?t.denied+=1:r===`timedOut`?t.timedOut+=1:r===`aborted`||r===`interrupted`?t.interrupted+=1:r===`inProgress`||r===`running`?t.running+=1:r===`approved`||r===`completed`?t.completed+=1:r&&(t.unknown+=1)}return t}function dL({items:e,children:t}){let n=uL(e),r=e.at(-1),i=(r?.autoReview?tL(r.autoReview):void 0)||r?.command,a=[{count:n.running,label:H(`common:running`),className:`activity-group-running`},{count:n.failed,label:H(`common:failed`),className:`activity-group-problem`},{count:n.denied,label:H(`common:denied`),className:`activity-group-problem`},{count:n.timedOut,label:H(`common:review_timed_out`),className:`activity-group-attention`},{count:n.interrupted,label:H(`conversation:aborted`),className:`activity-group-attention`},{count:n.unknown,label:H(`common:result_unconfirmed`),className:`activity-group-attention`},{count:n.completed,label:H(`common:completed`),className:``}].filter(({count:e})=>e>0),o=a.map(({label:e,count:t})=>H(`conversation:activityState`,{status:e,count:t})).join(` · `);return(0,q.jsx)(nL,{className:`activity-group`,group:!0,label:H(`conversation:activities_2`,{count:n.total,v0:n.total,v1:o?` · ${o}`:``}),summary:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Y,{name:n.running?`refresh`:`terminal`,size:16}),(0,q.jsxs)(`span`,{className:`activity-description`,children:[(0,q.jsx)(`span`,{className:`activity-label`,children:H(`conversation:activities`,{count:n.total,v0:n.total})}),n.reviews>0&&(0,q.jsx)(`span`,{className:`activity-group-reviews`,children:H(`conversation:includes_automatic_reviews`,{count:n.reviews,v0:n.reviews})}),i&&(0,q.jsx)(`code`,{className:`command-summary`,children:i})]}),(0,q.jsx)(`span`,{className:`activity-group-status`,role:`status`,children:a.map(({label:e,count:t,className:n})=>(0,q.jsx)(`span`,{className:n,children:H(`conversation:activityState`,{status:e,count:t})},e))})]}),children:(0,q.jsx)(`div`,{className:`activity-group-items`,children:t})})}function fL({item:e,offline:t=!1}){let n=e.status??`unknown`,r=n===`inProgress`,i={inProgress:H(`conversation:compacting_context`),completed:H(`conversation:context_compacted`),failed:H(`conversation:context_compaction_failed`),interrupted:H(`conversation:context_compaction_interrupted`)}[n]??H(`conversation:context_compaction_state_unknown`),a=e.error??(r?H(`conversation:organizing_context_the_current_task_will_continue_when`):n===`unknown`?H(`conversation:no_definite_completion_result_received_check_subsequent_task`):void 0);return(0,q.jsxs)(`div`,{className:`context-compaction context-compaction-${n}`,"data-testid":`context-compaction`,"data-state":n,role:n===`failed`?`alert`:`status`,"aria-label":H(`conversation:context_compaction_status`),children:[(0,q.jsx)(`span`,{className:`compaction-icon`,children:(0,q.jsx)(Y,{name:n===`failed`?`alert`:n===`completed`?`check`:`compress`,size:18})}),(0,q.jsxs)(`div`,{children:[(0,q.jsxs)(`strong`,{children:[r&&t&&H(`common:last_known`),i]}),a&&(0,q.jsx)(`p`,{children:a})]})]})}var pL=(e,t)=>_t()===`zh-Hans`?H(`conversation:${{hour:`hours`,minute:`min`,second:`sec`}[t]}`,{v0:e}):new Intl.NumberFormat(_t(),{style:`unit`,unit:t,unitDisplay:`short`}).format(e);function mL(e){if(e===void 0||!Number.isFinite(e)||e<0)return;if(e>0&&e<1e3)return H(`conversation:less_than_1_second`);let t=Math.floor(e/1e3),n=Math.floor(t/3600),r=Math.floor(t%3600/60);return[...n?[pL(n,`hour`)]:[],...r?[pL(r,`minute`)]:[],...t%60||t===0?[pL(t%60,`second`)]:[]].join(` `)}function hL(e,t){if(e===void 0||!Number.isFinite(e)||e<0)return;let n=new Date(e);if(!Number.isFinite(n.getTime()))return;let r=new Intl.DateTimeFormat(_t(),{timeZone:t,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`,timeZoneName:`longOffset`}).formatToParts(n),i=e=>r.find(t=>t.type===e).value;return{dateTime:n.toISOString(),label:_t()===`zh-Hans`?`${i(`year`)}-${i(`month`)}-${i(`day`)} ${i(`hour`)}:${i(`minute`)}:${i(`second`)}(${i(`timeZoneName`).replace(/^GMT$/,`GMT+00:00`).replace(`GMT`,`UTC`)})`:r.map(e=>e.type===`timeZoneName`?e.value.replace(/^GMT$/,`GMT+00:00`).replace(`GMT`,`UTC`):e.value).join(``)}}function gL(e){let t=e?.last?.totalTokens,n=e?.modelContextWindow;if(!(e?.stale||e?.invalidated||t===void 0||n==null||n<=0||!Number.isSafeInteger(t)||t<0||!Number.isSafeInteger(n)))return t/n*100}function _L(e,t=!1){return e?t||e.stale?H(`settings:context_stale`):e.invalidated===`compaction`?H(`settings:context_compaction`):e.invalidated===`modelChanged`?H(`settings:context_modelChanged`):H(`settings:context_recent`):H(`settings:context_not_reported`)}function vL(e){if(e==null||!Number.isSafeInteger(e)||e<0)return H(`common:not_reported`);let t=e>=99995e4?[1e9,`B`]:e>=999950?[1e6,`M`]:e>=1e3?[1e3,`K`]:[1,``];return`${bt(e/t[0],{maximumFractionDigits:t[0]===1?0:1})}${t[1]}`}function yL(e,t){if(e===void 0||!Number.isSafeInteger(e)||e<0||t===void 0||!Number.isFinite(t)||t<=0)return;let n=e/(t/1e3);if(!Number.isFinite(n))return;let r={minimumFractionDigits:1,maximumFractionDigits:1};return n>0&&n<.1?`<${bt(.1,r)}`:bt(n,r)}function bL({text:e}){let t=(0,y.useRef)(!1),n=(0,y.useRef)(void 0),[r,i]=(0,y.useState)(`idle`);(0,y.useEffect)(()=>()=>clearTimeout(n.current),[]);async function a(){if(!t.current){t.current=!0,clearTimeout(n.current),i(`idle`);try{await navigator.clipboard.writeText(e),i(`copied`),n.current=setTimeout(()=>i(`idle`),2e3)}catch{i(`failed`)}finally{t.current=!1}}}return(0,q.jsxs)(`span`,{className:`reply-copy-controls`,children:[(0,q.jsx)(bS,{asChild:!0,content:H(`workspace:copy_reply_markdown`),children:(0,q.jsx)(J,{variant:`ghost`,size:`icon`,className:`reply-copy-button`,"aria-label":H(`workspace:copy_reply`),onClick:()=>void a(),children:(0,q.jsx)(Y,{name:r===`copied`?`check`:`copy`,size:14})})}),(0,q.jsxs)(`span`,{className:`reply-copy-feedback reply-copy-${r}`,role:`status`,children:[r===`copied`&&H(`common:copied`),r===`failed`&&H(`workspace:copy_failed_select_and_copy_the_reply_manually`)]})]})}function xL({turn:e}){if(e.status!==`completed`)return null;let t=mL(e.durationMs),n=hL(e.completedAt),r=yL(e.outputTokens,e.durationMs),i=e.items.findLast(e=>e.type===`agentMessage`&&e.text?.trim())?.text;return(0,q.jsxs)(`div`,{className:`turn-completion`,role:`group`,"aria-label":H(`conversation:turn_completion_details`),children:[(0,q.jsxs)(`span`,{className:`turn-completion-status`,children:[(0,q.jsx)(Y,{name:`check`,size:14}),H(`common:completed`)]}),(0,q.jsxs)(`span`,{children:[` `,`· `,t?H(`conversation:took`,{v0:t}):H(`conversation:duration_unknown`)]}),(0,q.jsxs)(`span`,{children:[` · `,(0,q.jsx)(gS,{children:(0,q.jsxs)(_S,{children:[(0,q.jsx)(vS,{asChild:!0,children:(0,q.jsx)(`span`,{className:`turn-tps`,tabIndex:0,children:r===void 0?H(`conversation:tps_unknown`):H(`conversation:average_tps`,{v0:r})})}),(0,q.jsx)(yS,{children:r===void 0?H(`conversation:tps_cannot_be_calculated_without_complete_token_counts`):H(`conversation:output_tokens_including_reasoning_total_turn_duration_in`,{v0:vL(e.outputTokens)})})]})})]}),(0,q.jsxs)(`span`,{className:`turn-tokens`,children:[` · `,e.totalTokens===void 0?H(`conversation:turn_tokens_unknown`):H(`conversation:turn_tokens`,{tokens:vL(e.totalTokens)})]}),(0,q.jsxs)(`span`,{children:[` · `,n?(0,q.jsxs)(q.Fragment,{children:[H(`conversation:completed_at`),` `,(0,q.jsx)(`time`,{dateTime:n.dateTime,children:n.label})]}):H(`conversation:completion_time_unknown`)]}),i&&(0,q.jsx)(bL,{text:i})]})}function SL({item:e,status:t}){return(0,q.jsx)(`article`,{className:`message user-message`,"aria-label":H(`conversation:your_message`),"data-prompt-id":e.clientId??e.id,"data-submission-state":t,tabIndex:-1,children:(0,q.jsxs)(`div`,{className:`message-content`,children:[e.questionReplies?.length?e.questionReplies.map((e,t)=>(0,q.jsxs)(`div`,{className:`user-question-reply`,children:[(0,q.jsx)(`blockquote`,{children:(0,q.jsx)(DI,{text:e.question})}),(0,q.jsx)(`div`,{className:`user-text`,children:(0,q.jsx)(DI,{text:e.answer})})]},t)):(0,q.jsx)(`p`,{className:`user-text`,children:e.text}),e.images&&(0,q.jsx)(`div`,{className:`message-images`,children:e.images.map((e,t)=>(0,q.jsx)(`img`,{src:e,alt:H(`conversation:sent_image`,{v0:t+1}),loading:`lazy`},t))}),(e.imageCount??0)>(e.images?.length??0)&&(0,q.jsx)(`p`,{className:`subtle`,children:H(`conversation:images_have_no_preview`,{count:(e.imageCount??0)-(e.images?.length??0),v0:(e.imageCount??0)-(e.images?.length??0)})}),e.error&&(0,q.jsx)(`p`,{className:`inline-error`,children:U(e.error)}),t&&(0,q.jsx)(`p`,{className:`submission-status${t===`failed`?` inline-error`:``}`,role:`status`,children:H(`conversation:submission_${t}`)})]})})}function CL({thread:e,onJump:t}){let n=(0,y.useRef)(null),[r,i]=(0,y.useState)(),a=[...e?.turns.flatMap(e=>e.items)??[],...e?.pendingMessages?.map(e=>e.item)??[]].find(e=>e.type===`userMessage`&&(e.clientId??e.id)===r),o=(0,y.useCallback)(()=>{let e=n.current?.parentElement?.querySelector(`.conversation-scroll`);if(!e)return;let t=e.getBoundingClientRect().top+e.clientTop,r=e.querySelectorAll(`.conversation-content .user-message[data-prompt-id]`),a;for(let e=r.length-1;e>=0;e--)if(r[e].getBoundingClientRect().top<t){a=r[e].dataset.promptId;break}i(a)},[]);(0,y.useLayoutEffect)(o,[e,o]),(0,y.useEffect)(()=>{let e=n.current?.parentElement?.querySelector(`.conversation-scroll`),t=e?.querySelector(`.conversation-content`);if(!e||!t)return;let r,i=()=>{r===void 0&&(r=requestAnimationFrame(()=>{r=void 0,o()}))},a=new ResizeObserver(i);return a.observe(e),a.observe(t),e.addEventListener(`scroll`,i,{passive:!0}),()=>{a.disconnect(),e.removeEventListener(`scroll`,i),r!==void 0&&cancelAnimationFrame(r)}},[o]);let s=Math.max(a?.imageCount??0,a?.images?.length??0);return(0,q.jsx)(`div`,{className:`sticky-prompt-slot`,ref:n,children:a&&(0,q.jsx)(bS,{asChild:!0,content:H(`conversation:back_to_original_prompt`),side:`bottom`,align:`center`,children:(0,q.jsxs)(J,{variant:`ghost`,className:`sticky-prompt`,"aria-label":H(`conversation:back_to_original_prompt`),onClick:e=>{let r=n.current?.parentElement?.querySelector(`.conversation-scroll`),i=[...r?.querySelectorAll(`[data-prompt-id]`)??[]].find(e=>e.dataset.promptId===(a.clientId??a.id));if(!r||!i)return;let o=e.currentTarget.getBoundingClientRect().height+8;t(),i.focus({preventScroll:!0}),r.scrollTop+=i.getBoundingClientRect().top-r.getBoundingClientRect().top-r.clientTop-o},children:[(0,q.jsx)(`span`,{className:`sticky-prompt-label`,children:H(`conversation:your_instructions`)}),(0,q.jsx)(`span`,{className:`sticky-prompt-text`,children:a.text?.trim()||(s?H(`conversation:images`,{count:s,v0:s}):H(`conversation:user_prompt`))}),(0,q.jsx)(Y,{name:`down`,size:14,style:{transform:`rotate(180deg)`}})]})})})}var wL={get commandExecution(){return H(`common:run_command`)},get fileChange(){return H(`conversation:file_changes`)},get reasoning(){return H(`conversation:reasoning`)},get mcpToolCall(){return H(`conversation:tool_call`)},get webSearch(){return H(`conversation:web_search`)},get plan(){return H(`conversation:execution_plan`)},get enteredReviewMode(){return H(`conversation:start_code_review`)},get exitedReviewMode(){return H(`conversation:code_review_results`)}},TL={get completed(){return H(`common:completed`)},get inProgress(){return H(`common:running`)},get running(){return H(`common:running`)},get failed(){return H(`common:failed`)},get declined(){return H(`common:denied`)},get interrupted(){return H(`common:interrupted`)}};function EL({item:e,streaming:t}){let n=jI();return(0,q.jsx)(nL,{className:`activity${e.type===`commandExecution`?` activity-command`:``}${e.status===`failed`?` activity-failed`:``}`,label:e.command?H(`conversation:activityWithCommand`,{label:wL[e.type]??e.type,command:e.command}):wL[e.type]??e.type,summary:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Y,{name:e.type===`fileChange`?`code`:`terminal`,size:16}),(0,q.jsxs)(`span`,{className:`activity-description`,children:[(0,q.jsx)(`span`,{className:`activity-label`,children:wL[e.type]??e.type}),e.command&&(0,q.jsx)(`code`,{className:`command-summary`,children:e.command})]}),(0,q.jsx)(`span`,{className:`activity-status`,children:e.status?TL[e.status]??e.status:``})]}),children:(0,q.jsxs)(`div`,{className:`activity-body`,children:[e.cwd&&(0,q.jsx)(`p`,{className:`mono subtle`,children:e.cwd}),e.command&&(0,q.jsx)(`pre`,{className:`command`,children:(0,q.jsxs)(`code`,{children:[`$ `,e.command]})}),e.text&&(0,q.jsx)(DI,{text:e.text,streaming:t}),e.output!==void 0&&(e.type===`commandExecution`?(0,q.jsxs)(`div`,{className:`command-output`,children:[(0,q.jsx)(cL,{output:e.output,truncated:e.truncated}),(0,q.jsx)(`pre`,{className:`tool-output`,tabIndex:0,children:(0,q.jsx)(`code`,{children:e.output||H(`conversation:no_output_yet`)})})]}):(0,q.jsx)(`pre`,{className:`tool-output`,children:(0,q.jsx)(`code`,{children:e.output||H(`conversation:no_output_yet`)})})),e.truncated&&(0,q.jsxs)(`p`,{className:`truncation`,children:[(0,q.jsx)(Y,{name:`alert`,size:14}),H(`conversation:output_exceeds_the_display_limit_and_has_been`)]}),e.changes?.map((t,r)=>(0,q.jsxs)(J,{className:`file-change-link`,variant:`ghost`,onClick:()=>n({id:e.id,scope:Ct(`conversation:file_changes_from_this_tool`),source:`item`,selectedPath:t.path}),children:[(0,q.jsx)(Y,{name:`code`,size:15}),(0,q.jsx)(`code`,{children:t.path}),(0,q.jsx)(`span`,{children:H(`conversation:view_changes`)}),(0,q.jsx)(Y,{name:`chevron`,size:14})]},`${t.path}:${r}`)),e.error&&(0,q.jsx)(`p`,{className:`inline-error`,children:U(e.error)}),e.details!==void 0&&(0,q.jsxs)(`details`,{className:`raw-details`,children:[(0,q.jsx)(`summary`,{children:H(`conversation:activity_details`)}),(0,q.jsx)(`pre`,{children:JSON.stringify(e.details,null,2)})]})]})})}function DL({item:e,questionControls:t,replies:n,streaming:r=!1}){return e.type===`contextCompaction`?e.status===`inProgress`?null:(0,q.jsx)(fL,{item:e}):e.type===`userMessage`?(0,q.jsx)(SL,{item:e,status:e.submissionStatus}):e.type===`autoApprovalReview`&&e.autoReview?(0,q.jsx)(sL,{review:e.autoReview}):e.type===`agentMessage`||e.type===`exitedReviewMode`?(0,q.jsx)(`article`,{className:`message assistant-message`,"aria-label":H(`conversation:codex_reply`),children:(0,q.jsxs)(`div`,{className:`message-content`,children:[e.type===`agentMessage`&&e.questions?.length?(0,q.jsx)(QI,{itemId:e.id,questions:e.questions,replies:n,tracking:t?.tracking,onDismiss:t?.onDismiss,disabled:t?.disabled??!0,onReply:t?.onReply??(async()=>!1)}):(0,q.jsx)(DI,{text:e.text??``,streaming:r}),e.error&&(0,q.jsx)(`p`,{className:`inline-error`,children:U(e.error)})]})}):(0,q.jsx)(EL,{item:e,streaming:r})}function OL({turn:e,offline:t}){if(!e.reconnect||co(e))return null;let n=e.reconnect.status===`retrying`,r=n?so(e.reconnect.message):void 0;return(0,q.jsxs)(`div`,{className:`codex-reconnect codex-reconnect-${e.reconnect.status}`,"data-testid":`codex-reconnect-status`,"data-state":e.reconnect.status,role:n?`status`:`alert`,"aria-label":H(`conversation:codex_connection_status`),children:[(0,q.jsx)(Y,{name:n?`refresh`:`alert`,size:18}),(0,q.jsxs)(`div`,{className:`codex-reconnect-content`,children:[(0,q.jsxs)(`strong`,{children:[t&&H(`common:last_known`),H(n?`conversation:reconnecting`:`conversation:codex_reconnection_failed`),r&&(0,q.jsx)(`span`,{className:`codex-retry-attempt`,children:H(`conversation:retry_attempt`,r)})]}),(0,q.jsx)(`p`,{children:n?H(`conversation:reconnecting_to_the_model_service_codex_will_retry`):SS(e.status)?H(`conversation:codex_stopped_retrying_check_the_server_network_and`):H(`conversation:codex_stopped_retrying_check_the_server_network_and_2`)}),(0,q.jsxs)(`details`,{children:[(0,q.jsx)(`summary`,{children:H(`conversation:connection_details`)}),(0,q.jsx)(`p`,{className:`codex-reconnect-message`,children:U(e.reconnect.message)}),e.reconnect.errorDetails&&(0,q.jsx)(`p`,{className:`codex-reconnect-message`,children:e.reconnect.errorDetails})]})]})]})}function kL({turn:e,offline:t}){if(co(e)){let n=e.reconnect?.status===`retrying`,r=n?so(e.reconnect.message):void 0,i=[e.reconnect?.message??e.error,e.reconnect?.errorDetails??e.errorDetails].filter(e=>!!e).join(`
|
|
160
|
-
`);return(0,q.jsx)(YI,{offline:t,retrying:n,state:e.reconnect?.status??`failed`,details:i,progress:n?r?H(`conversation:retry_progress`,r):H(`conversation:retrying_short`):H(`conversation:retry_stopped_short`)})}return e.error&&e.reconnect?.status!==`failed`&&!e.items.some(t=>t.type===`contextCompaction`&&t.error===e.error)?(0,q.jsx)(`div`,{className:`error-banner`,children:U(e.error)}):null}function AL(e){return(0,q.jsx)($F,{threadId:e.thread?.id,children:(0,q.jsx)(jL,{...e})},e.thread?.id??`empty`)}function jL({thread:e,offline:t,retryControls:n,history:r,projectName:i,needsProject:a=!1,canAddProject:o=!0,onAddProject:s,readingEnabled:c=!0,onReadCompleted:l,questionControls:u}){let d=jI(),f=(0,y.useRef)(null),p=(0,y.useRef)(null),m=(0,y.useRef)(!0),[h,g]=(0,y.useState)(!1),_=(0,y.useRef)(e?.id),v=(0,y.useRef)(void 0),b=(0,y.useRef)(void 0),x=(0,y.useRef)(0),S=(0,y.useRef)(!1),C=(0,y.useRef)(!1),{turns:w,unbound:T}=e?po(e):{turns:[],unbound:[]},E=e?.turns.at(-1),D=new Map;for(let t of e?.turns??[])for(let e of t.items)for(let t of e.questionReplies??[]){let e=D.get(t.questionItemId)??[];D.set(t.questionItemId,[...e,t])}let O=E&&SS(E.status)?E.items.findLast(e=>e.type===`contextCompaction`&&e.status===`inProgress`):void 0,k=_t();(0,y.useLayoutEffect)(()=>{_.current!==e?.id&&(_.current=e?.id,m.current=!0,g(!1),b.current=void 0,S.current=!1,C.current=!1);let t=f.current,n=document.activeElement;if(n instanceof HTMLElement&&t?.contains(n)&&n.matches(`[data-attention-id]`)&&(m.current=!1,b.current=void 0),m.current)p.current?.scrollIntoView({block:`end`});else if(t&&b.current){let e=[...t.querySelectorAll(`[data-turn-id]`)].find(e=>e.dataset.turnId===b.current.id);e&&(t.scrollTop+=e.getBoundingClientRect().top-t.getBoundingClientRect().top-b.current.offset)}t&&(x.current=t.scrollTop)},[e,k]);let A=(0,y.useCallback)(()=>{let e=f.current;if(!e)return;S.current=C.current&&e.scrollTop<x.current,x.current=e.scrollTop;let t=[...e.querySelectorAll(`[data-turn-id]`)].find(t=>t.getBoundingClientRect().bottom>e.getBoundingClientRect().top);b.current=t?{id:t.dataset.turnId,offset:t.getBoundingClientRect().top-e.getBoundingClientRect().top}:void 0,S.current&&e.scrollTop<Math.max(600,e.clientHeight*1.5)&&!r?.error&&r?.onLoadOlder(),m.current=e.scrollHeight-e.scrollTop-e.clientHeight<100,g(!m.current)},[r]);return(0,y.useEffect)(()=>{let e=f.current;e&&S.current&&e.scrollTop<Math.max(600,e.clientHeight*1.5)&&!r?.loading&&!r?.error&&r?.onLoadOlder()},[e,r]),(0,y.useEffect)(()=>{let e=f.current;if(!e)return;let t=e=>{e.target instanceof HTMLDetailsElement&&e.target.classList.contains(`collapsible-activity`)&&A()};return e.addEventListener(`toggle`,t,!0),()=>e.removeEventListener(`toggle`,t,!0)},[A]),(0,y.useEffect)(()=>{let t=f.current,n=p.current,r=e?.id,i=E?.id;if(!c||!l||!t||!n||!r||!i||E.status!==`completed`)return;let a=()=>{if(document.visibilityState!==`visible`||!document.hasFocus()||document.querySelector(`dialog[open]`)||t.clientHeight===0)return;let e=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=Math.max(0,e.top+t.clientTop),s=Math.min(window.innerHeight,e.top+t.clientTop+t.clientHeight);if(s<=o||a.top<o||a.bottom>s)return;let c=v.current;(c?.threadId!==r||c.turnId!==i)&&(v.current={threadId:r,turnId:i},l(r,i))},o=new IntersectionObserver(a,{root:t});return o.observe(n),t.addEventListener(`scroll`,a),window.addEventListener(`focus`,a),document.addEventListener(`focusin`,a),document.addEventListener(`close`,a,!0),document.addEventListener(`visibilitychange`,a),a(),()=>{o.disconnect(),t.removeEventListener(`scroll`,a),window.removeEventListener(`focus`,a),document.removeEventListener(`focusin`,a),document.removeEventListener(`close`,a,!0),document.removeEventListener(`visibilitychange`,a)}},[e?.id,E?.id,E?.status,c,l]),(0,q.jsxs)(`div`,{className:`conversation-area`,children:[r?.cached&&(0,q.jsxs)(`div`,{className:`history-cache-notice`,role:`status`,children:[(0,q.jsx)(`span`,{children:r.syncError?H(`conversation:showing_local_cache_sync_failed_some_history_may`):H(`conversation:showing_local_cache_checking_latest_messages_and_task`)}),r.syncError&&(0,q.jsx)(J,{variant:`ghost`,size:`sm`,onClick:r.onRetryOpen,children:H(`conversation:resynchronize`)})]}),E?.reconnect&&!co(E)&&!e?.capacityRetry&&(0,q.jsx)(`div`,{className:`codex-reconnect-pinned`,children:(0,q.jsx)(OL,{turn:E,offline:t})}),O&&(0,q.jsx)(`div`,{className:`context-compaction-pinned`,children:(0,q.jsx)(fL,{item:O,offline:t})}),(0,q.jsxs)(`div`,{className:`conversation-viewport`,children:[(0,q.jsx)(CL,{thread:e?{...e,turns:w}:void 0,onJump:()=>{m.current=!1}}),(0,q.jsx)(`div`,{className:`conversation-scroll`,ref:f,onScroll:A,onWheel:()=>{C.current=!0},onTouchStart:()=>{C.current=!0},onPointerDown:()=>{C.current=!0},onKeyDown:e=>{[`ArrowUp`,`ArrowDown`,`PageUp`,`PageDown`,`Home`,`End`,` `].includes(e.key)&&(C.current=!0)},tabIndex:0,"aria-label":H(`conversation:session_messages`),children:(0,q.jsxs)(`div`,{className:`conversation-content`,children:[(e?.history?.olderCursor||r?.error)&&(0,q.jsxs)(`div`,{className:`history-pagination`,role:`status`,"aria-live":`polite`,"aria-busy":r?.loading,children:[(0,q.jsx)(`span`,{children:r?.error??(r?.loading?H(`conversation:loading_earlier_messages`):H(`conversation:scroll_up_to_load_earlier_messages`))}),(0,q.jsx)(J,{variant:`ghost`,size:`sm`,disabled:r?.loading,onClick:()=>r?.onLoadOlder(),children:r?.error?H(`conversation:retry_loading`):H(`conversation:load_earlier_messages`)}),r?.error&&r.cached&&e?.history?.olderCursor&&(0,q.jsx)(J,{variant:`ghost`,size:`sm`,disabled:r.loading||r.cacheExhausted,onClick:r.onLoadCachedOlder,children:r.cacheExhausted?H(`conversation:no_local_cache_here_yet`):H(`conversation:continue_reading_local_history`)})]}),e?.historyTruncated&&(0,q.jsxs)(`p`,{className:`truncation`,children:[(0,q.jsx)(Y,{name:`alert`,size:14}),H(`conversation:some_older_history_is_omitted_from_this_live`)]}),r?.opening&&!e?.turns.length?(0,q.jsxs)(`div`,{className:`history-opening`,role:r.openingError?`alert`:`status`,children:[(0,q.jsx)(`p`,{children:r.openingError??H(`common:loading_session`)}),r.openingError?(0,q.jsx)(J,{variant:`secondary`,onClick:r.onRetryOpen,children:H(`conversation:retry_reading`)}):(0,q.jsxs)(`div`,{className:`history-skeleton`,"aria-hidden":`true`,children:[(0,q.jsx)(`span`,{}),(0,q.jsx)(`span`,{}),(0,q.jsx)(`span`,{})]})]}):!e?.turns.length&&!T.length?(0,q.jsxs)(`div`,{className:`empty-state`,"data-testid":`workspace-start`,"data-thread-ready":!!e,children:[(0,q.jsx)(`div`,{className:`empty-symbol`,children:(0,q.jsx)(Y,{name:`code`,size:36})}),(0,q.jsx)(`p`,{className:`eyebrow`,children:H(`conversation:your_development_workspace`)}),(0,q.jsx)(`h1`,{children:H(`conversation:start_with_an_idea`)}),(0,q.jsxs)(`p`,{children:[H(`conversation:describe_your_task_or_paste_an_image_question`),(0,q.jsx)(`br`,{}),i?H(`conversation:start_in_project`,{v0:i}):H(`conversation:start_without_project`)]}),a&&(0,q.jsxs)(J,{variant:`ghost`,onClick:s,disabled:!o,children:[(0,q.jsx)(Y,{name:`plus`,size:16}),H(`common:add_project`)]}),(0,q.jsxs)(`div`,{className:`empty-features`,children:[(0,q.jsxs)(`span`,{children:[(0,q.jsx)(Y,{name:`terminal`,size:16}),H(`conversation:live_execution`)]}),(0,q.jsxs)(`span`,{children:[(0,q.jsx)(Y,{name:`code`,size:16}),H(`conversation:changes_by_turn`)]}),(0,q.jsxs)(`span`,{children:[(0,q.jsx)(Y,{name:`check`,size:16}),H(`conversation:approve_and_follow_up_anytime`)]})]})]}):w.map((r,i)=>(0,q.jsxs)(`section`,{className:`turn`,"data-turn-id":r.id,"aria-label":H(`conversation:turn`,{v0:i+1}),children:[(0,q.jsxs)(`div`,{className:`turn-heading`,children:[(0,q.jsx)(`span`,{children:H(`conversation:turn`,{v0:i+1})}),(0,q.jsx)(CS,{status:r.status,offline:t})]}),r.id!==E?.id&&r.reconnect?.status===`failed`&&!co(r)&&(0,q.jsx)(OL,{turn:r,offline:t}),lL(r.items).map(e=>e.kind===`message`?(0,q.jsx)(DL,{item:e.item,streaming:SS(r.status),questionControls:u,replies:[...D.get(e.item.id)??[],...(e.item.questions??[]).flatMap((t,n)=>D.get(Qa(e.item.id,n))??[])]},e.key):(0,q.jsx)(dL,{items:e.items,children:e.items.map(e=>(0,q.jsx)(DL,{item:e,streaming:SS(r.status)},e.id))},e.key)),e?.actions.filter(e=>e.kind===`questions`&&(e.status===`responded`||e.status===`expired`)&&e.turnId===r.id).map(e=>(0,q.jsx)(JI,{action:e,disabled:!0,onResolve:()=>{}},e.actionId)),(r.diff!==void 0||r.items.some(e=>e.changes?.length))&&(0,q.jsxs)(J,{className:`turn-diff`,variant:`ghost`,onClick:()=>d({id:r.id,scope:Ct(`conversation:turn_changes`,{v0:i+1}),source:`turn`}),children:[(0,q.jsx)(Y,{name:`code`,size:17}),(0,q.jsxs)(`span`,{children:[H(`conversation:changes_in_this_turn`),(0,q.jsx)(`small`,{children:H(`conversation:view_file_and_line_changes`)})]}),(0,q.jsx)(Y,{name:`chevron`,size:16})]}),r.id===E?.id&&e&&(e.capacityRetry||E.status===`failed`&&ao(E.error??``,E.errorCode))?(0,q.jsx)(XI,{thread:e,offline:t,controls:n}):(0,q.jsx)(kL,{turn:r,offline:t}),(0,q.jsx)(xL,{turn:r})]},r.id)),T.map(e=>(0,q.jsx)(SL,{item:e,status:e.submissionStatus},e.clientId??e.id)),(0,q.jsx)(`div`,{ref:p})]})})]}),h&&(0,q.jsxs)(J,{className:`back-to-bottom`,variant:`secondary`,size:`sm`,onClick:()=>{m.current=!0,g(!1),p.current?.scrollIntoView({block:`end`})},children:[(0,q.jsx)(Y,{name:`down`,size:15}),H(`conversation:back_to_latest`)]})]})}function ML({title:e,rename:t,pending:n}){let[r,i]=(0,y.useState)(!1),[a,o]=(0,y.useState)(``),[s,c]=(0,y.useState)(),[l,u]=(0,y.useState)(!1),d=(0,y.useRef)(!1),f=(0,y.useRef)(null),p=(0,y.useRef)(null),m=(0,y.useRef)(!1),h=(0,y.useRef)(!1),g=(0,y.useRef)(-1/0),_=(0,y.useId)(),v=t.unavailableReason?.replaceAll(`/status`,H(`common:diagnostics`));(0,y.useEffect)(()=>{r&&(f.current?.focus(),f.current?.select())},[r]),(0,y.useEffect)(()=>{r&&!l&&s&&f.current?.focus()},[r,l,s]),(0,y.useEffect)(()=>{!s||l||n||r||(e===a.trim()?c(void 0):i(!0))},[s,l,n,r,e,a]),(0,y.useLayoutEffect)(()=>{!r&&m.current&&(m.current=!1,p.current?.focus())},[r]);function b(){m.current=!0,i(!1),c(void 0)}async function x(){if(d.current||v)return;let e=a.trim()?hh(a):H(`sidebar:enter_a_session_name`);if(e)c(e),f.current?.focus();else{d.current=!0,u(!0),c(void 0),b();try{let e=await t.run(a);e.error?c(e.message.replaceAll(`/status`,Ct(`common:diagnostics`))):c(void 0)}catch(e){c(ha(e))}finally{d.current=!1,u(!1)}}}return(0,q.jsx)(`div`,{className:`thread-title-editor${r?` thread-title-editing`:``}`,children:r?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`h1`,{className:`sr-only`,children:e}),(0,q.jsxs)(`form`,{className:`thread-title-form`,"aria-label":H(`sidebar:rename_session`),"aria-busy":l,onSubmit:e=>{e.preventDefault(),h.current||x()},children:[(0,q.jsxs)(`div`,{className:`thread-title-fields`,children:[(0,q.jsx)(`input`,{ref:f,"aria-label":H(`sidebar:session_name`),"aria-describedby":`${_}-help${s?` ${_}-error`:``}`,"aria-invalid":!!s,value:a,disabled:l,onChange:e=>{o(e.target.value),c(void 0)},onCompositionStart:()=>{h.current=!0},onCompositionEnd:()=>{h.current=!1,g.current=performance.now()},onBlur:()=>{h.current=!1,g.current=-1/0},onKeyDown:e=>{h.current||e.nativeEvent.isComposing||e.nativeEvent.keyCode===229?e.key===`Enter`&&e.preventDefault():(e.key===`Escape`&&(e.preventDefault(),d.current||b()),e.key===`Enter`&&(e.preventDefault(),performance.now()-g.current>=100&&x()))},onKeyUp:e=>{e.key===`Enter`&&(g.current=-1/0)}}),(0,q.jsx)(bS,{content:H(`sidebar:save_session_name`),children:(0,q.jsx)(J,{type:`submit`,size:`icon`,"aria-label":H(`sidebar:save_session_name`),disabled:l||!!v,children:(0,q.jsx)(Y,{name:`check`,size:16})})}),(0,q.jsx)(bS,{content:H(`sidebar:cancel_rename`),children:(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`sidebar:cancel_rename`),disabled:l,onClick:b,children:(0,q.jsx)(Y,{name:`close`,size:16})})})]}),(0,q.jsx)(`p`,{id:`${_}-help`,className:`thread-title-help`,children:l?H(`common:saving`):v??H(`sidebar:enter_to_save_esc_to_cancel_up_to`,{count:100,v0:100})}),s&&(0,q.jsx)(`p`,{id:`${_}-error`,className:`thread-title-error`,role:`alert`,children:U(s)})]})]}):(0,q.jsx)(bS,{id:`${_}-hint`,className:`thread-title-hint`,content:v??H(`sidebar:click_title_to_rename_session`),children:(0,q.jsx)(`h1`,{"aria-label":e,children:(0,q.jsxs)(`button`,{ref:p,type:`button`,className:`thread-title-trigger`,"aria-label":H(`sidebar:rename_session`),"aria-describedby":`${_}-hint`,"aria-disabled":!!v,onClick:()=>{v||(o(e),c(void 0),h.current=!1,g.current=-1/0,i(!0))},children:[(0,q.jsx)(`span`,{children:e}),(0,q.jsx)(Pn,{size:13,"aria-hidden":`true`})]})})})})}function NL({compact:e,trigger:t,onOpen:n,children:r}){let i=(0,y.useId)(),a=(0,y.useRef)(null),o=(0,y.useCallback)(()=>{let e=t.current?.getBoundingClientRect(),n=a.current;if(!e||!n)return;let r=e.bottom+6,i=window.visualViewport,o=i?i.offsetTop+i.height:innerHeight;n.style.setProperty(`--topbar-tools-top`,`${r}px`),n.style.setProperty(`--topbar-tools-right`,`${Math.max(8,innerWidth-e.right)}px`),n.style.setProperty(`--topbar-tools-max-height`,`${Math.max(0,o-r-8)}px`)},[t]);return(0,y.useEffect)(()=>{if(!e)return;let t=a.current,n=window.visualViewport,r=t?.closest(`.topbar`),i=new ResizeObserver(o);return r&&i.observe(r,{box:`border-box`}),window.addEventListener(`resize`,o),n?.addEventListener(`resize`,o),n?.addEventListener(`scroll`,o),()=>{i.disconnect(),window.removeEventListener(`resize`,o),n?.removeEventListener(`resize`,o),n?.removeEventListener(`scroll`,o),t?.style.removeProperty(`--topbar-tools-top`),t?.style.removeProperty(`--topbar-tools-right`),t?.style.removeProperty(`--topbar-tools-max-height`)}},[e,o]),(0,q.jsxs)(q.Fragment,{children:[e&&(0,q.jsx)(J,{ref:t,className:`topbar-more`,"data-compact-action":``,variant:`ghost`,size:`icon`,"aria-label":H(`workspace:more_actions`),popoverTarget:i,children:(0,q.jsx)(gn,{size:22,"aria-hidden":`true`})}),(0,q.jsx)(`div`,{ref:a,id:i,className:`topbar-tools`,popover:e?`auto`:void 0,onBeforeToggle:e=>{e.newState===`open`&&(o(),n())},onClickCapture:n=>{let r=n.target;e&&r instanceof Element&&n.currentTarget.contains(r)&&r.closest(`button:not(:disabled)`)&&(n.currentTarget.hidePopover(),t.current?.focus())},children:r})]})}function PL({projectId:e,threadId:t}){let n=t?`/api/threads/${encodeURIComponent(t)}/github-repository`:e?`/api/projects/${encodeURIComponent(e)}/github-repository`:void 0,[r,i]=(0,y.useState)();(0,y.useEffect)(()=>{if(!n)return;let e,t=()=>{e?.abort();let t=new AbortController;e=t,W(n,void 0,t.signal).then(({url:e})=>{t.signal.aborted||i({path:n,url:e})}).catch(()=>{t.signal.aborted||i({path:n,url:null})})};return t(),window.addEventListener(`focus`,t),()=>{e?.abort(),window.removeEventListener(`focus`,t)}},[n]);let a=r?.path===n?r?.url:null;return a?(0,q.jsx)(bS,{asChild:!0,content:H(`workspace:open_github_repository`),children:(0,q.jsx)(`a`,{className:`button button-ghost button-icon`,href:a,target:`_blank`,rel:`noopener noreferrer`,"aria-label":H(`workspace:open_github_repository`),children:(0,q.jsx)(Y,{name:`github`,size:18})})}):null}function FL(e){return/\s/u.test(e)&&!e.includes(`"`)?`"${e}"`:e}var IL=e=>`@${FL(e)}`;function LL(e,t){return/^(\s*)\/\//u.exec(e)?{text:e.replace(/^(\s*)\/\//u,`$1/`),files:t?.map(e=>({...e,start:e.start-1,end:e.end-1}))}:{text:e,files:t}}function RL(e,t,n=t){if(t!==n)return;let r=e.slice(0,t),i=/(?:^|[\s([{])@(?:"([^"\n]*)|([^\s`"\\]*))$/u.exec(r);if(!i||(r.match(/`/g)?.length??0)%2)return;let a=i[1]??i[2],o=e.slice(t),s=i[1]===void 0?t+(o.match(/^[^\s`"\\]*/u)?.[0].length??0):t+(o.indexOf(`"`)<0?o.match(/^[^\n]*/u)?.[0].length??0:o.indexOf(`"`)+1);return{start:t-a.length-(i[1]===void 0?1:2),end:s,search:a}}function zL(e,t){let n=JSON.stringify([e,t]),[r,i]=(0,y.useState)(0),a=(0,y.useMemo)(()=>({identity:n,attempt:r}),[n,r]),[o,s]=(0,y.useState)();(0,y.useEffect)(()=>{if(!e?.query)return;let t=new AbortController,n=setTimeout(()=>{W(`/api/files/search`,e,t.signal).then(e=>{t.signal.aborted||s({generation:a,result:e})},e=>{t.signal.aborted||s({generation:a,error:ha(e)})})},160);return()=>{clearTimeout(n),t.abort()}},[a]);let c=o?.generation===a?o:void 0;return{...c,loading:!(!e?.query||c),refresh:()=>i(e=>e+1)}}function BL({id:e,search:t,selected:n,unavailable:r,emptyQuery:i,onSelect:a,onChoose:o}){let s=(0,y.useRef)(null),c=t.result?.paths??[];return(0,y.useEffect)(()=>{s.current?.scrollIntoView({block:`nearest`})},[n,c[n]]),(0,q.jsxs)(`div`,{className:`skill-reference-menu file-reference-menu`,children:[(0,q.jsxs)(`div`,{className:`skills-toolbar`,children:[(0,q.jsx)(`strong`,{children:H(`composer:files_title`)}),(0,q.jsx)(J,{type:`button`,size:`icon`,variant:`ghost`,"aria-label":H(`common:reload`),disabled:t.loading||!!r||i,onPointerDown:e=>e.preventDefault(),onClick:t.refresh,children:(0,q.jsx)(Y,{name:`refresh`,size:14})})]}),r||t.error?(0,q.jsx)(`p`,{className:`skills-state`,role:`status`,children:U(r??t.error)}):t.loading?(0,q.jsx)(`p`,{className:`skills-state`,role:`status`,children:H(`common:loading_2`)}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{id:e,role:`listbox`,"aria-label":H(`composer:files_title`),className:`skill-options`,children:c.map((t,r)=>(0,q.jsxs)(`button`,{id:`${e}-${r}`,type:`button`,role:`option`,ref:r===n?s:void 0,tabIndex:-1,"aria-selected":r===n,className:`skill-option file-option`,title:t,onPointerDown:e=>e.preventDefault(),onPointerMove:e=>{e.pointerType===`mouse`&&a(r)},onClick:()=>o(t),children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,children:`@`}),(0,q.jsx)(`span`,{children:t}),r===n&&(0,q.jsx)(`span`,{className:`skill-option-selected`,children:(0,q.jsx)(Y,{name:`check`,size:15})})]},t))}),(!c.length||t.result?.limited)&&(0,q.jsx)(`p`,{className:`skills-state`,role:`status`,children:H(i?`composer:files_type_path`:t.result?.limited?`composer:files_limited`:`composer:files_no_match`)})]})]})}function VL(e,t){let n=t.trim().toLocaleLowerCase();return e.filter(e=>[e.name,e.description,e.path,e.scope,e.pluginId??``].some(e=>e.toLocaleLowerCase().includes(n)))}function HL(e,t,n=t){if(t!==n)return;let r=e.slice(0,t),i=/(?:^|[\s([{])\$([^\s$`\\/]*)$/u.exec(r);if(!(!i||/^\d/u.test(i[1])||(r.match(/`/g)?.length??0)%2))return{start:t-i[1].length-1,end:t,search:i[1]}}function UL(e=[]){return[...new Map(e.map(({name:e,path:t,cwd:n})=>[JSON.stringify([e,t,n]),{name:e,path:t,cwd:n}])).values()]}function WL(e,t,n){let r=t.replace(/\/$/u,``)+`/`;if(e.path.startsWith(r))return`./`+e.path.slice(r.length);let i=e.path.split(`/`);for(let t=3;t<i.length;t++){let r=i.slice(-t).join(`/`);if(!n.some(t=>t.name===e.name&&t.path!==e.path&&t.path.endsWith(`/`+r)))return`…/`+r}return e.path}var GL=e=>`name`in e?`$${e.name}`:IL(e.path);function KL(e,t,n){for(let r of e){if(t===n&&t>r.start&&t<r.end){let e=t-r.start<r.end-t?r.start:r.end;return{start:e,end:e}}t<r.end&&n>r.start&&(t=Math.min(t,r.start),n=Math.max(n,r.end))}return{start:t,end:n}}function qL(e,t,n,r,i){if(n!==r)return t.some(e=>n<e.end&&r>e.start)?KL(t,n,r):void 0;let a=t.find(t=>i?n>t.start&&(n<=t.end||n===t.end+1&&e[t.end]===` `):n>=t.start&&n<t.end);if(a)return{start:a.start,end:i?Math.max(r,a.end):a.end+ +(e[a.end]===` `)}}function JL(e,t,n=[],r){let i=0,a=e.length,o=t.length;if(r!==void 0){for(;o>r&&a>0&&e[a-1]===t[o-1];)a--,o--;for(;i<Math.min(a,o)&&e[i]===t[i];)i++}else{for(;i<Math.min(e.length,t.length)&&e[i]===t[i];)i++;for(;a>i&&o>i&&e[a-1]===t[o-1];)a--,o--}return YL(t,n,i,a,o)}function YL(e,t,n,r,i){let a=i-r;return t.flatMap(t=>{let i=t.end<=n?t:t.start>=r?{...t,start:t.start+a,end:t.end+a}:void 0;return!i||e.slice(i.start,i.end)!==GL(i)||i.start>0&&!/[\s([{]/u.test(e[i.start-1])||i.end<e.length&&!/[\s.,!?;:)\]}]/u.test(e[i.end])?[]:[i]})}function XL(e,t,n,r,i=[]){let a=e.slice(0,t)+r+e.slice(n);return{text:a,bindings:YL(a,i,t,n,t+r.length)}}var ZL=[],QL=[],$L=(0,y.forwardRef)(function({draftKey:e,skills:t=ZL,files:n=QL,...r},i){let a=(0,y.useRef)(null),o=(0,y.useRef)(null),s=(0,y.useId)(),c=String(r.value??``),l=(0,y.useRef)({draftKey:e,states:[{text:c,skills:t,files:n}],index:0});(0,y.useLayoutEffect)(()=>{if(l.current.draftKey!==e){l.current={draftKey:e,states:[{text:c,skills:t,files:n}],index:0};return}let r=l.current.states[l.current.index];(r.text!==c||JSON.stringify([r.skills,r.files])!==JSON.stringify([t,n]))&&(l.current.states.splice(l.current.index+1),l.current.states.push({text:c,skills:t,files:n}),l.current.states.length>100&&l.current.states.shift(),l.current.index=l.current.states.length-1)},[e,c,t,n]);let u=[...t,...n].filter(e=>c.slice(e.start,e.end)===GL(e)).sort((e,t)=>e.start-t.start),d=(0,y.useRef)(void 0),f=(0,y.useRef)(!1);(0,y.useLayoutEffect)(()=>{f.current=!1,d.current=void 0},[e]);let[p,m]=(0,y.useState)({start:0,end:0});(0,y.useImperativeHandle)(i,()=>a.current,[]);function h(e){let t=a.current;if(!t||r.readOnly||f.current)return;let n=qL(c,u,t.selectionStart,t.selectionEnd,e);n&&(d.current={text:c,...n},t.setSelectionRange(n.start,n.end))}(0,y.useLayoutEffect)(()=>{let e=a.current,t=o.current,n=()=>{t.style.width=`${e.clientWidth}px`,t.style.height=`${e.clientHeight}px`,t.firstElementChild.setAttribute(`style`,`transform: translate(${-e.scrollLeft}px, ${-e.scrollTop}px)`)},r=new ResizeObserver(n);return r.observe(e),e.addEventListener(`scroll`,n),n(),()=>{r.disconnect(),e.removeEventListener(`scroll`,n)}},[]),(0,y.useLayoutEffect)(()=>{let e=a.current,t=e=>{d.current=void 0,!e.isComposing&&e.inputType.startsWith(`delete`)&&h(e.inputType.endsWith(`Backward`))};return e.addEventListener(`beforeinput`,t),()=>e.removeEventListener(`beforeinput`,t)});let g=0,_=u.map(e=>{let t=c.slice(g,e.start);return g=e.end,(0,q.jsxs)(`span`,{children:[t,(0,q.jsx)(`mark`,{"data-skill-path":`name`in e?e.path:void 0,"data-file-path":`name`in e?void 0:e.path,title:e.path,children:c.slice(e.start,e.end)})]},`${e.start}:${e.path}`)}),v=u.find(e=>p.start>=e.start&&p.end<=e.end+1);return(0,q.jsxs)(`div`,{className:`composer-editor`,children:[(0,q.jsx)(`div`,{ref:o,className:`composer-highlights`,"aria-hidden":`true`,children:(0,q.jsxs)(`div`,{children:[_,c.slice(g),``]})}),!!u.length&&(0,q.jsxs)(`span`,{id:s,className:`sr-only`,children:[H(`composer:references_selected`),`:`,` `,u.map(e=>`${GL(e)}: ${e.path}`).join(`; `)]}),(0,q.jsx)(`textarea`,{...r,ref:a,title:v?.path,"aria-describedby":[r[`aria-describedby`],u.length?s:void 0].filter(Boolean).join(` `)||void 0,onKeyDown:e=>{if(r.onKeyDown?.(e),!(e.defaultPrevented||e.nativeEvent.isComposing||e.nativeEvent.keyCode===229||f.current)){if(e.key===`Backspace`||e.key===`Delete`)h(e.key===`Backspace`);else if(!e.shiftKey&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&eR(e.currentTarget)){let t=e.currentTarget.selectionStart,n=u.find(n=>e.key===`ArrowLeft`?t===n.end:e.key===`ArrowRight`&&t===n.start);if(n){e.preventDefault();let t=e.key===`ArrowLeft`?n.start:n.end;e.currentTarget.setSelectionRange(t,t)}}}},onSelect:e=>{let t=e.currentTarget,n=f.current?{start:t.selectionStart,end:t.selectionEnd}:KL(u,t.selectionStart,t.selectionEnd);(n.start!==t.selectionStart||n.end!==t.selectionEnd)&&t.setSelectionRange(n.start,n.end,t.selectionDirection),m(n),r.onSelect?.(e)},onChange:e=>{let t=d.current;if(d.current=void 0,t?.text===c&&e.nativeEvent.inputType?.startsWith(`delete`)){let n=c.slice(0,t.start)+c.slice(t.end);e.currentTarget.value!==n&&(e.currentTarget.value=n,e.currentTarget.setSelectionRange(t.start,t.start))}let n=e.nativeEvent.inputType,i,a;if(n===`historyUndo`||n===`historyRedo`){let t=n===`historyUndo`?-1:1;for(let n=l.current.index+t;n>=0&&n<l.current.states.length;n+=t){let t=l.current.states[n];if(t.text===e.currentTarget.value){l.current.index=n,i=t.skills,a=t.files;break}}}r.onChange?.(e,i,a)},onCompositionStart:e=>{f.current=!0,r.onCompositionStart?.(e)},onCompositionEnd:e=>{f.current=!1,r.onCompositionEnd?.(e)},onBlur:e=>{f.current=!1,d.current=void 0,r.onBlur?.(e)}})]})});function eR(e){return e.selectionStart===e.selectionEnd}function tR({id:e,skills:t,matches:n,selected:r,unavailable:i,onSelect:a,onChoose:o}){let s=(0,y.useRef)(null);return(0,y.useEffect)(()=>{s.current?.scrollIntoView({block:`nearest`})},[r,n[r]?.path]),(0,q.jsxs)(`div`,{className:`skill-reference-menu`,children:[(0,q.jsxs)(`div`,{className:`skills-toolbar`,children:[(0,q.jsx)(`strong`,{children:H(`composer:skills_title`)}),(0,q.jsx)(J,{type:`button`,size:`icon`,variant:`ghost`,"aria-label":H(`common:reload`),title:H(`common:reload`),disabled:t.loading,onPointerDown:e=>e.preventDefault(),onClick:t.refresh,children:(0,q.jsx)(Y,{name:`refresh`,size:14})})]}),i||t.error?(0,q.jsx)(`p`,{className:`skills-state`,role:`status`,children:U(i??t.error)}):t.loading?(0,q.jsx)(`p`,{className:`skills-state`,role:`status`,children:H(`common:loading_2`)}):(0,q.jsxs)(q.Fragment,{children:[!!t.catalog?.errors.length&&(0,q.jsx)(`p`,{className:`skills-errors`,role:`status`,children:H(`composer:skills_partial`)}),(0,q.jsx)(`div`,{id:e,role:`listbox`,"aria-label":H(`composer:skills_title`),className:`skill-options`,children:n.map((i,c)=>(0,q.jsxs)(`button`,{ref:c===r?s:void 0,id:`${e}-${c}`,type:`button`,role:`option`,tabIndex:-1,"aria-selected":c===r,className:`skill-option`,title:i.path,"aria-label":`$${i.name} · ${H(`composer:skills_scope_${i.scope}`)} · ${i.path}`,"aria-description":i.description,onPointerDown:e=>e.preventDefault(),onPointerMove:e=>{e.pointerType===`mouse`&&a(c)},onClick:()=>o(i),children:[(0,q.jsx)(`span`,{className:`skill-mark`,children:(0,q.jsx)(Y,{name:`skill`,size:16})}),(0,q.jsxs)(`span`,{className:`skill-option-content`,children:[(0,q.jsxs)(`span`,{className:`skills-name`,children:[(0,q.jsxs)(`strong`,{children:[`$`,i.name]}),(0,q.jsx)(`span`,{className:`skills-scope`,children:H(`composer:skills_scope_${i.scope}`)})]}),(0,q.jsx)(`span`,{className:`skill-option-description`,children:i.description}),(0,q.jsx)(`span`,{className:`skill-option-path`,children:WL(i,t.catalog?.cwd??``,n)})]}),c===r&&(0,q.jsx)(`span`,{className:`skill-option-selected`,children:(0,q.jsx)(Y,{name:`check`,size:15})})]},JSON.stringify([i.name,i.path])))}),!n.length&&(0,q.jsx)(`p`,{className:`skills-state`,role:`status`,children:H(`composer:skills_no_match`)})]})]})}function nR(e,t){let n=JSON.stringify([e,t]),[r,i]=(0,y.useState)(0),[a,o]=(0,y.useState)();(0,y.useEffect)(()=>{if(!e||!t)return;let i=new AbortController;return W(`/api/skills/list`,{...e,forceReload:!0},i.signal).then(e=>{i.signal.aborted||o({identity:n,attempt:r,catalog:e})},e=>{i.signal.aborted||o({identity:n,attempt:r,error:ha(e)})}),()=>i.abort()},[n,r]);let s=a?.identity===n&&a.attempt===r?a:void 0;return{catalog:s?.catalog,error:s?.error,loading:!!(e&&t&&!s),refresh:()=>i(e=>e+1)}}function rR({skills:e,unavailable:t,onClose:n}){let[r,i]=(0,y.useState)(``),a=VL(e.catalog?.skills??[],r);return(0,q.jsxs)(Ta,{open:!0,title:H(`composer:skills_title`),onClose:n,className:`skills-browser`,children:[(0,q.jsxs)(`div`,{className:`skills-toolbar`,children:[(0,q.jsxs)(`label`,{className:`skills-search`,children:[(0,q.jsx)(Y,{name:`search`,size:17}),(0,q.jsx)(`input`,{type:`search`,autoFocus:!0,"aria-label":H(`composer:skills_search`),placeholder:H(`composer:skills_search`),value:r,onChange:e=>i(e.target.value)})]}),(0,q.jsx)(J,{size:`icon`,variant:`ghost`,onClick:e.refresh,disabled:e.loading,"aria-label":H(`common:reload`),title:H(`common:reload`),children:(0,q.jsx)(Y,{name:`refresh`,size:16})})]}),t?(0,q.jsx)(`p`,{className:`skills-state`,role:`status`,children:t}):e.error?(0,q.jsx)(`p`,{className:`skills-state`,role:`alert`,children:U(e.error)}):e.loading?(0,q.jsx)(`p`,{className:`skills-state`,role:`status`,children:H(`common:loading_2`)}):e.catalog&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`details`,{className:`skills-workspace`,children:[(0,q.jsxs)(`summary`,{title:e.catalog.cwd,children:[(0,q.jsx)(Y,{name:`folder`,size:14}),(0,q.jsx)(`span`,{children:e.catalog.cwd.split(`/`).filter(Boolean).at(-1)??e.catalog.cwd}),(0,q.jsx)(Y,{name:`down`,size:12})]}),(0,q.jsx)(`p`,{className:`skills-path`,children:e.catalog.cwd})]}),!!e.catalog.errors.length&&(0,q.jsxs)(`details`,{className:`skills-errors`,open:!0,children:[(0,q.jsx)(`summary`,{children:H(`composer:skills_partial`)}),e.catalog.errors.map((e,t)=>(0,q.jsxs)(`p`,{children:[e.path,`: `,e.message]},t))]}),!a.length&&(0,q.jsx)(`p`,{className:`skills-state`,role:`status`,children:H(e.catalog.skills.length?`composer:skills_no_match`:`composer:skills_empty`)}),(0,q.jsx)(`ul`,{className:`skills-list`,children:a.map(e=>(0,q.jsx)(`li`,{"data-enabled":e.enabled,children:(0,q.jsxs)(`details`,{children:[(0,q.jsxs)(`summary`,{children:[(0,q.jsx)(`span`,{className:`skill-mark`,children:(0,q.jsx)(Y,{name:`skill`,size:18})}),(0,q.jsxs)(`span`,{className:`skills-summary`,children:[(0,q.jsxs)(`span`,{className:`skills-name`,children:[(0,q.jsx)(`strong`,{children:e.name}),(0,q.jsx)(`span`,{className:`skills-scope`,children:H(`composer:skills_scope_${e.scope}`)})]}),(0,q.jsx)(`span`,{className:`skills-description`,children:e.description})]}),(0,q.jsxs)(`span`,{className:`skills-availability`,children:[(0,q.jsx)(`span`,{}),H(e.enabled?`composer:skills_enabled`:`composer:skills_disabled`)]}),(0,q.jsx)(`span`,{className:`skills-chevron`,children:(0,q.jsx)(Y,{name:`chevron`,size:14})})]}),(0,q.jsxs)(`div`,{className:`skills-source`,children:[(0,q.jsx)(`p`,{className:`skills-path`,children:e.path}),e.pluginId&&(0,q.jsx)(`p`,{className:`skills-path`,children:e.pluginId})]})]})},JSON.stringify([e.name,e.path])))})]})]})}var iR={text:``,images:[]};function aR(e){if(e.some(e=>!ph.includes(e.type)))return H(`composer:paste_a_png_jpeg_webp_or_gif_image`);if(e.some(e=>e.size===0))return H(`composer:the_image_is_empty_copy_and_paste_it`)}function oR(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{typeof r.result==`string`?t(r.result):n(Error(H(`common:could_not_read_the_image_please_paste_it`)))},r.onerror=r.onabort=()=>n(Error(H(`common:could_not_read_the_image_please_paste_it`))),r.readAsDataURL(e)})}function sR(e,t){let[n,r]=(0,y.useState)(0),i=e&&t?JSON.stringify([e,t,n]):``,[a,o]=(0,y.useState)();return(0,y.useEffect)(()=>{if(!i||!e)return;let t=!1;return pr.runtimeSettings(e).then(e=>{t||o({key:i,value:e})},()=>{t||o({key:i,error:H(`workspace:cannot_read_default_settings`)})}),()=>{t=!0}},[i,e]),{value:a?.key===i?a.value:void 0,error:a?.key===i?a.error:void 0,loading:!!(i&&a?.key!==i),retry:()=>r(e=>e+1)}}function cR({settings:e,current:t,unknown:n,disabled:r,scope:i,onChange:a}){let[o,s]=(0,y.useState)(!1);(0,y.useEffect)(()=>s(!1),[i,r]);let c=e.permissionMode??yo(t)??``,l=e.permissionMode?_o[e.permissionMode].label:bo(t,n);return(0,q.jsxs)(PT,{value:c,disabled:r,open:o,onOpenChange:s,onValueChange:n=>{let r=n;r in _o&&!vo(r,t?.permissionCapabilities,e.model??t?.model)&&a(xo(e,t,r))},children:[(0,q.jsx)(bS,{content:H(`settings:permission_mode`,{v0:l,v1:e.permissionMode?H(`settings:pending`):``}),suppressed:o,children:(0,q.jsxs)(IT,{className:`settings-policy`,"aria-label":H(`settings:permission_mode_2`),"data-value":c,children:[(0,q.jsx)(Y,{name:`shield`,size:16}),(0,q.jsx)(`span`,{className:`permission-mode-label`,children:(0,q.jsx)(FT,{placeholder:n,children:l})}),e.permissionMode&&(0,q.jsx)(`span`,{className:`permission-pending-dot`,"aria-label":H(`settings:pending_2`)})]})}),(0,q.jsxs)(LT,{className:`permission-mode-menu`,side:`top`,align:`start`,"aria-label":H(`settings:permission_mode_2`),children:[c===`custom`&&(0,q.jsx)(RT,{value:`custom`,disabled:!0,children:H(`settings:keep_current_settings`,{v0:l})}),Object.keys(_o).map(n=>{let r=_o[n],i=vo(n,t?.permissionCapabilities,e.model??t?.model);return(0,q.jsx)(RT,{value:n,textValue:r.label,disabled:!!i,description:(0,q.jsxs)(`span`,{className:`permission-description`,children:[(0,q.jsx)(`span`,{children:r.description}),i&&(0,q.jsx)(`span`,{className:`permission-unavailable`,children:i})]}),children:(0,q.jsx)(`strong`,{children:r.label})},n)})]})]})}function lR({usage:e,offline:t}){let n=gL(e),r=e?.invalidated?void 0:e?.last?.totalTokens;return(0,q.jsx)(bS,{toggleOnClick:!0,content:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{children:[H(`settings:context_usage`,{used:vL(r),limit:vL(e?.invalidated===`modelChanged`?void 0:e?.modelContextWindow)}),n!==void 0&&` · ${bt(n,{maximumFractionDigits:0})}%`]}),e&&(t||e.stale||e.invalidated)&&(0,q.jsx)(`span`,{children:_L(e,t)})]}),children:(0,q.jsx)(`button`,{type:`button`,className:`context-usage-trigger`,"aria-label":H(`settings:context_trigger`),"data-percent":n===void 0?`unknown`:n,"data-stale":t||!!e?.stale,children:(0,q.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`22`,height:`22`,"aria-hidden":`true`,children:[(0,q.jsx)(`circle`,{className:`context-usage-track`,cx:`12`,cy:`12`,r:`8`}),n===void 0?(0,q.jsx)(`text`,{x:`12`,y:`15`,textAnchor:`middle`,children:`?`}):(0,q.jsx)(`circle`,{className:`context-usage-progress`,cx:`12`,cy:`12`,r:`8`,pathLength:`100`,strokeDasharray:`${Math.min(100,n)} 100`,transform:`rotate(-90 12 12)`})]})})})}function uR({summary:e,description:t,children:n,scope:r,disabled:i}){let a=(0,y.useId)(),o=(0,y.useRef)(null),s=(0,y.useRef)(null),[c,l]=(0,y.useState)(!1);return(0,y.useEffect)(()=>{s.current?.hidePopover()},[r,i]),(0,y.useEffect)(()=>{if(!c)return;function e(){let e=o.current?.getBoundingClientRect(),t=s.current;if(!e||!t)return;let n=window.visualViewport,r=n?.offsetLeft??0,i=n?.offsetTop??0,a=Math.min(300,(n?.width??innerWidth)-24),c=n?.height??innerHeight;t.style.width=`${a}px`,t.style.left=`${Math.max(r+12,Math.min(e.right-a,r+(n?.width??innerWidth)-a-12))}px`;let l=e.top-i-20,u=i+c-e.bottom-20,d=l>=Math.min(240,u);t.style.maxHeight=`${Math.max(0,d?l:u)}px`,t.style.setProperty(`--model-settings-height`,t.style.maxHeight),t.style.top=d?`auto`:`${e.bottom+8}px`,t.style.bottom=d?`${innerHeight-e.top+8}px`:`auto`}return e(),window.addEventListener(`resize`,e),window.visualViewport?.addEventListener(`resize`,e),window.visualViewport?.addEventListener(`scroll`,e),()=>{window.removeEventListener(`resize`,e),window.visualViewport?.removeEventListener(`resize`,e),window.visualViewport?.removeEventListener(`scroll`,e)}},[c]),(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(bS,{content:t,suppressed:c,className:`settings-model-summary`,children:(0,q.jsxs)(`button`,{ref:o,type:`button`,className:`settings-choice settings-model-toggle`,"aria-label":H(`settings:model_settings`),"aria-haspopup":`dialog`,"aria-expanded":c,"aria-controls":a,disabled:i,popoverTarget:a,children:[e,(0,q.jsx)(Y,{name:`down`,size:13})]})}),(0,wa.createPortal)((0,q.jsxs)(`div`,{ref:s,id:a,popover:`auto`,role:`dialog`,"aria-label":H(`settings:model_settings`),className:`model-settings-popover`,onBeforeToggle:e=>l(e.newState===`open`),children:[(0,q.jsxs)(`div`,{className:`model-settings-heading`,children:[(0,q.jsx)(`strong`,{children:H(`settings:model_settings`)}),(0,q.jsx)(`button`,{type:`button`,"aria-label":H(`settings:close_model_settings`),onClick:()=>{s.current?.hidePopover(),o.current?.focus()},children:(0,q.jsx)(Y,{name:`close`,size:16})})]}),(0,q.jsx)(`div`,{className:`model-settings-content`,children:n})]}),document.body)]})}function dR({settings:e,current:t,disabled:n,onChange:r}){return(0,q.jsxs)(PT,{value:e.collaborationMode??t?.collaborationMode??``,disabled:n,onValueChange:n=>r(So({...e,collaborationMode:n},t)),children:[(0,q.jsx)(IT,{"aria-label":H(`commands:mode`),className:`settings-choice collaboration-mode`,children:(0,q.jsx)(FT,{placeholder:H(`commands:modeUnknown`)})}),(0,q.jsxs)(LT,{children:[(0,q.jsx)(RT,{value:`default`,children:H(`commands:executeMode`)}),(0,q.jsx)(RT,{value:`plan`,children:H(`commands:planMode`)})]})]})}var fR=[`none`,`minimal`,`low`,`medium`,`high`,`xhigh`,`max`,`ultra`];function pR({effort:e}){let t=fR.indexOf(e),n=t<0?void 0:t/(fR.length-1),r=Math.PI*(1+(n??0));return(0,q.jsxs)(`svg`,{className:`reasoning-gauge`,"data-effort":e,"data-progress":n,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,children:[(0,q.jsx)(`path`,{d:`M3 15a9 9 0 0 1 18 0`,stroke:`currentColor`,strokeOpacity:`0.18`,strokeWidth:`2.5`,strokeLinecap:`round`}),n===void 0?(0,q.jsx)(`text`,{x:`12`,y:`17`,textAnchor:`middle`,fontSize:`10`,fill:`currentColor`,children:`?`}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`path`,{d:`M3 15a9 9 0 0 1 18 0`,pathLength:`100`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeDasharray:`${n*100} 100`}),(0,q.jsx)(`path`,{d:`M12 15L${12+Math.cos(r)*6} ${15+Math.sin(r)*6}`,stroke:`currentColor`,strokeWidth:`1.7`,strokeLinecap:`round`}),(0,q.jsx)(`circle`,{cx:`12`,cy:`15`,r:`2`,fill:`currentColor`})]})]})}function mR({settings:e,attachmentControl:t,children:n,models:r,thread:i,projectId:a,runtimeKey:o,disabled:s,threadLoading:c,onChange:l,onLiveSettings:u,liveSettingsPending:d,onSaveModelDefaults:f,savingModelDefaults:p,offline:m}){let[h,g]=(0,y.useState)(!1),[_,v]=(0,y.useState)(!1),b=(0,y.useId)(),x=(0,y.useId)(),S=JSON.stringify([a,i?.id]),[C,w]=(0,y.useState)(),T=C?.scope===S?C:void 0,E=p||T?.state===`saving`;(0,y.useEffect)(()=>{g(!1),v(!1)},[s,i?.id,a]);let D=sR(i?.managed||c?void 0:a,o),O=i?i.runtimeSettings:D.value,k=O?.modelCatalog?.models??r,A=O?.permissionCapabilities||i?.managed?O:{...O,model:O?.model??null,reasoningEffort:O?.reasoningEffort??null,permissionCapabilities:D.value?.permissionCapabilities},j=c||D.loading&&!i?H(`common:loading_2`):H(`common:not_reported`),M=e.model??O?.model??``,N=e.reasoningEffort??O?.reasoningEffort??``,P=N===`max`?`Max`:N===`ultra`?`Ultra`:null,F=e.serviceTier===void 0?O?.serviceTier:e.serviceTier,I=F===`fast`,ee=e.collaborationMode??O?.collaborationMode,te=k.find(e=>e.id===M),ne=te?.serviceTiers?.includes(`fast`),L=So(e,O),re=!!(i?.managed&&SS(i.status)),ie=re&&i?.liveSettings?.turnId===i?.turns.at(-1)?.id?i?.liveSettings:void 0,ae=k.find(e=>e.id===O?.model),oe=re&&O?.liveSettingsCapabilities?.fast,se=ie?.serviceTier===void 0?O?.serviceTier:ie.serviceTier,ce=e.permissionMode??O?.permissionMode,le=ie?.approvalReviewer&&O&&(O.permissionMode===`ask`||O.permissionMode===`auto-review`)?{...O,...A,approvalReviewer:ie.approvalReviewer,permissionMode:ie.approvalReviewer===`user`?`ask`:`auto-review`}:A,ue=F!==se,R=ce!==le?.permissionMode,z=Object.keys(L).length>0||ue||R,B=ie?.serviceTier!==void 0&&ie.serviceTier===F&&(L.serviceTier!==void 0||ie.serviceTier!==O?.serviceTier),de=ie?.approvalReviewer&&!R&&(L.permissionMode!==void 0||ie.approvalReviewer!==O?.approvalReviewer)&&(ce===`ask`||ce===`auto-review`);function fe(e){l(e);let t=e.permissionMode??O?.permissionMode;re&&O?.liveSettingsCapabilities?.reviewer&&(O.permissionMode===`ask`||O.permissionMode===`auto-review`)&&(t===`ask`||t===`auto-review`)&&u({permissionMode:t})}function pe(){let t=I?null:`fast`;l(So({...e,serviceTier:t},O)),oe&&(t===null||ae?.serviceTiers?.includes(`fast`))&&u({serviceTier:t})}async function me(e){w({scope:S,settings:e,state:`saving`});try{let t=await f({...e,...O?.modelCatalog?{modelProvider:O.modelCatalog.provider}:{}});w({scope:S,settings:e,state:t?.status===`ok`?`saved`:t?.status===`okOverridden`?`overridden`:t?.status===`threadOnly`?`threadOnly`:`error`})}catch{w({scope:S,settings:e,state:`error`})}}return(0,q.jsxs)(`div`,{className:`settings-panel`,role:`group`,"aria-label":H(`settings:runtime_settings`),children:[z&&(0,q.jsxs)(`div`,{className:`settings-pending`,role:`status`,children:[(0,q.jsx)(`span`,{children:H(`settings:current`,{v0:i?i.managed?H(`settings:applies_to_the_next_task`):H(`settings:applies_when_sending_after_resume_or_forking`):H(`settings:applies_when_creating_a_session`),v1:O?.model??H(`common:not_reported`),v2:O?.reasoningEffort??H(`common:not_reported`),v3:(L.serviceTier!==void 0||ue)&&!B&&H(`settings:pending_speed_current`,{v0:To(F),v1:To(se,j)}),v4:ce&&ce!==`custom`&&(L.permissionMode||R)&&!de&&H(`settings:pending_permissions_current`,{v0:_o[ce].label,v1:bo(le)})})}),L.collaborationMode&&(0,q.jsx)(`span`,{children:H(`commands:modePending`,{selected:L.collaborationMode===`plan`?H(`commands:planMode`):H(`commands:executeMode`),current:O?.collaborationMode===`plan`?H(`commands:planMode`):O?.collaborationMode==="default"?H(`commands:executeMode`):H(`common:not_reported`)})}),(0,q.jsx)(`button`,{type:`button`,disabled:s||E,onClick:()=>{if(l({}),re){let e={};(ie?.serviceTier!==void 0||oe&&L.serviceTier!==void 0)&&(O?.serviceTier===`fast`||O?.serviceTier===null)&&(e.serviceTier=O.serviceTier),(ie?.approvalReviewer||L.permissionMode)&&(O?.permissionMode===`ask`||O?.permissionMode===`auto-review`)&&(e.permissionMode=O.permissionMode),Object.keys(e).length&&u(e)}T?.state===`error`&&w(void 0)},children:i&&(L.model!==void 0||L.reasoningEffort!==void 0)?H(`settings:undo_session_changes`):H(`settings:undo_changes`)})]}),re&&(B||de||L.permissionMode||R||L.serviceTier!==void 0||ue||d)&&(0,q.jsx)(`div`,{className:`settings-live-status settings-pending`,role:`status`,children:d?(0,q.jsx)(`span`,{children:H(`settings:live_updating`)}):(0,q.jsxs)(q.Fragment,{children:[B&&(0,q.jsx)(`span`,{children:H(`settings:live_fast_applied`)}),de&&(0,q.jsx)(`span`,{children:H(`settings:live_reviewer_applied`)}),(L.permissionMode||R)&&!de&&(0,q.jsx)(`span`,{children:H(`settings:live_permissions_deferred`)}),(L.serviceTier!==void 0||ue)&&!B&&(0,q.jsx)(`span`,{children:H(`settings:live_fast_deferred`)})]})}),T&&(0,q.jsxs)(`p`,{className:`settings-defaults`,"data-state":T.state,role:`status`,children:[T.state===`saving`?H(`settings:saving_default_model_and_reasoning_effort`):T.state===`saved`?H(`settings:saved_as_codex_defaults_for_new_sessions`):T.state===`overridden`?H(`settings:defaults_saved_but_overridden_by_higher_priority_configuration`):T.state===`threadOnly`?H(`settings:thread_only_model_selection`):H(`settings:could_not_confirm_defaults_were_saved_pending_selections`),T.state===`error`&&(0,q.jsx)(`button`,{type:`button`,disabled:s||E,onClick:()=>void me(T.settings),children:H(`settings:save_defaults_again`)})]}),!i&&D.error&&(0,q.jsxs)(`p`,{className:`settings-error`,role:`status`,children:[U(D.error),` `,(0,q.jsx)(`button`,{type:`button`,onClick:D.retry,children:H(`settings:retry`)})]}),O?.modelCatalog?.unavailable&&(0,q.jsx)(`p`,{className:`settings-error`,role:`status`,children:H(`settings:model_catalog_unavailable`)}),(0,q.jsxs)(`div`,{className:`composer-actions`,children:[(0,q.jsxs)(`div`,{className:`composer-context`,children:[t,(0,q.jsx)(cR,{settings:L,current:A,unknown:j,disabled:s||!!c,scope:`${a}:${i?.id??``}:${o}`,onChange:fe})]}),(0,q.jsxs)(`div`,{className:`composer-send-controls`,children:[(0,q.jsxs)(uR,{scope:S,disabled:!!c||!M&&!k.length,description:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{children:H(`settings:model`,{v0:M||j})}),(0,q.jsx)(`span`,{children:H(`settings:reasoning_effort`,{v0:N||j})}),(0,q.jsx)(`span`,{children:To(F,j)})]}),summary:(0,q.jsxs)(q.Fragment,{children:[I&&(0,q.jsx)(nr,{size:14,"aria-hidden":`true`,className:`settings-summary-fast`}),(0,q.jsx)(`span`,{className:`settings-model-value`,children:M||j}),(0,q.jsx)(`span`,{className:`settings-summary-effort reasoning-tier`,"data-effort":N,children:N||j}),ee===`plan`&&(0,q.jsx)(`span`,{className:`settings-plan-badge`,children:`Plan`})]}),children:[(0,q.jsx)(dR,{settings:e,current:O,disabled:s||E||!!c,onChange:l}),(0,q.jsxs)(PT,{value:M,disabled:s||!k.length,open:h,onOpenChange:e=>{(!E||!e)&&g(e)},onValueChange:t=>{if(E)return;let n=k.find(e=>e.id===t);n&&(l(wo(e,O,n)),me(Co(e,O,n)))},children:[(0,q.jsx)(bS,{content:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{children:H(`settings:model`,{v0:M||j})}),re&&(0,q.jsx)(`span`,{children:H(`settings:next_turn`)})]}),suppressed:h,children:(0,q.jsx)(IT,{className:`settings-choice settings-model`,"aria-label":H(`settings:model_2`),"aria-disabled":E||void 0,"data-value":M,children:(0,q.jsx)(`span`,{className:`settings-model-value`,children:(0,q.jsx)(FT,{placeholder:j,children:M||j})})})}),(0,q.jsxs)(LT,{side:`top`,"aria-label":H(`settings:model_2`),children:[M&&!te&&(0,q.jsx)(RT,{value:M,disabled:!0,children:M}),k.map(e=>(0,q.jsx)(RT,{value:e.id,children:e.id},e.id))]})]}),(0,q.jsxs)(PT,{value:N,disabled:s||!te?.reasoningEfforts.length,open:_,onOpenChange:e=>{(!E||!e)&&v(e)},onValueChange:t=>{E||(l(So({...e,reasoningEffort:t},O)),me({model:M,reasoningEffort:t}))},children:[(0,q.jsx)(bS,{id:b,suppressed:_,content:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{children:H(`settings:reasoning_effort`,{v0:N||j})}),re&&(0,q.jsx)(`span`,{children:H(`settings:next_turn`)}),L.reasoningEffort!==void 0&&(0,q.jsx)(`span`,{children:H(`settings:pending_current`,{v0:O?.reasoningEffort??j})})]}),children:(0,q.jsxs)(IT,{className:`settings-choice settings-effort reasoning-tier`,"aria-label":H(`settings:reasoning_effort_2`),"aria-disabled":E||void 0,"aria-describedby":b,"data-value":N,"data-effort":N,children:[(0,q.jsxs)(`span`,{className:`reasoning-effort-display`,"aria-hidden":`true`,children:[(0,q.jsx)(pR,{effort:N}),P&&(0,q.jsx)(`span`,{className:`reasoning-tier-label`,children:P})]},N),(0,q.jsx)(`span`,{className:`settings-effort-value`,children:(0,q.jsx)(FT,{placeholder:j,children:N||j})})]})}),(0,q.jsxs)(LT,{side:`top`,"aria-label":H(`settings:reasoning_effort_2`),children:[N&&!te?.reasoningEfforts.includes(N)&&(0,q.jsx)(RT,{value:N,disabled:!0,className:`reasoning-tier`,"data-effort":N,children:N}),te?.reasoningEfforts.map(e=>(0,q.jsx)(RT,{value:e,className:`reasoning-tier`,"data-effort":e,children:e},e))]})]}),(0,q.jsx)(bS,{id:x,content:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{children:To(F,j)}),(0,q.jsx)(`span`,{children:H(I?`settings:turn_fast_off`:ne?`settings:turn_fast_on_faster_replies_increased_usage`:`settings:fast_is_unavailable_for_this_model`)}),L.serviceTier!==void 0&&(0,q.jsx)(`span`,{children:H(`settings:pending_current`,{v0:To(se,j)})})]}),children:(0,q.jsxs)(`button`,{type:`button`,className:`settings-choice settings-speed`,"aria-label":H(`settings:fast_mode`),"aria-describedby":x,"aria-pressed":F===void 0?`mixed`:I,disabled:s||!!c||!I&&!ne,"data-fast":I,"data-pending":L.serviceTier!==void 0&&!B,onClick:pe,children:[(0,q.jsx)(nr,{size:18,strokeWidth:1.7,fill:I?`currentColor`:`none`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{children:H(`settings:fast_mode`)}),(0,q.jsx)(`span`,{className:`settings-speed-state`,"aria-hidden":`true`,children:(0,q.jsx)(`span`,{})})]})})]}),i&&(0,q.jsx)(lR,{usage:i.tokenUsage,offline:m},i.id),n]})]})]})}function hR({mobileInput:e,id:t,commands:n,selectedIndex:r,onSelect:i,onExecute:a}){let o=(0,y.useRef)(null);return(0,y.useEffect)(()=>{o.current?.scrollIntoView({block:`nearest`})},[r,n[r]?.name]),(0,q.jsxs)(`div`,{className:`slash-menu`,children:[(0,q.jsxs)(`div`,{className:`slash-menu-heading`,children:[H(`commands:session_commands`),(0,q.jsx)(`span`,{children:H(`commands:applies_to_the_current_project_and_session`)})]}),(0,q.jsx)(`div`,{id:t,role:`listbox`,"aria-label":H(`commands:slash_commands`),className:`slash-options`,children:n.map((e,n)=>(0,q.jsxs)(`button`,{id:`${t}-${e.name}`,ref:n===r?o:void 0,type:`button`,role:`option`,tabIndex:-1,"aria-selected":n===r,"aria-disabled":!!e.unavailableReason,className:`slash-option`,onPointerDown:e=>e.preventDefault(),onPointerMove:e=>{e.pointerType===`mouse`&&i(n)},onClick:()=>a(e),children:[(0,q.jsxs)(`span`,{className:`slash-option-title`,children:[(0,q.jsxs)(`strong`,{children:[`/`,e.name]}),(0,q.jsx)(`span`,{children:e.usage})]}),(0,q.jsx)(`span`,{children:e.description}),e.unavailableReason&&(0,q.jsx)(`span`,{className:`slash-unavailable`,children:e.unavailableReason})]},e.name))}),n.length===0&&(0,q.jsx)(`p`,{className:`slash-empty`,role:`status`,children:H(`commands:no_matching_commands_type_help_to_view_supported`)}),(0,q.jsx)(`div`,{className:`slash-menu-footer`,children:H(e?`composer:tap_to_run_command_enter_for_new_line`:`commands:to_select_enter_to_run_esc_to_close`)})]})}function gR(e){if(hh(e))return e.trim()?[...e.trim()].length>100?H(`commands:renameLong`,{max:100}):H(`commands:renameControls`):H(`commands:renameEmpty`)}function _R(e){let t=e.trimStart();if(!t.startsWith(`/`)||t.startsWith(`//`))return null;let n=/^\/([^\s]*)(?:\s+([\s\S]*))?$/.exec(t);return{name:/^go+al$/i.test(n[1])?`goal`:n[1].toLowerCase(),arguments:(n[2]??``).trim()}}function vR(e,t){let n=_R(t);if(!n)return[];if(n.arguments)return e.filter(e=>e.name===n.name);let r=e=>e.name===n.name?0:e.name.startsWith(n.name)?1:2;return e.filter(e=>e.name.includes(n.name)||e.description.toLowerCase().includes(n.name)).sort((e,t)=>r(e)-r(t))}function yR(e,t){let n=_R(e);if(!n)return;let r=t.find(e=>e.name===n.name);if(!r)return n.name?H(`commands:unknown_command_use_help_for_available_commands_or`,{v0:n.name}):H(`commands:select_a_command_or_type_help_for_available`);if(r.name===`rename`){let e=gR(n.arguments);if(e)return e}else if(n.arguments&&r.name!==`plan`&&r.name!==`review`&&r.name!==`goal`)return H(`commands:does_not_accept_arguments_usage`,{v0:r.name,v1:r.usage});return r.unavailableReason}var bR=[{name:`help`,get description(){return H(`commands:view_supported_commands_and_usage`)}},{name:`new`,get description(){return H(`commands:open_a_new_session_draft_in_the_current`)}},{name:`fork`,get description(){return H(`commands:copy_saved_session_history_into_a_new_session`)}},{name:`resume`,get description(){return H(`commands:resume_the_selected_session_not_the_cli_session`)}},{name:`plan`,get description(){return H(`commands:planDescription`)}},{name:`review`,get description(){return H(`commands:reviewDescription`)}},{name:`goal`,get description(){return H(`commands:goalDescription`)}},{name:`recap`,get description(){return H(`commands:recapDescription`)}},{name:`approve`,get description(){return H(`commands:approveDescription`)}},{name:`diff`,get description(){return H(`commands:diffDescription`)}},{name:`init`,get description(){return H(`commands:initDescription`)}},{name:`rename`,get description(){return H(`commands:rename_this_session_spaces_are_allowed`)}},{name:`stop`,get description(){return H(`commands:request_interruption_of_the_current_task_web_shortcut`)}},{name:`status`,get description(){return H(`commands:open_connection_runtime_and_submission_diagnostics`)}},{name:`compact`,get description(){return H(`commands:compact_context_and_continue_in_this_session`)}},{name:`export`,get description(){return H(`commands:download_saved_session_history_as_markdown`)}}];function xR(e,t){if(e===`help`||e===`status`)return;if(t.authRequired||t.connection===`authenticationRequired`)return H(`commands:your_login_expired_log_in_again_and_retry`);if(t.connection!==`connected`)return H(`commands:you_are_offline_wait_for_the_connection_to`);if(e===`diff`)return t.openDiff?t.selectedId&&!t.thread?H(`commands:session_loading_try_again_shortly`):!t.thread&&!t.project?H(`commands:diffUnavailable`):t.project&&!t.project.available?H(`commands:the_project_directory_is_unavailable_check_project_configuration`):void 0:H(`commands:diffUnavailable`);if(t.system?.authenticated===!1)return H(`commands:codex_is_not_logged_in_authenticate_first`);if(!t.system?.ready)return H(`commands:codex_is_unavailable_check_diagnostics_first`);if(e===`export`)return t.thread?t.system.capabilities.includes(`thread/read`)?void 0:H(`commands:this_codex_does_not_provide_thread_read`):t.selectedId?H(`commands:session_loading_try_again_shortly`):H(`commands:select_a_session_first`);if(e!==`stop`&&Jh(t.system))return H(`commands:confirm_the_codex_version_compatibility_notice_first`);let n={goal:`thread/goal/get`,recap:`turn/start`,approve:`thread/approveGuardianDeniedAction`,init:`turn/start`,plan:`turn/start`,fork:`thread/fork`,resume:`thread/resume`,review:`review/start`,rename:`thread/name/set`,stop:`turn/interrupt`,compact:`thread/compact/start`};if(e!==`new`&&!t.system.capabilities.includes(n[e]))return H(`commands:this_codex_does_not_provide`,{v0:n[e]});let r=(e,n)=>t.busy.includes(`${e}:${n}`),i=(e,n)=>t.operations.some(t=>(!n||t.kind===n)&&zh(t,e)),a=t.scopeId??t.project?.id;if(e!==`stop`){if(!t.project&&a!==`@unassigned`)return H(`commands:select_a_project_first`);if(t.project&&!t.project.available)return H(`commands:the_project_directory_is_unavailable_check_project_configuration`)}if(e===`new`)return t.busy.some(e=>e.startsWith(`saveModelDefaults:`))?H(`common:model_defaults_are_being_saved_wait_before_proceeding`):r(`create`,a)?H(`commands:creating_a_session_wait_for_the_receipt`):i(a)?H(`commands:session_creation_is_unconfirmed_use_status_to_check`):void 0;let o=t.thread;if(e===`plan`||e===`init`){let n=H(e===`plan`?`commands:planUnavailable`:`commands:initUnavailable`);return e===`plan`&&!t.selectPlan||e===`init`&&!t.initialize||t.busy.some(e=>e.startsWith(`saveModelDefaults:`))||r(`create`,a)||i(a)?n:o?o.archived||!o.managed||o.status===`unknown`||i(o.id)||SS(o.status)||o.turns.some(e=>SS(e.status))||o.execution&&!o.execution.ended?n:void 0:t.selectedId?H(`commands:session_loading_try_again_shortly`):void 0}if(!o)return t.selectedId?H(`commands:session_loading_try_again_shortly`):H(`commands:select_a_session_first`);if(e===`goal`)return t.openGoal?void 0:H(`commands:goalUnavailable`);if(e===`compact`)return o.archived?H(`commands:unarchive_before_compacting_context`):o.managed?o.turns.length?r(`compact`,o.id)?H(`commands:submitting_compaction_wait_for_the_receipt`):SS(o.status)||o.turns.some(e=>SS(e.status))?H(`commands:wait_for_this_task_to_finish_before_compacting`):o.status===`unknown`||o.execution&&!o.execution.ended||i(o.id)?H(`commands:an_execution_still_needs_checking_use_status_to`):void 0:H(`commands:this_session_is_empty_there_is_no_context`):H(`commands:resume_this_session_before_compacting_context`);if(e===`approve`&&!t.chooseDenial)return H(`commands:approveEmpty`);if(e===`recap`&&(!t.openRecap||!o.turns.length))return H(`commands:recapEmpty`);if(e===`review`||e===`approve`||e===`recap`)return o.archived?H(`commands:this_session_is_archived_unarchive_it_first`):o.managed?r(`review`,o.id)?H(`commands:submitting_code_review_wait_for_the_receipt`):i(o.id)||o.status===`unknown`?H(`commands:this_session_has_an_unconfirmed_request_use_status`):SS(o.status)||o.turns.some(e=>SS(e.status))?H(`commands:wait_for_this_task_to_finish_before_starting`):o.execution&&!o.execution.ended?H(`commands:this_session_is_still_occupied_by_an_execution`):void 0:H(`commands:resume_this_session_before_starting_code_review`);if(e===`rename`)return o.archived?H(`commands:unarchive_and_resume_this_session_before_renaming`):o.managed?r(`rename`,o.id)?H(`commands:renaming_wait_for_the_receipt`):i(o.id,`rename`)?H(`commands:rename_is_unconfirmed_use_status_to_check_the`):r(`archive`,o.id)||i(o.id,`archive`)?H(`commands:archiving_is_unconfirmed_use_status_to_check_the`):void 0:H(`commands:resume_this_session_before_renaming_sessions_occupied_by`);if(e===`fork`)return o.turns.length?r(`fork`,o.id)?H(`commands:forking_session_wait_for_the_receipt`):i(o.id,`fork`)?H(`commands:fork_request_unconfirmed_use_status_to_check_the`):void 0:H(`commands:this_session_is_empty_send_the_first_message`);if(e===`resume`)return r(`resume`,o.id)?H(`commands:resuming_session_wait_for_the_receipt`):i(o.id)?H(`commands:this_session_has_an_unconfirmed_request_use_status`):o.managed&&(o.turns.some(e=>SS(e.status))||SS(o.status))?H(`commands:this_session_is_running_wait_for_it_to`):o.execution&&!o.execution.ended?H(`commands:this_session_is_still_occupied_by_an_execution`):o.managed?H(`commands:this_session_is_already_resumed`):void 0;if(!o.managed)return o.resumeError?.code===`THREAD_IN_USE`?H(`commands:another_process_is_using_this_session_its_task`):H(`commands:this_session_has_not_been_resumed_tasks_in`);if(r(`interrupt`,o.id))return H(`commands:submitting_interrupt_request_wait_for_the_receipt`);if(i(o.id,`interrupt`))return H(`commands:interrupt_request_unconfirmed_use_status_to_check_the`);if(!o.turns.some(e=>SS(e.status)))return o.status===`unknown`||o.execution&&!o.execution.ended?H(`commands:task_state_is_unconfirmed_use_status_to_check`):H(`commands:this_session_has_no_task_to_interrupt`)}function SR(e,t){if(!t)return{error:!0,get message(){return U(H(`commands:no_confirmed_success_receipt_received_check_errors_or`))}};if(t.status===`failed`)return{error:!0,get message(){return U((t.error?rr(t.error):void 0)??H(`commands:operation_failed_check_diagnostics`))}};if(t.status!==`acknowledged`)return{error:!0,get message(){return U(H(`commands:submission_result_unconfirmed_use_status_before_submitting_again`))}};if(e===`approve`)return{get message(){return H(`commands:approveSubmitted`)}};if(e===`compact`)return{get message(){return U(H(`commands:context_compaction_requested_follow_task_status_in_the`))}};if(e===`rename`){let e=t.result;return typeof e?.name==`string`&&e.name?{get message(){return U(H(`commands:session_renamed_to`,{v0:e.name}))}}:{error:!0,get message(){return U(H(`commands:rename_accepted_but_the_name_is_unconfirmed_use`))}}}if(e===`fork`){let e=t.result,n=e?.threadId??e?.thread?.id;return typeof n!=`string`||!n?{error:!0,get message(){return U(H(`commands:request_accepted_but_no_new_session_id_received`))}}:{get message(){return U(H(`commands:forked_into_a_new_session`))},draftKey:n}}return{get message(){return U(H(e===`review`?`commands:code_review_submitted_view_progress_and_results_in`:e===`stop`?`commands:interrupt_requested_wait_for_task_status_to_update`:`commands:selected_session_resumed`))}}}function CR(e){return e===`rename`?H(`commands:rename_name`):e===`goal`?H(`commands:goalCommandUsage`):e===`plan`?H(`commands:planUsage`):e===`review`?H(`commands:reviewUsage`):H(`commands:no_arguments`,{v0:e})}function wR(e){let t=e();return bR.map(({name:n,description:r})=>({name:n,description:r,usage:CR(n),unavailableReason:xR(n,t),run:async(r=``)=>{let i=e();if(n===`help`)return{get message(){return U(H(`commands:rename_requires_a_name_other_commands_take_no`,{v0:bR.map(e=>H(`commands:commandLine`,{name:CR(e.name).slice(1),arguments:``,description:e.description})).join(`
|
|
161
|
-
`)}))}};if(n===`status`)return i.openStatus(),{get message(){return U(H(`commands:diagnostics_opened_refresh_status_or_reconcile_submissions_in`))}};if((i.scopeId??i.project?.id)!==(t.scopeId??t.project?.id)||i.selectedId!==t.selectedId)return{error:!0,get message(){return U(H(`commands:the_project_or_session_changed_select_the_command`))}};let a=xR(n,i);if(a)return{error:!0,get message(){return U(a)}};if(n===`rename`){let e=gR(r);if(e)return{error:!0,get message(){return U(e)}}}let o=i.thread,s=`/api/threads/${encodeURIComponent(o?.id??``)}`;try{if(n===`goal`)return i.openGoal(r),{get message(){return H(`commands:goalOpened`)}};if(n===`diff`)return i.openDiff(),{get message(){return H(`commands:diffOpened`)}};if(n===`init`){let e=await i.initialize();return{error:!e,get message(){return H(e?`commands:initSubmitted`:`commands:planNotSubmitted`)}}}if(n===`plan`){let e=await i.selectPlan(r);return{error:!e,get message(){return U(H(e?r?`commands:planSubmitted`:`commands:planSelected`:`commands:planNotSubmitted`))}}}if(n===`export`){let{partial:e}=await i.exportThread(o.id);return{get message(){return U(H(e?`commands:markdown_download_started_some_content_is_unfinished_unconfirmed`:`commands:saved_history_download_started_the_file_describes_omitted`))}}}let t;if(n===`new`)return{draftKey:i.openDraft(),get message(){return U(H(`commands:new_session_draft_opened_a_session_will_be`))}};if(n===`fork`)t=await i.run(`fork`,o.id,`${s}/fork`,{settings:i.settings});else if(n===`recap`){if(t=await i.run(`recap`,o.id,`${s}/recap`,{language:_t()}),t?.status!==`acknowledged`)return SR(n,t);let r=t.result;if(!r||typeof r.summary!=`string`||typeof r.partial!=`boolean`||typeof r.readAt!=`number`)return{error:!0,message:H(`commands:recapFailed`)};let a=e();return a.selectedId!==i.selectedId||(a.scopeId??a.project?.id)!==(i.scopeId??i.project?.id)?{error:!0,message:H(`commands:the_project_or_session_changed_select_the_command`)}:(a.openRecap({summary:r.summary,partial:r.partial,readAt:r.readAt}),{get message(){return H(`commands:recapOpened`)}})}else if(n===`approve`){let n=await i.chooseDenial();if(!n)return{error:!0,message:H(`commands:approveCancelled`)};let r=e();if(r.selectedId!==i.selectedId||(r.scopeId??r.project?.id)!==(i.scopeId??i.project?.id)||xR(`approve`,r))return{error:!0,message:H(`commands:the_project_or_session_changed_select_the_command`)};t=await r.run(`approve`,o.id,`${s}/approve`,{denialId:n,confirm:!0})}else if(n===`review`){let n=r?{type:`custom`,instructions:r}:i.chooseReviewTarget?await i.chooseReviewTarget():{type:`uncommittedChanges`};if(!n)return{error:!0,message:H(`commands:reviewCancelled`)};let a=e();if(a.selectedId!==i.selectedId||(a.scopeId??a.project?.id)!==(i.scopeId??i.project?.id)||xR(`review`,a))return{error:!0,message:H(`commands:the_project_or_session_changed_select_the_command`)};t=await a.run(`review`,o.id,`${s}/review`,{target:n})}else if(n===`rename`)t=await i.run(`rename`,o.id,`${s}/rename`,{name:r.trim()});else if(n===`resume`)i.onResumeAttempt(),t=await i.run(`resume`,o.id,`${s}/resume`),await i.refreshThread();else if(n===`compact`)t=await i.run(`compact`,o.id,`${s}/compact`);else{let e=o.turns.findLast(e=>SS(e.status));t=await i.run(`interrupt`,o.id,`${s}/interrupt`,{expectedTurnId:e.id})}return SR(n,t)}catch(e){return{error:!0,get message(){return U(ha(e))}}}}}))}function TR({textareaRef:e,inputId:t}){let[n,r]=(0,y.useState)({min:93,max:230,height:93}),[i,a]=(0,y.useState)(!1),o=(0,y.useRef)(n),s=(0,y.useRef)(null);function c(){s.current=null,a(!1),document.documentElement.classList.remove(`composer-resizing`)}function l(t){let n=e.current;if(!n)return;let i=Math.min(o.current.max,Math.max(o.current.min,t));n.style.height=`${i}px`,r(e=>({...e,height:i}))}return(0,y.useEffect)(()=>{let t=e.current,n=t?.closest(`.bottom-region`),i=n?.parentElement;if(!t||!n||!i)return;let a=0,s=()=>{let e=getComputedStyle(t),a=parseFloat(e.getPropertyValue(`--composer-min-height`)),s=parseFloat(e.getPropertyValue(`--composer-max-height`)),c=getComputedStyle(n).maxHeight,l=c.endsWith(`%`)?i.clientHeight*parseFloat(c)/100:parseFloat(c),u=i.querySelector(`.conversation-area`),d=Array.from(i.children).reduce((e,t)=>{let r=getComputedStyle(t);return t===n||r.position===`absolute`||r.position===`fixed`||r.display===`none`?e:e+(t===u?parseFloat(r.minHeight)||0:t.getBoundingClientRect().height)+(parseFloat(r.marginTop)||0)+(parseFloat(r.marginBottom)||0)},0),f=n.scrollHeight-t.getBoundingClientRect().height,p=window.visualViewport?.offsetTop??0,m=t.getBoundingClientRect().bottom-p-24,h=Math.max(a,Math.floor(Math.min(s,l-f,i.clientHeight-d-f,m)));t.style.setProperty(`--composer-available-height`,`${h}px`),t.style.height&&(t.style.height=`${Math.min(h,Math.max(a,parseFloat(t.style.height)))}px`);let g=t.getBoundingClientRect().height;o.current={min:a,max:h,height:g},r(e=>e.min===a&&e.max===h&&e.height===g?e:{min:a,max:h,height:g})};function l(){cancelAnimationFrame(a),a=requestAnimationFrame(s)}let u=new ResizeObserver(l);for(let e of[t,...i.children])u.observe(e);u.observe(i);let d=new MutationObserver(l);return d.observe(i,{childList:!0}),window.visualViewport?.addEventListener(`resize`,l),window.addEventListener(`blur`,c),s(),()=>{u.disconnect(),d.disconnect(),cancelAnimationFrame(a),window.visualViewport?.removeEventListener(`resize`,l),window.removeEventListener(`blur`,c),c()}},[e]),(0,q.jsx)(bS,{asChild:!0,suppressed:i,content:H(`composer:drag_up_to_increase_height_down_to_decrease`),children:(0,q.jsx)(`button`,{type:`button`,className:`composer-resize-handle`,"data-resizing":i||void 0,role:`separator`,"aria-label":H(`composer:resize_input_height`),"aria-orientation":`horizontal`,"aria-controls":t,"aria-valuemin":Math.round(n.min),"aria-valuemax":Math.round(n.max),"aria-valuenow":Math.round(n.height),"aria-valuetext":H(`composer:pixels`,{count:Math.round(n.height),v0:Math.round(n.height)}),onPointerDown:t=>{t.isPrimary&&t.button===0&&e.current&&(t.preventDefault(),t.currentTarget.setPointerCapture(t.pointerId),s.current={pointerId:t.pointerId,y:t.clientY,height:e.current.getBoundingClientRect().height},document.documentElement.classList.add(`composer-resizing`),a(!0))},onPointerMove:e=>{s.current?.pointerId===e.pointerId&&(e.preventDefault(),l(s.current.height+s.current.y-e.clientY))},onPointerUp:e=>{s.current?.pointerId===e.pointerId&&(c(),e.currentTarget.releasePointerCapture(e.pointerId))},onPointerCancel:c,onLostPointerCapture:c,onKeyDown:t=>{let r=e.current?.getBoundingClientRect().height??n.height,i=t.shiftKey?40:10,a={ArrowUp:r+i,ArrowDown:r-i,Home:n.min,End:n.max}[t.key];a!==void 0&&(t.preventDefault(),l(a))},children:(0,q.jsx)(`svg`,{width:`32`,height:`32`,viewBox:`0 0 32 32`,fill:`none`,"aria-hidden":`true`,children:(0,q.jsx)(`path`,{d:`M21 3.5a7.5 7.5 0 0 1 7.5 7.5`})})})})}function ER(e){let t=ZI(navigator),[n,r]=(0,y.useState)({}),i=(0,y.useRef)(n),a=(0,y.useId)(),o=(0,y.useRef)(!1);Vg(`composer`,()=>{if(o.current||Object.values(i.current).some(e=>e.images.some(e=>!e.dataUrl)))throw Error(H(`composer:an_update_will_load_automatically_once_typing_or`));return i.current},e=>{i.current={...e,...i.current},r(i.current)});let s=(0,y.useRef)(-1/0),c=(0,y.useRef)(new Set),l=(0,y.useRef)(new Map),u=(0,y.useRef)(null),d=(0,y.useRef)(null),f=(0,y.useRef)(void 0),p=(0,y.useRef)(new Map);(0,y.useEffect)(()=>{e.focusRequest&&u.current?.focus()},[e.focusRequest]);let m=(0,y.useId)(),h=(0,y.useId)(),[g,_]=(0,y.useState)(!1),[v,b]=(0,y.useState)({key:``,text:``,selectedIndex:0,dismissed:!1}),[x,S]=(0,y.useState)({}),[C,w]=(0,y.useState)([]),[T,E]=(0,y.useState)({key:``,start:0,end:0}),[D,O]=(0,y.useState)({identity:``,selected:0,dismissed:!1}),k=(0,y.useId)(),A=(0,y.useId)(),[j,M]=(0,y.useState)({identity:``,selected:0,dismissed:!1}),[N,P]=(0,y.useState)(!1),F=(0,y.useRef)(void 0),I=e.draftKey,ee=JSON.stringify([e.projectId,e.thread?.id,I]),[te,ne]=(0,y.useState)();(0,y.useEffect)(()=>{e.skillsRequest&&ne(ee)},[e.skillsRequest]);let L=n[I]??iR;(0,y.useLayoutEffect)(()=>{let e=F.current;e&&e.key===I&&e.text===L.text&&(F.current=void 0,u.current?.focus(),u.current?.setSelectionRange(e.position,e.position))},[I,L.text]);let re=T.key===I?HL(L.text,T.start,T.end):void 0,ie=JSON.stringify([ee,L.text,T.start,T.end]),ae=!(!re||!g||_R(L.text)||L.files?.some(e=>re.start>=e.start&&re.start<e.end)||D.identity===ie&&D.dismissed),oe=nR((te===ee||ae)&&e.projectId&&!e.threadLoading?{projectId:e.projectId===`@unassigned`?null:e.projectId,...e.thread?{threadId:e.thread.id}:{draftId:e.draftCreationId}}:void 0,e.runtimeKey),se=T.key===I?RL(L.text,T.start,T.end):void 0,ce=JSON.stringify([ee,e.runtimeKey,L.text,T.start,T.end]),le=!(!se||!g||N||_R(L.text)||L.files?.some(e=>se.start>=e.start&&se.start<e.end)||j.identity===ce&&j.dismissed),ue=e.offline?H(`composer:files_offline`):e.skillsUnavailable?H(`composer:files_not_ready`):void 0,R=zL(le&&!ue&&e.projectId&&!e.threadLoading?{projectId:e.projectId===`@unassigned`?null:e.projectId,...e.thread?{threadId:e.thread.id}:{draftId:e.draftCreationId},query:se.search}:void 0,ce),z=R.result?.paths??[],B=Math.min(j.identity===ce?j.selected:0,Math.max(0,z.length-1));function de(e){if(!se||!R.result||o.current||ue)return;if((L.files?.length??0)>=32){S(e=>({...e,[I]:{message:H(`composer:files_limit`),error:!0}}));return}let t=IL(e),n=L.text.slice(0,se.start)+t+` `+L.text.slice(se.end);if(n.length>1e5)return;let r=se.start+t.length+1;F.current={key:I,text:n,position:r},ke(I,r=>({...r,text:n,skills:XL(r.text,se.start,se.end,t+` `,r.skills).bindings,files:[...XL(r.text,se.start,se.end,t+` `,r.files).bindings,{path:e,cwd:R.result.cwd,start:se.start,end:se.start+t.length}]})),E({key:I,start:r,end:r}),M({identity:ce,selected:0,dismissed:!0})}let fe=(0,y.useRef)(new WeakSet);(0,y.useEffect)(()=>{for(let t of Object.values(e.sentDrafts))fe.current.has(t)||(fe.current.add(t),l.current.get(t.key)?.text.replace(/^(\s*)\/\//,`$1/`)===t.text&&JSON.stringify(UL(l.current.get(t.key)?.skills))===JSON.stringify(t.skills??[])&&JSON.stringify(LL(l.current.get(t.key)?.text??``,l.current.get(t.key)?.files).files??[])===JSON.stringify(t.files??[])&&Ae(t.key))},[e.sentDrafts]),(0,y.useEffect)(()=>{o.current=!1,P(!1),s.current=-1/0,b({key:``,text:``,selectedIndex:0,dismissed:!1})},[I]);let pe=VL(oe.catalog?.skills.filter(e=>e.enabled&&!oe.catalog?.errors.some(t=>t.path===e.path))??[],re?.search??``),me=Math.min(D.identity===ie?D.selected:0,Math.max(0,pe.length-1));function he(e){if(!re||!oe.catalog||o.current)return;let t=`$${e.name}`,n=L.text.slice(0,re.start)+t+` `+L.text.slice(re.end);if(n.length>1e5)return;F.current={key:I,text:n,position:re.start+t.length+1},ke(I,r=>({...r,text:n,files:XL(r.text,re.start,re.end,t+` `,r.files).bindings,skills:[...XL(r.text,re.start,re.end,t+` `,r.skills).bindings,{name:e.name,path:e.path,cwd:oe.catalog.cwd,start:re.start,end:re.start+t.length}]}));let r=re.start+t.length+1;E({key:I,start:r,end:r}),O({identity:ie,selected:0,dismissed:!0})}let{text:ge,images:V}=L,_e=_R(ge),ve=vR(e.commands,ge),ye=v.key===I&&v.text===ge?v:void 0,be=Math.min(ye?.selectedIndex??0,Math.max(0,ve.length-1)),xe=!!(_e&&g&&!ye?.dismissed),Se=xe?ve[be]:e.commands.find(e=>e.name===_e?.name),Ce=C.includes(I),we=H(t?_e?`composer:tap_to_run_command_enter_for_new_line`:`composer:tap_to_send_enter_for_new_line`:_e?`composer:enter_to_run_command_esc_to_close_menu`:`composer:enter_to_send_shift_enter_for_a_new`);function Te(e){b({key:I,text:ge,selectedIndex:e,dismissed:!1})}function Ee(){b({key:I,text:ge,selectedIndex:be,dismissed:!0})}async function De(t){if(c.current.has(I)||o.current)return;let n=i.current[I]??iR,r=_R(n.text);if(!r)return;let a=t?`/${t.name}${r.arguments?` ${r.arguments}`:``}`:n.text,s=n.files?.length?H(`composer:files_slash`):n.skills?.length?H(`composer:skills_slash`):n.images.length?H(`composer:slash_commands_cannot_include_images_remove_the_images`):yR(a,e.commands);if(s){S(e=>({...e,[I]:{message:s,error:!0}}));return}let l=e.commands.find(e=>e.name===_R(a)?.name);if(l){c.current.add(I),w(e=>[...e,I]),S(e=>({...e,[I]:{message:Ct(`composer:running`,{v0:l.name})}})),Ee();try{let e=await l.run(_R(a)?.arguments);S(t=>({...t,[I]:e,[e.draftKey??I]:e})),e.error||ke(I,e=>({...e,text:e.text===n.text?``:e.text}))}catch(e){S(t=>({...t,[I]:{error:!0,message:e instanceof Error?e.message:Ct(`composer:command_failed_please_try_again`)}}))}finally{c.current.delete(I),w(e=>e.filter(e=>e!==I))}}}let Oe=V.some(e=>!e.dataUrl);function ke(e,t){let n={...i.current,[e]:t(i.current[e]??iR)};i.current=n,r(n)}function Ae(e){let t=l.current.get(e);t&&(l.current.delete(e),t.images.forEach(e=>p.current.delete(e.id)),ke(e,e=>({text:e.text===t.text&&e.skills===t.skills&&e.files===t.files?``:e.text,skills:e.text===t.text&&e.skills===t.skills&&e.files===t.files?[]:e.skills,files:e.text===t.text&&e.skills===t.skills&&e.files===t.files?[]:e.files,images:e.images.filter(e=>!t.images.some(t=>t.id===e.id)),error:e.error===t.error?void 0:e.error})))}function je(e){if(e.defaultPrevented)return;let t=Array.from(e.clipboardData.files);t.length&&(e.preventDefault(),Me(t,I,{text:e.clipboardData.getData(`text/plain`),start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}))}function Me(e,t,n){if(!e.length)return;let r=aR(e);if(r){ke(t,e=>({...e,error:r}));return}let i=e.map(e=>({id:crypto.randomUUID(),name:e.name||H(`composer:pasted_image`),size:e.size}));ke(t,e=>({...e,files:n?.text?JL(e.text,(e.text.slice(0,n.start)+n.text+e.text.slice(n.end)).slice(0,1e5),e.files,Math.min(n.start+n.text.length,1e5)):e.files,skills:n?.text?JL(e.text,(e.text.slice(0,n.start)+n.text+e.text.slice(n.end)).slice(0,1e5),e.skills,Math.min(n.start+n.text.length,1e5)):e.skills,text:n?.text?(e.text.slice(0,n.start)+n.text+e.text.slice(n.end)).slice(0,1e5):e.text,images:[...e.images,...i]})),e.forEach((e,n)=>{let r=i[n].id;p.current.set(r,e),Ne(t,r,e)})}function Ne(e,t,n){ke(e,e=>({...e,error:void 0,images:e.images.map(e=>e.id===t?{...e,failed:!1}:e)})),oR(n).then(n=>{p.current.delete(t),ke(e,e=>({...e,images:e.images.map(e=>e.id===t?{...e,dataUrl:n}:e)}))},()=>ke(e,e=>e.images.some(e=>e.id===t)?{...e,images:e.images.map(e=>e.id===t?{...e,failed:!0}:e),error:H(`composer:image_read_failed`)}:e))}let Pe=!!(e.thread?.managed&&SS(e.thread.status)&&e.thread.capacityRetry?.status!==`waiting`),Fe=Pe&&!!L.skills?.length,Ie=e.thread&&!e.thread.managed&&!e.thread.archived,Le=Ie?e.thread?.resumeError:void 0,Re=Le?.code===`THREAD_IN_USE`,ze=!(!e.thread&&!e.projectId||e.threadLoading||Ie||!ge.trim()&&!V.length||Oe||Fe||e.disabled||e.submitting);async function Be(){if(o.current)return;if(_e){await De(xe?ve[be]:void 0);return}if(!ze||c.current.has(I))return;let t=i.current[I]??iR;if(!t.text.trim()&&!t.images.length||t.images.some(e=>!e.dataUrl))return;c.current.add(I),l.current.set(I,t);let n=t.text,r=t.images,a=LL(n,t.files);try{await e.onSend(a.text,Pe,r.length?r.map(e=>e.dataUrl):void 0,t.skills?.length?UL(t.skills):void 0,a.files?.length?a.files:void 0)&&Ae(I)}finally{c.current.delete(I)}}return(0,q.jsxs)(`div`,{className:`composer-region`,"data-mobile-input":t||void 0,children:[te===ee&&(0,q.jsx)(rR,{skills:oe,unavailable:e.skillsUnavailable,onClose:()=>ne(void 0)},ee),e.submitting&&(0,q.jsxs)(`p`,{className:`composer-resume-status`,role:`status`,children:[(0,q.jsx)(Y,{name:`refresh`,size:14}),e.thread?H(`composer:submitting_message`):H(`composer:creating_a_session_and_sending_the_first_message`)]}),Ie&&e.resuming&&(0,q.jsxs)(`p`,{className:`composer-resume-status`,role:`status`,children:[(0,q.jsx)(Y,{name:`refresh`,size:14}),H(`composer:resuming_session`)]}),Ie&&e.resumeAttempted&&!e.resuming&&!Le&&e.canResume&&(0,q.jsx)(J,{size:`sm`,variant:`secondary`,onClick:e.onResume,children:H(`composer:retry_resume`)}),Le&&!e.resuming&&(0,q.jsxs)(`div`,{className:`session-resume-notice`,role:`status`,children:[(0,q.jsx)(`strong`,{children:H(Re?`composer:this_session_is_in_use_by_another_process`:`composer:unable_to_resume_session`)}),(0,q.jsx)(`p`,{children:Re?H(`composer:fork_saved_history_to_continue_or_retry_once`):U(rr(Le))}),!Re&&(0,q.jsxs)(`details`,{className:`raw-details`,children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsx)(`pre`,{children:Le.message})]}),Re&&(0,q.jsxs)(J,{size:`sm`,variant:`secondary`,disabled:!e.canFork,onClick:e.onFork,children:[(0,q.jsx)(Y,{name:`fork`,size:14}),e.forking?H(`common:confirming_fork`):H(`common:fork_into_a_new_session`)]}),(0,q.jsx)(J,{size:`sm`,disabled:!e.canResume,onClick:e.onResume,children:H(`composer:retry_resume`)})]}),(0,q.jsxs)(`div`,{className:`composer-box`,children:[(0,q.jsx)(TR,{textareaRef:u,inputId:m}),x[I]&&(0,q.jsx)(`p`,{className:`slash-feedback`,role:x[I].error?`alert`:`status`,children:U(x[I].message)}),xe&&(0,q.jsx)(hR,{mobileInput:t,id:h,commands:ve,selectedIndex:be,onSelect:Te,onExecute:e=>{u.current?.focus(),De(e)}}),le&&(0,q.jsx)(BL,{id:A,search:R,selected:B,unavailable:ue,emptyQuery:!se?.search,onSelect:e=>M({identity:ce,selected:e,dismissed:!1}),onChoose:de}),ae&&(0,q.jsx)(tR,{id:k,skills:oe,matches:pe,selected:me,unavailable:e.skillsUnavailable,onSelect:e=>O({identity:ie,selected:e,dismissed:!1}),onChoose:he}),Fe&&(0,q.jsx)(`p`,{className:`slash-feedback`,role:`status`,children:H(`composer:skills_steer_unsupported`)}),V.length>0&&(0,q.jsx)(`ul`,{className:`composer-images`,"aria-label":H(`composer:images_to_send`),children:V.map((e,t)=>(0,q.jsxs)(`li`,{children:[e.dataUrl?(0,q.jsx)(`img`,{src:e.dataUrl,alt:H(`composer:image_to_send`,{v0:t+1})}):e.failed?(0,q.jsx)(`button`,{type:`button`,className:`composer-image-retry`,onClick:()=>{let t=p.current.get(e.id);t&&Ne(I,e.id,t)},children:H(`composer:retry_image`)}):(0,q.jsx)(`span`,{role:`status`,children:H(`common:loading_2`)}),(0,q.jsx)(bS,{asChild:!0,content:e.name,children:(0,q.jsx)(`span`,{className:`composer-image-name`,children:e.name})}),(0,q.jsx)(J,{variant:`secondary`,size:`sm`,"aria-label":H(`composer:remove_image`,{v0:t+1}),onClick:()=>{p.current.delete(e.id),ke(I,t=>({...t,error:void 0,images:t.images.filter(t=>t.id!==e.id)}))},children:(0,q.jsx)(Y,{name:`close`,size:13})})]},e.id))}),L.error&&(0,q.jsx)(`p`,{className:`composer-image-error`,role:`alert`,children:U(L.error)}),(0,q.jsx)($L,{draftKey:I,skills:L.skills,files:L.files,id:m,ref:u,enterKeyHint:t?`enter`:void 0,"aria-describedby":a,"aria-label":H(Pe?`composer:additional_instructions`:`composer:task_content`),"aria-haspopup":`listbox`,"aria-controls":le?A:ae?k:xe?h:void 0,"aria-autocomplete":`list`,"aria-activedescendant":le&&z[B]?`${A}-${B}`:ae&&pe[me]?`${k}-${me}`:xe&&ve[be]?`${h}-${ve[be].name}`:void 0,value:ge,readOnly:!!e.thread?.archived,placeholder:e.thread?.archived?H(`composer:unarchive_to_continue_the_conversation`):H(Pe?`composer:add_requirements_or_adjust_direction`:`composer:describe_a_task_paste_an_image_or_type`),maxLength:1e5,onChange:(e,t,n)=>{ke(I,r=>({...r,text:e.target.value,files:n??JL(r.text,e.target.value,r.files,e.target.selectionStart),skills:t??JL(r.text,e.target.value,r.skills,e.target.selectionStart)})),E({key:I,start:e.target.selectionStart,end:e.target.selectionEnd}),O({identity:``,selected:0,dismissed:!1}),M({identity:``,selected:0,dismissed:!1}),b({key:I,text:e.target.value,selectedIndex:0,dismissed:!1}),S(e=>{let t={...e};return delete t[I],t})},onSelect:e=>E({key:I,start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}),onPaste:je,onFocus:()=>_(!0),onCompositionStart:()=>{o.current=!0,P(!0)},onCompositionEnd:()=>{o.current=!1,P(!1),s.current=performance.now()},onBlur:()=>{_(!1),o.current=!1,P(!1),s.current=-1/0},onKeyDown:e=>{if((!e.defaultPrevented||(xe||ae||le)&&e.key===`Escape`)&&!(t&&e.key===`Enter`)&&!(e.nativeEvent.isComposing||e.nativeEvent.keyCode===229||o.current)){if(performance.now()-s.current<100)e.key===`Enter`&&!e.shiftKey&&e.preventDefault();else{if(le&&!e.shiftKey&&!e.altKey&&!e.metaKey&&!e.ctrlKey){if(e.key===`Escape`){e.preventDefault(),M({identity:ce,selected:B,dismissed:!0});return}if(z.length&&(e.key===`ArrowDown`||e.key===`ArrowUp`)){e.preventDefault(),M({identity:ce,selected:(B+(e.key===`ArrowDown`?1:-1)+z.length)%z.length,dismissed:!1});return}if(z.length&&(e.key===`Enter`||e.key===`Tab`)){e.preventDefault(),e.repeat||de(z[B]);return}}if(ae&&!e.shiftKey&&!e.altKey&&!e.metaKey&&!e.ctrlKey){if(e.key===`Escape`){e.preventDefault(),O({identity:ie,selected:me,dismissed:!0});return}if(pe.length&&(e.key===`ArrowDown`||e.key===`ArrowUp`)){e.preventDefault(),O({identity:ie,selected:(me+(e.key===`ArrowDown`?1:-1)+pe.length)%pe.length,dismissed:!1});return}if(pe.length&&(e.key===`Enter`||e.key===`Tab`)){e.preventDefault(),e.repeat||he(pe[me]);return}}if(xe&&!e.shiftKey&&!e.altKey&&!e.metaKey&&!e.ctrlKey){if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),ve.length&&Te((be+(e.key===`ArrowDown`?1:-1)+ve.length)%ve.length);return}if(e.key===`Escape`){e.preventDefault(),Ee();return}}e.key!==`Enter`||e.shiftKey||(e.preventDefault(),!e.repeat&&Be())}}},onKeyUp:e=>{e.key===`Enter`&&(s.current=-1/0)},rows:3}),t&&(0,q.jsx)(`p`,{className:`composer-input-hint`,children:we}),(0,q.jsxs)(mR,{offline:e.offline,attachmentControl:(0,q.jsx)(bS,{content:H(`composer:add_images`),children:(0,q.jsx)(J,{type:`button`,className:`composer-attach`,variant:`ghost`,size:`sm`,"aria-label":H(`composer:add_images`),disabled:e.disabled||!!e.thread?.archived||!!e.threadLoading||e.submitting||e.resuming||e.forking||!(e.thread||e.projectId),onClick:()=>{f.current=I,d.current?.click()},children:(0,q.jsx)(Y,{name:`plus`,size:20})})}),settings:e.settings,models:e.models,onChange:e.onSettings,onLiveSettings:e.onLiveSettings,liveSettingsPending:e.liveSettingsPending,onSaveModelDefaults:e.onSaveModelDefaults,savingModelDefaults:e.savingModelDefaults,thread:e.thread,projectId:e.projectId,runtimeKey:e.runtimeKey,threadLoading:e.threadLoading,disabled:e.disabled||!!e.threadLoading||e.submitting||e.resuming||e.forking,children:[Pe&&(0,q.jsx)(bS,{content:H(`composer:interrupt`),children:(0,q.jsxs)(J,{"aria-label":e.interrupting?H(`composer:requesting`):H(`composer:interrupt`),variant:`secondary`,size:`sm`,onClick:e.onInterrupt,disabled:!e.canInterrupt||e.interrupting,children:[(0,q.jsx)(Y,{name:`stop`,size:13}),(0,q.jsx)(`span`,{className:`composer-action-label`,children:e.interrupting?H(`composer:requesting`):H(`composer:interrupt`)})]})}),(0,q.jsx)(bS,{id:a,className:`composer-submit`,content:we,children:(0,q.jsxs)(J,{size:`sm`,"aria-label":_e?H(Ce?`composer:running_command`:`common:run_command`):e.submitting?H(`common:submitting`):H(Pe?`composer:additional_instructions`:`composer:send_task`),"aria-describedby":a,onPointerDown:e=>{(_e||t)&&e.preventDefault()},onClick:()=>{Be()},disabled:_e?Ce||!!Se?.unavailableReason:!ze,children:[(0,q.jsx)(Y,{name:`send`,size:14}),(0,q.jsx)(`span`,{className:`composer-action-label`,children:_e?H(Ce?`composer:running_2`:`common:run_command`):e.submitting?H(`common:submitting`):H(Pe?`composer:additional_instructions`:`composer:send_task`)})]})})]}),(0,q.jsx)(`input`,{ref:d,type:`file`,hidden:!0,multiple:!0,accept:ph.join(`,`),"aria-label":H(`composer:add_images`),onChange:e=>{let t=Array.from(e.currentTarget.files??[]);e.currentTarget.value=``,Me(t,f.current??I),f.current=void 0}})]}),(0,q.jsx)(`p`,{className:`composer-note`,children:H(Pe?`composer:closing_this_page_does_not_stop_tasks_interruptions`:`composer:codex_runs_with_the_server_project_s_permissions`)})]})}function DR(e){return H(`errors:recovery_operation_${{send:`send`,steer:`steer`,resolve:`resolve`,fork:`fork`,create:`create`,resume:`resume`,archive:`archive`,rename:`rename`,compact:`compact`,review:`review`,interrupt:`interrupt`,liveSettings:`settings`}[e]??`other`}`)}function OR(e){return e.lookupError?.missing?H(`errors:recovery_missing`):e.lookupError?H(`errors:recovery_unreachable`):e.operation?.execution&&!e.operation.execution.ended?H(`errors:recovery_execution_unknown`):H(`errors:recovery_receipt_unknown`)}function kR({entry:e,owner:t,projectName:n,thread:r,selectedId:i,onOpenThread:a,onReconcile:o,onDiscardMissing:s,onRefresh:c,busy:l,refreshing:u,focused:d}){let[f,p]=(0,y.useState)(!1),m=Mh(e),h=e.operation?.execution,g=!!(m&&m===i&&r?.id===m),_=e.kind===`fork`,v=g&&e.kind===`resolve`&&r?.actions.some(t=>t.actionId===e.target&&t.status===`responding`),b=!_&&g&&r&&(e.kind===`resolve`?v:SS(r.status)&&(h?r.execution?.operationId===h.operationId||r.turns.some(e=>e.id===h.turnId&&SS(e.status)):e.target===r.id)),x=!g&&h?.turnId&&t?.lastTurnId===h.turnId&&SS(t.status),S=Ph(e),C=(g||!m)&&!b&&!l&&e.kind!==`confirmCompatibility`&&Lh(e)&&(S||!e.lookupError&&!!e.operation),w=t?.title||e.context?.title||(e.kind===`create`?H(`common:session_not_created_yet`):H(`errors:recovery_thread_unavailable`)),T=H(S?`errors:recovery_clear_local`:_?`errors:reconcile_this_fork`:`errors:recovery_restore_session`);return(0,q.jsxs)(`article`,{className:`operation-card${d?` operation-card-focused`:``}`,"data-operation-id":e.clientOperationId,"aria-label":`${DR(e.kind)} · ${w}`,tabIndex:-1,children:[(0,q.jsxs)(`div`,{className:`operation-title`,children:[(0,q.jsx)(`strong`,{children:DR(e.kind)}),(0,q.jsx)(`span`,{children:ma(e.createdAt)})]}),(0,q.jsxs)(`div`,{className:`operation-owner`,children:[(0,q.jsx)(`span`,{children:n}),(0,q.jsx)(`strong`,{children:w})]}),(0,q.jsx)(`p`,{className:`operation-explanation`,children:v?H(`errors:recovery_responding`):b||x?`${xS[(g?r:t).status]} · ${H(`errors:recovery_running`)}`:OR(e)}),e.recoveryError&&(0,q.jsx)(`p`,{className:`inline-error`,role:`alert`,children:U(e.recoveryError)}),(0,q.jsxs)(`div`,{className:`operation-actions`,children:[m&&(0,q.jsx)(J,{variant:`secondary`,size:`sm`,onClick:()=>a(m,t?t.projectId:e.context?.projectId),children:H(g?`errors:recovery_view_history`:`errors:recovery_open_thread`)}),(0,q.jsx)(J,{variant:`ghost`,size:`sm`,disabled:u||l,onClick:c,children:H(`errors:recovery_check_again`)}),C&&(0,q.jsxs)(J,{variant:`ghost`,size:`sm`,disabled:u,onClick:()=>p(!0),children:[T,`…`]})]}),!g&&m&&(0,q.jsx)(`p`,{className:`subtle`,children:H(`errors:recovery_go_to_thread`)}),e.lookupError&&!S&&(0,q.jsx)(`p`,{className:`subtle`,children:H(`errors:recovery_retry_connection`)}),!m&&e.kind===`resolve`&&(0,q.jsx)(`p`,{className:`subtle`,children:H(`errors:recovery_action_owner_missing`)}),(0,q.jsxs)(`details`,{className:`raw-details`,children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsxs)(`dl`,{children:[(0,q.jsx)(`dt`,{children:H(`errors:operation`)}),(0,q.jsx)(`dd`,{children:e.kind}),(0,q.jsx)(`dt`,{children:H(`errors:target`)}),(0,q.jsx)(`dd`,{children:e.target}),(0,q.jsx)(`dt`,{children:H(`errors:operation_id`)}),(0,q.jsx)(`dd`,{children:e.clientOperationId}),m&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`dt`,{children:`Thread ID`}),(0,q.jsx)(`dd`,{children:(0,q.jsx)(TS,{id:m})})]}),h&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`dt`,{children:H(`errors:workspace`)}),(0,q.jsx)(`dd`,{children:h.workspaceKey}),(0,q.jsx)(`dt`,{children:H(`errors:execution_status`)}),(0,q.jsx)(`dd`,{children:h.ended?H(`errors:finished`):H(`errors:end_not_confirmed`)})]})]}),e.error&&(0,q.jsx)(`p`,{children:U(e.error)}),e.lookupError&&(0,q.jsx)(`p`,{children:e.lookupError.message}),e.lookupError?.details&&(0,q.jsx)(`pre`,{children:e.lookupError.details})]}),f&&(0,q.jsxs)(Ta,{open:!0,title:T,onClose:()=>p(!1),children:[(0,q.jsxs)(`p`,{className:`recovery-dialog-owner`,children:[n,` · `,w]}),(0,q.jsx)(`p`,{children:H(S?`errors:recovery_clear_effect`:_?`errors:recovery_fork_effect`:`errors:recovery_restore_effect`)}),(0,q.jsxs)(`div`,{className:`operation-actions`,children:[(0,q.jsx)(J,{variant:`secondary`,onClick:()=>p(!1),children:H(`common:cancel`)}),(0,q.jsx)(J,{disabled:l||u,onClick:()=>{p(!1),S?s(e.clientOperationId):o(e.clientOperationId)},children:H(S?`errors:recovery_clear_local`:_?`errors:reconcile_this_fork`:`errors:recovery_confirm_ended`)})]})]})]})}var AR={get connecting(){return H(`errors:connecting`)},get connected(){return H(`errors:live_connection_healthy`)},get disconnected(){return H(`errors:disconnected`)},get authenticationRequired(){return H(`errors:login_required_again`)}};function jR({connection:e}){return(0,q.jsxs)(`span`,{className:`connection-badge connection-${e}`,children:[(0,q.jsx)(`span`,{className:`status-dot`}),AR[e]]})}function MR({system:e,connection:t,operations:n,thread:r,selectedId:i,projectId:a,projects:o,threads:s,focusedOperationId:c,onOpenThread:l,threadReadFailed:u,onRefresh:d,onReconcile:f,onDiscardMissing:p,busy:m,open:h,onOpenChange:g,onDismiss:_,refreshing:v}){let b=(0,y.useRef)(null),[x,S]=(0,y.useState)({}),C=[...new Set(n.map(Mh).filter(e=>!!e))].join(`,`);(0,y.useEffect)(()=>{if(!h)return;let e=!0,t=C.split(`,`).filter(e=>e&&!x[e]&&!s.some(t=>t.id===e)&&r?.id!==e);return Promise.allSettled(t.map(e=>pr.threadMetadata(e))).then(t=>{e&&t.some(e=>e.status===`fulfilled`)&&S(e=>({...e,...Object.fromEntries(t.flatMap(e=>e.status===`fulfilled`?[[e.value.id,e.value]]:[]))}))}),()=>{e=!1}},[h,C,s,r?.id,x]),(0,y.useEffect)(()=>{if(!h||!c)return;let e=[...b.current?.querySelectorAll(`[data-operation-id]`)??[]].find(e=>e.dataset.operationId===c);e?.scrollIntoView({block:`nearest`}),e?.focus({preventScroll:!0})},[h,c]);let w=n.filter(e=>!!i&&Mh(e)===i||!i&&e.kind===`create`&&e.target===a),T=n.filter(e=>!w.includes(e)),E=e=>{let t=Mh(e),n=r?.id===t?r:s.find(e=>e.id===t)??(t?x[t]:void 0),a=n?n.projectId:e.context?.projectId??e.projectId,u=o.find(t=>t.id===a||a===void 0&&t.workspaceKey===e.operation?.execution?.workspaceKey);return(0,q.jsx)(kR,{entry:e,owner:n,projectName:u?.name??H(a===null?`common:unassigned`:`errors:recovery_project_unavailable`),thread:r,selectedId:i,onOpenThread:l,onReconcile:f,onDiscardMissing:p,onRefresh:d,focused:e.clientOperationId===c,busy:m.includes(`reconcile:${e.clientOperationId}`)||m.includes(`${e.kind}:${e.target}`),refreshing:v},e.clientOperationId)};return(0,y.useEffect)(()=>{h&&!c&&b.current?.focus({preventScroll:!0})},[h,c]),(0,q.jsxs)(`details`,{className:`diagnostics`,open:h,onToggle:e=>g(e.currentTarget.open),children:[(0,q.jsxs)(`summary`,{children:[(0,q.jsx)(Y,{name:`settings`,size:16}),H(`common:diagnostics`),n.length>0&&(0,q.jsx)(`span`,{className:`count-badge`,children:n.length})]}),(0,q.jsxs)(`div`,{className:`diagnostics-panel`,id:`diagnostics-panel`,ref:b,tabIndex:-1,role:`region`,"aria-label":H(`errors:diagnostics_details`),"aria-busy":v,onKeyDown:e=>{e.key===`Escape`&&_&&(e.preventDefault(),_())},children:[(0,q.jsxs)(`div`,{className:`diagnostics-heading`,children:[(0,q.jsx)(`h2`,{children:H(`errors:execution_status`)}),(0,q.jsxs)(`div`,{className:`diagnostics-actions`,children:[(0,q.jsxs)(J,{variant:`ghost`,size:`sm`,disabled:v,onClick:d,children:[(0,q.jsx)(Y,{name:`refresh`,size:14}),H(v?`common:checking`:`errors:refresh_status`)]}),_&&(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`common:close`),onClick:_,children:(0,q.jsx)(Y,{name:`close`,size:16})})]})]}),(0,q.jsxs)(`section`,{className:`operation-section`,"aria-label":H(`errors:current_session_information`),children:[(0,q.jsx)(`h3`,{children:H(`errors:current_session`)}),(0,q.jsxs)(`div`,{className:`operation-owner`,children:[(0,q.jsx)(`span`,{children:o.find(e=>e.id===r?.projectId)?.name??(r?.projectId===null?H(`common:unassigned`):``)}),(0,q.jsx)(`strong`,{children:r&&r.id===i?r.title:H(i?`errors:loading_session_details`:`common:session_not_created_yet`)})]}),(0,q.jsxs)(`details`,{className:`raw-details`,children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsx)(TS,{id:r?.id===i?r?.id:void 0,placeholder:u?H(`errors:failed_to_load_session_details`):void 0})]})]}),(0,q.jsxs)(`section`,{className:`operation-section`,children:[(0,q.jsx)(`h3`,{children:H(`errors:operations_and_reconciliation`)}),(v||w.length===0)&&(0,q.jsx)(`p`,{className:`subtle`,role:`status`,children:v?H(`errors:checking_session_history_and_submission_receipts`):r?.status===`unknown`?H(`errors:session_state_still_needs_checking_inspect_operation_records`):H(`errors:no_submissions_need_checking`)}),w.map(E)]}),T.length>0&&(0,q.jsxs)(`section`,{className:`operation-section`,"aria-label":H(`errors:recovery_other_threads`),children:[(0,q.jsx)(`h3`,{children:H(`errors:recovery_other_threads`)}),T.map(E)]}),(0,q.jsxs)(`dl`,{children:[(0,q.jsx)(`dt`,{children:H(`errors:browser_connection`)}),(0,q.jsx)(`dd`,{children:AR[t]}),(0,q.jsx)(`dt`,{children:`Codex`}),(0,q.jsx)(`dd`,{children:e?.ready?H(`errors:ready`):e?.connection===`starting`?H(`errors:starting`):H(`errors:unavailable`)}),(0,q.jsx)(`dt`,{children:H(`errors:account_authentication`)}),(0,q.jsx)(`dd`,{children:e?.authenticated===!0?H(`errors:available`):e?.authenticated===!1?H(`errors:log_in_to_codex_on_the_server_computer`):H(`errors:unconfirmed`)}),(0,q.jsx)(`dt`,{children:H(`common:running_version`)}),(0,q.jsx)(`dd`,{children:e?.codexVersion??H(`common:not_detected`)}),(0,q.jsx)(`dt`,{children:H(`common:verified_version`)}),(0,q.jsx)(`dd`,{children:e?.verifiedVersion??H(`common:loading`)}),(0,q.jsx)(`dt`,{children:H(`errors:compatibility`)}),(0,q.jsx)(`dd`,{children:e?.compatibility===`verified`?H(`errors:version_verified`):e?.compatibility===`unverified`?e.compatibilityConfirmation===`confirmed`?H(`errors:version_unverified_continued_with_consent`):H(`errors:version_unverified_confirmation_pending`):H(`errors:unavailable`)}),(0,q.jsx)(`dt`,{children:H(`errors:gateway_authentication`)}),(0,q.jsx)(`dd`,{children:e?.authMode===`cloudflare-access`?`Cloudflare Access`:H(`errors:local_mode`)})]}),e?.error&&(0,q.jsx)(`p`,{className:`inline-error`,children:U(e.error)}),e&&(0,q.jsxs)(`details`,{className:`raw-details`,children:[(0,q.jsx)(`summary`,{children:H(`errors:supported_capabilities`)}),(0,q.jsx)(`p`,{children:e.capabilities.join(` · `)||H(`errors:none`)})]})]})]})}async function NR(e){let t=await fetch(`/api/threads/${encodeURIComponent(e)}/export`,{credentials:`same-origin`,cache:`no-store`,headers:{Accept:`text/markdown`},signal:AbortSignal.timeout(35e3)}),n=t.headers.get(`content-type`)??``;if(!t.ok||!n.includes(`text/markdown`)){if(n.includes(`application/json`)){let e=await t.json();throw new fr(t.status,e.error??{code:`EXPORT_FAILED`,message:Ct(`workspace:cannot_read_session_history_no_file_downloaded`)})}throw new fr(t.status===200?401:t.status,{code:`AUTH_REQUIRED`,message:Ct(`workspace:login_expired_or_history_response_was_not_markdown`)})}let r=/filename="(codex-thread-[A-Za-z0-9_-]+\.md)"/.exec(t.headers.get(`content-disposition`)??``)?.[1];if(!r)throw Error(H(`workspace:export_response_has_no_valid_filename_no_file`));let i=t.headers.get(`x-export-completeness`);if(i!==`partial`&&i!==`saved-history`)throw Error(H(`workspace:export_response_lacks_history_completeness_information_no_file`));let a=await t.blob(),o=URL.createObjectURL(a),s=document.createElement(`a`);s.href=o,s.download=r,document.body.append(s);try{s.click()}finally{s.remove(),setTimeout(()=>URL.revokeObjectURL(o),1e3)}return{partial:i===`partial`}}function PR(e){let{system:t}=e,n=(0,y.useRef)(null),[r,i]=(0,y.useState)(),[a,o]=(0,y.useState)(),s=qh(t),c=Yh(t,r,a);(0,y.useEffect)(()=>{e.onOpenChange?.(c)},[c,e.onOpenChange]),(0,y.useEffect)(()=>{let e=n.current;if(e)return c&&!e.open?e.showModal():!c&&e.open&&e.close(),()=>{e.open&&e.close()}},[c]);function l(){i(s),o(void 0)}return(0,q.jsxs)(q.Fragment,{children:[t?.compatibility===`unverified`&&(0,q.jsxs)(`div`,{className:`compatibility-banner compatibility-notice`,role:`status`,children:[(0,q.jsx)(`span`,{children:H(`workspace:codex_has_not_been_verified_some_features_may`,{v0:t.codexVersion,v1:t.compatibilityConfirmation===`confirmed`?H(`workspace:permission_to_continue_confirmed_this_does_not_verify`):H(`workspace:confirmation_required_before_use`)})}),t.compatibilityConfirmation===`required`&&(0,q.jsx)(J,{variant:`ghost`,size:`sm`,onClick:()=>o(s),children:H(`workspace:view_compatibility_notice`)})]}),(0,q.jsxs)(`dialog`,{ref:n,className:`compatibility-dialog`,"aria-labelledby":`compatibility-title`,"aria-describedby":`compatibility-description`,onCancel:e=>{e.preventDefault(),l()},children:[(0,q.jsxs)(`div`,{className:`compatibility-dialog-heading`,children:[(0,q.jsx)(Y,{name:`alert`,size:22}),(0,q.jsx)(`h2`,{id:`compatibility-title`,children:H(`workspace:codex_version_compatibility_is_unverified`)})]}),(0,q.jsx)(`p`,{id:`compatibility-description`,children:H(`workspace:this_codex_version_is_unverified_some_features_may`)}),(0,q.jsxs)(`dl`,{children:[(0,q.jsx)(`dt`,{children:H(`common:running_version`)}),(0,q.jsx)(`dd`,{children:t?.codexVersion??H(`common:not_detected`)}),(0,q.jsx)(`dt`,{children:H(`common:verified_version`)}),(0,q.jsx)(`dd`,{children:t?.verifiedVersion??H(`common:loading`)})]}),t?.ready?!e.canConfirm&&(0,q.jsx)(`p`,{className:`subtle`,role:`status`,children:H(`workspace:wait_for_the_connection_and_codex_authentication_to`)}):(0,q.jsx)(`p`,{className:`inline-error`,role:`status`,children:H(`workspace:codex_is_unavailable_close_this_notice_and_check`)}),e.error&&(0,q.jsx)(`p`,{className:`inline-error`,role:`alert`,children:U(e.error)}),e.uncertain&&(0,q.jsxs)(`div`,{className:`compatibility-uncertain`,role:`status`,children:[(0,q.jsx)(`p`,{children:H(`workspace:the_confirmation_result_needs_checking_refresh_status_or`)}),(0,q.jsx)(J,{variant:`secondary`,size:`sm`,onClick:e.onRefresh,children:H(`workspace:refresh_confirmation_status`)}),t?.ready&&(0,q.jsx)(J,{variant:`secondary`,size:`sm`,disabled:!e.canConfirm||e.submitting,onClick:e.onReconfirm,children:H(`workspace:confirm_again`)})]}),(0,q.jsx)(`p`,{className:`subtle`,children:H(`workspace:you_can_still_view_diagnostics_or_interrupt_tasks`)}),(0,q.jsxs)(`div`,{className:`compatibility-dialog-actions`,children:[(0,q.jsx)(J,{variant:`secondary`,autoFocus:!0,onClick:l,children:H(`workspace:not_now`)}),t?.ready&&(0,q.jsx)(J,{disabled:!e.canConfirm||e.submitting||e.uncertain,onClick:e.onConfirm,children:e.submitting?H(`workspace:confirming`):H(`common:confirm_and_continue`)})]})]})]})}function FR(e){return H(`sidebar:clone_stage_${e.progressStage??(e.status===`cloning`?`connecting`:e.status===`registration-failed`?`registration_failed`:e.status)}`)}var IR=e=>e?.status===`cloning`||e?.status===`cancelling`;function LR(e){return e.percent===void 0?FR(e):H(`sidebar:clone_progress_percent`,{v0:FR(e),v1:bt(e.percent/100,{style:`percent`,maximumFractionDigits:0})})}function RR({tasks:e,onDetails:t}){let[n,r]=(0,y.useState)(!1),i=e.jobs.filter(IR).length,a=n=>{r(!1),e.dismiss(),t(n)};return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(J,{variant:`ghost`,size:`sm`,"aria-label":H(`sidebar:background_tasks`),"aria-haspopup":`dialog`,"aria-expanded":n,onClick:()=>{e.refresh(),r(!0)},children:[(0,q.jsx)(Y,{name:i?`loader`:`archive`,size:16}),(0,q.jsx)(`span`,{children:H(`sidebar:tasks`)}),i>0&&(0,q.jsx)(`span`,{className:`background-task-count`,children:i})]}),(0,q.jsxs)(Ta,{portal:!0,open:n,title:H(`sidebar:background_tasks`),onClose:()=>r(!1),children:[e.error&&(0,q.jsx)(`p`,{role:`alert`,className:`inline-error`,children:H(`sidebar:tasks_connection_lost`)}),!e.jobs.length&&(0,q.jsx)(`p`,{className:`subtle`,children:H(`sidebar:tasks_empty`)}),(0,q.jsx)(`ul`,{className:`background-task-list`,children:e.jobs.map(e=>(0,q.jsx)(`li`,{children:(0,q.jsxs)(`button`,{className:`background-task-row`,onClick:()=>a(e.id),children:[(0,q.jsx)(Y,{name:IR(e)?`loader`:e.status===`completed`?`check`:`alert`,size:18}),(0,q.jsxs)(`span`,{children:[(0,q.jsx)(`strong`,{children:e.name||e.path.split(/[/\\]/).filter(Boolean).at(-1)}),(0,q.jsx)(`span`,{children:LR(e)}),(0,q.jsx)(`code`,{children:e.path})]}),(0,q.jsx)(Y,{name:`chevron`,size:14})]})},e.id))})]}),e.notice&&(0,wa.createPortal)((0,q.jsxs)(`div`,{className:`background-task-notice`,role:`status`,"aria-live":`polite`,children:[(0,q.jsxs)(`span`,{children:[e.notice.name||H(`sidebar:import_clone`),` · `,FR(e.notice)]}),(0,q.jsx)(J,{variant:`ghost`,size:`sm`,onClick:()=>a(e.notice.id),children:H(`sidebar:tasks_view`)}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`common:close`),onClick:e.dismiss,children:(0,q.jsx)(Y,{name:`close`,size:14})})]}),document.body)]})}function zR(e){let[t,n]=(0,y.useState)([]),[r,i]=(0,y.useState)(!1),[a,o]=(0,y.useState)(),s=(0,y.useRef)(new Map),c=(0,y.useRef)(0),l=(0,y.useCallback)(e=>{c.current++,s.current.set(e.id,e.status),n(t=>[e,...t.filter(t=>t.id!==e.id)])},[]),[u,d]=(0,y.useState)(0),f=(0,y.useCallback)(()=>d(e=>e+1),[]);return(0,y.useEffect)(()=>{if(!e)return;let t=new AbortController,r,a=async()=>{let e=c.current;try{let{data:r}=await pr.projectClones(t.signal);if(t.signal.aborted||e!==c.current)return;for(let e of r){let t=s.current.get(e.id);t&&IR({status:t})&&!IR(e)&&o(e),s.current.set(e.id,e.status)}n(r),i(!1)}catch{t.signal.aborted||i(!0)}finally{t.signal.aborted||(r=setTimeout(()=>void a(),1e3))}};a();let l=()=>f();return window.addEventListener(`online`,l),window.addEventListener(`focus`,l),()=>{t.abort(),clearTimeout(r),window.removeEventListener(`online`,l),window.removeEventListener(`focus`,l)}},[e,u,f]),(0,y.useEffect)(()=>{if(!a)return;let e=setTimeout(()=>o(void 0),12e3);return()=>clearTimeout(e)},[a]),{jobs:t,error:r,notice:a,accept:l,refresh:f,dismiss:()=>o(void 0)}}function BR(e){let t=e.trim().replace(/\/+$/,``).split(/[/:]/).pop()?.replace(/\.git$/,``)??``;return t&&t!==`.`&&t!==`..`&&!/[\\\s?#\0]/.test(t)?t:``}function VR(e,t){let[n,r]=(0,y.useState)(),[i,a]=(0,y.useState)(0),[o,s]=(0,y.useState)(),c=t===void 0?void 0:BR(t),l=JSON.stringify([n,c,i]);(0,y.useEffect)(()=>{if(!e)return;let t=!1,r=setTimeout(()=>{pr.projectPath(n??``,c).then(e=>{t||s({key:l,path:e.path})},e=>{t||s({key:l,error:ha(e)})})},150);return()=>{t=!0,clearTimeout(r)}},[e,n,c,l]);let u=o?.key===l?o:void 0,d=n??u?.path??``;return{value:d,setValue:r,path:u?.path,error:u?.error,pending:e&&!u,ready:!!(u?.path&&!u.error&&d.trim()),retry:()=>a(e=>e+1)}}function HR({value:e}){return(0,q.jsx)(`div`,{className:`project-path-preview`,"aria-live":`polite`,children:e.error?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`p`,{className:`inline-error`,role:`alert`,children:U(e.error)}),(0,q.jsx)(J,{variant:`ghost`,size:`sm`,onClick:e.retry,children:H(`sidebar:path_retry`)})]}):(0,q.jsxs)(`div`,{className:`project-directory`,children:[(0,q.jsx)(`span`,{children:H(`sidebar:resolved_path`)}),(0,q.jsx)(`code`,{children:e.pending?H(`sidebar:path_resolving`):e.ready?e.path:`—`})]})})}function UR(e){let[t,n]=(0,y.useState)(``),[r,i]=(0,y.useState)(``),[a,o]=(0,y.useState)(e.cloneId),s=e.tasks.jobs.find(e=>e.id===a),c=VR(!s&&!a,t),[l,u]=(0,y.useState)(!1),[d,f]=(0,y.useState)(),[p,m]=(0,y.useState)(!1),h=(0,y.useRef)(!1),g=l,{onBusyChange:_}=e;(0,y.useEffect)(()=>{_(g)},[g,_]),(0,y.useEffect)(()=>{s&&(c.setValue(s.path),i(s.name??``),f(void 0),m(!1))},[s,c.setValue]);let{accept:v}=e.tasks;(0,y.useEffect)(()=>{if(!a||s)return;let e=!1,t,n=async()=>{try{let t=await pr.projectClone(a);e||v(t)}catch(r){if(e)return;f(ha(r)),r instanceof fr&&r.status===404?m(!0):t=setTimeout(()=>void n(),1e3)}};return n(),()=>{e=!0,clearTimeout(t)}},[a,s,v]);async function b(){if(a||g||e.disabled||h.current||!c.ready)return;h.current=!0,u(!0),f(void 0);let n=crypto.randomUUID();try{let i=await pr.cloneProject({clientOperationId:n,repository:t.trim(),path:c.path,...r.trim()?{name:r.trim()}:{}});e.tasks.accept(i),o(n),e.tasks.refresh()}catch(t){f(ha(t)),(!(t instanceof fr)||t.status>=500)&&(o(n),e.tasks.refresh())}finally{h.current=!1,u(!1)}}async function x(t){if(s&&!h.current){h.current=!0,u(!0),f(void 0);try{t===`open`&&s.project?(await e.onImported(s.project.id),e.onClose()):e.tasks.accept(await(t===`cancel`?pr.cancelProjectClone(s.id):pr.registerProjectClone(s.id)))}catch(e){f(ha(e))}finally{h.current=!1,u(!1),e.tasks.refresh()}}}let S=s&&!IR(s)||p;return(0,q.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),b()},children:[(0,q.jsx)(`p`,{id:`project-dialog-description`,className:a?`sr-only`:void 0,children:H(`sidebar:clone_intro`)}),!s&&!a&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`label`,{className:`project-field`,children:[(0,q.jsx)(`span`,{children:H(`sidebar:clone_repository`)}),(0,q.jsx)(`input`,{autoFocus:!0,required:!0,maxLength:4096,autoComplete:`off`,spellCheck:!1,placeholder:`https://github.com/owner/repository.git`,value:t,onChange:e=>n(e.target.value),disabled:e.disabled||l,"aria-describedby":`clone-auth-help`,"aria-label":H(`sidebar:clone_repository`)}),(0,q.jsx)(`small`,{id:`clone-auth-help`,children:H(`sidebar:clone_auth_help`)})]}),(0,q.jsxs)(`label`,{className:`project-field`,children:[(0,q.jsx)(`span`,{children:H(`sidebar:clone_target`)}),(0,q.jsx)(`input`,{required:!0,maxLength:4096,autoComplete:`off`,spellCheck:!1,placeholder:`/home/you/code/my-project`,value:c.value,onChange:e=>c.setValue(e.target.value),disabled:e.disabled||l,"aria-describedby":`clone-path-help`,"aria-label":H(`sidebar:clone_target`)}),(0,q.jsx)(`small`,{id:`clone-path-help`,children:H(`sidebar:work_dir_clone_help`)})]}),(0,q.jsx)(HR,{value:c}),(0,q.jsxs)(`label`,{className:`project-field`,children:[(0,q.jsx)(`span`,{children:H(`sidebar:project_name_optional`)}),(0,q.jsx)(`input`,{maxLength:100,placeholder:H(`sidebar:defaults_to_directory_name`),value:r,onChange:e=>i(e.target.value),disabled:e.disabled||l})]})]}),(s||a&&!p)&&(0,q.jsxs)(`div`,{className:`project-clone-status`,role:`status`,"aria-live":`polite`,children:[(0,q.jsx)(`strong`,{children:s?LR(s):H(`sidebar:clone_checking`)}),IR(s)&&(0,q.jsx)(`progress`,{"aria-label":H(`sidebar:clone_progress`),max:100,value:s?.percent}),(0,q.jsx)(`code`,{children:s?.path??c.path??c.value})]}),a&&!s&&(0,q.jsx)(`p`,{className:`subtle`,children:H(`sidebar:tasks_checking`)}),e.tasks.error&&a&&(0,q.jsx)(`p`,{role:`alert`,className:`inline-error`,children:H(`sidebar:tasks_connection_lost`)}),s?.error&&(0,q.jsx)(`p`,{className:`inline-error project-dialog-error`,role:`alert`,children:U(rr({code:s.errorCode??`CLONE_FAILED`,message:s.error}))}),d&&(0,q.jsx)(`p`,{className:`inline-error project-dialog-error`,role:`alert`,children:U(d)}),(s?.error||wt(d))&&(0,q.jsxs)(`details`,{className:`project-clone-details`,children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsx)(`pre`,{children:s?.error??wt(d)})]}),e.disabled&&(0,q.jsx)(`p`,{className:`subtle`,children:H(`sidebar:your_login_expired_log_in_again_to_manage`)}),(0,q.jsxs)(`div`,{className:`project-dialog-actions`,children:[a&&(0,q.jsx)(J,{variant:`secondary`,disabled:l,onClick:e.onClose,children:IR(s)||!s?H(`sidebar:clone_background`):H(`common:close`)}),IR(s)?(0,q.jsx)(J,{variant:`secondary`,disabled:e.disabled||l||s?.status===`cancelling`,onClick:()=>void x(`cancel`),children:s?.status===`cancelling`?H(`sidebar:clone_cancelling`):H(`sidebar:clone_cancel`)}):a?null:(0,q.jsx)(J,{variant:`secondary`,disabled:g,onClick:e.onClose,children:H(`common:close`)}),s?.status===`completed`?(0,q.jsx)(J,{disabled:e.disabled||l,onClick:()=>void x(`open`),children:H(`sidebar:clone_open`)}):s?.status===`registration-failed`?(0,q.jsx)(J,{disabled:e.disabled||l,onClick:()=>void x(`register`),children:H(`sidebar:clone_register_retry`)}):S?(0,q.jsx)(J,{disabled:e.disabled||l,onClick:e=>{e.preventDefault(),o(void 0),f(void 0),m(!1)},children:H(`sidebar:clone_empty_retry`)}):!a&&(0,q.jsx)(J,{type:`submit`,disabled:e.disabled||l||!t.trim()||!c.ready,children:H(l?`common:submitting`:`sidebar:clone_start`)})]})]})}function WR(e){let t=(0,y.useRef)(null),n=(0,y.useRef)(!1),[r,i]=(0,y.useState)(e.project?.name??``),[a,o]=(0,y.useState)(!1),[s,c]=(0,y.useState)(!1),[l,u]=(0,y.useState)(!!e.cloneId),d=VR(!e.project&&!l),[f,p]=(0,y.useState)(),m=e.disabled||s,h=a?H(`sidebar:remove_project_2`):e.project?H(`common:manage_project`):H(`sidebar:add_server_project`);(0,y.useEffect)(()=>{let e=t.current;return e?.showModal(),()=>e?.close()},[]);async function g(){if(!(m||n.current||!e.project&&!d.ready)){n.current=!0,c(!0),p(void 0);try{e.project?a?await e.onRemove(e.project.id):await e.onRename(e.project.id,r.trim()):await e.onAdd({path:d.path,...r.trim()?{name:r.trim()}:{}}),e.onClose()}catch(e){p(ha(e))}finally{n.current=!1,c(!1)}}}return(0,q.jsxs)(`dialog`,{ref:t,className:`project-dialog`,"aria-labelledby":`project-dialog-title`,"aria-describedby":`project-dialog-description`,onCancel:t=>{t.preventDefault(),(!s||l)&&e.onClose()},children:[(0,q.jsxs)(`div`,{className:`project-dialog-heading`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(Y,{name:`folder`,size:20}),(0,q.jsx)(`h2`,{id:`project-dialog-title`,children:h})]}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`sidebar:close_project_management`),disabled:s&&!l,onClick:e.onClose,children:(0,q.jsx)(Y,{name:`close`,size:17})})]}),!e.project&&!e.cloneId&&(0,q.jsxs)(`div`,{className:`project-import-modes`,role:`group`,"aria-label":H(`sidebar:import_source`),children:[(0,q.jsx)(J,{variant:l?`ghost`:`secondary`,disabled:s,"aria-pressed":!l,onClick:()=>u(!1),children:H(`sidebar:import_existing`)}),(0,q.jsx)(J,{variant:l?`secondary`:`ghost`,disabled:s,"aria-pressed":l,onClick:()=>u(!0),children:H(`sidebar:import_clone`)})]}),l?(0,q.jsx)(UR,{disabled:e.disabled,cloneId:e.cloneId,tasks:e.tasks,onBusyChange:c,onImported:e.onImported,onClose:e.onClose}):(0,q.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),g()},children:[a?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`p`,{id:`project-dialog-description`,children:H(`sidebar:remove_from_this_workspace`,{v0:e.project?.name})}),(0,q.jsxs)(`div`,{className:`project-removal-note`,children:[(0,q.jsx)(`p`,{children:H(`sidebar:only_the_project_list_entry_is_removed_server`)}),(0,q.jsx)(`p`,{children:H(`sidebar:add_the_same_directory_later_to_access_its`)})]})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`p`,{id:`project-dialog-description`,children:e.project?H(`sidebar:set_a_recognizable_project_name_or_remove_it`):H(`sidebar:add_an_existing_directory_on_the_server_running`)}),e.project?(0,q.jsxs)(`div`,{className:`project-directory`,children:[(0,q.jsx)(`span`,{children:H(`sidebar:server_directory`)}),(0,q.jsx)(`code`,{children:e.project.rootPath})]}):(0,q.jsxs)(`label`,{className:`project-field`,children:[(0,q.jsx)(`span`,{children:H(`sidebar:server_directory`)}),(0,q.jsx)(`input`,{autoFocus:!0,required:!0,autoComplete:`off`,spellCheck:!1,placeholder:`/home/you/code/my-project`,value:d.value,onChange:e=>d.setValue(e.target.value),"aria-describedby":`project-path-help`,"aria-label":H(`sidebar:server_directory`),disabled:m}),(0,q.jsx)(`small`,{id:`project-path-help`,children:H(`sidebar:work_dir_path_help`)})]}),!e.project&&(0,q.jsx)(HR,{value:d}),(0,q.jsxs)(`label`,{className:`project-field`,children:[(0,q.jsx)(`span`,{children:e.project?H(`sidebar:project_name`):H(`sidebar:project_name_optional`)}),(0,q.jsx)(`input`,{autoFocus:!!e.project,required:!!e.project,maxLength:100,placeholder:H(`sidebar:defaults_to_directory_name`),value:r,onChange:e=>i(e.target.value),disabled:m})]})]}),f&&(0,q.jsx)(`p`,{className:`inline-error project-dialog-error`,role:`alert`,children:U(f)}),e.disabled&&(0,q.jsx)(`p`,{className:`subtle`,children:H(`sidebar:your_login_expired_log_in_again_to_manage`)}),(0,q.jsxs)(`div`,{className:`project-dialog-actions`,children:[e.project&&!a&&(0,q.jsx)(J,{className:`project-remove-button`,variant:`ghost`,disabled:m,onClick:()=>{p(void 0),o(!0)},children:H(`sidebar:remove_project`)}),(0,q.jsx)(J,{variant:`secondary`,disabled:s,onClick:()=>{a?(p(void 0),o(!1)):e.onClose()},children:H(a?`sidebar:back`:`common:cancel`)}),(0,q.jsx)(J,{type:`submit`,variant:a?`destructive`:`default`,disabled:m||!a&&(e.project?!r.trim():!d.ready),children:s?H(a?`sidebar:removing`:`common:saving`):a?H(`sidebar:confirm_removal`):e.project?H(`sidebar:save_name`):H(`common:add_project`)})]})]})]})}function GR({notifications:e,onClose:t}){let n=(0,y.useRef)(null),r=()=>{n.current?.close(),t()};(0,y.useEffect)(()=>{let e=n.current;return e?.showModal(),()=>e?.close()},[]);let{enabled:i,access:a,requesting:o,error:s,ready:c,initializing:l,testing:u,testResult:d}=e,f=i&&a===`granted`,p={default:H(`notifications:permission_not_granted`),granted:H(`notifications:permission_granted`),denied:H(`notifications:blocked_by_browser`),unsupported:H(`notifications:unsupported_browser`),insecure:H(`notifications:secure_connection_required`)}[a],m=![`default`,`granted`].includes(a);return(0,q.jsxs)(`dialog`,{ref:n,className:`project-dialog notification-dialog`,"aria-labelledby":`notification-dialog-title`,onCancel:e=>{e.preventDefault(),r()},children:[(0,q.jsxs)(`div`,{className:`project-dialog-heading`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(Yt,{size:20,"aria-hidden":`true`}),(0,q.jsx)(`h2`,{id:`notification-dialog-title`,children:H(`notifications:browser_notifications`)})]}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`notifications:close_notification_settings`),onClick:r,children:(0,q.jsx)(Y,{name:`close`,size:17})})]}),(0,q.jsx)(`p`,{children:H(`notifications:events_description`)}),(0,q.jsxs)(`div`,{className:`notification-control`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`strong`,{children:H(`notifications:browser_notifications`)}),(0,q.jsxs)(`span`,{role:`status`,children:[p,` ·`,` `,H(f?s||!c&&!l?`notifications:delivery_unavailable`:l?`notifications:preparing_delivery`:`common:on`:`common:off`)]})]}),(0,q.jsx)(J,{role:`switch`,"aria-label":H(`notifications:browser_notifications`),"aria-checked":f,"aria-describedby":`notification-permission-help`,variant:f?`secondary`:`default`,size:`sm`,disabled:o||m&&!i,onClick:()=>void e.toggle(),children:H(o?`notifications:waiting_for_permission`:i?`notifications:disable_notifications`:`notifications:enable_notifications`)})]}),(0,q.jsx)(`p`,{id:`notification-permission-help`,className:`notification-help`,children:H(a===`denied`?`notifications:allow_notifications_in_the_browser_s_site_settings`:a===`insecure`?`notifications:use_https_localhost_or_127_0_0_1`:a===`unsupported`?`notifications:use_a_desktop_browser_that_supports_system_notifications`:`notifications:permission_is_requested_only_when_you_click_enable`)}),i&&a===`granted`&&(0,q.jsx)(J,{variant:`secondary`,size:`sm`,disabled:!c||l||u,onClick:()=>void e.test(),children:H(`notifications:send_test_notification`)}),d&&!s&&(0,q.jsx)(`p`,{className:`notification-help`,role:`status`,children:U(d)}),s&&(0,q.jsx)(`p`,{className:`inline-error`,role:`alert`,children:U(s)}),(0,q.jsxs)(`section`,{className:`notification-background`,"aria-labelledby":`notification-background-title`,children:[(0,q.jsx)(`h3`,{id:`notification-background-title`,children:H(`notifications:background_notifications_and_sleeping_tabs`)}),(0,q.jsx)(`p`,{children:H(`notifications:keep_this_page_and_browser_open_background_tabs`)}),(0,q.jsxs)(`details`,{children:[(0,q.jsx)(`summary`,{children:H(`notifications:keep_this_site_active`)}),(0,q.jsxs)(`ul`,{children:[(0,q.jsxs)(`li`,{children:[H(`notifications:chrome_settings_performance_always_keep_these_sites_active`),(0,q.jsx)(`a`,{href:`https://support.google.com/chrome/answer/12929150?hl=zh-Hans`,target:`_blank`,rel:`noreferrer`,children:H(`notifications:settings_instructions`)})]}),(0,q.jsxs)(`li`,{children:[H(`notifications:edge_settings_system_and_performance_performance_always_keep`),(0,q.jsx)(`a`,{href:`https://support.microsoft.com/edge/learn-about-performance-features-in-microsoft-edge`,target:`_blank`,rel:`noreferrer`,children:H(`notifications:settings_instructions`)})]})]}),(0,q.jsx)(`p`,{children:H(`notifications:configure_this_manually_in_the_browser_names_may`)})]})]})]})}var KR=1048576,qR=e=>H(`settings:0_0009765625_mib_minimum_1_kib`,{v0:e});function JR(e,t,n,r){return{key:e,get label(){return H(`settings:fieldUnit`,{label:H(t)})},group:`advanced`,unit:`MiB`,maxMiB:n,get help(){return H(`settings:range_default_mib_decimals_must_correspond_to_whole`,{v0:qR(n),v1:r})}}}var YR=e=>(e/KR).toFixed(20).replace(/\.?0+$/,``),XR=[{key:`workDir`,get label(){return H(`settings:work_dir`)},group:`projects`,get help(){return H(`settings:work_dir_help`)}},{key:`host`,get label(){return H(`settings:listen_address`)},group:`network`,get help(){return H(`settings:use_127_0_0_1_localhost_or_1`)}},{key:`port`,get label(){return H(`settings:listen_port`)},group:`network`,type:`number`,get help(){return H(`settings:range_1_65535_use_the_new_port_after`)}},{key:`publicOrigin`,get label(){return H(`settings:allowed_origins`)},group:`network`,multiline:!0,get help(){return H(`settings:one_complete_http_s_origin_per_line_scheme`)}},{key:`issuer`,get label(){return H(`settings:access_team_domain`)},group:`network`,get help(){return H(`settings:for_example_https_your_team_cloudflareaccess_com`)}},{key:`audience`,get label(){return H(`settings:access_application_aud`)},group:`network`,get help(){return H(`settings:enter_the_cloudflare_access_application_s_audience`)}},{key:`binary`,get label(){return H(`settings:codex_executable`)},group:`codex`,get help(){return H(`settings:enter_codex_or_an_absolute_path_on_the`)}},{key:`home`,get label(){return H(`settings:codex_home_optional`)},group:`codex`,get help(){return H(`settings:leave_blank_to_inherit_the_service_environment_or`)}},{key:`requestTimeoutMs`,get label(){return H(`settings:request_timeout_milliseconds`)},group:`codex`,type:`number`,get help(){return H(`settings:range_100_300000_default_30000`)}},JR(`maxLineBytes`,`settings:codex_message_line_limit`,256,64),JR(`eventBytes`,`settings:event_buffer_limit`,64,16),JR(`wsBytes`,`settings:websocket_buffer_limit`,16,4),JR(`itemBytes`,`settings:item_content_limit`,8,2),{key:`developmentOrigins`,get label(){return H(`settings:development_origins`)},group:`advanced`,multiline:!0,get help(){return H(`settings:one_local_http_s_origin_per_line_used`)}}];function ZR(e){return{host:e.host,workDir:e.workDir??``,port:String(e.port),publicOrigin:e.publicOrigin.join(`
|
|
162
|
-
`),developmentOrigins:e.developmentOrigins.join(`
|
|
163
|
-
`),mode:e.auth.mode,issuer:e.auth.mode===`cloudflare-access`?e.auth.issuer:``,audience:e.auth.mode===`cloudflare-access`?e.auth.audience:``,binary:e.codex.binary,home:e.codex.home??``,requestTimeoutMs:String(e.codex.requestTimeoutMs),maxLineBytes:YR(e.codex.maxLineBytes),eventBytes:YR(e.limits.eventBytes),wsBytes:YR(e.limits.wsBytes),itemBytes:YR(e.limits.itemBytes)}}var QR=e=>e.split(`
|
|
164
|
-
`).map(e=>e.trim()).filter(Boolean),$R=XR.filter(e=>`unit`in e);function ez(e,t){let n=e=>({bytes:NaN,error:H(`settings:fieldError`,{label:t.label,reason:e})}),r=e.trim();if(!r)return n(H(`settings:enter_a_value_in_mib`));if(!/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/.test(r)||!Number.isFinite(Number(r)))return n(H(`settings:enter_a_valid_mib_value_decimals_are_allowed`));if(Number(r)<1/1024||Number(r)>t.maxMiB)return n(H(`settings:range`,{v0:qR(t.maxMiB)}));let[i,a=``]=r.replace(/^\+/,``).split(`.`),o=a.replace(/0+$/,``),s=()=>n(H(`settings:the_mib_value_must_correspond_to_whole_bytes`));if(o.length>20)return s();let c=10n**BigInt(o.length),l=(BigInt(i||`0`)*c+BigInt(o||`0`))*BigInt(KR);return l<1024n*c||l>BigInt(t.maxMiB*KR)*c?n(H(`settings:range`,{v0:qR(t.maxMiB)})):l%c===0n?{bytes:Number(l/c)}:s()}function tz(e){return Object.fromEntries($R.flatMap(t=>{let{error:n}=ez(e[t.key],t);return n?[[t.key,n]]:[]}))}function nz(e,t){return`unit`in e?`${t} ${e.unit}`:t}function rz(e,t){let n=Object.fromEntries($R.map(t=>[t.key,ez(e[t.key],t).bytes]));return{...t,workDir:e.workDir.trim()||void 0,host:e.host.trim(),port:Number(e.port),publicOrigin:QR(e.publicOrigin),developmentOrigins:QR(e.developmentOrigins),auth:e.mode===`local`?{mode:`local`}:{mode:e.mode,issuer:e.issuer.trim(),audience:e.audience.trim()},codex:{binary:e.binary.trim(),...e.home.trim()?{home:e.home.trim()}:{},requestTimeoutMs:Number(e.requestTimeoutMs),maxLineBytes:n.maxLineBytes},limits:{eventBytes:n.eventBytes,wsBytes:n.wsBytes,itemBytes:n.itemBytes}}}function iz(e,t){let n=ZR(e),r=ZR(t);return[...n.mode===r.mode?[]:[{label:H(`common:authentication_mode`),before:n.mode,after:r.mode}],...XR.filter(e=>!([`issuer`,`audience`].includes(e.key)&&r.mode===`local`)&&n[e.key]!==r[e.key]).map(e=>({label:e.label,before:nz(e,n[e.key]),after:nz(e,r[e.key])}))]}var az=e=>e?.phase===`waiting`||e?.phase===`restarting`||e?.phase===`verifying`,oz=`/api/service-restart`;function sz(){let[e,t]=(0,y.useState)(),[n,r]=(0,y.useState)(),[i,a]=(0,y.useState)(),[o,s]=(0,y.useState)(!1),c=(0,y.useRef)(void 0),l=(0,y.useRef)(!1),u=az(e?.run);(0,y.useEffect)(()=>{let e=new AbortController,n,i,o=async()=>{try{let i=await W(oz,void 0,AbortSignal.any([e.signal,AbortSignal.timeout(4e3)]));if(e.signal.aborted)return;t(i),n=void 0,r(void 0),c.current&&i.run&&c.current.afterId!==i.run.id&&(c.current=void 0,a(void 0))}catch{if(e.signal.aborted)return;n??=Date.now(),r(Date.now()-n>=9e4?`unreachable`:`offline`)}finally{e.signal.aborted||(i=setTimeout(()=>void o(),750))}};return o(),()=>{e.abort(),clearTimeout(i)}},[]);async function d(r=!1){let i=e?.run;if(!(l.current||!e?.supported||n)&&!(r?i?.phase!==`waiting`:u)){l.current=!0,s(!0),a(void 0);try{if(r&&i)t(await W(`${oz}/cancel`,{id:i.id}));else{let e=await W(oz,c.current??={clientOperationId:crypto.randomUUID(),afterId:i?.id??null});if(e.status!==`acknowledged`)throw new fr(409,e.error??{code:`RESTART_FAILED`,message:``})}}catch(e){!r&&!(e instanceof fr&&e.status<500)?c.current&&a(`unknown`):(r||(c.current=void 0),a(`failed`))}finally{l.current=!1,s(!1)}}}return{status:e,active:u,busy:o,error:i,disconnected:n!==void 0,unreachable:n===`unreachable`,submit:d}}function cz(e,t){let n=e.status?.run;return e.unreachable?H(`settings:restart_unreachable`):n?.phase===`failed`?H(`settings:restart_failed`):e.active&&e.disconnected?H(`settings:restart_reconnecting`):n?n.phase===`succeeded`&&!t?H(`settings:restart_reconnecting`):H(`settings:restart_phase_${n.phase}`):``}function lz({connected:e,editing:t}){let n=sz(),{status:r}=n,i=Tt((r?.blockers??[]).map(e=>H(`settings:restart_blocker_${e}`))),a=cz(n,e),o=r?.run?.phase===`waiting`;return(0,q.jsxs)(`section`,{className:`service-restart`,"aria-labelledby":`service-restart-title`,children:[(0,q.jsx)(`h3`,{id:`service-restart-title`,children:H(`settings:restart_title`)}),(0,q.jsx)(`p`,{children:r?.supported===!1?H(`settings:restart_unsupported`):H(`settings:restart_description`)}),a&&(0,q.jsxs)(`div`,{className:`gateway-status`,role:`status`,"data-pending":n.active,"data-failed":r?.run?.phase===`failed`||n.unreachable,children:[(0,q.jsx)(`strong`,{children:a}),o&&i&&(0,q.jsx)(`span`,{children:i}),r?.run?.failure&&(0,q.jsx)(`span`,{children:H(`settings:restart_failure_${r.run.failure}`)})]}),r?.supported&&(0,q.jsxs)(J,{variant:`secondary`,size:`sm`,disabled:n.busy||n.disconnected||!o&&(n.active||t),onClick:()=>void n.submit(o),children:[!o&&(0,q.jsx)(Bn,{size:15,"aria-hidden":`true`}),H(o?`settings:restart_cancel`:n.error===`unknown`?`settings:restart_retry_request`:`settings:restart_when_idle`)]})]})}var uz=e=>e instanceof fr?rr(e.problem):e instanceof Error?e.message:H(`settings:operation_failed_please_retry`);function dz({onClose:e,connected:t=!0}){let n=(0,y.useRef)(null),r=()=>{n.current?.close(),e()},i=(0,y.useRef)(null),[a,o]=(0,y.useState)(),[s,c]=(0,y.useState)(),[l,u]=(0,y.useState)(),[d,f]=(0,y.useState)(),[p,m]=(0,y.useState)(!0),[h,g]=(0,y.useState)(``),[_,v]=(0,y.useState)(``),[b,x]=(0,y.useState)({}),[S,C]=(0,y.useState)(!1),[w,T]=(0,y.useState)(!1),E=!!a&&!!s&&JSON.stringify(rz(s,a.saved))!==JSON.stringify(a.saved);(0,y.useEffect)(()=>{n.current?.showModal();let e=new AbortController;return pr.gatewayConfig().then(t=>{e.signal.aborted||(o(t),c(ZR(t.saved)))}).catch(t=>{e.signal.aborted||g(uz(t))}).finally(()=>{e.signal.aborted||m(!1)}),()=>{e.abort(),n.current?.close()}},[]),(0,y.useEffect)(()=>{let e=e=>{E&&e.preventDefault()};return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[E]);let D=()=>{p||(E||d?T(!0):r())};async function O(e){m(!0),g(``),v(``);try{await e()}catch(e){g(uz(e)),e instanceof fr&&e.problem.code===`CONFIG_CONFLICT`&&C(!0)}finally{m(!1)}}async function k(){await O(async()=>{let e=await pr.gatewayConfig();o(e),c(ZR(e.saved)),x({}),u(void 0),f(void 0),C(!1)})}async function A(e){let t=e.target.files?.[0];e.target.value=``,t&&await O(async()=>{if(t.size>262144)throw Error(H(`settings:configuration_files_cannot_exceed_256_kib`));let e;try{e=JSON.parse(await t.text())}catch{throw Error(H(`settings:cannot_parse_json_check_the_file_format`))}f(await pr.importGatewayConfig(e)),u(void 0)})}async function j(){await O(async()=>{let e=await pr.exportGatewayConfig(),t=URL.createObjectURL(new Blob([`${JSON.stringify(e,null,2)}\n`],{type:`application/json`})),n=document.createElement(`a`);n.href=t,n.download=`codex-web-config.json`,document.body.append(n),n.click(),n.remove(),setTimeout(()=>URL.revokeObjectURL(t),1e3),v(Ct(`settings:exported_saved_configuration_from_the_file_unsaved_edits`))})}let M=a&&ZR(a.running),N=d?.config??l,P=a&&N?iz(a.saved,N):[];function F(e){if(!s||!M||[`issuer`,`audience`].includes(e.key)&&s.mode!==`cloudflare-access`)return null;let t={id:`gateway-${e.key}`,"aria-labelledby":`gateway-${e.key}-label`,"aria-describedby":`gateway-${e.key}-help${b[e.key]?` gateway-${e.key}-error`:``}`,"aria-invalid":!!b[e.key],value:s[e.key],disabled:p||!a?.writable,onChange:t=>{c({...s,[e.key]:t.target.value}),x(t=>({...t,[e.key]:void 0})),v(``)}};return(0,q.jsxs)(`label`,{className:`project-field`,htmlFor:t.id,children:[(0,q.jsx)(`span`,{id:`gateway-${e.key}-label`,children:e.label}),`multiline`in e?(0,q.jsx)(`textarea`,{...t,rows:3,spellCheck:!1}):(0,q.jsx)(`input`,{...t,type:`type`in e?e.type:`text`,inputMode:`unit`in e?`decimal`:void 0,spellCheck:!1}),(0,q.jsx)(`small`,{id:`gateway-${e.key}-help`,children:e.help}),b[e.key]&&(0,q.jsx)(`small`,{id:`gateway-${e.key}-error`,className:`gateway-error`,role:`alert`,children:b[e.key]}),s[e.key]!==M[e.key]&&(0,q.jsx)(`small`,{className:`gateway-running`,children:H(`settings:currently_running`,{v0:nz(e,M[e.key])||H(`settings:not_set`)})})]},e.key)}return(0,q.jsxs)(`dialog`,{ref:n,className:`project-dialog gateway-dialog`,"aria-labelledby":`gateway-title`,onCancel:e=>{e.preventDefault(),D()},children:[(0,q.jsxs)(`div`,{className:`project-dialog-heading`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(Wn,{size:20,"aria-hidden":`true`}),(0,q.jsx)(`h2`,{id:`gateway-title`,children:H(`common:service_settings`)})]}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`settings:close_service_settings`),disabled:p,onClick:D,children:(0,q.jsx)(Y,{name:`close`,size:17})})]}),(0,q.jsx)(lz,{connected:t,editing:p||E||!!l||!!d}),(0,q.jsx)(`p`,{className:`gateway-intro`,children:H(`settings:service_settings_apply_help`)}),h&&(0,q.jsxs)(`div`,{className:`gateway-error`,role:`alert`,children:[(0,q.jsx)(`p`,{children:U(h)}),wt(h)&&(0,q.jsxs)(`details`,{children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsx)(`pre`,{children:wt(h)})]})]}),!a&&(0,q.jsx)(J,{variant:`secondary`,disabled:p,onClick:()=>void k(),children:H(p?`settings:loading_configuration`:`settings:reload_configuration`)}),a&&s&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`gateway-file`,children:[(0,q.jsx)(`span`,{children:H(`settings:configuration_file`)}),(0,q.jsx)(`code`,{children:a.path})]}),(0,q.jsxs)(`div`,{className:`gateway-status`,role:`status`,"data-pending":a.restartRequired,children:[(0,q.jsx)(`strong`,{children:a.restartRequired?H(`settings:saved_restart_to_apply`):H(`settings:saved_and_running_configurations_match`)}),(0,q.jsx)(`span`,{children:H(`settings:saving_does_not_restart_the_service_or_interrupt`)})]}),!a.writable&&(0,q.jsx)(`p`,{className:`gateway-error`,children:a.readOnlyReason}),_&&(0,q.jsx)(`p`,{className:`gateway-notice`,role:`status`,children:U(_)}),S&&(0,q.jsxs)(`div`,{className:`gateway-conflict`,children:[(0,q.jsx)(`p`,{children:H(`settings:reloading_discards_current_edits_and_loads_the_latest`)}),(0,q.jsx)(J,{variant:`secondary`,disabled:p,onClick:()=>void k(),children:H(`settings:discard_edits_and_reload`)})]}),w?(0,q.jsxs)(`section`,{className:`gateway-review`,"aria-label":H(`settings:confirm_discarding_edits`),children:[(0,q.jsx)(`h3`,{children:H(`settings:discard_unsaved_changes`)}),(0,q.jsx)(`p`,{children:H(`settings:the_configuration_file_has_not_been_changed`)}),(0,q.jsxs)(`div`,{className:`project-dialog-actions`,children:[(0,q.jsx)(J,{variant:`secondary`,onClick:()=>T(!1),children:H(`settings:keep_editing`)}),(0,q.jsx)(J,{variant:`destructive`,onClick:r,children:H(`settings:discard_changes_and_close`)})]})]}):N?(0,q.jsxs)(`section`,{className:`gateway-review`,"aria-label":H(d?`settings:import_configuration_preview`:`settings:save_configuration_preview`),children:[(0,q.jsx)(`h3`,{children:H(d?`settings:preview_imported_configuration`:`settings:confirm_configuration_changes`)}),(0,q.jsx)(`p`,{children:H(d?`settings:applying_to_the_form_replaces_editable_settings_but`:`settings:these_changes_apply_after_restarting_the_service_confirm`)}),d&&(0,q.jsx)(`p`,{children:H(`settings:keep_the_current_data_directory_and_initial_project`,{v0:d.preserved.length>0?H(`settings:ignored_from_the_imported_file`,{v0:Tt(d.preserved)}):``})}),P.length?(0,q.jsx)(`div`,{className:`gateway-changes`,children:P.map(e=>(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`strong`,{children:e.label}),(0,q.jsx)(`span`,{children:H(`settings:saved`,{v0:e.before||H(`settings:not_set`)})}),(0,q.jsx)(`span`,{children:H(`settings:change_to`,{v0:e.after||H(`settings:not_set`)})})]},e.label))}):(0,q.jsx)(`p`,{children:H(`settings:no_differences_from_the_saved_configuration`)}),(0,q.jsxs)(`details`,{className:`gateway-json`,children:[(0,q.jsx)(`summary`,{children:H(`settings:view_full_json`)}),(0,q.jsx)(`pre`,{children:JSON.stringify(N,null,2)})]}),(0,q.jsxs)(`div`,{className:`project-dialog-actions`,children:[(0,q.jsx)(J,{variant:`secondary`,disabled:p,onClick:()=>{f(void 0),u(void 0)},children:H(`settings:back_to_editing`)}),d?(0,q.jsx)(J,{disabled:p,onClick:()=>{c(ZR(d.config)),x({}),f(void 0),v(Ct(`settings:imported_configuration_applied_to_form_not_saved_yet`))},children:H(`settings:apply_to_form`)}):(0,q.jsx)(J,{disabled:p||S||!P.length,onClick:()=>void O(async()=>{let e=await pr.saveGatewayConfig(a.revision,N);o(e),c(ZR(e.saved)),u(void 0),v(e.restartRequired?Ct(`settings:configuration_saved_restart_the_service_manually_when_convenient`):Ct(`settings:configuration_saved_and_matches_the_running_configuration`))}),children:H(p?`common:saving`:`settings:confirm_save`)})]})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`gateway-tools`,children:[(0,q.jsxs)(J,{variant:`secondary`,size:`sm`,disabled:p||!a.writable,onClick:()=>i.current?.click(),children:[(0,q.jsx)(Qn,{size:15,"aria-hidden":`true`}),H(`settings:import_configuration`)]}),(0,q.jsxs)(J,{variant:`secondary`,size:`sm`,disabled:p,onClick:()=>void j(),children:[(0,q.jsx)(mn,{size:15,"aria-hidden":`true`}),H(`settings:export_saved_configuration`)]}),(0,q.jsx)(`input`,{ref:i,type:`file`,accept:`.json,application/json`,"aria-label":H(`settings:choose_configuration_file`),hidden:!0,onChange:e=>void A(e)})]}),(0,q.jsx)(`p`,{className:`gateway-help`,children:H(`settings:import_updates_service_settings_only_export_includes_initial`)}),(0,q.jsxs)(`form`,{onSubmit:e=>{e.preventDefault();let t=tz(s);x(t);let n=XR.find(e=>t[e.key]);n?requestAnimationFrame(()=>{let e=document.getElementById(`gateway-${n.key}`);e?.closest(`details`)?.setAttribute(`open`,``),e?.focus({preventScroll:!0}),e?.closest(`label`)?.scrollIntoView({block:`center`})}):O(async()=>{u((await pr.importGatewayConfig(rz(s,a.saved))).config)})},children:[(0,q.jsxs)(`fieldset`,{disabled:p||!a.writable,children:[(0,q.jsxs)(`section`,{className:`gateway-section`,children:[(0,q.jsx)(`h3`,{children:H(`settings:network_and_access`)}),(0,q.jsxs)(`div`,{className:`gateway-fields`,children:[XR.filter(e=>e.group===`network`).map(F),(0,q.jsxs)(`label`,{className:`project-field`,children:[(0,q.jsx)(`span`,{children:H(`common:authentication_mode`)}),(0,q.jsxs)(PT,{value:s.mode,disabled:p||!a.writable,onValueChange:e=>c({...s,mode:e}),children:[(0,q.jsx)(IT,{"aria-label":H(`common:authentication_mode`),children:(0,q.jsx)(FT,{})}),(0,q.jsxs)(LT,{children:[(0,q.jsx)(RT,{value:`local`,children:H(`settings:local_tailscale_local`)}),(0,q.jsx)(RT,{value:`cloudflare-access`,children:`Cloudflare Access`})]})]}),(0,q.jsx)(`small`,{children:H(`settings:local_mode_listens_only_on_loopback_addresses_use`)}),s.mode!==M?.mode&&(0,q.jsx)(`small`,{className:`gateway-running`,children:H(`settings:currently_running`,{v0:M?.mode})})]})]})]}),(0,q.jsxs)(`section`,{className:`gateway-section`,children:[(0,q.jsx)(`h3`,{children:`Codex`}),(0,q.jsx)(`div`,{className:`gateway-fields`,children:XR.filter(e=>e.group===`codex`).map(F)})]}),(0,q.jsxs)(`section`,{className:`gateway-section`,children:[(0,q.jsx)(`h3`,{children:H(`settings:data_and_projects`)}),(0,q.jsx)(`div`,{className:`gateway-fields`,children:XR.filter(e=>e.group===`projects`).map(F)}),(0,q.jsxs)(`div`,{className:`gateway-file`,children:[(0,q.jsx)(`span`,{children:H(`settings:data_directory_read_only`)}),(0,q.jsx)(`code`,{children:a.saved.dataDir}),(0,q.jsx)(`span`,{children:H(`settings:current_runtime_directory`)}),(0,q.jsx)(`code`,{children:a.running.dataDir})]}),(0,q.jsx)(`p`,{className:`gateway-help`,children:H(`settings:changing_the_data_directory_requires_database_migration_while`)})]}),(0,q.jsxs)(`details`,{className:`gateway-section`,children:[(0,q.jsx)(`summary`,{children:H(`settings:advanced_settings`)}),(0,q.jsx)(`div`,{className:`gateway-fields`,children:XR.filter(e=>e.group===`advanced`).map(F)})]})]}),(0,q.jsxs)(`div`,{className:`gateway-save-bar`,children:[(0,q.jsx)(`span`,{children:H(E?`settings:unsaved_changes`:`settings:no_unsaved_changes`)}),(0,q.jsx)(J,{type:`submit`,disabled:p||!E||!a.writable||S,children:H(p?`settings:validating`:`settings:review_changes`)})]})]})]})]})]})}var fz=[`stable`,`beta`,`dev`],pz=e=>!!(e&&[`installing`,`waiting`,`stopping`,`verifying`].includes(e.phase)),mz=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/;function hz(e){let t=mz.exec(e);return!(!t||t[4]&&!t[4].split(`.`).every(e=>!/^\d+$/.test(e)||e===`0`||!e.startsWith(`0`)))}function gz(e,t){if(!hz(e)||!hz(t))throw Error(`Invalid release version`);let n=mz.exec(e),r=mz.exec(t);for(let e=1;e<=3;e++){let t=BigInt(n[e])-BigInt(r[e]);if(t)return t>0?1:-1}if(!n[4]||!r[4])return n[4]===r[4]?0:n[4]?-1:1;let i=n[4].split(`.`),a=r[4].split(`.`);for(let e=0;e<Math.max(i.length,a.length);e++){let t=i[e],n=a[e];if(t===n)continue;if(t===void 0||n===void 0)return t===void 0?-1:1;let r=/^\d+$/.test(t),o=/^\d+$/.test(n);return r&&o?BigInt(t)>BigInt(n)?1:-1:r===o?t>n?1:-1:r?-1:1}return 0}var _z=`https://github.com/yuzheng14/covro/releases`;function vz(e){return`${_z}/tag/${encodeURIComponent(`v${e}`)}`}function yz({version:e}){let[t,n]=(0,y.useState)(),[r,i]=(0,y.useState)(0);return(0,y.useEffect)(()=>{let t=new AbortController;return W(`/api/updates/release-notes?${new URLSearchParams({version:e,...r?{refresh:`1`}:{}})}`,void 0,AbortSignal.any([t.signal,AbortSignal.timeout(15e3)])).then(r=>{if(r.version!==e)throw Error(`Release version mismatch`);t.signal.aborted||n(r)}).catch(()=>{t.signal.aborted||n({version:e,url:vz(e),state:`error`,reason:`unavailable`})}),()=>t.abort()},[e,r]),(0,q.jsxs)(`section`,{className:`update-release-notes`,"aria-label":H(`updates:releaseNotes`),children:[(0,q.jsxs)(`div`,{className:`update-release-notes-heading`,children:[(0,q.jsx)(`h3`,{children:H(`updates:releaseNotesFor`,{version:e})}),(0,q.jsxs)(`a`,{href:t?.url??vz(e),target:`_blank`,rel:`noopener noreferrer`,children:[H(`updates:viewOnGitHub`),` `,(0,q.jsx)(vn,{size:12,"aria-hidden":`true`})]})]}),t?.state===`available`?(0,q.jsx)(`div`,{className:`update-release-notes-content`,role:`region`,"aria-label":H(`updates:releaseNotesContent`),tabIndex:0,children:(0,q.jsx)(DI,{text:t.body,externalBaseUrl:`https://github.com/yuzheng14/covro/blob/${encodeURIComponent(`v${e}`)}/`})}):(0,q.jsx)(`p`,{className:`subtle`,role:`status`,children:t?t.state===`missing`?H(`updates:releaseNotesMissing`):t.state===`empty`?H(`updates:releaseNotesEmpty`):t.reason===`rateLimited`?H(`updates:releaseNotesRateLimited`):H(`updates:releaseNotesFailed`):H(`updates:releaseNotesLoading`)}),t&&t.state!==`available`&&(0,q.jsx)(J,{variant:`ghost`,size:`sm`,onClick:()=>{n(void 0),i(e=>e+1)},children:H(`settings:retry`)})]})}var bz={get stable(){return H(`updates:stable`)},get beta(){return H(`updates:beta`)},get dev(){return H(`updates:development`)}},xz={get installing(){return H(`updates:installing_candidate_version`)},get waiting(){return H(`updates:waiting_for_tasks_to_finish`)},get stopping(){return H(`updates:backing_up_and_restarting`)},get verifying(){return H(`updates:verifying_new_version`)},get succeeded(){return H(`updates:update_successful`)},get rolledBack(){return H(`updates:previous_version_restored`)},get cancelled(){return H(`updates:cancelled`)},get failed(){return H(`updates:update_failed`)}},Sz={get verified(){return H(`updates:verified`)},get unverified(){return H(`updates:unverified`)},get unsupported(){return H(`updates:explicitly_unsupported`)},get unknown(){return H(`updates:cannot_confirm`)}};function Cz({title:e,value:t,restart:n,source:r,probeFailed:i}){return(0,q.jsxs)(`section`,{className:`update-codex`,"aria-label":e,"data-state":t.status,children:[(0,q.jsx)(`h3`,{children:e}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`span`,{children:n?H(`updates:after_restart`):`Codex CLI`}),(0,q.jsx)(`strong`,{children:t.version??H(`updates:unrecognized`)}),(0,q.jsx)(`span`,{className:`update-codex-status`,children:Sz[t.status]})]}),t.manifest&&(0,q.jsx)(`p`,{className:`subtle`,children:H(`updates:recommended_verified`,{v0:t.manifest.recommended,v1:Tt(t.manifest.verified)})}),t.reason&&(0,q.jsx)(`p`,{children:i?H(`updates:restart_unavailable`):H(`updates:${t.status===`unverified`?`unverified_combination`:t.status===`unsupported`?`unsupported_combination`:`unknown_compatibility`}`,{version:t.version})}),r&&(0,q.jsxs)(`details`,{children:[(0,q.jsx)(`summary`,{children:H(`updates:installation_source`)}),(0,q.jsxs)(`pre`,{children:[r.identity.resolved,r.identity.resolved!==r.identity.executable&&`\n→ ${r.identity.executable}`]})]})]})}function wz({updates:e,onClose:t}){let n=(0,y.useRef)(null),{status:r,busy:i,error:a,reloadError:o}=e,[s,c]=(0,y.useState)(),l=s??r?.settings.channel??`stable`,[u,d]=(0,y.useState)(!1),f=(r?.available?.requestedChannel??r?.available?.channel)===l?r?.available:void 0,p=pz(r?.run),m=!!(p&&r?.run?.automatic&&!r.run.transactionStartedAt),h=p&&r?.run?.candidate?r.run.candidate:f,g=!!r?.runtime?.migration,_=h&&r&&hz(r.version)&&gz(h.version,r.version)===0,[v,b]=(0,y.useState)(),x=JSON.stringify([l,h?.version,h?.codex,h?.codexTarget,r?.runtime?.target]),S=v===x,C=h?.codex,w=(!_||g)&&C?.status===`unverified`,T=(!_||g)&&h&&(!C||C.status===`unknown`||C.status===`unsupported`||w&&!S);return(0,y.useEffect)(()=>{b(void 0)},[x]),(0,y.useEffect)(()=>{let e=n.current;return e?.showModal(),()=>e?.close()},[]),(0,q.jsxs)(`dialog`,{ref:n,className:`project-dialog update-dialog`,"aria-labelledby":`update-title`,onCancel:e=>{e.preventDefault(),t()},children:[(0,q.jsxs)(`div`,{className:`project-dialog-heading`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(cn,{size:20,"aria-hidden":`true`}),(0,q.jsx)(`h2`,{id:`update-title`,children:H(`common:covro_updates`)})]}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`updates:close_update_settings`),onClick:t,children:(0,q.jsx)(Y,{name:`close`,size:17})})]}),r?.runtime&&(0,q.jsxs)(`section`,{className:`update-runtime`,"aria-label":H(`updates:runtime`),children:[(0,q.jsxs)(`div`,{className:`update-version`,children:[(0,q.jsx)(`span`,{children:`Node.js`}),(0,q.jsx)(`strong`,{children:r.runtime.current.nodeVersion}),g&&r.runtime.target&&(0,q.jsxs)(`strong`,{children:[`→ `,r.runtime.target.nodeVersion]})]}),(0,q.jsxs)(`details`,{children:[(0,q.jsx)(`summary`,{children:H(`updates:installation_source`)}),(0,q.jsxs)(`pre`,{children:[r.runtime.current.node,`
|
|
165
|
-
`,r.runtime.current.entry]}),g&&r.runtime.target&&(0,q.jsxs)(`pre`,{children:[`→ `,r.runtime.target.node,`
|
|
166
|
-
`,r.runtime.target.entry]})]}),r.runtime.error&&(0,q.jsxs)(`div`,{className:`inline-error`,role:`alert`,children:[(0,q.jsx)(`p`,{children:H(`updates:runtime_unavailable`)}),(0,q.jsxs)(`details`,{children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsx)(`pre`,{children:r.runtime.error})]})]})]}),(0,q.jsxs)(`div`,{className:`update-version`,children:[(0,q.jsx)(`span`,{children:H(`updates:current_covro`)}),(0,q.jsx)(`strong`,{children:r?.version??H(`common:loading_2`)}),r?.commit&&(0,q.jsx)(`code`,{children:r.commit.slice(0,8)})]}),r?.codex&&(0,q.jsx)(Cz,{title:H(`updates:current_codex`),value:r.codex}),(0,q.jsxs)(`label`,{className:`update-channel`,children:[H(`updates:release_channel`),(0,q.jsxs)(PT,{value:l,disabled:i||p&&!m,onValueChange:t=>{let n=t;c(n),d(!1),b(void 0),m&&r&&e.configure({...r.settings,channel:n}),e.check(n)},children:[(0,q.jsx)(IT,{"aria-label":H(`updates:release_channel`),children:(0,q.jsx)(FT,{})}),(0,q.jsx)(LT,{children:fz.map(e=>(0,q.jsx)(RT,{value:e,children:bz[e]},e))})]})]}),(0,q.jsx)(`p`,{className:`subtle`,children:H(l===`stable`?`updates:verified_releases_for_everyday_use`:l===`beta`?`updates:try_features_being_prepared_for_release`:`updates:follows_checked_main_commits_for_developers_testing_new`)}),(0,q.jsxs)(`div`,{className:`update-control`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`strong`,{children:H(`updates:auto_update_when_idle`)}),(0,q.jsx)(`p`,{className:`subtle`,children:H(`updates:periodically_check_this_channel_and_install_verified_codex`)})]}),(0,q.jsx)(J,{role:`switch`,"aria-label":H(`updates:auto_update_when_idle`),"aria-checked":r?.settings.automatic??!1,variant:`secondary`,size:`sm`,disabled:i||p&&!m||!r?.supported,onClick:()=>r&&void e.configure({...r.settings,automatic:!r.settings.automatic}),children:r?.settings.automatic?H(`common:on`):H(`updates:disabled`)})]}),r&&l!==r.settings.channel&&(0,q.jsx)(`p`,{className:`subtle`,children:H(`updates:subscribed_to_switches_to_after_a_successful_update`,{v0:bz[r.settings.channel],v1:bz[l]})}),h&&(0,q.jsxs)(`div`,{className:`update-available`,children:[(0,q.jsx)(`span`,{children:_?H(`updates:this_channel_is_already_at_the_current_version`):h.downgrade?H(`updates:target_version`):H(`updates:available_version`)}),(0,q.jsx)(`strong`,{children:h.version}),(0,q.jsx)(`span`,{children:bz[h.channel]}),h.commit&&(0,q.jsx)(`code`,{children:h.commit.slice(0,8)})]}),h&&(0,q.jsx)(yz,{version:h.version},`${l}:${h.version}`),h?.codex&&(0,q.jsx)(Cz,{title:H(`updates:target_version_compatibility`),value:h.codex,restart:!0,source:h.codexTarget,probeFailed:!!h.codexError}),w&&(0,q.jsxs)(`label`,{className:`update-downgrade update-codex-consent`,children:[(0,q.jsx)(`input`,{type:`checkbox`,"aria-label":H(`updates:allow_trying_an_unverified_codex_combination`),checked:S,disabled:i||p,onChange:e=>b(e.target.checked?x:void 0)}),H(`updates:i_agree_to_try_the_unverified_combination_of`,{v0:C?.version,v1:h?.version})]}),h&&!_&&l===r?.settings.channel&&r.settings.automatic&&C?.status!==`verified`&&(0,q.jsx)(`p`,{className:`update-notice`,role:`status`,children:C?.status===`unverified`?H(`updates:auto_update_is_paused_adjust_the_codex_version`):H(`updates:auto_update_is_paused_restore_the_codex_connection`)}),(0,q.jsxs)(`div`,{className:`update-buttons`,children:[(0,q.jsx)(J,{variant:`secondary`,disabled:i||p&&!m,onClick:()=>void e.check(l),children:H(i?`updates:processing`:`updates:check_for_updates`)}),(0,q.jsx)(J,{disabled:i||p||!h||!r?.supported||!!r?.runtime?.error||!!T||h.downgrade&&!u||_&&!g&&l===r.settings.channel,onClick:()=>void e.start(l,u,w&&S&&h?.codex.version?{version:h.codex.version,target:h.version}:void 0),children:_&&g?H(`updates:migrate_and_restart`):_?H(`updates:use_this_channel`):h?.downgrade?H(`updates:switch_and_restart`):H(`updates:update_and_restart`)})]}),h?.downgrade&&(0,q.jsxs)(`label`,{className:`update-downgrade`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:u,onChange:e=>d(e.target.checked)}),H(`updates:allow_downgrade_incompatible_databases_still_block_switching`)]}),m&&r?.run&&(0,q.jsx)(J,{variant:`secondary`,disabled:i,onClick:()=>void e.cancel(r.run.id),children:H(`updates:cancel_pending_update`)}),r?.run&&(0,q.jsxs)(`section`,{className:`update-progress`,"data-phase":r.run.phase,role:`status`,children:[(0,q.jsx)(`strong`,{children:xz[r.run.phase]}),(0,q.jsxs)(`span`,{children:[r.run.from,` → `,r.run.target,r.run.sourceChannel&&` · ${bz[r.run.sourceChannel]}`]}),(0,q.jsx)(`p`,{children:H(`updates:${r.run.phase}Description`)}),(0,q.jsxs)(`details`,{children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsx)(`pre`,{children:r.run.message}),r.run.runtime&&(0,q.jsx)(`pre`,{children:JSON.stringify(r.run.runtime,null,2)})]}),p&&(0,q.jsx)(`progress`,{"aria-label":H(`updates:update_progress`)})]}),(a||r?.checkError||o)&&(0,q.jsxs)(`div`,{className:`inline-error`,role:`alert`,children:[(0,q.jsx)(`p`,{children:U(o??a)??H(`updates:checkFailed`)}),r?.checkError&&(0,q.jsxs)(`details`,{children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsx)(`pre`,{children:r.checkError})]})]}),!r?.supported&&r?.unsupportedReason&&(0,q.jsxs)(`div`,{className:`update-notice`,children:[(0,q.jsx)(`p`,{children:H(`updates:manualUpdate`)}),(0,q.jsxs)(`details`,{children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsx)(`pre`,{children:r.unsupportedReason})]})]}),(0,q.jsxs)(`p`,{className:`update-source`,children:[H(`updates:version_source_official_npm_registry`,{v0:h?h.channel===`stable`?`latest`:h.channel:l===`stable`?`latest`:`latest / ${l}`}),(0,q.jsxs)(`a`,{href:_z,target:`_blank`,rel:`noreferrer`,children:[H(`updates:update_history`),(0,q.jsx)(vn,{size:12,"aria-hidden":`true`})]})]}),(0,q.jsx)(`p`,{className:`subtle`,children:H(`updates:updates_preserve_configuration_projects_and_session_history_processing`)})]})}function Tz(e,t){let n=new Map(t.map(e=>[e.id,e])),r=new Set(e.map(e=>e.id));return[...e.map(e=>n.get(e.id)??e),...t.filter(e=>!r.has(e.id))]}var Ez=class{latest;chunks=[];constructor(e){this.latest=e}update(e){this.latest=e,(!e.history||e.history.olderCursor===null)&&(this.chunks.length=0)}get cursor(){return(this.chunks.length?this.chunks.at(-1).page:this.latest).history?.olderCursor??null}append(e,t){if(t.id!==this.latest.id||t.projectId!==this.latest.projectId)throw Error(H(`errors:this_history_chunk_does_not_belong_to_the`));if(!(this.cursor!==e||this.chunks.some(t=>t.cursor===e))){if(t.history?.olderCursor&&(t.history.olderCursor===e||this.chunks.some(e=>e.cursor===t.history.olderCursor)))throw Error(H(`errors:history_pagination_did_not_advance_retry_syncing_the`));this.chunks.push({cursor:e,page:t})}}replace(e,t){let n=this.chunks.findIndex(t=>t.cursor===e);if(n<0)return this.append(e,t);if(t.id!==this.latest.id||t.projectId!==this.latest.projectId)throw Error(H(`errors:this_history_chunk_does_not_belong_to_the`));let r=this.chunks[n];this.chunks[n]={cursor:e,page:t},r.page.history?.olderCursor!==t.history?.olderCursor&&this.chunks.splice(n+1)}getHistoryCursor(e){let t=t=>t.turns.some(t=>t.id===e||t.items.some(t=>t.id===e));if(!t(this.latest))return this.chunks.find(e=>t(e.page))?.cursor}get view(){let e=[];for(let t of this.chunks.slice().reverse())e=Tz(e,t.page.turns);return{...this.latest,turns:Tz(e,this.latest.turns),history:{olderCursor:this.cursor}}}};function Dz(e){return{...e,managed:!1,status:`unknown`,actions:[],execution:void 0,resumeError:void 0,runtimeSettings:void 0,liveSettings:void 0,capacityRetry:void 0,pendingMessages:e.pendingMessages?.map(e=>({...e,status:e.status===`failed`?`failed`:`unknown`})),turns:e.turns.map(e=>({...e,status:[`running`,`waitingApproval`,`waitingInput`].includes(e.status)?`unknown`:e.status,reconnect:void 0,items:e.items.map(e=>({...e,status:[`running`,`inProgress`].includes(e.status??``)?`unknown`:e.status}))}))}}var Oz=new fg,kz=(e,t,n,r=`latest`)=>JSON.stringify([e,t,n,r]),Az=class{scope;constructor(e){this.scope=e}async read(e,t,n){let r=await Oz.read(kz(this.scope,e,t,n));if(r&&r.id===t&&S(r.projectId)===e&&Array.isArray(r.turns))try{return Dz(r)}catch{return}}write(e,t){return Oz.write(kz(this.scope,S(e.projectId),e.id,t),Dz(e))}remove(e,t){return Oz.remove(([n,r,i])=>n===this.scope&&r===e&&i===t)}};function jz(e,t,n){let{projectId:r,scope:i,forbidden:a}=n,o=(0,y.useMemo)(()=>i?new Az(i):void 0,[i]),s=(0,y.useRef)(void 0),c=(0,y.useRef)(void 0),l=(0,y.useRef)(!1),u=(0,y.useRef)(new Set),d=(0,y.useRef)(!1),f=(0,y.useRef)(void 0),p=(0,y.useRef)(void 0),[m,h]=(0,y.useState)({loading:!1,cached:!1}),g=(0,y.useCallback)((e=!1)=>{h({id:s.current?.latest.id,scope:i,thread:s.current?.view,loading:e,cached:l.current||u.current.size>0,cacheExhausted:d.current,error:p.current})},[i]);(0,y.useEffect)(()=>{c.current?.abort(),c.current=void 0,s.current=void 0,l.current=!1,u.current.clear(),d.current=!1,f.current=void 0,p.current=void 0,h({id:t,scope:i,loading:!1,cached:!1});let e=!0;return t&&!a&&o?.read(r,t).then(t=>{e&&t&&!s.current&&(s.current=new Ez(t),l.current=!0,g())}),t&&a&&o?.remove(r,t),()=>{e=!1,c.current?.abort()}},[t,r,o,i,a,g]),(0,y.useEffect)(()=>{e&&e.id===t&&!a&&(s.current?.latest.id===e.id?s.current.update(e):s.current=new Ez(e),l.current=!1,s.current.chunks.length||u.current.clear(),g(!!c.current))},[e,t,i,a,g]),(0,y.useEffect)(()=>{if(!e||a||e.id!==t)return;let n=setTimeout(()=>{o?.write(e)},e.status===`running`?750:0);return()=>clearTimeout(n)},[e,t,o,a]);let _=(0,y.useCallback)(async()=>{let e=s.current,t=f.current??e?.cursor;if(!e||!t||c.current||a)return;let n=new AbortController;c.current=n,p.current=void 0,g(!0);try{let i=await o?.read(r,e.latest.id,t);if(n.signal.aborted||s.current!==e)return;i&&e.cursor===t&&(e.append(t,i),u.current.add(t),g(!0));let a=AbortSignal.any([n.signal,AbortSignal.timeout(35e3)]);for(;t;){let r=await pr.threadHistory(e.latest.id,t,a);if(n.signal.aborted||s.current!==e)return;e.replace(t,r),u.current.delete(t);for(let t of u.current)e.chunks.some(e=>e.cursor===t)||u.current.delete(t);f.current=void 0,d.current=!1,o?.write(r,t),t=u.current.values().next().value,g(!!t)}}catch(i){!n.signal.aborted&&s.current===e&&(f.current=t,p.current=ha(i),i instanceof fr&&[401,403,404].includes(i.status)&&(o?.remove(r,e.latest.id),s.current=void 0),g())}finally{c.current===n&&(c.current=void 0)}},[g,o,r,a]),v=(0,y.useCallback)(async()=>{let e=s.current,t=e?.cursor;if(!e||!t||!o||c.current||a)return;let n=new AbortController;c.current=n,g(!0);try{let i=await o.read(r,e.latest.id,t);if(n.signal.aborted||s.current!==e)return;i?(e.append(t,i),u.current.add(t)):d.current=!0,g()}finally{c.current===n&&(c.current=void 0)}},[o,r,a,g]),b=(0,y.useCallback)(e=>s.current?.getHistoryCursor(e),[]),x=!a&&m.id===t&&m.scope===i;return{...m,cached:x&&m.cached,loading:x&&m.loading,error:x?m.error:void 0,thread:a?void 0:(x?m.thread:void 0)??(e?.id===t?e:void 0),loadOlder:_,loadCachedOlder:v,getHistoryCursor:b}}function Mz(){let[e,t]=(0,y.useState)(),[n,r]=(0,y.useState)(),[i,a]=(0,y.useState)(!1),[o,s]=(0,y.useState)(),c=(0,y.useRef)(!1),l=(0,y.useRef)(!0),u=(0,y.useRef)(0),d=(0,y.useCallback)(async e=>{if(l.current&&(t(e),r(void 0),e.version!==`unknown`&&e.version!==`0.12.1-dev.3`&&!c.current&&(!e.run||e.run.committed||[`rolledBack`,`failed`,`cancelled`].includes(e.run.phase)))){c.current=!0;try{await Hg()}catch(e){c.current=!1,s(e instanceof Error?e.message:H(`updates:draft_backup_failed_page_reload_postponed`))}}},[]);(0,y.useEffect)(()=>{l.current=!0;let e=!0,t=!1,n=async()=>{if(t)return;t=!0;let n=u.current;try{let t=await W(`/api/updates`);e&&n===u.current&&await d(t)}catch{e&&r(Ct(`updates:connection_interrupted_waiting_for_the_service_to_recover`))}finally{t=!1}};n();let i=setInterval(()=>void n(),5e3);return()=>{l.current=!1,e=!1,clearInterval(i)}},[d]);let f=(0,y.useCallback)(async(e,t)=>{u.current++,a(!0),r(void 0);try{await d(await W(e,t))}catch(e){r(e instanceof Error?e.message:Ct(`updates:operation_unconfirmed_check_update_status`))}finally{a(!1),u.current++}},[d]);return{status:e,error:n,busy:i,reloadError:o,check:e=>f(`/api/updates/check`,{channel:e}),configure:e=>f(`/api/updates/settings`,e),cancel:e=>f(`/api/updates/cancel`,{id:e}),start:(e,t,n)=>f(`/api/updates/run`,{clientOperationId:crypto.randomUUID(),channel:e,allowDowngrade:t,codexConfirmation:n})}}jm({clientOperationId:Q().uuid(),command:Q().min(1).max(8192).refine(e=>!!e.trim()&&!e.includes(`\0`))}).strict();var Nz=e=>e.status===`running`||e.status===`stopping`;function Pz(e){let[t,n]=(0,y.useState)([]),[r,i]=(0,y.useState)(!1),[a,o]=(0,y.useState)(),[s,c]=(0,y.useState)(),[l,u]=(0,y.useState)(!1),[d,f]=(0,y.useState)(),p=(0,y.useRef)({revision:0}),m=(0,y.useRef)(s);m.current=s;let h=(0,y.useRef)(5e3);h.current=e||t.some(Nz)||s?500:5e3;let g=(0,y.useCallback)((e,t=!1)=>{n(n=>{let r=new Map(n.map(e=>[e.id,t&&Nz(e)?{...e,status:`unknown`,error:H(`shell:the_service_restarted_execution_state_cannot_be_restored`)}:e]));for(let n of e){let e=r.get(n.id);(!e||t||e.revision<=n.revision)&&r.set(n.id,n)}return[...r.values()].sort((e,t)=>t.startedAt-e.startedAt).slice(0,20)})},[]),_=(0,y.useCallback)(async e=>{let t=p.current,n=await W(`/api/shell?${new URLSearchParams({after:String(t.revision),...t.epoch?{epoch:t.epoch}:{}})}`,void 0,e??AbortSignal.timeout(5e3));if(e?.aborted)return;let r=!!(t.epoch&&t.epoch!==n.epoch);(n.commands.length||r)&&g(n.commands,r),p.current={epoch:n.epoch,revision:n.revision},i(!0);let a=m.current;if(a){if(n.commands.find(e=>e.id===a.id)){c(void 0),o(void 0);return}let t;try{t=await W(`/api/operations/${a.id}`,void 0,e)}catch{return}if(t.status===`acknowledged`){let e=t.result?.shellCommand;e&&!n.commands.some(t=>t.id===e.id)&&g([{...e,status:`unknown`,error:H(`shell:execution_was_submitted_but_its_record_expired_or`)}]),c(void 0),o(void 0)}else t.status===`failed`&&(c(void 0),o((t.error?rr(t.error):void 0)??Ct(`shell:command_could_not_start`)))}},[g]);return(0,y.useEffect)(()=>{let e=new AbortController,t,n=async()=>{try{await _(AbortSignal.any([e.signal,AbortSignal.timeout(5e3)]))}catch{e.signal.aborted||i(!1)}e.signal.aborted||(t=setTimeout(()=>{n()},h.current))};return n(),()=>{e.abort(),clearTimeout(t)}},[_,e]),{commands:t,connected:r,error:a,pending:s,submitting:l,interrupting:d,execute:async(e,t)=>{if(s||l)return!1;let n=crypto.randomUUID();u(!0),o(void 0);try{let r=await W(`/api/projects/${encodeURIComponent(e)}/shell`,{clientOperationId:n,command:t});if(r.status===`acknowledged`)return g([r.result.shellCommand]),!0;if(r.status===`failed`)return o((r.error?rr(r.error):void 0)??Ct(`shell:command_could_not_start`)),!1;c({id:n,projectId:e,command:t})}catch(r){if(r instanceof fr&&r.status>=400&&r.status<500)return o(r.message),!1;c({id:n,projectId:e,command:t}),o(Ct(`shell:submission_is_unconfirmed_and_being_checked_do_not`))}finally{u(!1)}return!1},interrupt:async e=>{f(e),o(void 0);try{let t=await W(`/api/shell/${encodeURIComponent(e)}/interrupt`,{clientOperationId:crypto.randomUUID()});t.status!==`acknowledged`&&o((t.error?rr(t.error):void 0)??Ct(`shell:interrupt_result_is_unconfirmed_refresh_and_check`)),await _()}catch(e){o(e instanceof Error?e.message:Ct(`shell:interrupt_failed_please_retry`))}finally{f(void 0)}},retry:async()=>{if(s&&!l){u(!0);try{let e=await W(`/api/projects/${encodeURIComponent(s.projectId)}/shell`,{clientOperationId:s.id,command:s.command});e.status===`acknowledged`?(c(void 0),o(void 0),p.current={revision:0}):e.status===`failed`&&(c(void 0),o((e.error?rr(e.error):void 0)??Ct(`shell:command_could_not_start`)))}catch(e){o(e instanceof Error?e.message:Ct(`shell:submission_is_still_unconfirmed`))}finally{u(!1)}}}}}var Fz=`(max-width: 760px), (max-width: 950px) and (max-height: 500px) and (pointer: coarse)`;function Iz(e,t){e.dataset.measuring=``;try{let n=getComputedStyle(e),r=Array.from(t.children).filter(e=>!e.hasAttribute(`data-compact-action`)&&e.getClientRects().length>0),i=r.reduce((e,t)=>e+t.getBoundingClientRect().width,0)+(r.length-1)*parseFloat(getComputedStyle(t).columnGap)+parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.columnGap)+parseFloat(n.getPropertyValue(`--topbar-title-basis`));return e.getBoundingClientRect().width>=i}finally{delete e.dataset.measuring}}function Lz(e){let[t,n]=(0,y.useState)(()=>matchMedia(Fz).matches),r=(0,y.useRef)(null);return(0,y.useLayoutEffect)(()=>{let t=e.current,i=t?.querySelector(`.topbar-status`);if(!t||!i)return;let a=matchMedia(Fz),o=()=>{let e=a.matches||!Iz(t,i);if(e===t.hasAttribute(`data-compact`))return;let o=document.activeElement;r.current=o instanceof HTMLElement&&i.contains(o)&&!o.closest(`.diagnostics-panel`)?o:null,n(e)},s=new ResizeObserver(o),c=new MutationObserver(e=>{e.some(({target:e})=>{let t=e instanceof Element?e:e.parentElement;return t&&!t.closest(`.diagnostics-panel`)})&&o()});return s.observe(t,{box:`border-box`}),c.observe(i,{childList:!0,characterData:!0,subtree:!0}),a.addEventListener(`change`,o),window.addEventListener(`resize`,o),document.fonts.addEventListener(`loadingdone`,o),o(),()=>{s.disconnect(),c.disconnect(),a.removeEventListener(`change`,o),window.removeEventListener(`resize`,o),document.fonts.removeEventListener(`loadingdone`,o)}},[e]),(0,y.useLayoutEffect)(()=>{let n=r.current;if(r.current=null,!n)return;if(n.isConnected&&n.getClientRects().length>0){n.focus({preventScroll:!0});return}let i=n.matches(`summary, [aria-controls="diagnostics-panel"]`),a=e.current;(t?i&&a?.querySelector(`.topbar-diagnostics`)||a?.querySelector(`.topbar-more`):a?.querySelector(i?`.diagnostics > summary`:`.topbar-tools button:not(:disabled)`))?.focus({preventScroll:!0})},[t,e]),t}function Rz(e,t){(0,y.useEffect)(()=>{let n=e.current,r=window.visualViewport;if(!t||!n||!r)return;let i=0,a=!1,o=()=>{a&&(a=!1,n.removeAttribute(`data-mobile-input-viewport`),n.style.removeProperty(`--input-viewport-height`),n.style.removeProperty(`--input-viewport-top`),n.style.removeProperty(`--input-viewport-bottom-inset`))},s=()=>{let e=document.activeElement,t=e instanceof HTMLTextAreaElement&&e.closest(`.composer-box`)&&n.contains(e),i=e instanceof HTMLElement&&(e.matches(`input, textarea`)||e.isContentEditable),{height:s,offsetTop:c,scale:l}=r,u=document.documentElement.clientHeight;if(l!==1||s<=0||s>=u-1&&Math.abs(c)<=1||!t&&(!a||i)){o();return}let d=n.style.getPropertyValue(`--input-viewport-height`)!==`${s}px`;n.style.setProperty(`--input-viewport-height`,`${s}px`),n.style.setProperty(`--input-viewport-top`,`${c}px`);let f=Math.max(0,u-c-s);if(n.style.setProperty(`--input-viewport-bottom-inset`,`${f}px`),n.setAttribute(`data-mobile-input-viewport`,``),a=!0,d&&t){let t=e.closest(`.bottom-region`);t&&(t.scrollTop=t.scrollHeight)}};function c(){cancelAnimationFrame(i),i=requestAnimationFrame(s)}return r.addEventListener(`resize`,c),r.addEventListener(`scroll`,c),window.addEventListener(`resize`,c),document.addEventListener(`focusin`,c),document.addEventListener(`focusout`,c),s(),()=>{cancelAnimationFrame(i),r.removeEventListener(`resize`,c),r.removeEventListener(`scroll`,c),window.removeEventListener(`resize`,c),document.removeEventListener(`focusin`,c),document.removeEventListener(`focusout`,c),o()}},[e,t])}var zz={get running(){return H(`common:running`)},get stopping(){return H(`shell:interrupting`)},get completed(){return H(`common:completed`)},get failed(){return H(`common:execution_failed`)},get interrupted(){return H(`common:interrupted`)},get unknown(){return H(`shell:result_unknown`)}};function Bz({open:e,project:t,shell:n,canExecute:r,collapsed:i,onCollapse:a,onClose:o}){let[s,c]=(0,y.useState)({}),[l,u]=(0,y.useState)({}),d=(0,y.useRef)(null),f=t?.id??``,p=n.commands.filter(e=>e.projectId===f),m=p.find(e=>e.id===l[f])??p[0],h=p.find(Nz),g=n.commands.filter(e=>e.projectId!==f&&Nz(e)),_=s[f]??``,v=e=>c(t=>({...t,[f]:e}));return(0,y.useEffect)(()=>{d.current&&(d.current.scrollTop=d.current.scrollHeight)},[m?.revision,m?.id,i,e]),e?(0,q.jsxs)(`section`,{className:`shell-panel${i?` shell-collapsed`:``}`,"aria-label":H(`shell:shell_panel`),children:[(0,q.jsxs)(`header`,{className:`shell-header`,children:[(0,q.jsxs)(`div`,{className:`shell-heading`,children:[(0,q.jsx)(Y,{name:`terminal`,size:17}),(0,q.jsx)(`strong`,{children:`Shell`}),(0,q.jsx)(`span`,{children:t?.name??H(`shell:select_a_project`)}),h&&(0,q.jsx)(`span`,{className:`shell-running`,children:zz[h.status]})]}),(0,q.jsxs)(`div`,{className:`shell-actions`,children:[(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(i?`shell:expand_shell`:`shell:collapse_shell`),"aria-expanded":!i,"aria-controls":`shell-body`,onClick:a,children:(0,q.jsx)(Y,{name:i?`terminal`:`down`,size:15})}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`shell:close_shell_panel`),onClick:o,children:(0,q.jsx)(Y,{name:`close`,size:15})})]})]}),i?(0,q.jsx)(`p`,{className:`shell-collapsed-note`,children:H(`shell:collapsing_does_not_stop_commands`,{v0:g.length?H(`shell:running_in_other_projects`,{count:g.length,v0:g.length}):``})}):(0,q.jsxs)(`div`,{id:`shell-body`,className:`shell-body`,children:[(0,q.jsxs)(`div`,{className:`shell-location`,children:[(0,q.jsx)(`span`,{children:H(`common:working_directory`)}),(0,q.jsx)(`code`,{children:t?.canonicalRoot??`—`})]}),(0,q.jsx)(`p`,{className:`shell-help`,children:H(`shell:commands_use_the_codex_server_sandbox_independently_of`)}),g.length>0&&(0,q.jsx)(`p`,{className:`shell-background`,role:`status`,children:H(`shell:still_running_in_other_projects_switch_to_view`,{v0:Tt(g.map(e=>e.projectName))})}),!n.connected&&(0,q.jsx)(`p`,{className:`shell-warning`,role:`status`,children:H(`shell:shell_disconnected_reconnecting_received_output_is_preserved_and`)}),n.error&&(0,q.jsx)(`p`,{className:`shell-warning`,role:`alert`,children:U(n.error)}),n.pending&&(0,q.jsxs)(`div`,{className:`shell-warning`,role:`status`,children:[H(`shell:checking_command_submission`),(0,q.jsx)(`code`,{children:n.pending.command}),` `,(0,q.jsx)(J,{variant:`secondary`,size:`sm`,disabled:!n.connected||n.submitting,onClick:()=>void n.retry(),children:H(`shell:check_and_retry_original_submission`)})]}),(0,q.jsxs)(`div`,{className:`shell-result`,children:[(0,q.jsxs)(`div`,{className:`shell-result-toolbar`,children:[(0,q.jsxs)(`label`,{children:[H(`shell:recent_commands`),(0,q.jsxs)(PT,{value:m?.id??``,disabled:!p.length,onValueChange:e=>u(t=>({...t,[f]:e})),children:[(0,q.jsx)(IT,{"aria-label":H(`shell:recent_shell_commands`),children:(0,q.jsx)(FT,{placeholder:H(`shell:not_run_yet`)})}),(0,q.jsx)(LT,{align:`start`,children:p.map(e=>(0,q.jsxs)(RT,{value:e.id,children:[zz[e.status],` · `,e.command.slice(0,70)]},e.id))})]})]}),m&&(0,q.jsx)(J,{variant:`ghost`,size:`sm`,onClick:()=>v(m.command),children:H(`shell:reuse_command`)})]}),m?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`shell-command-line`,children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,children:`$`}),(0,q.jsx)(`code`,{children:m.command})]}),(0,q.jsx)(`pre`,{ref:d,className:`shell-output`,"aria-label":H(`shell:shell_output`),tabIndex:0,children:m.output.length?m.output.map((e,t)=>(0,q.jsx)(`span`,{className:e.stream===`stderr`?`shell-stderr`:void 0,children:e.text},t)):(0,q.jsx)(`span`,{className:`shell-output-empty`,children:Nz(m)?H(`shell:waiting_for_output`):H(`shell:no_output`)})}),(0,q.jsxs)(`div`,{className:`shell-result-status shell-status-${m.status}`,role:`status`,children:[(0,q.jsx)(`span`,{children:zz[m.status]}),m.exitCode!==void 0&&(0,q.jsx)(`span`,{children:H(`shell:exit_code`,{v0:m.exitCode})}),m.truncated&&(0,q.jsx)(`span`,{children:H(`shell:output_truncated_64_kib_maximum`)})]}),m.error&&(0,q.jsx)(`p`,{className:`shell-warning`,role:`alert`,children:U(m.error)})]}):(0,q.jsxs)(`div`,{className:`shell-empty`,children:[(0,q.jsx)(Y,{name:`terminal`,size:25}),(0,q.jsx)(`p`,{children:H(`shell:run_commands_in_the_project_directory_and_view`)}),(0,q.jsx)(`span`,{children:H(`shell:for_example_git_status_pwd_or_project_tests`)})]})]}),(0,q.jsxs)(`form`,{className:`shell-form`,onSubmit:e=>{if(e.preventDefault(),!t||!r||!n.connected||h||n.pending||!_.trim())return;let i=t.id;n.execute(i,_).then(e=>{e&&(c(e=>e[i]===_?{...e,[i]:``}:e),u(e=>({...e,[i]:``})))})},children:[(0,q.jsx)(`label`,{className:`sr-only`,htmlFor:`shell-command-input`,children:H(`shell:shell_command`)}),(0,q.jsx)(`textarea`,{id:`shell-command-input`,rows:2,maxLength:8192,value:_,onChange:e=>v(e.target.value),placeholder:H(`shell:enter_a_command`),disabled:!t?.available,onKeyDown:e=>{e.key===`Enter`&&(e.ctrlKey||e.metaKey)&&e.currentTarget.form?.requestSubmit()}}),(0,q.jsxs)(`div`,{className:`shell-submit-row`,children:[(0,q.jsx)(`span`,{children:H(h?`shell:commands_run_on_the_server_and_can_be`:`shell:ctrl_enter_to_run_10_minute_limit`)}),h?(0,q.jsxs)(J,{variant:`destructive`,size:`sm`,disabled:!n.connected||!!n.interrupting||h.status===`stopping`,onClick:()=>void n.interrupt(h.id),children:[(0,q.jsx)(Y,{name:`stop`,size:13}),h.status===`stopping`||n.interrupting===h.id?H(`shell:interrupting_2`):H(`shell:interrupt_command`)]}):(0,q.jsxs)(J,{type:`submit`,size:`sm`,disabled:!r||!n.connected||!_.trim()||!!n.pending||n.submitting,children:[(0,q.jsx)(Y,{name:`terminal`,size:14}),n.submitting?H(`common:submitting`):H(`common:run_command`)]})]})]})]})]}):null}function Vz({checked:e,onCheckedChange:t,onClick:n,className:r,...i}){return(0,q.jsx)(`button`,{...i,type:`button`,role:`switch`,"aria-checked":e,"data-state":e?`checked`:`unchecked`,className:pa(`switch-control`,r),onClick:r=>{i[`aria-disabled`]===!0||i[`aria-disabled`]===`true`?r.preventDefault():(n?.(r),r.defaultPrevented||t(!e))},children:(0,q.jsx)(`span`,{className:`switch-thumb`,"aria-hidden":`true`})})}function Hz({threadId:e}){let t=(0,y.useId)(),n=(0,y.useId)(),r=(0,y.useId)(),[i,a]=(0,y.useState)(!1),[o,s]=(0,y.useState)(),[c,l]=(0,y.useState)(!1),[u,d]=(0,y.useState)(!1),[f,p]=(0,y.useState)(!1),m=(0,y.useRef)(!1),h=(0,y.useRef)(0);(0,y.useEffect)(()=>{let t=new AbortController,n;s(void 0);let r=async()=>{let a=h.current;try{let n=e?await W(`/api/threads/${encodeURIComponent(e)}/preview`,void 0,t.signal):{services:[],available:!0,settings:await W(`/api/preview/settings`,void 0,t.signal)};!t.signal.aborted&&!m.current&&a===h.current&&(s(n),d(!1))}catch{t.signal.aborted||d(!0)}t.signal.aborted||(n=setTimeout(()=>void r(),i?1e3:3e3))};return r(),()=>{t.abort(),clearTimeout(n)}},[e,i]);let g=o?.services.filter(e=>e.status===`running`).length??0,_=async e=>{if(!m.current){h.current++,m.current=!0,l(!0),d(!1);try{let t=await W(`/api/preview/settings`,e);s(e=>({services:[],available:!0,...e,settings:t})),p(!0)}catch{d(!0)}finally{m.current=!1,l(!1)}}},v=async e=>{let t=window.open(`about:blank`,`_blank`);if(!t)d(!0);else{t.opener=null,l(!0),d(!1);try{let n=await W(`/api/preview/services/${encodeURIComponent(e)}/open`,{}),r=new URL(n.url,location.origin);if(r.origin!==location.origin||!/^\/preview\/[A-Za-z0-9_-]{43}\/$/.test(r.pathname))throw Error(`Invalid preview destination`);t.location.replace(r.href)}catch{t.close(),d(!0)}finally{l(!1)}}};return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(J,{variant:`ghost`,size:`sm`,className:`dev-preview-entry`,"aria-label":H(`preview:dev_title`),"aria-haspopup":`dialog`,onClick:()=>a(!0),children:[(0,q.jsx)(Mn,{size:16,"aria-hidden":`true`}),(0,q.jsx)(`span`,{children:H(`preview:dev_preview`)}),g>0&&(0,q.jsx)(`span`,{className:`dev-preview-count`,children:g})]}),i&&(0,q.jsxs)(Ta,{portal:!0,open:!0,title:H(`preview:dev_title`),onClose:()=>a(!1),className:`dev-preview-dialog`,children:[(0,q.jsxs)(`div`,{className:`dev-preview-settings`,children:[(0,q.jsxs)(`label`,{htmlFor:t,children:[(0,q.jsx)(`span`,{children:H(`preview:dev_enable`)}),(0,q.jsx)(Vz,{id:t,checked:o?.settings.enabled??!1,disabled:!o,"aria-disabled":c||void 0,onCheckedChange:e=>void _({enabled:e,fullRequests:e&&(o?.settings.fullRequests??!1)})})]}),(0,q.jsxs)(`label`,{htmlFor:n,children:[(0,q.jsx)(`span`,{children:H(`preview:dev_full`)}),(0,q.jsx)(Vz,{id:n,"aria-describedby":r,checked:o?.settings.fullRequests??!1,disabled:!o?.settings.enabled,"aria-disabled":c||void 0,onCheckedChange:e=>void _({enabled:!0,fullRequests:e})})]}),(0,q.jsx)(`p`,{className:`dev-preview-risk`,id:r,children:H(`preview:dev_risk`)})]}),u&&(0,q.jsx)(`p`,{role:`alert`,children:H(`preview:dev_failed`)}),f&&(0,q.jsx)(`p`,{className:`dev-preview-notice`,role:`status`,children:H(`preview:dev_reopen`)}),o?.error&&(0,q.jsx)(`p`,{role:`status`,children:H(`preview:dev_inspection_failed`)}),o?.available===!1?(0,q.jsx)(`p`,{role:`status`,children:H(`preview:dev_unavailable`)}):o?.services.length?(0,q.jsx)(`ul`,{className:`dev-preview-services`,children:o.services.map(e=>(0,q.jsxs)(`li`,{children:[(0,q.jsxs)(`div`,{className:`dev-preview-service`,children:[(0,q.jsx)(`strong`,{title:e.projectName,children:e.projectId===null?H(`preview:dev_workspace`):e.projectName}),(0,q.jsxs)(`code`,{children:[`:`,e.port]}),(0,q.jsx)(`span`,{className:e.status===`running`?`dev-preview-running`:``,children:H(e.status===`running`?`preview:dev_running`:`preview:dev_withdrawn`)})]}),(0,q.jsx)(`code`,{className:`dev-preview-command`,children:e.command}),(0,q.jsxs)(J,{size:`sm`,variant:`secondary`,disabled:!o.settings.enabled||c||e.status!==`running`,onClick:()=>void v(e.id),children:[(0,q.jsx)(vn,{size:14,"aria-hidden":`true`}),H(`preview:dev_open`)]})]},e.id))}):(0,q.jsx)(`p`,{className:`dev-preview-empty`,role:`status`,children:H(`preview:dev_empty`)})]})]})}var Uz=encodeURIComponent;function Wz({threadId:e,getHistoryCursor:t,children:n}){let r=(0,y.useRef)(null);return Rz(r,ZI(navigator)),(0,q.jsx)(`div`,{className:`app-shell`,ref:r,children:(0,q.jsx)(MI,{threadId:e,getHistoryCursor:t,children:n})})}function Gz(){yt();let e=Wg(),t=(0,y.useMemo)(()=>Object.values(e.projectThreads).flatMap(e=>e.data),[e.projectThreads]),[n,r]=(0,y.useState)(),[i,a]=(0,y.useState)(!1),[o,s]=(0,y.useState)(!1),c=Pz(o),[l,u]=(0,y.useState)(!1),d=Mz(),f=zR(!e.authRequired),[p,m]=(0,y.useState)(!1),{isUnreadCompletion:h,markCompletedRead:g}=Yg(),[_,v]=(0,y.useState)(!1),b=(0,y.useRef)(null),S=Lz(b),C=(0,y.useRef)(null),w=(0,y.useRef)(null),T=(0,y.useRef)(null),[E,D]=(0,y.useState)(0),[O,k]=(0,y.useState)(0),[A,j]=(0,y.useState)(!1),[M,N]=(0,y.useState)(!1);(0,y.useEffect)(()=>{let e=window.matchMedia(Fz),t=()=>{e.matches||v(!1)};return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let[P,F]=(0,y.useState)(!1),[I,ee]=(0,y.useState)(!1),te=(0,y.useRef)(!1),[ne,L]=(0,y.useState)(),[re,ie]=(0,y.useState)(!1),[ae,oe]=(0,y.useState)(!1),se=(0,y.useRef)(!1),ce=e.projects.find(t=>t.id===e.projectId),le=ne?.kind===`manage`?e.projects.find(e=>e.id===ne.id):void 0;(0,y.useEffect)(()=>{ne?.kind===`manage`&&!le&&L(void 0)},[ne,le]);let ue=()=>{v(!1),L({kind:`add`})},{thread:R,system:z}=e,B=R?to(R):[],de=B.some(e=>e.target.kind===`question`),fe=e.operations.length,pe=fe>0||e.connection===`disconnected`||e.connection===`authenticationRequired`||z&&!z.ready||R?.status===`unknown`,me=e=>{T.current=e,r(void 0),F(!0)},he=()=>{F(!1);let e=T.current,t=w.current??C.current;(e?.isConnected?e:t)?.focus({preventScroll:!0}),T.current=null},ge=e.authRequired||!!(e.threadReadFailure&&e.threadReadFailure.id===e.selectedId&&[401,403,404].includes(e.threadReadFailure.status)),V=jz(R,e.selectedId,{projectId:e.projectId,scope:e.cacheScope,forbidden:ge}),{notificationTarget:_e,clearNotificationTarget:ve}=e;(0,y.useEffect)(()=>{if(!_e||V.thread?.id!==_e.threadId||!R)return;if(_||A){v(!1),j(!1);return}let{target:e}=_e,t=[...document.querySelectorAll(`[data-attention-id]`)].find(t=>t.dataset.attentionKind===e.kind&&t.dataset.attentionId===e.id);if(t)t.focus({preventScroll:!0}),t.scrollIntoView({block:`start`});else if(e.kind===`question`&&V.thread.history?.olderCursor&&!ge){!V.loading&&!V.error&&V.loadOlder();return}ve()},[_e,V.thread,V.loading,V.error,V.loadOlder,R,ge,ve,_,A]);let ye=(0,y.useRef)(void 0),be=!(!z?.ready||z.authenticated===!1||e.connection!==`connected`||e.authRequired),xe=be&&(e.projectId===`@unassigned`||!!ce?.available)&&!Jh(z),Se=Xh(z,e.connection,e.authRequired),Ce=qh(z)??``,we=(t,n=R?.id??``)=>e.busy.includes(`${t}:${n}`),Te=t=>e.operations.some(e=>zh(e,t)),Ee=t=>e.firstMessages.includes(t)||we(`create`,t)||Te(t),De=t=>be&&!e.savingModelDefaults&&!Jh(z)&&(t===`@unassigned`||!!e.projects.find(e=>e.id===t)?.available),Oe=t=>{De(t)&&!Ee(t)&&(e.setProjectId(t),v(!1),D(e=>e+1))};Zg(De(e.projectId)&&!Ee(e.projectId),()=>Oe(e.projectId));let ke=R?.turns.findLast(e=>SS(e.status)),Ae=R?.actions.filter(e=>e.status===`pending`||e.status===`responding`||e.kind===`unsupported`&&e.status===`expired`)??[],je=R?Te(R.id)&&!we(`resume`)||R.managed&&R.status===`unknown`||R.execution&&!R.execution.ended&&R.status===`unknown`:!we(`create`,e.projectId)&&Te(e.projectId),Me=e.operations.find(t=>zh(t,R?.id??e.projectId)),Ne=!!(R&&(!xe||R.archived||Te(R.id)||we(`resume`)||R.execution&&!R.execution.ended)),{run:Pe,refreshThread:Fe}=e,Ie=(0,y.useCallback)(()=>{R&&!Ne&&(ye.current=`${z?.codexEpoch}:${R.id}`,Pe(`resume`,R.id,`/api/threads/${Uz(R.id)}/resume`).then(()=>Fe()))},[R,Ne,z?.codexEpoch,Pe,Fe]);(0,y.useEffect)(()=>{if((!z?.ready||R?.archived)&&(ye.current=void 0),!R||R.managed||Ne)return;let e=`${z?.codexEpoch}:${R.id}`;ye.current!==e&&Ie()},[R,z?.ready,z?.codexEpoch,Ne,Ie]);let Le=!!(R&&e.operations.some(e=>e.kind===`fork`&&zh(e,R.id))),Re=z?.capabilities.includes(`thread/fork`)??!1,ze=t=>we(`fork`,t)||e.operations.some(e=>e.kind===`fork`&&zh(e,t)),Be=t=>{if(ze(t.id))return H(`workspace:confirming_the_fork_wait_for_the_receipt_before`);if(!Re)return H(`workspace:this_codex_version_does_not_support_session_forks`);if(!be)return H(`workspace:you_can_fork_once_the_connection_recovers_and`);if(t.projectId!==null&&!e.projects.find(e=>e.id===t.projectId)?.available)return H(`workspace:the_project_directory_is_unavailable_restore_access_before`);if(Jh(z))return H(`workspace:confirm_compatibility_with_the_current_codex_version_first`);if(t.historyVisible===!1||t.id===R?.id&&!R.turns.length)return H(`workspace:send_the_first_message_to_enable_forking_saved`)},Ve=!!(R&&ze(R.id)),He=!(!R?.turns.length||Be(R)),Ue=async t=>{if(!Be(t))return e.run(`fork`,t.id,`/api/threads/${Uz(t.id)}/fork`,t.id===R?.id?{settings:e.settings}:{})},We=()=>{R&&He&&Ue(R)},Ge=e.connection!==`connected`,Ke=e.operations.filter(e=>e.kind===`confirmCompatibility`&&e.target===Ce),qe=re||we(`confirmCompatibility`,Ce)||Ke.some(e=>e.status===`accepted`||e.status===`dispatching`),Je=Ke.some(e=>e.status===`unknown`&&!e.operation?.reconciliation);async function Ye(){if(!te.current){te.current=!0,ee(!0);try{await Promise.all([e.refreshSystem(),e.refreshThread()]),await e.refreshOperations(!0)}finally{te.current=!1,ee(!1)}}}function Xe(e){r(e?.clientOperationId),F(!0),Ye()}function Ze(e){return(0,q.jsxs)(`div`,{className:`pending-notice recovery-notice`,role:`status`,children:[(0,q.jsx)(Y,{name:`alert`,size:15}),(0,q.jsxs)(`span`,{children:[(0,q.jsx)(`strong`,{children:DR(e.kind)}),` · `,OR(e)]}),(0,q.jsx)(J,{variant:`ghost`,size:`sm`,onClick:()=>Xe(e),children:H(`errors:recovery_handle_submission`)})]})}async function Qe(){if(Se&&!se.current){se.current=!0,ie(!0);try{let t=await e.refreshSystem(),n=Qh(Ce,t,e.connection,e.authRequired);if(!n)return;await e.run(`confirmCompatibility`,Ce,`/api/system/compatibility/confirm`,n)}finally{se.current=!1,ie(!1)}}}let $e=JSON.stringify([e.projectId,e.selectedId,z?.codexEpoch]),[et,tt]=(0,y.useState)();(0,y.useEffect)(()=>tt(void 0),[$e]);let[nt,rt]=(0,y.useState)();(0,y.useEffect)(()=>rt(void 0),[$e]);let it=Ca($e),at=Ca($e),[ot,st]=(0,y.useState)();(0,y.useEffect)(()=>st(void 0),[$e]);let ct={openDiff:()=>st({scope:$e,path:R?`/api/threads/${Uz(R.id)}/diff`:`/api/projects/${Uz(ce.id)}/diff`}),chooseReviewTarget:at.request,chooseDenial:it.request,openGoal:e=>tt({scope:$e,initial:e}),openRecap:e=>rt({...e,scope:$e}),project:ce,scopeId:e.projectId,selectedId:e.selectedId,thread:R,system:z,connection:e.connection,authRequired:e.authRequired,settings:e.settings,openDraft:e.openDraft,busy:e.busy,operations:e.operations,run:e.run,onResumeAttempt:()=>{ye.current=`${z?.codexEpoch}:${R?.id}`},refreshThread:e.refreshThread,openStatus:()=>F(!0),exportThread:NR,selectPlan:async t=>{let n={...e.settings,collaborationMode:`plan`};return e.setSettings(n),!t||ft(t,!1,void 0,n)},initialize:()=>ft(`/init`,!1,void 0,e.settings,`init`)},lt=(0,y.useRef)(ct);lt.current=ct;let ut=wR(()=>lt.current),dt=ut.find(e=>e.name===`rename`);async function ft(t,n,r,i=e.settings,a,o,s){return!xe||e.restoringSelection||e.savingModelDefaults?!1:R?n&&!ke?!1:(await e.run(n?`steer`:`send`,R.id,`/api/threads/${Uz(R.id)}/${n?`steer`:`turns`}`,n?{text:t,images:r,skills:o,files:s,expectedTurnId:ke.id}:{text:t,images:r,skills:o,files:s,settings:i,...a?{taskKind:a}:{}},{kind:`send`,key:e.draftKey,text:t,images:r,skills:o,files:s}))?.status===`acknowledged`:!e.selectedId&&e.sendFirstMessage(t,r,a,o,s)}return(0,q.jsxs)(Wz,{threadId:R?.id,getHistoryCursor:V.getHistoryCursor,children:[(0,q.jsx)(YT,{system:z,onBackups:()=>{v(!1),a(!0)},onGatewaySettings:()=>{v(!1),N(!0)},onUpdates:()=>{v(!1),m(!0)},appVersion:d.status?.version,updateAvailable:!!(d.status?.available&&d.status.available.version!==d.status.version),updating:pz(d.status?.run),onNotificationSettings:()=>{v(!1),j(!0)},notificationStatus:e.notifications.error?H(`workspace:check_settings`):e.notifications.enabled&&e.notifications.access===`granted`?H(`common:on`):H(`common:off`),archiveView:e.archiveView,onArchiveView:e.setArchiveView,onArchive:(t,n)=>{e.archiveThread(t,n)},onFork:e=>{Ue(e).then(e=>{e?.status===`acknowledged`&&v(!1)})},forkDisabledReason:Be,forking:ze,archiveDisabledReason:t=>{if(we(`archive`,t.id))return H(`common:saving`);if(Te(t.id))return H(`workspace:check_the_session_operation_results_first`);if(!be)return H(`workspace:available_when_the_connection_recovers`);if(Jh(z))return H(`workspace:confirm_codex_version_compatibility_first`);if(!z?.capabilities.includes(t.archived?`thread/unarchive`:`thread/archive`))return H(`workspace:this_codex_version_does_not_support_this_operation`);if(t.projectId!==null&&!e.projects.find(e=>e.id===t.projectId)?.available)return H(`common:project_directory_unavailable`);if(!t.archived&&(SS(t.status)||t.pendingActionCount>0))return H(`workspace:finish_the_task_and_resolve_pending_requests_before`);if(!t.archived&&t.managed&&t.status===`unknown`)return H(`workspace:session_state_needs_checking_archiving_is_temporarily_unavailable`)},projects:e.projects,projectsLoaded:e.projectsLoaded,projectId:e.projectId,onProject:t=>{e.setProjectId(t),v(!1)},projectThreads:e.projectThreads,selectedId:e.selectedId,isUnreadCompletion:h,onThread:(t,n)=>{e.selectThread(t,n)},onMore:(t,n)=>{e.loadProjectThreads(t,n)},onRetry:t=>{e.loadProjectThreads(t,e.projectThreads[t]?.retryCursor)},onRefresh:()=>{e.refreshProjects().then(e.refreshProjectsThreads)},onAddProject:ue,onManageProject:e=>{v(!1),L({kind:`manage`,id:e.id})},canManageProjects:!e.authRequired,onReorderProjects:e.reorderProjects,onCreate:Oe,creating:Ee,canCreate:De,offline:Ge,open:_,onClose:()=>v(!1)}),(0,q.jsxs)(`main`,{className:`main-panel${o&&!l?` shell-visible`:``}`,children:[(0,q.jsxs)(`header`,{ref:b,className:`topbar`,"data-compact":S||void 0,children:[(0,q.jsxs)(`div`,{className:`topbar-title`,children:[(0,q.jsx)(J,{className:`mobile-only`,variant:`ghost`,size:`icon`,"aria-label":H(`workspace:open_projects_and_sessions`),onClick:()=>v(!0),children:(0,q.jsx)(Y,{name:`menu`})}),(0,q.jsxs)(`div`,{children:[(0,q.jsxs)(`div`,{className:`breadcrumb`,children:[(0,q.jsx)(`span`,{className:`breadcrumb-project`,children:ce?.name??H(`common:unassigned`)}),(0,q.jsx)(Y,{name:`chevron`,size:12}),(0,q.jsx)(`span`,{className:`breadcrumb-scope`,children:e.selectedId?H(`common:sessions`):H(`workspace:new_session`)})]}),R?(0,q.jsx)(ML,{title:R.title||H(`workspace:new_session`),rename:dt,pending:!!(R&&e.operations.some(e=>e.kind===`rename`&&zh(e,R.id)))},`${R.projectId}:${R.id}`):(0,q.jsx)(`h1`,{children:e.selectedId?V.thread?.title??e.threads.find(t=>t.id===e.selectedId)?.title??H(`common:loading_session`):H(`workspace:start_your_next_task`)}),R&&R.projectId===null&&(0,q.jsxs)(`details`,{className:`workspace-directory`,children:[(0,q.jsx)(`summary`,{children:H(`common:working_directory`)}),(0,q.jsx)(`code`,{children:R.cwd})]})]}),(0,q.jsx)(PL,{projectId:ce?.available?ce.id:void 0,threadId:e.selectedId})]}),(0,q.jsxs)(`div`,{className:`topbar-status`,children:[S&&pe&&(0,q.jsxs)(J,{ref:w,variant:`ghost`,size:`icon`,className:`topbar-diagnostics`,"data-compact-action":``,"aria-label":fe?H(`workspace:diagnostics_with_count`,{v0:fe}):H(`common:diagnostics`),"aria-controls":`diagnostics-panel`,"aria-expanded":P,onClick:()=>{P?he():me(w.current)},children:[(0,q.jsx)(on,{size:18,"aria-hidden":`true`}),fe>0&&(0,q.jsx)(`span`,{className:`count-badge`,"aria-hidden":`true`,children:fe>99?`99+`:fe})]}),(0,q.jsxs)(NL,{compact:S,trigger:C,onOpen:()=>{F(!1),T.current=null},children:[(0,q.jsx)(RR,{tasks:f,onDetails:e=>{v(!1),L({kind:`add`,cloneId:e})}}),(0,q.jsx)(Hz,{threadId:e.selectedId}),(0,q.jsxs)(J,{type:`button`,variant:`ghost`,size:`sm`,disabled:e.restoringSelection||!(!e.selectedId||R)||!(e.projectId===`@unassigned`||ce?.available),onClick:()=>k(e=>e+1),children:[S&&(0,q.jsx)(`span`,{"data-compact-action":``,"aria-hidden":`true`,children:(0,q.jsx)(Y,{name:`skill`,size:16})}),H(`composer:skills_title`)]}),(0,q.jsxs)(J,{variant:`ghost`,size:`sm`,className:`shell-entry`,"aria-label":H(`workspace:open_shell_panel`),"aria-expanded":o&&!l,onClick:()=>{s(!0),u(!1)},children:[(0,q.jsx)(Y,{name:`terminal`,size:16}),(0,q.jsx)(`span`,{children:`Shell`}),c.commands.some(Nz)&&(0,q.jsx)(`span`,{className:`shell-entry-count`,"aria-label":H(`workspace:running_shell_commands`),children:c.commands.filter(Nz).length})]}),S&&R?.forkedFromId&&(0,q.jsxs)(J,{"data-compact-action":``,variant:`ghost`,size:`sm`,onClick:()=>{e.selectThread(R.forkedFromId)},children:[(0,q.jsx)(Gt,{size:16,"aria-hidden":`true`}),H(`workspace:return_to_original_session`)]}),S&&(0,q.jsxs)(J,{"data-compact-action":``,variant:`ghost`,size:`sm`,"aria-controls":`diagnostics-panel`,onClick:()=>me(C.current),children:[(0,q.jsx)(Y,{name:`settings`,size:16}),H(`common:diagnostics`)]})]}),de&&R?.status!==`waitingInput`&&(0,q.jsx)(CS,{status:`waitingInput`,offline:Ge}),R&&(0,q.jsx)(CS,{status:R.status,offline:Ge}),(0,q.jsx)(jR,{connection:e.connection}),R?.forkedFromId&&(0,q.jsx)(bS,{className:`topbar-source`,id:`thread-source-hint`,content:H(`workspace:return_to_original_session`),children:(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`workspace:return_to_original_session`),"aria-describedby":`thread-source-hint`,onClick:()=>{e.selectThread(R.forkedFromId)},children:(0,q.jsx)(Gt,{size:16})})}),(0,q.jsx)(MR,{system:z,connection:e.connection,operations:e.operations,thread:R,selectedId:e.selectedId,projectId:e.projectId,projects:e.projects,threads:t,focusedOperationId:n,onOpenThread:(t,n)=>{F(!1),e.selectThread(t,n===null?x:n)},threadReadFailed:e.threadReadFailure?.id===e.selectedId,busy:e.busy,open:P,onOpenChange:F,onDismiss:S?he:void 0,refreshing:I,onDiscardMissing:e.discardMissingOperation,onRefresh:()=>{Ye(),Ge&&e.retryConnection()},onReconcile:t=>{e.run(`reconcile`,t,`/api/operations/${Uz(t)}/reconcile`,{confirmEnded:!0}).then(e=>{if(e?.status===`acknowledged`)return Ye()})}})]}),S&&(0,q.jsxs)(`div`,{className:`topbar-attention`,children:[(R?.status===`waitingApproval`||B.some(e=>e.kind===`approval`))&&(0,q.jsx)(CS,{status:`waitingApproval`,offline:Ge}),(R?.status===`waitingInput`||B.some(e=>e.kind===`answer`))&&(0,q.jsx)(CS,{status:`waitingInput`,offline:Ge})]})]}),z?.demo&&(0,q.jsx)(`div`,{className:`demo-banner`,children:H(`workspace:simulation_mode_results_come_from_the_explicitly_enabled`)}),e.authRequired?(0,q.jsxs)(`div`,{className:`error-banner persistent-banner`,role:`alert`,children:[(0,q.jsx)(Y,{name:`alert`}),H(`workspace:your_login_has_expired_disconnecting_this_page_does`),(0,q.jsx)(`a`,{className:`button button-secondary button-small`,href:`/`,children:H(`workspace:reopen_login`)})]}):Ge&&(0,q.jsxs)(`div`,{className:`connection-banner`,role:`status`,children:[(0,q.jsx)(`span`,{children:H(`workspace:live_connection_showing_the_last_known_state`,{v0:e.connection===`connecting`?H(`workspace:connecting`):H(`workspace:disconnected_reconnecting`)})}),(0,q.jsx)(J,{variant:`ghost`,size:`sm`,onClick:e.retryConnection,children:H(`workspace:reconnect_now`)})]}),z&&!z.ready&&(0,q.jsx)(`div`,{className:`error-banner persistent-banner`,role:`alert`,children:H(`workspace:codex_is_unavailable`,{v0:z.error??H(`workspace:check_the_codex_installation_authentication_and_service_on`)})}),(0,q.jsx)(PR,{system:z,onOpenChange:oe,canConfirm:Se,submitting:qe,uncertain:Je,error:U(e.error),onRefresh:()=>{e.refreshSystem(),e.refreshOperations()},onConfirm:()=>{Qe()},onReconfirm:()=>{Qe()}}),e.error&&(0,q.jsxs)(`div`,{className:`error-banner dismissible`,role:`alert`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`span`,{children:U(e.error)}),wt(e.error)&&(0,q.jsxs)(`details`,{className:`error-technical`,children:[(0,q.jsx)(`summary`,{children:H(`common:technical_details`)}),(0,q.jsx)(`pre`,{children:wt(e.error)})]}),e.errorDetails!==void 0&&(0,q.jsxs)(`details`,{className:`raw-details`,children:[(0,q.jsx)(`summary`,{children:H(`workspace:error_details`)}),(0,q.jsx)(`pre`,{children:JSON.stringify(e.errorDetails,null,2)})]})]}),(0,q.jsx)(J,{variant:`ghost`,size:`icon`,"aria-label":H(`workspace:dismiss_error`),onClick:e.clearError,children:(0,q.jsx)(Y,{name:`close`,size:15})})]}),e.operations.filter(e=>e.mutation).map(e=>(0,q.jsxs)(`div`,{className:`archive-notice mutation-notice`,role:`status`,children:[e.kind===`rename`?(0,q.jsx)(Pn,{size:16}):(0,q.jsx)(Y,{name:`archive`,size:16}),(0,q.jsx)(`span`,{children:e.kind===`rename`?e.status===`unknown`?H(`workspace:rename_result_awaiting_confirmation`):H(`workspace:saving_session_name`):e.mutation.archived?e.status===`unknown`?H(`workspace:archive_result_awaiting_confirmation`):H(`workspace:archiving_session`):e.status===`unknown`?H(`workspace:unarchive_result_awaiting_confirmation`):H(`workspace:unarchiving`)}),e.status===`unknown`&&(0,q.jsx)(J,{variant:`secondary`,size:`sm`,disabled:I,onClick:()=>void Ye(),children:H(I?`common:checking`:`workspace:check_submission`)})]},e.clientOperationId)),R?.archived&&(0,q.jsxs)(`div`,{className:`archive-notice`,role:`status`,children:[(0,q.jsx)(Y,{name:`archive`,size:18}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`strong`,{children:H(`workspace:this_session_is_archived`)}),(0,q.jsx)(`p`,{children:H(`workspace:history_is_preserved_unarchive_to_continue_the_conversation`)})]}),(0,q.jsx)(J,{variant:`secondary`,size:`sm`,disabled:!xe||Te(R.id)||we(`archive`)||!z?.capabilities.includes(`thread/unarchive`),onClick:()=>{e.archiveThread(R.id,!1)},children:we(`archive`)?H(`common:saving`):H(`common:unarchive`)})]}),(0,q.jsx)(AL,{thread:V.thread,retryControls:{disabled:!xe||!R?.managed||!!R?.archived,busy:we(`retry`)||we(`cancelRetry`),onCancel:()=>{R?.capacityRetry&&e.run(`cancelRetry`,R.id,`/api/threads/${Uz(R.id)}/retry/cancel`,{expectedTurnId:R.capacityRetry.rootTurnId})},onRetry:t=>{R&&e.run(`retry`,R.id,`/api/threads/${Uz(R.id)}/retry`,{expectedTurnId:t,settings:e.settings})}},history:{cached:V.cached,cacheExhausted:V.cacheExhausted,onLoadCachedOlder:V.loadCachedOlder,syncError:R?V.error:e.error,loading:V.loading,error:V.error,onLoadOlder:V.loadOlder,opening:!(!e.selectedId||R),openingError:R?void 0:e.error,onRetryOpen:()=>{e.clearError(),V.error&&V.loadOlder(),e.refreshThread()}},readingEnabled:!_&&!ne&&!P&&!e.authRequired&&!ae,onReadCompleted:g,offline:Ge,projectName:ce?.name,needsProject:e.projectsLoaded&&e.projects.length===0,canAddProject:!e.authRequired,onAddProject:ue,questionControls:{tracking:R?.questionTracking,onDismiss:async t=>{if(!R)return!1;let n=await e.run(`dismissQuestions`,R.id,`/api/threads/${Uz(R.id)}/questions/dismiss`,{questionIds:t});return await e.refreshThread(),n?.status===`acknowledged`},disabled:!xe||!R?.managed||!!R.archived||!!je||we(`send`)||we(`steer`)||we(`resume`),onReply:async e=>ft($a(e),!!ke)}}),(0,q.jsxs)(`div`,{className:`bottom-region`,children:[Ae.length>0&&(0,q.jsx)(`div`,{className:`pending-actions`,"aria-label":H(`workspace:pending_requests`),children:Ae.map(t=>(0,q.jsxs)(`div`,{className:`action-recovery-group`,children:[(0,q.jsx)(JI,{action:t,disabled:!xe||we(`resolve`,t.actionId)||Te(t.actionId),onResolve:n=>{e.run(`resolve`,t.actionId,`/api/actions/${Uz(t.actionId)}/resolve`,{resolution:n})}}),e.operations.filter(e=>zh(e,t.actionId)).map(e=>(0,q.jsx)(`div`,{children:Ze(e)},e.clientOperationId))]},t.actionId))}),je&&!e.operations.some(t=>zh(t,R?.id??e.projectId)&&we(t.kind,t.target))&&(0,q.jsxs)(`div`,{className:`pending-notice`,role:`status`,children:[(0,q.jsx)(Y,{name:`alert`,size:15}),(0,q.jsx)(`span`,{children:Me?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`strong`,{children:DR(Me.kind)}),` ·`,` `,OR(Me)]}):H(R?Le?`workspace:the_fork_result_is_unconfirmed_check_the_submission`:`workspace:the_submission_result_is_unconfirmed_check_it_or`:`workspace:the_new_session_submission_is_unconfirmed_check_it`)}),(0,q.jsx)(J,{variant:`ghost`,size:`sm`,disabled:I,"aria-expanded":P,"aria-controls":`diagnostics-panel`,onClick:()=>{Xe(Me)},children:H(I?`common:checking`:`workspace:check_submission`)}),R&&!Le&&(0,q.jsx)(J,{variant:`secondary`,size:`sm`,disabled:!He,onClick:We,children:H(`common:fork_into_a_new_session`)})]}),R?.goal&&(0,q.jsxs)(`div`,{className:`goal-banner`,children:[(0,q.jsx)(Da,{goal:R.goal}),(0,q.jsx)(J,{size:`sm`,variant:`ghost`,onClick:()=>tt({scope:$e,initial:``}),children:H(`commands:goalManage`)})]}),et?.scope===$e&&R&&(0,q.jsx)(Oa,{threadId:R.id,initial:et.initial,onClose:()=>tt(void 0),run:t=>e.run(`goal`,R.id,`/api/threads/${Uz(R.id)}/goal`,t),stoppingDisabled:!xe||!R.managed||!!R.archived||e.busy.includes(`goal:${R.id}`)||e.operations.some(e=>e.kind===`goal`&&zh(e,R.id)),disabled:!xe||!R.managed||!!R.archived||!!ke||!!je||e.busy.includes(`goal:${R.id}`)},`goal:${$e}`),nt?.scope===$e&&(0,q.jsxs)(Ta,{open:!0,title:H(`commands:recapTitle`),onClose:()=>rt(void 0),wide:!0,children:[(0,q.jsx)(`p`,{children:H(`commands:recapNotice`)}),nt.partial&&(0,q.jsx)(`p`,{role:`status`,children:H(`commands:recapPartial`)}),(0,q.jsx)(`div`,{className:`command-action-content recap-content`,children:nt.summary})]}),it.open&&R&&(0,q.jsx)(ka,{threadId:R.id,onChoose:it.finish,disabled:!xe||!!ke||!!je},`approve:${$e}`),(0,q.jsx)(Ea,{open:at.open,onChoose:at.finish,disabled:!xe||!!ke||!!je||!R?.managed||!!R.archived},`review:${$e}`),ot?.scope===$e&&(0,q.jsx)(Ya,{path:ot.path,onClose:()=>st(void 0)},`diff:${$e}`),(0,q.jsx)(ER,{offline:Ge||!z?.ready,focusRequest:E,skillsRequest:O,commands:ut,thread:R,threadLoading:e.restoringSelection||!(!e.selectedId||R),draftKey:e.draftKey,draftCreationId:e.draftCreationId,skillsUnavailable:z?.ready?e.connection===`connected`?void 0:H(`composer:skills_offline`):H(`composer:skills_not_ready`),sentDrafts:e.sentDrafts,projectId:e.projectId===`@unassigned`?x:ce?.available?ce.id:void 0,runtimeKey:z?.ready&&e.connection===`connected`?`${z.codexEpoch}:${e.runtimeDefaultsRevision}`:void 0,settings:e.settings,models:z?.models??[],onSettings:e.setSettings,onLiveSettings:e.updateLiveSettings,liveSettingsPending:!!(R&&we(`liveSettings`)),onSaveModelDefaults:e.saveModelDefaults,savingModelDefaults:e.savingModelDefaults,disabled:!xe||e.restoringSelection||!!je||!!R?.archived,canInterrupt:be&&!(!R?.managed||!ke&&R.capacityRetry?.status!==`waiting`),submitting:e.firstMessages.includes(e.projectId)||we(`send`)||we(`steer`),interrupting:we(`interrupt`),resuming:we(`resume`),canResume:!Ne,resumeAttempted:ye.current===`${z?.codexEpoch}:${R?.id}`,canFork:He,forking:Ve,onFork:We,onResume:Ie,onInterrupt:()=>{R?.capacityRetry?.status===`waiting`?e.run(`cancelRetry`,R.id,`/api/threads/${Uz(R.id)}/retry/cancel`,{expectedTurnId:R.capacityRetry.rootTurnId}):R&&ke&&e.run(`interrupt`,R.id,`/api/threads/${Uz(R.id)}/interrupt`,{expectedTurnId:ke.id})},onSend:(t,n,r,i,a)=>ft(t,n,r,e.settings,void 0,i,a)})]}),(0,q.jsx)(Bz,{open:o,project:ce,shell:c,canExecute:xe&&!!z?.capabilities.includes(`command/exec`),collapsed:l,onCollapse:()=>u(e=>!e),onClose:()=>s(!1)})]}),ne&&(ne.kind===`add`||le)&&(0,q.jsx)(WR,{tasks:f,cloneId:ne.kind===`add`?ne.cloneId:void 0,project:le,disabled:e.authRequired,onAdd:e.addProject,onImported:e.openImportedProject,onRename:e.renameProject,onRemove:e.removeProject,onClose:()=>L(e=>e===ne?void 0:e)},ne.kind===`add`?ne.cloneId??`add`:ne.id),A&&(0,q.jsx)(GR,{notifications:e.notifications,onClose:()=>j(!1)}),i&&(0,q.jsx)(Sa,{onClose:()=>a(!1)}),M&&(0,q.jsx)(dz,{onClose:()=>N(!1),connected:!Ge}),p&&(0,q.jsx)(wz,{updates:d,onClose:()=>m(!1)})]})}(0,b.createRoot)(document.getElementById(`root`)).render((0,q.jsx)(y.StrictMode,{children:(0,q.jsx)(Gz,{})}));export{l as i,o as n,u as r,mI as t};
|