@covro/covro 0.3.1-dev.3 → 0.3.1-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/dist/web/assets/{abnfDiagram-WEYOIA3C-CgSmgOr1.js → abnfDiagram-WEYOIA3C-DU421iUb.js} +1 -1
  4. package/dist/web/assets/{arc-DHf4CdSk.js → arc-CsuqxmT0.js} +1 -1
  5. package/dist/web/assets/{architecture-WOLXFQ4H-DMTD1pHe.js → architecture-WOLXFQ4H-DsTUnfuI.js} +1 -1
  6. package/dist/web/assets/{architectureDiagram-ZHVYKT53-DTR8wiWo.js → architectureDiagram-ZHVYKT53-Dc3b_aSn.js} +1 -1
  7. package/dist/web/assets/{blockDiagram-RJAE7QA3-DcNiTPKZ.js → blockDiagram-RJAE7QA3-CJo6zohL.js} +1 -1
  8. package/dist/web/assets/{c4Diagram-XDPPPE54-BDxJVXjQ.js → c4Diagram-XDPPPE54-PmN0Qtd6.js} +1 -1
  9. package/dist/web/assets/channel-BHJ4nRbW.js +1 -0
  10. package/dist/web/assets/{chunk-2E7WHVMD-D5oKHRGT.js → chunk-2E7WHVMD-BzKtvYJa.js} +1 -1
  11. package/dist/web/assets/{chunk-4EMNKR2T-CtrbVCM-.js → chunk-4EMNKR2T-CcgitPaF.js} +1 -1
  12. package/dist/web/assets/{chunk-55XCU76K-Dhl7DEL7.js → chunk-55XCU76K-NmryZEsr.js} +1 -1
  13. package/dist/web/assets/{chunk-7S6XSTFO-C8EwegP-.js → chunk-7S6XSTFO-DT2qxT9H.js} +1 -1
  14. package/dist/web/assets/{chunk-AQDTSKZB-lFiNKr7B.js → chunk-AQDTSKZB-BFnqrVb4.js} +1 -1
  15. package/dist/web/assets/{chunk-DSNLSHJZ-B8GftONA.js → chunk-DSNLSHJZ-BavzRNt-.js} +1 -1
  16. package/dist/web/assets/{chunk-HAGFOTED-Cnc2mh7_.js → chunk-HAGFOTED-Cx7L4TRC.js} +1 -1
  17. package/dist/web/assets/{chunk-HNE4Q36P-BKl6ZgI0.js → chunk-HNE4Q36P-C38XMJJg.js} +1 -1
  18. package/dist/web/assets/{chunk-NQOKRVIF-qKlxSw3D.js → chunk-NQOKRVIF-Dpc22eOs.js} +1 -1
  19. package/dist/web/assets/{chunk-UHW7PFBP-C_zh3mNe.js → chunk-UHW7PFBP-BcpaVf5S.js} +1 -1
  20. package/dist/web/assets/{chunk-VQ5W62QI-BXoyXK0q.js → chunk-VQ5W62QI-Y3XkIrNL.js} +1 -1
  21. package/dist/web/assets/{chunk-WQQL4CDK-BBeqcU1J.js → chunk-WQQL4CDK-CGnED4F9.js} +1 -1
  22. package/dist/web/assets/{chunk-XXDRQBXY-DzssZtz_.js → chunk-XXDRQBXY-BCTxe0a_.js} +1 -1
  23. package/dist/web/assets/{chunk-YZO67HFG-BbNSwLjS.js → chunk-YZO67HFG-BQrkk4s_.js} +1 -1
  24. package/dist/web/assets/{chunk-ZAUX2LTX-CjURwZfv.js → chunk-ZAUX2LTX-DpzBrbZ-.js} +1 -1
  25. package/dist/web/assets/{chunk-ZCHMQSOR-u39dymjE.js → chunk-ZCHMQSOR-BY7KKI-8.js} +1 -1
  26. package/dist/web/assets/{classDiagram-v2-4MYWR3UA-BEXx5gKT.js → classDiagram-v2-4MYWR3UA-DqahpcIZ.js} +1 -1
  27. package/dist/web/assets/{cose-bilkent-JH36ORCC-BxDEucP_.js → cose-bilkent-JH36ORCC-4jWM2ykR.js} +1 -1
  28. package/dist/web/assets/{cynefin-EF2NZ3EQ-BhkCsT6-.js → cynefin-EF2NZ3EQ-CrG0LFB9.js} +1 -1
  29. package/dist/web/assets/{cynefinDiagram-WF24UDRP-Wpu-yNke.js → cynefinDiagram-WF24UDRP-Cry3FTAy.js} +1 -1
  30. package/dist/web/assets/{dagre-NK4GIZVX-LNSSIN4l.js → dagre-NK4GIZVX-Cg4GppVh.js} +1 -1
  31. package/dist/web/assets/{diagram-CBK3MWTC-BVDr5Vx9.js → diagram-CBK3MWTC-BpQwz3HE.js} +1 -1
  32. package/dist/web/assets/{diagram-I5XIIV2D-MnLzR1Rv.js → diagram-I5XIIV2D-B3o4jW3k.js} +1 -1
  33. package/dist/web/assets/{diagram-ODIL2UCW-CZ4igbo_.js → diagram-ODIL2UCW-BU1V7yRC.js} +1 -1
  34. package/dist/web/assets/{diagram-PFBEJUXE-4hCnyMdK.js → diagram-PFBEJUXE-D5xrUiPd.js} +1 -1
  35. package/dist/web/assets/{diagram-RJA3I4VV-DTo42rGA.js → diagram-RJA3I4VV-BQ6G7wDx.js} +1 -1
  36. package/dist/web/assets/{diagram-TYUNFSNR-BC12iCUZ.js → diagram-TYUNFSNR-CJ7rOc5D.js} +1 -1
  37. package/dist/web/assets/{dist-Dg_ysSxT.js → dist-BID9-USD.js} +1 -1
  38. package/dist/web/assets/{ebnfDiagram-V4P3TTPT-Du8LCQ31.js → ebnfDiagram-V4P3TTPT-C2KvMr_G.js} +1 -1
  39. package/dist/web/assets/{elk-QONTBCTQ-BzTAR-T1.js → elk-QONTBCTQ-CeySt_Wk.js} +1 -1
  40. package/dist/web/assets/{erDiagram-KYQIGQAA-SXYIjNOP.js → erDiagram-KYQIGQAA-BM3B_3tj.js} +1 -1
  41. package/dist/web/assets/{eventmodeling-K75KTNOO-Sbno3ZxQ.js → eventmodeling-K75KTNOO-BMAMYPh6.js} +1 -1
  42. package/dist/web/assets/flowDiagram-IUGLLWBU-By-VA-YW.js +1 -0
  43. package/dist/web/assets/{ganttDiagram-R7GPNTJY-DBeX1qmu.js → ganttDiagram-R7GPNTJY-DB-g05eG.js} +1 -1
  44. package/dist/web/assets/{gitGraph-VSP46ZUC-CKWihueS.js → gitGraph-VSP46ZUC-PkenObLV.js} +1 -1
  45. package/dist/web/assets/{gitGraphDiagram-PDYL7XHY-Cj1E3jqN.js → gitGraphDiagram-PDYL7XHY-DWIs-lGp.js} +1 -1
  46. package/dist/web/assets/index-B1wlD3sg.css +1 -0
  47. package/dist/web/assets/index-j8-Ii3xv.js +147 -0
  48. package/dist/web/assets/{info-OHQRW6UA-D0w3nR0p.js → info-OHQRW6UA-DK-Wm12q.js} +1 -1
  49. package/dist/web/assets/{infoDiagram-MVDRKAX5-F0jTCG-G.js → infoDiagram-MVDRKAX5-JOEaVccz.js} +1 -1
  50. package/dist/web/assets/{ishikawaDiagram-HPEHV2GE-CwQGP9AT.js → ishikawaDiagram-HPEHV2GE-B-2x06G3.js} +1 -1
  51. package/dist/web/assets/{journeyDiagram-BOSHW7O7-CPY5GqD2.js → journeyDiagram-BOSHW7O7-CSkaKHoo.js} +1 -1
  52. package/dist/web/assets/{kanban-definition-FNSA4HC5-BCL38eXh.js → kanban-definition-FNSA4HC5-BxhCZnNd.js} +1 -1
  53. package/dist/web/assets/{line-DoUzbVJS.js → line-BXURMkw2.js} +1 -1
  54. package/dist/web/assets/{linear-LoqU-SEO.js → linear-pVpEGZKc.js} +1 -1
  55. package/dist/web/assets/{mermaid-parser.core-CvO-MTG1.js → mermaid-parser.core-BkW0a1PY.js} +3 -3
  56. package/dist/web/assets/{mermaid.core-DcCEGt0V.js → mermaid.core-CeVhftut.js} +4 -4
  57. package/dist/web/assets/{mindmap-definition-6OY57UG3-yZvSibNz.js → mindmap-definition-6OY57UG3-mQdsPF38.js} +1 -1
  58. package/dist/web/assets/{packet-JDAUHWVQ-9ZiCegsV.js → packet-JDAUHWVQ-oobWVwGf.js} +1 -1
  59. package/dist/web/assets/{pegDiagram-ECIUJNBX-BkGwBoEk.js → pegDiagram-ECIUJNBX-FSt7wyW3.js} +1 -1
  60. package/dist/web/assets/{pie-XZMESJXO-kAXIwFnU.js → pie-XZMESJXO-DUVTQw1D.js} +1 -1
  61. package/dist/web/assets/{pieDiagram-GNMPY74T-jiwTgtdb.js → pieDiagram-GNMPY74T-etPUdDAu.js} +1 -1
  62. package/dist/web/assets/{quadrantDiagram-D57K4MC3-u9HdbUwr.js → quadrantDiagram-D57K4MC3-mfBTnvPL.js} +1 -1
  63. package/dist/web/assets/{radar-ABXABTNO-BQ911CvQ.js → radar-ABXABTNO-D1Qyk6F_.js} +1 -1
  64. package/dist/web/assets/{railroad-I3PHUGI6-Bvm7MWf9.js → railroad-I3PHUGI6-CwM9b5Py.js} +1 -1
  65. package/dist/web/assets/{railroad-abnf-LNEFI6M7-BfFmWnzu.js → railroad-abnf-LNEFI6M7-cheN8Z4Q.js} +1 -1
  66. package/dist/web/assets/{railroad-ebnf-DWYD2UWJ-B8Ekz4aD.js → railroad-ebnf-DWYD2UWJ-CEygxJQE.js} +1 -1
  67. package/dist/web/assets/{railroad-peg-JR7BVNR7-B5ANjRbC.js → railroad-peg-JR7BVNR7-CNOvVcos.js} +1 -1
  68. package/dist/web/assets/{railroadDiagram-Y72NRBL7-iu8Hmuma.js → railroadDiagram-Y72NRBL7-Cr86pwS6.js} +1 -1
  69. package/dist/web/assets/{requirementDiagram-EQYSW5RA-DgiEaaYZ.js → requirementDiagram-EQYSW5RA-CSxt1jYV.js} +1 -1
  70. package/dist/web/assets/{sankeyDiagram-SY24JHO5-KzDvhd8J.js → sankeyDiagram-SY24JHO5-E6hncSWD.js} +1 -1
  71. package/dist/web/assets/{sequenceDiagram-BLEHNHQU-DJMSHuO_.js → sequenceDiagram-BLEHNHQU-BUTVi_WU.js} +1 -1
  72. package/dist/web/assets/{src-C5WkvxTS.js → src-BUn_l5HW.js} +1 -1
  73. package/dist/web/assets/{stateDiagram-v2-A6IESKWZ-CyfHfUyU.js → stateDiagram-v2-A6IESKWZ-CguJkUZp.js} +1 -1
  74. package/dist/web/assets/{swimlanes-B3ENRKFQ-YPSzHf2U.js → swimlanes-B3ENRKFQ-DXLF8UOQ.js} +1 -1
  75. package/dist/web/assets/swimlanesDiagram-AYQRV4AK-BQoBHwji.js +8 -0
  76. package/dist/web/assets/{timeline-definition-JXYKGLGB-BwvPIiSj.js → timeline-definition-JXYKGLGB-D-etuHSZ.js} +1 -1
  77. package/dist/web/assets/{treeView-D4JQ5SDB-DsUhEw24.js → treeView-D4JQ5SDB-CiMI5YgG.js} +1 -1
  78. package/dist/web/assets/{treemap-SAJKECNS-D5NThB4V.js → treemap-SAJKECNS-BnncdTmf.js} +1 -1
  79. package/dist/web/assets/{usecaseDiagram-WPOLBNNX-fLWGvuS0.js → usecaseDiagram-WPOLBNNX-Crl4DQoV.js} +1 -1
  80. package/dist/web/assets/{vennDiagram-Q3Y3IDCW-DFzlk_u2.js → vennDiagram-Q3Y3IDCW-BxJZecDR.js} +1 -1
  81. package/dist/web/assets/{wardley-7MLQ67FV-0uG-noJX.js → wardley-7MLQ67FV-zPBbyPtv.js} +1 -1
  82. package/dist/web/assets/{wardleyDiagram-IVAIDKWA-DfEQPTLg.js → wardleyDiagram-IVAIDKWA-CSyK6CR6.js} +1 -1
  83. package/dist/web/assets/{xychartDiagram-4URNHDU4-BXVsWbL0.js → xychartDiagram-4URNHDU4-eVobxotm.js} +1 -1
  84. package/dist/web/index.html +2 -2
  85. package/package.json +3 -3
  86. package/dist/web/assets/channel-B6d61z43.js +0 -1
  87. package/dist/web/assets/flowDiagram-IUGLLWBU-Ae1H3vSR.js +0 -1
  88. package/dist/web/assets/index-CtTuHkNv.js +0 -147
  89. package/dist/web/assets/index-DwnjYADO.css +0 -1
  90. package/dist/web/assets/swimlanesDiagram-AYQRV4AK-D2_NQS-o.js +0 -8
@@ -1,147 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-DcCEGt0V.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-C5WkvxTS.js","assets/chunk-DSNLSHJZ-B8GftONA.js","assets/chunk-7S6XSTFO-C8EwegP-.js","assets/dist-Dg_ysSxT.js","assets/chunk-YZO67HFG-BbNSwLjS.js","assets/chunk-AQDTSKZB-lFiNKr7B.js","assets/chunk-DUW6YSOI-Dgx8z5s3.js","assets/chunk-UHW7PFBP-C_zh3mNe.js","assets/chunk-HAGFOTED-Cnc2mh7_.js","assets/chunk-J5ZVWO5B-oDCd-gWO.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-ZAUX2LTX-CjURwZfv.js","assets/chunk-WQQL4CDK-BBeqcU1J.js","assets/line-DoUzbVJS.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/chunk-HNE4Q36P-BKl6ZgI0.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 ee(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,ee(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,`$&/`)+`/`),ee(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+=ee(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+=ee(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ee(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 te(e,t,n){if(e==null)return e;var r=[],i=0;return ee(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function P(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 F=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 ne(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,F)}catch(e){F(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function re(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 ne(re.bind(null,e))}var ie={map:te,forEach:function(e,t,n){te(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return te(e,function(){t++}),t},toArray:function(e){return te(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=ie,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=re,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:P}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=ne,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`),ee=Symbol.for(`react.consumer`),te=Symbol.for(`react.context`),P=Symbol.for(`react.forward_ref`),F=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),re=Symbol.for(`react.memo`),ie=Symbol.for(`react.lazy`),ae=Symbol.for(`react.activity`),oe=Symbol.for(`react.legacy_hidden`),se=Symbol.for(`react.memo_cache_sentinel`),ce=Symbol.for(`react.view_transition`),I=Symbol.for(`react.recoverable`),le=Symbol.iterator;function ue(e){return typeof e!=`object`||!e?null:(e=le&&e[le]||e[`@@iterator`],typeof e==`function`?e:null)}var de=Symbol.for(`react.client.reference`);function fe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===de?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 F:return`Suspense`;case ne:return`SuspenseList`;case ae:return`Activity`;case ce:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case A:return`Portal`;case te:return e.displayName||`Context`;case ee:return(e._context.displayName||`Context`)+`.Consumer`;case P:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case re:return t=e.displayName||null,t===null?fe(e.type)||`Memo`:t;case ie:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var pe=Array.isArray,L=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},he=[],ge=-1;function _e(e){return{current:e}}function ve(e){0>ge||(e.current=he[ge],he[ge]=null,ge--)}function ye(e,t){ge++,he[ge]=e.current,e.current=t}var be=_e(null),xe=_e(null),Se=_e(null),Ce=_e(null);function we(e,t){switch(ye(Se,t),ye(xe,e),ye(be,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pp(t),e=mp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ve(be),ye(be,e)}function Te(){ve(be),ve(xe),ve(Se)}function Ee(e){var t=e.memoizedState;t!==null&&(lh._currentValue=t.memoizedState,ye(Ce,e)),t=be.current;var n=mp(t,e.type);t!==n&&(ye(xe,e),ye(be,n))}function De(e){xe.current===e&&(ve(be),ve(xe)),Ce.current===e&&(ve(Ce),lh._currentValue=me)}var Oe,ke;function Ae(e){if(Oe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Oe=t&&t[1]||``,ke=-1<e.stack.indexOf(`
3
- at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
- `+Oe+e+ke}var je=!1;function Me(e,t){if(!e||je)return``;je=!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{je=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ae(n):``}function Ne(e,t){switch(e.tag){case 26:case 27:case 5:return Ae(e.type);case 16:return Ae(`Lazy`);case 13:return e.child!==t&&t!==null?Ae(`Suspense Fallback`):Ae(`Suspense`);case 19:return Ae(`SuspenseList`);case 0:case 15:return Me(e.type,!1);case 11:return Me(e.type.render,!1);case 1:return Me(e.type,!0);case 31:return Ae(`Activity`);case 30:return Ae(`ViewTransition`);default:return``}}function Pe(e){try{var t=``,n=null;do t+=Ne(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8
- Error generating stack: `+e.message+`
9
- `+e.stack}}var Fe=Object.prototype.hasOwnProperty,Ie=t.unstable_scheduleCallback,Le=t.unstable_cancelCallback,Re=t.unstable_shouldYield,ze=t.unstable_requestPaint,Be=t.unstable_now,Ve=t.unstable_getCurrentPriorityLevel,He=t.unstable_ImmediatePriority,Ue=t.unstable_UserBlockingPriority,We=t.unstable_NormalPriority,Ge=t.unstable_LowPriority,Ke=t.unstable_IdlePriority,qe=t.log,Je=t.unstable_setDisableYieldValue,Ye=null,Xe=null;function Ze(e){if(typeof qe==`function`&&Je(e),Xe&&typeof Xe.setStrictMode==`function`)try{Xe.setStrictMode(Ye,e)}catch{}}var Qe=Math.clz32?Math.clz32:tt,$e=Math.log,et=Math.LN2;function tt(e){return e>>>=0,e===0?32:31-($e(e)/et|0)|0}var nt=256,rt=262144,it=4194304;function at(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 ot(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=at(n))):i=at(o):i=at(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=at(n))):i=at(o)):i=at(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 st(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ct(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-Qe(n),i=1<<r;t|=e[r],n&=~i}return t}function lt(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 ut(){var e=it;return it<<=1,!(it&62914560)&&(it=4194304),e}function dt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ft(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function pt(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-Qe(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&&mt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function mt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ht(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function gt(e,t){var n=t&-t;return n=n&42?1:_t(n),(n&(e.suspendedLanes|t))===0?n:0}function _t(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 vt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function yt(){var e=R.p;return e===0?(e=window.event,e===void 0?32:Th(e.type)):e}function bt(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}var z=Math.random().toString(36).slice(2),xt=`__reactFiber$`+z,St=`__reactProps$`+z,Ct=`__reactContainer$`+z,wt=`__reactEvents$`+z,Tt=`__reactListeners$`+z,B=`__reactHandles$`+z,V=`__reactResources$`+z,Et=`__reactMarker$`+z,Dt=`__reactLoad$`+z;function Ot(e){delete e[xt],delete e[St],delete e[Tt],delete e[B]}function kt(e){var t;if(t=e[xt])return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mm(e);e!==null;){if(n=e[xt])return n;e=mm(e)}return t}e=n,n=e.parentNode}return null}function At(e){if(e=e[xt]||e[Ct]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function jt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Mt(e){var t=e[V];return t||=e[V]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Nt(e){e[Et]=!0}function Pt(e){e[Dt]=void 0}var Ft=new Set,It={};function Lt(e,t){Rt(e,t),Rt(e+`Capture`,t)}function Rt(e,t){for(It[e]=t,e=0;e<t.length;e++)Ft.add(t[e])}var zt=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]*$`),Bt={},Vt={};function Ht(e){return Fe.call(Vt,e)?!0:Fe.call(Bt,e)?!1:zt.test(e)?Vt[e]=!0:(Bt[e]=!0,!1)}var Ut=!1;function Wt(){var e=Ut;return Ut=!1,e}function Gt(e,t,n){if(Ht(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 Kt(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 qt(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 Jt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Yt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Xt(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 Zt(e){if(!e._valueTracker){var t=Yt(e)?`checked`:`value`;e._valueTracker=Xt(e,t,``+e[t])}}function Qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Yt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var $t=/[\n"\\]/g;function en(e){return e.replace($t,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function tn(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=``+Jt(t)):e.value!==``+Jt(t)&&(e.value=``+Jt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):rn(e,Jt(n)):o===`number`&&e.value==t?rn(e,Jt(e.value)):rn(e,Jt(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=``+Jt(s):e.removeAttribute(`name`)}function nn(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)){Zt(e);return}n=n==null?``:``+Jt(n),t=t==null?n:``+Jt(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),Zt(e)}function rn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function an(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=``+Jt(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 on(e,t,n){t!=null&&(t=``+Jt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Jt(n)}function sn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(pe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Jt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Zt(e)}function cn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ln=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 un(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||ln.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function dn(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]=``,Ut=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(un(e,a,r),Ut=!0)}else for(var o in t)t.hasOwnProperty(o)&&un(e,o,t[o])}function fn(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 pn=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`]]),mn=/^[\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 hn(e){return mn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function gn(){}var _n=null;function vn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yn=null,bn=null;function xn(e){var t=At(e);if(t&&(e=t.stateNode)){var n=e[St]||null;a:switch(e=t.stateNode,t.type){case`input`:if(tn(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="`+en(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[St]||null;if(!a)throw Error(i(90));tn(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&&Qt(r)}break a;case`textarea`:on(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&an(e,!!n.multiple,t,!1)}}}var Sn=!1;function Cn(e,t,n){if(Sn)return e(t,n);Sn=!0;try{return e(t)}finally{if(Sn=!1,(yn!==null||bn!==null)&&(Vd(),yn&&(t=yn,e=bn,bn=yn=null,xn(t),e)))for(t=0;t<e.length;t++)xn(e[t])}}function wn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[St]||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 Tn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,En=!1;if(Tn)try{var Dn={};Object.defineProperty(Dn,"passive",{get:function(){En=!0}}),window.addEventListener(`test`,Dn,Dn),window.removeEventListener(`test`,Dn,Dn)}catch{En=!1}var On=null,kn=null,An=null;function jn(){if(An)return An;var e,t=kn,n=t.length,r,i=`value`in On?On.value:On.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 An=i.slice(e,1<r?1-r:void 0)}function Mn(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 Nn(){return!0}function Pn(){return!1}function Fn(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)?Nn:Pn,this.isPropagationStopped=Pn,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=Nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Nn)},persist:function(){},isPersistent:Nn}),t}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ln=Fn(In),Rn=D({},In,{view:0,detail:0}),zn=Fn(Rn),Bn,Vn,Hn,Un=D({},Rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:er,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!==Hn&&(Hn&&e.type===`mousemove`?(Bn=e.screenX-Hn.screenX,Vn=e.screenY-Hn.screenY):Vn=Bn=0,Hn=e),Bn)},movementY:function(e){return`movementY`in e?e.movementY:Vn}}),Wn=Fn(Un),Gn=Fn(D({},Un,{dataTransfer:0})),Kn=Fn(D({},Rn,{relatedTarget:0})),qn=Fn(D({},In,{animationName:0,elapsedTime:0,pseudoElement:0})),Jn=Fn(D({},In,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Yn=Fn(D({},In,{data:0})),Xn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Zn={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`},Qn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function $n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qn[e])?!!t[e]:!1}function er(){return $n}var tr=Fn(D({},Rn,{key:function(e){if(e.key){var t=Xn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Mn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Zn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:er,charCode:function(e){return e.type===`keypress`?Mn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Mn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),nr=Fn(D({},Un,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),rr=Fn(D({},In,{submitter:0})),ir=Fn(D({},Rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:er})),ar=Fn(D({},In,{propertyName:0,elapsedTime:0,pseudoElement:0})),or=Fn(D({},Un,{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})),sr=Fn(D({},In,{newState:0,oldState:0,source:0})),cr=[9,13,27,32],lr=Tn&&`CompositionEvent`in window,ur=null;Tn&&`documentMode`in document&&(ur=document.documentMode);var dr=Tn&&`TextEvent`in window&&!ur,fr=Tn&&(!lr||ur&&8<ur&&11>=ur),pr=` `,mr=!1;function hr(e,t){switch(e){case`keyup`:return cr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function gr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var _r=!1;function vr(e,t){switch(e){case`compositionend`:return gr(t);case`keypress`:return t.which===32?(mr=!0,pr):null;case`textInput`:return e=t.data,e===pr&&mr?null:e;default:return null}}function yr(e,t){if(_r)return e===`compositionend`||!lr&&hr(e,t)?(e=jn(),An=kn=On=null,_r=!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 fr&&t.locale!==`ko`?null:t.data;default:return null}}var br={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 xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!br[e.type]:t===`textarea`}function Sr(e,t,n,r){yn?bn?bn.push(r):bn=[r]:yn=r,t=Xf(t,`onChange`),0<t.length&&(n=new Ln(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Cr=null,wr=null;function Tr(e){Hf(e,0)}function Er(e){if(Qt(jt(e)))return e}function Dr(e,t){if(e===`change`)return t}var Or=!1;if(Tn){var kr;if(Tn){var Ar=`oninput`in document;if(!Ar){var jr=document.createElement(`div`);jr.setAttribute(`oninput`,`return;`),Ar=typeof jr.oninput==`function`}kr=Ar}else kr=!1;Or=kr&&(!document.documentMode||9<document.documentMode)}function Mr(){Cr&&(Cr.detachEvent(`onpropertychange`,Nr),wr=Cr=null)}function Nr(e){if(e.propertyName===`value`&&Er(wr)){var t=[];Sr(t,wr,e,vn(e)),Cn(Tr,t)}}function Pr(e,t,n){e===`focusin`?(Mr(),Cr=t,wr=n,Cr.attachEvent(`onpropertychange`,Nr)):e===`focusout`&&Mr()}function Fr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Er(wr)}function Ir(e,t){if(e===`click`)return Er(t)}function Lr(e,t){if(e===`input`||e===`change`)return Er(t)}function Rr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var zr=typeof Object.is==`function`?Object.is:Rr;function Br(e,t){if(zr(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(!Fe.call(t,i)||!zr(e[i],t[i]))return!1}return!0}function Vr(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 Hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ur(e,t){var n=Hr(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=Hr(n)}}function Wr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vr(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=Vr(e.document)}return t}function Kr(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 qr=Tn&&`documentMode`in document&&11>=document.documentMode,Jr=null,Yr=null,Xr=null,Zr=!1;function Qr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zr||Jr==null||Jr!==Vr(r)||(r=Jr,`selectionStart`in r&&Kr(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}),Xr&&Br(Xr,r)||(Xr=r,r=Xf(Yr,`onSelect`),0<r.length&&(t=new Ln(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Jr)))}function $r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ei={animationend:$r(`Animation`,`AnimationEnd`),animationiteration:$r(`Animation`,`AnimationIteration`),animationstart:$r(`Animation`,`AnimationStart`),transitionrun:$r(`Transition`,`TransitionRun`),transitionstart:$r(`Transition`,`TransitionStart`),transitioncancel:$r(`Transition`,`TransitionCancel`),transitionend:$r(`Transition`,`TransitionEnd`)},ti={},ni={};Tn&&(ni=document.createElement(`div`).style,`AnimationEvent`in window||(delete ei.animationend.animation,delete ei.animationiteration.animation,delete ei.animationstart.animation),`TransitionEvent`in window||delete ei.transitionend.transition);function ri(e){if(ti[e])return ti[e];if(!ei[e])return e;var t=ei[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ni)return ti[e]=t[n];return e}var ii=ri(`animationend`),ai=ri(`animationiteration`),oi=ri(`animationstart`),si=ri(`transitionrun`),ci=ri(`transitionstart`),li=ri(`transitioncancel`),ui=ri(`transitionend`),di=new Map,fi=`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(` `);fi.push(`scrollEnd`);function pi(e,t){di.set(e,t),Lt(t,[e])}var mi=0;function H(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Sd.identifierPrefix;var n=mi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function hi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Ad;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 gi(e,t){return e=hi(e),t=hi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var _i=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)},vi=[],yi=0,bi=0;function xi(){for(var e=yi,t=bi=yi=0;t<e;){var n=vi[t];vi[t++]=null;var r=vi[t];vi[t++]=null;var i=vi[t];vi[t++]=null;var a=vi[t];if(vi[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&&Ti(n,i,a)}}function Si(e,t,n,r){vi[yi++]=e,vi[yi++]=t,vi[yi++]=n,vi[yi++]=r,bi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ci(e,t,n,r){return Si(e,t,n,r),U(e)}function wi(e,t){return Si(e,null,null,t),U(e)}function Ti(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-Qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function U(e){if(50<jd)throw jd=0,Md=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ei={};function Di(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 Oi(e,t,n,r){return new Di(e,t,n,r)}function ki(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ai(e,t){var n=e.alternate;return n===null?(n=Oi(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 ji(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 Mi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)ki(r)&&(s=1);else if(typeof r==`string`)s=Ym(e,n,be.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ae:return e=Oi(31,n,t,a),e.elementType=ae,e.lanes=o,e;case j:return W(n.children,a,o,t);case M:s=8,a|=24;break;case N:return e=Oi(12,n,t,a|2),e.elementType=N,e.lanes=o,e;case F:return e=Oi(13,n,t,a),e.elementType=F,e.lanes=o,e;case ne:return e=Oi(19,n,t,a),e.elementType=ne,e.lanes=o,e;case oe:case ce:return e=a|32,e=Oi(30,n,t,e),e.elementType=ce,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case te:s=10;break a;case ee:s=9;break a;case P:s=11;break a;case re:s=14;break a;case ie:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Oi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function W(e,t,n,r){return e=Oi(7,e,r,t),e.lanes=n,e}function Ni(e,t,n){return e=Oi(6,e,null,t),e.lanes=n,e}function Pi(e){var t=Oi(18,null,null,0);return t.stateNode=e,t}function Fi(e,t,n){return t=Oi(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:Pe(t)},Ii.set(e,t),t):n}return{value:e,source:t,stack:Pe(t)}}var Ri=[],zi=0,Bi=null,Vi=0,Hi=[],Ui=0,Wi=null,Gi=1,Ki=``;function qi(e,t){Ri[zi++]=Vi,Ri[zi++]=Bi,Bi=e,Vi=t}function Ji(e,t,n){Hi[Ui++]=Gi,Hi[Ui++]=Ki,Hi[Ui++]=Wi,Wi=e;var r=Gi;e=Ki;var i=32-Qe(r)-1;r&=~(1<<i),n+=1;var a=32-Qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Gi=1<<32-Qe(t)+i|n<<i|r,Ki=a+e}else Gi=1<<a|n<<i|r,Ki=e}function Yi(e){e.return!==null&&(qi(e,1),Ji(e,1,0))}function Xi(e){for(;e===Bi;)Bi=Ri[--zi],Ri[zi]=null,Vi=Ri[--zi],Ri[zi]=null;for(;e===Wi;)Wi=Hi[--Ui],Hi[Ui]=null,Ki=Hi[--Ui],Hi[Ui]=null,Gi=Hi[--Ui],Hi[Ui]=null}function Zi(e,t){Hi[Ui++]=Gi,Hi[Ui++]=Ki,Hi[Ui++]=Wi,Gi=t.id,Ki=t.overflow,Wi=e}var Qi=null,$i=null,ea=!1,G=null,ta=!1,K=Error(i(519));function na(e){throw sa(Li(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),K}function q(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[xt]=e,t[St]=r,n){case`dialog`:Uf(`cancel`,t),Uf(`close`,t);break;case`iframe`:case`object`:case`embed`:Uf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Bf.length;n++)Uf(Bf[n],t);break;case`source`:Uf(`error`,t);break;case`img`:case`image`:case`link`:Uf(`error`,t),Uf(`load`,t);break;case`details`:Uf(`toggle`,t);break;case`input`:Uf(`invalid`,t),nn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Uf(`invalid`,t);break;case`textarea`:Uf(`invalid`,t),sn(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||np(t.textContent,n)?(r.popover!=null&&(Uf(`beforetoggle`,t),Uf(`toggle`,t)),r.onScroll!=null&&Uf(`scroll`,t),r.onScrollEnd!=null&&Uf(`scrollend`,t),r.onClick!=null&&(t.onclick=gn),t=!0):t=!1,t||na(e,!0)}function ra(e){for(Qi=e.return;Qi;)switch(Qi.tag){case 5:case 31:case 13:ta=!1;return;case 27:case 3:ta=!0;return;default:Qi=Qi.return}}function ia(e){if(e!==Qi)return!1;if(!ea)return ra(e),ea=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||gp(e.type,e.memoizedProps)),n=!n),n&&$i&&na(e),ra(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));$i=pm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));$i=pm(e)}else t===27?(t=$i,Tp(e.type)?(e=fm,fm=null,$i=e):$i=t):$i=Qi?dm(e.stateNode.nextSibling):null;return!0}function aa(){$i=Qi=null,ea=!1}function oa(){var e=G;return e!==null&&(md===null?md=e:md.push.apply(md,e),G=null),e}function sa(e){G===null?G=[e]:G.push(e)}var ca=_e(null),la=null,ua=null;function da(e,t,n){ye(ca,t._currentValue),t._currentValue=n}function fa(e){e._currentValue=ca.current,ve(ca)}function pa(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 ma(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),pa(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),pa(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),pa(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 ha(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;zr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Ce.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[lh]:e.push(lh))}a=a.return}return e!==null&&ma(t,e,n,r),t.flags|=262144,e!==null}function ga(e){for(e=e.firstContext;e!==null;){if(!zr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){la=e,ua=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function va(e){return ba(la,e)}function ya(e,t){return la===null&&_a(e),ba(e,t)}function ba(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ua===null){if(e===null)throw Error(i(308));ua=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ua=ua.next=t;return n}var xa=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()})}},Sa=t.unstable_scheduleCallback,Ca=t.unstable_NormalPriority,wa={$$typeof:te,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ta(){return{controller:new xa,data:new Map,refCount:0}}function Ea(e){e.refCount--,e.refCount===0&&Sa(Ca,function(){e.controller.abort()})}function Da(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 Oa=null;function ka(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Aa=null,ja=0,Ma=0,Na=null;function Pa(e,t){if(Aa===null){var n=Aa=[];ja=0,Ma=Ff(),Na={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ja++,t.then(Fa,Fa),t}function Fa(){if(--ja===0&&(Oa=null,Aa!==null)){Na!==null&&(Na.status=`fulfilled`);var e=Aa;Aa=null,Ma=0,Na=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ia(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 La=L.S;L.S=function(e,t){if(_d=Be(),typeof t==`object`&&t&&typeof t.then==`function`&&Pa(e,t),Oa!==null)for(var n=Cf;n!==null;)Da(n,Oa),n=n.next;if(n=e.types,n!==null){for(var r=Cf;r!==null;)Da(r,n),r=r.next;if(Ma!==0){r=Oa,r===null&&(r=Oa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}La!==null&&La(e,t)};var Ra=_e(null);function za(){var e=Ra.current;return e===null?Qu.pooledCache:e}function Ba(e,t){t===null?ye(Ra,Ra.current):ye(Ra,t.pool)}function Va(){var e=za();return e===null?null:{parent:wa._currentValue,pool:e}}var Ha=Error(i(460)),Ua=Error(i(474)),Wa=Error(i(542)),Ga={then:function(){}};function Ka(e){return e=e.status,e===`fulfilled`||e===`rejected`}function qa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(gn,gn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Za(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(gn,gn);else{if(e=Qu,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,Za(e),e}throw Ya=t,Ha}}function Ja(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ya=e,Ha):e}}var Ya=null;function Xa(){if(Ya===null)throw Error(i(459));var e=Ya;return Ya=null,e}function Za(e){if(e===Ha||e===Wa)throw Error(i(483))}var Qa=null,$a=0;function eo(e){var t=$a;return $a+=1,Qa===null&&(Qa=[]),qa(Qa,e,t)}function to(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function no(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 ro(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=Ai(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),to(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ie&&Ja(i)===t.type)?(t=a(t,n.props),to(t,n),t.return=e,t):(t=Mi(n.type,n.key,n.props,null,e.mode,r),to(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=W(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=Mi(t.type,t.key,t.props,null,e.mode,n),to(n,t),n.return=e,n;case A:return t=Fi(t,e.mode,n),t.return=e,t;case ie:return t=Ja(t),f(e,t,n)}if(pe(t)||ue(t))return t=W(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,eo(t),n);if(t.$$typeof===te)return f(e,ya(e,t),n);no(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 ie:return n=Ja(n),p(e,t,n,r)}if(pe(n)||ue(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,eo(n),r);if(n.$$typeof===te)return p(e,t,ya(e,n),r);no(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 ie:return r=Ja(r),m(e,t,n,r,i)}if(pe(r)||ue(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,eo(r),i);if(r.$$typeof===te)return m(e,t,n,ya(t,r),i);no(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),ea&&qi(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 ea&&qi(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)}),ea&&qi(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),ea&&qi(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 ea&&qi(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)}),ea&&qi(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),to(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ie&&Ja(l)===r.type){n(e,r.sibling),c=a(r,o.props),to(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=W(o.props.children,e.mode,c,o.key),to(c,o),c.return=e,e=c):(c=Mi(o.type,o.key,o.props,null,e.mode,c),to(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 ie:return o=Ja(o),_(e,r,o,c)}if(pe(o))return h(e,r,o,c);if(ue(o)){if(l=ue(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,eo(o),c);if(o.$$typeof===te)return _(e,r,ya(e,o),c);no(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{$a=0;var i=_(e,t,n,r);return Qa=null,i}catch(t){if(t===Ha||t===Wa)throw t;var a=Oi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var io=ro(!0),ao=ro(!1),oo=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function co(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 lo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function uo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Zu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=U(e),Ti(e,null,n),t}return Si(e,r,t,n),U(e)}function fo(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,ht(e,n)}}function po(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 mo=!1;function ho(){if(mo){var e=Na;if(e!==null)throw e}}function go(e,t,n,r){mo=!1;var i=e.updateQueue;oo=!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?(ed&f)===f:(r&f)===f){f!==0&&f===Ma&&(mo=!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:oo=!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),cd|=o,e.lanes=o,e.memoizedState=d}}function _o(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function vo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)_o(n[e],t)}var yo=_e(null),bo=_e(0);function xo(e,t){e=od,ye(bo,e),ye(yo,t),od=e|t.baseLanes}function So(){ye(bo,od),ye(yo,yo.current)}function Co(){od=bo.current,ve(yo),ve(bo)}var wo=_e(null),To=null;function Eo(e){var t=e.alternate;ye(jo,jo.current&1),ye(wo,e),To===null&&(t===null||yo.current!==null||t.memoizedState!==null)&&(To=e)}function Do(e){ye(jo,jo.current),ye(wo,e),To===null&&(To=e)}function Oo(e){e.tag===22?(ye(jo,jo.current),ye(wo,e),To===null&&(To=e)):ko()}function ko(){ye(jo,jo.current),ye(wo,wo.current)}function Ao(e){ve(wo),To===e&&(To=null),ve(jo)}var jo=_e(0);function Mo(e,t){ye(wo,wo.current),ye(jo,t)}function No(e){ve(jo),ve(wo),To===e&&(To=null)}function Po(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||lm(n)||um(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 Fo=0,J=null,Io=null,Lo=null,Ro=!1,zo=!1,Bo=!1,Vo=0,Ho=0,Uo=null,Wo=0;function Go(){throw Error(i(321))}function Ko(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zr(e[n],t[n]))return!1;return!0}function qo(e,t,n,r,i,a){return Fo=a,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?uc:dc,Bo=!1,a=n(r,i),Bo=!1,zo&&(a=Yo(t,n,r,i)),Jo(e),a}function Jo(e){L.H=lc;var t=Io!==null&&Io.next!==null;if(Fo=0,Lo=Io=J=null,Ro=!1,Ho=0,Uo=null,t)throw Error(i(300));e===null||Oc||(e=e.dependencies,e!==null&&ga(e)&&(Oc=!0))}function Yo(e,t,n,r){J=e;var a=0;do{if(zo&&(Uo=null),Ho=0,zo=!1,25<=a)throw Error(i(301));if(a+=1,Lo=Io=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}L.H=fc,o=t(n,r)}while(zo);return o}function Xo(){var e=L.H,t=e.useState()[0];return t=typeof t.then==`function`?rs(t):t,e=e.useState()[0],(Io===null?null:Io.memoizedState)!==e&&(J.flags|=1024),t}function Zo(){var e=Vo!==0;return Vo=0,e}function Qo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function $o(e){if(Ro){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ro=!1}Fo=0,Lo=Io=J=null,zo=!1,Ho=Vo=0,Uo=null}function es(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lo===null?J.memoizedState=Lo=e:Lo=Lo.next=e,Lo}function ts(){if(Io===null){var e=J.alternate;e=e===null?null:e.memoizedState}else e=Io.next;var t=Lo===null?J.memoizedState:Lo.next;if(t!==null)Lo=t,Io=e;else{if(e===null)throw J.alternate===null?Error(i(467)):Error(i(310));Io=e,e={memoizedState:Io.memoizedState,baseState:Io.baseState,baseQueue:Io.baseQueue,queue:Io.queue,next:null},Lo===null?J.memoizedState=Lo=e:Lo=Lo.next=e}return Lo}function ns(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rs(e){var t=Ho;return Ho+=1,Uo===null&&(Uo=[]),e=qa(Uo,e,t),t=J,(Lo===null?t.memoizedState:Lo.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?uc:dc),e}function is(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return rs(e);if(e.$$typeof===I)return;if(e.$$typeof===te)return va(e)}throw Error(i(438,String(e)))}function as(e){var t=null,n=J.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=J.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=ns(),J.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]=se;return t.index++,n}function os(e,t){return typeof t==`function`?t(e):t}function ss(e){return cs(ts(),Io,e)}function cs(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?(Fo&f)===f:(ed&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===Ma&&(d=!0);else if((Fo&p)===p){u=u.next,p===Ma&&(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,J.lanes|=p,cd|=p;f=u.action,Bo&&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,J.lanes|=f,cd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!zr(o,e.memoizedState)&&(Oc=!0,d&&(n=Na,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 ls(e){var t=ts(),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);zr(o,t.memoizedState)||(Oc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function us(e,t,n){var r=J,a=ts(),o=ea;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!zr((Io||a).memoizedState,n);if(s&&(a.memoizedState=n,Oc=!0),a=a.queue,Fs(ps.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Lo!==null&&!!(Lo.memoizedState.tag&1),As(e?9:8,{destroy:void 0},fs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Qu===null)throw Error(i(349));o||Fo&127||ds(r,t,n)}return n}function ds(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t=ns(),J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function fs(e,t,n,r){t.value=n,t.getSnapshot=r,ms(t)&&hs(e)}function ps(e,t,n){return n(function(){ms(t)&&hs(e)})}function ms(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zr(e,n)}catch{return!0}}function hs(e){var t=wi(e,2);t!==null&&Id(t,e,2)}function gs(e){var t=es();if(typeof e==`function`){var n=e;if(e=n(),Bo){Ze(!0);try{n()}finally{Ze(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:e},t}function _s(e,t,n,r){return e.baseState=n,cs(e,Io,typeof r==`function`?r:os)}function vs(e,t,n,r,a){if(oc(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)}};L.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ys(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ys(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=L.T,o={};o.types=a===null?null:a.types,L.T=o;try{var s=n(i,r),c=L.S;c!==null&&c(o,s),bs(e,t,s)}catch(n){Ss(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),L.T=a}}else try{a=n(i,r),bs(e,t,a)}catch(n){Ss(e,t,n)}}function bs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){xs(e,t,n)},function(n){return Ss(e,t,n)}):xs(e,t,n)}function xs(e,t,n){t.status=`fulfilled`,t.value=n,Cs(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ys(e,n)))}function Ss(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Cs(t),t=t.next;while(t!==r)}e.action=null}function Cs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ws(e,t){return t}function Ts(e,t){if(ea){var n=Qu.formState;if(n!==null){a:{var r=J;if(ea){if($i){b:{for(var i=$i,a=ta;i.nodeType!==8;)if(!a||(i=dm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){$i=dm(i.nextSibling),r=i.data===`F!`;break a}}na(r)}r=!1}r&&(t=n[0])}}return n=es(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ws,lastRenderedState:t},n.queue=r,n=rc.bind(null,J,r),r.dispatch=n,r=gs(!1),a=ac.bind(null,J,!1,r.queue),r=es(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=vs.bind(null,J,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Es(e){return Ds(ts(),Io,e)}function Ds(e,t,n){if(t=cs(e,t,ws)[0],e=ss(os)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=rs(t)}catch(e){throw e===Ha?Wa:e}else r=t;t=ts();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(J.flags|=2048,As(9,{destroy:void 0},Os.bind(null,i,n),null)),[r,a,e]}function Os(e,t){e.action=t}function ks(e){var t=ts(),n=Io;if(n!==null)return Ds(t,n,e);ts(),t=t.memoizedState,n=ts();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function As(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=J.updateQueue,t===null&&(t=ns(),J.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 js(){return ts().memoizedState}function Ms(e,t,n,r){var i=es();J.flags|=e,i.memoizedState=As(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ns(e,t,n,r){var i=ts();r=r===void 0?null:r;var a=i.memoizedState.inst;Io!==null&&r!==null&&Ko(r,Io.memoizedState.deps)?i.memoizedState=As(t,a,n,r):(J.flags|=e,i.memoizedState=As(1|t,a,n,r))}function Ps(e,t){Ms(8390656,8,e,t)}function Fs(e,t){Ns(2048,8,e,t)}function Is(e){J.flags|=4;var t=J.updateQueue;if(t===null)t=ns(),J.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ls(e){var t=ts().memoizedState;return Is({ref:t,nextImpl:e}),function(){if(Zu&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Rs(e,t){return Ns(4,2,e,t)}function zs(e,t){return Ns(4,4,e,t)}function Bs(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 Vs(e,t,n){n=n==null?null:n.concat([e]),Ns(4,4,Bs.bind(null,t,e),n)}function Hs(){}function Us(e,t){var n=ts();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Ko(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ws(e,t){var n=ts();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Ko(t,r[1]))return r[0];if(r=e(),Bo){Ze(!0);try{e()}finally{Ze(!1)}}return n.memoizedState=[r,t],r}function Gs(e,t,n){return n===void 0||Fo&1073741824&&!(ed&261930)?e.memoizedState=t:(e.memoizedState=n,e=Pd(),J.lanes|=e,cd|=e,n)}function Ks(e,t,n,r){return zr(n,t)?n:yo.current===null?!(Fo&106)||Fo&1073741824&&!(ed&261930)?(Oc=!0,e.memoizedState=n):(e=Pd(),J.lanes|=e,cd|=e,t):(e=Gs(e,n,r),zr(e,t)||(Oc=!0),e)}function qs(e,t,n,r,i){var a=R.p;R.p=a!==0&&8>a?a:8;var o=L.T,s={};s.types=o===null?null:o.types,L.T=s,ac(e,!1,t,n);try{var c=i(),l=L.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ic(e,t,Ia(c,r),Nd(e)):ic(e,t,r,Nd(e))}catch(n){ic(e,t,{then:function(){},status:`rejected`,reason:n},Nd())}finally{R.p=a,o!==null&&s.types!==null&&(o.types=s.types),L.T=o}}function Js(){}function Ys(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Xs(e).queue;qs(e,a,t,me,n===null?Js:function(){return Zs(e),n(r)})}function Xs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:me},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Zs(e){var t=Xs(e);t.next===null&&(t=e.alternate.memoizedState),ic(e,t.next.queue,{},Nd())}function Qs(){return va(lh)}function $s(){return ts().memoizedState}function ec(){return ts().memoizedState}function tc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Nd();e=lo(n);var r=uo(t,e,n);r!==null&&(Id(r,t,n),fo(r,t,n)),t={cache:Ta()},e.payload=t;return}t=t.return}}function nc(e,t,n){var r=Nd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},oc(e)?sc(t,n):(n=Ci(e,t,n,r),n!==null&&(Id(n,e,r),cc(n,t,r)))}function rc(e,t,n){ic(e,t,n,Nd())}function ic(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(oc(e))sc(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,zr(s,o))return Si(e,t,i,0),Qu===null&&xi(),!1}catch{}if(n=Ci(e,t,i,r),n!==null)return Id(n,e,r),cc(n,t,r),!0}return!1}function ac(e,t,n,r){if(r={lane:2,revertLane:Ff(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},oc(e)){if(t)throw Error(i(479))}else t=Ci(e,n,r,2),t!==null&&Id(t,e,2)}function oc(e){var t=e.alternate;return e===J||t!==null&&t===J}function sc(e,t){zo=Ro=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ht(e,n)}}var lc={readContext:va,use:is,useCallback:Go,useContext:Go,useEffect:Go,useImperativeHandle:Go,useLayoutEffect:Go,useInsertionEffect:Go,useMemo:Go,useReducer:Go,useRef:Go,useState:Go,useDebugValue:Go,useDeferredValue:Go,useTransition:Go,useSyncExternalStore:Go,useId:Go,useHostTransitionStatus:Go,useFormState:Go,useActionState:Go,useOptimistic:Go,useMemoCache:Go,useCacheRefresh:Go,useEffectEvent:Go},uc={readContext:va,use:is,useCallback:function(e,t){return es().memoizedState=[e,t===void 0?null:t],e},useContext:va,useEffect:Ps,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ms(4194308,4,Bs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ms(4194308,4,e,t)},useInsertionEffect:function(e,t){Ms(4,2,e,t)},useMemo:function(e,t){var n=es();t=t===void 0?null:t;var r=e();if(Bo){Ze(!0);try{e()}finally{Ze(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=es();if(n!==void 0){var i=n(t);if(Bo){Ze(!0);try{n(t)}finally{Ze(!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=nc.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=es();return e={current:e},t.memoizedState=e},useState:function(e){e=gs(e);var t=e.queue,n=rc.bind(null,J,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Hs,useDeferredValue:function(e,t){return Gs(es(),e,t)},useTransition:function(){var e=gs(!1);return e=qs.bind(null,J,e.queue,!0,!1),es().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=J,a=es();if(ea){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Qu===null)throw Error(i(349));ed&127||ds(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ps(ps.bind(null,r,o,e),[e]),r.flags|=2048,As(9,{destroy:void 0},fs.bind(null,r,o,n,t),null),n},useId:function(){var e=es(),t=Qu.identifierPrefix;if(ea){var n=Ki,r=Gi;n=(r&~(1<<32-Qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Vo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Wo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Qs,useFormState:Ts,useActionState:Ts,useOptimistic:function(e){var t=es();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ac.bind(null,J,!0,n),n.dispatch=t,[e,t]},useMemoCache:as,useCacheRefresh:function(){return es().memoizedState=tc.bind(null,J)},useEffectEvent:function(e){var t=es(),n={impl:e};return t.memoizedState=n,function(){if(Zu&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},dc={readContext:va,use:is,useCallback:Us,useContext:va,useEffect:Fs,useImperativeHandle:Vs,useInsertionEffect:Rs,useLayoutEffect:zs,useMemo:Ws,useReducer:ss,useRef:js,useState:function(){return ss(os)},useDebugValue:Hs,useDeferredValue:function(e,t){return Ks(ts(),Io.memoizedState,e,t)},useTransition:function(){var e=ss(os)[0],t=ts().memoizedState;return[typeof e==`boolean`?e:rs(e),t]},useSyncExternalStore:us,useId:$s,useHostTransitionStatus:Qs,useFormState:Es,useActionState:Es,useOptimistic:function(e,t){return _s(ts(),Io,e,t)},useMemoCache:as,useCacheRefresh:ec,useEffectEvent:Ls},fc={readContext:va,use:is,useCallback:Us,useContext:va,useEffect:Fs,useImperativeHandle:Vs,useInsertionEffect:Rs,useLayoutEffect:zs,useMemo:Ws,useReducer:ls,useRef:js,useState:function(){return ls(os)},useDebugValue:Hs,useDeferredValue:function(e,t){var n=ts();return Io===null?Gs(n,e,t):Ks(n,Io.memoizedState,e,t)},useTransition:function(){var e=ls(os)[0],t=ts().memoizedState;return[typeof e==`boolean`?e:rs(e),t]},useSyncExternalStore:us,useId:$s,useHostTransitionStatus:Qs,useFormState:ks,useActionState:ks,useOptimistic:function(e,t){var n=ts();return Io===null?(n.baseState=e,[e,n.queue.dispatch]):_s(n,Io,e,t)},useMemoCache:as,useCacheRefresh:ec,useEffectEvent:Ls};function pc(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 mc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Nd(),i=lo(r);i.payload=t,n!=null&&(i.callback=n),t=uo(e,i,r),t!==null&&(Id(t,e,r),fo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Nd(),i=lo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=uo(e,i,r),t!==null&&(Id(t,e,r),fo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nd(),r=lo(n);r.tag=2,t!=null&&(r.callback=t),t=uo(e,r,n),t!==null&&(Id(t,e,n),fo(t,e,n))}};function hc(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?!Br(n,r)||!Br(i,a):!0}function gc(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&&mc.enqueueReplaceState(t,t.state,null)}function _c(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 vc(e){_i(e)}function yc(e){console.error(e)}function bc(e){_i(e)}function xc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Sc(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 Cc(e,t,n){return n=lo(n),n.tag=3,n.payload={element:null},n.callback=function(){xc(e,t)},n}function wc(e){return e=lo(e),e.tag=3,e}function Tc(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(){Sc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Sc(t,n,r),typeof i!=`function`&&(bd===null?bd=new Set([this]):bd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ec(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ha(t,n,a,!0),n=wo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return To===null?Jd():n.alternate===null&&sd===0&&(sd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ga?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),_f(e,r,a)),!1;case 22:return n.flags|=65536,r===Ga?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)),_f(e,r,a)),!1}throw Error(i(435,n.tag))}return _f(e,r,a),Jd(),!1}if(ea)return t=wo.current,t===null?(r!==K&&(t=Error(i(423),{cause:r}),sa(Li(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Li(r,n),a=Cc(e.stateNode,r,a),po(e,a),sd!==4&&(sd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==K&&(e=Error(i(422),{cause:r}),sa(Li(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Li(o,n),pd===null?pd=[o]:pd.push(o),sd!==4&&(sd=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=Cc(n.stateNode,r,e),po(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`&&(bd===null||!bd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=wc(a),Tc(a,e,n,r),po(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Dc=Error(i(461)),Oc=!1;function kc(e,t,n,r){t.child=e===null?ao(t,null,n,r):io(t,e.child,n,r)}function Ac(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=qo(e,t,n,o,a,i),s=Zo(),e!==null&&!Oc?(Qo(e,t,i),il(e,t,i)):(ea&&s&&Yi(t),t.flags|=1,kc(e,t,r,i),t.child)}function jc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ki(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Mc(e,t,a,r,i)):(e=Mi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!al(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Br:n,n(o,r)&&e.ref===t.ref)return il(e,t,i)}return t.flags|=1,e=Ai(a,r),e.ref=t.ref,e.return=t,t.child=e}function Mc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Br(a,r)&&e.ref===t.ref){if(Oc=!1,t.pendingProps=r=a,al(e,i))e.flags&131072&&(Oc=!0);else return t.lanes=e.lanes,il(e,t,i)}}return Bc(e,t,n,r,i)}function Nc(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 Fc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ba(t,a===null?null:a.cachePool),a===null?So():xo(t,a),Oo(t);else return r=t.lanes=536870912,Fc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ba(t,null),So(),ko()):(Ba(t,a.cachePool),xo(t,a),ko(),t.memoizedState=null);return kc(e,t,i,n),t.child}function Pc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fc(e,t,n,r,i){var a=za();return a=a===null?null:{parent:wa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ba(t,null),So(),Oo(t),e!==null&&ha(e,t,r,!0),t.childLanes=i,null}function Ic(e,t){return t=Yc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Lc(e,t,n){return io(t,e.child,null,n),e=Ic(t,t.pendingProps),e.flags|=2,Ao(t),t.memoizedState=null,e}function Rc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(ea){if(r.mode===`hidden`)return e=Ic(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Pc(null,e);if(Do(t),(e=$i)?(e=cm(e,ta),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wi===null?null:{id:Gi,overflow:Ki},retryLane:536870912,hydrationErrors:null},n=Pi(e),n.return=t,t.child=n,Qi=t,$i=null)):e=null,e===null)throw na(t);return t.lanes=536870912,null}return Ic(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Do(t),a){if(t.flags&256)t.flags&=-257,t=Lc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Oc||ha(e,t,n,!1),a=(n&e.childLanes)!==0,Oc||a){if(yo.current===null){if(r=Qu,r!==null&&(s=gt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,wi(e,s),Id(r,e,s),Dc;Jd()}t=Lc(e,t,n)}else e=o.treeContext,$i=dm(s.nextSibling),Qi=t,ea=!0,G=null,ta=!1,e!==null&&Zi(t,e),t=Ic(t,r),t.flags|=134221824;return t}return e=Ai(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zc(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 Bc(e,t,n,r,i){return _a(t),n=qo(e,t,n,r,void 0,i),r=Zo(),e!==null&&!Oc?(Qo(e,t,i),il(e,t,i)):(ea&&r&&Yi(t),t.flags|=1,kc(e,t,n,i),t.child)}function Vc(e,t,n,r,i,a){return _a(t),t.updateQueue=null,n=Yo(t,r,n,i),Jo(e),r=Zo(),e!==null&&!Oc?(Qo(e,t,a),il(e,t,a)):(ea&&r&&Yi(t),t.flags|=1,kc(e,t,n,a),t.child)}function Hc(e,t,n,r,i){if(_a(t),t.stateNode===null){var a=Ei,o=n.contextType;typeof o==`object`&&o&&(a=va(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=mc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},so(t),o=n.contextType,a.context=typeof o==`object`&&o?va(o):Ei,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(pc(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&&mc.enqueueReplaceState(a,a.state,null),go(t,r,a,i),ho(),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=_c(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ei,typeof u==`object`&&u&&(o=va(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)&&gc(t,a,r,o),oo=!1;var f=t.memoizedState;a.state=f,go(t,r,a,i),ho(),l=t.memoizedState,s||f!==l||oo?(typeof d==`function`&&(pc(t,n,d,r),l=t.memoizedState),(c=oo||hc(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,co(e,t),o=t.memoizedProps,u=_c(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ei,typeof l==`object`&&l&&(c=va(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)&&gc(t,a,r,c),oo=!1,f=t.memoizedState,a.state=f,go(t,r,a,i),ho();var p=t.memoizedState;o!==d||f!==p||oo||e!==null&&e.dependencies!==null&&ga(e.dependencies)?(typeof s==`function`&&(pc(t,n,s,r),p=t.memoizedState),(u=oo||hc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ga(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,zc(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=io(t,e.child,null,i),t.child=io(t,null,n,i)):kc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=il(e,t,i),e}function Uc(e,t,n,r){return aa(),t.flags|=256,kc(e,t,n,r),t.child}var Wc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:Va()}}function Kc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=dd),e}function qc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(jo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(ea){if(i?Eo(t):ko(),(e=$i)?(e=cm(e,ta),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wi===null?null:{id:Gi,overflow:Ki},retryLane:536870912,hydrationErrors:null},n=Pi(e),n.return=t,t.child=n,Qi=t,$i=null)):e=null,e===null)throw na(t);return t.lanes=um(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(ko(),i=t.mode,a=Yc({mode:`hidden`,children:a},i),r=W(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Gc(n),r.childLanes=Kc(e,o,n),t.memoizedState=Wc,Pc(null,r)):(Eo(t),Jc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return Zc(e,t,a,o,r,c,s,n)}return i?(ko(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Ai(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=W(i,a,n,null),i.flags|=2):i=Ai(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Pc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Gc(n):(a=i.cachePool,a===null?a=Va():(s=wa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Kc(e,o,n),t.memoizedState=Wc,Pc(e.child,r)):(Eo(t),n=e.child,e=n.sibling,n=Ai(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 Jc(e,t){return t=Yc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Yc(e,t){return e=Oi(22,e,null,t),e.lanes=0,e}function Xc(e,t,n){return io(t,e.child,null,n),e=Jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zc(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Eo(t),t.flags&=-257,Xc(e,t,c)):t.memoizedState===null?(ko(),o=a.fallback,s=t.mode,a=Yc({mode:`visible`,children:a.children},s),o=W(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,io(t,e.child,null,c),a=t.child,a.memoizedState=Gc(c),a.childLanes=Kc(e,r,c),t.memoizedState=Wc,Pc(null,a)):(ko(),t.child=e.child,t.flags|=128,null);if(Eo(t),um(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,sa({value:a,source:null,stack:null})),Xc(e,t,c)}if(Oc||ha(e,t,c,!1),r=(c&e.childLanes)!==0,Oc||r){if(yo.current!==null)return Xc(e,t,c);if(r=Qu,r!==null&&(a=gt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,wi(e,a),Id(r,e,a),Dc;return lm(o)||Jd(),Xc(e,t,c)}return lm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,$i=dm(o.nextSibling),Qi=t,ea=!0,G=null,ta=!1,e!==null&&Zi(t,e),t=Jc(t,a.children),t.flags|=134221824,t)}function Qc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),pa(e.return,t,n)}function $c(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Po(n)===null&&(t=e),e=e.sibling}return t}function el(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 tl(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 nl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=jo.current;if(t.flags&128)return Mo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Mo(t,o),i===`backwards`&&e!==null?(tl(e),kc(e,t,r,n),tl(e)):kc(e,t,r,n),r=ea?Vi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qc(e,n,t);else if(e.tag===19)Qc(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=$c(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,tl(t)),el(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&&Po(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}el(t,!0,n,null,a,r);break;case`together`:el(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=$c(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),el(t,!1,i,n,a,r)}return t.child}function rl(e,t,n){var r=t.pendingProps;return da(t,t.type,r.value),kc(e,t,r.children,n),t.child}function il(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ha(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=Ai(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ai(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function al(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ga(e)))}function ol(e,t,n){switch(t.tag){case 3:we(t,t.stateNode.containerInfo),da(t,wa,e.memoizedState.cache),aa();break;case 27:case 5:Ee(t);break;case 4:we(t,t.stateNode.containerInfo);break;case 10:da(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Do(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Eo(t),t.flags|=128,null;r=ha(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?qc(e,t,n):(Eo(t),e=il(e,t,n),e===null?null:e.sibling)}Eo(t);break;case 19:if(t.flags&128)return nl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ha(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return nl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Mo(t,jo.current),r)break;return null;case 22:return t.lanes=0,Nc(e,t,n,t.pendingProps);case 24:da(t,wa,e.memoizedState.cache)}return il(e,t,n)}function sl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Oc=!0;else{if(!al(e,n)&&!(t.flags&128))return Oc=!1,ol(e,t,n);Oc=!!(e.flags&131072)}}else Oc=!1,ea&&t.flags&1048576&&Ji(t,Vi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ja(t.elementType),t.type=e,typeof e==`function`)ki(e)?(r=_c(e,r),t.tag=1,t=Hc(null,t,e,r,n)):(t.tag=0,t=Bc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===P){t.tag=11,t=Ac(null,t,e,r,n);break a}if(a===re){t.tag=14,t=jc(null,t,e,r,n);break a}if(a===te){t.tag=10,t.type=e,t=rl(null,t,n);break a}}throw t=fe(e)||e,Error(i(306,t,``))}}return t;case 0:return Bc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=_c(r,t.pendingProps),Hc(e,t,r,a,n);case 3:a:{if(we(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,co(e,t),go(t,r,null,n);var s=t.memoizedState;if(r=s.cache,da(t,wa,r),r!==o.cache&&ma(t,[wa],n,!0),ho(),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=Uc(e,t,r,n);break a}if(r!==a){a=Li(Error(i(424)),t),sa(a),t=Uc(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($i=dm(e.firstChild),Qi=t,ea=!0,G=null,ta=!0,n=ao(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(aa(),r===a){t=il(e,t,n);break a}kc(e,t,r,n)}t=t.child}return t;case 26:return zc(e,t),e===null?(n=Fm(t.type,null,t.pendingProps,null))?t.memoizedState=n:ea||(t.stateNode=hp(t.type,t.pendingProps,Se.current,t)):t.memoizedState=Fm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ee(t),e===null&&ea&&(r=t.stateNode=_m(t.type,t.pendingProps,Se.current),Qi=t,ta=!0,a=$i,Tp(t.type)?(fm=a,$i=dm(r.firstChild)):$i=a),kc(e,t,t.pendingProps.children,n),zc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ea&&((a=r=$i)&&(r=om(r,t.type,t.pendingProps,ta),r===null?a=!1:(t.stateNode=r,Qi=t,$i=dm(r.firstChild),ta=!1,a=!0)),a||na(t)),Ee(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,gp(a,o)?r=null:s!==null&&gp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=qo(e,t,Xo,null,null,n),lh._currentValue=a),zc(e,t),kc(e,t,r,n),t.child;case 6:return e===null&&ea&&((e=n=$i)&&(n=sm(n,t.pendingProps,ta),n===null?e=!1:(t.stateNode=n,Qi=t,$i=null,e=!0)),e||na(t)),null;case 13:return qc(e,t,n);case 4:return we(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=io(t,null,r,n):kc(e,t,r,n),t.child;case 11:return Ac(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,zc(e,t),kc(e,t,r,n),t.child;case 8:return kc(e,t,t.pendingProps.children,n),t.child;case 12:return kc(e,t,t.pendingProps.children,n),t.child;case 10:return rl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,_a(t),a=va(a),r=r(a),t.flags|=1,kc(e,t,r,n),t.child;case 14:return jc(e,t,t.type,t.pendingProps,n);case 15:return Mc(e,t,t.type,t.pendingProps,n);case 19:return nl(e,t,n);case 31:return Rc(e,t,n);case 22:return Nc(e,t,n,t.pendingProps);case 24:return _a(t),r=va(wa),e===null?(a=za(),a===null&&(a=Qu,o=Ta(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},so(t),da(t,wa,a)):((e.lanes&n)!==0&&(co(e,t),go(t,null,null,n),ho()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,da(t,wa,r),r!==a.cache&&ma(t,[wa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),da(t,wa,r))),kc(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:ea&&Yi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:zc(e,t),kc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function cl(e){e.flags|=4}function ll(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Xm(t,r):Xm(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(Gd())e.flags|=8192;else throw Ya=Ga,Ua}}else e.flags&=-16777217}function ul(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zm(t)){if(Gd())e.flags|=8192;else throw Ya=Ga,Ua}}function dl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ut(),e.lanes|=t,fd|=t)}function fl(e,t){if(!ea)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 pl(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 ml(e,t,n){var r=t.pendingProps;switch(Xi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pl(t),null;case 1:return pl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),fa(wa),Te(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ia(t)?cl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,oa())),pl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(cl(t),o===null?(pl(t),ll(t,a,null,r,n)):(pl(t),ul(t,o))):o?o===e.memoizedState?(pl(t),t.flags&=-16777217):(cl(t),pl(t),ul(t,o)):(e=e.memoizedProps,e!==r&&cl(t),pl(t),ll(t,a,e,r,n)),null;case 27:if(De(t),n=Se.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&cl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return pl(t),t.subtreeFlags&=-33554433,null}e=be.current,ia(t)?q(t,e):(e=_m(a,r,n),t.stateNode=e,cl(t))}return pl(t),t.subtreeFlags&=-33554433,null;case 5:if(De(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&cl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return pl(t),t.subtreeFlags&=-33554433,null}if(o=be.current,ia(t))q(t,o);else{var s=fp(Se.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[xt]=t,o[St]=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(ap(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&&cl(t)}}return pl(t),t.subtreeFlags&=-33554433,ll(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&cl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Se.current,ia(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Qi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[xt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||np(e.nodeValue,n)),e||na(t,!0)}else e=fp(e).createTextNode(r),e[xt]=t,t.stateNode=e}return pl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ia(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[xt]=t}else aa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pl(t),e=!1}else n=oa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ao(t),t):(Ao(t),null);if(t.flags&128)throw Error(i(558))}return pl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ia(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[xt]=t}else aa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pl(t),a=!1}else a=oa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Ao(t),t):(Ao(t),null)}return Ao(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),dl(t,t.updateQueue),pl(t),null);case 4:return Te(),e===null&&Kf(t.stateNode.containerInfo),t.flags|=67108864,pl(t),null;case 10:return fa(t.type),pl(t),null;case 19:if(No(t),r=t.memoizedState,r===null)return pl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)fl(r,!1);else{if(sd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Po(e),o!==null){for(t.flags|=128,fl(r,!1),e=o.updateQueue,t.updateQueue=e,dl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ji(n,e),n=n.sibling;return Mo(t,jo.current&1|2),ea&&qi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Be()>vd&&(t.flags|=128,a=!0,fl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Po(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,dl(t,e),fl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!ea)return pl(t),null}else 2*Be()-r.renderingStartTime>vd&&n!==536870912&&(t.flags|=128,a=!0,fl(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=Be(),e.sibling=null,o=jo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||ea?Mo(t,o):(n=o,ye(wo,t),ye(jo,n),To===null&&(To=t)),ea&&qi(t,r.treeForkCount),e}return pl(t),null;case 22:case 23:return Ao(t),Co(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(pl(t),t.subtreeFlags&6&&(t.flags|=8192)):pl(t),n=t.updateQueue,n!==null&&dl(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&&ve(Ra),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fa(wa),pl(t),null;case 25:return null;case 30:return t.flags|=33554432,pl(t),null}throw Error(i(156,t.tag))}function hl(e,t){switch(Xi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(wa),Te(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return De(t),null;case 31:if(t.memoizedState!==null){if(Ao(t),t.alternate===null)throw Error(i(340));aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ao(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return No(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 Te(),null;case 10:return fa(t.type),null;case 22:case 23:return Ao(t),Co(),e!==null&&ve(Ra),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(wa),null;case 25:return null;default:return null}}function gl(e,t){switch(Xi(t),t.tag){case 3:fa(wa),Te();break;case 26:case 27:case 5:De(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Ao(t);break;case 13:Ao(t);break;case 19:No(t);break;case 10:fa(t.type);break;case 22:case 23:Ao(t),Co(),e!==null&&ve(Ra);break;case 24:fa(wa)}}function _l(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){gf(t,t.return,e)}}function vl(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){gf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){gf(t,t.return,e)}}function yl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{vo(t,n)}catch(t){gf(e,e.return,t)}}}function bl(e,t,n){n.props=_c(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){gf(e,t,n)}}function xl(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=H(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Lp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Rp(e);p(e.child,!1,tm,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){gf(e,t,n)}}function Sl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){gf(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){gf(e,t,n)}else n.current=null}}function Cl(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++)rm(e.stateNode,t[n])}function wl(e){for(var t=e.return;t!==null&&(Dl(t)&&rm(e.stateNode,t.stateNode),!El(t));)t=t.return}function Tl(e){for(var t=e.return;t!==null&&(Dl(t)&&im(e.stateNode,t.stateNode),!El(t));)t=t.return}function El(e){return e.tag===5||e.tag===3||e.tag===27}function Dl(e){return e&&e.tag===7&&e.stateNode!==null}function Ol(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){gf(e,e.return,t)}}function kl(e,t,n){try{var r=e.stateNode;sp(r,e.type,n,t),r[St]=t}catch(t){gf(e,e.return,t)}}function Al(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tp(e.type)||e.tag===4}function jl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Al(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&&Tp(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 Ml(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=gn)),Cl(e,r),Ut=!0;else if(i!==4&&(i===27&&(Cl(e,r),r=null,Tp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Ml(e,t,n,r),e=e.sibling;e!==null;)Ml(e,t,n,r),e=e.sibling}function Nl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Cl(e,r),Ut=!0;else if(i!==4&&(i===27&&(Cl(e,r),r=null,Tp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Nl(e,t,n,r),e=e.sibling;e!==null;)Nl(e,t,n,r),e=e.sibling}function Pl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ap(t,r,n),t[xt]=e,t[St]=n}catch(t){gf(e,e.return,t)}}var Fl=!1,Il=null;function Ll(e){(e.tag===30||e.subtreeFlags&33554432)&&(Fl=!0)}var Rl=null;function zl(){var e=Rl;return Rl=null,e}var Bl=0;function Vl(e,t,n,r,i){return Bl=0,Hl(e.child,t,n,r,i)}function Hl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=jp(o);r.push(s),s.view&&(a=!0)}else a||jp(o).view&&(a=!0);Fl=!0,Op(o,Bl===0?t:t+`_`+Bl,n),Bl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Hl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Ul(e,t){for(;e!==null;)e.tag===5?kp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Ul(e.child,t)),e=e.sibling}function Wl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Wl(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=gi(t.default,t.share),t!==`none`&&(Vl(e,n,t,null,!1)||Ul(e.child,!1))}e=e.sibling}}function Gl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=H(r,n),a=gi(r.default,n.paired?r.share:r.enter);a===`none`?Wl(e):Vl(e,i,a,null,!1)?(Wl(e),n.paired||t||Fd(e,r.onEnter)):Ul(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Gl(e,t),e=e.sibling;else Wl(e)}function Kl(e){if(Il!==null&&Il.size!==0){var t=Il;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=gi(n.default,n.share);if(a!==`none`&&(Vl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Fd(e,n.onShare)):Ul(e.child,!1)),t.delete(r),t.size===0)break}}}Kl(e)}e=e.sibling}}}function ql(e){if(e.tag===30){var t=e.memoizedProps,n=H(t,e.stateNode),r=Il===null?void 0:Il.get(n),i=gi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Vl(e,n,i,null,!1)?r===void 0?Fd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Il.delete(n),Fd(e,t.onShare)):Ul(e.child,!1)),Il!==null&&Kl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e),e=e.sibling;else Il!==null&&Kl(e)}function Jl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=H(t,e.stateNode);t=gi(t.default,t.update),e.flags&=-5,t!==`none`&&Vl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Jl(e);e=e.sibling}}function Yl(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,Ul(e.child,!1))}Yl(e)}e=e.sibling}}function Xl(e){if(e.tag===30)e.stateNode.paired=null,Ul(e.child,!1),Yl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e),e=e.sibling;else Yl(e)}function Zl(e){for(e=e.child;e!==null;)e.tag===30?Ul(e.child,!1):e.subtreeFlags&33554432&&Zl(e),e=e.sibling}function Ql(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Bl<a.length){var l=a[Bl],u=jp(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&&Op(c,Bl===0?n:n+`_`+Bl,i),s&&e.flags&4||(Rl===null&&(Rl=[]),Rl.push(c,Bl===0?r:r+`_`+Bl,t.memoizedProps)),Bl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Ql(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function $l(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=H(n,r),a=gi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Mp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Bl=0,i=Ql(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Fd(e,n.onUpdate))}else e.subtreeFlags&33554432&&$l(e,t);e=e.sibling}}var eu=!1,tu=!1,nu=!1,ru=!1,iu=typeof WeakSet==`function`?WeakSet:Set,au=null,ou=!1,su=!1,cu=!1,lu=!1;function uu(e,t,n){if(e=e.containerInfo,up=vh,e=Gr(e),Kr(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(dp={focusedElem:e,selectionRange:r},vh=!1,n=(n&335544064)===n,au=t,t=n?9270:1024;au!==null;){if(e=au,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&ql(r[a]);if(e.alternate===null&&e.flags&2)n&&Ll(e),du(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&ql(r),du(n);continue}if(r!==null&&r.memoizedState!==null){n&&Ll(e),du(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,au=r):(n&&Jl(e),du(n))}}Il=null}function du(e){for(;au!==null;){var t=au,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=_c(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){gf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)am(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:am(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=H(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=gi(a.default,a.update),a!==`none`&&Vl(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,au=r;break}au=t.return}}function fu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Mu(e,n),r&4&&_l(5,n);break;case 1:if(Mu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){gf(n,n.return,e)}else{var i=_c(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){gf(n,n.return,e)}}}r&64&&yl(n),r&512&&xl(n,n.return);break;case 3:if(Mu(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{vo(e,t)}catch(e){gf(n,n.return,e)}}break;case 27:t===null&&r&4&&Pl(n);case 26:case 5:Mu(e,n),t===null&&r&4&&Ol(n),r&512&&xl(n,n.return);break;case 12:Mu(e,n);break;case 31:Mu(e,n),r&4&&xu(e,n);break;case 13:Mu(e,n),r&4&&Su(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=bf.bind(null,n),Z(e,n))));break;case 22:if(r=n.memoizedState!==null||eu,!r){var a=t!==null&&t.memoizedState!==null||tu;t=eu,i=tu,eu=r,(tu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Pu(e,n,r)):Mu(e,n),eu=t,tu=i}break;case 30:Mu(e,n),r&512&&xl(n,n.return);break;case 7:r&512&&xl(n,n.return);default:Mu(e,n)}}function pu(e,t){for(e=e.child;e!==null;)mu(e,t),e=e.sibling}function mu(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){gf(e,e.return,t)}hu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Ut=!0}catch(t){gf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Dp(s,!0):Dp(e.stateNode,!1)}catch(t){gf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&pu(e,t);break;default:pu(e,t)}}function hu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:mu(n,r);break a;case 22:n.memoizedState===null&&hu(n,r);break a;default:hu(n,r)}}e=e.sibling}}function gu(e){var t=e.alternate;t!==null&&(e.alternate=null,gu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ot(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 _u=null,vu=!1;function yu(e,t,n){for(n=n.child;n!==null;)bu(e,t,n),n=n.sibling}function bu(e,t,n){if(Xe&&typeof Xe.onCommitFiberUnmount==`function`)try{Xe.onCommitFiberUnmount(Ye,n)}catch{}switch(n.tag){case 26:tu||Sl(n,t),yu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!tu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tu||Sl(n,t),Tl(n);var r=_u,i=vu;Tp(n.type)&&(_u=n.stateNode,vu=!1),yu(e,t,n),vm(n.stateNode,n.type,n.memoizedProps),_u=r,vu=i;break;case 5:tu||Sl(n,t),Tl(n);case 6:if(n.tag===6&&Tl(n),r=_u,i=vu,_u=null,yu(e,t,n),_u=r,vu=i,_u!==null){if(vu)try{(_u.nodeType===9?_u.body:_u.nodeName===`HTML`?_u.ownerDocument.body:_u).removeChild(n.stateNode),Ut=!0}catch(e){gf(n,t,e)}else try{_u.removeChild(n.stateNode),Ut=!0}catch(e){gf(n,t,e)}}break;case 18:_u!==null&&(vu?(e=_u,Ep(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Wh(e)):Ep(_u,n.stateNode));break;case 4:r=_u,i=vu,_u=n.stateNode.containerInfo,vu=!0,yu(e,t,n),_u=r,vu=i;break;case 0:case 11:case 14:case 15:vl(2,n,t),tu||vl(4,n,t),yu(e,t,n);break;case 1:tu||(Sl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&bl(n,t,r)),yu(e,t,n);break;case 21:yu(e,t,n);break;case 22:tu=(r=tu)||n.memoizedState!==null,yu(e,t,n),tu=r;break;case 30:Sl(n,t),yu(e,t,n);break;case 7:tu||Sl(n,t),yu(e,t,n);break;default:yu(e,t,n)}}function xu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wh(e)}catch(e){gf(t,t.return,e)}}}function Su(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wh(e)}catch(e){gf(t,t.return,e)}}function Cu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new iu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new iu),t;default:throw Error(i(435,e.tag))}}function wu(e,t){var n=Cu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=xf.bind(null,e,t);t.then(r,r)}})}function Tu(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(Tp(l.type)){_u=l.stateNode,vu=!1;break a}break;case 5:_u=l.stateNode,vu=!1;break a;case 3:case 4:_u=l.stateNode.containerInfo,vu=!0;break a}l=l.return}if(_u===null)throw Error(i(160));bu(s,c,o),_u=null,vu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Du(t,e,n),t=t.sibling}var Eu=null;function Du(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}Tu(t,e,n),Ou(e),a&4&&(vl(3,e,e.return),_l(3,e),vl(5,e,e.return));break;case 1:Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),a&64&&eu&&(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=Eu,Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Sl(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(eu)e.stateNode=hp(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[Et]||r[xt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),ap(r,t,n),r[xt]=e,Nt(r),t=r;break a;case`link`:if(o=qm(`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),ap(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=qm(`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),ap(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[xt]=e,Nt(r),t=r}e.stateNode=t}}else eu||Jm(o,e.type,e.stateNode)}else e.stateNode=Hm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&kl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||tu||t.parentNode.removeChild(t)):a.count--,n===null?eu||Jm(o,e.type,e.stateNode):Hm(o,n,e.memoizedProps))}break;case 27:Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),r!==null&&a&4&&kl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=nu,nu=!1,Tu(t,e,n),nu=o,Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),e.flags&32){t=e.stateNode;try{cn(t,``),Ut=!0}catch(t){gf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,kl(e,t,r===null?t:r.memoizedProps)),a&1024&&(ru=!0);break;case 6:if(Tu(t,e,n),Ou(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Ut=!0}catch(t){gf(e,e.return,t)}}break;case 3:if(Ut=!1,Km=null,o=Eu,Eu=Sm(t.containerInfo),Tu(t,e,n),Eu=o,Ou(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Wh(t.containerInfo)}catch(t){gf(e,e.return,t)}ru&&(ru=!1,ku(e)),Ut=!1;break;case 4:a=nu,nu=eu,r=Wt(),o=Eu,Eu=Sm(e.stateNode.containerInfo),Tu(t,e,n),Ou(e),Eu=o,Ut&&su&&(cu=!0),Ut=r,nu=a;break;case 12:Tu(t,e,n),Ou(e);break;case 31:Tu(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 13:Tu(t,e,n),Ou(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(gd=Be()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=eu,l=tu,u=nu;eu=c||o,nu=u||o,tu=l||s,Tu(t,e,n),tu=l,nu=u,eu=c,Ou(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||eu||tu||(t=s||tu,n=eu,r=tu,eu=o||eu,tu=t,Nu(e,2),eu=n,tu=r),!o&&nu||pu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,wu(e,n))));break;case 19:Tu(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 30:a&512&&(tu||r===null||Sl(r,r.return)),a=Wt(),o=su,s=(n&335544064)===n,c=e.memoizedProps,su=s&&gi(c.default,c.update)!==`none`,Tu(t,e,n),Ou(e),s&&r!==null&&Ut&&(e.flags|=4),su=o,Ut=a;break;case 21:break;case 7:a&512&&(tu||r===null||Sl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Tu(t,e,n),Ou(e)}}function Ou(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Al(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Dl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(El(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Nl(e,jl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(cn(l,``),n.flags&=-33),Nl(e,jl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Ml(e,jl(e),u,s);break;default:throw Error(i(161))}}catch(t){gf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ku(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ku(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,vh=!0,t.reset(),vh=!1),e=e.sibling}}function Au(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ju(t,e),t=t.sibling;else $l(t,!1)}function ju(e,t){var n=e.alternate;if(n===null)Gl(e,!1);else switch(e.tag){case 3:if(lu=ou=!1,zl(),Au(t,e),!ou&&!cu){if(e=Rl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];kp(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`})),lu=!0}Rl=null;break;case 5:Au(t,e);break;case 4:r=ou,ou=!1,Au(t,e),ou&&(cu=!0),ou=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Au(t,e):Gl(e,!1));break;case 30:r=ou,i=zl(),ou=!1,Au(t,e),ou&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=H(a,o),o=H(n.memoizedProps,o);var s=gi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Bl=0,t=Ql(e,n,t,o,s,a,!0),Bl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Fd(e,e.memoizedProps.onUpdate),Rl=i):i!==null&&(i.push.apply(i,Rl),Rl=i),ou=e.flags&32?!0:r;break;default:Au(t,e)}}function Mu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fu(e,t.alternate,t),t=t.sibling}function Nu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:vl(4,n,n.return),Nu(n,r);break;case 1:Sl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&bl(n,n.return,i),Nu(n,r);break;case 27:r&2&&vm(n.stateNode,n.type,n.memoizedProps);case 5:Sl(n,n.return),n.tag!==5&&n.tag!==27||Tl(n),Nu(n,r);break;case 6:Tl(n);break;case 26:Sl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||tu||i.parentNode.removeChild(i),Nu(n,r);break;case 22:n.memoizedState===null&&Nu(n,r);break;case 30:Sl(n,n.return),Nu(n,r);break;case 7:Sl(n,n.return);default:Nu(n,r)}e=e.sibling}}function Pu(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:Pu(i,a,n),_l(4,a);break;case 1:if(Pu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){gf(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++)_o(l[i],c)}catch(e){gf(r,r.return,e)}}s&&o&64&&yl(a),xl(a,a.return);break;case 27:n&2&&Pl(a);case 5:a.tag!==5&&a.tag!==27||wl(a),Pu(i,a,n),s&&r===null&&o&4&&Ol(a),xl(a,a.return);break;case 6:wl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||eu||Jm(Sm(c.ownerDocument),a.type,c),Pu(i,a,n),s&&r===null&&o&4&&Ol(a),xl(a,a.return);break;case 12:Pu(i,a,n);break;case 31:Pu(i,a,n),s&&o&4&&xu(i,a);break;case 13:Pu(i,a,n),s&&o&4&&Su(i,a);break;case 22:a.memoizedState===null&&Pu(i,a,n),xl(a,a.return);break;case 30:Pu(i,a,n),xl(a,a.return);break;case 7:xl(a,a.return);default:Pu(i,a,n)}t=t.sibling}}function Fu(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&&Ea(n))}function Iu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ea(e))}function Lu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Ru(e,t,n,r),t=t.sibling;else i&&Zl(t)}function Ru(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Xl(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Lu(e,t,n,r),a&2048&&_l(9,t);break;case 1:Lu(e,t,n,r);break;case 3:Lu(e,t,n,r),i&&lu&&(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&&Ea(a)));break;case 12:if(a&2048){Lu(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){gf(t,t.return,e)}}else Lu(e,t,n,r);break;case 31:Lu(e,t,n,r);break;case 13:Lu(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&&Xl(t),o._visibility&2?Lu(e,t,n,r):(o._visibility|=2,zu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Xl(s),o._visibility&2?Lu(e,t,n,r):Bu(e,t)),a&2048&&Fu(s,t);break;case 24:Lu(e,t,n,r),a&2048&&Iu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Ul(a.child,!0),Ul(t.child,!0))),Lu(e,t,n,r);break;default:Lu(e,t,n,r)}}function zu(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:zu(a,o,s,c,i),_l(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,zu(a,o,s,c,i)):u._visibility&2?zu(a,o,s,c,i):Bu(a,o),i&&l&2048&&Fu(o.alternate,o);break;case 24:zu(a,o,s,c,i),i&&l&2048&&Iu(o.alternate,o);break;default:zu(a,o,s,c,i)}t=t.sibling}}function Bu(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:Bu(n,r),i&2048&&Fu(r.alternate,r);break;case 24:Bu(n,r),i&2048&&Iu(r.alternate,r);break;default:Bu(n,r)}t=t.sibling}}var Vu=8192;function Hu(e,t,n){if(e.subtreeFlags&Vu)for(e=e.child;e!==null;)Uu(e,t,n),e=e.sibling}function Uu(e,t,n){switch(e.tag){case 26:Hu(e,t,n),e.flags&Vu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&$m(n,e)):eh(n,Eu,e.memoizedState,e.memoizedProps));break;case 5:Hu(e,t,n),e.flags&Vu&&(e=e.stateNode,(t&335544128)===t&&$m(n,e));break;case 3:case 4:var r=Eu;Eu=Sm(e.stateNode.containerInfo),Hu(e,t,n),Eu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Vu,Vu=16777216,Hu(e,t,n),Vu=r):Hu(e,t,n));break;case 30:if((e.flags&Vu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Il===null&&(Il=new Map),Il.set(r,i)}Hu(e,t,n);break;default:Hu(e,t,n)}}function Wu(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 Gu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ku(e),e=e.sibling}function Ku(e){switch(e.tag){case 0:case 11:case 15:Gu(e),e.flags&2048&&vl(9,e,e.return);break;case 3:Gu(e);break;case 12:Gu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qu(e)):Gu(e);break;default:Gu(e)}}function qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vl(8,t,t.return),qu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,qu(t));break;default:qu(t)}e=e.sibling}}function Ju(e,t){for(;au!==null;){var n=au;switch(n.tag){case 0:case 11:case 15:vl(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:Ea(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,au=r;else a:for(n=e;au!==null;){r=au;var i=r.sibling,a=r.return;if(gu(r),r===n){au=null;break a}if(i!==null){i.return=a,au=i;break a}au=a}}}var Yu={getCacheForType:function(e){var t=va(wa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return va(wa).controller.signal}},Xu=typeof WeakMap==`function`?WeakMap:Map,Zu=0,Qu=null,$u=null,ed=0,td=0,nd=null,rd=!1,id=!1,ad=!1,od=0,sd=0,cd=0,ld=0,ud=0,dd=0,fd=0,pd=null,md=null,hd=!1,gd=0,_d=0,vd=1/0,yd=null,bd=null,xd=0,Sd=null,Cd=null,wd=0,Td=0,Ed=null,Dd=null,Od=null,kd=null,Ad=null,jd=0,Md=null;function Nd(){return Zu&2&&ed!==0?ed&-ed:L.T===null?yt():Ff()}function Pd(){if(dd===0){if(!(ed&536870912)||ea){var e=rt;rt<<=1,!(rt&3932160)&&(rt=262144),dd=e}else dd=536870912}return e=wo.current,e!==null&&(e.flags|=32),dd}function Fd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Lp(H(e.memoizedProps,n))),kd===null&&(kd=[]),kd.push(t.bind(null,r))}}function Id(e,t,n){(e===Qu&&(td===2||td===9)||e.cancelPendingCommit!==null)&&(Ud(e,0),Bd(e,ed,dd,!1)),ft(e,n),(!(Zu&2)||e!==Qu)&&(e===Qu&&(!(Zu&2)&&(ld|=n),sd===4&&Bd(e,ed,dd,!1)),X(e))}function Ld(e,t,n){if(Zu&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||st(e,t),a=r?Zd(e,t):Yd(e,t,!0),o=r;do{if(a===0){id&&!r&&Bd(e,t,0,!1);break}if(n=e.current.alternate,o&&!zd(n))a=Yd(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=pd;var l=c.current.memoizedState.isDehydrated;if(l&&(Ud(c,s).flags|=256),s=Yd(c,s,!1),s!==2&&s!==6){if(ad&&!l){c.errorRecoveryDisabledLanes|=o,ld|=o,a=4;break a}o=md,md=a,o!==null&&(md===null?md=o:md.push.apply(md,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Ud(e,0),Bd(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:Bd(r,t,dd,!rd);break a;case 2:md=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=gd+300-Be(),10<a)){if(Bd(r,t,dd,!rd),ot(r,0,!0)!==0)break a;wd=t,r.timeoutHandle=yp(Rd.bind(null,r,n,md,yd,hd,t,dd,ld,fd,rd,o,`Throttled`,-0,0),a);break a}Rd(r,n,md,yd,hd,t,dd,ld,fd,rd,o,null,-0,0)}break}}while(1);X(e)}function Rd(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:gn},Il=null,Uu(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=ih.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?gd-Be():(a&4194048)===a?_d-Be():0,m=nh(d,m),m!==null)?(wd=a,e.cancelPendingCommit=m(af.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Bd(e,a,o,!l)):af(e,t,a,n,r,i,o,s,c,l,u,d)}function zd(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(!zr(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 Bd(e,t,n,r){t=ct(e,t),t&=~ud,t&=~ld,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&mt(e,n,t)}function Vd(){return Zu&6?!0:(Of(0,!1),!1)}function Hd(){if($u!==null){if(td===0)var e=$u.return;else e=$u,ua=la=null,$o(e),Qa=null,$a=0,e=$u;for(;e!==null;)gl(e.alternate,e),e=e.return;$u=null}}function Ud(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,bp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),wd=0,Hd(),Qu=e,$u=n=Ai(e.current,null),ed=t,td=0,nd=null,rd=!1,id=st(e,t),ad=!1,fd=dd=ud=ld=cd=sd=0,md=pd=null,hd=!1,od=ct(e,t),xi(),n}function Wd(e,t){J=null,L.H=lc,t===Ha||t===Wa?(t=Xa(),td=3):t===Ua?(t=Xa(),td=4):td=t===Dc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,nd=t,$u===null&&(sd=1,xc(e,Li(t,e.current)))}function Gd(){var e=wo.current;return e===null?!0:(ed&4194048)===ed?To===null:(ed&62914560)===ed||ed&536870912?e===To:!1}function Kd(){var e=L.H;return L.H=lc,e===null?lc:e}function qd(){var e=L.A;return L.A=Yu,e}function Jd(){sd=4,rd||(ed&4194048)!==ed&&wo.current!==null||(id=!0),!(cd&134217727)&&!(ld&134217727)||Qu===null||Bd(Qu,ed,dd,!1)}function Yd(e,t,n){var r=Zu;Zu|=2;var i=Kd(),a=qd();(Qu!==e||ed!==t)&&(yd=null,Ud(e,t)),t=!1;var o=sd;a:do try{if(td!==0&&$u!==null){var s=$u,c=nd;switch(td){case 8:Hd(),o=6;break a;case 3:case 2:case 9:case 6:wo.current===null&&(t=!0);var l=td;if(td=0,nd=null,tf(e,s,c,l),n&&id){o=0;break a}break;default:l=td,td=0,nd=null,tf(e,s,c,l)}}Xd(),o=sd;break}catch(t){Wd(e,t)}while(1);return t&&e.shellSuspendCounter++,ua=la=null,Zu=r,L.H=i,L.A=a,$u===null&&(Qu=null,ed=0,xi()),o}function Xd(){for(;$u!==null;)$d($u)}function Zd(e,t){var n=Zu;Zu|=2;var r=Kd(),a=qd();Qu!==e||ed!==t?(yd=null,vd=Be()+500,Ud(e,t)):id=st(e,t);a:do try{if(td!==0&&$u!==null){t=$u;var o=nd;b:switch(td){case 1:td=0,nd=null,tf(e,t,o,1);break;case 2:case 9:if(Ka(o)){td=0,nd=null,ef(t);break}t=function(){td!==2&&td!==9||Qu!==e||(td=7),X(e)},o.then(t,t);break a;case 3:td=7;break a;case 4:td=5;break a;case 7:Ka(o)?(td=0,nd=null,ef(t)):(td=0,nd=null,tf(e,t,o,7));break;case 5:var s=null;switch($u.tag){case 26:s=$u.memoizedState;case 5:case 27:var c=$u;if(s?Zm(s):c.stateNode.complete){td=0,nd=null;var l=c.sibling;if(l!==null)$u=l;else{var u=c.return;u===null?$u=null:($u=u,nf(u))}break b}}td=0,nd=null,tf(e,t,o,5);break;case 6:td=0,nd=null,tf(e,t,o,6);break;case 8:Hd(),sd=6;break a;default:throw Error(i(462))}}Qd();break}catch(t){Wd(e,t)}while(1);return ua=la=null,L.H=r,L.A=a,Zu=n,$u===null?(Qu=null,ed=0,xi(),sd):0}function Qd(){for(;$u!==null&&!Re();)$d($u)}function $d(e){var t=sl(e.alternate,e,od);e.memoizedProps=e.pendingProps,t===null?nf(e):$u=t}function ef(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Vc(n,t,t.pendingProps,t.type,void 0,ed);break;case 11:t=Vc(n,t,t.pendingProps,t.type.render,t.ref,ed);break;case 5:$o(t);var r=t;r===Qi&&(ea?(ra(r),r.tag===5&&r.stateNode!=null&&($i=r.stateNode)):(ra(r),ea=!0));default:gl(n,t),t=$u=ji(t,od),t=sl(n,t,od)}e.memoizedProps=e.pendingProps,t===null?nf(e):$u=t}function tf(e,t,n,r){ua=la=null,$o(t),Qa=null,$a=0;var i=t.return;try{if(Ec(e,i,t,n,ed)){sd=1,xc(e,Li(n,e.current)),$u=null;return}}catch(t){if(i!==null)throw $u=i,t;sd=1,xc(e,Li(n,e.current)),$u=null;return}t.flags&32768?(ea||r===1?e=!0:id||ed&536870912?e=!1:(rd=e=!0,(r===2||r===9||r===3||r===6)&&(r=wo.current,r!==null&&r.tag===13&&(r.flags|=16384))),rf(t,e)):nf(t)}function nf(e){var t=e;do{if(t.flags&32768){rf(t,rd);return}e=t.return;var n=ml(t.alternate,t,od);if(n!==null){$u=n;return}if(t=t.sibling,t!==null){$u=t;return}$u=t=e}while(t!==null);sd===0&&(sd=5)}function rf(e,t){do{var n=hl(e.alternate,e);if(n!==null){n.flags&=32767,$u=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){$u=e;return}$u=e=n}while(e!==null);sd=6,$u=null}function af(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do pf();while(xd!==0);if(Zu&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Qu&&($u=Qu=null,ed=0),Cd=t,Sd=e,wd=n,Ed=a,Dd=r,of(e,t,n,s,c,l,f)}}function of(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Td=s,s|=bi,pt(e,n,s,r,i,a),kd=null,(n&335544064)===n?(Ad=ka(e),r=10262):(Ad=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Sf(We,function(){return mf(),null})):(e.callbackNode=null,e.callbackPriority=0),Fl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=L.T,L.T=null,i=R.p,R.p=2,a=Zu,Zu|=4;try{uu(e,t,n)}finally{Zu=a,R.p=i,L.T=r}}xd=1,Fl?Od=Fp(o,e.containerInfo,Ad,lf,uf,cf,df,mf,sf,null,null):(lf(),uf(),df())}function sf(e){if(xd!==0){var t=Sd.onRecoverableError;t(e,{componentStack:null})}}function cf(){xd===3&&(xd=0,ju(Cd,Sd),xd=4)}function lf(){if(xd===1){xd=0;var e=Sd,t=Cd,n=wd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=L.T,L.T=null;var i=R.p;R.p=2;var a=Zu;Zu|=4;try{su=cu=!1,Du(t,e,n),n=dp;var o=Gr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Wr(s.ownerDocument.documentElement,s)){if(c!==null&&Kr(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 _=Ur(s,h),v=Ur(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}}vh=!!up,dp=up=null}finally{Zu=a,R.p=i,L.T=r}}e.current=t,xd=2}}function uf(){if(xd===2){xd=0;var e=Sd,t=Cd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=L.T,L.T=null;var r=R.p;R.p=2;var i=Zu;Zu|=4;try{fu(e,t.alternate,t)}finally{Zu=i,R.p=r,L.T=n}}xd=3}}function df(){if(xd===4||xd===3){xd=0;var e=Od;Od=null,ze();var t=Sd,n=Cd,r=wd,i=Dd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?xd=5:(xd=0,Cd=Sd=null,ff(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(bd=null),vt(r),n=n.stateNode,Xe&&typeof Xe.onCommitFiberRoot==`function`)try{Xe.onCommitFiberRoot(Ye,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=L.T,a=R.p,R.p=2,L.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{L.T=n,R.p=a}}if(i=kd,o=Ad,Ad=null,i!==null&&(kd=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);wd&3&&pf(),X(t),a=t.pendingLanes,r&261930&&a&42?t===Md?jd++:(jd=0,Md=t):(jd=0,Md=null),Of(0,!1)}}function ff(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ea(t)))}function pf(){return Od!==null&&(Od.skipTransition(),Od=null),lf(),uf(),df(),mf()}function mf(){if(xd!==5)return!1;var e=Sd,t=Td;Td=0;var n=vt(wd),r=L.T,a=R.p;try{R.p=32>n?32:n,L.T=null,n=Ed,Ed=null;var o=Sd,s=wd;if(xd=0,Cd=Sd=null,wd=0,Zu&6)throw Error(i(331));var c=Zu;if(Zu|=4,Ku(o.current),Ru(o,o.current,s,n),Zu=c,Of(0,!1),Xe&&typeof Xe.onPostCommitFiberRoot==`function`)try{Xe.onPostCommitFiberRoot(Ye,o)}catch{}return!0}finally{R.p=a,L.T=r,ff(e,t)}}function hf(e,t,n){t=Li(n,t),t=Cc(e.stateNode,t,2),e=uo(e,t,2),e!==null&&(ft(e,2),X(e))}function gf(e,t,n){if(e.tag===3)hf(e,e,n);else for(;t!==null;){if(t.tag===3){hf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(bd===null||!bd.has(r))){e=Li(n,e),n=wc(2),r=uo(t,n,2),r!==null&&(Tc(n,r,t,e),ft(r,2),X(r));break}}t=t.return}}function _f(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xu;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)||(ad=!0,i.add(n),e=vf.bind(null,e,t,n),t.then(e,e))}function vf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Qu===e&&(ed&n)===n&&(sd===4||sd===3&&(ed&62914560)===ed&&300>Be()-gd?Zu&2?ud|=n:Ud(e,0):ud|=n,fd===ed&&(fd=0)),X(e)}function yf(e,t){t===0&&(t=ut()),e=wi(e,t),e!==null&&(ft(e,t),X(e))}function bf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yf(e,n)}function xf(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),yf(e,n)}function Sf(e,t){return Ie(e,t)}var Cf=null,wf=null,Tf=!1,Y=!1,Ef=!1,Df=0;function X(e){e!==wf&&e.next===null&&(wf===null?Cf=wf=e:wf=wf.next=e),Y=!0,Tf||(Tf=!0,Pf())}function Of(e,t){if(!Ef&&Y){Ef=!0;do for(var n=!1,r=Cf;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-Qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Nf(r,a))}else a=ed,a=ot(r,r===Qu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||st(r,a)||(n=!0,Nf(r,a))}r=r.next}while(n);Ef=!1}}function kf(){Af()}function Af(){Y=Tf=!1;var e=0;Df!==0&&vp()&&(e=Df);for(var t=Be(),n=null,r=Cf;r!==null;){var i=r.next,a=jf(r,t);a===0?(r.next=null,n===null?Cf=i:n.next=i,i===null&&(wf=n)):(n=r,(e!==0||a&3)&&(Y=!0)),r=i}xd!==0&&xd!==5||Of(e,!1),Df!==0&&(Df=0)}function jf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=lt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Qu,n=ed,n=ot(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(td===2||td===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Le(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||st(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Le(r),vt(n)){case 2:case 8:n=Ue;break;case 32:n=We;break;case 268435456:n=Ke;break;default:n=We}return r=Mf.bind(null,e),n=Ie(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Le(r),e.callbackPriority=2,e.callbackNode=null,2}function Mf(e,t){if(xd!==0&&xd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(pf()&&e.callbackNode!==n)return null;var r=ed;return r=ot(e,e===Qu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Ld(e,r,t),jf(e,Be()),e.callbackNode!=null&&e.callbackNode===n?Mf.bind(null,e):null)}function Nf(e,t){if(pf())return null;Ld(e,t,!0)}function Pf(){Cp(function(){Zu&6?Ie(He,kf):Af()})}function Ff(){if(Df===0){var e=Ma;e===0&&(e=nt,nt<<=1,!(nt&261888)&&(nt=256)),Df=e}return Df}function If(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:hn(e)}function Lf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=If((i[St]||null).action),o=r.submitter;o&&(t=(t=o[St]||null)?If(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Ln(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Df!==0){var e=new FormData(i,o);Ys(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Ys(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Rf=0;Rf<fi.length;Rf++){var zf=fi[Rf];pi(zf.toLowerCase(),`on`+(zf[0].toUpperCase()+zf.slice(1)))}pi(ii,`onAnimationEnd`),pi(ai,`onAnimationIteration`),pi(oi,`onAnimationStart`),pi(`dblclick`,`onDoubleClick`),pi(`focusin`,`onFocus`),pi(`focusout`,`onBlur`),pi(si,`onTransitionRun`),pi(ci,`onTransitionStart`),pi(li,`onTransitionCancel`),pi(ui,`onTransitionEnd`),Rt(`onMouseEnter`,[`mouseout`,`mouseover`]),Rt(`onMouseLeave`,[`mouseout`,`mouseover`]),Rt(`onPointerEnter`,[`pointerout`,`pointerover`]),Rt(`onPointerLeave`,[`pointerout`,`pointerover`]),Lt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Lt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Lt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Lt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Bf=`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(` `),Vf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Bf));function Hf(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){_i(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){_i(e)}i.currentTarget=null,a=c}}}}function Uf(e,t){var n=t[wt];n===void 0&&(n=t[wt]=new Set);var r=e+`__bubble`;n.has(r)||(qf(t,e,2,!1),n.add(r))}function Wf(e,t,n){var r=0;t&&(r|=4),qf(n,e,r,t)}var Gf=`_reactListening`+Math.random().toString(36).slice(2);function Kf(e){if(!e[Gf]){e[Gf]=!0,Ft.forEach(function(t){t!==`selectionchange`&&(Vf.has(t)||Wf(t,!1,e),Wf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gf]||(t[Gf]=!0,Wf(`selectionchange`,!1,t))}}function qf(e,t,n,r){switch(Th(t)){case 2:var i=yh;break;case 8:i=bh;break;default:i=xh}n=i.bind(null,t,n,e),i=void 0,!En||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 Jf(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=kt(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}Cn(function(){var r=a,i=vn(n),s=[];a:{var c=di.get(e);if(c!==void 0){var l=Ln,u=e;switch(e){case`keypress`:if(Mn(n)===0)break a;case`keydown`:case`keyup`:l=tr;break;case`focusin`:u=`focus`,l=Kn;break;case`focusout`:u=`blur`,l=Kn;break;case`beforeblur`:case`afterblur`:l=Kn;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=Wn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Gn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=ir;break;case ii:case ai:case oi:l=qn;break;case ui:l=ar;break;case`scroll`:case`scrollend`:l=zn;break;case`wheel`:l=or;break;case`copy`:case`cut`:case`paste`:l=Jn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=nr;break;case`submit`:l=rr;break;case`toggle`:case`beforetoggle`:l=sr}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=wn(m,p),g!=null&&d.push(Yf(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!==_n&&(u=n.relatedTarget||n.fromElement)&&(kt(u)||u[Ct]))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?kt(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=Wn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=nr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:jt(c),h=l==null?u:jt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,kt(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,Zf):null,c!==null&&Qf(s,u,c,d,!1),l!==null&&f!==null&&Qf(s,f,l,d,!0)))}a:{if(c=r?jt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Dr;else if(xr(c)){if(Or)_=Lr;else{_=Fr;var v=Pr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&fn(r.elementType)&&(_=Dr):_=Ir;if(_&&=_(e,r)){Sr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?jt(r):window,e){case`focusin`:(xr(v)||v.contentEditable===`true`)&&(Jr=v,Yr=r,Xr=null);break;case`focusout`:Xr=Yr=Jr=null;break;case`mousedown`:Zr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Zr=!1,Qr(s,n,i);break;case`selectionchange`:if(qr)break;case`keydown`:case`keyup`:Qr(s,n,i)}var y;if(lr)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 _r?hr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(fr&&n.locale!==`ko`&&(_r||b!==`onCompositionStart`?b===`onCompositionEnd`&&_r&&(y=jn()):(On=i,kn=`value`in On?On.value:On.textContent,_r=!0)),v=Xf(r,b),0<v.length&&(b=new Yn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=gr(n),y!==null&&(b.data=y)))),(y=dr?vr(e,n):yr(e,n))&&(b=Xf(r,`onBeforeInput`),0<b.length&&(v=new Yn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Lf(s,e,r,n,i)}Hf(s,t)})}function Yf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xf(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=wn(e,n),i!=null&&r.unshift(Yf(e,i,a)),i=wn(e,t),i!=null&&r.push(Yf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Zf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Qf(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=wn(n,a),l!=null&&o.unshift(Yf(n,l,c))):i||(l=wn(n,a),l!=null&&o.push(Yf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var $f=/\r\n?/g,ep=/\u0000|\uFFFD/g;function tp(e){return(typeof e==`string`?e:``+e).replace($f,`
10
- `).replace(ep,``)}function np(e,t){return t=tp(t),tp(e)===t}function rp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&cn(e,``+r);else return;break;case`className`:Kt(e,`class`,r);break;case`tabIndex`:Kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Kt(e,n,r);break;case`style`:dn(e,r,o);return;case`data`:if(t!==`object`){Kt(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=hn(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`&&rp(e,t,`name`,a.name,a,null),rp(e,t,`formEncType`,a.formEncType,a,null),rp(e,t,`formMethod`,a.formMethod,a,null),rp(e,t,`formTarget`,a.formTarget,a,null)):(rp(e,t,`encType`,a.encType,a,null),rp(e,t,`method`,a.method,a,null),rp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=hn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=gn);return;case`onScroll`:r!=null&&Uf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Uf(`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=hn(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`:Uf(`beforetoggle`,e),Uf(`toggle`,e),Gt(e,`popover`,r);break;case`xlinkActuate`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Gt(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=pn.get(n)||n,Gt(e,n,r);else return}Ut=!0}function ip(e,t,n,r,a,o){switch(n){case`style`:dn(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`)cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)cn(e,``+r);else return;break;case`onScroll`:r!=null&&Uf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Uf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=gn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!It.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[St]||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}Ut=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Gt(e,n,r)}return}Ut=!0}function ap(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Uf(`error`,e),Uf(`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:rp(e,t,o,s,n,null)}}a&&rp(e,t,`srcSet`,n.srcSet,n,null),r&&rp(e,t,`src`,n.src,n,null);return;case`input`:Uf(`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:rp(e,t,r,d,n,null)}}nn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Uf(`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:rp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&an(e,!!r,n,!0):an(e,!!r,t,!1);return;case`textarea`:for(s in Uf(`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:rp(e,t,s,c,n,null)}sn(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:rp(e,t,l,r,n,null)}return;case`dialog`:Uf(`beforetoggle`,e),Uf(`toggle`,e),Uf(`cancel`,e),Uf(`close`,e);break;case`iframe`:case`object`:Uf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Bf.length;r++)Uf(Bf[r],e);break;case`image`:Uf(`error`,e),Uf(`load`,e);break;case`details`:Uf(`toggle`,e);break;case`embed`:case`source`:case`link`:Uf(`error`,e),Uf(`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:rp(e,t,u,r,n,null)}return;default:if(fn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&ip(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&rp(e,t,c,r,n,null))}var op={};function sp(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)||rp(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&&(Ut=!0),o=m;break;case`name`:m!==f&&(Ut=!0),a=m;break;case`checked`:m!==f&&(Ut=!0),u=m;break;case`defaultChecked`:m!==f&&(Ut=!0),d=m;break;case`value`:m!==f&&(Ut=!0),s=m;break;case`defaultValue`:m!==f&&(Ut=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&rp(e,t,p,m,r,f)}}tn(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)||rp(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&&(Ut=!0),p=o;break;case`defaultValue`:o!==l&&(Ut=!0),c=o;break;case`multiple`:o!==l&&(Ut=!0),s=o;default:o!==l&&rp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?an(e,!!n,n?[]:``,!1):an(e,!!n,t,!0)):an(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:rp(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&&(Ut=!0),p=a;break;case`defaultValue`:a!==o&&(Ut=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&rp(e,t,s,a,r,o)}on(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:rp(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&&(Ut=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:rp(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)&&rp(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:rp(e,t,u,p,r,m)}return;default:if(fn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&ip(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||ip(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&rp(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||rp(e,t,f,p,r,m)}function cp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function lp(){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&&cp(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&&cp(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 up=null,dp=null;function fp(e){return e.nodeType===9?e:e.ownerDocument}function pp(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 mp(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 hp(e,t,n,r){return n=fp(n).createElement(e),n[xt]=r,n[St]=t,ap(n,e,t),Nt(n),n}function gp(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 _p=null;function vp(){var e=window.event;return e&&e.type===`popstate`?e!==_p&&(_p=e,!0):(_p=null,!1)}var yp=typeof setTimeout==`function`?setTimeout:void 0,bp=typeof clearTimeout==`function`?clearTimeout:void 0,xp=typeof Promise==`function`?Promise:void 0,Sp=typeof requestAnimationFrame==`function`?requestAnimationFrame:yp,Cp=typeof queueMicrotask==`function`?queueMicrotask:xp===void 0?yp:function(e){return xp.resolve(null).then(e).catch(wp)};function wp(e){setTimeout(function(){throw e})}function Tp(e){return e===`head`}function Ep(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),Wh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)ym(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,ym(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Et]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&ym(e.ownerDocument.body)}n=i}while(n);Wh(t)}function Dp(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 Op(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 kp(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 Ap(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 jp(e){return Ap(e.getBoundingClientRect(),getComputedStyle(e),e)}function Mp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Ap(t,n,e)}function Np(e){return e.documentElement.clientHeight}function Pp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Fp(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`&&(Np(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+=Qm(f),u>th){s.length=o;break}f=new Promise(Pp.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 Ip(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Ip.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Ip.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},Ip.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Lp(e){return{name:e,group:new Ip(`group`,e),imagePair:new Ip(`image-pair`,e),old:new Ip(`old`,e),new:new Ip(`new`,e)}}function Rp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Rp.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(Up(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=Vp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),p(this._fragmentFiber.child,!1,zp,e,s,r)}this._eventListeners=a}};function zp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Rp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Up(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Vp(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,Bp,e,n,i),r.splice(t,1),a!==null&&a()}};function Bp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Vp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Hp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Up(e,t,n,r){if(e.length===0)return-1;r=Hp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Hp(a.optionsOrUseCapture)===r)return i}return-1}Rp.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,Vp(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,Vp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Rp.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag!==6&&(e=b(e),hm(e,t))}Rp.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Gp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Wp(t[n],e);n--);};function Gp(e,t){return t.push(e),!1}Rp.prototype.blur=function(){var e=h(this._fragmentFiber);e!==null&&(e=b(e),e=fp(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Kp,e,void 0,void 0))};function Kp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Rp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,qp,e,void 0,void 0)};function qp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Rp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,Jp,e,void 0,void 0);for(var n=t=0;n<Yp.length;n++){var r=Yp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Yp[t++]=r}Yp.length=t}};function Jp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Yp=[],Xp=!1;function Zp(e,t,n){Yp.push({fragmentInstance:e,observer:t,instance:n}),Xp||(Xp=!0,gm(function(){Xp=!1;var e=Yp;Yp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Rp.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,Qp,e,void 0,void 0),e};function Qp(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}Rp.prototype.getRootNode=function(e){var t=h(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Rp.prototype.compareDocumentPosition=function(e){var t=h(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,Gp,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||$p(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function $p(e,t,n,r,i){var a=kt(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 em(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)}Rp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];p(this._fragmentFiber.child,!1,Gp,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),em(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),em(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function tm(e,t){return e=b(e),nm(e,t),!1}function nm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function rm(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,Vp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Yp.length;i++){var a=Yp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Yp[r++]=a)}Yp.length=r,n.observe(e)}),nm(e,t))}function im(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,Vp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Zp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function am(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`:am(n),Ot(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function om(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[Et])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=dm(e.nextSibling),e===null)break}return null}function sm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=dm(e.nextSibling),e===null))return null;return e}function cm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=dm(e.nextSibling),e===null))return null;return e}function lm(e){return e.data===`$?`||e.data===`$~`}function um(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function Z(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 dm(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 fm=null;function pm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return dm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function mm(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 hm(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 gm(e){Sp(function(){Sp(function(t){return e(t)})})}function _m(e,t,n){switch(t=fp(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 vm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&rp(e,t,r,null,op,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===gn&&(e.onclick=null),Ot(e)}function ym(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ot(e)}var bm=new Map,xm=new Set;function Sm(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 Cm=R.d;R.d={f:wm,r:Tm,D:Om,C:km,L:Am,m:jm,X:Nm,S:Mm,M:Pm};function wm(){var e=Cm.f(),t=Vd();return e||t}function Tm(e){var t=At(e);t!==null&&t.tag===5&&t.type===`form`?Zs(t):Cm.r(e)}var Em=typeof document>`u`?null:document;function Dm(e,t,n){var r=Em;if(r&&typeof t==`string`&&t){var i=en(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),xm.has(i)||(xm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),ap(t,`link`,e),Nt(t),r.head.appendChild(t)))}}function Om(e){Cm.D(e),Dm(`dns-prefetch`,e,null)}function km(e,t){Cm.C(e,t),Dm(`preconnect`,e,t)}function Am(e,t,n){Cm.L(e,t,n);var r=Em;if(r&&e&&t){var i=`link[rel="preload"][as="`+en(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+en(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+en(n.imageSizes)+`"]`)):i+=`[href="`+en(e)+`"]`;var a=i;switch(t){case`style`:a=Im(e);break;case`script`:a=Bm(e)}if(!(bm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),bm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Lm(a))||t===`script`&&r.querySelector(Vm(a))))){var o=r.createElement(`link`);ap(o,`link`,e),t===`style`&&(o[Dt]=!0,o.onload=o.onerror=function(){Pt(o)}),Nt(o),r.head.appendChild(o)}}}function jm(e,t){Cm.m(e,t);var n=Em;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+en(r)+`"][href="`+en(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Bm(e)}if(!bm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),bm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Vm(a)))return}r=n.createElement(`link`),ap(r,`link`,e),Nt(r),n.head.appendChild(r)}}}function Mm(e,t,n){Cm.S(e,t,n);var r=Em;if(r&&e){var i=Mt(r).hoistableStyles,a=Im(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Lm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=bm.get(a))&&Wm(e,n);var c=o=r.createElement(`link`);Nt(c),ap(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,Um(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Nm(e,t){Cm.X(e,t);var n=Em;if(n&&e){var r=Mt(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=D({src:e,async:!0},t),(t=bm.get(i))&&Gm(e,t),a=n.createElement(`script`),Nt(a),ap(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pm(e,t){Cm.M(e,t);var n=Em;if(n&&e){var r=Mt(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=bm.get(i))&&Gm(e,t),a=n.createElement(`script`),Nt(a),ap(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Fm(e,t,n,r){var a=(a=Se.current)?Sm(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=Im(n.href),t=Mt(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=Im(n.href);var o=Mt(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(Lm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=bm.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},bm.set(e,o)),zm(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=Bm(n),t=Mt(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 Im(e){return`href="`+en(e)+`"`}function Lm(e){return`link[rel="stylesheet"][`+e+`]`}function Rm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function zm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Dt]){r.loading=1;return}}else t=e.createElement(`link`),t[Dt]=!0,t.onload=t.onerror=Pt.bind(null,t),ap(t,`link`,n),Nt(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 Bm(e){return`[src="`+en(e)+`"]`}function Vm(e){return`script[async]`+e}function Hm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+en(n.href)+`"]`);if(r)return t.instance=r,Nt(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`),Nt(r),ap(r,`style`,a),Um(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Im(n.href);var o=e.querySelector(Lm(a));if(o)return t.state.loading|=4,t.instance=o,Nt(o),o;r=Rm(n),(a=bm.get(a))&&Wm(r,a),o=(e.ownerDocument||e).createElement(`link`),Nt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),ap(o,`link`,r),t.state.loading|=4,Um(o,n.precedence,e),t.instance=o;case`script`:return o=Bm(n.src),(a=e.querySelector(Vm(o)))?(t.instance=a,Nt(a),a):(r=n,(a=bm.get(o))&&(r=D({},n),Gm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Nt(a),ap(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,Um(r,n.precedence,e));return t.instance}function Um(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 Wm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Gm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Km=null;function qm(e,t,n){if(Km===null){var r=new Map,i=Km=new Map;i.set(n,r)}else i=Km,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[Et]||a[xt]||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 Jm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Ym(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 Xm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Zm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function $m(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Qm(t),e.suspenseyImages.push(t)),e=ah.bind(e),t.decode().then(e,e))}function eh(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=Im(r.href),a=t.querySelector(Lm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ih.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Nt(a);return}a=t.ownerDocument||t,r=Rm(r),(i=bm.get(i))&&Wm(r,i),a=a.createElement(`link`),Nt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),ap(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=ih.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var th=0;function nh(e,t){return e.stylesheets&&e.count===0&&sh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&th===0&&(th=62500*lp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>th?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)sh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ih(){this.count--,rh(this)}function ah(){this.imgCount--,rh(this)}var oh=null;function sh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oh=new Map,t.forEach(ch,e),oh=null,ih.call(e))}function ch(e,t){if(!(t.state.loading&4)){var n=oh.get(e);if(n)var r=n.get(null);else{n=new Map,oh.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=ih.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 lh={$$typeof:te,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function uh(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=dt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dt(0),this.hiddenUpdates=dt(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 dh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new uh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Oi(3,null,null,t),e.current=a,a.stateNode=e,t=Ta(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},so(a),e}function fh(e){return e?(e=Ei,e):Ei}function ph(e,t,n,r,i,a){i=fh(i),r.context===null?r.context=i:r.pendingContext=i,r=lo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=uo(e,r,t),n!==null&&(Id(n,e,t),fo(n,e,t))}function mh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hh(e,t){mh(e,t),(e=e.alternate)&&mh(e,t)}function gh(e){if(e.tag===13||e.tag===31){var t=wi(e,67108864);t!==null&&Id(t,e,67108864),hh(e,67108864)}}function _h(e){if(e.tag===13||e.tag===31){var t=Nd();t=_t(t);var n=wi(e,t);n!==null&&Id(n,e,t),hh(e,t)}}var vh=!0;function yh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=2,xh(e,t,n,r)}finally{R.p=a,L.T=i}}function bh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=8,xh(e,t,n,r)}finally{R.p=a,L.T=i}}function xh(e,t,n,r){if(vh){var i=Sh(r);if(i===null)Jf(e,t,r,Ch,n),Ph(e,r);else if(Ih(i,e,t,n,r))r.stopPropagation();else if(Ph(e,r),t&4&&-1<Nh.indexOf(e)){for(;i!==null;){var a=At(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=at(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Qe(o);s.entanglements[1]|=c,o&=~c}X(a),!(Zu&6)&&(vd=Be()+500,Of(0,!1))}}break;case 31:case 13:s=wi(a,2),s!==null&&Id(s,a,2),Vd(),hh(a,2)}if(a=Sh(r),a===null&&Jf(e,t,r,Ch,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Jf(e,t,r,null,n)}}function Sh(e){return e=vn(e),wh(e)}var Ch=null;function wh(e){if(Ch=null,e=kt(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 Ch=e,null}function Th(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(Ve()){case He:return 2;case Ue:return 8;case We:case Ge:return 32;case Ke:return 268435456;default:return 32}default:return 32}}var Eh=!1,Dh=null,Oh=null,kh=null,Ah=new Map,jh=new Map,Mh=[],Nh=`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 Ph(e,t){switch(e){case`focusin`:case`focusout`:Dh=null;break;case`dragenter`:case`dragleave`:Oh=null;break;case`mouseover`:case`mouseout`:kh=null;break;case`pointerover`:case`pointerout`:Ah.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:jh.delete(t.pointerId)}}function Fh(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=At(t),t!==null&&gh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ih(e,t,n,r,i){switch(t){case`focusin`:return Dh=Fh(Dh,e,t,n,r,i),!0;case`dragenter`:return Oh=Fh(Oh,e,t,n,r,i),!0;case`mouseover`:return kh=Fh(kh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ah.set(a,Fh(Ah.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,jh.set(a,Fh(jh.get(a)||null,e,t,n,r,i)),!0}return!1}function Lh(e){var t=kt(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,bt(e.priority,function(){_h(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,bt(e.priority,function(){_h(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 Rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);_n=r,n.target.dispatchEvent(r),_n=null}else return t=At(n),t!==null&&gh(t),e.blockedOn=n,!1;t.shift()}return!0}function zh(e,t,n){Rh(e)&&n.delete(t)}function Bh(){Eh=!1,Dh!==null&&Rh(Dh)&&(Dh=null),Oh!==null&&Rh(Oh)&&(Oh=null),kh!==null&&Rh(kh)&&(kh=null),Ah.forEach(zh),jh.forEach(zh)}function Vh(e,n){e.blockedOn===n&&(e.blockedOn=null,Eh||(Eh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bh)))}var Hh=null;function Uh(e){Hh!==e&&(Hh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Hh===e&&(Hh=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(wh(r||n)===null)continue;break}var a=At(n);a!==null&&(e.splice(t,3),t-=3,Ys(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Wh(e){function t(t){return Vh(t,e)}Dh!==null&&Vh(Dh,e),Oh!==null&&Vh(Oh,e),kh!==null&&Vh(kh,e),Ah.forEach(t),jh.forEach(t);for(var n=0;n<Mh.length;n++){var r=Mh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Mh.length&&(n=Mh[0],n.blockedOn===null);)Lh(n),n.blockedOn===null&&Mh.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[St]||null;if(typeof a==`function`)o||Uh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[St]||null)s=o.formAction;else if(wh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Uh(n)}}}function Gh(){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 Kh(e){this._internalRoot=e}qh.prototype.render=Kh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ph(n,Nd(),e,t,null,null)},qh.prototype.unmount=Kh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ph(e.current,2,null,e,null,null),Vd(),t[Ct]=null}};function qh(e){this._internalRoot=e}qh.prototype.unstable_scheduleHydration=function(e){if(e){var t=yt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mh.length&&t!==0&&t<Mh[n].priority;n++);Mh.splice(n,0,e),n===0&&Lh(e)}};var Jh=n.version;if(Jh!==`19.3.0`)throw Error(i(527,Jh,`19.3.0`));R.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 Yh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:L,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Xh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xh.isDisabled&&Xh.supportsFiber)try{Ye=Xh.inject(Yh),Xe=Xh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=vc,s=yc,c=bc;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=dh(e,1,!1,null,null,n,r,null,o,s,c,Gh),e[Ct]=t.current,Kf(e),new Kh(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)},ee=(e,t)=>{let{obj:n,k:r}=j(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},te=(e,t,n)=>{let r=ee(e,n);return r===void 0?ee(t,n):r},P=(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]):P(e[r],t[r],n):e[r]=t[r]);return e},F=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),ne={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},re=e=>w(e)?e.replace(/[&<>"'\/]/g,e=>ne[e]):e,ie=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}},ae=[` `,`,`,`?`,`!`,`;`],oe=new ie(20),se=(e,t,n)=>{t||=``,n||=``;let r=ae.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=oe.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},ce=(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},I=e=>e?.replace(/_/g,`-`),le={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)}},ue=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||le,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)}},de=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)})}},fe=new WeakSet,pe=class extends de{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=ee(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:ce(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=ee(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?P(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 fe.has(n)?!0:!n||Object.keys(n).length===0?!1:(typeof n==`object`&&fe.add(n),!0)})}toJSON(){return this.data}},L={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}},R=Symbol(`i18next/PATH_KEY`);function me(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===R?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function he(e,t){let{[R]:n}=e(me()),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 ge=e=>!w(e)&&typeof e!=`boolean`&&typeof e!=`number`,_e=class e extends de{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=ue.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=ge(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&&!se(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=he(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?he(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=ge(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:ge(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=L.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`?he(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}},ve=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ue.create(`languageUtils`),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(e=I(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=I(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())}},ye={zero:0,one:1,two:2,few:3,many:4,other:5},be={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},xe=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=ue.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=I(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!`),be;if(!e.match(/-|_/))return be;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)=>ye[e]-ye[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))}},Se=(e,t,n,r=`.`,i=!0)=>{let a=te(e,t,n);return!a&&i&&w(n)&&(a=ce(e,n,r),a===void 0&&(a=ce(t,n,r))),a},Ce=e=>e.replace(/\$/g,`$$$$`),we=class{constructor(e={}){this.logger=ue.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?re:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?F(i):a||`{{`,this.suffix=o?F(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?F(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?F(l):``,this.nestingPrefix=d?F(d):f||F(`$t(`),this.nestingSuffix=p?F(p):m||F(`)`),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=Se(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(Se(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],Ce(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(`${F(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}},Te=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}},Ee=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(I(r),i),t[o]=s),s(n)}},De=e=>(t,n,r)=>e(I(n),r)(t),Oe=class{constructor(e={}){this.logger=ue.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Ee:De;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()]=Ee(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}=Te(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)}},ke=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Ae=class extends de{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=ue.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),ke(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)}}},je=()=>({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}),Me=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),Ne=()=>{},Pe=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Fe=class e extends de{constructor(e={},t){if(super(),this.options=Me(e),this.services={},this.logger=ue,this.modules={external:[]},Pe(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=je();this.options={...n,...this.options,...Me(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?ue.init(r(this.modules.logger),this.options):ue.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Oe;let t=new ve(this.options);this.store=new pe(this.options.resources,this.options);let n=this.services;n.logger=ue,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new xe(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 we(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Ae(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 _e(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||=Ne,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=Ne){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||=Ne,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`&&L.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=he(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=he(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=he(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 ve(je());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=Ne){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 pe(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={...je().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new we(n)}return a.translator=new _e(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(),Ie=Fe.createInstance;Fe.dir,Fe.init,Fe.loadResources,Fe.reloadResources,Fe.use,Fe.changeLanguage,Fe.getFixedT,Fe.t,Fe.exists,Fe.setDefaultNamespace,Fe.hasLoadedNamespace,Fe.loadNamespaces,Fe.loadLanguages;var Le=(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);We(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},Re={},ze=(e,t,n,r)=>{We(n)&&Re[n]||(We(n)&&(Re[n]=new Date),Le(e,t,n,r))},Be=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},Ve=(e,t,n)=>{e.loadNamespaces(t,Be(e,n))},He=(e,t,n,r)=>{if(We(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Ve(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Be(e,r))},Ue=(e,t,n={})=>!t.languages||!t.languages.length?(ze(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}}),We=e=>typeof e==`string`,Ge=e=>typeof e==`object`&&!!e,Ke=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,qe={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":`\xA0`,"&#160;":`\xA0`,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},Je=e=>qe[e],Ye={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(Ke,Je),transDefaultProps:void 0},Xe=(e={})=>{Ye={...Ye,...e}},Ze=()=>Ye,Qe,$e=e=>{Qe=e},et=()=>Qe,tt={type:`3rdParty`,init(e){Xe(e.options.react),$e(e)}},nt=(0,y.createContext)(),rt=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},it=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})),at=o(((e,t)=>{t.exports=it()}))(),ot={t:(e,t)=>{if(We(t))return t;if(Ge(t)&&We(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},st=()=>()=>{},ct=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,y.useContext)(nt)||{},a=n||r||et();a&&!a.reportNamespaces&&(a.reportNamespaces=new rt),a||ze(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)(()=>({...Ze(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c,bindI18n:l,bindI18nStore:u}=o,d=e||i||a?.options?.defaultNS,f=We(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 st;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 ot;let e=!!(a.isInitialized||a.initializedStoreOnce)&&p.every(e=>Ue(e,a,o)),n=t.lng||a.language,r=m.current,i=typeof c==`function`?he(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,at.useSyncExternalStore)(h,_,_),C;a&&s&&!S&&(C=new Promise(e=>{let n=()=>e();t.lng?He(a,t.lng,p,n):Ve(a,p,n)}),{t:x,ready:S}=_()),(0,y.useEffect)(()=>{if(a&&!S&&!s){let e=()=>b(e=>e+1);t.lng?He(a,t.lng,p,e):Ve(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)=>(ze(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&&ze(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},lt={en:{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`,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`},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:`{{v0}}
11
- /rename requires a name; other commands take no arguments. Use // for regular 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`},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:`Paste a PNG, JPEG, WebP or GIF image.`,the_image_is_empty_copy_and_paste_it:`The image is empty. Copy and paste it again.`,up_to_images_per_message:`Up to {{v0}} images per message.`,images_per_message_cannot_exceed_2_mib_in:`Images per message cannot exceed 2 MiB in total. Resize them and retry.`,pixels_other:`{{v0}} pixels`,pixels_one:`{{v0}} pixel`,up_to_images_per_message_other:`Up to {{v0}} images per message.`,up_to_images_per_message_one:`Up to {{v0}} image per message.`,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`},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)`},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:`Operations and reconciliation`,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:`Session state still needs checking. Inspect operation records and the original environment.`,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.`},notifications:{task_completion_notifications:`Task completion notifications`,show_project_session_and_result_after_each_turn:`Show project, session and result after each turn. Click a notification to return to its session.`,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:`Keep this page and browser open. Background tabs can receive notifications, but frozen or discarded pages may not notify promptly. Results and unread indicators sync when you return.`,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 desktop 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`,project_session_and_completion_status_will_appear_here:`Project, session and completion status will appear here when the agent finishes.`,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`},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.`},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}}`},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`,completion_notifications:`Completion notifications`,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…`,task_completion_notifications:`Task completion notifications · {{v0}}`,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.`},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:`Current 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. Restore the Codex connection, adjust its version, or wait for a release with valid compatibility metadata before checking 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.`},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`,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`,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.`}},"zh-Hans":{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:`命令审批`,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:`禁止访问`},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:`{{v0}}
12
- /rename 必须提供名称,其他命令无需参数。输入 // 可发送以 / 开头的普通消息。`,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:`审查当前工作目录的未提交改动(使用会话当前配置)`},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:`图片为空,请重新复制后粘贴。`,up_to_images_per_message:`每条消息最多添加 {{v0}} 张图片。`,images_per_message_cannot_exceed_2_mib_in:`每条消息的图片总大小不能超过 2 MiB,请缩小图片后重试。`,pixels_other:`{{v0}} 像素`,pixels_one:`{{v0}} 像素`,up_to_images_per_message_other:`每条消息最多添加 {{v0}} 张图片。`,up_to_images_per_message_one:`每条消息最多添加 {{v0}} 张图片。`,tap_to_send_enter_for_new_line:`点击发送按钮 · Enter 换行`,tap_to_run_command_enter_for_new_line:`点击执行命令 · Enter 换行`},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:`已复制已加载部分(输出已截断)`},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:`文本路径不是普通文件。`},notifications:{task_completion_notifications:`工作完成通知`,show_project_session_and_result_after_each_turn:`每轮工作结束时显示项目、会话及结果,点击通知可返回对应会话。`,browser_notifications:`浏览器通知`,send_test_notification:`发送测试通知`,background_notifications_and_sleeping_tabs:`后台通知与页面休眠`,keep_this_page_and_browser_open_background_tabs:`请保持页面和浏览器运行。普通后台状态可接收通知;页面被冻结或被回收期间,无法保证及时通知。恢复页面后会同步结果与未读提示。`,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:`通知测试`,project_session_and_completion_status_will_appear_here:`Agent 工作结束时,会在这里显示项目、会话和结束状态。`,this_browser_cannot_show_system_notifications_check_browser:`当前浏览器无法显示系统通知,请检查浏览器与系统的通知设置。`,notification_records_are_in_use_by_another_page:`通知记录被其他页面占用,请关闭旧页面后重试。`,agentCompleted:`Agent 已完成`,agentFailed:`Agent 执行失败`,agentInterrupted:`Agent 已中断`},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:`此文件为空。`},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}}`},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:`已加载全部会话`,completion_notifications:`完成通知`,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:`正在读取项目…`,task_completion_notifications:`工作完成通知 · {{v0}}`,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}} 请重试。`},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:`发布说明加载失败,请检查网络后重试;你仍可继续更新。`},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:`打开项目与会话`,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:`可稍后回答`,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:`请求失败,请稍后重试。`}},ja:{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:`コマンド実行の承認`,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:`アクセス禁止`},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:`{{v0}}
13
- /rename には名前が必要です。他のコマンドに引数は不要です。/ から始まる通常のメッセージには // を使ってください。`,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:`現在のセッション設定で作業ディレクトリの未コミット変更をレビュー`},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:`画像が空です。コピーして貼り付け直してください。`,up_to_images_per_message:`1 メッセージにつき {{v0}} 枚まで添付できます。`,images_per_message_cannot_exceed_2_mib_in:`1 メッセージの画像合計は 2 MiB 以下にしてください。縮小して再試行してください。`,pixels_other:`{{v0}} ピクセル`,pixels_one:`{{v0}} ピクセル`,up_to_images_per_message_other:`1 メッセージにつき {{v0}} 枚まで添付できます。`,up_to_images_per_message_one:`1 メッセージにつき {{v0}} 枚まで添付できます。`,tap_to_send_enter_for_new_line:`送信ボタンで送信 · Enter で改行`,tap_to_run_command_enter_for_new_line:`タップしてコマンド実行 · Enter で改行`},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:`読み込み済み部分をコピーしました(出力は切り詰められています)`},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:`テキストファイルのパスは通常のファイルではありません。`},notifications:{task_completion_notifications:`作業完了の通知`,show_project_session_and_result_after_each_turn:`各ターンの終了時にプロジェクト、セッション、結果を表示します。通知をクリックすると該当セッションに戻ります。`,browser_notifications:`ブラウザー通知`,send_test_notification:`テスト通知を送信`,background_notifications_and_sleeping_tabs:`バックグラウンド通知とタブの休止`,keep_this_page_and_browser_open_background_tabs:`ページとブラウザーを開いたままにしてください。バックグラウンドでは通知を受信できますが、休止・破棄中は遅れる場合があります。復帰時に結果と未読表示が同期されます。`,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:`テスト通知`,project_session_and_completion_status_will_appear_here:`エージェントの作業終了時に、プロジェクト、セッション、終了状態をここに表示します。`,this_browser_cannot_show_system_notifications_check_browser:`このブラウザーはシステム通知を表示できません。ブラウザーとシステムの設定を確認してください。`,notification_records_are_in_use_by_another_page:`通知記録が他のページで使用されています。古いページを閉じて再試行してください。`,agentCompleted:`エージェントの作業が完了しました`,agentFailed:`エージェントの作業が失敗しました`,agentInterrupted:`エージェントの作業を中断しました`},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:`このファイルは空です。`},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}}`},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:`すべてのセッションを読み込み済み`,completion_notifications:`完了通知`,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:`プロジェクトを読み込み中…`,task_completion_notifications:`作業完了の通知 · {{v0}}`,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}} もう一度お試しください。`},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:`リリースノートを読み込めませんでした。接続を確認して再試行してください。更新は続行できます。`},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:`プロジェクトとセッションを開く`,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:`後で回答できます`,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:`リクエストに失敗しました。再試行してください。`}},ko:{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:`명령 실행 승인`,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:`접근 금지`},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:`{{v0}}
14
- /rename에는 이름이 필요하며 다른 명령에는 인수를 지정하지 않습니다. /로 시작하는 일반 메시지에는 //를 사용하세요.`,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:`현재 세션 설정으로 작업 디렉터리의 미커밋 변경 리뷰`},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:`이미지가 비어 있습니다. 다시 복사하여 붙여넣으세요.`,up_to_images_per_message:`메시지당 최대 {{v0}}장의 이미지를 추가할 수 있습니다.`,images_per_message_cannot_exceed_2_mib_in:`메시지당 이미지 총 크기는 2 MiB를 초과할 수 없습니다. 이미지를 줄인 후 다시 시도하세요.`,pixels_other:`{{v0}}픽셀`,pixels_one:`{{v0}}픽셀`,up_to_images_per_message_other:`메시지당 최대 {{v0}}장의 이미지를 추가할 수 있습니다.`,up_to_images_per_message_one:`메시지당 최대 {{v0}}장의 이미지를 추가할 수 있습니다.`,tap_to_send_enter_for_new_line:`전송 버튼으로 전송 · Enter로 줄바꿈`,tap_to_run_command_enter_for_new_line:`탭하여 명령 실행 · Enter로 줄바꿈`},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:`로드된 부분을 복사했습니다(출력 잘림)`},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:`텍스트 파일 경로가 일반 파일이 아닙니다.`},notifications:{task_completion_notifications:`작업 완료 알림`,show_project_session_and_result_after_each_turn:`각 턴이 끝나면 프로젝트, 세션 및 결과를 표시합니다. 알림을 클릭하면 해당 세션으로 돌아갑니다.`,browser_notifications:`브라우저 알림`,send_test_notification:`테스트 알림 보내기`,background_notifications_and_sleeping_tabs:`백그라운드 알림 및 탭 절전`,keep_this_page_and_browser_open_background_tabs:`페이지와 브라우저를 실행 상태로 유지하세요. 백그라운드에서도 알림을 받을 수 있지만 탭이 정지되거나 제거되면 지연될 수 있습니다. 복귀 시 결과와 읽지 않음 표시가 동기화됩니다.`,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:`테스트 알림`,project_session_and_completion_status_will_appear_here:`에이전트 작업이 끝나면 프로젝트, 세션 및 종료 상태가 여기에 표시됩니다.`,this_browser_cannot_show_system_notifications_check_browser:`현재 브라우저에서 시스템 알림을 표시할 수 없습니다. 브라우저 및 시스템 설정을 확인하세요.`,notification_records_are_in_use_by_another_page:`다른 페이지에서 알림 기록을 사용 중입니다. 이전 페이지를 닫고 다시 시도하세요.`,agentCompleted:`에이전트 작업이 완료되었습니다`,agentFailed:`에이전트 작업에 실패했습니다`,agentInterrupted:`에이전트 작업이 중단되었습니다`},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:`빈 파일입니다.`},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}}`},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:`모든 세션을 불러왔습니다`,completion_notifications:`완료 알림`,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:`프로젝트 불러오는 중…`,task_completion_notifications:`작업 완료 알림 · {{v0}}`,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}} 다시 시도하세요.`},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:`릴리스 노트를 로드하지 못했습니다. 연결을 확인하고 다시 시도하세요. 업데이트는 계속할 수 있습니다.`},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:`프로젝트 및 세션 열기`,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:`나중에 답변할 수 있습니다`,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:`요청에 실패했습니다. 다시 시도하세요.`}}},ut=[`zh-Hans`,`en`,`ja`,`ko`],dt={"zh-Hans":`简体中文`,en:`English`,ja:`日本語`,ko:`한국어`},ft=`covro.locale`;function pt(e){return ut.includes(e)}function mt(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 ht(e,t){if(pt(t))return t;for(let t of e){let e=mt(t);if(e)return e}return`en`}function gt(){let e=null;try{e=localStorage.getItem(ft)}catch{}return ht(typeof navigator>`u`?[]:navigator.languages?.length?navigator.languages:[navigator.language],e)}function _t(e){try{localStorage.setItem(ft,e)}catch{}}function vt(e,t=lt){let n=Ie().use(tt);return n.init({resources:t,lng:e,supportedLngs:[...ut],fallbackLng:`en`,defaultNS:`common`,load:`currentOnly`,initAsync:!1,returnEmptyString:!1,returnNull:!1,interpolation:{escapeValue:!1},react:{useSuspense:!1}}),n}var yt=vt(gt());function bt(){return pt(yt.resolvedLanguage)?yt.resolvedLanguage:`en`}function z(e,t={}){let n=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t==null||t===!1?``:typeof t==`number`&&e!==`count`?Ct(t):t]));if(!yt.exists(e,n))return String(yt.t(`common:requestFailed`));let r=yt.t(e,n);return String(r&&r!==e?r:yt.t(`common:requestFailed`))}function xt(e){return _t(e),yt.changeLanguage(e)}function St(){ct(void 0,{i18n:yt});let e=bt();return(0,y.useEffect)(()=>{document.documentElement.lang=e,document.title=`Covro · ${z(`workspace:workspace`)}`},[e]),(0,y.useEffect)(()=>{let e=e=>{e.key===`covro.locale`&&pt(e.newValue)&&yt.changeLanguage(e.newValue)};return window.addEventListener(`storage`,e),()=>window.removeEventListener(`storage`,e)},[]),e}var Ct=(e,t)=>new Intl.NumberFormat(bt(),t).format(e),wt=(e,t)=>new Intl.DateTimeFormat(bt(),t).format(e),Tt=`covro-message:`;function B(e,t={}){return Tt+JSON.stringify({key:e,values:t})}function V(e){if(e!=null){if(!e.startsWith(Tt))return e;try{let{key:t,values:n}=JSON.parse(e.slice(15));return z(t,Object.fromEntries(Object.entries(n).map(([e,t])=>[e,typeof t==`string`?V(t):t])))}catch{return z(`common:requestFailed`)}}}function Et(e){if(e?.startsWith(Tt))try{let t=JSON.parse(e.slice(15));return typeof t.values?.details==`string`?t.values.details:void 0}catch{return}}var Dt=e=>new Intl.ListFormat(bt(),{style:`short`,type:`conjunction`}).format(e),Ot=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function kt(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Ot(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var At=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},jt=e=>{let t=At(e);return t.charAt(0).toUpperCase()+t.slice(1)},Mt=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Nt={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 Pt(e){return e!=null}function Ft(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Nt.width,a=e.size??e.height??Nt.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?Mt(...c):Mt(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Nt[`stroke-width`])*Number(e.size??e.width??Nt.width)/Number(t.size??t.width??Nt.width):t.strokeWidth??Nt[`stroke-width`];return[`svg`,{...Object.entries(Nt).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Pt(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Pt(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Pt(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 It(e,t={}){return Ft(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Lt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Rt=(0,y.createContext)({}),zt=()=>(0,y.useContext)(Rt),Bt=(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=``}=zt()??{},b=!!c||Lt(d),[x,S,C=[]]=It(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Mt(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 Vt(e,t=[],n=[]){let r=typeof e==`string`?kt(e,t,n):e,i=(0,y.forwardRef)(({className:e,...t},n)=>(0,y.createElement)(Bt,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=jt(r.name)),i}var Ht={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`}]]};Ht.node;var Ut=Vt(Ht),Wt={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};Wt.node;var Gt=Vt(Wt),Kt={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};Kt.node;var qt=Vt(Kt),Jt={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Jt.node;var Yt=Vt(Jt),Xt={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`}]]};Xt.node;var Zt=Vt(Xt),Qt={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Qt.node;var $t=Vt(Qt),en={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};en.node;var tn=Vt(en),nn={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};nn.node;var rn=Vt(nn),an={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`]};an.node;var on=Vt(an),sn={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`}]]};sn.node;var cn=Vt(sn),ln={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`}]]};ln.node;var un=Vt(ln),dn={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`}]]};dn.node;var fn=Vt(dn),pn={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`}]]};pn.node;var mn=Vt(pn),hn={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`]};hn.node;var gn=Vt(hn),_n={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`}]]};_n.node;var vn=Vt(_n),yn={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`}]]};yn.node;var bn=Vt(yn),xn={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`}]]};xn.node;var Sn=Vt(xn),Cn={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Cn.node;var wn=Vt(Cn),Tn={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`}]]};Tn.node;var En=Vt(Tn),Dn={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`}]]};Dn.node;var On=Vt(Dn),kn={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`}]]};kn.node;var An=Vt(kn),jn={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`}]]};jn.node;var Mn=Vt(jn),Nn={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`]};Nn.node;var Pn=Vt(Nn),Fn={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`}]]};Fn.node;var In=Vt(Fn),Ln={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Ln.node;var Rn=Vt(Ln),zn={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`}]]};zn.node;var Bn=Vt(zn);function Vn(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 lt.en.errors?B(`errors:${t}`,{details:e.message}):B(`errors:httpFailure`,{code:t,details:e.message})}var Hn=[`txt`,`csv`,`tsv`,`toml`,`yaml`,`yml`,`jsonl`,`log`,`ini`];function Un(e){if(/\.(md|markdown)$/i.test(e))return`markdown`;if(/\.json$/i.test(e))return`json`;let t=/\.([^./\\]+)$/.exec(e)?.[1]?.toLowerCase();return Hn.some(e=>e===t)?`text`:void 0}var Wn=/^[a-z][a-z\d+.-]*:/i,Gn=e=>Array.from(e).some(e=>e===`\\`||e.charCodeAt(0)<32||e.charCodeAt(0)===127);function Kn(e){if(!e||e!==e.trim()||Gn(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(Wn.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(`//`)||Wn.test(n)||Gn(n)))return n}function qn(e,t){return t&&!e.startsWith(`/`)?t.slice(0,t.lastIndexOf(`/`)+1)+e:e}function Jn(e){let t=Kn(e.replace(/:(\d+)(?::\d+)?$/,``));return t&&Un(t)?t:void 0}function Yn(e,t){let n=Un(t)??`text`;return`/api/threads/${encodeURIComponent(e)}/${n}?${new URLSearchParams({path:t})}`}var Xn=class extends Error{status;problem;constructor(e,t){super(V(Vn(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 Zn(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 Xn(r.status===200?401:r.status,{code:`AUTH_REQUIRED`,message:B(`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 Xn(r.status,e??{code:`HTTP_ERROR`,message:B(`errors:request_failed`,{v0:r.status})})}return i}var Qn={projectPath:(e,t)=>Zn(`/api/project-path?${new URLSearchParams({path:e,...t===void 0?{}:{directory:t}})}`),gatewayConfig:()=>Zn(`/api/config`),saveGatewayConfig:(e,t)=>Zn(`/api/config`,{revision:e,config:t}),importGatewayConfig:e=>Zn(`/api/config/import`,{config:e}),exportGatewayConfig:()=>Zn(`/api/config/export`),historyCacheContext:()=>Zn(`/api/history-cache-context`),system:()=>Zn(`/api/system`),runtimeSettings:e=>Zn(`${C(e)}/runtime-settings`),projects:()=>Zn(`/api/projects`),reorderProjects:e=>Zn(`/api/projects/reorder`,{projectIds:e}),addProject:e=>Zn(`/api/projects`,e),cloneProject:e=>Zn(`/api/project-clones`,e),projectClone:e=>Zn(`/api/project-clones/${encodeURIComponent(e)}`),cancelProjectClone:e=>Zn(`/api/project-clones/${encodeURIComponent(e)}/cancel`,{}),registerProjectClone:e=>Zn(`/api/project-clones/${encodeURIComponent(e)}/register`,{}),renameProject:(e,t)=>Zn(`/api/projects/${encodeURIComponent(e)}/rename`,{name:t}),removeProject:e=>Zn(`/api/projects/${encodeURIComponent(e)}/remove`,{}),threads:(e,t,n=!1,r)=>Zn(`${C(e)}/threads${n?`?archived=true`:``}${t?`${n?`&`:`?`}cursor=${encodeURIComponent(t)}`:``}`,void 0,r),thread:(e,t)=>Zn(`/api/threads/${encodeURIComponent(e)}`,void 0,t),threadHistory:(e,t,n)=>Zn(`/api/threads/${encodeURIComponent(e)}/history?${new URLSearchParams({cursor:t})}`,void 0,n),threadMetadata:e=>Zn(`/api/threads/${encodeURIComponent(e)}/metadata`),previewFile:(e,t,n)=>Zn(Yn(e,t),void 0,n),operation:e=>Zn(`/api/operations/${encodeURIComponent(e)}`),submit:(e,t)=>Zn(e,t)},$n=Object.defineProperty,er=(e,t)=>$n(e,`name`,{value:t,configurable:!0});function tr(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}er(tr,`setRef`);function nr(...e){return t=>{let n=!1,r=e.map(e=>{let r=tr(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():tr(e[t],null)}}}}er(nr,`composeRefs`);function rr(...e){return y.useCallback(nr(...e),e)}er(rr,`useComposedRefs`);var ir=Object.defineProperty,ar=(e,t)=>ir(e,`name`,{value:t,configurable:!0});function or(e){let t=y.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];hr(r)&&typeof br==`function`&&(r=br(r._payload)),y.Children.forEach(r,e=>{if(pr(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;hr(n)&&typeof br==`function`&&(n=br(n._payload)),a=ur(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?fr(a):void 0,l=rr(n,c);if(!a){if(r||r===0)throw Error(o?yr(e):vr(e));return r}let u=dr(i,a.props??{});return a.type!==y.Fragment&&(u.ref=n?l:c),y.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}ar(or,`createSlot`);var sr=or(`Slot`),cr=Symbol.for(`radix.slottable`);function lr(e){let t=ar(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=cr,t}ar(lr,`createSlottable`);var ur=ar((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 dr(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]=_r(a,i))}return{...e,...n}}ar(dr,`mergeProps`);function fr(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)}ar(fr,`getElementRef`);function pr(e){return y.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===cr}ar(pr,`isSlottable`);var mr=Symbol.for(`react.lazy`);function hr(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===mr&&`_payload`in e&&gr(e._payload)}ar(hr,`isLazyComponent`);function gr(e){return typeof e==`object`&&!!e&&`then`in e}ar(gr,`isPromiseLike`);function _r(...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}ar(_r,`concatAriaDescribedby`);var vr=ar(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),yr=ar(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),br=y.use;function xr(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=xr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Sr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xr(e))&&(r&&(r+=` `),r+=t);return r}var Cr=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,wr=Sr,Tr=(e,t)=>n=>{if(t?.variants==null)return wr(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=Cr(t)||Cr(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 wr(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)},Er=(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},Dr=(e,t)=>({classGroupId:e,validator:t}),Or=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),kr=`-`,Ar=[],jr=`arbitrary..`,Mr=e=>{let t=Fr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Pr(e);let n=e.split(kr);return Nr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Er(i,t):t:i||Ar}return n[e]||Ar}}},Nr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Nr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(kr):e.slice(t).join(kr),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Pr=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?jr+r:void 0})(),Fr=e=>{let{theme:t,classGroups:n}=e;return Ir(n,t)},Ir=(e,t)=>{let n=Or();for(let r in e){let i=e[r];Lr(i,n,r,t)}return n},Lr=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Rr(i,t,n,r)}},Rr=(e,t,n,r)=>{typeof e==`string`?zr(e,t,n):typeof e==`function`?Br(e,t,n,r):Vr(e,t,n,r)},zr=(e,t,n)=>{let r=e===``?t:Hr(t,e);r.classGroupId=n},Br=(e,t,n,r)=>{Ur(e)?Lr(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(Dr(n,e)))},Vr=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Lr(o,Hr(t,a),n,r)}},Hr=(e,t)=>{let n=e,r=t.split(kr),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Or(),n.nextPart.set(t,i)),n=i}return n},Ur=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Wr=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)}}},Gr=`!`,Kr=`:`,qr=[],Jr=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Yr=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===Kr){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(Gr)?(c=s.slice(0,-1),l=!0):s.startsWith(Gr)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Jr(t,l,c,u)};if(t){let e=t+Kr,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Jr(qr,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Xr=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}},Zr=e=>({cache:Wr(e.cacheSize),parseClassName:Yr(e),sortModifiers:Xr(e),postfixLookupClassGroupIds:Qr(e),...Mr(e)}),Qr=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},$r=/\s+/,ei=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split($r),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?_+Gr:_,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},ti=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=ni(n))&&(i&&(i+=` `),i+=r);return i},ni=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=ni(e[r]))&&(n&&(n+=` `),n+=t);return n},ri=(e,...t)=>{let n,r,i,a,o=o=>(n=Zr(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=ei(e,n);return i(e,a),a};return a=o,(...e)=>a(ti(...e))},ii=[],ai=e=>{let t=t=>t[e]||ii;return t.isThemeGetter=!0,t.themeKey=e,t},oi=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,si=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ci=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,li=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ui=/\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$/,di=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,fi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mi=e=>ci.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),hi=e=>!!e&&Number.isInteger(Number(e)),gi=e=>e.endsWith(`%`)&&H(e.slice(0,-1)),_i=e=>li.test(e),vi=()=>!0,yi=e=>ui.test(e)&&!di.test(e),bi=()=>!1,xi=e=>fi.test(e),Si=e=>pi.test(e),Ci=e=>!U(e)&&!W(e),wi=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)),Ti=e=>Bi(e,Wi,bi),U=e=>oi.test(e),Ei=e=>Bi(e,Gi,yi),Di=e=>Bi(e,Ki,H),Oi=e=>Bi(e,Ji,vi),ki=e=>Bi(e,qi,bi),Ai=e=>Bi(e,Hi,bi),ji=e=>Bi(e,Ui,Si),Mi=e=>Bi(e,Yi,xi),W=e=>si.test(e),Ni=e=>Vi(e,Gi),Pi=e=>Vi(e,qi),Fi=e=>Vi(e,Hi),Ii=e=>Vi(e,Wi),Li=e=>Vi(e,Ui),Ri=e=>Vi(e,Yi,!0),zi=e=>Vi(e,Ji,!0),Bi=(e,t,n)=>{let r=oi.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Vi=(e,t,n=!1)=>{let r=si.exec(e);return r?r[1]?t(r[1]):n:!1},Hi=e=>e===`position`||e===`percentage`,Ui=e=>e===`image`||e===`url`,Wi=e=>e===`length`||e===`size`||e===`bg-size`,Gi=e=>e===`length`,Ki=e=>e===`number`,qi=e=>e===`family-name`,Ji=e=>e===`number`||e===`weight`,Yi=e=>e===`shadow`,Xi=ri(()=>{let e=ai(`color`),t=ai(`font`),n=ai(`text`),r=ai(`font-weight`),i=ai(`tracking`),a=ai(`leading`),o=ai(`breakpoint`),s=ai(`container`),c=ai(`spacing`),l=ai(`radius`),u=ai(`shadow`),d=ai(`inset-shadow`),f=ai(`text-shadow`),p=ai(`drop-shadow`),m=ai(`blur`),h=ai(`perspective`),g=ai(`aspect`),_=ai(`ease`),v=ai(`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(),W,U],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[W,U,c],T=()=>[mi,`full`,`auto`,...w()],E=()=>[hi,`none`,`subgrid`,W,U],D=()=>[`auto`,{span:[`full`,hi,W,U]},hi,W,U],O=()=>[hi,`auto`,W,U],k=()=>[`auto`,`min`,`max`,`fr`,W,U],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=()=>[mi,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ee=()=>[s,mi,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],te=()=>[mi,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,W,U],F=()=>[...b(),Fi,Ai,{position:[W,U]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,Ii,Ti,{size:[W,U]}],ie=()=>[gi,Ni,Ei],ae=()=>[``,`none`,`full`,l,W,U],oe=()=>[``,H,Ni,Ei],se=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[H,gi,Fi,Ai],le=()=>[``,`none`,m,W,U],ue=()=>[`none`,H,W,U],de=()=>[`none`,H,W,U],fe=()=>[H,W,U],pe=()=>[mi,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[_i],breakpoint:[_i],color:[vi],container:[_i],"drop-shadow":[_i],ease:[`in`,`out`,`in-out`],font:[Ci],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[_i],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[_i],shadow:[_i],spacing:[`px`,H],text:[_i],"text-shadow":[_i],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,mi,U,W,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,W,U]}],"container-named":[wi],columns:[{columns:[H,`auto`,U,W,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:[hi,`auto`,W,U]}],basis:[{basis:[mi,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[H,mi,`auto`,`initial`,`none`,U]}],grow:[{grow:[``,H,W,U]}],shrink:[{shrink:[``,H,W,U]}],order:[{order:[hi,`first`,`last`,`none`,W,U]}],"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`,...ee()]}],"min-inline-size":[{"min-inline":[`auto`,...ee()]}],"max-inline-size":[{"max-inline":[`none`,...ee()]}],"block-size":[{block:[`auto`,...te()]}],"min-block-size":[{"min-block":[`auto`,...te()]}],"max-block-size":[{"max-block":[`none`,...te()]}],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,Ni,Ei]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,zi,Oi]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,gi,U]}],"font-family":[{font:[Pi,ki,t]}],"font-features":[{"font-features":[U]}],"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,W,U]}],"line-clamp":[{"line-clamp":[H,`none`,W,Di]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,W,U]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,W,U]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...se(),`wavy`]}],"text-decoration-thickness":[{decoration:[H,`from-font`,`auto`,W,Ei]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[H,`auto`,W,U]}],"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:[hi,W,U]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,W,U]}],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`,W,U]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},hi,W,U],radial:[``,W,U],conic:[``,hi,W,U]},Li,ji]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...se(),`hidden`,`none`]}],"divide-style":[{divide:[...se(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...se(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[H,W,U]}],"outline-w":[{outline:[``,H,Ni,Ei]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`inner`,`none`,u,Ri,Mi]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ri,Mi]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:oe()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[H,Ei]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,Ri,Mi]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[H,W,U]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[W,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,W,U]}],filter:[{filter:[``,`none`,W,U]}],blur:[{blur:le()}],brightness:[{brightness:[H,W,U]}],contrast:[{contrast:[H,W,U]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ri,Mi]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,H,W,U]}],"hue-rotate":[{"hue-rotate":[H,W,U]}],invert:[{invert:[``,H,W,U]}],saturate:[{saturate:[H,W,U]}],sepia:[{sepia:[``,H,W,U]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,W,U]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[H,W,U]}],"backdrop-contrast":[{"backdrop-contrast":[H,W,U]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,H,W,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,W,U]}],"backdrop-invert":[{"backdrop-invert":[``,H,W,U]}],"backdrop-opacity":[{"backdrop-opacity":[H,W,U]}],"backdrop-saturate":[{"backdrop-saturate":[H,W,U]}],"backdrop-sepia":[{"backdrop-sepia":[``,H,W,U]}],"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`,W,U]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[H,`initial`,W,U]}],ease:[{ease:[`linear`,`initial`,_,W,U]}],delay:[{delay:[H,W,U]}],animate:[{animate:[`none`,v,W,U]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,W,U]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":[`scale-3d`],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[W,U,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":[`translate-none`],zoom:[{zoom:[hi,W,U]}],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"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`,W,U]}],"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":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"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`,W,U]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[H,Ni,Ei,Di]}],stroke:[{stroke:[`none`,...P()]}],"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 Zi(...e){return Xi(Sr(e))}function Qi(e){let t=typeof e==`number`&&e<0xe8d4a51000?new Date(e*1e3):new Date(e);return Number.isNaN(t.valueOf())?``:new Intl.DateTimeFormat(bt(),{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}).format(t)}function $i(e){return e instanceof Xn?Vn(e.problem):e instanceof Error?e.message:z(`workspace:request_failed_please_try_again`)}var ea=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})),G=o(((e,t)=>{t.exports=ea()}))(),ta=Tr(`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`}}),K=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,type:i=`button`,...a},o)=>(0,G.jsx)(r?sr:`button`,{type:i,className:Zi(ta({variant:t,size:n,className:e})),ref:o,...a}));K.displayName=`Button`;var na={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`,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 q({name:e,size:t=18,style:n}){return(0,G.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,G.jsx)(`path`,{d:na[e]})})}function ra(e){let t=e>=1048576;return`${Ct(e/(t?1048576:1024),{minimumFractionDigits:1,maximumFractionDigits:1})} ${t?`MiB`:`KiB`}`}function ia(e,t){return e instanceof Xn?Vn(e.problem):B(t,{details:e instanceof Error?e.message:void 0})}function aa({value:e}){return e?(0,G.jsxs)(`details`,{className:`backup-technical-details`,children:[(0,G.jsx)(`summary`,{children:z(`common:technical_details`)}),(0,G.jsx)(`pre`,{children:e})]}):null}function oa({onClose:e}){let t=(0,y.useRef)(null),[n,r]=(0,y.useState)(),[i,a]=(0,y.useState)(),[o,s]=(0,y.useState)(),c=(0,y.useRef)(0),[l,u]=(0,y.useState)(),[d,f]=(0,y.useState)(!1),p=(0,y.useRef)(void 0),m=(0,y.useRef)(!0),h=n?.active;(0,y.useEffect)(()=>{let e=t.current;e?.showModal(),m.current=!0;let n=new AbortController,i,a=async()=>{let e=c.current;try{let t=await Zn(`/api/backups`,void 0,n.signal);if(n.signal.aborted||e!==c.current)return;s(void 0),r(t),t.records.some(e=>e.id===p.current)&&(p.current=void 0)}catch(e){n.signal.aborted||s(ia(e,`backups:loadFailed`))}finally{n.signal.aborted||(i=setTimeout(()=>void a(),1e3))}};return a(),()=>{m.current=!1,n.abort(),clearTimeout(i),e?.close()}},[]);async function g(e,t,n){c.current++,f(!0),a(void 0),u(void 0);try{let i=await Zn(e,t);m.current&&(r(i),u(n),p.current=void 0)}catch(e){m.current&&a(ia(e,`backups:operationFailed`))}finally{c.current++,m.current&&f(!1)}}let _=n?.records??[],v=_.filter(e=>e.phase===`succeeded`),b=v.reduce((e,t)=>e+(t.manifest?.files.reduce((e,t)=>e+t.size,0)??0),0);return(0,G.jsxs)(`dialog`,{ref:t,className:`project-dialog backup-dialog`,"aria-labelledby":`backup-title`,onCancel:t=>{t.preventDefault(),e()},children:[(0,G.jsxs)(`div`,{className:`project-dialog-heading`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(un,{size:20,"aria-hidden":`true`}),(0,G.jsx)(`h2`,{id:`backup-title`,children:z(`backups:title`)})]}),(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`backups:close`),onClick:e,children:(0,G.jsx)(q,{name:`close`,size:17})})]}),(0,G.jsx)(`p`,{className:`subtle`,children:z(`backups:introduction`)}),(0,G.jsxs)(`section`,{className:`backup-summary`,"aria-label":z(`backups:overview`),children:[(0,G.jsx)(`span`,{children:z(`backups:currentSchema`,{version:String(n?.schemaVersion??`…`)})}),(0,G.jsx)(`span`,{children:z(`backups:completed`,{count:v.length,number:Ct(v.length),size:ra(b)})})]}),(0,G.jsxs)(`div`,{className:`backup-actions`,children:[(0,G.jsxs)(K,{disabled:!n?.supported||d||!!h,onClick:()=>{p.current??=crypto.randomUUID(),g(`/api/backups`,{clientOperationId:p.current})},children:[(0,G.jsx)(un,{size:16,"aria-hidden":`true`}),z(d?`backups:processing`:`backups:create`)]}),h&&(0,G.jsx)(K,{variant:`secondary`,disabled:d,onClick:()=>void g(`/api/backups/${encodeURIComponent(h.id)}/cancel`,{}),children:z(`backups:cancel`)})]}),h&&(0,G.jsxs)(`section`,{className:`backup-progress`,role:`status`,"aria-label":z(`backups:progress`),children:[(0,G.jsx)(`strong`,{children:z(`backups:phase_${h.phase}`)}),(0,G.jsx)(`p`,{children:z(`backups:description_${h.phase}`)}),(0,G.jsx)(aa,{value:h.message}),h.phase!==`waiting`&&(0,G.jsx)(`progress`,{"aria-label":z(`backups:databaseProgress`),max:100,value:h.progress}),(0,G.jsx)(`p`,{className:`subtle`,children:z(`backups:continues`)})]}),(i||o)&&(0,G.jsxs)(`div`,{className:`inline-error`,role:`alert`,children:[(0,G.jsx)(`p`,{children:V(i??o)}),(0,G.jsx)(aa,{value:Et(i??o)})]}),l&&(0,G.jsxs)(`p`,{className:`backup-notice`,role:`status`,children:[(0,G.jsx)(Mn,{size:16,"aria-hidden":`true`}),V(l)]}),n?.unsupportedReason&&(0,G.jsxs)(`div`,{className:`inline-error`,children:[(0,G.jsx)(`p`,{children:z(`backups:unavailable`)}),(0,G.jsx)(aa,{value:n.unsupportedReason})]}),(0,G.jsx)(`h3`,{children:z(`backups:records`)}),!n&&!i&&!o&&(0,G.jsx)(`p`,{className:`subtle`,children:z(`backups:loading`)}),n&&!_.length&&(0,G.jsx)(`p`,{className:`backup-empty`,children:z(`backups:empty`)}),(0,G.jsx)(`ol`,{className:`backup-records`,children:_.map(e=>(0,G.jsxs)(`li`,{className:`backup-record`,"data-phase":e.phase,children:[(0,G.jsxs)(`div`,{className:`backup-record-heading`,children:[(0,G.jsx)(`strong`,{children:z(`backups:phase_${e.phase}`)}),(0,G.jsx)(`span`,{children:z(`backups:trigger_${e.trigger}`)})]}),(0,G.jsx)(`time`,{dateTime:new Date(e.createdAt).toISOString(),children:wt(new Date(e.createdAt),{dateStyle:`short`,timeStyle:`medium`})}),e.manifest&&(0,G.jsxs)(`p`,{children:[`Covro `,e.manifest.appVersion,` · Schema `,e.manifest.schemaVersion,` ·`,` `,ra(e.manifest.files.reduce((e,t)=>e+t.size,0))]}),(0,G.jsx)(`p`,{className:`backup-record-message`,role:[`failed`,`corrupt`,`interrupted`].includes(e.phase)?`alert`:void 0,children:z(`backups:description_${e.phase}`)}),(0,G.jsx)(aa,{value:e.message}),e.manifest?.protectedBy&&(0,G.jsx)(`p`,{className:`subtle`,children:z(`backups:protected`)}),(0,G.jsx)(`code`,{className:`backup-path`,children:e.path}),e.manifest&&![`waiting`,`copying`,`verifying`].includes(e.phase)&&(0,G.jsxs)(K,{size:`sm`,variant:`secondary`,disabled:d||!!h,onClick:()=>void g(`/api/backups/${encodeURIComponent(e.id)}/verify`,{},B(`backups:verified`)),children:[(0,G.jsx)(On,{size:13,"aria-hidden":`true`}),z(`backups:verify`)]}),e.phase===`succeeded`&&(0,G.jsxs)(`details`,{className:`backup-restore`,children:[(0,G.jsx)(`summary`,{children:z(`backups:recovery`)}),(0,G.jsx)(`p`,{children:z(`backups:recoveryWarning`)}),(0,G.jsxs)(`code`,{children:[`covro backup restore `,e.id,` --config`,` `,JSON.stringify(e.manifest?.configPath)]}),(0,G.jsx)(`p`,{children:z(`backups:recoveryPreview`)})]})]},e.id))}),(0,G.jsxs)(`section`,{className:`backup-scope`,"aria-label":z(`backups:scope`),children:[(0,G.jsx)(`h3`,{children:z(`backups:scopeTitle`)}),(0,G.jsx)(`p`,{children:z(`backups:included`)}),(0,G.jsx)(`p`,{children:z(`backups:retention`)}),n&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{children:z(`backups:directory`)}),(0,G.jsx)(`code`,{className:`backup-path`,children:n.directory})]})]})]})}function sa(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,...t===void 0?{}:{lastTurnId:t.id,lastTurnStatus:t.status}}}var ca={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 la(e,t,n){if(!t)return`尚未读取权限模式的可用条件`;if(t.unavailableReason)return t.unavailableReason;let r=ca[e];return t.allowedProfiles&&!t.allowedProfiles.includes(r.profile)?`受管要求不允许此权限 profile`:t.allowedSandboxModes&&!t.allowedSandboxModes.includes(r.sandbox)?`受管要求不允许此权限范围`:t.allowedApprovalPolicies&&!t.allowedApprovalPolicies.includes(r.approvalPolicy)?`受管要求不允许此审批策略`:ua(r.approvalReviewer,t,n)}function ua(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 da=Object.fromEntries(Object.keys(ca).map(e=>[e,{...ca[e],get label(){return z(`settings:permission_${e}`)},get description(){return z(`settings:permission_${e}_description`)}}]));function fa(...e){let t=la(...e);if(!t)return;let n=[`missingCapabilities`,`profileRestricted`,`scopeRestricted`,`policyRestricted`,`reviewerMissing`,`reviewerRestricted`,`autoReviewDisabled`,`autoReviewRequired`].find(e=>lt[`zh-Hans`].settings[e]===t);return z(n?`settings:${n}`:`settings:permission_unavailable`)}function pa(e){if(e?.permissionMode)return e.permissionMode;if(e?.sandbox===`external-sandbox`||e?.approvalPolicy===`granular`)return`custom`}function ma(e,t=z(`common:not_reported`)){let n=pa(e);return n===`custom`?e?.permissionProfile?z(`settings:custom`,{v0:e.permissionProfile.id}):z(`settings:custom_2`):n?da[n].label:e?.sandbox||e?.permissionProfile?z(`settings:cannot_determine_mode`):t}function ha(e,t,n){let r={...e,permissionMode:n};return delete r.sandbox,delete r.approvalPolicy,delete r.approvalReviewer,ga(r,t)}function ga(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 _a(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 va(e,t,n){let r=_a(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),ga(i,t)}function ya(e,t=z(`common:not_reported`)){return e===null||e==="default"?z(`settings:fast_off`):e===`fast`?z(`settings:fast_on`):e===void 0?`Fast ${t}`:e}function ba(e){if(!e.trim())return`请输入会话名称。用法:/rename <名称>`;if(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/u.test(e))return`会话名称不能包含换行或控制字符。`;if([...e.trim()].length>100)return`会话名称最多 100 个字符。`}var xa=`codex-web.operations.v1`;function Sa(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`&&!ba(t.title))return{projectId:t.projectId,title:t.title}}}function Ca(e){let t=e instanceof Xn&&e.status===404&&e.problem.code===`OPERATION_NOT_FOUND`;return{missing:t,details:e instanceof Xn?e.problem.message:void 0,get message(){return V(t?z(`errors:submission_cannot_be_confirmed_record_not_found_404`):z(`errors:submission_cannot_be_confirmed`,{v0:V($i(e))}))}}}function wa(e){return e.lookupError?.missing===!0&&e.status===`unknown`&&!e.operation}function Ta(e){try{let t=JSON.parse((e??localStorage).getItem(xa)??`[]`);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})=>({clientOperationId:e,kind:t,target:n,createdAt:r,status:`unknown`,...Sa(t,s)?{mutation:Sa(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 Ea(e,t){try{return(t??localStorage).setItem(xa,JSON.stringify(e.map(({clientOperationId:e,kind:t,target:n,createdAt:r,projectId:i,navigateToResult:a,navigationSource:o,mutation:s})=>({clientOperationId:e,kind:t,target:n,createdAt:r,...t===`fork`||t===`create`?{projectId:i,navigateToResult:a}:{},...Sa(t,s)?{mutation:Sa(t,s)}:{},...t===`fork`&&o?{navigationSource:o}:{}})))),!0}catch{return!1}}function Da(e){return e.status===`unknown`||e.operation?.execution!==void 0&&!e.operation.execution.ended}function Oa(e){return e.status===`failed`||e.status===`acknowledged`&&(!e.execution||e.execution.ended)}function ka(e,t){return e.target===t&&!e.operation?.reconciliation&&!e.operation?.execution?.ended&&[`accepted`,`dispatching`,`unknown`].includes(e.status)}var Aa=class{threads=new Map;summaryCursors=new Map;runtimeCursor;projectsCursor;get(e){return this.threads.get(e)}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===`event`&&e.kind===`turnCompletion`)return!0;if(e.type===`snapshot`){let t=this.threads.get(e.threadId);return 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.threadId){let t=this.threads.get(e.threadId);return!t||t.cursor.serverEpoch!==e.cursor.serverEpoch||t.cursor.seq>=e.cursor.seq?!1:(this.threads.set(e.threadId,{data: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 ja(e,t=Math.random){return Math.min(3e4,700*2**Math.min(e,6))*(.75+t()*.25)}function Ma(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))return!1;let r=t.type===`snapshot`?t.data:t.payload;return!r||typeof r!=`object`?!1:t.type===`event`&&t.kind===`projects`?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`):t.type===`snapshot`||t.kind===`thread`?typeof t.threadId==`string`&&typeof r.id==`string`&&Array.isArray(r.turns)&&Array.isArray(r.actions):t.type===`event`&&t.kind===`threadSummary`?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`:t.type===`event`&&t.kind===`turnCompletion`?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)):t.type===`event`&&(t.kind===`runtime`||t.kind===`operation`)}var Na=class{handlers;cache=new Aa;socket;timer;attempt=0;stopped=!0;selected;blocked=!1;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)),this.socket?.close(),this.socket=void 0}select(e){if(this.selected===e)return;this.selected=e;let t=e?this.cache.get(e):void 0;t&&this.handlers.thread(t.data),this.socket?.readyState===WebSocket.OPEN?this.subscribe():this.retry()}retry=()=>{this.stopped||this.blocked||this.socket?.readyState===WebSocket.OPEN||this.socket?.readyState===WebSocket.CONNECTING||(clearTimeout(this.timer),this.connect())};offline=()=>{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()};subscribe(){let e=this.selected?this.cache.get(this.selected):void 0;this.socket?.send(JSON.stringify(this.selected?{type:`subscribe`,threadId:this.selected,...e?{after:e.cursor}:{}}:{type:`unsubscribe`}))}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.handlers.connection(`connected`),this.selected&&this.subscribe()},e.onmessage=t=>{if(this.socket===e)try{let e=JSON.parse(String(t.data));if(!Ma(e)){this.handlers.error(z(`errors:unrecognized_server_message_check_version_compatibility`));return}if(!this.cache.apply(e))return;if(e.type===`error`){this.handlers.error(e.error.message);return}e.type===`snapshot`&&e.threadId===this.selected&&this.handlers.thread(e.data),e.type===`event`&&(e.kind===`turnCompletion`&&this.handlers.completion?.(e.payload),e.kind===`threadSummary`&&this.handlers.summary(e.payload,e.cursor),e.kind===`thread`&&e.threadId===this.selected&&this.handlers.thread(e.payload),e.kind===`runtime`&&this.handlers.system(e.payload),e.kind===`projects`&&this.handlers.projects?.(e.payload),e.kind===`operation`&&this.handlers.operation(e.payload))}catch{this.handlers.error(z(`errors:could_not_parse_a_live_message_refresh_the`))}},e.onclose=t=>{this.stopped||this.socket!==e||(this.socket=void 0,t.code===4001||t.code===4401||t.code===4403||t.code===1008?(this.blocked=!0,this.handlers.connection(`authenticationRequired`)):(this.handlers.connection(`disconnected`),this.timer=setTimeout(()=>this.connect(),ja(this.attempt++))))},e.onerror=()=>{}}},Pa=new Set([`create`,`fork`,`resume`,`rename`,`send`,`steer`,`resolve`,`archive`,`compact`,`review`,`saveModelDefaults`]);function Fa(e){return e?JSON.stringify([e.codexEpoch,e.codexVersion,e.verifiedVersion]):void 0}function Ia(e){return e?.compatibilityConfirmation===`required`}function La(e,t,n){let r=Fa(e);return!(!Ia(e)||!r||t===r&&n!==r)}function Ra(e,t,n){return!!(Ia(e)&&e?.ready&&e.authenticated===!0&&e.codexVersion&&t===`connected`&&!n)}function za(e,t){return Pa.has(e)&&Ia(t)}function Ba(e,t,n,r){if(t?.codexVersion&&Fa(t)===e&&Ra(t,n,r))return{codexEpoch:t.codexEpoch,codexVersion:t.codexVersion,verifiedVersion:t.verifiedVersion,confirm:!0}}var Va=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}},Ha=()=>({data:[],nextCursor:null,loading:!1}),Ua=e=>e.sort((e,t)=>(t.updatedAt??0)-(e.updatedAt??0)||e.id.localeCompare(t.id)),Wa=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:Ua([...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)]??Ha(),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:Ua(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:Ua([...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:Ua([...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?Ha():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:Ua([...this.includes(e)?[e]:[],...r.data.filter(t=>t.id!==e.id)])}),!0}get(e){return this.value[S(e)]??Ha()}set(e,t){this.value={...this.value,[S(e)]:t}}};async function Ga(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(z(`sidebar:the_session_service_restarted_retry_loading_sessions`));if(a.nextCursor!==null&&(!a.nextCursor||n.has(a.nextCursor)))throw Error(z(`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(z(`sidebar:too_many_session_pages_read_retry_or_refresh`))}var Ka=256,qa=524288,Ja=1;async function Ya(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 Xa(){return new Promise(e=>{try{if(typeof indexedDB>`u`)return e(void 0);let t=indexedDB.open(`covro-conversation-history`,Ja),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 Za(e){return new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error)})}function Qa(e){return new Promise((t,n)=>{e.oncomplete=()=>t(),e.onerror=e.onabort=()=>n(e.error)})}var $a=Promise.resolve(),eo=class{write(e,t){let n=$a.then(()=>this.save(e,t));return $a=n.catch(()=>{}),n}remove(e){let t=$a.then(()=>this.delete(e));return $a=t.catch(()=>{}),t}async read(e){let t=await Xa();if(t)try{let n=t.transaction([`pages`,`metadata`]),[r,i]=await Promise.all([Za(n.objectStore(`metadata`).get(e)),Za(n.objectStore(`pages`).get(e))]);return!r||r.version!==Ja||r.savedAt<Date.now()-6048e5||!i||typeof i.json!=`string`||r.bytes>qa||await Ya(i.json)!==i.digest?void 0:JSON.parse(i.json)}catch{return}finally{t.close()}}async save(e,t){let n=await Xa();if(n)try{let r=JSON.stringify(t),i=new TextEncoder().encode(r).length;if(i>qa)return;let a={json:r,digest:await Ya(r)},o=n.transaction([`pages`,`metadata`],`readwrite`),s=Qa(o);s.catch(()=>{});let c=o.objectStore(`metadata`),l=o.objectStore(`pages`);c.put({key:e,bytes:i,savedAt:Date.now(),version:Ja}),l.put(a,e);let u=await Za(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<=Ka&&e.version===Ja&&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 Xa();if(t)try{let n=t.transaction([`pages`,`metadata`],`readwrite`),r=Qa(n);r.catch(()=>{});let i=n.objectStore(`metadata`);for(let t of await Za(i.getAll()))e(JSON.parse(t.key))&&(n.objectStore(`pages`).delete(t.key),i.delete(t.key));await r}catch{}finally{t.close()}}},to=new eo,no=(e,t,n)=>JSON.stringify([e,t,`thread-list`,`v1`,n?`archived`:`active`]);function ro(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 io=class{scope;constructor(e){this.scope=e}async read(e,t){let n=await to.read(no(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,ro(e)])).values()]}write(e,t,n){return to.write(no(this.scope,e,t),n.filter(n=>S(n.projectId)===e&&!!n.archived===t&&n.historyVisible!==!1).slice(0,300).map(ro))}remove(e){return to.remove(([t,n,r,i])=>t===this.scope&&n===e&&r===`thread-list`&&i===`v1`)}};function ao(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 Qn.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 oo=`codex-web.notifications-enabled`;function so(){return window.isSecureContext?`Notification`in window?Notification.permission:`unsupported`:`insecure`}function co(){try{return localStorage.getItem(oo)===`1`}catch{return!1}}function lo(e,t){return{title:{completed:z(`notifications:agentCompleted`),failed:z(`notifications:agentFailed`),interrupted:z(`notifications:agentInterrupted`)}[e.status],options:{body:`${t} · ${e.title}`,tag:JSON.stringify([e.threadId,e.turnId])}}}async function uo(e,t){let n=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(z(`notifications:notification_records_are_in_use_by_another_page`)))},n.onsuccess=()=>{r?n.result.close():e(n.result)}});try{return await new Promise((r,i)=>{let a=n.transaction(`completions`,`readwrite`),o=a.objectStore(`completions`).add({key:JSON.stringify([e,t])}),s=!1;o.onerror=e=>{o.error?.name===`ConstraintError`&&(s=!0,e.preventDefault())},a.oncomplete=()=>r(!s),a.onabort=()=>i(a.error)})}finally{n.close()}}function fo(e){let t=(0,y.useRef)(e);t.current=e;let n=(0,y.useRef)(!1),[r,i]=(0,y.useState)(co),[a,o]=(0,y.useState)(so),[s,c]=(0,y.useState)(!1),l=(0,y.useRef)(!1),[u,d]=(0,y.useState)();(0,y.useEffect)(()=>{n.current=!0;let e=()=>{i(co()),o(so())},t=t=>{(t.key===null||t.key===`codex-web.notifications-enabled`)&&e()};return window.addEventListener(`storage`,t),window.addEventListener(`focus`,e),document.addEventListener(`visibilitychange`,e),()=>{n.current=!1,window.removeEventListener(`storage`,t),window.removeEventListener(`focus`,e),document.removeEventListener(`visibilitychange`,e)}},[]);let f=async()=>{if(l.current)return;d(void 0);let e=so();if(o(e),r&&e===`granted`)try{localStorage.setItem(oo,`0`),i(!1)}catch{d(B(`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;o(t),t===`granted`&&(localStorage.setItem(oo,`1`),i(!0))}catch{n.current&&d(B(`notifications:cannot_enable_notifications_check_notification_permissions_and_site`))}finally{l.current=!1,n.current&&c(!1)}}},p=(0,y.useCallback)((e,t,r)=>{let i=new Notification(e,t);i.onclick=()=>{window.focus(),r?.(),i.close()},i.onerror=()=>{n.current&&d(B(`notifications:the_browser_could_not_show_notifications_check_browser`))}},[]);return{enabled:r,access:a,requesting:s,error:u,toggle:f,test:()=>{if(co()&&so()===`granted`){d(void 0);try{p(z(`notifications:test_notification`),{body:z(`notifications:project_session_and_completion_status_will_appear_here`)})}catch{d(B(`notifications:this_browser_cannot_show_system_notifications_check_browser`))}}},notify:(0,y.useCallback)(async e=>{if(!co()||so()!==`granted`)return;let r=t.current.projectName(S(e.projectId));if(r)try{if(!await uo(e.threadId,e.turnId)||!n.current||!co()||so()!==`granted`||!t.current.projectName(S(e.projectId)))return;let i=lo(e,r);p(i.title,i.options,()=>t.current.openThread(e.threadId,S(e.projectId)))}catch{n.current&&d(B(`notifications:cannot_show_notifications_or_save_deduplication_records_check`))}},[p])}}var po=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)}key(e,t){let n=t??`project:${e}`;return this.keys.get(n)??n}track(e,t){this.submissions.set(e,t)}discard(e){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}}}},mo=`covro:prepare-upgrade-reload`,ho=`covro.upgrade-tab`;async function go(){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(z(`updates:cannot_open_draft_backup_close_old_pages_and`)))})}async function _o(e,t,n){let r=sessionStorage.getItem(ho);if(!r&&e!==`put`)return;r||(r=crypto.randomUUID(),sessionStorage.setItem(ho,r));let i=await go();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(z(`updates:draft_backup_failed`)))})}finally{i.close()}}function vo(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 _o(`get`,e);t&&n&&Date.now()-n.time<864e5&&(r.current.restore(n.value),await _o(`delete`,e))})().catch(()=>{}),i=t=>{t.detail.push(n.then(async()=>{await _o(`put`,e,r.current.read())}))};return window.addEventListener(mo,i),()=>{t=!1,window.removeEventListener(mo,i)}},[e])}async function yo(){let e=[];document.body.inert=!0;try{sessionStorage.setItem(ho,crypto.randomUUID()),window.dispatchEvent(new CustomEvent(mo,{detail:e})),await Promise.all(e),window.location.reload()}catch(t){throw await Promise.allSettled(e),await Promise.allSettled([_o(`delete`,`composer`),_o(`delete`,`workspace`)]),document.body.inert=!1,t}}function bo(){try{return localStorage.getItem(`codex-web.project`)??``}catch{return``}}function xo(){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)(bo),l=(0,y.useRef)([]),[u,d]=(0,y.useState)(Ta),f=(0,y.useRef)(u),p=(0,y.useRef)(new Wa(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,D]=(0,y.useState)(),O=(0,y.useRef)(void 0),k=(0,y.useRef)(void 0),A=(0,y.useRef)({}),[j,M]=(0,y.useState)(),N=(0,y.useRef)(new Va),[ee,te]=(0,y.useState)(`connecting`),[P,F]=(0,y.useState)(),[ne,re]=(0,y.useState)(),[ie,ae]=(0,y.useState)(!1),oe=ao(ie||ee===`authenticationRequired`,ee,e,j),se=(0,y.useMemo)(()=>oe?new io(oe):void 0,[oe]),ce=(0,y.useMemo)(()=>new Map,[se]),I=(0,y.useRef)(se),le=(0,y.useRef)(new Map);I.current=se;let ue=JSON.stringify([x,...e.filter(e=>e.available).map(e=>e.id)]);(0,y.useLayoutEffect)(()=>{p.current.discardCached()&&_(p.current.snapshot)},[se]),(0,y.useEffect)(()=>{let e=!0,t=p.current;for(let n of JSON.parse(ue))se?.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}},[se,ue,m]),(0,y.useEffect)(()=>{if(!se)return;let e=setTimeout(()=>{for(let e of JSON.parse(ue)){let t=p.current.snapshot[e],n=p.current.cacheRows(e),r=`${e}:${m}`;n&&t?.loaded&&ce.get(r)!==n&&(ce.set(r,n),se.write(e,m,n))}},150);return()=>clearTimeout(e)},[se,ce,ue,m,g]);let[de,fe]=(0,y.useState)([]),pe=(0,y.useRef)(new Set),L=(0,y.useRef)(void 0),R=(0,y.useRef)(s),me=(0,y.useRef)({}),he=(0,y.useRef)(new po),[ge,_e]=(0,y.useState)({}),ve=(0,y.useRef)(new Set),[ye,be]=(0,y.useState)([]),[xe,Se]=(0,y.useState)(me.current);vo(`workspace`,()=>({settings:me.current,keys:he.current.snapshotKeys()}),e=>{he.current.restoreKeys(e.keys),me.current={...e.settings,...me.current},Se(me.current)});let[Ce,we]=(0,y.useState)(0),Te=(0,y.useRef)(0),Ee=(0,y.useRef)(new Map),De=(0,y.useRef)(0),Oe=(0,y.useRef)(void 0),[ke,Ae]=(0,y.useState)(!1),je=(0,y.useCallback)(e=>me.current[`project:${e}`]??{},[]),Me=(0,y.useCallback)(e=>{let t=O.current?`thread:${O.current}`:`project:${R.current}`;me.current={...me.current,[t]:e},Se(me.current)},[]),Ne=(0,y.useCallback)(e=>{F($i(e)),re(e instanceof Xn?e.problem.details:void 0),e instanceof Xn&&e.authenticationRequired&&ae(!0)},[]),Pe=(0,y.useCallback)(async()=>{let e=N.current.beginRead();try{let t=await Qn.system();if(N.current.canApplyRead(e))return M(t),t}catch(t){N.current.canApplyRead(e)&&Ne(t)}},[Ne]),Fe=(0,y.useCallback)(e=>{let t=e(f.current);f.current=t,d(t),Ea(t)||F(B(`workspace:the_browser_cannot_save_operation_records_keep_this`))},[]),Ie=(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):[]);le.current.get(e)?.abort();let s=new AbortController;le.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 Ga({projectId:e,archived:i,cursor:t,knownIds:o,read:t=>Qn.threads(e,t,i,r),isCurrent:()=>n.isCurrent(c)});a&&n.finishRead(c,a)&&_(p.current.snapshot)}catch(r){let i=r instanceof Xn&&[401,403,404].includes(r.status);i&&n.isCurrent(c)&&I.current?.remove(e),n.failRead(c,$i(r),t,i)&&_(p.current.snapshot),r instanceof Xn&&r.authenticationRequired&&Ne(r)}finally{le.current.get(e)===s&&le.current.delete(e)}},[Ne]),Le=(0,y.useCallback)(()=>Promise.all([Ie(x),...l.current.filter(e=>e.available).map(e=>Ie(e.id))]),[Ie]),Re=(0,y.useCallback)(e=>{p.current.setArchived(e)&&(h(e),_(p.current.snapshot),Le())},[Le]),ze=(0,y.useCallback)((e,t)=>{A.current[t]===e&&delete A.current[t];try{localStorage.getItem(`codex-web.selected:${t}`)===e&&localStorage.removeItem(`codex-web.selected:${t}`)}catch{}},[]),Be=(0,y.useCallback)(()=>{let e=O.current;e&&ze(e,R.current),Te.current++,De.current++,O.current=void 0,k.current=void 0,D(void 0),b(void 0),L.current?.select(void 0)},[ze]),Ve=(0,y.useCallback)((e,t)=>{if((e.projectId===null||l.current.some(t=>t.id===e.projectId))&&p.current.applySummary(e,t)){let t=L.current?.cache.get(e.id)?.data;e.id!==O.current&&t&&!!t.archived!=!!e.archived&&L.current?.cache.invalidateDetail(e.id),_(p.current.snapshot),e.archived&&!p.current.archived&&ze(e.id,S(e.projectId))}},[ze]),He=(0,y.useCallback)(e=>{if(e.projectId!==null&&!l.current.some(t=>t.id===e.projectId))return;if(e.id===O.current&&S(e.projectId)===R.current){T(void 0);let t=k.current,n=p.current.project(e);if(n.archived&&t?.id===e.id&&!t.archived)Be();else if(k.current=e,b(e),Re(!!n.archived),e.historyVisible)try{localStorage.setItem(`codex-web.selected:${S(e.projectId)}`,e.id)}catch{}}let t=`thread:${e.id}`,n=me.current[t];if(n&&e.runtimeSettings){let r=ga(n,e.runtimeSettings);Object.keys(r).length!==Object.keys(n).length&&(me.current={...me.current,[t]:r},Se(me.current))}if(e.execution&&!e.execution.ended&&!f.current.some(t=>t.clientOperationId===e.execution?.operationId)){let t=e.execution;Fe(n=>[...n,{clientOperationId:t.operationId,kind:`send`,target:e.id,createdAt:Date.now(),status:`unknown`}])}},[Fe,Re,Be]),Ue=(0,y.useCallback)(e=>{R.current=e,c(e);try{localStorage.setItem(`codex-web.project`,e)}catch{}},[]),We=(0,y.useCallback)(async(e,t,n=!1)=>{let r=Te.current,i=++De.current;n||(Oe.current=void 0,Ae(!1)),T(void 0);let a=t??p.current.findProject(e)??(L.current?.cache.get(e)?S(L.current.cache.get(e).data.projectId):void 0),o,s=()=>{if(a){delete A.current[a];try{localStorage.removeItem(`codex-web.selected:${a}`)}catch{}}O.current=void 0,k.current=void 0,D(void 0),b(void 0),L.current?.select(void 0)};if(a&&n&&(Ue(a),O.current=e,k.current=void 0,D(e),b(void 0)),!a||n)try{if(o=n?await Qn.threadMetadata(e):await Qn.thread(e),Te.current!==r||De.current!==i||a&&S(o.projectId)!==a)return;if(a??=S(o.projectId),n&&o.historyVisible===!1&&!f.current.some(t=>ka(t,e))){s();return}n&&(o=void 0)}catch(t){Te.current===r&&De.current===i&&(n&&t instanceof Xn&&t.problem.code===`THREAD_NOT_FOUND`&&!f.current.some(t=>ka(t,e))?s():(t instanceof Xn&&T({id:e,status:t.status}),Ne(t)));return}if(a!==`@unassigned`&&!l.current.some(e=>e.id===a))return;Ue(a),O.current=e,A.current[a]=e,D(e);let c=L.current?.cache.get(e)?.data,u=c&&S(c.projectId)===a&&!!c.archived===p.current.archived?c:o;k.current=u,b(u),c&&u!==c&&L.current?.cache.invalidateDetail(e),L.current?.select(e);try{localStorage.setItem(`codex-web.selected:${a}`,e)}catch{}try{if(o??=await Qn.thread(e),O.current!==e||R.current!==a||Te.current!==r||De.current!==i)return;let t=L.current?.cache.get(e)?.data;He(t&&t!==c?t:o)}catch(t){O.current===e&&R.current===a&&Te.current===r&&De.current===i&&(t instanceof Xn&&T({id:e,status:t.status}),Ne(t))}},[Ue,Ne,He]),Ge=(0,y.useCallback)((e,t=!1)=>{Ue(e),De.current++,O.current=void 0,k.current=void 0,D(void 0),b(void 0),L.current?.select(void 0);let n=A.current[e];try{n??=localStorage.getItem(`codex-web.selected:${e}`)??void 0}catch{}if(!t){delete A.current[e];try{localStorage.removeItem(`codex-web.selected:${e}`)}catch{}}if(t&&e&&n){let t=We(n,e,!0),r=De.current;Oe.current=r,Ae(!0),t.finally(()=>{Oe.current===r&&(Oe.current=void 0,Ae(!1))})}else Oe.current=void 0,Ae(!1)},[Ue,We]),Ke=(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(R.current)||(Te.current++,De.current++);for(let e of a)le.current.get(e.id)?.abort(),p.current.removeProject(e.id),I.current?.remove(e.id),L.current?.cache.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=R.current;(!i.current||!n.has(s))&&Ge(n.has(s)?s:e.find(e=>e.available)?.id??e[0]?.id??`@unassigned`,!i.current),i.current||Ie(x),i.current=!0,r(!0);for(let e of o)Ie(e.id)},[Ie,Ge]),qe=(0,y.useCallback)(async()=>{let e=++o.current,t=a.current;try{let{data:n}=await Qn.projects();e===o.current&&t===a.current&&Ke(n)}catch(n){e===o.current&&t===a.current&&Ne(n)}},[Ke,Ne]),Je=(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=Ee.current.get(e);Ee.current.delete(e),n&&i&&i.projectId===R.current&&i.revision===Te.current&&(i.left&&!O.current?We(i.threadId,i.projectId):O.current===i.threadId&&Re(i.archived))},[We,Re]),Ye=(0,y.useCallback)(e=>{let t=f.current.find(t=>t.clientOperationId===e.clientOperationId);if(!t)return;t.mutation&&(Oa(e)||e.reconciliation)&&Je(e.clientOperationId,e.status===`acknowledged`?e.result:void 0,e.status===`failed`);let n=he.current.apply(e);if(n?.created&&(me.current={...me.current,[`thread:${n.created.id}`]:n.created.settings},Se(me.current)),n?.sent){let e=n.sent;_e(t=>({...t,[e.key]:e}))}if(t.lookupError&&F(e=>e===t.lookupError?.message?void 0:e),Fe(t=>t.map(t=>t.clientOperationId===e.clientOperationId?{...t,status:e.status,operation:e,error:e.error?Vn(e.error):void 0,lookupError:void 0,...e.reconciliation?{mutation:void 0}:{}}:t)),e.status===`failed`&&e.error?.code!==`THREAD_IN_USE`&&(F((e.error?Vn(e.error):void 0)??B(`workspace:operation_failed_check_details`)),re(e.error?.details)),e.status===`acknowledged`){if((!i.current||Oe.current!==void 0)&&t.navigateToResult&&(t.kind===`create`||t.kind===`fork`))return;t.kind===`confirmCompatibility`&&Pe(),t.kind===`saveModelDefaults`&&(me.current=Object.fromEntries(Object.entries(me.current).map(([e,t])=>{if(!e.startsWith(`project:`))return[e,t];let n={...t};return delete n.model,delete n.reasoningEffort,[e,n]})),Se(me.current),we(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&&Ie(e),t.navigateToResult&&(t.navigationSource?.projectId??e)===R.current&&(t.kind===`create`||(t.navigationSource?t.navigationSource.threadId??void 0:t.target)===O.current)&&We(r,e)}}Oa(e)&&Fe(t=>t.filter(t=>t.clientOperationId!==e.clientOperationId))},[Pe,We,Fe,Ie,Je]);(0,y.useEffect)(()=>{for(let e of f.current)e.mutation&&Qn.threadMetadata(e.target).then(t=>{p.current.seedMutation(e.clientOperationId,sa(t)),_(p.current.snapshot)}).catch(Ne)},[Ne]),(0,y.useEffect)(()=>{if(n)for(let e of f.current)e.operation?.status===`acknowledged`&&Ye(e.operation)},[n,ke,Ye]);let Xe=(0,y.useCallback)((e,t)=>{let n=Ca(t),r=!1;return Fe(t=>t.map(t=>t.clientOperationId!==e.clientOperationId||t.operation!==e.operation?t:(r=!0,{...t,lookupError:n}))),r?n.message:void 0},[Fe]),Ze=(0,y.useCallback)(async(e=!1)=>{let t=[];await Promise.all(f.current.map(async e=>{if(!pe.current.has(`${e.kind}:${e.target}`))try{Ye(await Qn.operation(e.clientOperationId))}catch(n){if(n instanceof Xn&&n.authenticationRequired){Ne(n);return}let r=Xe(e,n);r&&t.push(r)}}));let n=t.filter(e=>f.current.some(t=>t.lookupError?.message===e));e&&n.length&&Ne(Error([...new Set(n)].join(`
15
- `)))},[Ye,Ne,Xe]),Qe=(0,y.useCallback)(async()=>{let e=O.current;if(!e)return;L.current?.select(e);let t=Te.current,n=++De.current;try{let r=L.current?.cache.get(e)?.data,i=await Qn.thread(e);if(t!==Te.current||De.current!==n)return;let a=L.current?.cache.get(e)?.data;He(a&&a!==r?a:i)}catch(r){t===Te.current&&De.current===n&&(r instanceof Xn&&T({id:e,status:r.status}),Ne(r))}},[Ne,He]),$e=(0,y.useCallback)(e=>Ie(R.current,e),[Ie]),et=fo({projectName:e=>e===`@unassigned`?z(`common:unassigned`):l.current.find(t=>t.id===e)?.name,openThread:(e,t)=>{rt(),We(e,t)}}),tt=et.notify;(0,y.useEffect)(()=>(qe(),Pe(),()=>{o.current++}),[Pe,qe]),(0,y.useEffect)(()=>{let e=new Na({connection:e=>{te(e),e===`connected`&&(Pe(),qe().then(Le))},thread:He,summary:Ve,completion:e=>{tt(e)},refresh:()=>{qe().then(Le),Qe(),Ze(),Pe()},system:e=>{N.current.runtimeEvent(),M(e)},projects:e=>{a.current++,Ke(e)},operation:Ye,error:e=>{F(e),re(void 0)}});return L.current=e,e.start(),O.current&&e.select(O.current),()=>{e.stop(),L.current=void 0}},[Ye,Pe,He,Ve,Le,qe,Ke,tt,Qe,Ze]),(0,y.useEffect)(()=>{ie&&(L.current?.stop(),te(`authenticationRequired`))},[ie]),(0,y.useEffect)(()=>{if(ie)return;Ze();let e=setInterval(()=>{Ze()},4e3),t=setInterval(()=>{Pe()},3e4);return()=>{clearInterval(e),clearInterval(t)}},[ie,Ze,Pe]);let nt=(0,y.useCallback)(async(e,t,n,r={},i)=>{if(za(e,j)){F(B(`workspace:confirm_the_codex_version_compatibility_notice_before_starting`)),re(void 0);return}let a=`${e}:${t}`;if((e===`create`||e===`saveModelDefaults`)&&[...pe.current].some(e=>e.startsWith(`saveModelDefaults:`))){F(B(`common:model_defaults_are_being_saved_wait_before_proceeding`));return}if(pe.current.has(a)||(e===`archive`||e===`rename`)&&f.current.some(e=>(e.kind===`archive`||e.kind===`rename`)&&ka(e,t))||(e===`fork`||e===`create`||e===`send`)&&f.current.some(n=>(e!==`fork`||n.kind===`fork`)&&ka(n,t)))return;pe.current.add(a),fe([...pe.current]),F(void 0),re(void 0);let o=crypto.randomUUID();i&&he.current.track(o,i);let s=k.current?.id===t?sa(k.current):Object.values(p.current.snapshot).flatMap(e=>e.data).find(e=>e.id===t),c=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(c&&(p.current.beginMutation(o,t,c,s),_(p.current.snapshot),O.current===t&&c.archived!==void 0)){let e=p.current.archived,n=c.archived;n?Be():Re(!1),Ee.current.set(o,{projectId:S(c.projectId),threadId:t,revision:Te.current,archived:e,left:n}),b(e=>e&&{...e})}Fe(n=>[...n,{clientOperationId:o,kind:e,target:t,createdAt:Date.now(),status:`accepted`,...c?{mutation:c}:{},...e===`fork`||e===`create`?{projectId:e===`create`?t:p.current.findProject(t)??R.current,navigateToResult:!0,...e===`fork`?{navigationSource:{projectId:R.current,threadId:O.current??null}}:{}}:{}}]);try{let e=await Qn.submit(n,{...r,clientOperationId:o});return Ye(e),e}catch(e){if(e instanceof Xn&&e.problem.code===`THREAD_IN_USE`||Ne(e),e instanceof Xn&&e.status>=400&&e.status<500&&e.status!==408&&e.problem.code!==`RESULT_UNKNOWN`){he.current.discard(o),c&&Je(o),Fe(e=>e.filter(e=>e.clientOperationId!==o));return}Fe(t=>t.map(t=>t.clientOperationId===o?{...t,status:`unknown`,error:$i(e)}:t));let t=f.current.find(e=>e.clientOperationId===o);try{let t=await Qn.operation(o);if(Ye(t),t.status===`acknowledged`)return F(t=>t===$i(e)?void 0:t),t}catch(e){if(e instanceof Xn&&e.authenticationRequired)Ne(e);else if(t){let n=Xe(t,e);n&&Ne(Error(n))}}return}finally{pe.current.delete(a),fe([...pe.current])}},[Ye,Ne,Fe,j,Xe,Be,Re,Je]),rt=()=>{Te.current++,f.current.some(e=>e.navigateToResult)&&Fe(e=>e.map(e=>e.navigateToResult?{...e,navigateToResult:!1}:e))},it=(0,y.useMemo)(()=>v?p.current.project(v):void 0,[v,g,u]);return{projects:e,projectsLoaded:n,reorderProjects:async e=>{let t=++a.current;try{let{data:n}=await Qn.reorderProjects(e);t===a.current&&(a.current++,Ke(n))}catch(e){throw e instanceof Xn&&e.authenticationRequired&&Ne(e),await qe(),e}},openImportedProject:async e=>{a.current++,await qe(),l.current.some(t=>t.id===e)&&(rt(),Ge(e))},addProject:async e=>{a.current++;try{let t=await Qn.addProject(e);await qe(),l.current.some(e=>e.id===t.id)&&(rt(),Ge(t.id))}catch(e){throw e instanceof Xn&&e.authenticationRequired&&Ne(e),e}},renameProject:async(e,t)=>{a.current++;try{await Qn.renameProject(e,t),await qe()}catch(e){throw e instanceof Xn&&e.authenticationRequired&&Ne(e),e}},removeProject:async e=>{a.current++;try{await Qn.removeProject(e),await qe()}catch(e){throw e instanceof Xn&&e.authenticationRequired&&Ne(e),e}},projectId:s,draftKey:he.current.key(s,E),sentDrafts:ge,restoringSelection:ke,firstMessages:ye,sendFirstMessage:async(e,t)=>{let n=R.current;if(O.current||ve.current.has(n))return!1;let r=he.current.key(n),i=je(n);ve.current.add(n),be([...ve.current]);try{let a=await nt(`create`,n,`${C(n)}/threads`,{settings:i},{kind:`create`,key:r,projectId:n,settings:i}),o=a?.result?.threadId;return a?.status!==`acknowledged`||!o?!1:(await nt(`send`,o,`/api/threads/${encodeURIComponent(o)}/turns`,{text:e,images:t,settings:i},{kind:`send`,key:r,text:e,images:t}))?.status===`acknowledged`}finally{ve.current.delete(n),be([...ve.current])}},openDraft:()=>(rt(),Ge(R.current),he.current.key(R.current)),setProjectId:e=>{rt(),Ge(e)},archiveView:m,setArchiveView:e=>{e!==p.current.archived&&(rt(),Be(),Re(e))},archiveThread:async(e,t)=>{let n=Te.current;(await nt(`archive`,e,`/api/threads/${encodeURIComponent(e)}/archive`,{archived:t}))?.status===`acknowledged`&&O.current===e&&Te.current===n&&await Qe()},projectThreads:g,cacheScope:oe,threads:g[s]?.data??[],nextCursor:g[s]?.nextCursor??null,thread:it,selectedId:E,threadReadFailure:w,selectThread:(e,t)=>(rt(),We(e,t)),system:j,connection:ee,error:P,errorDetails:ne,clearError:()=>{F(void 0),re(void 0)},authRequired:ie||ee===`authenticationRequired`,busy:de,loadingThreads:g[s]?.loading??!1,operations:u,settings:xe[E?`thread:${E}`:`project:${s}`]??{},setSettings:Me,getProjectSettings:je,runtimeDefaultsRevision:Ce,savingModelDefaults:de.some(e=>e.startsWith(`saveModelDefaults:`)),saveModelDefaults:async e=>{let t=R.current,n=await nt(`saveModelDefaults`,`model-defaults:${t}`,`${C(t)}/model-defaults`,{settings:e});return n?.status===`acknowledged`?n.result:void 0},run:nt,loadThreads:$e,loadProjectThreads:Ie,refreshProjectsThreads:Le,refreshProjects:qe,refreshThread:Qe,refreshSystem:Pe,refreshOperations:Ze,discardMissingOperation:e=>{let t=f.current.find(t=>t.clientOperationId===e);t&&wa(t)&&!pe.current.has(`${t.kind}:${t.target}`)&&(he.current.discard(e),t.mutation&&Je(e,void 0,!1),Fe(t=>t.filter(t=>t.clientOperationId!==e)),F(e=>e===t.lookupError?.message?void 0:e))},retryConnection:()=>L.current?.retry(),notifications:et}}var So=`codex-web.read-completion:`;function Co(e){return(e.status===`completed`||e.status===`idle`)&&e.lastTurnStatus===`completed`?e.lastTurnId:void 0}function wo(e,t){return`${So}${encodeURIComponent(e)}:${encodeURIComponent(t)}`}var To=class{storage;memory=new Set;constructor(e=()=>localStorage){this.storage=e}isRead(e,t){let n=wo(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=wo(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 Eo(){let[e]=(0,y.useState)(()=>new To),[,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=Co(t);return!(!n||e.isRead(t.id,n))},markCompletedRead:(0,y.useCallback)((n,r)=>{e.markRead(n,r)&&t()},[e])}}var Do=Object.defineProperty,Oo=(e,t)=>Do(e,`name`,{value:t,configurable:!0}),ko=!!(typeof window<`u`&&window.document&&window.document.createElement);function Ao(e,t,{checkForDefaultPrevented:n=!0}={}){return Oo(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Oo(Ao,`composeEventHandlers`);function jo(e){if(!ko)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Oo(jo,`getOwnerWindow`);function Mo(e){if(!ko)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Oo(Mo,`getOwnerDocument`);function No(e,t=!1){let{activeElement:n}=Mo(e);if(!n?.nodeName)return null;if(Po(n)&&n.contentDocument)return No(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Mo(n).getElementById(e);if(t)return t}}return n}Oo(No,`getActiveElement`);function Po(e){return e.tagName===`IFRAME`}Oo(Po,`isFrame`);var Fo=Object.defineProperty,J=(e,t)=>Fo(e,`name`,{value:t,configurable:!0});function Io(e,t){let n=y.createContext(t);n.displayName=e+`Context`;let r=J(e=>{let{children:t,...r}=e,i=y.useMemo(()=>r,Object.values(r));return(0,G.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 J(i,`useContext`),[r,i]}J(Io,`createContext`);function Lo(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=J(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=y.useMemo(()=>o,Object.values(o));return(0,G.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 J(s,`useContext`),[o,s]}J(r,`createContext`);let i=J(()=>{let t=n.map(e=>y.createContext(e));return J(function(n){let r=n?.[e]||t;return y.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Ro(i,...t)]}J(Lo,`createContextScope`);function Ro(...e){let t=e[0];if(e.length===1)return t;let n=J(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return J(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}J(Ro,`composeContextScopes`);var zo=l(g(),1),Bo=Object.defineProperty,Vo=(e,t)=>Bo(e,`name`,{value:t,configurable:!0});function Ho(e){let t=y.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=Qo(r),y.Children.forEach(r,e=>{if(Jo(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;Xo(n)&&typeof ns==`function`;)n=ns(n._payload);a=Go(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?qo(a):void 0,l=rr(n,c);if(!a){if(r||r===0)throw Error(o?ts(e):es(e));return r}let u=Ko(i,a.props??{});return a.type!==y.Fragment&&(u.ref=n?l:c),y.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Vo(Ho,`createSlot`);var Uo=Symbol.for(`radix.slottable`);function Wo(e){let t=Vo(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Uo,t}Vo(Wo,`createSlottable`);var Go=Vo((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 Ko(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]=$o(a,i))}return{...e,...n}}Vo(Ko,`mergeProps`);function qo(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)}Vo(qo,`getElementRef`);function Jo(e){return y.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Uo}Vo(Jo,`isSlottable`);var Yo=Symbol.for(`react.lazy`);function Xo(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Yo&&`_payload`in e&&Zo(e._payload)}Vo(Xo,`isLazyComponent`);function Zo(e){return typeof e==`object`&&!!e&&`then`in e}Vo(Zo,`isPromiseLike`);function Qo(e){let t=e;for(;Xo(t)&&typeof ns==`function`;)t=ns(t._payload);return t}Vo(Qo,`useUnwrappedLazy`);function $o(...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}Vo($o,`concatAriaDescribedby`);var es=Vo(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),ts=Vo(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),ns=y.use,rs=Object.defineProperty,is=(e,t)=>rs(e,`name`,{value:t,configurable:!0}),as=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Ho(`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,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function os(e,t){e&&zo.flushSync(()=>e.dispatchEvent(t))}is(os,`dispatchDiscreteCustomEvent`);var ss=globalThis?.document?y.useLayoutEffect:()=>{},cs=Object.defineProperty,ls=(e,t)=>cs(e,`name`,{value:t,configurable:!0}),us=y.useInsertionEffect;function ds(e){let t=y.useRef(e);return typeof us==`function`?us(()=>{t.current=e}):ss(()=>{t.current=e}),y.useMemo(()=>((...e)=>t.current?.(...e)),[])}ls(ds,`useCallbackRef`);var fs=Object.defineProperty,ps=(e,t)=>fs(e,`name`,{value:t,configurable:!0}),ms=`dismissableLayer.update`,hs=`dismissableLayer.pointerDownOutside`,gs=`dismissableLayer.focusOutside`,_s,vs=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ys=y.forwardRef(ps(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(vs),[d,f]=y.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=y.useState({}),h=rr(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=Ss(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=Cs(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=ds(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&&(_s=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ws(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=_s))}},[d,p,n,u]),y.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ws())},[d,u]),y.useEffect(()=>{let e=ps(()=>m({}),`handleUpdate`);return document.addEventListener(ms,e),()=>document.removeEventListener(ms,e)},[]),(0,G.jsx)(as.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:Ao(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ao(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ao(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function bs(){let e=y.useContext(vs),[t,n]=y.useState(null);return y.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}ps(bs,`useDismissableLayerSurface`);var xs=ps(()=>!0,`IS_TRUE`);function Ss(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=xs}=t,s=ds(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()}ps(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}ps(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)}ps(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}ps(p,`handleInteractionBubble`);let m=ps(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Ts(hs,s,p,{discrete:!0})};if(ps(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:ps(()=>c.current=!0,`onPointerDownCapture`)}}ps(Ss,`usePointerDownOutside`);function Cs(e,t=globalThis?.document){let n=ds(e),r=y.useRef(!1);return y.useEffect(()=>{let e=ps(e=>{e.target&&!r.current&&Ts(gs,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:ps(()=>r.current=!0,`onFocusCapture`),onBlurCapture:ps(()=>r.current=!1,`onBlurCapture`)}}ps(Cs,`useFocusOutside`);function ws(){let e=new CustomEvent(ms);document.dispatchEvent(e)}ps(ws,`dispatchUpdate`);function Ts(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?os(i,a):i.dispatchEvent(a)}ps(Ts,`handleAndDispatchCustomEvent`);var Es=Object.defineProperty,Ds=(e,t)=>Es(e,`name`,{value:t,configurable:!0}),Os=`focusScope.autoFocusOnMount`,ks=`focusScope.autoFocusOnUnmount`,As={bubbles:!1,cancelable:!0},js=y.forwardRef(Ds(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=y.useState(null),u=ds(a),d=ds(o),f=y.useRef(null),p=rr(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:Hs(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||Hs(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Hs(c)};Ds(e,`handleFocusIn`),Ds(t,`handleFocusOut`),Ds(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){Us.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(Os,As);c.addEventListener(Os,u),c.dispatchEvent(t),t.defaultPrevented||(Is(Ks(Rs(c)),{select:!0}),document.activeElement===e&&Hs(c))}return()=>{c.removeEventListener(Os,u);let t=c.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(ks,As);c.addEventListener(ks,d),c.dispatchEvent(r),r.defaultPrevented||Hs(e??t.body,{select:!0}),c.removeEventListener(ks,d),Us.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]=Ls(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Hs(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Hs(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,G.jsx)(as.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),Ms=y.createContext(null);function Ns({registry:e,children:t}){return e?(0,G.jsx)(Ms.Provider,{value:e,children:t}):t}Ds(Ns,`FocusScopeBranchProvider`);function Ps(){let[e,t]=y.useState([]);return{nodes:e,registry:y.useMemo(()=>({add:Ds(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:Ds(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}Ds(Ps,`useFocusScopeBranchRegistry`);function Fs(e){let t=y.useContext(Ms);y.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}Ds(Fs,`useFocusScopeBranch`);function Is(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Hs(r,{select:t}),document.activeElement!==n)return}Ds(Is,`focusFirst`);function Ls(e){let t=Rs(e);return[zs(t,e),zs(t.reverse(),e)]}Ds(Ls,`getTabbableEdges`);function Rs(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Ds(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}Ds(Rs,`getTabbableCandidates`);function zs(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Bs(r,{upTo:t})))return r}Ds(zs,`findVisible`);function Bs(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}Ds(Bs,`isHidden`);function Vs(e){return e.tagName===`INPUT`&&typeof e.select==`function`}Ds(Vs,`isSelectableInput`);function Hs(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&Vs(e)&&t&&e.select()}}Ds(Hs,`focus`);var Us=Ws();function Ws(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Gs(e,t),e.unshift(t)},remove(t){e=Gs(e,t),e[0]?.resume()}}}Ds(Ws,`createFocusScopesStack`);function Gs(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Ds(Gs,`arrayRemove`);function Ks(e){return e.filter(e=>e.tagName!==`A`)}Ds(Ks,`removeLinks`);var qs=Object.defineProperty,Js=(e,t)=>qs(e,`name`,{value:t,configurable:!0}),Ys=y.useId||(()=>void 0),Xs=0;function Zs(e){let[t,n]=y.useState(Ys());return ss(()=>{e||n(e=>e??String(Xs++))},[e]),e||(t?`radix-${t}`:``)}Js(Zs,`useId`);var Qs=[`top`,`right`,`bottom`,`left`],$s=Math.min,ec=Math.max,tc=Math.round,nc=Math.floor,rc=e=>({x:e,y:e}),ic={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ac(e,t,n){return ec(e,$s(t,n))}function oc(e,t){return typeof e==`function`?e(t):e}function sc(e){return e.split(`-`)[0]}function cc(e){return e.split(`-`)[1]}function lc(e){return e===`x`?`y`:`x`}function uc(e){return e===`y`?`height`:`width`}function dc(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function fc(e){return lc(dc(e))}function pc(e,t,n){n===void 0&&(n=!1);let r=cc(e),i=fc(e),a=uc(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Sc(o)),[o,Sc(o)]}function mc(e){let t=Sc(e);return[hc(e),t,hc(t)]}function hc(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var gc=[`left`,`right`],_c=[`right`,`left`],vc=[`top`,`bottom`],yc=[`bottom`,`top`];function bc(e,t,n){switch(e){case`top`:case`bottom`:return n?t?_c:gc:t?gc:_c;case`left`:case`right`:return t?vc:yc;default:return[]}}function xc(e,t,n,r){let i=cc(e),a=bc(sc(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(hc)))),a}function Sc(e){let t=sc(e);return ic[t]+e.slice(t.length)}function Cc(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function wc(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Cc(e)}function Tc(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 Ec(e,t,n){let{reference:r,floating:i}=e,a=dc(t),o=fc(t),s=uc(o),c=sc(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=cc(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Dc(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}=oc(t,e),p=wc(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Tc(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=Tc(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 Oc=50,kc=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Dc},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ec(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<Oc&&(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}=Ec(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Ac=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}=oc(e,t)||{};if(l==null)return{};let d=wc(u),f={x:n,y:r},p=fc(i),m=uc(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=$s(d[_],T),D=$s(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=ac(E,k,O),j=!c.arrow&&cc(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}}}),jc=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}=oc(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=sc(r),_=dc(o),v=sc(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Sc(o)]:mc(o)),x=p!==`none`;!d&&x&&b.push(...xc(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=pc(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`||_===dc(t)||T.every(e=>dc(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=dc(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 Mc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Nc(e){return Qs.some(t=>e[t]>=0)}var Pc=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=oc(e,t);switch(i){case`referenceHidden`:{let e=Mc(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Nc(e)}}}case`escaped`:{let e=Mc(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Nc(e)}}}default:return{}}}}},Fc=new Set([`left`,`top`]);async function Ic(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=sc(n),s=cc(n),c=dc(n)===`y`,l=Fc.has(o)?-1:1,u=a&&c?-1:1,d=oc(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 Lc=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 Ic(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}}}}},Rc=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}=oc(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=dc(i),p=lc(f),m=u[p],h=u[f],g=(e,t)=>ac(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}}}}}},zc=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}=oc(e,t),u={x:n,y:r},d=dc(i),f=lc(d),p=u[f],m=u[d],h=oc(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=Fc.has(sc(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}}}},Bc=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}=oc(e,t),c=await i.detectOverflow(t,s),l=sc(n),u=cc(n),d=dc(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=$s(p-c[m],g),y=$s(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*ec(c.left,c.right):S=p-2*ec(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 Vc(){return typeof window<`u`}function Hc(e){return Gc(e)?(e.nodeName||``).toLowerCase():`#document`}function Uc(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wc(e){return((Gc(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Gc(e){return Vc()?e instanceof Node||e instanceof Uc(e).Node:!1}function Kc(e){return Vc()?e instanceof Element||e instanceof Uc(e).Element:!1}function qc(e){return Vc()?e instanceof HTMLElement||e instanceof Uc(e).HTMLElement:!1}function Jc(e){return!Vc()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Uc(e).ShadowRoot}function Yc(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ol(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Xc(e){return/^(table|td|th)$/.test(Hc(e))}function Zc(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Qc=/transform|translate|scale|rotate|perspective|filter/,$c=/paint|layout|strict|content/,el=e=>!!e&&e!==`none`,tl;function nl(e){let t=Kc(e)?ol(e):e;return el(t.transform)||el(t.translate)||el(t.scale)||el(t.rotate)||el(t.perspective)||!il()&&(el(t.backdropFilter)||el(t.filter))||Qc.test(t.willChange||``)||$c.test(t.contain||``)}function rl(e){let t=cl(e);for(;qc(t)&&!al(t);){if(nl(t))return t;if(Zc(t))return null;t=cl(t)}return null}function il(){return tl??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),tl}function al(e){return/^(html|body|#document)$/.test(Hc(e))}function ol(e){return Uc(e).getComputedStyle(e)}function sl(e){return Kc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cl(e){if(Hc(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Jc(e)&&e.host||Wc(e);return Jc(t)?t.host:t}function ll(e){let t=cl(e);return al(t)?(e.ownerDocument||e).body:qc(t)&&Yc(t)?t:ll(t)}function ul(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ll(e),i=r===e.ownerDocument?.body,a=Uc(r);if(i){let e=dl(a);return t.concat(a,a.visualViewport||[],Yc(r)?r:[],e&&n?ul(e):[])}return t.concat(r,ul(r,[],n))}function dl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fl(e){let t=ol(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=qc(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=tc(n)!==a||tc(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function pl(e){return Kc(e)?e:e.contextElement}function ml(e){let t=pl(e);if(!qc(t))return rc(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=fl(t),o=(a?tc(n.width):n.width)/r,s=(a?tc(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var hl=rc(0);function gl(e){let t=Uc(e);return!il()||!t.visualViewport?hl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _l(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Uc(e)}function vl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=pl(e),o=rc(1);t&&(r?Kc(r)&&(o=ml(r)):o=ml(e));let s=_l(a,n,r)?gl(a):rc(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=Uc(a),t=Kc(r)?Uc(r):r,n=e,i=dl(n);for(;i&&t!==n;){let e=ml(i),t=i.getBoundingClientRect(),r=ol(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=Uc(i),i=dl(n)}}return Tc({width:u,height:d,x:c,y:l})}function yl(e,t){let n=sl(e).scrollLeft;return t?t.left+n:vl(Wc(e)).left+n}function bl(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-yl(e,n),y:n.top+t.scrollTop}}function xl(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Wc(r),s=t?Zc(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=rc(1),u=rc(0),d=qc(r);if((d||!a)&&((Hc(r)!==`body`||Yc(o))&&(c=sl(r)),d)){let e=vl(r);l=ml(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?bl(o,c):rc(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 Sl(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Cl(e){let t=sl(e),n=e.ownerDocument.body,r=ec(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=ec(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+yl(e),o=-t.scrollTop;return ol(n).direction===`rtl`&&(a+=ec(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var wl=25;function Tl(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Uc(e),a=Wc(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!il()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(yl(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<=wl&&(s-=o)}return{width:s,height:c,x:l,y:u}}function El(e,t){let n=vl(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ml(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Dl(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Tl(e,n,t);else if(t===`document`)r=Cl(Wc(e));else if(Kc(t))r=El(t,n);else{let n=gl(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Tc(r)}function Ol(e,t){let n=t.get(e);if(n)return n;let r=ul(e,[],!1).filter(e=>Kc(e)&&Hc(e)!==`body`),i=null,a=ol(e).position===`fixed`,o=a?cl(e):e;for(;Kc(o)&&!al(o);){let e=ol(o),t=nl(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=cl(o)}return t.set(e,r),r}function kl(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Zc(t)?[]:Ol(t,this._c):[].concat(n),r],o=Dl(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=Dl(t,a[e],i);s=ec(n.top,s),c=$s(n.right,c),l=$s(n.bottom,l),u=ec(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Al(e){let{width:t,height:n}=fl(e);return{width:t,height:n}}function jl(e,t,n){let r=qc(t),i=Wc(t),a=n===`fixed`,o=vl(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=rc(0);if((r||!a)&&((Hc(t)!==`body`||Yc(i))&&(s=sl(t)),r)){let e=vl(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=yl(i));let l=i&&!r&&!a?bl(i,s):rc(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 Ml(e){return ol(e).position===`static`}function Nl(e,t){if(!qc(e)||ol(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Wc(e)===n&&(n=n.ownerDocument.body),n}function Pl(e,t){let n=Uc(e);if(Zc(e))return n;if(!qc(e)){let t=cl(e);for(;t&&!al(t);){if(Kc(t)&&!Ml(t))return t;t=cl(t)}return n}let r=Nl(e,t);for(;r&&Xc(r)&&Ml(r);)r=Nl(r,t);return r&&al(r)&&Ml(r)&&!nl(r)?n:r||rl(e)||n}var Fl=async function(e){let t=this.getOffsetParent||Pl,n=this.getDimensions,r=await n(e.floating);return{reference:jl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Il(e){return ol(e).direction===`rtl`}var Ll={convertOffsetParentRelativeRectToViewportRelativeRect:xl,getDocumentElement:Wc,getClippingRect:kl,getOffsetParent:Pl,getElementRects:Fl,getClientRects:Sl,getDimensions:Al,getScale:ml,isElement:Kc,isRTL:Il};function Rl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function zl(e,t,n){let r=null,i,a=Wc(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=nc(d),h=nc(a.clientWidth-(u+f)),g=nc(a.clientHeight-(d+p)),_=nc(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:ec(0,$s(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Rl(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=Uc(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Bl(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=pl(e),u=i||a?[...l?ul(l):[],...t?ul(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?zl(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?vl(e):null;c&&g();function g(){let t=vl(e);h&&!Rl(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 Vl=Lc,Hl=Rc,Ul=jc,Wl=Bc,Gl=Pc,Kl=Ac,ql=zc,Jl=(e,t,n)=>{let r=new Map,i=n??{},a={...Ll,...i.platform,_c:r};return kc(e,t,{...i,platform:a})},Yl=typeof document<`u`?y.useLayoutEffect:function(){};function Xl(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(!Xl(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)&&!Xl(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Zl(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ql(e,t){let n=Zl(e);return Math.round(t*n)/n}function $l(e){let t=y.useRef(e);return Yl(()=>{t.current=e}),t}function eu(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);Xl(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=$l(c),O=$l(i),k=$l(l),A=y.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Jl(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Xl(T.current,t)&&(T.current=t,zo.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Yl(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=y.useRef(!1);Yl(()=>(j.current=!0,()=>{j.current=!1}),[]),Yl(()=>{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]),ee=y.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Ql(N.floating,u.x),r=Ql(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Zl(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:ee}),[u,A,M,N,ee])}var tu=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?{}:Kl({element:r.current,padding:i}).fn(n):r?Kl({element:r,padding:i}).fn(n):{}}}},nu=(e,t)=>{let n=Vl(e);return{name:n.name,fn:n.fn,options:[e,t]}},ru=(e,t)=>{let n=Hl(e);return{name:n.name,fn:n.fn,options:[e,t]}},iu=(e,t)=>({fn:ql(e).fn,options:[e,t]}),au=(e,t)=>{let n=Ul(e);return{name:n.name,fn:n.fn,options:[e,t]}},ou=(e,t)=>{let n=Wl(e);return{name:n.name,fn:n.fn,options:[e,t]}},su=(e,t)=>{let n=Gl(e);return{name:n.name,fn:n.fn,options:[e,t]}},cu=(e,t)=>{let n=tu(e);return{name:n.name,fn:n.fn,options:[e,t]}},lu=Object.defineProperty,uu=y.forwardRef(((e,t)=>lu(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,G.jsx)(as.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,G.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),du=Object.defineProperty,fu=(e,t)=>du(e,`name`,{value:t,configurable:!0});function pu(e){let[t,n]=y.useState(void 0);return ss(()=>{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}fu(pu,`useSize`);var mu=Object.defineProperty,hu=(e,t)=>mu(e,`name`,{value:t,configurable:!0}),gu={Partial:`partial`,Always:`always`},_u={Optimized:`optimized`,Always:`always`},vu=`Popper`,[yu,bu]=Lo(vu),[xu,Su]=yu(vu),Cu=hu(e=>{let{__scopePopper:t,children:n}=e,[r,i]=y.useState(null),[a,o]=y.useState(void 0);return(0,G.jsx)(xu,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),wu=`PopperAnchor`,Tu=y.forwardRef(hu(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Su(wu,n),o=y.useRef(null),s=a.onAnchorChange,c=rr(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&&Fu(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,G.jsx)(as.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),Eu=`PopperContent`,[Du,Ou]=yu(Eu),ku=y.forwardRef(hu(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=gu.Partial,hideWhenDetached:f=!1,updatePositionStrategy:p=_u.Optimized,onPlaced:m,...h}=e,g=Su(Eu,n),[_,v]=y.useState(null),b=rr(t,v),[x,S]=y.useState(null),C=pu(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(Nu),altBoundary:k},{refs:j,floatingStyles:M,placement:N,isPositioned:ee,middlewareData:te}=eu({strategy:`fixed`,placement:E,whileElementsMounted:hu((...e)=>Bl(...e,{animationFrame:p===_u.Always}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[nu({mainAxis:i+T,alignmentAxis:o}),c&&ru({mainAxis:!0,crossAxis:!1,...d===gu.Partial?{limiter:iu()}:{},...A}),c&&au({...A}),ou({...A,apply:hu(({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&&cu({element:x,padding:s}),Pu({arrowWidth:w,arrowHeight:T}),f&&su(k?{strategy:`referenceHidden`,...A}:{strategy:`referenceHidden`,padding:A.padding,altBoundary:A.altBoundary})]}),P=g.setPlacementState;ss(()=>(P(N),()=>{P(void 0)}),[N,P]);let[F,ne]=Fu(N),re=ds(m);ss(()=>{ee&&re?.()},[ee,re]);let ie=te.arrow?.x,ae=te.arrow?.y,oe=te.arrow?.centerOffset!==0,[se,ce]=y.useState();return ss(()=>{_&&ce(window.getComputedStyle(_).zIndex)},[_]),(0,G.jsx)(`div`,{ref:j.setFloating,"data-radix-popper-content-wrapper":``,style:{...M,transform:ee?M.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[te.transformOrigin?.x,te.transformOrigin?.y].join(` `),...te.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,G.jsx)(Du,{scope:n,placedSide:F,placedAlign:ne,onArrowChange:S,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,G.jsx)(as.div,{"data-side":F,"data-align":ne,...h,ref:b,style:{...h.style,animation:ee?h.style?.animation:`none`}})})})},`PopperContent`)),Au=`PopperArrow`,ju={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Mu=y.forwardRef(hu(function(e,t){let{__scopePopper:n,...r}=e,i=Ou(Au,n),a=ju[i.placedSide];return(0,G.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,G.jsx)(uu,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function Nu(e){return e!==null}hu(Nu,`isNotNull`);var Pu=hu(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]=Fu(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 Fu(e){let[t,n=`center`]=e.split(`-`);return[t,n]}hu(Fu,`getSideAndAlignFromPlacement`);var Iu=Object.defineProperty,Lu=y.forwardRef(((e,t)=>Iu(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=y.useState(!1);ss(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?zo.createPortal((0,G.jsx)(as.div,{...r,ref:t}),o):null},`Portal`)),Ru=Object.defineProperty,zu=(e,t)=>Ru(e,`name`,{value:t,configurable:!0});function Bu(e,t){return y.useReducer((e,n)=>t[e][n]??e,e)}zu(Bu,`useStateMachine`);var Vu=zu(e=>{let{present:t,children:n}=e,r=Hu(t),i=typeof n==`function`?n({present:r.isPresent}):y.Children.only(n),a=Wu(r.ref,Ku(i));return typeof n==`function`||r.isPresent?y.cloneElement(i,{ref:a}):null},`Presence`);function Hu(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]=Bu(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??Gu(r.current),o.current=void 0):a.current=`none`},[s]),ss(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Gu(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]),ss(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=zu(a=>{let o=Gu(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=zu(e=>{e.target===t&&(a.current=Gu(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=Gu(t)}else r.current=null;n(e)},[])}}zu(Hu,`usePresence`);function Uu(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}zu(Uu,`setRef`);function Wu(...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=Uu(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():Uu(n[e],null)}}},[])}zu(Wu,`useStableComposedRefs`);function Gu(e){return e?.animationName||`none`}zu(Gu,`getAnimationName`);function Ku(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)}zu(Ku,`getElementRef`);var qu=Object.defineProperty,Ju=(e,t)=>qu(e,`name`,{value:t,configurable:!0}),Yu=y.useEffectEvent,Xu=y.useInsertionEffect;function Zu(e){if(typeof Yu==`function`)return Yu(e);let t=y.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Xu==`function`?Xu(()=>{t.current=e}):ss(()=>{t.current=e}),y.useMemo(()=>((...e)=>t.current?.(...e)),[])}Ju(Zu,`useEffectEvent`);var Qu=Object.defineProperty,$u=(e,t)=>Qu(e,`name`,{value:t,configurable:!0}),ed=y.useInsertionEffect||ss;function td({prop:e,defaultProp:t,onChange:n=$u(()=>{},`onChange`),caller:r}){let[i,a,o]=nd({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,y.useCallback(t=>{if(s){let n=rd(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}$u(td,`useControllableState`);function nd({defaultProp:e,onChange:t}){let[n,r]=y.useState(e),i=y.useRef(n),a=y.useRef(t);return ed(()=>{a.current=t},[t]),y.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}$u(nd,`useUncontrolledState`);function rd(e){return typeof e==`function`}$u(rd,`isFunction`);var id=Symbol(`RADIX:SYNC_STATE`);function ad(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Zu(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=y.useReducer((t,n)=>{if(n.type===id)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:id,state:i})},[i,d.state,c]),[h,f]}$u(ad,`useControllableStateReducer`);var od=Object.defineProperty,sd=(e,t)=>od(e,`name`,{value:t,configurable:!0}),cd=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`}),ld=y.forwardRef(sd(function(e,t){return(0,G.jsx)(as.span,{...e,ref:t,style:{...cd,...e.style}})},`VisuallyHidden`)),ud=Object.defineProperty,dd=(e,t)=>ud(e,`name`,{value:t,configurable:!0}),[fd,pd]=Lo(`Tooltip`,[bu]),md=bu(),hd=`TooltipProvider`,gd=700,_d=`tooltip.open`,[vd,yd]=fd(hd),bd=dd(e=>{let{__scopeTooltip:t,delayDuration:n=gd,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,G.jsx)(vd,{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`),xd=`Tooltip`,[Sd,Cd]=fd(xd),wd=dd(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=yd(xd,e.__scopeTooltip),l=md(t),[u,d]=y.useState(null),[f,p]=y.useState(void 0),m=Zs(),h=y.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,v=y.useRef(!1),[b,x]=td({prop:r,defaultProp:i??!1,onChange:dd(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(_d))):c.onClose(),a?.(e)},`onChange`),caller:xd}),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,G.jsx)(Cu,{...l,children:(0,G.jsx)(Sd,{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`),Td=`TooltipTrigger`,Ed=y.forwardRef(dd(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=Cd(Td,n),o=yd(Td,n),s=md(n),c=rr(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,G.jsx)(Tu,{asChild:!0,...s,children:(0,G.jsx)(as.button,{"aria-describedby":a.open?Ud(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:c,onPointerMove:Ao(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:Ao(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:Ao(e.onPointerDown,()=>{a.open&&a.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:Ao(e.onFocus,()=>{l.current||a.onOpen()}),onBlur:Ao(e.onBlur,a.onClose),onClick:Ao(e.onClick,a.onClose)})})},`TooltipTrigger`)),Dd=`TooltipPortal`,[Od,kd]=fd(Dd,{forceMount:void 0}),Ad=dd(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Cd(Dd,t);return(0,G.jsx)(Od,{scope:t,forceMount:n,children:(0,G.jsx)(Vu,{present:n||a.open,children:(0,G.jsx)(Lu,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),jd=`TooltipContent`,Md=y.forwardRef(dd(function(e,t){let n=kd(jd,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Cd(jd,e.__scopeTooltip);return(0,G.jsx)(Vu,{present:r||o.open,children:o.disableHoverableContent?(0,G.jsx)(Fd,{side:i,...a,ref:t}):(0,G.jsx)(Nd,{side:i,...a,ref:t})})},`TooltipContent`)),Nd=y.forwardRef(dd(function(e,t){let n=Cd(jd,e.__scopeTooltip),r=yd(jd,e.__scopeTooltip),i=y.useRef(null),a=rr(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=Rd(r,Ld(r,n.getBoundingClientRect())),a=zd(t.getBoundingClientRect()),o=Vd([...i,...a]);s(o),d(!0)},[d]);return y.useEffect(()=>()=>f(),[f]),y.useEffect(()=>{if(c&&u){let e=dd(e=>p(e,u),`handleTriggerLeave`),t=dd(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=dd(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Bd(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,G.jsx)(Fd,{...e,ref:a})},`TooltipContentHoverable`)),Pd=Wo(`TooltipContent`),Fd=y.forwardRef(dd(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=Cd(jd,n),u=md(n),{onClose:d}=l,[f,p]=y.useState(null),m=rr(t,p);Fs(f),y.useEffect(()=>(document.addEventListener(_d,d),()=>document.removeEventListener(_d,d)),[d]),y.useEffect(()=>{if(l.trigger){let e=dd(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 ss(()=>(h(a),()=>{h(void 0)}),[a,h]),(0,G.jsx)(ys,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,G.jsxs)(ku,{"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,G.jsx)(Pd,{children:r}),i?(0,G.jsx)(ld,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),Id=y.forwardRef(dd(function(e,t){let{__scopeTooltip:n,...r}=e,i=md(n);return(0,G.jsx)(Mu,{...i,...r,ref:t})},`TooltipArrow`));function Ld(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`)}}dd(Ld,`getExitSideFromRect`);function Rd(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}dd(Rd,`getPaddedExitPoints`);function zd(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}]}dd(zd,`getPointsFromRect`);function Bd(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}dd(Bd,`isPointInPolygon`);function Vd(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)),Hd(t)}dd(Vd,`getHull`);function Hd(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)}dd(Hd,`getHullPresorted`);function Ud(...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}dd(Ud,`concatAriaDescribedby`);var Wd=Ad;function Gd({delayDuration:e=0,...t}){return(0,G.jsx)(bd,{delayDuration:e,...t})}function Kd(e){return(0,G.jsx)(wd,{...e})}function qd(e){return(0,G.jsx)(Ed,{"data-slot":`tooltip-trigger`,...e})}function Jd({className:e,sideOffset:t=8,collisionPadding:n=8,children:r,...i}){return(0,G.jsx)(Ad,{children:(0,G.jsxs)(Md,{"data-slot":`tooltip-content`,sideOffset:t,collisionPadding:n,className:Zi(`tooltip-content`,e),...i,children:[r,(0,G.jsx)(Id,{className:`tooltip-arrow`})]})})}function Yd({id:e,content:t,children:n,suppressed:r=!1,className:i,asChild:a=!1,side:o=`top`,align:s=`end`}){let c=(0,y.useId)(),l=e??c,[u,d]=(0,y.useState)(!1),f=(0,y.useRef)(!1);if((0,y.useEffect)(()=>{if(r&&(d(!1),f.current=!0),!f.current)return;let e=e=>{e.key===`Tab`&&!r&&(f.current=!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),!t)return n;let p=(0,G.jsx)(`span`,{id:l,className:`sr-only control-hint-description`,"aria-hidden":`true`,children:t}),m=(0,y.isValidElement)(n)?(0,y.cloneElement)(n,{"aria-describedby":n.props[`aria-describedby`]??l}):n;return(0,G.jsx)(Gd,{children:(0,G.jsxs)(Kd,{open:u&&!r,onOpenChange:e=>d(e&&!r),children:[(0,G.jsx)(qd,{asChild:!0,"aria-describedby":a?l:void 0,className:a?i:void 0,onFocus:e=>{(f.current||!e.target.matches(`:focus-visible`))&&e.preventDefault()},children:a?m:(0,G.jsxs)(`span`,{className:Zi(`control-hint`,i),children:[m,p]})}),a&&(0,G.jsx)(Wd,{forceMount:!0,children:p}),(0,G.jsx)(Jd,{side:o,align:s,children:(0,G.jsx)(`div`,{className:`control-hint-content`,children:t})})]})})}var Xd={get idle(){return z(`conversation:ready`)},get running(){return z(`common:running`)},get waitingApproval(){return z(`conversation:awaiting_approval`)},get waitingInput(){return z(`conversation:awaiting_answer`)},get completed(){return z(`common:completed`)},get failed(){return z(`common:failed`)},get interrupted(){return z(`common:interrupted`)},get unknown(){return z(`conversation:status_needs_checking`)}};function Zd(e){return e===`running`||e===`waitingApproval`||e===`waitingInput`}function Qd({status:e,offline:t=!1}){return(0,G.jsxs)(`span`,{className:Zi(`status`,`status-${e}`),children:[(0,G.jsx)(`span`,{className:`status-dot`}),t&&Zd(e)?z(`common:last_known`):``,Xd[e]]})}function $d(e){let{originator:t,source:n}=e;if(t?.trim())switch(t){case`codex_web_ui`:return{label:`Web`,description:z(`sidebar:created_by_covro_this_web_page`)};case`codex-tui`:return{label:`CLI`,description:z(`sidebar:created_by_the_codex_terminal_cli`)};case`codex_vscode`:return{label:`VS Code`,description:z(`sidebar:created_by_the_codex_extension_in_vs_code`)};case`Codex Desktop`:return{label:`Codex Desktop`,description:z(`sidebar:created_by_the_codex_desktop_app`)};default:return{label:t,description:z(`sidebar:recorded_creator`,{v0:t})}}switch(n){case`cli`:return{label:`CLI`,description:z(`sidebar:recorded_as_a_codex_terminal_cli_source`)};case`vscode`:return{label:z(`sidebar:interactive_client`),description:z(`sidebar:codex_only_recorded_an_interactive_source_category_it`)};case`appServer`:case`mcp`:return{label:`MCP`,description:z(`sidebar:recorded_as_a_codex_mcp_service_source`)};case`exec`:return{label:z(`sidebar:command_line_task`),description:z(`sidebar:recorded_as_a_non_interactive_codex_command_line`)};default:return{label:z(`sidebar:source_unconfirmed`),description:n&&n!==`unknown`?z(`sidebar:no_recognizable_creator_codex_source_is_recorded_as`,{v0:n}):z(`sidebar:no_recognizable_creator_information`)}}}function ef({id:e,placeholder:t}){return e?(0,G.jsx)(tf,{id:e},e):(0,G.jsx)(`span`,{children:t??z(`common:session_not_created_yet`)})}function tf({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,G.jsxs)(`div`,{className:`thread-id`,children:[(0,G.jsxs)(`div`,{className:`thread-id-value`,children:[(0,G.jsx)(`code`,{children:e}),(0,G.jsx)(Yd,{asChild:!0,content:z(`sidebar:copy_full_thread_id`),children:(0,G.jsx)(K,{variant:`ghost`,size:`icon`,className:`thread-id-copy`,"aria-label":z(`sidebar:copy_thread_id`),onClick:()=>void o(),children:(0,G.jsx)(q,{name:t===`copied`?`check`:`copy`,size:14})})})]}),(0,G.jsxs)(`span`,{className:`thread-id-feedback thread-id-${t}`,role:`status`,children:[t===`copied`&&z(`common:copied`),t===`failed`&&z(`sidebar:copy_failed_select_and_copy_the_id_manually`)]})]})}var nf={running:`loader`,waitingApproval:`shieldPending`,waitingInput:`chat`,failed:`alert`,interrupted:`stop`,unknown:`question`};function rf({status:e,label:t,offline:n,pending:r}){return(0,G.jsx)(Yd,{asChild:!0,content:t,children:(0,G.jsxs)(`span`,{className:Zi(`thread-status-indicator`,`thread-status-${e}`),"data-status":e,role:`img`,"aria-label":t,children:[(0,G.jsx)(`span`,{className:Zi(`thread-status-glyph`,e===`running`&&!n&&`thread-status-spinning`),children:e===`idle`||e===`completed`?(0,G.jsx)(`span`,{className:`thread-status-dot`}):(0,G.jsx)(q,{name:nf[e],size:15})}),(r||e===`waitingApproval`)&&(0,G.jsx)(`span`,{className:`thread-status-notification`})]})})}function af({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||z(`sidebar:untitled_session`),_=$d(e),v=e.archived?z(`common:unarchive`):z(`sidebar:archive_session`),b=e.lastTurnStatus,x=e.status===`idle`&&b&&[`completed`,`failed`,`interrupted`].includes(b)?b:e.status,S=`${r&&Zd(x)?z(`common:last_known`):``}${Xd[x]}${x===`completed`&&n?z(`sidebar:unread`):``}${e.pendingActionCount>0?z(`sidebar:pending_requests_2`,{count:e.pendingActionCount,v0:e.pendingActionCount}):``}`,C=x!==`idle`&&x!==`completed`||n||e.pendingActionCount>0;return(0,G.jsxs)(`div`,{className:`thread-row`,onKeyDown:e=>{e.key===`Escape`&&m&&(e.stopPropagation(),h(!1),p.current?.focus())},children:[(0,G.jsx)(Yd,{asChild:!0,content:g,children:(0,G.jsxs)(`button`,{className:Zi(`thread-link`,t&&`thread-selected`),"data-thread-id":e.id,onClick:()=>{h(!1),i()},"aria-current":t?`page`:void 0,children:[e.forkedFromId&&(0,G.jsx)(q,{name:`fork`,size:14}),(0,G.jsxs)(`span`,{className:`thread-link-content`,children:[(0,G.jsx)(`span`,{className:`thread-title`,children:g}),(0,G.jsxs)(`span`,{className:`sr-only`,children:[` · `,S]})]})]})}),(0,G.jsxs)(`div`,{className:`thread-row-actions`,children:[C?(0,G.jsx)(rf,{status:x===`completed`&&!n?`idle`:x,label:S,offline:r,pending:e.pendingActionCount>0}):(0,G.jsx)(`span`,{className:`thread-status-placeholder`,"aria-hidden":`true`}),(0,G.jsx)(Yd,{asChild:!0,content:z(`sidebar:session_details_and_source`),children:(0,G.jsx)(K,{ref:p,variant:`ghost`,size:`icon`,className:`thread-details-trigger`,"aria-label":z(`sidebar:session_details`,{v0:g}),"aria-expanded":m,"aria-controls":d,onClick:()=>h(e=>!e),children:(0,G.jsx)(q,{name:`info`,size:15})})}),(0,G.jsx)(Yd,{id:f,className:`thread-fork`,content:c??z(`sidebar:fork_session_copy_saved_history_both_sessions_can`),children:(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(l?`common:confirming_fork`:`sidebar:fork_session`),"aria-describedby":f,"aria-busy":l,disabled:!!c,onClick:s,children:l?(0,G.jsx)(wn,{size:15,className:`thread-status-spinning`}):(0,G.jsx)(q,{name:`fork`,size:15})})}),(0,G.jsx)(Yd,{id:u,className:`thread-archive`,content:o??v,side:`bottom`,children:(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":v,"aria-describedby":u,"aria-disabled":!!o,onClick:()=>{o||a()},children:(0,G.jsx)(q,{name:e.archived?`unarchive`:`archive`,size:15})})})]}),(0,G.jsxs)(`section`,{id:d,className:`thread-details`,"data-testid":`thread-details`,hidden:!m,"aria-labelledby":`${d}-title`,children:[(0,G.jsx)(`h3`,{id:`${d}-title`,children:g}),(0,G.jsxs)(`dl`,{children:[(0,G.jsxs)(`div`,{className:`thread-id-row`,children:[(0,G.jsx)(`dt`,{children:`Thread ID`}),(0,G.jsx)(`dd`,{children:(0,G.jsx)(ef,{id:e.id})})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:z(`sidebar:created_from`)}),(0,G.jsx)(`dd`,{children:_.label})]}),e.updatedAt!==void 0&&(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:z(`sidebar:updated_at`)}),(0,G.jsx)(`dd`,{children:Qi(e.updatedAt)})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:z(`sidebar:task_status`)}),(0,G.jsx)(`dd`,{children:(0,G.jsx)(Qd,{status:x,offline:r})})]}),x===`completed`&&e.lastTurnId&&(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:z(`sidebar:read_status`)}),(0,G.jsx)(`dd`,{children:z(n?`sidebar:unread_2`:`sidebar:read`)})]}),e.pendingActionCount>0&&(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:z(`sidebar:pending`)}),(0,G.jsx)(`dd`,{children:z(`sidebar:pending_requests`,{count:e.pendingActionCount,v0:e.pendingActionCount})})]}),e.forkedFromId&&(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:z(`sidebar:session_type`)}),(0,G.jsx)(`dd`,{children:z(`sidebar:forked_session`)})]})]}),(0,G.jsx)(`p`,{children:_.description}),(0,G.jsx)(`p`,{className:`thread-origin-note`,children:z(`sidebar:source_records_the_client_used_at_creation_not`)}),o&&(0,G.jsx)(`p`,{children:o})]})]})}var of=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,G.jsx)(`nav`,{ref:this.list,className:`project-list`,"aria-label":z(`sidebar:session_history`),style:{overflowAnchor:`none`},children:this.props.children})}};function sf({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($i(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,G.jsxs)(`section`,{className:`project-order`,"aria-label":z(`sidebar:project_order`),"aria-busy":i,children:[(0,G.jsxs)(`div`,{className:`project-order-header`,children:[(0,G.jsx)(`h2`,{children:z(`sidebar:project_order`)}),(0,G.jsx)(K,{variant:`secondary`,size:`sm`,onClick:r,disabled:i,children:z(`sidebar:order_done`)})]}),(0,G.jsx)(`p`,{className:`project-order-help`,children:z(`sidebar:order_help`)}),(0,G.jsx)(`ol`,{className:`project-order-list`,"aria-label":z(`sidebar:project_display_order`),children:e.map((t,n)=>(0,G.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,G.jsx)(bn,{className:`project-order-grip`,size:16,"aria-hidden":`true`}),(0,G.jsx)(`span`,{className:`project-order-name`,title:t.name,children:t.name}),(0,G.jsx)(`span`,{className:`sr-only`,children:z(`sidebar:order_position`,{v0:n+1,v1:e.length})}),(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`sidebar:order_move_up`,{v0:t.name}),disabled:h||n===0,onClick:()=>_(n,-1),children:(0,G.jsx)(Yt,{size:16,"aria-hidden":`true`})}),(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`sidebar:order_move_down`,{v0:t.name}),disabled:h||n===e.length-1,onClick:()=>_(n,1),children:(0,G.jsx)(Gt,{size:16,"aria-hidden":`true`})})]},t.id))}),(0,G.jsx)(`p`,{className:`project-order-status`,role:`status`,children:z(i?`sidebar:order_saving`:l?`sidebar:order_saved`:`sidebar:order_auto_save`)}),s&&(0,G.jsx)(`p`,{className:`inline-error`,role:`alert`,children:z(`sidebar:order_save_failed`,{v0:V(s)})})]})}function cf(e){let[t,n]=(0,y.useState)(``),[r,i]=(0,y.useState)(!1),a=t.trim().toLocaleLowerCase(),o=[{id:x,name:z(`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(a),i=(n?.data??[]).filter(e=>r||e.title.toLocaleLowerCase().includes(a));return r||i.length>0?[{project:t,state:n,threads:i}]:[]});return(0,G.jsxs)(G.Fragment,{children:[e.open&&(0,G.jsx)(`button`,{className:`sidebar-backdrop`,"aria-label":z(`sidebar:close_session_navigation`),onClick:e.onClose}),(0,G.jsxs)(`aside`,{className:Zi(`sidebar`,e.open&&`sidebar-open`),"aria-label":z(`sidebar:projects_and_sessions`),children:[(0,G.jsxs)(`div`,{className:`sidebar-header`,children:[(0,G.jsxs)(`div`,{className:`brand`,children:[(0,G.jsx)(`div`,{className:`brand-mark`,children:(0,G.jsx)(`img`,{src:`/covro.svg`,alt:``,width:`28`,height:`28`})}),(0,G.jsx)(Yd,{asChild:!0,side:`bottom`,align:`start`,content:`Covro ${e.appVersion??``} · ${e.updating?z(`sidebar:updating`):e.updateAvailable?z(`sidebar:update_available`):z(`sidebar:version_and_updates`)}`,children:(0,G.jsxs)(`button`,{type:`button`,className:`brand-name covro-brand-button`,"aria-label":z(`common:covro_updates`),"data-update-available":e.updateAvailable||e.updating,onClick:e.onUpdates,children:[`Covro `,(0,G.jsx)(on,{size:13,"aria-hidden":`true`})]})}),(0,G.jsxs)(K,{className:`add-project`,variant:`secondary`,size:`sm`,onClick:e.onAddProject,disabled:!e.canManageProjects,children:[(0,G.jsx)(q,{name:`plus`,size:15}),z(`common:add_project`)]}),(0,G.jsx)(K,{className:`mobile-only`,variant:`ghost`,size:`icon`,"aria-label":z(`sidebar:close_navigation`),onClick:e.onClose,children:(0,G.jsx)(q,{name:`close`})})]}),(0,G.jsxs)(`div`,{className:`project-search`,children:[(0,G.jsx)(`label`,{className:`sr-only`,htmlFor:`project-search`,children:z(`sidebar:projects_and_sessions`)}),(0,G.jsx)(`input`,{id:`project-search`,type:`search`,"aria-label":z(`sidebar:search_projects_and_loaded_sessions`),"aria-describedby":`sidebar-search-summary`,placeholder:z(`sidebar:search_projects_and_loaded_sessions`),value:t,disabled:r,onChange:e=>n(e.target.value)}),(0,G.jsx)(`span`,{id:`sidebar-search-summary`,className:`sr-only`,role:`status`,children:a?z(`sidebar:search_results_groups`,{v0:o.length,count:o.length}):z(`sidebar:all_sessions_projects`,{v0:e.projects.length,count:e.projects.length})})]}),(0,G.jsxs)(`div`,{className:`sidebar-toolbar`,children:[(0,G.jsxs)(`div`,{className:`archive-switch`,role:`group`,"aria-label":z(`sidebar:session_list_scope`),children:[(0,G.jsx)(K,{variant:e.archiveView?`ghost`:`secondary`,size:`sm`,"aria-pressed":!e.archiveView,onClick:()=>e.onArchiveView(!1),children:z(`common:sessions`)}),(0,G.jsxs)(K,{variant:e.archiveView?`secondary`:`ghost`,size:`sm`,"aria-pressed":e.archiveView,onClick:()=>e.onArchiveView(!0),children:[(0,G.jsx)(q,{name:`archive`,size:14}),z(`sidebar:archived_sessions`)]})]}),(0,G.jsx)(Yd,{content:z(`sidebar:reorder_projects`),children:(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`sidebar:reorder_projects`),"aria-pressed":r,disabled:r||!e.canManageProjects||e.projects.length<2,onClick:()=>{n(``),i(!0)},children:(0,G.jsx)(Ut,{size:14,"aria-hidden":`true`})})}),(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`sidebar:refresh_session_list`),onClick:e.onRefresh,disabled:!e.projectsLoaded,children:(0,G.jsx)(q,{name:`refresh`,size:14})})]})]}),(0,G.jsxs)(of,{locale:bt(),context:`${e.archiveView}:${a}:${r}`,rows:e.projectThreads,children:[r&&(0,G.jsx)(sf,{projects:e.projects,disabled:!e.canManageProjects,onReorder:e.onReorderProjects,onClose:()=>i(!1)}),(r?[]:o).map(({project:t,state:n,threads:r})=>{let i=(n?.data??[]).filter(e=>Zd(e.status)).length,o=e.creating(t.id)?z(`sidebar:creating`):t.project?z(`sidebar:new_session`):z(`sidebar:new_unassigned_session`);return(0,G.jsxs)(`section`,{className:`project-group`,"aria-label":t.name,"data-project-id":t.project?.id,"data-scope-id":t.id,children:[(0,G.jsxs)(`h2`,{className:`project-heading`,children:[(0,G.jsx)(Yd,{asChild:!0,content:t.name,children:(0,G.jsxs)(`button`,{className:`project-link`,onClick:()=>e.onProject(t.id),"aria-current":e.projectId===t.id?`true`:void 0,children:[(0,G.jsx)(q,{name:t.project?`folder`:`code`,size:16}),(0,G.jsx)(`span`,{children:t.name}),i>0&&(0,G.jsx)(`span`,{className:`project-activity`,"aria-label":z(`sidebar:active_sessions`,{count:i,v0:i}),children:i})]})}),(0,G.jsx)(Yd,{content:o,children:(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":o,onClick:()=>e.onCreate(t.id),disabled:!e.canCreate(t.id)||e.creating(t.id),children:(0,G.jsx)(q,{name:e.creating(t.id)?`loader`:`plus`,size:15})})}),t.project&&(0,G.jsx)(Yd,{content:z(`common:manage_project`),children:(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`sidebar:manage_project`,{v0:t.name}),onClick:()=>e.onManageProject(t.project),disabled:!e.canManageProjects,children:(0,G.jsx)(q,{name:`settings`,size:15})})})]}),!t.available&&(0,G.jsx)(`p`,{className:`inline-error project-error`,role:`status`,children:z(`common:project_directory_unavailable`)}),(0,G.jsxs)(`div`,{className:`thread-list`,children:[r.map(n=>(0,G.jsx)(af,{thread:n,selected:n.id===e.selectedId,unreadCompletion:e.isUnreadCompletion(n),offline:e.offline,onArchive:()=>e.onArchive(n.id,!n.archived),archiveDisabledReason:e.archiveDisabledReason(n),onFork:()=>e.onFork(n),forkDisabledReason:e.forkDisabledReason(n),forking:e.forking(n.id),onSelect:()=>{e.onThread(n.id,t.id),e.onClose()}},n.id)),t.available&&!n?.loading&&!n?.error&&r.length===0&&(0,G.jsx)(`p`,{className:`sidebar-empty`,children:a?z(`sidebar:no_matches_among_loaded_sessions`):e.archiveView?z(`sidebar:no_archived_sessions_yet`):z(`sidebar:no_sessions_yet_create_one_to_get_started`)}),n&&(0,G.jsxs)(`div`,{className:`thread-pagination`,"aria-live":`polite`,"aria-busy":n.loading,children:[!!n.unverified?.length&&(0,G.jsx)(`p`,{className:`sidebar-pagination-status`,role:`status`,children:n.error?z(`sidebar:local_list_sync_failed_browsing_is_still_available`):n.loading?z(`sidebar:showing_local_list_syncing_in_background`):z(`sidebar:some_local_entries_are_not_synced_load_more`)}),n.loading||n.error||n.nextCursor?(0,G.jsx)(Yd,{content:V(n.error),children:(0,G.jsx)(K,{variant:`ghost`,className:Zi(`load-more`,n.error&&`load-more-error`),size:`sm`,disabled:n.loading,"aria-describedby":n.error?`thread-pagination-error-${t.id}`:void 0,onClick:()=>{n.error?e.onRetry(t.id):n.nextCursor&&e.onMore(t.id,n.nextCursor)},children:n.loading?n.appending?z(`sidebar:loading_more_sessions`):z(`sidebar:syncing_sessions`):n.error?z(`sidebar:load_failed_retry`):z(`sidebar:load_more_sessions`)})}):n.loaded&&n.data.length>0&&!a?(0,G.jsx)(`p`,{className:`sidebar-pagination-status`,children:z(`sidebar:all_sessions_loaded`)}):null,n.error&&(0,G.jsx)(`span`,{className:`sr-only`,id:`thread-pagination-error-${t.id}`,children:V(n.error)})]})]})]},t.id)}),!r&&o.length===0&&(0,G.jsx)(`p`,{className:`sidebar-empty`,children:a?z(`sidebar:no_matching_projects_or_loaded_sessions`):e.projectsLoaded?z(`sidebar:no_sessions_yet`):z(`sidebar:loading_projects`)})]}),(0,G.jsxs)(`div`,{className:`sidebar-footer`,children:[(0,G.jsxs)(`div`,{className:`sidebar-local-tools`,children:[(0,G.jsxs)(`label`,{className:`language-selector`,children:[(0,G.jsx)(Sn,{size:16,"aria-hidden":`true`}),(0,G.jsx)(`select`,{"aria-label":z(`common:language`),value:bt(),onChange:e=>void xt(e.target.value),children:ut.map(e=>(0,G.jsx)(`option`,{value:e,lang:e,children:dt[e]},e))})]}),(0,G.jsx)(Yd,{content:z(`backups:title`),asChild:!0,children:(0,G.jsx)(K,{className:`backup-settings-button`,variant:`ghost`,size:`icon`,"aria-label":z(`backups:title`),onClick:e.onBackups,children:(0,G.jsx)(un,{size:16,"aria-hidden":`true`})})})]}),(0,G.jsxs)(K,{className:`gateway-settings-button`,variant:`ghost`,size:`sm`,onClick:e.onGatewaySettings,children:[(0,G.jsx)(q,{name:`settings`,size:15}),(0,G.jsx)(`span`,{children:z(`common:service_settings`)})]}),(0,G.jsxs)(K,{className:`notification-settings-button`,variant:`ghost`,size:`sm`,"aria-label":z(`sidebar:task_completion_notifications`,{v0:e.notificationStatus}),onClick:e.onNotificationSettings,children:[(0,G.jsx)(Zt,{size:15,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:z(`sidebar:completion_notifications`)}),(0,G.jsx)(`span`,{className:`notification-settings-status`,children:e.notificationStatus})]}),(0,G.jsx)(`span`,{className:`privacy-mark`,children:z(`sidebar:runs_on_server`)}),(0,G.jsx)(`p`,{children:z(`sidebar:code_and_credentials_stay_on_the_computer_running`)})]})]})]})}function lf({label:e,closeLabel:t=z(`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,G.jsxs)(`dialog`,{ref:c,className:`file-preview`,"aria-label":e,onCancel:e=>{e.target===e.currentTarget&&(e.preventDefault(),o())},children:[(0,G.jsxs)(`header`,{className:`file-preview-header`,children:[(0,G.jsxs)(K,{ref:l,variant:`ghost`,size:`icon`,"aria-label":t,onClick:o,children:[(0,G.jsx)(qt,{className:`file-preview-back`,size:20}),(0,G.jsx)(Rn,{className:`file-preview-close`,size:20})]}),i,(0,G.jsxs)(`div`,{className:`file-preview-title`,children:[(0,G.jsx)(`h2`,{children:n}),(0,G.jsx)(`span`,{children:r})]}),a]}),s]})}function uf(e){let t=e.replace(/^\uFEFF/,``);try{JSON.parse(t)}catch{return{error:z(`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?``:`
16
- `+` `.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:z(`preview:json_is_too_deep_or_large_to_format`)};o=r}return{tokens:n}}function df({content:e}){let t=bt(),n=(0,y.useMemo)(()=>uf(e),[e,t]);return n.error===void 0?(0,G.jsx)(`pre`,{className:`file-preview-source json-preview`,tabIndex:0,"aria-label":z(`workspace:formatted_json`),children:(0,G.jsx)(`code`,{children:n.tokens.map((e,t)=>e.kind?(0,G.jsx)(`span`,{className:`json-${e.kind}`,children:e.text},t):e.text)})}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`p`,{className:`json-preview-warning`,role:`alert`,children:V(n.error)}),(0,G.jsx)(`pre`,{className:`file-preview-source`,tabIndex:0,"aria-label":z(`workspace:json_source`),children:e})]})}function ff(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var pf=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mf=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hf={};function gf(e,t){return((t||hf).jsx?mf:pf).test(e)}var _f=/[ \t\n\f\r]/g;function vf(e){return typeof e==`object`?e.type===`text`&&yf(e.value):yf(e)}function yf(e){return e.replace(_f,``)===``}var bf=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};bf.prototype.normal={},bf.prototype.property={},bf.prototype.space=void 0;function xf(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new bf(n,r,t)}function Sf(e){return e.toLowerCase()}var Cf=class{constructor(e,t){this.attribute=t,this.property=e}};Cf.prototype.attribute=``,Cf.prototype.booleanish=!1,Cf.prototype.boolean=!1,Cf.prototype.commaOrSpaceSeparated=!1,Cf.prototype.commaSeparated=!1,Cf.prototype.defined=!1,Cf.prototype.mustUseProperty=!1,Cf.prototype.number=!1,Cf.prototype.overloadedBoolean=!1,Cf.prototype.property=``,Cf.prototype.spaceSeparated=!1,Cf.prototype.space=void 0;var wf=s({boolean:()=>Y,booleanish:()=>Ef,commaOrSpaceSeparated:()=>Af,commaSeparated:()=>kf,number:()=>X,overloadedBoolean:()=>Df,spaceSeparated:()=>Of}),Tf=0,Y=jf(),Ef=jf(),Df=jf(),X=jf(),Of=jf(),kf=jf(),Af=jf();function jf(){return 2**++Tf}var Mf=Object.keys(wf),Nf=class extends Cf{constructor(e,t,n,r){let i=-1;if(super(e,t),Pf(this,`space`,r),typeof n==`number`)for(;++i<Mf.length;){let e=Mf[i];Pf(this,Mf[i],(n&wf[e])===wf[e])}}};Nf.prototype.defined=!0;function Pf(e,t,n){n&&(e[t]=n)}function Ff(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Nf(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Sf(r)]=r,n[Sf(a.attribute)]=r}return new bf(t,n,e.space)}var If=Ff({properties:{ariaActiveDescendant:null,ariaAtomic:Ef,ariaAutoComplete:null,ariaBusy:Ef,ariaChecked:Ef,ariaColCount:X,ariaColIndex:X,ariaColSpan:X,ariaControls:Of,ariaCurrent:null,ariaDescribedBy:Of,ariaDetails:null,ariaDisabled:Ef,ariaDropEffect:Of,ariaErrorMessage:null,ariaExpanded:Ef,ariaFlowTo:Of,ariaGrabbed:Ef,ariaHasPopup:null,ariaHidden:Ef,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Of,ariaLevel:X,ariaLive:null,ariaModal:Ef,ariaMultiLine:Ef,ariaMultiSelectable:Ef,ariaOrientation:null,ariaOwns:Of,ariaPlaceholder:null,ariaPosInSet:X,ariaPressed:Ef,ariaReadOnly:Ef,ariaRelevant:null,ariaRequired:Ef,ariaRoleDescription:Of,ariaRowCount:X,ariaRowIndex:X,ariaRowSpan:X,ariaSelected:Ef,ariaSetSize:X,ariaSort:null,ariaValueMax:X,ariaValueMin:X,ariaValueNow:X,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Lf(e,t){return t in e?e[t]:t}function Rf(e,t){return Lf(e,t.toLowerCase())}var zf=Ff({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:kf,acceptCharset:Of,accessKey:Of,action:null,allow:null,allowFullScreen:Y,allowPaymentRequest:Y,allowUserMedia:Y,alpha:Y,alt:null,as:null,async:Y,autoCapitalize:null,autoComplete:Of,autoFocus:Y,autoPlay:Y,blocking:Of,capture:null,charSet:null,checked:Y,cite:null,className:Of,closedBy:null,colorSpace:null,cols:X,colSpan:X,command:null,commandFor:null,content:null,contentEditable:Ef,controls:Y,controlsList:Of,coords:X|kf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Y,defer:Y,dir:null,dirName:null,disabled:Y,download:Df,draggable:Ef,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Y,formTarget:null,headers:Of,height:X,hidden:Df,high:X,href:null,hrefLang:null,htmlFor:Of,httpEquiv:Of,id:null,imageSizes:null,imageSrcSet:null,inert:Y,inputMode:null,integrity:null,is:null,isMap:Y,itemId:null,itemProp:Of,itemRef:Of,itemScope:Y,itemType:Of,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Y,low:X,manifest:null,max:null,maxLength:X,media:null,method:null,min:null,minLength:X,multiple:Y,muted:Y,name:null,nonce:null,noModule:Y,noValidate:Y,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:Y,optimum:X,pattern:null,ping:Of,placeholder:null,playsInline:Y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Y,referrerPolicy:null,rel:Of,required:Y,reversed:Y,rows:X,rowSpan:X,sandbox:Of,scope:null,scoped:Y,seamless:Y,selected:Y,shadowRootClonable:Y,shadowRootCustomElementRegistry:Y,shadowRootDelegatesFocus:Y,shadowRootMode:null,shadowRootSerializable:Y,shape:null,size:X,sizes:null,slot:null,span:X,spellCheck:Ef,src:null,srcDoc:null,srcLang:null,srcSet:null,start:X,step:null,style:null,tabIndex:X,target:null,title:null,translate:null,type:null,typeMustMatch:Y,useMap:null,value:Ef,width:X,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Of,axis:null,background:null,bgColor:null,border:X,borderColor:null,bottomMargin:X,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Y,declare:Y,event:null,face:null,frame:null,frameBorder:null,hSpace:X,leftMargin:X,link:null,longDesc:null,lowSrc:null,marginHeight:X,marginWidth:X,noResize:Y,noHref:Y,noShade:Y,noWrap:Y,object:null,profile:null,prompt:null,rev:null,rightMargin:X,rules:null,scheme:null,scrolling:Ef,standby:null,summary:null,text:null,topMargin:X,valueType:null,version:null,vAlign:null,vLink:null,vSpace:X,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Y,disablePictureInPicture:Y,disableRemotePlayback:Y,exportParts:kf,part:Of,prefix:null,property:null,results:X,security:null,unselectable:null},space:`html`,transform:Rf}),Bf=Ff({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:Af,accentHeight:X,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:X,amplitude:X,arabicForm:null,ascent:X,attributeName:null,attributeType:null,azimuth:X,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:X,by:null,calcMode:null,capHeight:X,className:Of,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:X,diffuseConstant:X,direction:null,display:null,dur:null,divisor:X,dominantBaseline:null,download:Y,dx:null,dy:null,edgeMode:null,editable:null,elevation:X,enableBackground:null,end:null,event:null,exponent:X,externalResourcesRequired:null,fill:null,fillOpacity:X,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:kf,g2:kf,glyphName:kf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:X,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:X,horizOriginX:X,horizOriginY:X,id:null,ideographic:X,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:X,k:X,k1:X,k2:X,k3:X,k4:X,kernelMatrix:Af,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:X,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:X,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:X,overlineThickness:X,paintOrder:null,panose1:null,path:null,pathLength:X,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Of,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:X,pointsAtY:X,pointsAtZ:X,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Af,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Af,rev:Af,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Af,requiredFeatures:Af,requiredFonts:Af,requiredFormats:Af,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:X,specularExponent:X,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:X,strikethroughThickness:X,string:null,stroke:null,strokeDashArray:Af,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:X,strokeOpacity:X,strokeWidth:null,style:null,surfaceScale:X,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Af,tabIndex:X,tableValues:null,target:null,targetX:X,targetY:X,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Af,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:X,underlineThickness:X,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:X,values:null,vAlphabetic:X,vMathematical:X,vectorEffect:null,vHanging:X,vIdeographic:X,version:null,vertAdvY:X,vertOriginX:X,vertOriginY:X,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:X,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Lf}),Vf=Ff({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()}}),Hf=Ff({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Rf}),Uf=Ff({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Wf={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`},Gf=/[A-Z]/g,Kf=/-[a-z]/g,qf=/^data[-\w.:]+$/i;function Jf(e,t){let n=Sf(t),r=t,i=Cf;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&qf.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Kf,Xf);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Kf.test(e)){let n=e.replace(Gf,Yf);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Nf}return new i(r,t)}function Yf(e){return`-`+e.toLowerCase()}function Xf(e){return e.charAt(1).toUpperCase()}var Zf=xf([If,zf,Vf,Hf,Uf],`html`),Qf=xf([If,Bf,Vf,Hf,Uf],`svg`);function $f(e){return e.join(` `).trim()}var ep=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(`
17
- `);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})),tp=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(ep());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}})),np=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))}})),rp=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(tp()),r=np();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})),ip=op(`end`),ap=op(`start`);function op(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 sp(e){let t=ap(e),n=ip(e);if(t&&n)return{start:t,end:n}}function cp(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?up(e.position):`start`in e||`end`in e?up(e):`line`in e||`column`in e?lp(e):``}function lp(e){return dp(e&&e.line)+`:`+dp(e&&e.column)}function up(e){return lp(e&&e.start)+`-`+lp(e&&e.end)}function dp(e){return e&&typeof e==`number`?e:1}var fp=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=cp(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}};fp.prototype.file=``,fp.prototype.name=``,fp.prototype.reason=``,fp.prototype.message=``,fp.prototype.stack=``,fp.prototype.column=void 0,fp.prototype.line=void 0,fp.prototype.ancestors=void 0,fp.prototype.cause=void 0,fp.prototype.fatal=void 0,fp.prototype.place=void 0,fp.prototype.ruleId=void 0,fp.prototype.source=void 0;var pp=l(rp(),1),mp={}.hasOwnProperty,hp=new Map,gp=/[A-Z]/g,_p=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),vp=new Set([`td`,`th`]),yp=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function bp(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=jp(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=Ap(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`?Qf:Zf,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=xp(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function xp(e,t,n){if(t.type===`element`)return Sp(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Cp(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Tp(e,t,n);if(t.type===`mdxjsEsm`)return wp(e,t);if(t.type===`root`)return Ep(e,t,n);if(t.type===`text`)return Dp(e,t)}function Sp(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Qf,e.schema=i),e.ancestors.push(t);let a=Lp(e,t.tagName,!1),o=Mp(e,t),s=Pp(e,t);return _p.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!vf(e)})),Op(e,o,a,t),kp(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Cp(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)}Rp(e,t.position)}function wp(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Rp(e,t.position)}function Tp(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Qf,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Lp(e,t.name,!0),o=Np(e,t),s=Pp(e,t);return Op(e,o,a,t),kp(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Ep(e,t,n){let r={};return kp(r,Pp(e,t)),e.create(t,e.Fragment,r,n)}function Dp(e,t){return t.value}function Op(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function kp(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Ap(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 jp(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=ap(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 Mp(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&mp.call(t.properties,i)){let a=Fp(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&vp.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 Np(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 Rp(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 Rp(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function Pp(e,t){let n=[],r=-1,i=e.passKeys?new Map:hp;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=xp(e,a,o);s!==void 0&&n.push(s)}return n}function Fp(e,t,n){let r=Jf(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ff(n):$f(n)),r.property===`style`){let t=typeof n==`object`?n:Ip(e,String(n));return e.stylePropertyNameCase===`css`&&(t=zp(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Wf[r.property]||r.property:r.attribute,n]}}function Ip(e,t){try{return(0,pp.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new fp("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=yp+`#cannot-parse-style-attribute`,r}}function Lp(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=gf(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=gf(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return mp.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Rp(e)}function Rp(e,t){let n=new fp("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=yp+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function zp(e){let t={},n;for(n in e)mp.call(e,n)&&(t[Bp(n)]=e[n]);return t}function Bp(e){let t=e.replace(gp,Vp);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Vp(e){return`-`+e.toLowerCase()}var Hp={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`]},Up={};function Wp(e,t){let n=t||Up;return Gp(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function Gp(e,t,n){if(qp(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 Kp(e.children,t,n)}return Array.isArray(e)?Kp(e,t,n):``}function Kp(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=Gp(e[i],t,n);return r.join(``)}function qp(e){return!!(e&&typeof e==`object`)}var Jp=document.createElement(`i`);function Yp(e){let t=`&`+e+`;`;Jp.innerHTML=t;let n=Jp.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function Xp(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 Zp(e,t){return e.length>0?(Xp(e,e.length,0,t),e):t}var Qp={}.hasOwnProperty;function $p(e){let t={},n=-1;for(;++n<e.length;)em(t,e[n]);return t}function em(e,t){let n;for(n in t){let r=(Qp.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){Qp.call(r,a)||(r[a]=[]);let e=i[a];tm(r[a],Array.isArray(e)?e:e?[e]:[])}}}function tm(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);Xp(e,0,0,r)}function nm(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 rm(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var im=hm(/[A-Za-z]/),am=hm(/[\dA-Za-z]/),om=hm(/[#-'*+\--9=?A-Z^-~]/);function sm(e){return e!==null&&(e<32||e===127)}var cm=hm(/\d/),lm=hm(/[\dA-Fa-f]/),um=hm(/[!-/:-@[-`{-~]/);function Z(e){return e!==null&&e<-2}function dm(e){return e!==null&&(e<0||e===32)}function fm(e){return e===-2||e===-1||e===32}var pm=hm(/\p{P}|\p{S}/u),mm=hm(/\s/);function hm(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function gm(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&am(e.charCodeAt(n+1))&&am(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 _m(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return fm(r)?(e.enter(n),s(r)):t(r)}function s(r){return fm(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function vm(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&fm(t)?(e.enter(r),c(t)):l(t)}function c(t){return fm(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var ym={tokenize:bm};function bm(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`),_m(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 Z(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var xm=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){Sm(this,e,t,n,!1)}addBefore(e,t,n){Sm(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 Sm(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 Cm={tokenize:Tm},wm={tokenize:Em};function Tm(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 xm;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(wm,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(wm,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 Z(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 xm;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 Em(e,t,n){return _m(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Dm(e){if(e===null||dm(e)||mm(e))return 1;if(pm(e))return 2}function Om(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 km={name:`attention`,resolveAll:Am,tokenize:jm};function Am(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};Mm(o,-a),Mm(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=Zp(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=Zp(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=Zp(r,Om(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=Zp(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=Zp(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),Xp(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 jm(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Dm(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=Dm(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 Mm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Nm={name:`autolink`,tokenize:Pm};function Pm(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 im(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||am(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||am(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||sm(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):om(t)?(e.consume(t),l):n(t)}function u(e){return am(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||am(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Fm={partial:!0,tokenize:Im};function Im(e,t,n){return r;function r(t){return fm(t)?_m(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Z(e)?t(e):n(e)}}var Lm={continuation:{tokenize:zm},exit:Bm,name:`blockQuote`,tokenize:Rm};function Rm(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 fm(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function zm(e,t,n){let r=this;return i;function i(t){return fm(t)?_m(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(Lm,t,n)(r)}}function Bm(e){e.exit(`blockQuote`)}var Vm={name:`characterEscape`,tokenize:Hm};function Hm(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 um(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var Um={name:`characterReference`,tokenize:Wm};function Wm(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=am,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=lm,u):(e.enter(`characterReferenceValue`),a=7,o=cm,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===am&&!Yp(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 Gm={partial:!0,tokenize:Km};function Km(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 qm={concrete:!0,name:`codeFenced`,tokenize:Jm};function Jm(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`),fm(t)?_m(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Z(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(Gm,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Z(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):fm(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),_m(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Z(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Z(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&&fm(t)?_m(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Z(t)?e.check(Gm,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Z(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`),fm(t)?_m(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`),fm(t)?_m(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Z(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var Ym={name:`codeIndented`,tokenize:Zm},Xm={partial:!0,tokenize:Qm};function Zm(e,t,n){return r;function r(t){return e.enter(`codeIndented`),vm(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):Z(t)?e.attempt(Xm,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||Z(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function Qm(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Z(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):vm(e,t,a,`linePrefix`,4,4)(o)}function a(e){return Z(e)?i(e):n(e)}}var $m={name:`codeText`,previous:th,resolve:eh,tokenize:nh};function eh(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 th(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function nh(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)):Z(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||Z(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 rh=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&&ih(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),ih(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ih(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);ih(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);ih(this.left,t.reverse())}}}};function ih(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 ah(e){let t={},n=-1,r,i,a,o,s,c,l,u=new rh(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,oh(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 Xp(e,0,1/0,u.slice(0)),!l}function oh(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 sh={resolve:lh,tokenize:uh},ch={partial:!0,tokenize:dh};function lh(e){return ah(e),e}function uh(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):Z(t)?e.check(ch,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 dh(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_m(e,a,`linePrefix`)}function a(i){if(i===null||Z(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 fh(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||sm(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||Z(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||dm(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||sm(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 ph(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):Z(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||Z(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!fm(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function mh(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):Z(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_m(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Z(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 hh(e,t){let n;return r;function r(i){return Z(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):fm(i)?_m(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var gh={name:`definition`,tokenize:vh},_h={partial:!0,tokenize:yh};function vh(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return ph.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=rm(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 dm(t)?hh(e,l)(t):l(t)}function l(t){return fh(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(_h,d,d)(t)}function d(t){return fm(t)?_m(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Z(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function yh(e,t,n){return r;function r(t){return dm(t)?hh(e,i)(t):n(t)}function i(t){return mh(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return fm(t)?_m(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Z(e)?t(e):n(e)}}var bh={name:`hardBreakEscape`,tokenize:xh};function xh(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Z(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Sh={name:`headingAtx`,resolve:Ch,tokenize:wh};function Ch(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`};Xp(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function wh(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||dm(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Z(n)?(e.exit(`atxHeading`),t(n)):fm(n)?_m(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||dm(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Th=`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(`.`),Eh=[`pre`,`script`,`style`,`textarea`],Dh={concrete:!0,name:`htmlFlow`,resolveTo:kh,tokenize:Ah},Oh={partial:!0,tokenize:jh};function kh(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 Ah(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:P):im(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):im(a)?(e.consume(a),i=4,r.interrupt?t:P):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:P):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 im(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||dm(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Eh.includes(l)?(i=1,r.interrupt?t(s):O(s)):Th.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||am(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 fm(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||im(t)?(e.consume(t),b):fm(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||am(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):fm(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):fm(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Z(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||dm(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||fm(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||Z(t)?O(t):fm(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),F):t===63&&i===3?(e.consume(t),P):t===93&&i===5?(e.consume(t),te):Z(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Oh,ne,k)(t)):t===null||Z(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(Gm,A,ne)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||Z(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),P):O(t)}function N(t){return t===47?(e.consume(t),o=``,ee):O(t)}function ee(t){if(t===62){let n=o.toLowerCase();return Eh.includes(n)?(e.consume(t),F):O(t)}return im(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),ee):O(t)}function te(t){return t===93?(e.consume(t),P):O(t)}function P(t){return t===62?(e.consume(t),F):t===45&&i===2?(e.consume(t),P):O(t)}function F(t){return t===null||Z(t)?(e.exit(`htmlFlowData`),ne(t)):(e.consume(t),F)}function ne(n){return e.exit(`htmlFlow`),t(n)}}function jh(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Fm,t,n)}}var Mh={name:`htmlText`,tokenize:Nh};function Nh(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):im(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):im(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):Z(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):Z(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):Z(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Z(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return im(t)?(e.consume(t),S):n(t)}function S(t){return t===45||am(t)?(e.consume(t),S):C(t)}function C(t){return Z(t)?(o=C,N(t)):fm(t)?(e.consume(t),C):M(t)}function w(t){return t===45||am(t)?(e.consume(t),w):t===47||t===62||dm(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||im(t)?(e.consume(t),E):Z(t)?(o=T,N(t)):fm(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||am(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):Z(t)?(o=D,N(t)):fm(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):Z(t)?(o=O,N(t)):fm(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):Z(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||dm(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||dm(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`),ee}function ee(t){return fm(t)?_m(e,te,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):te(t)}function te(t){return e.enter(`htmlTextData`),o(t)}}var Ph={name:`labelEnd`,resolveAll:Rh,resolveTo:zh,tokenize:Bh},Fh={tokenize:Vh},Ih={tokenize:Hh},Lh={tokenize:Uh};function Rh(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&&Xp(e,0,e.length,n),e}function zh(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=Zp(o,e.slice(i+1,i+r+3)),o=Zp(o,[[`enter`,l,t]]),o=Zp(o,Om(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=Zp(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=Zp(o,e.slice(a+1)),o=Zp(o,[[`exit`,s,t]]),Xp(e,i,e.length,o),e}function Bh(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(rm(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(Fh,u,o?u:d)(t):t===91?e.attempt(Ih,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Lh,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function Vh(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 dm(t)?hh(e,a)(t):a(t)}function a(t){return t===41?u(t):fh(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return dm(t)?hh(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?mh(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return dm(t)?hh(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 Hh(e,t,n){let r=this;return i;function i(t){return ph.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(rm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Uh(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 Wh={name:`labelStartImage`,resolveAll:Ph.resolveAll,tokenize:Gh};function Gh(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 Kh={name:`labelStartLink`,resolveAll:Ph.resolveAll,tokenize:qh};function qh(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 Jh={name:`lineEnding`,tokenize:Yh};function Yh(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),_m(e,t,`linePrefix`)}}var Xh={name:`thematicBreak`,tokenize:Zh};function Zh(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||Z(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),fm(t)?_m(e,s,`whitespace`)(t):s(t))}}var Qh={continuation:{tokenize:ng},exit:ig,name:`list`,tokenize:tg},$h={partial:!0,tokenize:ag},eg={partial:!0,tokenize:rg};function tg(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:cm(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(Xh,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 cm(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(Fm,r.interrupt?n:u,e.attempt($h,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return fm(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 ng(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Fm,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_m(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!fm(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(eg,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,_m(e,e.attempt(Qh,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function rg(e,t,n){let r=this;return _m(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 ig(e){e.exit(this.containerState.type)}function ag(e,t,n){let r=this;return _m(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!fm(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var og={name:`setextUnderline`,resolveTo:sg,tokenize:cg};function sg(e,t){let n=new xm,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 cg(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`),fm(t)?_m(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Z(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var lg={tokenize:ug};function ug(e){let t=this,n=e.attempt(Fm,r,e.attempt(this.parser.constructs.flowInitial,i,_m(e,e.attempt(this.parser.constructs.flow,i,e.attempt(sh,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 dg={resolveAll:hg()},fg=mg(`string`),pg=mg(`text`);function mg(e){return{resolveAll:hg(e===`text`?gg: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 hg(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 gg(e,t){let n=new xm,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 _g=s({attentionMarkers:()=>Tg,contentInitial:()=>yg,disable:()=>Eg,document:()=>vg,flow:()=>xg,flowInitial:()=>bg,insideSpan:()=>wg,string:()=>Sg,text:()=>Cg}),vg={42:Qh,43:Qh,45:Qh,48:Qh,49:Qh,50:Qh,51:Qh,52:Qh,53:Qh,54:Qh,55:Qh,56:Qh,57:Qh,62:Lm},yg={91:gh},bg={[-2]:Ym,[-1]:Ym,32:Ym},xg={35:Sh,42:Xh,45:[og,Xh],60:Dh,61:og,95:Xh,96:qm,126:qm},Sg={38:Um,92:Vm},Cg={[-5]:Jh,[-4]:Jh,[-3]:Jh,33:Wh,38:Um,42:km,60:[Nm,Mh],91:Kh,92:[bh,Vm],93:Ph,95:km,96:$m},wg={null:[km,dg]},Tg={null:[42,95]},Eg={null:[]};function Dg(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=Zp(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Om(a,l.events,l),l.events):[]}function f(e,t){return kg(p(e),t)}function p(e){return Og(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){Z(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&&Xp(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 Og(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 kg(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=`
18
- `;break;case-3:o=`\r
19
- `;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 Ag(e){let t={constructs:$p([_g,...(e||{}).extensions||[]]),content:n(ym),defined:[],document:n(Cm),flow:n(lg),lazy:{},string:n(fg),text:n(pg)};return t;function n(e){return n;function n(n){return Dg(t,e,n)}}}function jg(e){for(;!ah(e););return e}var Mg=/[\0\t\n\r]/g;function Ng(){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;){Mg.lastIndex=c;let n=Mg.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 Pg=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Fg(e){return e.replace(Pg,Ig)}function Ig(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return nm(n.slice(t?2:1),t?16:10)}return Yp(n)||e}var Lg={}.hasOwnProperty;function Rg(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),zg(n)(jg(Ag(n).document().write(Ng()(e,t,!0))))}function zg(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(_e),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(R),blockQuote:o(ue),characterEscape:E,characterReference:E,codeFenced:o(de),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(de,s),codeText:o(fe,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(pe),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(L),hardBreakEscape:o(me),hardBreakTrailing:o(me),htmlFlow:o(he,s),htmlFlowData:E,htmlText:o(he,s),htmlTextData:E,image:o(ge),label:s,link:o(_e),listItem:o(ye),listItemValue:p,listOrdered:o(ve,f),listUnordered:o(ve),paragraph:o(be),reference:ie,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(R),strong:o(xe),thematicBreak:o(Ce)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:le,autolinkProtocol:I,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:oe,characterReferenceMarkerNumeric:oe,characterReferenceValue:se,characterReference:ce,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(ee),label:P,labelText:te,lineEnding:O,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ae,resourceDestinationString:F,resourceTitleString:ne,resource:re,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};Vg(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]),Lg.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]||Ug).call(o,void 0,e[0])}for(r.position={start:Bg(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Bg(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:Bg(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+"` ("+cp({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Ug).call(this,e,r[0])),n.position.end=Bg(e.end)}function d(){return Wp(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=rm(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=Se(),n.position={start:Bg(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=Bg(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=Bg(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 ee(){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 te(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Fg(t),n.identifier=rm(t).toLowerCase()}function P(){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 F(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function re(){this.data.inReference=void 0}function ie(){this.data.referenceType=`collapsed`}function ae(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rm(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function oe(e){this.data.characterReferenceType=e.type}function se(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=nm(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Yp(t);let i=this.stack[this.stack.length-1];i.value+=r}function ce(e){let t=this.stack.pop();t.position.end=Bg(e.end)}function I(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function le(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ue(){return{type:`blockquote`,children:[],position:void 0}}function de(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function fe(){return{type:`inlineCode`,value:``,position:void 0}}function pe(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function L(){return{type:`emphasis`,children:[],position:void 0}}function R(){return{type:`heading`,depth:0,children:[],position:void 0}}function me(){return{type:`break`,position:void 0}}function he(){return{type:`html`,value:``,position:void 0}}function ge(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function _e(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function ve(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function ye(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function be(){return{type:`paragraph`,children:[],position:void 0}}function xe(){return{type:`strong`,children:[],position:void 0}}function Se(){return{type:`text`,value:``,position:void 0}}function Ce(){return{type:`thematicBreak`,position:void 0}}}function Bg(e){return{line:e.line,column:e.column,offset:e.offset}}function Vg(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Vg(e,r):Hg(e,r)}}function Hg(e,t){let n;for(n in t)if(Lg.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 Ug(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+cp({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+cp({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+cp({start:t.start,end:t.end})+`) is still open`)}function Wg(e){let t=this;t.parser=n;function n(n){return Rg(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Gg(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 Kg(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
20
- `}]}function qg(e,t){let n=t.value?t.value+`
21
- `:``,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 Jg(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Yg(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xg(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=gm(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 Zg(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 Qg(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function $g(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 e_(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return $g(e,t);let i={src:gm(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 t_(e,t){let n={src:gm(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 n_(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 r_(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return $g(e,t);let i={href:gm(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 i_(e,t){let n={href:gm(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 a_(e,t,n){let r=e.all(t),i=n?o_(n):s_(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:`
22
- `}),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:`
23
- `});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function o_(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=s_(n[r])}return t}function s_(e){return e.spread??e.children.length>1}function c_(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 l_(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function u_(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function d_(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function f_(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=ap(t.children[1]),o=ip(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 p_(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 m_(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var h_=9,g_=32;function __(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(v_(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(v_(t.slice(i),i>0,!1)),a.join(``)}function v_(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===h_||t===g_;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===h_||t===g_;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function y_(e,t){let n={type:`text`,value:__(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function b_(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var x_={blockquote:Gg,break:Kg,code:qg,delete:Jg,emphasis:Yg,footnoteReference:Xg,heading:Zg,html:Qg,imageReference:e_,image:t_,inlineCode:n_,linkReference:r_,link:i_,listItem:a_,list:c_,paragraph:l_,root:u_,strong:d_,table:f_,tableCell:m_,tableRow:p_,text:y_,thematicBreak:b_,toml:S_,yaml:S_,definition:S_,footnoteDefinition:S_};function S_(){}var{defineProperty:C_}=Object,w_=typeof self==`object`?self:globalThis,T_=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new w_[e](t)},E_=(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__`?C_(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 w_[e]==`function`?T_(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(T_(a,o),i)};return r},D_=e=>E_(new Map,e)(0),O_=``,{toString:k_}={},{keys:A_,is:j_}=Object,M_=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=k_.call(e).slice(8,-1);switch(n){case`Array`:return[1,O_];case`Object`:return[2,O_];case`Date`:return[3,O_];case`RegExp`:return[4,O_];case`Map`:return[5,O_];case`Set`:return[6,O_];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},N_=([e,t])=>e===0&&(t===`function`||t===`symbol`),P_=(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]=M_(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&j_(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 A_(o))(e||!N_(M_(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?O_: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||!(N_(M_(n))||N_(M_(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!N_(M_(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},F_=(e,{json:t,lossy:n}={})=>{let r=[];return P_(!(t||n),!!t,new Map,r)(e),r},I_=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?D_(F_(e,t)):structuredClone(e):(e,t)=>D_(F_(e,t));function L_(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 R_(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function z_(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||L_,r=e.options.footnoteBackLabel||R_,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=gm(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:{...I_(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
24
- `},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
25
- `}]}}var B_=(function(e){if(e==null)return G_;if(typeof e==`function`)return W_(e);if(typeof e==`object`)return Array.isArray(e)?V_(e):H_(e);if(typeof e==`string`)return U_(e);throw Error(`Expected function, string, or object as test`)});function V_(e){let t=[],n=-1;for(;++n<e.length;)t[n]=B_(e[n]);return W_(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function H_(e){let t=e;return W_(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function U_(e){return W_(t);function t(t){return t&&t.type===e}}function W_(e){return t;function t(t,n,r){return!!(K_(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function G_(){return!0}function K_(e){return typeof e==`object`&&!!e&&`type`in e}function q_(e){return e}var J_=[];function Y_(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=B_(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 (`+q_(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=J_,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=X_(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 X_(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?J_:[e]}function Z_(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),Y_(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 Q_={}.hasOwnProperty,$_={};function ev(e,t){let n=t||$_,r=new Map,i=new Map,a={all:s,applyData:nv,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...x_,...n.handlers},one:o,options:n,patch:tv,wrap:iv};return Z_(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(Q_.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=I_(n);return r.children=a.all(e),r}return I_(e)}return(a.options.unknownHandler||rv)(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=av(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=av(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function tv(e,t){e.position&&(t.position=sp(e))}function nv(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,I_(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function rv(e,t){let n=t.data||{},r=`value`in t&&!(Q_.call(n,`hProperties`)||Q_.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 iv(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
26
- `});++r<e.length;)r&&n.push({type:`text`,value:`
27
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
28
- `}),n}function av(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ov(e,t){let n=ev(e,t),r=n.one(e,void 0),i=z_(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
29
- `},i)),a}function sv(e,t){return e&&`run`in e?async function(n,r){let i=ov(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ov(n,{file:r,...e||t})}}function cv(e){if(e)throw e}var lv=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 uv(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 dv(){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?fv(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 fv(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 pv={basename:mv,dirname:hv,extname:gv,join:_v,sep:`/`};function mv(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);bv(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 hv(e){if(bv(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 gv(e){bv(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 _v(...e){let t=-1,n;for(;++t<e.length;)bv(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:vv(n)}function vv(e){bv(e);let t=e.codePointAt(0)===47,n=yv(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function yv(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 bv(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var xv={cwd:Sv};function Sv(){return`/`}function Cv(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function wv(e){if(typeof e==`string`)e=new URL(e);else if(!Cv(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 Tv(e)}function Tv(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 Ev=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],Dv=class{constructor(e){let t;t=e?Cv(e)?{path:e}:typeof e==`string`||jv(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:xv.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Ev.length;){let e=Ev[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)Ev.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?pv.basename(this.path):void 0}set basename(e){kv(e,`basename`),Ov(e,`basename`),this.path=pv.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?pv.dirname(this.path):void 0}set dirname(e){Av(this.basename,`dirname`),this.path=pv.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?pv.extname(this.path):void 0}set extname(e){if(Ov(e,`extname`),Av(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=pv.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Cv(e)&&(e=wv(e)),kv(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?pv.basename(this.path,this.extname):void 0}set stem(e){kv(e,`stem`),Ov(e,`stem`),this.path=pv.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 fp(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 Ov(e,t){if(e&&e.includes(pv.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+pv.sep+"`")}function kv(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Av(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function jv(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Mv=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Nv=l(lv(),1),Pv={}.hasOwnProperty,Fv=new class e extends Mv{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=dv()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,Nv.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(Rv(`data`,this.frozen),this.namespace[e]=t,this):Pv.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Rv(`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=Vv(e),n=this.parser||this.Parser;return Iv(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),Iv(`process`,this.parser||this.Parser),Lv(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=Vv(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);Uv(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(),Iv(`processSync`,this.parser||this.Parser),Lv(`processSync`,this.compiler||this.Compiler),this.process(e,r),Bv(`processSync`,`process`,t),n;function r(e,r){t=!0,cv(e),n=r}}run(e,t,n){zv(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=Vv(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),Bv(`runSync`,`run`,n),r;function i(e,t){cv(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=Vv(t),r=this.compiler||this.Compiler;return Lv(`stringify`,r),zv(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(Rv(`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,Nv.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];uv(o)&&uv(r)&&(r=(0,Nv.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function Iv(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function Lv(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function Rv(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 zv(e){if(!uv(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function Bv(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function Vv(e){return Hv(e)?e:new Dv(e)}function Hv(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function Uv(e){return typeof e==`string`||Wv(e)}function Wv(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Gv=[],Kv={allowDangerousHtml:!0},qv=/^(https?|ircs?|mailto|xmpp)$/i,Jv=[{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 Yv(e){let t=Xv(e),n=Zv(e);return Qv(t.runSync(t.parse(n),n),e)}function Xv(e){let t=e.rehypePlugins||Gv,n=e.remarkPlugins||Gv,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Kv}:Kv;return Fv().use(Wg).use(n).use(sv,r).use(t)}function Zv(e){let t=e.children||``,n=new Dv;return typeof t==`string`?n.value=t:``+t,n}function Qv(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||$v;for(let e of Jv)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return Z_(e,l),bp(e,{Fragment:G.Fragment,components:i,ignoreInvalidStyle:!0,jsx:G.jsx,jsxs:G.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 Hp)if(Object.hasOwn(Hp,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=Hp[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 $v(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||qv.test(e.slice(0,t))?e:``}function ey(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 ty(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function ny(e,t,n){let r=B_((n||{}).ignore||[]),i=ry(t),a=-1;for(;++a<i.length;)Y_(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 ry(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([iy(e[0]),ay(e[1])])}return t}function iy(e){return typeof e==`string`?new RegExp(ty(e),`g`):e}function ay(e){return typeof e==`function`?e:function(){return e}}var oy=`phrasing`,sy=[`autolink`,`link`,`image`,`label`];function cy(){return{transforms:[gy],enter:{literalAutolink:uy,literalAutolinkEmail:dy,literalAutolinkHttp:dy,literalAutolinkWww:dy},exit:{literalAutolink:hy,literalAutolinkEmail:my,literalAutolinkHttp:fy,literalAutolinkWww:py}}}function ly(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:oy,notInConstruct:sy},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:oy,notInConstruct:sy},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:oy,notInConstruct:sy}]}}function uy(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function dy(e){this.config.enter.autolinkProtocol.call(this,e)}function fy(e){this.config.exit.autolinkProtocol.call(this,e)}function py(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 my(e){this.config.exit.autolinkEmail.call(this,e)}function hy(e){this.exit(e)}function gy(e){ny(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_y],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,vy]],{ignore:[`link`,`linkReference`]})}function _y(e,t,n,r,i){let a=``;if(!xy(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!yy(n)))return!1;let o=by(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 vy(e,t,n,r){return!xy(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function yy(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 by(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=ey(e,`(`),a=ey(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 xy(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||mm(n)||pm(n))&&(!t||n!==47)}jy.peek=Ay;function Sy(){this.buffer()}function Cy(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function wy(){this.buffer()}function Ty(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function Ey(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=rm(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Dy(e){this.exit(e)}function Oy(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=rm(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ky(e){this.exit(e)}function Ay(){return`[`}function jy(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 My(){return{enter:{gfmFootnoteCallString:Sy,gfmFootnoteCall:Cy,gfmFootnoteDefinitionLabelString:wy,gfmFootnoteDefinition:Ty},exit:{gfmFootnoteCallString:Ey,gfmFootnoteCall:Dy,gfmFootnoteDefinitionLabelString:Oy,gfmFootnoteDefinition:ky}}}function Ny(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:jy},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?`
30
- `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Fy:Py))),s(),o}}function Py(e,t,n){return t===0?e:Fy(e,t,n)}function Fy(e,t,n){return(n?``:` `)+e}var Iy=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Vy.attention=Hy,Vy.peek=Uy;function Ly(){return{canContainEols:[`delete`],enter:{strikethrough:zy},exit:{strikethrough:By}}}function Ry(){return{handlers:{delete:Vy},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Iy}]}}function zy(e){this.enter({type:`delete`,children:[],position:void 0},e)}function By(e){this.exit(e)}function Vy(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 Hy(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function Uy(){return`~`}function Wy(e){return e.length}function Gy(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Wy,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=Ky(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]=qy(r[d]);else{let e=qy(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(`
31
- `)}function Ky(e){return e==null?``:String(e)}function qy(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 Jy=B_([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function Yy(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()),Xy);return i(),o}function Xy(e,t,n){return`>`+(n?``:` `)+e}function Zy(e,t){return Qy(e,t.inConstruct,!0)&&!Qy(e,t.notInConstruct,!1)}function Qy(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 $y(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
32
- `&&!e.before&&!e.after&&Zy(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
33
- `}function eb(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 tb(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 nb(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function rb(e,t,n,r){let i=nb(n),a=e.value||``;if(tb(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,ib);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(eb(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:`
34
- `,encode:["`"],...o.current()})),t()}return u+=o.move(`
35
- `),a&&(u+=o.move(a+`
36
- `)),u+=o.move(s),c(),u}function ib(e,t,n){return(n?``:` `)+e}function ab(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ob(e,t,n,r){let i=ab(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?` `:`
37
- `,...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 sb(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}cb.attention=lb,cb.peek=ub;function cb(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function lb(e,t){return{construct:`emphasis`,markers:sb(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function ub(e,t,n){return n.options.emphasis||`*`}function db(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function fb(e,t){let n=!1;return Z_(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)&&Wp(e)&&(t.options.setext||n))}function pb(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(fb(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
38
- `,after:`
39
- `});return r(),t(),o+`
40
- `+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
41
- `))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
42
- `,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=db(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}mb.peek=hb;function mb(e){return e.value||``}function hb(){return`<`}gb.peek=_b;function gb(e,t,n,r){let i=ab(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 _b(){return`!`}vb.peek=yb;function vb(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 yb(){return`!`}bb.peek=xb;function bb(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 xb(){return"`"}function Sb(e,t){let n=Wp(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))}Cb.peek=wb;function Cb(e,t,n,r){let i=ab(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(Sb(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 wb(e,t,n){return Sb(e,n)?`<`:`[`}Tb.peek=Eb;function Tb(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 Eb(){return`[`}function Db(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 Ob(e){let t=Db(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 kb(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ab(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 jb(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?kb(n):Db(n),s=e.ordered?o===`.`?`)`:`.`:Ob(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),Ab(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 Mb(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 Nb(e,t,n,r){let i=Mb(n),a=n.bulletCurrent||Db(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 Pb(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function Fb(e,t,n,r){if(!e.children.some(function(e){return Jy(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function Ib(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Lb.attention=Rb,Lb.peek=zb;function Lb(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function Rb(e,t){return{construct:`strong`,markers:Ib(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function zb(e,t,n){return n.options.strong||`*`}function Bb(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 Vb(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 Hb(e,t,n){let r=(Ab(n)+(n.options.ruleSpaces?` `:``)).repeat(Vb(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Ub={blockquote:Yy,break:$y,code:rb,definition:ob,emphasis:cb,hardBreak:$y,heading:pb,html:mb,image:gb,imageReference:vb,inlineCode:bb,link:Cb,linkReference:Tb,list:jb,listItem:Nb,paragraph:Pb,root:Fb,strong:Lb,text:Bb,thematicBreak:Hb};function Wb(){return{enter:{table:Gb,tableData:Yb,tableHeader:Yb,tableRow:qb},exit:{codeText:Xb,table:Kb,tableData:Jb,tableHeader:Jb,tableRow:Jb}}}function Gb(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 Kb(e){this.exit(e),this.data.inTable=void 0}function qb(e){this.enter({type:`tableRow`,children:[]},e)}function Jb(e){this.exit(e)}function Yb(e){this.enter({type:`tableCell`,children:[]},e)}function Xb(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Zb));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Zb(e,t){return t===`|`?t:e}function Qb(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
43
- `,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(`
44
- `))}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 Gy(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=Ub.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function $b(){return{exit:{taskListCheckValueChecked:tx,taskListCheckValueUnchecked:tx,paragraph:nx}}}function ex(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:rx}}}function tx(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function nx(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 rx(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=Ub.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 ix(){return[cy(),My(),Ly(),Wb(),$b()]}function ax(e){return{extensions:[ly(),Ny(e),Ry(),Qb(e),ex()]}}var ox={tokenize:bx,partial:!0},sx={tokenize:xx,partial:!0},cx={tokenize:Sx,partial:!0},lx={tokenize:Cx,partial:!0},ux={tokenize:wx,partial:!0},dx={name:`wwwAutolink`,tokenize:vx,previous:Tx},fx={name:`protocolAutolink`,tokenize:yx,previous:Ex},px={name:`emailAutolink`,tokenize:_x,previous:Dx},mx={};function hx(){return{text:mx}}for(var gx=48;gx<123;)mx[gx]=px,gx++,gx===58?gx=65:gx===91&&(gx=97);mx[43]=px,mx[45]=px,mx[46]=px,mx[95]=px,mx[72]=[px,fx],mx[104]=[px,fx],mx[87]=[px,dx],mx[119]=[px,dx];function _x(e,t,n){let r=this,i,a;return o;function o(t){return!Ox(t)||!Dx.call(r,r.previous)||kx(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Ox(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(ux,u,l)(t):t===45||t===95||am(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&&im(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function vx(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!Tx.call(r,r.previous)||kx(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(ox,e.attempt(sx,e.attempt(cx,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function yx(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Ex.call(r,r.previous)&&!kx(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(im(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||sm(t)||dm(t)||mm(t)||pm(t)?n(t):e.attempt(sx,e.attempt(cx,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function bx(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 xx(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(lx,c,s)(t):t===null||dm(t)||mm(t)||t!==45&&pm(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 Sx(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(lx,t,a)(o):o===null||dm(o)||mm(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function Cx(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||dm(o)||mm(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||dm(e)||mm(e)?t(e):r(e)}function a(e){return im(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):im(t)?(e.consume(t),o):n(t)}}function wx(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return am(e)?n(e):t(e)}}function Tx(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||dm(e)}function Ex(e){return!im(e)}function Dx(e){return!(e===47||Ox(e))}function Ox(e){return e===43||e===45||e===46||e===95||am(e)}function kx(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 Ax={tokenize:Rx,partial:!0};function jx(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Fx,continuation:{tokenize:Ix},exit:Lx}},text:{91:{name:`gfmFootnoteCall`,tokenize:Px},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Mx,resolveTo:Nx}}}}function Mx(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=rm(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 Nx(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 Px(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||dm(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(rm(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return dm(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 Fx(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||dm(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=rm(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return dm(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),_m(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Ix(e,t,n){return e.check(Fm,t,e.attempt(Ax,t,n))}function Lx(e){e.exit(`gfmFootnoteDefinition`)}function Rx(e,t,n){let r=this;return _m(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 zx(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&&Xp(o,o.length,0,Om(s,e.slice(r+1,n),t)),Xp(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),Xp(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=Dm(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=Dm(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Bx=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){Vx(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 Vx(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 Hx(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 Ux(){return{flow:{null:{name:`table`,tokenize:Wx,resolveAll:Gx}}}}function Wx(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):Z(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):fm(t)?_m(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||dm(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,fm(t)?_m(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 fm(t)?_m(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||Z(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 fm(t)?_m(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Z(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||Z(n)?(e.exit(`tableRow`),t(n)):fm(n)?_m(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||dm(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 Gx(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 Bx;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(qx(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=Kx(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=Kx(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=Kx(f,t,o,i,n,d)):(o[0]=o[1],d=Kx(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&qx(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=Hx(t.events,n))}return e}function Kx(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},Jx(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=Jx(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=Jx(t.events,n[2]),a=Jx(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({},Jx(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function qx(e,t,n,r,i){let a=[],o=Jx(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 Jx(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Yx={name:`tasklistCheck`,tokenize:Zx};function Xx(){return{text:{91:Yx}}}function Zx(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 dm(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 Z(r)?t(r):fm(r)?e.check({tokenize:Qx},t,n)(r):n(r)}}function Qx(e,t,n){return _m(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function $x(e){return $p([hx(),jx(),zx(e),Ux(),Xx()])}var eS={};function tS(e){let t=this,n=e||eS,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push($x(n)),a.push(ix()),o.push(ax(n))}var nS=/\.(?:png|jpe?g|gif|webp|svg|avif|bmp|ico|tiff?|heic|heif)$/i;function rS(e,t=!1){let n=Kn(e);return n&&(t||nS.test(n))?n:void 0}function iS(e,t){return`/api/threads/${encodeURIComponent(e)}/images?path=${encodeURIComponent(t)}`}async function aS(e,t,n){let r=await fetch(iS(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 Xn(r.status,{code:t.code,message:t.message})}}throw Error(r.status===401||r.status===403?B(`preview:cannot_read_image_check_login_and_file_access`):B(`preview:image_loading_failed_please_retry`,{v0:r.status}))}if(!i||![`image/png`,`image/jpeg`,`image/gif`,`image/webp`].includes(i))throw Error(B(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 oS=32,sS=67108864,cS={},lS=class{threadId;entries=new Map;constructor(e){this.threadId=e}snapshot(e){return this.entries.get(e)?.state??cS}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,cS);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(B(`preview:image_loading_timed_out_please_retry`))),35e3);return i.promise=aS(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,$i(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,cS)}entry(e){let t=this.entries.get(e)??{state:cS,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<=oS&&n<=sS)break;this.entries.delete(r),i.pending?.controller.abort(),i.state.src&&URL.revokeObjectURL(i.state.src),t--,n-=i.bytes}}},uS=(0,y.createContext)({open:()=>{}});function dS(e){return(0,G.jsx)(fS,{...e},e.threadId)}function fS({threadId:e,children:t}){let[n,r]=(0,y.useState)(),i=(0,y.useMemo)(()=>e?new lS(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,G.jsxs)(uS,{value:a,children:[t,n&&(n.url||e)&&(0,G.jsx)(yS,{target:n,onClose:()=>r(void 0)},n.url||n.path)]})}function pS(){return(0,y.useContext)(uS)}function mS({path:e,url:t}){let{cache:n}=pS(),r=(0,y.useCallback)(t=>n&&e?n.subscribe(e,t):()=>{},[n,e]),i=(0,y.useCallback)(()=>n&&e?n.snapshot(e):cS,[n,e]),a=(0,y.useSyncExternalStore)(r,i,()=>cS),[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=z(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 hS({error:e,path:t,retry:n,url:r}){return(0,G.jsxs)(`span`,{className:`local-image-error`,role:`alert`,children:[(0,G.jsx)(`span`,{children:V(e)}),(0,G.jsx)(`code`,{children:t}),r&&(0,G.jsx)(`a`,{href:r,target:`_blank`,rel:`noopener noreferrer`,children:z(`preview:open_original_image`)}),n&&(0,G.jsx)(`button`,{type:`button`,className:`image-retry`,onClick:n,children:z(`preview:retry_loading_image`)})]})}function gS({source:e,alt:t,title:n,interactive:r=!0}){let{open:i}=pS(),a=mS(e),{path:o,url:s}=e,c=t||(o?o.split(`/`).at(-1):void 0)||z(`common:image`),l=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`img`,{className:`local-image-thumbnail`,src:a.src,alt:t||c,referrerPolicy:s?`no-referrer`:void 0,onError:a.fail}),(0,G.jsxs)(`span`,{className:`local-image-caption`,children:[c,r&&(0,G.jsx)(`span`,{"aria-hidden":`true`,children:` ↗`})]})]});return(0,G.jsx)(`span`,{className:`local-image`,children:a.error?(0,G.jsx)(hS,{error:V(a.error),path:s??o,retry:r?a.retry:void 0,url:r?s:void 0}):a.src?r?(0,G.jsx)(Yd,{asChild:!0,content:n||z(`preview:click_to_enlarge_image`),children:(0,G.jsx)(`button`,{type:`button`,className:`local-image-open`,"aria-label":z(`common:preview_image`,{v0:c}),onClick:()=>i({...e,label:c}),children:l})}):(0,G.jsx)(Yd,{asChild:!0,content:n,children:(0,G.jsx)(`span`,{className:`local-image-open`,children:l})}):(0,G.jsxs)(`span`,{className:`local-image-loading`,role:`status`,children:[z(`preview:loading_image`),(0,G.jsx)(`code`,{children:s||o})]})})}function _S({path:e,...t}){return(0,G.jsx)(gS,{source:{path:e},...t})}function vS({src:e,...t}){return e?(0,G.jsx)(gS,{source:{url:e},...t}):(0,G.jsx)(`span`,{className:`local-image-error`,role:`alert`,children:z(`preview:image_url_unavailable`)})}function yS({target:e,onClose:t}){let n=(0,y.useRef)(null),r=(0,y.useRef)(null),i=mS(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,G.jsxs)(`dialog`,{ref:n,className:`image-preview-dialog`,"aria-label":z(`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,G.jsxs)(`div`,{className:`image-preview-heading`,children:[(0,G.jsx)(`h2`,{children:e.label}),(0,G.jsx)(K,{autoFocus:!0,variant:`ghost`,size:`icon`,"aria-label":z(`preview:close_image_preview`),onClick:t,children:(0,G.jsx)(q,{name:`close`,size:19})})]}),(0,G.jsxs)(`div`,{className:`image-preview-toolbar`,"aria-label":z(`preview:image_zoom`),children:[(0,G.jsx)(K,{variant:`secondary`,size:`sm`,"aria-label":z(`preview:zoom_out`),disabled:!f||a<=.5,onClick:()=>o(e=>Math.max(.5,e-.25)),children:`−`}),(0,G.jsxs)(`output`,{"aria-label":z(`preview:image_zoom_level`),children:[Math.round(a*100),`%`]}),(0,G.jsx)(K,{variant:`secondary`,size:`sm`,"aria-label":z(`preview:zoom_in`),disabled:!f||a>=4,onClick:()=>o(e=>Math.min(4,e+.25)),children:`+`}),(0,G.jsx)(K,{variant:`ghost`,size:`sm`,disabled:!f,onClick:()=>o(1),children:z(`preview:fit_to_window`)}),(0,G.jsx)(`span`,{className:`image-preview-shortcuts`,children:z(`preview:to_zoom_esc_to_close`)})]}),(0,G.jsx)(`div`,{className:`image-preview-viewport`,ref:r,tabIndex:0,"aria-label":z(`preview:image_viewing_area`),children:i.error?(0,G.jsx)(hS,{error:V(i.error),path:e.url??e.path,retry:i.retry,url:e.url}):i.src?(0,G.jsx)(`div`,{className:`image-preview-canvas`,children:(0,G.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,G.jsx)(`span`,{className:`local-image-loading`,role:`status`,children:z(`preview:loading_image`)})}),(0,G.jsxs)(`p`,{className:`image-preview-path`,children:[(0,G.jsx)(`span`,{children:e.url?z(`preview:original_image_link`):z(`preview:original_path_2`)}),e.url?(0,G.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,children:z(`preview:open_original_image`)}):(0,G.jsx)(`code`,{children:e.path})]})]})}function bS({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,G.jsxs)(`div`,{className:`markdown-code-block`,children:[(0,G.jsxs)(`div`,{className:`markdown-code-toolbar`,children:[(0,G.jsxs)(`span`,{className:`code-copy-feedback code-copy-${i}`,role:`status`,children:[i===`copied`&&z(`common:copied`),i===`failed`&&z(`preview:copy_failed_select_and_copy_the_code_manually`)]}),(0,G.jsx)(Yd,{asChild:!0,content:z(`preview:copy_code_block`),children:(0,G.jsx)(K,{variant:`ghost`,size:`icon`,className:`code-copy-button`,"aria-label":z(`preview:copy_code_block`),onClick:()=>void o(),children:(0,G.jsx)(q,{name:i===`copied`?`check`:`copy`,size:16})})})]}),(0,G.jsx)(`pre`,{ref:t,tabIndex:0,"aria-label":z(`preview:code_block`),children:e})]})}var xS=`modulepreload`,SS=function(e){return`/`+e},CS={},wS=function(e){return e.pathname.endsWith(`.css`)},TS=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},ES=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=SS(t,n);let r=s(t),i=wS(r);return TS(CS,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`:xS,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)})},DS=0,OS=Promise.resolve();function kS(e,t,n){let r=OS.then(async()=>{if(n.throwIfAborted(),e.length>5e4)throw Error(`Mermaid source exceeds the rendering limit`);let{default:r}=await ES(async()=>{let{default:e}=await import(`./mermaid.core-DcCEGt0V.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:t?`dark`:`neutral`,fontFamily:`system-ui, sans-serif`,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-${++DS}`,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 OS=r.catch(()=>{}),r}function AS(){let[e,t]=(0,y.useState)(()=>typeof matchMedia==`function`&&matchMedia(`(prefers-color-scheme: dark)`).matches);return(0,y.useEffect)(()=>{let e=matchMedia(`(prefers-color-scheme: dark)`),n=()=>t(e.matches);return n(),e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function jS({source:e,pending:t}){let n=AS(),[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 kS(e,n,r.signal).then(t=>{r.signal.aborted||i({source:e,dark:n,url:t})},()=>{r.signal.aborted||i({source:e,dark:n,failed:!0})}),()=>r.abort()},[e,n,t]);let p=!t&&r?.source===e&&r.dark===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(B(`preview:new_mermaid_source_copied`)),f.current=setTimeout(()=>u(``),2e3)}catch{o(!0),u(B(`preview:new_copy_failed_select_and_copy_the_source`))}finally{d.current=!1}}}return(0,G.jsxs)(`div`,{className:`mermaid-block`,"data-theme":n?`dark`:`light`,children:[(0,G.jsxs)(`div`,{className:`mermaid-toolbar`,children:[(0,G.jsx)(`span`,{className:`mermaid-label`,children:`Mermaid`}),(0,G.jsx)(K,{variant:`ghost`,size:`sm`,disabled:!p?.url,"aria-pressed":a,onClick:()=>o(e=>!e),children:z(a?`preview:new_view_diagram`:`preview:new_view_source`)}),(0,G.jsx)(K,{variant:`ghost`,size:`sm`,disabled:!p?.url||!!m,"aria-pressed":s,onClick:()=>c(e=>!e),children:z(s?`preview:new_fit_width`:`preview:new_actual_size`)}),(0,G.jsx)(K,{variant:`ghost`,size:`sm`,onClick:()=>void h(),children:z(`preview:new_copy_source`)})]}),l&&(0,G.jsx)(`p`,{className:`mermaid-feedback`,role:`status`,children:V(l)}),t?(0,G.jsx)(`p`,{className:`mermaid-notice`,role:`status`,children:z(`preview:new_receiving_mermaid_source_the_diagram_appears_when`)}):p?.failed?(0,G.jsx)(`p`,{className:`mermaid-notice mermaid-error`,role:`alert`,children:z(`preview:new_cannot_render_this_mermaid_diagram_check_the`)}):p?.url?null:(0,G.jsx)(`p`,{className:`mermaid-notice`,role:`status`,children:z(`preview:new_rendering_mermaid_diagram`)}),m?(0,G.jsx)(`pre`,{className:`mermaid-source`,tabIndex:0,"aria-label":z(`preview:new_mermaid_source`),children:(0,G.jsx)(`code`,{children:e})}):p?.url?(0,G.jsx)(`div`,{className:`mermaid-diagram${s?` mermaid-actual-size`:``}`,role:`region`,"aria-label":z(`preview:new_mermaid_diagram_region`),tabIndex:0,children:(0,G.jsx)(`img`,{src:p.url,alt:z(`preview:new_mermaid_diagram`),onError:()=>i({source:e,dark:n,failed:!0})})}):null]})}function MS(e){let t=e.trimEnd().split(`
45
- `),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 NS=(e,t)=>rS(e,t===`src`)||t===`href`&&Jn(e)?e:$v(e),PS=(0,y.createContext)(void 0),FS=(0,y.createContext)(!1),IS=(0,y.createContext)({text:``,streaming:!1}),LS={pre:function({children:e,node:t}){let{text:n,streaming:r}=(0,y.useContext)(IS),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,G.jsx)(jS,{source:String(i.props.children??``),pending:r&&!MS(e)})}return(0,G.jsx)(bS,{children:e})},a:function({children:e,href:t,title:n}){let{threadId:r,open:i}=pS(),a=(0,y.useContext)(PS),o=aC(),s=t?Jn(t):void 0;if(s&&o.threadId){let t=qn(s,a);return(0,G.jsx)(FS,{value:!0,children:(0,G.jsx)(`a`,{href:Yn(o.threadId,t),className:`local-file-link`,title:n||z(`preview:preview_file`,{v0:t}),onClick:e=>{e.preventDefault(),o.open(t)},children:e})})}let c=t?rS(t):void 0,l=c?qn(c,a):void 0;return l&&r?(0,G.jsx)(FS,{value:!0,children:(0,G.jsx)(Yd,{asChild:!0,content:n||z(`common:preview_image`,{v0:l}),children:(0,G.jsx)(`a`,{href:iS(r,l),className:`local-image-link`,onClick:t=>{t.preventDefault(),i({path:l,label:typeof e==`string`?e:l.split(`/`).at(-1)||z(`common:image`)})},children:e})})}):(0,G.jsx)(FS,{value:!0,children:(0,G.jsx)(Yd,{asChild:!0,content:n,children:(0,G.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,children:e})})})},img:function({src:e,alt:t,title:n}){let r=(0,y.useContext)(FS),i=(0,y.useContext)(PS),a=typeof e==`string`?rS(e,!0):void 0,o=a?qn(a,i):void 0;return o?(0,G.jsx)(_S,{path:o,alt:t,title:n,interactive:!r},o):(0,G.jsx)(vS,{src:typeof e==`string`?e:``,alt:t,title:n,interactive:!r},String(e))},table:({children:e})=>(0,G.jsx)(`div`,{className:`markdown-table-scroll`,role:`region`,"aria-label":z(`preview:table`),tabIndex:0,children:(0,G.jsx)(`table`,{children:e})})};function RS({text:e,baseFile:t,streaming:n=!1,externalBaseUrl:r}){return(0,G.jsx)(PS,{value:t,children:(0,G.jsx)(IS,{value:{text:e,streaming:n},children:(0,G.jsx)(`div`,{className:`markdown`,children:(0,G.jsx)(Yv,{skipHtml:!0,remarkPlugins:[tS],components:LS,urlTransform:r?e=>{let t=$v(e);if(!t)return``;try{return new URL(t,r).href}catch{return``}}:NS,children:e})})})})}function zS({threadId:e,path:t,onClose:n}){let r=Un(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(B(`preview:file_loading_timed_out_please_retry`))},35e3);return c(void 0),u(void 0),Qn.previewFile(e,t,n.signal).then(e=>{n.signal.aborted||c(e)}).catch(e=>{n.signal.aborted||u($i(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(B(`preview:copied_source`,{v0:a})),x.current=setTimeout(()=>v(``),2500)}catch{m(`source`),v(B(`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,G.jsxs)(lf,{label:z(`preview:file_preview`,{v0:a}),closeLabel:z(`preview:close_file_preview`),title:t.split(`/`).at(-1)??t,subtitle:z(`preview:file`,{v0:a}),icon:(0,G.jsx)(vn,{size:19,className:`file-preview-icon`,"aria-hidden":`true`}),onClose:n,actions:(0,G.jsxs)(K,{variant:`secondary`,size:`sm`,disabled:!s,onClick:()=>void S(),children:[_.startsWith(z(`common:copied`))?(0,G.jsx)($t,{size:15}):(0,G.jsx)(cn,{size:15}),z(`preview:copy_source`)]}),children:[(0,G.jsxs)(`div`,{className:`file-preview-toolbar`,children:[i?(0,G.jsx)(K,{variant:`ghost`,size:`sm`,"aria-pressed":h,onClick:()=>g(e=>!e),children:z(`preview:wrap_lines`)}):(0,G.jsxs)(`div`,{role:`group`,"aria-label":z(`preview:file_display_mode`),children:[(0,G.jsx)(K,{variant:`ghost`,size:`sm`,"aria-pressed":p===`preview`,onClick:()=>m(`preview`),children:z(`preview:preview`)}),(0,G.jsx)(K,{variant:`ghost`,size:`sm`,"aria-pressed":p===`source`,onClick:()=>m(`source`),children:z(`preview:source`)})]}),(0,G.jsx)(`span`,{children:z(`common:read_only`)})]}),(0,G.jsx)(`p`,{className:`file-preview-feedback`,role:`status`,children:V(_)}),(0,G.jsx)(`div`,{className:`file-preview-scroll`,tabIndex:0,"aria-label":z(`preview:file_content`),children:l?(0,G.jsxs)(`div`,{className:`file-preview-error`,role:`alert`,children:[(0,G.jsx)(vn,{size:28,"aria-hidden":`true`}),(0,G.jsx)(`h3`,{children:z(`preview:cannot_preview_this_file`)}),(0,G.jsx)(`p`,{children:V(l)}),Et(l)&&(0,G.jsxs)(`details`,{children:[(0,G.jsx)(`summary`,{children:z(`common:technical_details`)}),(0,G.jsx)(`pre`,{children:Et(l)})]}),(0,G.jsx)(K,{variant:`secondary`,onClick:()=>f(e=>e+1),children:z(`common:reload`)})]}):s?i?(0,G.jsxs)(G.Fragment,{children:[s.content.length===0&&(0,G.jsx)(`p`,{className:`file-preview-loading`,role:`status`,children:z(`preview:empty_file`)}),(0,G.jsx)(`pre`,{ref:o,className:`file-preview-source text-file-source${h?``:` text-file-nowrap`}`,tabIndex:0,"aria-label":z(`preview:source_2`,{v0:a}),children:s.content})]}):p===`preview`?a===`JSON`?(0,G.jsx)(df,{content:s.content}):(0,G.jsx)(dS,{threadId:e,children:(0,G.jsx)(RS,{text:s.content,baseFile:s.path})}):(0,G.jsx)(`pre`,{ref:o,className:`file-preview-source`,tabIndex:0,"aria-label":z(`preview:source_2`,{v0:a}),children:s.content}):(0,G.jsx)(`p`,{className:`file-preview-loading`,role:`status`,children:z(`preview:loading_file`)})},`${d}:${p}`),(0,G.jsx)(`footer`,{className:`file-preview-path`,title:s?.path??t,children:s?.path??t})]})}var BS={get added(){return z(`common:added`)},get deleted(){return z(`common:removed`)},get modified(){return z(`preview:modified`)},get renamed(){return z(`preview:renamed`)}};function VS(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 z(`preview:new_this_file_has_lines_exceeding_300_collapsed`,{v0:t});if(n>5e4)return z(`preview:new_this_file_exceeds_50_000_characters_collapsed`)}}function HS(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:`
46
- `,r:`\r`})[t]??t)),t?n.replace(/^[ab]\//,``):n}function US(e,t){let n=e.replace(/\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)/g,``).replace(/\x1b\[[0-?]*[ -/]*[@-~]/g,``).replace(/\r\n/g,`
47
- `);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(`
48
- `);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?HS(n[2]):t?.path??z(`preview:unknown_file`))}else if(a&&(c>0||l>0)&&/^[ +\-\\]/.test(e))e.startsWith(`\\`)?a.lines.push({kind:`note`,text:z(`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??z(`preview:unknown_file`)),f(),u=!0;let n=HS(e.slice(4));n===`/dev/null`?i.kind=`added`:(i.oldPath=n,i.path=n)}else if(e.startsWith(`+++ `)){i??=p(t?.path??z(`preview:unknown_file`)),d=!0;let n=HS(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??z(`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:z(`preview:no_newline_at_end_of_file`)}):(e||i)&&(i??=p(t?.path??z(`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=HS(e.slice(12),!1),i.kind=`renamed`):e.startsWith(`rename to `)&&(i.path=HS(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 WS=new Intl.Segmenter(void 0,{granularity:`grapheme`}),GS=e=>Array.from(WS.segment(e),e=>e.segment),KS=new Intl.Segmenter(void 0,{granularity:`word`}),qS=e=>Array.from(KS.segment(e.join(``)),e=>e.segment);function JS(e,t,n){if(!t)return;let r=e.at(-1);r?.changed===n?r.text+=t:e.push({text:t,changed:n})}function YS(e,t,n){let r=GS(e),i=GS(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++;JS(a,r.slice(0,s).join(``),!1),JS(o,i.slice(0,s).join(``),!1);let l=qS(r.slice(s,r.length-c)),u=qS(i.slice(s,i.length-c)),d=(l.length+1)*(u.length+1);if(!l.length||!u.length||d>n.cells)JS(a,l.join(``),!0),JS(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]?(JS(a,l[r++],!1),JS(o,u[i++],!1)):r<l.length&&(i===u.length||t[(r+1)*e+i]>=t[r*e+i+1])?JS(a,l[r++],!0):JS(o,u[i++],!0)}return JS(a,r.slice(r.length-c).join(``),!1),JS(o,i.slice(i.length-c).join(``),!1),[a,o]}function XS(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 ZS(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 QS(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=>XS(r[e].text)),i=o.map(e=>XS(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=ZS(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]=YS(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 $S({file:e}){return(0,G.jsxs)(`span`,{className:`diff-stats`,"aria-label":z(`preview:lines_added_lines_removed`,{v0:e.additions,v1:e.deletions}),children:[(0,G.jsxs)(`span`,{children:[`+`,e.additions]}),(0,G.jsxs)(`span`,{children:[`−`,e.deletions]})]})}function eC({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(B(`preview:reading_changes_timed_out_please_retry`))},35e3);return i(void 0),o(void 0),(e.cursor?Qn.threadHistory(t,e.cursor,n.signal):Qn.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(z(`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(z(`preview:changes_from_this_tool_are_no_longer_in`));i({...e,changes:n.changes??[],truncated:n.truncated})}}}).catch(e=>{n.signal.aborted||o($i(e))}).finally(()=>clearTimeout(r)),()=>{n.abort(),clearTimeout(r)}},[e,t,s]),(0,G.jsxs)(lf,{label:z(`preview:code_change_preview`),title:z(`preview:code_changes`),subtitle:z(`preview:read_only`,{v0:V(e.scope)}),icon:(0,G.jsx)(gn,{size:19,className:`file-preview-icon`,"aria-hidden":`true`}),onClose:n,children:[(0,G.jsx)(`p`,{className:`diff-scope`,children:z(`preview:a_change_snapshot_from_codex_containing_patches_in`)}),a?(0,G.jsxs)(`div`,{className:`diff-empty`,role:`alert`,children:[(0,G.jsx)(`h3`,{children:z(`preview:unable_to_load_changes`)}),(0,G.jsx)(`p`,{children:V(a)}),Et(a)&&(0,G.jsxs)(`details`,{children:[(0,G.jsx)(`summary`,{children:z(`common:technical_details`)}),(0,G.jsx)(`pre`,{children:Et(a)})]}),(0,G.jsx)(K,{variant:`secondary`,onClick:()=>c(e=>e+1),children:z(`common:reload`)})]}):r?(0,G.jsx)(tC,{target:r},s):(0,G.jsx)(`p`,{className:`file-preview-loading diff-loading`,role:`status`,children:z(`preview:loading_changes`)})]})}function tC({target:e}){let t=bt(),n=(0,y.useMemo)(()=>e.changes?e.changes.flatMap(e=>US(e.diff,e)):US(e.text??``),[e,t]),[r,i]=(0,y.useState)(!1);return(0,G.jsxs)(G.Fragment,{children:[e.truncated&&(0,G.jsx)(`p`,{className:`diff-warning`,role:`status`,children:z(`preview:this_patch_is_truncated_only_received_content_is`)}),n.length?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`diff-list-toolbar`,children:[(0,G.jsx)(`span`,{children:z(`preview:new_files_in_this_snapshot`,{v0:n.length})}),(0,G.jsxs)(K,{variant:`ghost`,size:`sm`,"aria-pressed":r,onClick:()=>i(!r),children:[(0,G.jsx)(Pn,{size:15}),z(`preview:wrap_lines`)]})]}),(0,G.jsx)(`div`,{className:`diff-files`,tabIndex:0,"aria-label":z(`preview:new_changed_file_list`),children:n.map((t,n)=>(0,G.jsx)(nC,{file:t,wrap:r,reveal:e.selectedPath!==void 0&&(t.path===e.selectedPath||t.oldPath===e.selectedPath)},n))})]}):(0,G.jsxs)(`div`,{className:`diff-empty`,role:`status`,children:[(0,G.jsx)(gn,{size:28}),(0,G.jsx)(`h3`,{children:z(`preview:no_file_changes_yet`)}),(0,G.jsx)(`p`,{children:z(`preview:no_previewable_patch_received_in_this_scope_yet`)})]}),(0,G.jsx)(`footer`,{className:`file-preview-path`,children:V(e.scope)})]})}function nC({file:e,wrap:t,reveal:n}){let r=(0,y.useMemo)(()=>VS(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,G.jsxs)(`section`,{ref:o,className:`diff-file`,"aria-label":e.path,children:[(0,G.jsxs)(`div`,{className:`diff-file-heading`,children:[(0,G.jsx)(`h3`,{children:(0,G.jsx)(`code`,{children:e.path})}),(0,G.jsx)(`span`,{className:`diff-kind diff-kind-${e.kind}`,children:BS[e.kind]}),(0,G.jsx)($S,{file:e}),(0,G.jsxs)(K,{ref:s,variant:`ghost`,size:`sm`,"aria-expanded":i,"aria-controls":l,onClick:()=>i?u():a(!0),children:[i?(0,G.jsx)(rn,{size:15}):(0,G.jsx)(tn,{size:15}),z(i?`preview:new_collapse_changes`:`preview:new_expand_changes`)]})]}),e.kind===`renamed`&&e.oldPath&&(0,G.jsx)(`p`,{className:`diff-rename`,children:z(`preview:original_path`,{v0:e.oldPath})}),e.incomplete&&(0,G.jsx)(`p`,{className:`diff-warning`,role:`status`,children:z(`preview:this_patch_is_incomplete_or_malformed_line_numbers`)}),!i&&(0,G.jsx)(`p`,{className:`diff-collapsed`,children:z(`preview:new_choose_expand_changes_to_view_it`,{v0:r??z(`preview:new_changes_were_collapsed_manually`)})}),(0,G.jsxs)(`div`,{id:l,hidden:!i,children:[i&&(0,G.jsx)(rC,{file:e,wrap:t}),i&&r&&(0,G.jsxs)(K,{className:`diff-collapse-bottom`,variant:`ghost`,size:`sm`,onClick:u,children:[(0,G.jsx)(rn,{size:15}),z(`preview:new_collapse_changes`)]})]})]})}function rC({file:e,wrap:t}){let[n,r]=(0,y.useState)(0),i=(0,y.useRef)([]),a=(0,y.useMemo)(()=>QS(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,G.jsxs)(G.Fragment,{children:[e.hunks.length>1&&(0,G.jsxs)(`div`,{className:`diff-controls`,role:`group`,"aria-label":z(`preview:change_hunk_navigation`),children:[(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`preview:previous_change_hunk`),disabled:n===0,onClick:()=>s(n-1),children:(0,G.jsx)(rn,{size:16})}),(0,G.jsx)(`span`,{children:z(`preview:new_hunks`,{v0:n+1,v1:e.hunks.length})}),(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`preview:next_change_hunk`),disabled:n>=e.hunks.length-1,onClick:()=>s(n+1),children:(0,G.jsx)(tn,{size:16})})]}),(0,G.jsx)(`div`,{className:`diff-content${t?` diff-wrap`:``}`,tabIndex:0,"aria-label":z(`preview:new_changes_in`,{v0:e.path}),children:e.binary?(0,G.jsxs)(`div`,{className:`diff-empty`,children:[(0,G.jsx)(gn,{size:28}),(0,G.jsx)(`h3`,{children:z(`preview:binary_file_changed`)}),(0,G.jsx)(`p`,{children:z(`preview:line_by_line_preview_is_unavailable_for_this`)})]}):o?(0,G.jsxs)(`div`,{className:`diff-empty`,role:`alert`,children:[(0,G.jsx)(`h3`,{children:z(`preview:unable_to_read_change_content`)}),(0,G.jsx)(`p`,{children:z(`preview:the_content_is_not_a_recognized_unified_diff`)})]}):e.hunks.length?(0,G.jsxs)(`table`,{className:`diff-table`,"aria-label":z(`preview:line_changes_in`,{v0:e.path}),children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{scope:`col`,children:z(`preview:old_line`)}),(0,G.jsx)(`th`,{scope:`col`,children:z(`preview:new_line`)}),(0,G.jsx)(`th`,{scope:`col`,"aria-label":z(`preview:change_type`)}),(0,G.jsx)(`th`,{scope:`col`,children:z(`preview:code`)})]})}),a.map((e,t)=>(0,G.jsxs)(`tbody`,{ref:e=>{i.current[t]=e},children:[(0,G.jsx)(`tr`,{className:`diff-hunk`,children:(0,G.jsxs)(`td`,{colSpan:4,children:[(0,G.jsx)(`span`,{children:z(`preview:hunk`,{v0:t+1})}),` `,e.header]})}),e.lines.map((e,t)=>(0,G.jsxs)(`tr`,{className:`diff-line diff-${e.kind}`,children:[(0,G.jsx)(`td`,{className:`diff-line-number`,children:e.oldLine}),(0,G.jsx)(`td`,{className:`diff-line-number`,children:e.newLine}),(0,G.jsx)(`td`,{className:`diff-marker`,"aria-label":{added:z(`common:added`),removed:z(`common:removed`),context:z(`preview:context`),note:z(`preview:note`)}[e.kind],children:e.kind===`added`?`+`:e.kind===`removed`?`−`:``}),(0,G.jsx)(`td`,{className:`diff-code`,children:(0,G.jsx)(`code`,{children:e.segments?e.segments.map((e,t)=>e.changed?(0,G.jsx)(`mark`,{className:`diff-inline-change`,children:e.text},t):e.text):e.text||` `})})]},t))]},t))]}):(0,G.jsxs)(`div`,{className:`diff-empty`,children:[(0,G.jsx)(`h3`,{children:z(`preview:no_line_changes`)}),(0,G.jsx)(`p`,{children:z(`preview:this_patch_changes_only_metadata_paths_or_empty`)})]})})]})}var iC=(0,y.createContext)({open:()=>{},openDiff:()=>{}}),aC=()=>(0,y.useContext)(iC),oC=()=>(0,y.useContext)(iC).openDiff;function sC({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,G.jsxs)(iC,{value:o,children:[n,r&&r.threadId===e&&(r.kind===`file`?(0,G.jsx)(zS,{threadId:r.threadId,path:r.path,onClose:a},`${e}:${r.path}`):(0,G.jsx)(eC,{threadId:r.threadId,target:r.diff,onClose:a},`${e}:${r.diff.id}`))]})}var cC=`<send_user_message_question_reply>`,lC=`</send_user_message_question_reply>`;function uC(e,t){return JSON.stringify([`request_user_input_async`,e,t])}function dC(e){return`${cC}${JSON.stringify(e)}${lC}`}function fC({itemId:e,questions:t,replies:n=[],disabled:r,onReply:i}){let a=(0,y.useId)(),[o,s]=(0,y.useState)(()=>t.map(e=>e.options?.length?0:-1)),[c,l]=(0,y.useState)([]),[u,d]=(0,y.useState)(!1),f=(0,y.useRef)(!1),[p,m]=(0,y.useState)(),h=t.map((t,r)=>n.find(t=>t.questionItemId===uC(e,r))?.answer??n.find(n=>n.questionItemId===e&&n.question===t.title)?.answer??p?.[r]),g=h.every(e=>e!==void 0),_=t.map((e,t)=>h[t]??(o[t]===-1?c[t]:e.options?.[o[t]??0])?.trim()??``),v=r||u||!!g;return(0,G.jsxs)(`section`,{className:`async-question-card`,"aria-label":z(`workspace:questions_from_codex`),children:[(0,G.jsxs)(`div`,{className:`async-question-heading`,children:[(0,G.jsxs)(`span`,{children:[(0,G.jsx)(q,{name:`chat`,size:16}),z(`workspace:your_answer_is_needed`)]}),(0,G.jsx)(`small`,{children:z(g?`workspace:answer_sent`:u?`workspace:sending`:`workspace:you_can_answer_later`)})]}),(0,G.jsxs)(`form`,{onSubmit:async n=>{if(n.preventDefault(),!(v||f.current||_.some(e=>!e))){f.current=!0,d(!0);try{await i(t.flatMap((t,n)=>h[n]===void 0?[{questionItemId:uC(e,n),question:t.title,answer:_[n]}]:[]))&&m(_)}finally{f.current=!1,d(!1)}}},children:[t.map((e,t)=>(0,G.jsxs)(`fieldset`,{disabled:v||h[t]!==void 0,children:[(0,G.jsx)(`legend`,{children:e.title}),h[t]===void 0?(0,G.jsxs)(G.Fragment,{children:[e.options?.map((e,n)=>(0,G.jsxs)(`label`,{className:`question-option`,children:[(0,G.jsx)(`input`,{type:`radio`,name:`${a}-${t}`,checked:o[t]===n,onChange:()=>s(e=>e.map((e,r)=>r===t?n:e))}),(0,G.jsx)(`span`,{children:e})]},n)),!!e.options?.length&&(0,G.jsxs)(`label`,{className:`question-option`,children:[(0,G.jsx)(`input`,{type:`radio`,name:`${a}-${t}`,checked:o[t]===-1,onChange:()=>s(e=>e.map((e,n)=>n===t?-1:e))}),(0,G.jsx)(`span`,{children:z(`workspace:free_text_answer`)})]}),o[t]===-1&&(0,G.jsx)(`textarea`,{className:`text-input`,"aria-label":z(`common:free_text_answer`,{v0:e.title}),placeholder:z(`common:enter_your_answer`),rows:2,maxLength:1e4,value:c[t]??``,onChange:e=>l(n=>{let r=[...n];return r[t]=e.target.value,r})})]}):(0,G.jsx)(`p`,{className:`async-question-answer`,children:h[t]})]},t)),!g&&(0,G.jsxs)(`div`,{className:`async-question-footer`,children:[(0,G.jsx)(`span`,{children:z(`workspace:your_answer_will_be_sent_to_this_session`)}),(0,G.jsx)(K,{type:`submit`,disabled:v||_.some(e=>!e),children:z(u?`workspace:sending`:`workspace:send_answer`)})]})]})]})}var pC=[`command`,`execve`,`writeStdin`,`applyPatch`,`networkAccess`,`mcpToolCall`,`requestPermissions`];function mC(e){let t=e.presentation?.kind??pC.find(t=>lt[`zh-Hans`].approvals[t]===e.actionLabel);return t&&pC.includes(t)?z(`approvals:${t}`):z(`approvals:unknownAction`)}function hC(e){return e.presentation?e.presentation.parts.map(e=>e.label===`raw`?e.value:e.value?z(`approvals:fieldValue`,{label:z(`approvals:${e.label===`deny`?`accessDeny`:e.label}`),value:e.value}):z(`approvals:${e.label===`deny`?`accessDeny`:e.label}`)).join(`
49
- `):e.actionSummary}function gC({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,G.jsxs)(`details`,{ref:a,className:`collapsible-activity${i?` collapsible-activity-group`:``} ${e}`,onToggle:e=>{e.target===e.currentTarget&&c(e.currentTarget.open)},children:[(0,G.jsxs)(`summary`,{"aria-label":`${z(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,G.jsx)(`span`,{className:`activity-collapse-hint`,"aria-hidden":`true`,children:z(`conversation:collapse`)}),(0,G.jsx)(q,{name:`chevron`,size:14})]}),r]})}var _C={get inProgress(){return z(`approvals:reviewing`)},get approved(){return z(`approvals:allowed`)},get denied(){return z(`common:denied`)},get timedOut(){return z(`common:review_timed_out`)},get aborted(){return z(`approvals:review_aborted`)},get unknown(){return z(`common:result_unconfirmed`)}},vC={get low(){return z(`approvals:low`)},get medium(){return z(`approvals:medium`)},get high(){return z(`approvals:high`)},get critical(){return z(`approvals:critical`)}},yC={get unknown(){return z(`approvals:unknown`)},get low(){return z(`approvals:low`)},get medium(){return z(`approvals:medium`)},get high(){return z(`approvals:high`)}};function bC(e){let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleString(bt(),{hour12:!1}):z(`approvals:no_valid_time_provided`)}function xC({review:e}){return(0,G.jsx)(gC,{className:`auto-review-card auto-review-${e.status}`,label:z(`approvals:automatic_review_2`,{v0:hC(e)||mC(e),v1:_C[e.status]}),summary:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(q,{name:e.status===`approved`?`check`:e.status===`denied`?`close`:e.status===`inProgress`?`refresh`:`alert`,size:15}),(0,G.jsxs)(`span`,{className:`activity-description`,children:[(0,G.jsx)(`span`,{className:`activity-label`,children:z(`approvals:automatic_review`)}),(0,G.jsx)(`code`,{className:`command-summary`,children:hC(e)||mC(e)})]}),(0,G.jsx)(`span`,{className:`auto-review-status`,role:`status`,children:_C[e.status]})]}),children:(0,G.jsxs)(`div`,{className:`activity-body auto-review-body`,children:[(0,G.jsxs)(`div`,{className:`auto-review-operation`,children:[(0,G.jsx)(`span`,{children:mC(e)}),(0,G.jsx)(`code`,{children:hC(e)||z(`approvals:no_reviewed_operation_provided`)})]}),(0,G.jsxs)(`div`,{className:`auto-review-rationale`,children:[(0,G.jsx)(`strong`,{children:z(`approvals:review_rationale`)}),(0,G.jsx)(`p`,{children:e.rationale?.trim()?e.rationale:z(`approvals:no_review_rationale_provided`)})]}),(0,G.jsxs)(`details`,{className:`auto-review-details`,children:[(0,G.jsx)(`summary`,{children:z(`common:technical_details`)}),(0,G.jsxs)(`dl`,{children:[e.cwd&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`dt`,{children:z(`common:working_directory`)}),(0,G.jsx)(`dd`,{children:(0,G.jsx)(`code`,{children:e.cwd})})]}),e.riskLevel&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`dt`,{children:z(`approvals:risk_assessment`)}),(0,G.jsx)(`dd`,{children:vC[e.riskLevel]})]}),e.userAuthorization&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`dt`,{children:z(`approvals:user_authorization_assessment`)}),(0,G.jsx)(`dd`,{children:yC[e.userAuthorization]})]}),(0,G.jsx)(`dt`,{children:z(`approvals:review_id`)}),(0,G.jsx)(`dd`,{children:(0,G.jsx)(`code`,{children:e.reviewId})}),e.targetItemId&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`dt`,{children:z(`approvals:operation_id`)}),(0,G.jsx)(`dd`,{children:(0,G.jsx)(`code`,{children:e.targetItemId})})]}),(0,G.jsx)(`dt`,{children:z(`approvals:started_at`)}),(0,G.jsx)(`dd`,{children:bC(e.startedAtMs)}),e.completedAtMs!==void 0&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`dt`,{children:z(`approvals:finished_at`)}),(0,G.jsx)(`dd`,{children:bC(e.completedAtMs)})]})]})]})]})})}function SC({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,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Yd,{asChild:!0,content:z(`conversation:copy_loaded_command_output`),children:(0,G.jsx)(K,{variant:`ghost`,size:`icon`,className:`command-output-copy-button`,"aria-label":z(`conversation:copy_command_output`),disabled:!e,onClick:()=>void s(),children:(0,G.jsx)(q,{name:a===`copied`?`check`:`copy`,size:16})})}),(0,G.jsx)(`span`,{className:`command-output-copy-feedback command-output-copy-${a}`,role:`status`,children:a===`failed`?z(`conversation:command_output_copy_failed`):t?z(a===`copied`?`conversation:copied_truncated_command_output`:`conversation:command_output_truncated`):a===`copied`?z(`common:copied`):``})]})}function CC(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.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 wC(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 TC({items:e,children:t}){let n=wC(e),r=e.at(-1),i=(r?.autoReview?hC(r.autoReview):void 0)||r?.command,a=[{count:n.running,label:z(`common:running`),className:`activity-group-running`},{count:n.failed,label:z(`common:failed`),className:`activity-group-problem`},{count:n.denied,label:z(`common:denied`),className:`activity-group-problem`},{count:n.timedOut,label:z(`common:review_timed_out`),className:`activity-group-attention`},{count:n.interrupted,label:z(`conversation:aborted`),className:`activity-group-attention`},{count:n.unknown,label:z(`common:result_unconfirmed`),className:`activity-group-attention`},{count:n.completed,label:z(`common:completed`),className:``}].filter(({count:e})=>e>0),o=a.map(({label:e,count:t})=>z(`conversation:activityState`,{status:e,count:t})).join(` · `);return(0,G.jsx)(gC,{className:`activity-group`,group:!0,label:z(`conversation:activities_2`,{count:n.total,v0:n.total,v1:o?` · ${o}`:``}),summary:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(q,{name:n.running?`refresh`:`terminal`,size:16}),(0,G.jsxs)(`span`,{className:`activity-description`,children:[(0,G.jsx)(`span`,{className:`activity-label`,children:z(`conversation:activities`,{count:n.total,v0:n.total})}),n.reviews>0&&(0,G.jsx)(`span`,{className:`activity-group-reviews`,children:z(`conversation:includes_automatic_reviews`,{count:n.reviews,v0:n.reviews})}),i&&(0,G.jsx)(`code`,{className:`command-summary`,children:i})]}),(0,G.jsx)(`span`,{className:`activity-group-status`,role:`status`,children:a.map(({label:e,count:t,className:n})=>(0,G.jsx)(`span`,{className:n,children:z(`conversation:activityState`,{status:e,count:t})},e))})]}),children:(0,G.jsx)(`div`,{className:`activity-group-items`,children:t})})}function EC({item:e,offline:t=!1}){let n=e.status??`unknown`,r=n===`inProgress`,i={inProgress:z(`conversation:compacting_context`),completed:z(`conversation:context_compacted`),failed:z(`conversation:context_compaction_failed`),interrupted:z(`conversation:context_compaction_interrupted`)}[n]??z(`conversation:context_compaction_state_unknown`),a=e.error??(r?z(`conversation:organizing_context_the_current_task_will_continue_when`):n===`unknown`?z(`conversation:no_definite_completion_result_received_check_subsequent_task`):void 0);return(0,G.jsxs)(`div`,{className:`context-compaction context-compaction-${n}`,"data-testid":`context-compaction`,"data-state":n,role:n===`failed`?`alert`:`status`,"aria-label":z(`conversation:context_compaction_status`),children:[(0,G.jsx)(`span`,{className:`compaction-icon`,children:(0,G.jsx)(q,{name:n===`failed`?`alert`:n===`completed`?`check`:`compress`,size:18})}),(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`strong`,{children:[r&&t&&z(`common:last_known`),i]}),a&&(0,G.jsx)(`p`,{children:a})]})]})}var DC=(e,t)=>bt()===`zh-Hans`?z(`conversation:${{hour:`hours`,minute:`min`,second:`sec`}[t]}`,{v0:e}):new Intl.NumberFormat(bt(),{style:`unit`,unit:t,unitDisplay:`short`}).format(e);function OC(e){if(e===void 0||!Number.isFinite(e)||e<0)return;if(e>0&&e<1e3)return z(`conversation:less_than_1_second`);let t=Math.floor(e/1e3),n=Math.floor(t/3600),r=Math.floor(t%3600/60);return[...n?[DC(n,`hour`)]:[],...r?[DC(r,`minute`)]:[],...t%60||t===0?[DC(t%60,`second`)]:[]].join(` `)}function kC(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(bt(),{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:bt()===`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 AC(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?`<${Ct(.1,r)}`:Ct(n,r)}function jC({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,G.jsxs)(`span`,{className:`reply-copy-controls`,children:[(0,G.jsx)(Yd,{asChild:!0,content:z(`workspace:copy_reply_markdown`),children:(0,G.jsx)(K,{variant:`ghost`,size:`icon`,className:`reply-copy-button`,"aria-label":z(`workspace:copy_reply`),onClick:()=>void a(),children:(0,G.jsx)(q,{name:r===`copied`?`check`:`copy`,size:14})})}),(0,G.jsxs)(`span`,{className:`reply-copy-feedback reply-copy-${r}`,role:`status`,children:[r===`copied`&&z(`common:copied`),r===`failed`&&z(`workspace:copy_failed_select_and_copy_the_reply_manually`)]})]})}function MC({turn:e}){if(e.status!==`completed`)return null;let t=OC(e.durationMs),n=kC(e.completedAt),r=AC(e.outputTokens,e.durationMs),i=e.items.findLast(e=>e.type===`agentMessage`&&e.text?.trim())?.text;return(0,G.jsxs)(`div`,{className:`turn-completion`,role:`group`,"aria-label":z(`conversation:turn_completion_details`),children:[(0,G.jsxs)(`span`,{className:`turn-completion-status`,children:[(0,G.jsx)(q,{name:`check`,size:14}),z(`common:completed`)]}),(0,G.jsxs)(`span`,{children:[` `,`· `,t?z(`conversation:took`,{v0:t}):z(`conversation:duration_unknown`)]}),(0,G.jsxs)(`span`,{children:[` · `,(0,G.jsx)(Gd,{children:(0,G.jsxs)(Kd,{children:[(0,G.jsx)(qd,{asChild:!0,children:(0,G.jsx)(`span`,{className:`turn-tps`,tabIndex:0,children:r===void 0?z(`conversation:tps_unknown`):z(`conversation:average_tps`,{v0:r})})}),(0,G.jsx)(Jd,{children:r===void 0?z(`conversation:tps_cannot_be_calculated_without_complete_token_counts`):z(`conversation:output_tokens_including_reasoning_total_turn_duration_in`,{v0:e.outputTokens})})]})})]}),(0,G.jsxs)(`span`,{children:[` · `,n?(0,G.jsxs)(G.Fragment,{children:[z(`conversation:completed_at`),` `,(0,G.jsx)(`time`,{dateTime:n.dateTime,children:n.label})]}):z(`conversation:completion_time_unknown`)]}),i&&(0,G.jsx)(jC,{text:i})]})}function NC({item:e}){return(0,G.jsx)(`article`,{className:`message user-message`,"aria-label":z(`conversation:your_message`),"data-prompt-id":e.id,tabIndex:-1,children:(0,G.jsxs)(`div`,{className:`message-content`,children:[e.questionReplies?.length?e.questionReplies.map((e,t)=>(0,G.jsxs)(`div`,{className:`user-question-reply`,children:[(0,G.jsx)(`blockquote`,{children:e.question}),(0,G.jsx)(`p`,{className:`user-text`,children:e.answer})]},t)):(0,G.jsx)(`p`,{className:`user-text`,children:e.text}),e.images&&(0,G.jsx)(`div`,{className:`message-images`,children:e.images.map((e,t)=>(0,G.jsx)(`img`,{src:e,alt:z(`conversation:sent_image`,{v0:t+1}),loading:`lazy`},t))}),(e.imageCount??0)>(e.images?.length??0)&&(0,G.jsx)(`p`,{className:`subtle`,children:z(`conversation:images_have_no_preview`,{count:(e.imageCount??0)-(e.images?.length??0),v0:(e.imageCount??0)-(e.images?.length??0)})}),e.error&&(0,G.jsx)(`p`,{className:`inline-error`,children:V(e.error)})]})})}function PC({thread:e,onJump:t}){let n=(0,y.useRef)(null),[r,i]=(0,y.useState)(),a=e?.turns.flatMap(e=>e.items).find(e=>e.type===`userMessage`&&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,G.jsx)(`div`,{className:`sticky-prompt-slot`,ref:n,children:a&&(0,G.jsx)(Yd,{asChild:!0,content:z(`conversation:back_to_original_prompt`),children:(0,G.jsxs)(K,{variant:`ghost`,className:`sticky-prompt`,"aria-label":z(`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.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,G.jsx)(`span`,{className:`sticky-prompt-label`,children:z(`conversation:your_instructions`)}),(0,G.jsx)(`span`,{className:`sticky-prompt-text`,children:a.text?.trim()||(s?z(`conversation:images`,{count:s,v0:s}):z(`conversation:user_prompt`))}),(0,G.jsx)(q,{name:`down`,size:14,style:{transform:`rotate(180deg)`}})]})})})}var FC={get commandExecution(){return z(`common:run_command`)},get fileChange(){return z(`conversation:file_changes`)},get reasoning(){return z(`conversation:reasoning`)},get mcpToolCall(){return z(`conversation:tool_call`)},get webSearch(){return z(`conversation:web_search`)},get plan(){return z(`conversation:execution_plan`)},get enteredReviewMode(){return z(`conversation:start_code_review`)},get exitedReviewMode(){return z(`conversation:code_review_results`)}},IC={get completed(){return z(`common:completed`)},get inProgress(){return z(`common:running`)},get running(){return z(`common:running`)},get failed(){return z(`common:failed`)},get declined(){return z(`common:denied`)},get interrupted(){return z(`common:interrupted`)}};function LC({item:e,streaming:t}){let n=oC();return(0,G.jsx)(gC,{className:`activity${e.type===`commandExecution`?` activity-command`:``}${e.status===`failed`?` activity-failed`:``}`,label:e.command?z(`conversation:activityWithCommand`,{label:FC[e.type]??e.type,command:e.command}):FC[e.type]??e.type,summary:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(q,{name:e.type===`fileChange`?`code`:`terminal`,size:16}),(0,G.jsxs)(`span`,{className:`activity-description`,children:[(0,G.jsx)(`span`,{className:`activity-label`,children:FC[e.type]??e.type}),e.command&&(0,G.jsx)(`code`,{className:`command-summary`,children:e.command})]}),(0,G.jsx)(`span`,{className:`activity-status`,children:e.status?IC[e.status]??e.status:``})]}),children:(0,G.jsxs)(`div`,{className:`activity-body`,children:[e.cwd&&(0,G.jsx)(`p`,{className:`mono subtle`,children:e.cwd}),e.command&&(0,G.jsx)(`pre`,{className:`command`,children:(0,G.jsxs)(`code`,{children:[`$ `,e.command]})}),e.text&&(0,G.jsx)(RS,{text:e.text,streaming:t}),e.output!==void 0&&(e.type===`commandExecution`?(0,G.jsxs)(`div`,{className:`command-output`,children:[(0,G.jsx)(SC,{output:e.output,truncated:e.truncated}),(0,G.jsx)(`pre`,{className:`tool-output`,tabIndex:0,children:(0,G.jsx)(`code`,{children:e.output||z(`conversation:no_output_yet`)})})]}):(0,G.jsx)(`pre`,{className:`tool-output`,children:(0,G.jsx)(`code`,{children:e.output||z(`conversation:no_output_yet`)})})),e.truncated&&(0,G.jsxs)(`p`,{className:`truncation`,children:[(0,G.jsx)(q,{name:`alert`,size:14}),z(`conversation:output_exceeds_the_display_limit_and_has_been`)]}),e.changes?.map((t,r)=>(0,G.jsxs)(K,{className:`file-change-link`,variant:`ghost`,onClick:()=>n({id:e.id,scope:B(`conversation:file_changes_from_this_tool`),source:`item`,selectedPath:t.path}),children:[(0,G.jsx)(q,{name:`code`,size:15}),(0,G.jsx)(`code`,{children:t.path}),(0,G.jsx)(`span`,{children:z(`conversation:view_changes`)}),(0,G.jsx)(q,{name:`chevron`,size:14})]},`${t.path}:${r}`)),e.error&&(0,G.jsx)(`p`,{className:`inline-error`,children:V(e.error)}),e.details!==void 0&&(0,G.jsxs)(`details`,{className:`raw-details`,children:[(0,G.jsx)(`summary`,{children:z(`conversation:activity_details`)}),(0,G.jsx)(`pre`,{children:JSON.stringify(e.details,null,2)})]})]})})}function RC({item:e,questionControls:t,replies:n,streaming:r=!1}){return e.type===`contextCompaction`?e.status===`inProgress`?null:(0,G.jsx)(EC,{item:e}):e.type===`userMessage`?(0,G.jsx)(NC,{item:e}):e.type===`autoApprovalReview`&&e.autoReview?(0,G.jsx)(xC,{review:e.autoReview}):e.type===`agentMessage`||e.type===`exitedReviewMode`?(0,G.jsx)(`article`,{className:`message assistant-message`,"aria-label":z(`conversation:codex_reply`),children:(0,G.jsxs)(`div`,{className:`message-content`,children:[e.type===`agentMessage`&&e.questions?.length?(0,G.jsx)(fC,{itemId:e.id,questions:e.questions,replies:n,disabled:t?.disabled??!0,onReply:t?.onReply??(async()=>!1)}):(0,G.jsx)(RS,{text:e.text??``,streaming:r}),e.error&&(0,G.jsx)(`p`,{className:`inline-error`,children:V(e.error)})]})}):(0,G.jsx)(LC,{item:e,streaming:r})}function zC({turn:e,offline:t}){if(!e.reconnect)return null;let n=e.reconnect.status===`retrying`;return(0,G.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":z(`conversation:codex_connection_status`),children:[(0,G.jsx)(q,{name:n?`refresh`:`alert`,size:18}),(0,G.jsxs)(`div`,{className:`codex-reconnect-content`,children:[(0,G.jsxs)(`strong`,{children:[t&&z(`common:last_known`),z(n?`conversation:reconnecting`:`conversation:codex_reconnection_failed`)]}),(0,G.jsx)(`p`,{children:n?z(`conversation:reconnecting_to_the_model_service_codex_will_retry`):Zd(e.status)?z(`conversation:codex_stopped_retrying_check_the_server_network_and`):z(`conversation:codex_stopped_retrying_check_the_server_network_and_2`)}),(0,G.jsxs)(`details`,{children:[(0,G.jsx)(`summary`,{children:z(`conversation:connection_details`)}),(0,G.jsx)(`p`,{className:`codex-reconnect-message`,children:V(e.reconnect.message)})]})]})]})}function BC(e){return(0,G.jsx)(dS,{threadId:e.thread?.id,children:(0,G.jsx)(VC,{...e})},e.thread?.id??`empty`)}function VC({thread:e,offline:t,history:n,projectName:r,needsProject:i=!1,canAddProject:a=!0,onAddProject:o,readingEnabled:s=!0,onReadCompleted:c,questionControls:l}){let u=oC(),d=(0,y.useRef)(null),f=(0,y.useRef)(null),p=(0,y.useRef)(!0),[m,h]=(0,y.useState)(!1),g=(0,y.useRef)(e?.id),_=(0,y.useRef)(void 0),v=(0,y.useRef)(void 0),b=(0,y.useRef)(0),x=(0,y.useRef)(!1),S=(0,y.useRef)(!1),C=e?.turns.at(-1),w=new Map;for(let t of e?.turns??[])for(let e of t.items)for(let t of e.questionReplies??[]){let e=w.get(t.questionItemId)??[];w.set(t.questionItemId,[...e,t])}let T=C&&Zd(C.status)?C.items.findLast(e=>e.type===`contextCompaction`&&e.status===`inProgress`):void 0,E=bt();(0,y.useLayoutEffect)(()=>{g.current!==e?.id&&(g.current=e?.id,p.current=!0,h(!1),v.current=void 0,x.current=!1,S.current=!1);let t=d.current;if(p.current)f.current?.scrollIntoView({block:`end`});else if(t&&v.current){let e=[...t.querySelectorAll(`[data-turn-id]`)].find(e=>e.dataset.turnId===v.current.id);e&&(t.scrollTop+=e.getBoundingClientRect().top-t.getBoundingClientRect().top-v.current.offset)}t&&(b.current=t.scrollTop)},[e,E]);let D=(0,y.useCallback)(()=>{let e=d.current;if(!e)return;x.current=S.current&&e.scrollTop<b.current,b.current=e.scrollTop;let t=[...e.querySelectorAll(`[data-turn-id]`)].find(t=>t.getBoundingClientRect().bottom>e.getBoundingClientRect().top);v.current=t?{id:t.dataset.turnId,offset:t.getBoundingClientRect().top-e.getBoundingClientRect().top}:void 0,x.current&&e.scrollTop<Math.max(600,e.clientHeight*1.5)&&!n?.error&&n?.onLoadOlder(),p.current=e.scrollHeight-e.scrollTop-e.clientHeight<100,h(!p.current)},[n]);return(0,y.useEffect)(()=>{let e=d.current;e&&x.current&&e.scrollTop<Math.max(600,e.clientHeight*1.5)&&!n?.loading&&!n?.error&&n?.onLoadOlder()},[e,n]),(0,y.useEffect)(()=>{let e=d.current;if(!e)return;let t=e=>{e.target instanceof HTMLDetailsElement&&e.target.classList.contains(`collapsible-activity`)&&D()};return e.addEventListener(`toggle`,t,!0),()=>e.removeEventListener(`toggle`,t,!0)},[D]),(0,y.useEffect)(()=>{let t=d.current,n=f.current,r=e?.id,i=C?.id;if(!s||!c||!t||!n||!r||!i||C.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 l=_.current;(l?.threadId!==r||l.turnId!==i)&&(_.current={threadId:r,turnId:i},c(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,C?.id,C?.status,s,c]),(0,G.jsxs)(`div`,{className:`conversation-area`,children:[n?.cached&&(0,G.jsxs)(`div`,{className:`history-cache-notice`,role:`status`,children:[(0,G.jsx)(`span`,{children:n.syncError?z(`conversation:showing_local_cache_sync_failed_some_history_may`):z(`conversation:showing_local_cache_checking_latest_messages_and_task`)}),n.syncError&&(0,G.jsx)(K,{variant:`ghost`,size:`sm`,onClick:n.onRetryOpen,children:z(`conversation:resynchronize`)})]}),C?.reconnect&&(0,G.jsx)(`div`,{className:`codex-reconnect-pinned`,children:(0,G.jsx)(zC,{turn:C,offline:t})}),T&&(0,G.jsx)(`div`,{className:`context-compaction-pinned`,children:(0,G.jsx)(EC,{item:T,offline:t})}),(0,G.jsxs)(`div`,{className:`conversation-viewport`,children:[(0,G.jsx)(PC,{thread:e,onJump:()=>{p.current=!1}}),(0,G.jsx)(`div`,{className:`conversation-scroll`,ref:d,onScroll:D,onWheel:()=>{S.current=!0},onTouchStart:()=>{S.current=!0},onPointerDown:()=>{S.current=!0},onKeyDown:e=>{[`ArrowUp`,`ArrowDown`,`PageUp`,`PageDown`,`Home`,`End`,` `].includes(e.key)&&(S.current=!0)},tabIndex:0,"aria-label":z(`conversation:session_messages`),children:(0,G.jsxs)(`div`,{className:`conversation-content`,children:[(e?.history?.olderCursor||n?.error)&&(0,G.jsxs)(`div`,{className:`history-pagination`,role:`status`,"aria-live":`polite`,"aria-busy":n?.loading,children:[(0,G.jsx)(`span`,{children:n?.error??(n?.loading?z(`conversation:loading_earlier_messages`):z(`conversation:scroll_up_to_load_earlier_messages`))}),(0,G.jsx)(K,{variant:`ghost`,size:`sm`,disabled:n?.loading,onClick:()=>n?.onLoadOlder(),children:n?.error?z(`conversation:retry_loading`):z(`conversation:load_earlier_messages`)}),n?.error&&n.cached&&e?.history?.olderCursor&&(0,G.jsx)(K,{variant:`ghost`,size:`sm`,disabled:n.loading||n.cacheExhausted,onClick:n.onLoadCachedOlder,children:n.cacheExhausted?z(`conversation:no_local_cache_here_yet`):z(`conversation:continue_reading_local_history`)})]}),e?.historyTruncated&&(0,G.jsxs)(`p`,{className:`truncation`,children:[(0,G.jsx)(q,{name:`alert`,size:14}),z(`conversation:some_older_history_is_omitted_from_this_live`)]}),n?.opening&&!e?.turns.length?(0,G.jsxs)(`div`,{className:`history-opening`,role:n.openingError?`alert`:`status`,children:[(0,G.jsx)(`p`,{children:n.openingError??z(`common:loading_session`)}),n.openingError?(0,G.jsx)(K,{variant:`secondary`,onClick:n.onRetryOpen,children:z(`conversation:retry_reading`)}):(0,G.jsxs)(`div`,{className:`history-skeleton`,"aria-hidden":`true`,children:[(0,G.jsx)(`span`,{}),(0,G.jsx)(`span`,{}),(0,G.jsx)(`span`,{})]})]}):e?.turns.length?e.turns.map((e,n)=>(0,G.jsxs)(`section`,{className:`turn`,"data-turn-id":e.id,"aria-label":z(`conversation:turn`,{v0:n+1}),children:[(0,G.jsxs)(`div`,{className:`turn-heading`,children:[(0,G.jsx)(`span`,{children:z(`conversation:turn`,{v0:n+1})}),(0,G.jsx)(Qd,{status:e.status,offline:t})]}),e.id!==C?.id&&e.reconnect?.status===`failed`&&(0,G.jsx)(zC,{turn:e,offline:t}),CC(e.items).map(t=>t.kind===`message`?(0,G.jsx)(RC,{item:t.item,streaming:Zd(e.status),questionControls:l,replies:[...w.get(t.item.id)??[],...(t.item.questions??[]).flatMap((e,n)=>w.get(uC(t.item.id,n))??[])]},t.key):(0,G.jsx)(TC,{items:t.items,children:t.items.map(t=>(0,G.jsx)(RC,{item:t,streaming:Zd(e.status)},t.id))},t.key)),(e.diff!==void 0||e.items.some(e=>e.changes?.length))&&(0,G.jsxs)(K,{className:`turn-diff`,variant:`ghost`,onClick:()=>u({id:e.id,scope:B(`conversation:turn_changes`,{v0:n+1}),source:`turn`}),children:[(0,G.jsx)(q,{name:`code`,size:17}),(0,G.jsxs)(`span`,{children:[z(`conversation:changes_in_this_turn`),(0,G.jsx)(`small`,{children:z(`conversation:view_file_and_line_changes`)})]}),(0,G.jsx)(q,{name:`chevron`,size:16})]}),e.error&&e.reconnect?.status!==`failed`&&!e.items.some(t=>t.type===`contextCompaction`&&t.error===e.error)&&(0,G.jsx)(`div`,{className:`error-banner`,children:V(e.error)}),(0,G.jsx)(MC,{turn:e})]},e.id)):(0,G.jsxs)(`div`,{className:`empty-state`,"data-testid":`workspace-start`,"data-thread-ready":!!e,children:[(0,G.jsx)(`div`,{className:`empty-symbol`,children:(0,G.jsx)(q,{name:`code`,size:36})}),(0,G.jsx)(`p`,{className:`eyebrow`,children:z(`conversation:your_development_workspace`)}),(0,G.jsx)(`h1`,{children:z(`conversation:start_with_an_idea`)}),(0,G.jsxs)(`p`,{children:[z(`conversation:describe_your_task_or_paste_an_image_question`),(0,G.jsx)(`br`,{}),r?z(`conversation:start_in_project`,{v0:r}):z(`conversation:start_without_project`)]}),i&&(0,G.jsxs)(K,{variant:`ghost`,onClick:o,disabled:!a,children:[(0,G.jsx)(q,{name:`plus`,size:16}),z(`common:add_project`)]}),(0,G.jsxs)(`div`,{className:`empty-features`,children:[(0,G.jsxs)(`span`,{children:[(0,G.jsx)(q,{name:`terminal`,size:16}),z(`conversation:live_execution`)]}),(0,G.jsxs)(`span`,{children:[(0,G.jsx)(q,{name:`code`,size:16}),z(`conversation:changes_by_turn`)]}),(0,G.jsxs)(`span`,{children:[(0,G.jsx)(q,{name:`check`,size:16}),z(`conversation:approve_and_follow_up_anytime`)]})]})]}),(0,G.jsx)(`div`,{ref:f})]})})]}),m&&(0,G.jsxs)(K,{className:`back-to-bottom`,variant:`secondary`,size:`sm`,onClick:()=>{p.current=!0,h(!1),f.current?.scrollIntoView({behavior:`smooth`,block:`end`})},children:[(0,G.jsx)(q,{name:`down`,size:15}),z(`conversation:back_to_latest`)]})]})}function HC({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`,z(`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()?ba(a):z(`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`,B(`common:diagnostics`))):c(void 0)}catch(e){c($i(e))}finally{d.current=!1,u(!1)}}}return(0,G.jsx)(`div`,{className:`thread-title-editor${r?` thread-title-editing`:``}`,children:r?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`h1`,{className:`sr-only`,children:e}),(0,G.jsxs)(`form`,{className:`thread-title-form`,"aria-label":z(`sidebar:rename_session`),"aria-busy":l,onSubmit:e=>{e.preventDefault(),h.current||x()},children:[(0,G.jsxs)(`div`,{className:`thread-title-fields`,children:[(0,G.jsx)(`input`,{ref:f,"aria-label":z(`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,G.jsx)(Yd,{content:z(`sidebar:save_session_name`),children:(0,G.jsx)(K,{type:`submit`,size:`icon`,"aria-label":z(`sidebar:save_session_name`),disabled:l||!!v,children:(0,G.jsx)(q,{name:`check`,size:16})})}),(0,G.jsx)(Yd,{content:z(`sidebar:cancel_rename`),children:(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`sidebar:cancel_rename`),disabled:l,onClick:b,children:(0,G.jsx)(q,{name:`close`,size:16})})})]}),(0,G.jsx)(`p`,{id:`${_}-help`,className:`thread-title-help`,children:l?z(`common:saving`):v??z(`sidebar:enter_to_save_esc_to_cancel_up_to`,{count:100,v0:100})}),s&&(0,G.jsx)(`p`,{id:`${_}-error`,className:`thread-title-error`,role:`alert`,children:V(s)})]})]}):(0,G.jsx)(Yd,{id:`${_}-hint`,className:`thread-title-hint`,content:v??z(`sidebar:click_title_to_rename_session`),children:(0,G.jsx)(`h1`,{"aria-label":e,children:(0,G.jsxs)(`button`,{ref:p,type:`button`,className:`thread-title-trigger`,"aria-label":z(`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,G.jsx)(`span`,{children:e}),(0,G.jsx)(En,{size:13,"aria-hidden":`true`})]})})})})}var UC=[`image/png`,`image/jpeg`,`image/webp`,`image/gif`],WC={text:``,images:[]};function GC(e,t){if(e.some(e=>!UC.includes(e.type)))return z(`composer:paste_a_png_jpeg_webp_or_gif_image`);if(e.some(e=>e.size===0))return z(`composer:the_image_is_empty_copy_and_paste_it`);if(e.length+t.length>4)return z(`composer:up_to_images_per_message`,{count:4,v0:4});if([...e,...t].reduce((e,t)=>e+t.size,0)>2097152)return z(`composer:images_per_message_cannot_exceed_2_mib_in`)}function KC(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{typeof r.result==`string`?t(r.result):n(Error(z(`common:could_not_read_the_image_please_paste_it`)))},r.onerror=r.onabort=()=>n(Error(z(`common:could_not_read_the_image_please_paste_it`))),r.readAsDataURL(e)})}function qC(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 Qn.runtimeSettings(e).then(e=>{t||o({key:i,value:e})},()=>{t||o({key:i,error:z(`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)}}var JC=Object.defineProperty,YC=(e,t)=>JC(e,`name`,{value:t,configurable:!0});function XC(e,[t,n]){return Math.min(n,Math.max(t,e))}YC(XC,`clamp`);var ZC=Object.defineProperty,QC=(e,t)=>ZC(e,`name`,{value:t,configurable:!0});function $C(e){let t=e+`CollectionProvider`,[n,r]=Lo(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=QC(e=>{let{scope:t,children:n}=e,r=y.useRef(null),a=y.useRef(new Map).current;return(0,G.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Ho(s),l=y.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=rr(t,a(s,n).collectionRef);return(0,G.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Ho(u),p=y.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=y.useRef(null),s=rr(t,o),c=a(u,n);return y.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,G.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 QC(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}QC($C,`createCollection`);var ew=new WeakMap,tw=class e extends Map{static{QC(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],ew.set(this,!0)}set(e,t){return ew.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=iw(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=nw(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=nw(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return nw(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 nw(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=rw(e,t);return n===-1?void 0:e[n]}QC(nw,`at`);function rw(e,t){let n=e.length,r=iw(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}QC(rw,`toSafeIndex`);function iw(e){return e!==e||e===0?0:Math.trunc(e)}QC(iw,`toSafeInteger`);function aw(e){let t=e+`CollectionProvider`,[n,r]=Lo(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[o,s]=n(t);o.displayName=e+`CollectionStatefulContextProvider`;let c=QC(({state:e,...t})=>e?(0,G.jsx)(u,{...t,state:e}):(0,G.jsx)(l,{...t}),`CollectionProvider`);c.displayName=t;let l=QC(e=>{let t=_();return(0,G.jsx)(u,{...e,state:t})},`CollectionInit`);l.displayName=e+`CollectionInit`;let u=QC(e=>{let{scope:t,children:n,state:r}=e,a=y.useRef(null),[s,c]=y.useState(null),l=rr(a,c),[u,d]=r,f=y.useRef(new tw),p=y.useCallback(()=>{let e=f.current;return cw(e)||e.sort(lw),e},[]);return y.useEffect(()=>{if(!s)return;let e=uw(()=>{d(e=>{let t=e.toSorted(lw);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,d]),(0,G.jsx)(i,{scope:t,collectionElementRef:l,collectionElementRefObject:a,getCollection:p,setCollection:d,registryRef:f,children:(0,G.jsx)(o,{scope:t,collectionElement:s,collection:u,children:n})})},`CollectionProviderImpl`);u.displayName=e+`CollectionProviderImpl`;let d=e+`CollectionSlot`,f=Ho(d),p=y.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=rr(t,a(d,n).collectionElementRef);return(0,G.jsx)(f,{ref:i,children:r})});p.displayName=d;let m=e+`CollectionItemSlot`,h=Ho(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);ow(l.current,i)||(l.current=i);let u=l.current,d=rr(t,y.useCallback(e=>{let t=c.current;e?t.set(e,{...l.current,element:e}):o.current&&t.delete(o.current)},[c]),o);ss(()=>{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 tw(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...u,element:e}),r.sort(lw)}))}),y.useEffect(()=>()=>{let e=f.current;f.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new tw(t);return n.delete(e.element),n})},[s]),(0,G.jsx)(h,{"data-radix-collection-item":``,ref:d,children:r})});g.displayName=m;function _(){return y.useState(new tw)}QC(_,`useInitCollection`);function v(t){let{collection:n}=s(e+`CollectionConsumer`,t);return n}QC(v,`useCollection`);function b(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return QC(b,`useGetCollection`),[{Provider:c,Slot:p,ItemSlot:g},{createCollectionScope:r,useCollection:v,useGetCollection:b,useInitCollection:_}]}QC(aw,`createCollection`);function ow(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}QC(ow,`shallowEqual`);function sw(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}QC(sw,`isElementPreceding`);function cw(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}QC(cw,`isInDocumentOrder`);function lw(e,t){return!e[1].element||!t[1].element?0:sw(e[1].element,t[1].element)?-1:1}QC(lw,`sortByDocumentPosition`);function uw(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}QC(uw,`getChildListObserver`);var dw=Object.defineProperty,fw=(e,t)=>dw(e,`name`,{value:t,configurable:!0}),pw={LTR:`ltr`,RTL:`rtl`},mw=y.createContext(void 0);function hw(e){let t=y.useContext(mw);return e||t||pw.LTR}fw(hw,`useDirection`);var gw=Object.defineProperty,_w=(e,t)=>gw(e,`name`,{value:t,configurable:!0}),vw=0,yw=null;function bw(e){return xw(),e.children}_w(bw,`FocusGuards`);function xw(){y.useEffect(()=>{yw||={start:Sw(),end:Sw()};let{start:e,end:t}=yw;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),vw++,()=>{vw===1&&(yw?.start.remove(),yw?.end.remove(),yw=null),vw=Math.max(0,vw-1)}},[])}_w(xw,`useFocusGuards`);function Sw(){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}_w(Sw,`createFocusGuard`);var Cw=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ww=new WeakMap,Tw=new WeakMap,Ew={},Dw=0,Ow=function(e){return e&&(e.host||Ow(e.parentNode))},kw=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ow(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})},Aw=function(e,t,n,r){var i=kw(t,Array.isArray(e)?e:[e]);Ew[n]||(Ew[n]=new WeakMap);var a=Ew[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=(ww.get(e)||0)+1,l=(a.get(e)||0)+1;ww.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Tw.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(),Dw++,function(){o.forEach(function(e){var t=ww.get(e)-1,i=a.get(e)-1;ww.set(e,t),a.set(e,i),t||(Tw.has(e)||e.removeAttribute(r),Tw.delete(e)),i||e.removeAttribute(n)}),Dw--,Dw||(ww=new WeakMap,ww=new WeakMap,Tw=new WeakMap,Ew={})}},jw=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Cw(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Aw(r,i,n,`aria-hidden`)):function(){return null}},Mw=function(){return Mw=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},Mw.apply(this,arguments)};function Nw(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 Pw(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 Fw=`right-scroll-bar-position`,Iw=`width-before-scroll-bar`,Lw=`with-scroll-bars-hidden`,Rw=`--removed-body-scroll-bar-size`;function zw(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Bw(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 Vw=typeof window<`u`?y.useLayoutEffect:y.useEffect,Hw=new WeakMap;function Uw(e,t){var n=Bw(t||null,function(t){return e.forEach(function(e){return zw(e,t)})});return Vw(function(){var t=Hw.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||zw(e,null)}),i.forEach(function(e){r.has(e)||zw(e,a)})}Hw.set(n,e)},[e]),n}function Ww(e){return e}function Gw(e,t){t===void 0&&(t=Ww);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 Kw(e){e===void 0&&(e={});var t=Gw(null);return t.options=Mw({async:!0,ssr:!1},e),t}var qw=function(e){var t=e.sideCar,n=Nw(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,Mw({},n))};qw.isSideCarExport=!0;function Jw(e,t){return e.useMedium(t),qw}var Yw=Kw(),Xw=function(){},Zw=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:Xw,onWheelCapture:Xw,onTouchMoveCapture:Xw}),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=Nw(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Uw([n,t]),w=Mw(Mw({},x),i);return y.createElement(y.Fragment,null,u&&y.createElement(S,{sideCar:Yw,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),Mw(Mw({},w),{ref:C})):y.createElement(v,Mw({},w,{className:c,ref:C}),s))});Zw.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Zw.classNames={fullWidth:Iw,zeroRight:Fw};var Qw=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function $w(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Qw();return t&&e.setAttribute(`nonce`,t),e}function eT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tT(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var nT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$w())&&(eT(t,n),tT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rT=function(){var e=nT();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},iT=function(){var e=rT();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},aT={left:0,top:0,right:0,gap:0},oT=function(e){return parseInt(e||``,10)||0},sT=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[oT(n),oT(r),oT(i)]},cT=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return aT;var t=sT(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])}},lT=iT(),uT=`data-scroll-locked`,dT=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
50
- .${Lw} {
51
- overflow: hidden ${r};
52
- padding-right: ${s}px ${r};
53
- }
54
- body[${uT}] {
55
- overflow: hidden ${r};
56
- overscroll-behavior: contain;
57
- ${[t&&`position: relative ${r};`,n===`margin`&&`
58
- padding-left: ${i}px;
59
- padding-top: ${a}px;
60
- padding-right: ${o}px;
61
- margin-left:0;
62
- margin-top:0;
63
- margin-right: ${s}px ${r};
64
- `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
65
- }
66
-
67
- .${Fw} {
68
- right: ${s}px ${r};
69
- }
70
-
71
- .${Iw} {
72
- margin-right: ${s}px ${r};
73
- }
74
-
75
- .${Fw} .${Fw} {
76
- right: 0 ${r};
77
- }
78
-
79
- .${Iw} .${Iw} {
80
- margin-right: 0 ${r};
81
- }
82
-
83
- body[${uT}] {
84
- ${Rw}: ${s}px;
85
- }
86
- `},fT=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},pT=function(){y.useEffect(function(){return document.body.setAttribute(uT,(fT()+1).toString()),function(){var e=fT()-1;e<=0?document.body.removeAttribute(uT):document.body.setAttribute(uT,e.toString())}},[])},mT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;pT();var a=y.useMemo(function(){return cT(i)},[i]);return y.createElement(lT,{styles:dT(a,!t,i,n?``:`!important`)})},hT=!1;if(typeof window<`u`)try{var gT=Object.defineProperty({},"passive",{get:function(){return hT=!0,!0}});window.addEventListener(`test`,gT,gT),window.removeEventListener(`test`,gT,gT)}catch{hT=!1}var _T=hT?{passive:!1}:!1,vT=function(e){return e.tagName===`TEXTAREA`},yT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!vT(e)&&n[t]===`visible`)},bT=function(e){return yT(e,`overflowY`)},xT=function(e){return yT(e,`overflowX`)},ST=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),TT(e,r)){var i=ET(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},CT=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},wT=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},TT=function(e,t){return e===`v`?bT(t):xT(t)},ET=function(e,t){return e===`v`?CT(t):wT(t)},DT=function(e,t){return e===`h`&&t===`rtl`?-1:1},OT=function(e,t,n,r,i){var a=DT(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=ET(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&TT(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},kT=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},AT=function(e){return[e.deltaX,e.deltaY]},jT=function(e){return e&&`current`in e?e.current:e},MT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},NT=function(e){return`
87
- .block-interactivity-${e} {pointer-events: none;}
88
- .allow-interactivity-${e} {pointer-events: all;}
89
- `},PT=0,FT=[];function IT(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),i=y.useState(PT++)[0],a=y.useState(iT)[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=Pw([e.lockRef.current],(e.shards||[]).map(jT),!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=kT(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=ST(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=ST(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 OT(h,t,e,h===`h`?s:c,!0)},[]),c=y.useCallback(function(e){var n=e;if(FT.length&&FT[FT.length-1]===a){var r=`deltaY`in n?AT(n):kT(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&MT(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(jT).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:LT(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=kT(e),r.current=void 0},[]),d=y.useCallback(function(t){l(t.type,AT(t),t.target,s(t,e.lockRef.current))},[]),f=y.useCallback(function(t){l(t.type,kT(t),t.target,s(t,e.lockRef.current))},[]);y.useEffect(function(){return FT.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,_T),document.addEventListener(`touchmove`,c,_T),document.addEventListener(`touchstart`,u,_T),function(){FT=FT.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,_T),document.removeEventListener(`touchmove`,c,_T),document.removeEventListener(`touchstart`,u,_T)}},[]);var p=e.removeScrollBar,m=e.inert;return y.createElement(y.Fragment,null,m?y.createElement(a,{styles:NT(i)}):null,p?y.createElement(mT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function LT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var RT=Jw(Yw,IT),zT=y.forwardRef(function(e,t){return y.createElement(Zw,Mw({},e,{ref:t,sideCar:RT}))});zT.classNames=Zw.classNames;var BT=Object.defineProperty,VT=(e,t)=>BT(e,`name`,{value:t,configurable:!0}),HT={ItemAligned:`item-aligned`,Popper:`popper`},UT={LTR:`ltr`,RTL:`rtl`},WT=[` `,`Enter`,`ArrowUp`,`ArrowDown`],GT=[` `,`Enter`],KT=`Select`,[qT,JT,YT]=$C(KT),[XT,ZT]=Lo(KT,[YT,bu]),QT=bu(),[$T,eE]=XT(KT),[tE,nE]=XT(KT);function rE(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=QT(t),[_,v]=y.useState(null),[b,x]=y.useState(null),[S,C]=y.useState(!1),w=hw(l),[T,E]=td({prop:r,defaultProp:i??!1,onChange:a,caller:KT}),[D,O]=td({prop:o,defaultProp:s,onChange:c,caller:KT}),k=y.useRef(null),A=y.useRef(!1),[j,M]=y.useState(null),N=VT(e=>{M({value:e,hasConsumerStoppedPropagation:A.current}),O(e)},`handleUserSelect`),ee=y.useRef(D);y.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=VT(()=>O(ee.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,O]);let te=!_||!!m||!!_.closest(`form`),[P,F]=y.useState(new Set),ne=Zs(),re=Array.from(P).map(e=>e.props.value).join(`;`),ie=y.useCallback(e=>{F(t=>new Set(t).add(e))},[]),ae=y.useCallback(e=>{F(t=>{let n=new Set(t);return n.delete(e),n})},[]),oe={required:p,trigger:_,onTriggerChange:v,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:ne,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:P,nativeSelectKey:re,isFormControl:te};return(0,G.jsx)(Cu,{...g,children:(0,G.jsx)($T,{scope:t,...oe,children:(0,G.jsx)(qT.Provider,{scope:t,children:(0,G.jsx)(tE,{scope:t,onNativeOptionAdd:ie,onNativeOptionRemove:ae,children:WE(h)?h(oe):n})})})})}VT(rE,`SelectProvider`);var iE=VT(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,G.jsx)(rE,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,G.jsxs)(G.Fragment,{children:[n,e?(0,G.jsx)(UE,{__scopeSelect:t}):null]})})},`Select`),aE=`SelectTrigger`,oE=y.forwardRef(VT(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=QT(n),o=eE(aE,n),s=o.disabled||r,c=rr(t,o.onTriggerChange),l=JT(n),u=y.useRef(`touch`),[d,f,p]=KE(e=>{let t=l().filter(e=>!e.disabled),n=qE(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onUserSelect(n.value)}),m=VT(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,G.jsx)(Tu,{asChild:!0,...a,children:(0,G.jsx)(as.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":GE(o.value)?``:void 0,...i,ref:c,onClick:Ao(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:Ao(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:Ao(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===` `)&&WT.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),sE=`SelectValue`,cE=y.forwardRef(VT(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=eE(sE,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=rr(t,c.onValueNodeChange);ss(()=>{l(u)},[l,u]);let f=GE(c.value);return(0,G.jsx)(as.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,G.jsx)(y.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),lE=y.forwardRef(VT(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,G.jsx)(as.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[uE,dE]=XT(`SelectPortal`,{forceMount:void 0}),fE=VT(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,G.jsx)(uE,{scope:e.__scopeSelect,forceMount:n,children:(0,G.jsx)(Lu,{asChild:!0,...r})})},`SelectPortal`),pE=`SelectContent`,mE=y.forwardRef(VT(function(e,t){let n=dE(pE,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=eE(pE,e.__scopeSelect),[o,s]=y.useState();return ss(()=>{s(new DocumentFragment)},[]),(0,G.jsx)(Vu,{present:r||a.open,children:({present:e})=>e?(0,G.jsx)(bE,{...i,ref:t}):(0,G.jsx)(hE,{...i,fragment:o})})},`SelectContent`)),hE=y.forwardRef(VT(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?zo.createPortal((0,G.jsx)(_E,{scope:n,children:(0,G.jsx)(qT.Slot,{scope:n,children:(0,G.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),gE=10,[_E,vE]=XT(pE),yE=Ho(`SelectContent.RemoveScroll`),bE=y.forwardRef(VT(function(e,t){let{__scopeSelect:n}=e,{position:r=HT.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=eE(pE,n),[b,x]=y.useState(null),[S,C]=y.useState(null),w=rr(t,x),[T,E]=y.useState(null),[D,O]=y.useState(null),k=JT(n),[A,j]=y.useState(!1),M=y.useRef(!1),N=y.useRef(!1),ee=y.useRef(!1);y.useEffect(()=>{if(b)return jw(b)},[b]),xw();let te=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]),P=y.useCallback(()=>te([T,b]),[te,T,b]);y.useEffect(()=>{A&&P()},[A,P]);let{onOpenChange:F,triggerPointerDownPosRef:ne}=v;y.useEffect(()=>{if(b){let e={x:0,y:0},t=VT(t=>{e={x:Math.abs(Math.round(t.pageX)-(ne.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(ne.current?.y??0))}},`handlePointerMove`),n=VT(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(b)||F(!1),document.removeEventListener(`pointermove`,t),ne.current=null},`handlePointerUp`);return ne.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,F,ne]),y.useEffect(()=>{let e=VT(()=>F(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[F]);let[re,ie]=KE(e=>{let t=k().filter(e=>!e.disabled),n=qE(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ae=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]),oe=y.useCallback(()=>b?.focus(),[b]),se=y.useCallback((e,t,n)=>{if(!e)return;let r=!ee.current;r&&(ee.current=!0);let i=!M.current&&!n;(v.value!==void 0&&v.value===t||i||r)&&O(e)},[v.value]),ce=r===HT.Popper?SE:xE,I=ce===SE?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,G.jsx)(_E,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:ae,selectedItem:T,onItemLeave:oe,itemTextRefCallback:se,focusSelectedItem:P,selectedItemText:D,position:r,isPositioned:A,searchRef:re,children:(0,G.jsx)(zT,{as:yE,allowPinchZoom:!0,children:(0,G.jsx)(js,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Ao(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,G.jsx)(ys,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,G.jsx)(ce,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...I,onPlaced:()=>j(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:Ao(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ie(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(()=>te(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),xE=y.forwardRef(VT(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=eE(pE,n),o=vE(pE,n),[s,c]=y.useState(null),[l,u]=y.useState(null),d=rr(t,u),f=JT(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!==UT.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-gE,d=XC(a,[gE,Math.max(gE,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-gE,d=XC(a,[gE,Math.max(gE,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-gE*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-gE,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=`${gE}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]);ss(()=>b(),[b]);let[x,S]=y.useState();ss(()=>{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,G.jsx)(CE,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:(0,G.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,G.jsx)(as.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),SE=y.forwardRef(VT(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=gE,...a}=e,o=QT(n);return(0,G.jsx)(ku,{...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`)),[CE,wE]=XT(pE,{}),TE=`SelectViewport`,EE=y.forwardRef(VT(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=vE(TE,n),o=wE(TE,n),s=rr(t,a.onViewportChange),c=y.useRef(0);return(0,G.jsxs)(G.Fragment,{children:[(0,G.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,G.jsx)(qT.Slot,{scope:n,children:(0,G.jsx)(as.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:Ao(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-gE*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`)),[DE,OE]=XT(`SelectGroup`),kE=`SelectItem`,[AE,jE]=XT(kE),ME=y.forwardRef(VT(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=eE(kE,n),c=vE(kE,n),l=s.value===r,[u,d]=y.useState(a??``),[f,p]=y.useState(!1),m=rr(t,ds(e=>c.itemRefCallback?.(e,r,i))),h=Zs(),g=y.useRef(`touch`);function _(e){s.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),s.onUserSelect(r),s.onOpenChange(!1)}return VT(_,`handleSelect`),(0,G.jsx)(AE,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:y.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,G.jsx)(qT.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,G.jsx)(as.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:Ao(o.onFocus,()=>p(!0)),onBlur:Ao(o.onBlur,()=>p(!1)),onClick:Ao(o.onClick,e=>{i||g.current!==`mouse`&&_(e)}),onPointerUp:Ao(o.onPointerUp,e=>{i||g.current===`mouse`&&_(e)}),onPointerDown:Ao(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:Ao(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ao(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:Ao(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(GT.includes(e.key)&&_(e),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),NE=`SelectItemText`,PE=y.forwardRef(VT(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=eE(NE,n),s=vE(NE,n),c=jE(NE,n),l=nE(NE,n),[u,d]=y.useState(null),f=ds(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=rr(t,d,c.onItemTextChange,f),m=u?.textContent,h=y.useMemo(()=>(0,G.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=l;return ss(()=>(g(h),()=>_(h)),[g,_,h]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(as.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!GE(o.value)?zo.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),FE=`SelectItemIndicator`,IE=y.forwardRef(VT(function(e,t){let{__scopeSelect:n,...r}=e;return jE(FE,n).isSelected?(0,G.jsx)(as.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),LE=`SelectScrollUpButton`,RE=y.forwardRef(VT(function(e,t){let n=vE(LE,e.__scopeSelect),r=wE(LE,e.__scopeSelect),[i,a]=y.useState(!1),o=rr(t,r.onScrollButtonChange);return ss(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};VT(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,G.jsx)(VE,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),zE=`SelectScrollDownButton`,BE=y.forwardRef(VT(function(e,t){let n=vE(zE,e.__scopeSelect),r=wE(zE,e.__scopeSelect),[i,a]=y.useState(!1),o=rr(t,r.onScrollButtonChange);return ss(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};VT(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,G.jsx)(VE,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),VE=y.forwardRef(VT(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=vE(`SelectScrollButton`,n),o=y.useRef(null),s=JT(n),c=y.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return y.useEffect(()=>()=>c(),[c]),ss(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,G.jsx)(as.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Ao(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:Ao(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:Ao(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),HE=`SelectBubbleInput`,UE=y.forwardRef(VT(function({__scopeSelect:e,...t},n){let r=eE(HE,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=rr(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,G.jsxs)(as.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:{...cd,...t.style},ref:h,defaultValue:g,children:[GE(i)&&!x?(0,G.jsx)(`option`,{value:``}):null,Array.from(f)]},p)},`SelectBubbleInput`));function WE(e){return typeof e==`function`}VT(WE,`isFunction`);function GE(e){return e===``||e===void 0}VT(GE,`shouldShowPlaceholder`);function KE(e){let t=ds(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))}VT(a,`updateSearch`),a(i)},[t]),a=y.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}VT(KE,`useTypeaheadSearch`);function qE(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=JE(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}VT(qE,`findNextItem`);function JE(e,t){return e.map((n,r)=>e[(t+r)%e.length])}VT(JE,`wrapArray`);var YE=iE,XE=cE;function ZE({className:e,children:t,...n}){return(0,G.jsxs)(oE,{"data-slot":`select-trigger`,className:Zi(`select-trigger`,e),...n,children:[t,(0,G.jsx)(lE,{asChild:!0,children:(0,G.jsx)(tn,{className:`select-chevron`,size:14})})]})}function QE({className:e,children:t,position:n=`popper`,align:r=`end`,sideOffset:i=6,collisionPadding:a=8,...o}){return(0,G.jsx)(fE,{children:(0,G.jsxs)(mE,{"data-slot":`select-content`,className:Zi(`select-content`,e),position:n,align:r,sideOffset:i,collisionPadding:a,...o,children:[(0,G.jsx)(eD,{}),(0,G.jsx)(EE,{className:`select-viewport`,children:t}),(0,G.jsx)(tD,{})]})})}function $E({className:e,children:t,description:n,...r}){let i=(0,y.useId)();return(0,G.jsxs)(ME,{"data-slot":`select-item`,className:Zi(`select-item`,e),"aria-describedby":n?i:void 0,...r,children:[(0,G.jsx)(PE,{children:t}),n&&(0,G.jsx)(`span`,{className:`select-item-description`,id:i,children:n}),(0,G.jsx)(`span`,{className:`select-item-indicator`,children:(0,G.jsx)(IE,{children:(0,G.jsx)($t,{size:14})})})]})}function eD({className:e,...t}){return(0,G.jsx)(RE,{className:Zi(`select-scroll-button`,e),...t,children:(0,G.jsx)(rn,{size:14})})}function tD({className:e,...t}){return(0,G.jsx)(BE,{className:Zi(`select-scroll-button`,e),...t,children:(0,G.jsx)(tn,{size:14})})}function nD({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??pa(t)??``,l=e.permissionMode?da[e.permissionMode].label:ma(t,n);return(0,G.jsxs)(YE,{value:c,disabled:r,open:o,onOpenChange:s,onValueChange:n=>{let r=n;r in da&&!fa(r,t?.permissionCapabilities,e.model??t?.model)&&a(ha(e,t,r))},children:[(0,G.jsx)(Yd,{content:z(`settings:permission_mode`,{v0:l,v1:e.permissionMode?z(`settings:pending`):``}),suppressed:o,children:(0,G.jsxs)(ZE,{className:`settings-policy`,"aria-label":z(`settings:permission_mode_2`),"data-value":c,children:[(0,G.jsx)(q,{name:`shield`,size:16}),(0,G.jsx)(`span`,{className:`permission-mode-label`,children:(0,G.jsx)(XE,{placeholder:n,children:l})}),e.permissionMode&&(0,G.jsx)(`span`,{className:`permission-pending-dot`,"aria-label":z(`settings:pending_2`)})]})}),(0,G.jsxs)(QE,{className:`permission-mode-menu`,side:`top`,align:`start`,"aria-label":z(`settings:permission_mode_2`),children:[c===`custom`&&(0,G.jsx)($E,{value:`custom`,disabled:!0,children:z(`settings:keep_current_settings`,{v0:l})}),Object.keys(da).map(n=>{let r=da[n],i=fa(n,t?.permissionCapabilities,e.model??t?.model);return(0,G.jsx)($E,{value:n,textValue:r.label,disabled:!!i,description:(0,G.jsxs)(`span`,{className:`permission-description`,children:[(0,G.jsx)(`span`,{children:r.description}),i&&(0,G.jsx)(`span`,{className:`permission-unavailable`,children:i})]}),children:(0,G.jsx)(`strong`,{children:r.label})},n)})]})]})}var rD={get"read-only"(){return z(`common:read_only`)},get"workspace-write"(){return z(`settings:write_within_project`)},get"danger-full-access"(){return z(`settings:full_access`)},get"external-sandbox"(){return z(`settings:external_sandbox`)}},iD={get untrusted(){return z(`settings:approval_for_untrusted_operations`)},get"on-request"(){return z(`settings:approval_requested_by_codex`)},get never(){return z(`settings:never_request_approval`)},get granular(){return z(`settings:custom_approval_rules`)}};function aD({current:e,source:t,settings:n,thread:r,unknown:i}){let a=n.permissionMode,o=a&&fa(a,e?.permissionCapabilities,n.model??e?.model);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`settings-heading`,children:[(0,G.jsx)(`strong`,{children:z(`common:permission_details`)}),(0,G.jsx)(`span`,{children:t})]}),(0,G.jsx)(`p`,{className:`settings-note`,children:z(`settings:current_mode`,{v0:ma(e,i),v1:a&&z(`settings:pending_3`,{v0:da[a].label})})}),(0,G.jsxs)(`dl`,{className:`permission-values`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:z(`settings:permission_scope`)}),(0,G.jsx)(`dd`,{children:rD[e?.sandbox??``]??i})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:z(`settings:approval_policy`)}),(0,G.jsx)(`dd`,{children:iD[e?.approvalPolicy??``]??i})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:z(`settings:permission_profile`)}),(0,G.jsxs)(`dd`,{children:[e?.permissionProfile?.id??z(`common:not_reported`),e?.permissionProfile?.extends&&z(`settings:inherited`,{v0:e.permissionProfile.extends})]})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:z(`settings:writable_directories`)}),(0,G.jsx)(`dd`,{children:e?.sandbox===`danger-full-access`?z(`settings:no_codex_sandbox_restrictions`):e?.sandbox===`read-only`?z(`settings:writing_requires_additional_approval`):e?.writableRoots?Dt([z(`settings:project_directory`),...e.writableRoots]):z(`common:not_reported`)})]}),e?.sandbox===`workspace-write`&&(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:z(`settings:temporary_directory`)}),(0,G.jsx)(`dd`,{children:z(`settings:temporaryDirectories`,{tmpdir:e.excludeTmpdirEnvVar==null?z(`common:not_reported`):e.excludeTmpdirEnvVar?z(`settings:excluded`):z(`settings:allowed`),slashTmp:e.excludeSlashTmp==null?z(`common:not_reported`):e.excludeSlashTmp?z(`settings:excluded`):z(`settings:allowed`)})})]})]}),(0,G.jsxs)(`p`,{className:`settings-observed`,children:[z(`settings:current_network_permission`,{v0:e?.networkAccess==null?z(`common:not_reported`):e.networkAccess?z(`settings:allowed`):z(`settings:restricted`)}),(0,G.jsx)(`span`,{children:z(`settings:approval_reviewer`,{v0:e?.approvalReviewer??z(`common:not_reported`)})})]}),(0,G.jsx)(`p`,{className:`settings-note`,children:z(`settings:changes_apply_only_to_this_via_subject_to`,{v0:z(r?`settings:session_s_subsequent_operations`:`settings:project_s_new_sessions`),v1:z(r?`settings:starting_the_next_task`:`settings:creating_a_new_session`)})}),(!e?.permissionMode||e.permissionMode===`custom`)&&(0,G.jsx)(`p`,{className:`settings-note`,children:z(`settings:keep_actual_settings_permissions_are_unchanged_until_another`)}),o&&(0,G.jsx)(`p`,{className:`settings-error`,role:`status`,children:z(`settings:pending_selection_is_currently_unavailable`,{v0:o})})]})}var oD=[`none`,`minimal`,`low`,`medium`,`high`,`xhigh`,`max`,`ultra`];function sD({effort:e}){let t=oD.indexOf(e),n=t<0?void 0:t/(oD.length-1),r=Math.PI*(1+(n??0));return(0,G.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,G.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,G.jsx)(`text`,{x:`12`,y:`17`,textAnchor:`middle`,fontSize:`10`,fill:`currentColor`,children:`?`}):(0,G.jsxs)(G.Fragment,{children:[(0,G.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,G.jsx)(`path`,{d:`M12 15L${12+Math.cos(r)*6} ${15+Math.sin(r)*6}`,stroke:`currentColor`,strokeWidth:`1.7`,strokeLinecap:`round`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`15`,r:`2`,fill:`currentColor`})]})]})}function cD({settings:e,projectName:t,children:n,models:r,thread:i,projectId:a,runtimeKey:o,disabled:s,threadLoading:c,onChange:l,onSaveModelDefaults:u,savingModelDefaults:d}){let[f,p]=(0,y.useState)(!1),[m,h]=(0,y.useState)(!1),[g,_]=(0,y.useState)(!1),v=(0,y.useId)(),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=d||T?.state===`saving`;(0,y.useEffect)(()=>{h(!1),_(!1)},[s,i?.id,a]),(0,y.useEffect)(()=>p(!1),[i?.id,a]);let D=qC(i?.managed||c?void 0:a,o),O=i?i.runtimeSettings:D.value,k=O?.permissionCapabilities||i?.managed?O:{...O,model:O?.model??null,reasoningEffort:O?.reasoningEffort??null,permissionCapabilities:D.value?.permissionCapabilities},A=c||D.loading&&!i?z(`common:loading_2`):z(`common:not_reported`),j=e.model??O?.model??``,M=e.reasoningEffort??O?.reasoningEffort??``,N=M===`max`?`Max`:M===`ultra`?`Ultra`:null,ee=e.serviceTier===void 0?O?.serviceTier:e.serviceTier,te=ee===`fast`,P=r.find(e=>e.id===j),F=P?.serviceTiers?.includes(`fast`),ne=ga(e,O),re=Object.keys(ne).length>0,ie=i?i.managed?z(`settings:current_session_settings`):z(`settings:saved_session_settings`):z(`settings:new_session_defaults`);async function ae(e){w({scope:S,settings:e,state:`saving`});try{let t=await u(e);w({scope:S,settings:e,state:t?.status===`ok`?`saved`:t?.status===`okOverridden`?`overridden`:`error`})}catch{w({scope:S,settings:e,state:`error`})}}return(0,G.jsxs)(`div`,{className:`settings-panel`,role:`group`,"aria-label":z(`settings:runtime_settings`),children:[re&&(0,G.jsxs)(`div`,{className:`settings-pending`,role:`status`,children:[(0,G.jsx)(`span`,{children:z(`settings:current`,{v0:i?i.managed?z(`settings:applies_to_the_next_task`):z(`settings:applies_when_sending_after_resume_or_forking`):z(`settings:applies_when_creating_a_session`),v1:O?.model??z(`common:not_reported`),v2:O?.reasoningEffort??z(`common:not_reported`),v3:ne.serviceTier!==void 0&&z(`settings:pending_speed_current`,{v0:ya(ne.serviceTier),v1:ya(O?.serviceTier,A)}),v4:ne.permissionMode&&z(`settings:pending_permissions_current`,{v0:da[ne.permissionMode].label,v1:ma(O)})})}),(0,G.jsx)(`button`,{type:`button`,disabled:s||E,onClick:()=>{l({}),T?.state===`error`&&w(void 0)},children:i&&(ne.model!==void 0||ne.reasoningEffort!==void 0)?z(`settings:undo_session_changes`):z(`settings:undo_changes`)})]}),T&&(0,G.jsxs)(`p`,{className:`settings-defaults`,"data-state":T.state,role:`status`,children:[T.state===`saving`?z(`settings:saving_default_model_and_reasoning_effort`):T.state===`saved`?z(`settings:saved_as_codex_defaults_for_new_sessions`):T.state===`overridden`?z(`settings:defaults_saved_but_overridden_by_higher_priority_configuration`):z(`settings:could_not_confirm_defaults_were_saved_pending_selections`),T.state===`error`&&(0,G.jsx)(`button`,{type:`button`,disabled:s||E,onClick:()=>void ae(T.settings),children:z(`settings:save_defaults_again`)})]}),!i&&D.error&&(0,G.jsxs)(`p`,{className:`settings-error`,role:`status`,children:[V(D.error),` `,(0,G.jsx)(`button`,{type:`button`,onClick:D.retry,children:z(`settings:retry`)})]}),f&&(0,G.jsx)(`div`,{className:`settings-fields`,id:v,children:(0,G.jsx)(aD,{current:k,source:ie,settings:ne,thread:!!i,unknown:A})}),(0,G.jsxs)(`div`,{className:`composer-actions`,children:[(0,G.jsxs)(`div`,{className:`composer-context`,children:[(0,G.jsx)(Yd,{asChild:!0,content:t??z(`common:unassigned`),children:(0,G.jsxs)(`span`,{className:`composer-target`,children:[(0,G.jsx)(q,{name:`folder`,size:14}),(0,G.jsx)(`span`,{children:t??z(`common:unassigned`)})]})}),(0,G.jsx)(nD,{settings:ne,current:k,unknown:A,disabled:s||!!c,scope:`${a}:${i?.id??``}:${o}`,onChange:l}),(0,G.jsx)(Yd,{asChild:!0,content:z(`common:permission_details`),children:(0,G.jsx)(`button`,{className:`settings-details-toggle`,type:`button`,"aria-label":z(`common:permission_details`),"aria-expanded":f,"aria-controls":v,onClick:()=>p(!f),children:(0,G.jsx)(q,{name:`settings`,size:14})})})]}),(0,G.jsxs)(`div`,{className:`composer-send-controls`,children:[(0,G.jsxs)(YE,{value:j,disabled:s||!r.length,open:m,onOpenChange:e=>{(!E||!e)&&h(e)},onValueChange:t=>{if(E)return;let n=r.find(e=>e.id===t);n&&(l(va(e,O,n)),ae(_a(e,O,n)))},children:[(0,G.jsx)(Yd,{content:z(`settings:model`,{v0:j||A}),suppressed:m,children:(0,G.jsx)(ZE,{className:`settings-choice settings-model`,"aria-label":z(`settings:model_2`),"aria-disabled":E||void 0,"data-value":j,children:(0,G.jsx)(`span`,{className:`settings-model-value`,children:(0,G.jsx)(XE,{placeholder:A,children:j||A})})})}),(0,G.jsxs)(QE,{side:`top`,"aria-label":z(`settings:model_2`),children:[j&&!P&&(0,G.jsx)($E,{value:j,disabled:!0,children:j}),r.map(e=>(0,G.jsx)($E,{value:e.id,children:e.id},e.id))]})]}),(0,G.jsxs)(YE,{value:M,disabled:s||!P?.reasoningEfforts.length,open:g,onOpenChange:e=>{(!E||!e)&&_(e)},onValueChange:t=>{E||(l(ga({...e,reasoningEffort:t},O)),ae({model:j,reasoningEffort:t}))},children:[(0,G.jsx)(Yd,{id:b,suppressed:g,content:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{children:z(`settings:reasoning_effort`,{v0:M||A})}),ne.reasoningEffort!==void 0&&(0,G.jsx)(`span`,{children:z(`settings:pending_current`,{v0:O?.reasoningEffort??A})})]}),children:(0,G.jsxs)(ZE,{className:`settings-choice settings-effort reasoning-tier`,"aria-label":z(`settings:reasoning_effort_2`),"aria-disabled":E||void 0,"aria-describedby":b,"data-value":M,"data-effort":M,children:[(0,G.jsxs)(`span`,{className:`reasoning-effort-display`,"aria-hidden":`true`,children:[(0,G.jsx)(sD,{effort:M}),N&&(0,G.jsx)(`span`,{className:`reasoning-tier-label`,children:N})]},M),(0,G.jsx)(`span`,{className:`sr-only`,children:(0,G.jsx)(XE,{placeholder:A,children:M||A})})]})}),(0,G.jsxs)(QE,{side:`top`,"aria-label":z(`settings:reasoning_effort_2`),children:[M&&!P?.reasoningEfforts.includes(M)&&(0,G.jsx)($E,{value:M,disabled:!0,className:`reasoning-tier`,"data-effort":M,children:M}),P?.reasoningEfforts.map(e=>(0,G.jsx)($E,{value:e,className:`reasoning-tier`,"data-effort":e,children:e},e))]})]}),(0,G.jsx)(Yd,{id:x,content:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{children:ya(ee,A)}),(0,G.jsx)(`span`,{children:z(te?`settings:turn_fast_off`:F?`settings:turn_fast_on_faster_replies_increased_usage`:`settings:fast_is_unavailable_for_this_model`)}),ne.serviceTier!==void 0&&(0,G.jsx)(`span`,{children:z(`settings:pending_current`,{v0:ya(O?.serviceTier,A)})})]}),children:(0,G.jsx)(`button`,{type:`button`,className:`settings-choice settings-speed`,"aria-label":z(`settings:fast_mode`),"aria-describedby":x,"aria-pressed":ee===void 0?`mixed`:te,disabled:s||!!c||!te&&!F,"data-fast":te,"data-pending":ne.serviceTier!==void 0,onClick:()=>l(ga({...e,serviceTier:te?null:`fast`},O)),children:(0,G.jsx)(Bn,{size:18,strokeWidth:1.7,fill:te?`currentColor`:`none`,"aria-hidden":`true`})})}),n]})]})]})}function lD({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,G.jsxs)(`div`,{className:`slash-menu`,children:[(0,G.jsxs)(`div`,{className:`slash-menu-heading`,children:[z(`commands:session_commands`),(0,G.jsx)(`span`,{children:z(`commands:applies_to_the_current_project_and_session`)})]}),(0,G.jsx)(`div`,{id:t,role:`listbox`,"aria-label":z(`commands:slash_commands`),className:`slash-options`,children:n.map((e,n)=>(0,G.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,G.jsxs)(`span`,{className:`slash-option-title`,children:[(0,G.jsxs)(`strong`,{children:[`/`,e.name]}),(0,G.jsx)(`span`,{children:e.usage})]}),(0,G.jsx)(`span`,{children:e.description}),e.unavailableReason&&(0,G.jsx)(`span`,{className:`slash-unavailable`,children:e.unavailableReason})]},e.name))}),n.length===0&&(0,G.jsx)(`p`,{className:`slash-empty`,role:`status`,children:z(`commands:no_matching_commands_type_help_to_view_supported`)}),(0,G.jsx)(`div`,{className:`slash-menu-footer`,children:z(e?`composer:tap_to_run_command_enter_for_new_line`:`commands:to_select_enter_to_run_esc_to_close`)})]})}function uD(e){if(ba(e))return e.trim()?[...e.trim()].length>100?z(`commands:renameLong`,{max:100}):z(`commands:renameControls`):z(`commands:renameEmpty`)}function dD(e){let t=e.trimStart();if(!t.startsWith(`/`)||t.startsWith(`//`))return null;let n=/^\/([^\s]*)(?:\s+([\s\S]*))?$/.exec(t);return{name:n[1].toLowerCase(),arguments:(n[2]??``).trim()}}function fD(e,t){let n=dD(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 pD(e,t){let n=dD(e);if(!n)return;let r=t.find(e=>e.name===n.name);if(!r)return n.name?z(`commands:unknown_command_use_help_for_available_commands_or`,{v0:n.name}):z(`commands:select_a_command_or_type_help_for_available`);if(r.name===`rename`){let e=uD(n.arguments);if(e)return e}else if(n.arguments)return z(`commands:does_not_accept_arguments_usage`,{v0:r.name,v1:r.usage});return r.unavailableReason}var mD=[{name:`help`,get description(){return z(`commands:view_supported_commands_and_usage`)}},{name:`new`,get description(){return z(`commands:open_a_new_session_draft_in_the_current`)}},{name:`fork`,get description(){return z(`commands:copy_saved_session_history_into_a_new_session`)}},{name:`resume`,get description(){return z(`commands:resume_the_selected_session_not_the_cli_session`)}},{name:`review`,get description(){return z(`commands:review_uncommitted_working_directory_changes`)}},{name:`rename`,get description(){return z(`commands:rename_this_session_spaces_are_allowed`)}},{name:`stop`,get description(){return z(`commands:request_interruption_of_the_current_task_web_shortcut`)}},{name:`status`,get description(){return z(`commands:open_connection_runtime_and_submission_diagnostics`)}},{name:`compact`,get description(){return z(`commands:compact_context_and_continue_in_this_session`)}},{name:`export`,get description(){return z(`commands:download_saved_session_history_as_markdown`)}}];function hD(e,t){if(e===`help`||e===`status`)return;if(t.authRequired||t.connection===`authenticationRequired`)return z(`commands:your_login_expired_log_in_again_and_retry`);if(t.connection!==`connected`)return z(`commands:you_are_offline_wait_for_the_connection_to`);if(t.system?.authenticated===!1)return z(`commands:codex_is_not_logged_in_authenticate_first`);if(!t.system?.ready)return z(`commands:codex_is_unavailable_check_diagnostics_first`);if(e===`export`)return t.thread?t.system.capabilities.includes(`thread/read`)?void 0:z(`commands:this_codex_does_not_provide_thread_read`):t.selectedId?z(`commands:session_loading_try_again_shortly`):z(`commands:select_a_session_first`);if(e!==`stop`&&Ia(t.system))return z(`commands:confirm_the_codex_version_compatibility_notice_first`);let n={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 z(`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)&&ka(t,e)),a=t.scopeId??t.project?.id;if(e!==`stop`){if(!t.project&&a!==`@unassigned`)return z(`commands:select_a_project_first`);if(t.project&&!t.project.available)return z(`commands:the_project_directory_is_unavailable_check_project_configuration`)}if(e===`new`)return t.busy.some(e=>e.startsWith(`saveModelDefaults:`))?z(`common:model_defaults_are_being_saved_wait_before_proceeding`):r(`create`,a)?z(`commands:creating_a_session_wait_for_the_receipt`):i(a)?z(`commands:session_creation_is_unconfirmed_use_status_to_check`):void 0;let o=t.thread;if(!o)return t.selectedId?z(`commands:session_loading_try_again_shortly`):z(`commands:select_a_session_first`);if(e===`compact`)return o.archived?z(`commands:unarchive_before_compacting_context`):o.managed?o.turns.length?r(`compact`,o.id)?z(`commands:submitting_compaction_wait_for_the_receipt`):Zd(o.status)||o.turns.some(e=>Zd(e.status))?z(`commands:wait_for_this_task_to_finish_before_compacting`):o.status===`unknown`||o.execution&&!o.execution.ended||i(o.id)?z(`commands:an_execution_still_needs_checking_use_status_to`):void 0:z(`commands:this_session_is_empty_there_is_no_context`):z(`commands:resume_this_session_before_compacting_context`);if(e===`review`)return o.archived?z(`commands:this_session_is_archived_unarchive_it_first`):o.managed?r(`review`,o.id)?z(`commands:submitting_code_review_wait_for_the_receipt`):i(o.id)||o.status===`unknown`?z(`commands:this_session_has_an_unconfirmed_request_use_status`):Zd(o.status)||o.turns.some(e=>Zd(e.status))?z(`commands:wait_for_this_task_to_finish_before_starting`):o.execution&&!o.execution.ended?z(`commands:this_session_is_still_occupied_by_an_execution`):void 0:z(`commands:resume_this_session_before_starting_code_review`);if(e===`rename`)return o.archived?z(`commands:unarchive_and_resume_this_session_before_renaming`):o.managed?r(`rename`,o.id)?z(`commands:renaming_wait_for_the_receipt`):i(o.id,`rename`)?z(`commands:rename_is_unconfirmed_use_status_to_check_the`):r(`archive`,o.id)||i(o.id,`archive`)?z(`commands:archiving_is_unconfirmed_use_status_to_check_the`):void 0:z(`commands:resume_this_session_before_renaming_sessions_occupied_by`);if(e===`fork`)return o.turns.length?r(`fork`,o.id)?z(`commands:forking_session_wait_for_the_receipt`):i(o.id,`fork`)?z(`commands:fork_request_unconfirmed_use_status_to_check_the`):void 0:z(`commands:this_session_is_empty_send_the_first_message`);if(e===`resume`)return r(`resume`,o.id)?z(`commands:resuming_session_wait_for_the_receipt`):i(o.id)?z(`commands:this_session_has_an_unconfirmed_request_use_status`):o.managed&&(o.turns.some(e=>Zd(e.status))||Zd(o.status))?z(`commands:this_session_is_running_wait_for_it_to`):o.execution&&!o.execution.ended?z(`commands:this_session_is_still_occupied_by_an_execution`):o.managed?z(`commands:this_session_is_already_resumed`):void 0;if(!o.managed)return o.resumeError?.code===`THREAD_IN_USE`?z(`commands:another_process_is_using_this_session_its_task`):z(`commands:this_session_has_not_been_resumed_tasks_in`);if(r(`interrupt`,o.id))return z(`commands:submitting_interrupt_request_wait_for_the_receipt`);if(i(o.id,`interrupt`))return z(`commands:interrupt_request_unconfirmed_use_status_to_check_the`);if(!o.turns.some(e=>Zd(e.status)))return o.status===`unknown`||o.execution&&!o.execution.ended?z(`commands:task_state_is_unconfirmed_use_status_to_check`):z(`commands:this_session_has_no_task_to_interrupt`)}function gD(e,t){if(!t)return{error:!0,get message(){return V(z(`commands:no_confirmed_success_receipt_received_check_errors_or`))}};if(t.status===`failed`)return{error:!0,get message(){return V((t.error?Vn(t.error):void 0)??z(`commands:operation_failed_check_diagnostics`))}};if(t.status!==`acknowledged`)return{error:!0,get message(){return V(z(`commands:submission_result_unconfirmed_use_status_before_submitting_again`))}};if(e===`compact`)return{get message(){return V(z(`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 V(z(`commands:session_renamed_to`,{v0:e.name}))}}:{error:!0,get message(){return V(z(`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 V(z(`commands:request_accepted_but_no_new_session_id_received`))}}:{get message(){return V(z(`commands:forked_into_a_new_session`))},draftKey:n}}return{get message(){return V(z(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 _D(e){let t=e();return mD.map(({name:n,description:r})=>({name:n,description:r,usage:n===`rename`?z(`commands:rename_name`):z(`commands:no_arguments`,{v0:n}),unavailableReason:hD(n,t),run:async(r=``)=>{let i=e();if(n===`help`)return{get message(){return V(z(`commands:rename_requires_a_name_other_commands_take_no`,{v0:mD.map(e=>z(`commands:commandLine`,{name:e.name,arguments:e.name===`rename`?z(`commands:name`):``,description:e.description})).join(`
90
- `)}))}};if(n===`status`)return i.openStatus(),{get message(){return V(z(`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 V(z(`commands:the_project_or_session_changed_select_the_command`))}};let a=hD(n,i);if(a)return{error:!0,get message(){return V(a)}};if(n===`rename`){let e=uD(r);if(e)return{error:!0,get message(){return V(e)}}}let o=i.thread,s=`/api/threads/${encodeURIComponent(o?.id??``)}`;try{if(n===`export`){let{partial:e}=await i.exportThread(o.id);return{get message(){return V(z(e?`commands:markdown_download_started_some_content_is_unfinished_unconfirmed`:`commands:saved_history_download_started_the_file_describes_omitted`))}}}let e;if(n===`new`)return{draftKey:i.openDraft(),get message(){return V(z(`commands:new_session_draft_opened_a_session_will_be`))}};if(n===`fork`)e=await i.run(`fork`,o.id,`${s}/fork`,{settings:i.settings});else if(n===`review`)e=await i.run(`review`,o.id,`${s}/review`);else if(n===`rename`)e=await i.run(`rename`,o.id,`${s}/rename`,{name:r.trim()});else if(n===`resume`)i.onResumeAttempt(),e=await i.run(`resume`,o.id,`${s}/resume`),await i.refreshThread();else if(n===`compact`)e=await i.run(`compact`,o.id,`${s}/compact`);else{let t=o.turns.findLast(e=>Zd(e.status));e=await i.run(`interrupt`,o.id,`${s}/interrupt`,{expectedTurnId:t.id})}return gD(n,e)}catch(e){return{error:!0,get message(){return V($i(e))}}}}}))}function vD({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,G.jsx)(Yd,{asChild:!0,suppressed:i,content:z(`composer:drag_up_to_increase_height_down_to_decrease`),children:(0,G.jsx)(`button`,{type:`button`,className:`composer-resize-handle`,"data-resizing":i||void 0,role:`separator`,"aria-label":z(`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":z(`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,G.jsx)(`svg`,{width:`32`,height:`32`,viewBox:`0 0 32 32`,fill:`none`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`M21 3.5a7.5 7.5 0 0 1 7.5 7.5`})})})})}function yD(e){return e.userAgentData?.mobile===!0||/Android|iPhone|iPad|iPod/i.test(e.userAgent)||e.platform===`MacIntel`&&e.maxTouchPoints>1}function bD(e){let t=yD(navigator),[n,r]=(0,y.useState)({}),i=(0,y.useRef)(n),a=(0,y.useId)(),o=(0,y.useRef)(!1);vo(`composer`,()=>{if(o.current||Object.values(i.current).some(e=>e.images.some(e=>!e.dataUrl)))throw Error(z(`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.useId)(),f=(0,y.useId)(),[p,m]=(0,y.useState)(!1),[h,g]=(0,y.useState)({key:``,text:``,selectedIndex:0,dismissed:!1}),[_,v]=(0,y.useState)({}),[b,x]=(0,y.useState)([]),S=e.draftKey,C=(0,y.useRef)(new WeakSet);(0,y.useEffect)(()=>{for(let t of Object.values(e.sentDrafts))C.current.has(t)||(C.current.add(t),l.current.get(t.key)?.text.replace(/^(\s*)\/\//,`$1/`)===t.text&&ie(t.key))},[e.sentDrafts]),(0,y.useEffect)(()=>{o.current=!1,s.current=-1/0,g({key:``,text:``,selectedIndex:0,dismissed:!1})},[S]);let w=n[S]??WC,{text:T,images:E}=w,D=dD(T),O=fD(e.commands,T),k=h.key===S&&h.text===T?h:void 0,A=Math.min(k?.selectedIndex??0,Math.max(0,O.length-1)),j=!!(D&&p&&!k?.dismissed),M=j?O[A]:e.commands.find(e=>e.name===D?.name),N=b.includes(S),ee=z(t?D?`composer:tap_to_run_command_enter_for_new_line`:`composer:tap_to_send_enter_for_new_line`:D?`composer:enter_to_run_command_esc_to_close_menu`:`composer:enter_to_send_shift_enter_for_a_new`);function te(e){g({key:S,text:T,selectedIndex:e,dismissed:!1})}function P(){g({key:S,text:T,selectedIndex:A,dismissed:!0})}async function F(t){if(c.current.has(S)||o.current)return;let n=i.current[S]??WC,r=dD(n.text);if(!r)return;let a=t?`/${t.name}${r.arguments?` ${r.arguments}`:``}`:n.text,s=n.images.length?z(`composer:slash_commands_cannot_include_images_remove_the_images`):pD(a,e.commands);if(s){v(e=>({...e,[S]:{message:s,error:!0}}));return}let l=e.commands.find(e=>e.name===dD(a)?.name);if(l){c.current.add(S),x(e=>[...e,S]),v(e=>({...e,[S]:{message:B(`composer:running`,{v0:l.name})}})),P();try{let e=await l.run(dD(a)?.arguments);v(t=>({...t,[S]:e,[e.draftKey??S]:e})),e.error||re(S,e=>({...e,text:e.text===n.text?``:e.text}))}catch(e){v(t=>({...t,[S]:{error:!0,message:e instanceof Error?e.message:B(`composer:command_failed_please_try_again`)}}))}finally{c.current.delete(S),x(e=>e.filter(e=>e!==S))}}}let ne=E.some(e=>!e.dataUrl);function re(e,t){let n={...i.current,[e]:t(i.current[e]??WC)};i.current=n,r(n)}function ie(e){let t=l.current.get(e);t&&(l.current.delete(e),re(e,e=>({text:e.text===t.text?``:e.text,images:e.images.filter(e=>!t.images.some(t=>t.id===e.id)),error:e.error===t.error?void 0:e.error})))}function ae(e){if(e.defaultPrevented)return;let t=Array.from(e.clipboardData.files);if(!t.length)return;e.preventDefault();let n=GC(t,(i.current[S]??WC).images);if(n){re(S,e=>({...e,error:n}));return}let r=t.map(e=>({id:crypto.randomUUID(),name:e.name||z(`composer:pasted_image`),size:e.size})),a=e.clipboardData.getData(`text/plain`),o=e.currentTarget.selectionStart,s=e.currentTarget.selectionEnd;re(S,e=>({text:a?(e.text.slice(0,o)+a+e.text.slice(s)).slice(0,1e5):e.text,images:[...e.images,...r]})),t.forEach((e,t)=>{let n=r[t].id;KC(e).then(e=>re(S,t=>({...t,images:t.images.map(t=>t.id===n?{...t,dataUrl:e}:t)})),()=>re(S,e=>e.images.some(e=>e.id===n)?{...e,images:e.images.filter(e=>e.id!==n),error:z(`common:could_not_read_the_image_please_paste_it`)}:e))})}let oe=!!(e.thread?.managed&&Zd(e.thread.status)),se=e.thread&&!e.thread.managed&&!e.thread.archived,ce=se?e.thread?.resumeError:void 0,I=ce?.code===`THREAD_IN_USE`,le=!(!e.thread&&!e.projectId||e.threadLoading||se||!T.trim()&&!E.length||ne||e.disabled||e.submitting);async function ue(){if(o.current)return;if(D){await F(j?O[A]:void 0);return}if(!le||c.current.has(S))return;let t=i.current[S]??WC;if(!t.text.trim()&&!t.images.length||t.images.some(e=>!e.dataUrl))return;c.current.add(S),l.current.set(S,t);let n=t.text,r=t.images;try{await e.onSend(n.replace(/^(\s*)\/\//,`$1/`),oe,r.length?r.map(e=>e.dataUrl):void 0)&&ie(S)}finally{c.current.delete(S)}}return(0,G.jsxs)(`div`,{className:`composer-region`,"data-mobile-input":t||void 0,children:[e.submitting&&(0,G.jsxs)(`p`,{className:`composer-resume-status`,role:`status`,children:[(0,G.jsx)(q,{name:`refresh`,size:14}),e.thread?z(`composer:submitting_message`):z(`composer:creating_a_session_and_sending_the_first_message`)]}),se&&e.resuming&&(0,G.jsxs)(`p`,{className:`composer-resume-status`,role:`status`,children:[(0,G.jsx)(q,{name:`refresh`,size:14}),z(`composer:resuming_session`)]}),se&&e.resumeAttempted&&!e.resuming&&!ce&&e.canResume&&(0,G.jsx)(K,{size:`sm`,variant:`secondary`,onClick:e.onResume,children:z(`composer:retry_resume`)}),ce&&!e.resuming&&(0,G.jsxs)(`div`,{className:`session-resume-notice`,role:`status`,children:[(0,G.jsx)(`strong`,{children:z(I?`composer:this_session_is_in_use_by_another_process`:`composer:unable_to_resume_session`)}),(0,G.jsx)(`p`,{children:I?z(`composer:fork_saved_history_to_continue_or_retry_once`):V(Vn(ce))}),!I&&(0,G.jsxs)(`details`,{className:`raw-details`,children:[(0,G.jsx)(`summary`,{children:z(`common:technical_details`)}),(0,G.jsx)(`pre`,{children:ce.message})]}),I&&(0,G.jsxs)(K,{size:`sm`,variant:`secondary`,disabled:!e.canFork,onClick:e.onFork,children:[(0,G.jsx)(q,{name:`fork`,size:14}),e.forking?z(`common:confirming_fork`):z(`common:fork_into_a_new_session`)]}),(0,G.jsx)(K,{size:`sm`,disabled:!e.canResume,onClick:e.onResume,children:z(`composer:retry_resume`)})]}),(0,G.jsxs)(`div`,{className:`composer-box`,children:[(0,G.jsx)(vD,{textareaRef:u,inputId:d}),_[S]&&(0,G.jsx)(`p`,{className:`slash-feedback`,role:_[S].error?`alert`:`status`,children:V(_[S].message)}),j&&(0,G.jsx)(lD,{mobileInput:t,id:f,commands:O,selectedIndex:A,onSelect:te,onExecute:e=>{u.current?.focus(),F(e)}}),E.length>0&&(0,G.jsx)(`ul`,{className:`composer-images`,"aria-label":z(`composer:images_to_send`),children:E.map((e,t)=>(0,G.jsxs)(`li`,{children:[e.dataUrl?(0,G.jsx)(`img`,{src:e.dataUrl,alt:z(`composer:image_to_send`,{v0:t+1})}):(0,G.jsx)(`span`,{role:`status`,children:z(`common:loading_2`)}),(0,G.jsx)(Yd,{asChild:!0,content:e.name,children:(0,G.jsx)(`span`,{className:`composer-image-name`,children:e.name})}),(0,G.jsx)(K,{variant:`secondary`,size:`sm`,"aria-label":z(`composer:remove_image`,{v0:t+1}),onClick:()=>re(S,t=>({...t,error:void 0,images:t.images.filter(t=>t.id!==e.id)})),children:(0,G.jsx)(q,{name:`close`,size:13})})]},e.id))}),w.error&&(0,G.jsx)(`p`,{className:`composer-image-error`,role:`alert`,children:V(w.error)}),(0,G.jsx)(`textarea`,{id:d,ref:u,enterKeyHint:t?`enter`:void 0,"aria-describedby":a,"aria-label":z(oe?`composer:additional_instructions`:`composer:task_content`),"aria-haspopup":`listbox`,"aria-controls":j?f:void 0,"aria-autocomplete":`list`,"aria-activedescendant":j&&O[A]?`${f}-${O[A].name}`:void 0,value:T,readOnly:!!e.thread?.archived,placeholder:e.thread?.archived?z(`composer:unarchive_to_continue_the_conversation`):z(oe?`composer:add_requirements_or_adjust_direction`:`composer:describe_a_task_paste_an_image_or_type`),maxLength:1e5,onChange:e=>{re(S,t=>({...t,text:e.target.value})),g({key:S,text:e.target.value,selectedIndex:0,dismissed:!1}),v(e=>{let t={...e};return delete t[S],t})},onPaste:ae,onFocus:()=>m(!0),onCompositionStart:()=>{o.current=!0},onCompositionEnd:()=>{o.current=!1,s.current=performance.now()},onBlur:()=>{m(!1),o.current=!1,s.current=-1/0},onKeyDown:e=>{if((!e.defaultPrevented||j&&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(j&&!e.shiftKey&&!e.altKey&&!e.metaKey&&!e.ctrlKey){if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),O.length&&te((A+(e.key===`ArrowDown`?1:-1)+O.length)%O.length);return}if(e.key===`Escape`){e.preventDefault(),P();return}}e.key!==`Enter`||e.shiftKey||(e.preventDefault(),!e.repeat&&ue())}}},onKeyUp:e=>{e.key===`Enter`&&(s.current=-1/0)},rows:3}),t&&(0,G.jsx)(`p`,{className:`composer-input-hint`,children:ee}),(0,G.jsxs)(cD,{settings:e.settings,projectName:e.projectName,models:e.models,onChange:e.onSettings,onSaveModelDefaults:e.onSaveModelDefaults,savingModelDefaults:e.savingModelDefaults,thread:e.thread,projectId:e.projectId,runtimeKey:e.runtimeKey,threadLoading:e.threadLoading,disabled:e.disabled||!!e.threadLoading||oe||e.submitting||e.resuming||e.forking,children:[oe&&(0,G.jsx)(Yd,{content:z(`composer:interrupt`),children:(0,G.jsxs)(K,{"aria-label":e.interrupting?z(`composer:requesting`):z(`composer:interrupt`),variant:`secondary`,size:`sm`,onClick:e.onInterrupt,disabled:!e.canInterrupt||e.interrupting,children:[(0,G.jsx)(q,{name:`stop`,size:13}),(0,G.jsx)(`span`,{className:`composer-action-label`,children:e.interrupting?z(`composer:requesting`):z(`composer:interrupt`)})]})}),(0,G.jsx)(Yd,{id:a,className:`composer-submit`,content:ee,children:(0,G.jsxs)(K,{size:`sm`,"aria-label":D?z(N?`composer:running_command`:`common:run_command`):e.submitting?z(`common:submitting`):z(oe?`composer:additional_instructions`:`composer:send_task`),"aria-describedby":a,onPointerDown:e=>{(D||t)&&e.preventDefault()},onClick:()=>{ue()},disabled:D?N||!!M?.unavailableReason:!le,children:[(0,G.jsx)(q,{name:`send`,size:14}),(0,G.jsx)(`span`,{className:`composer-action-label`,children:D?z(N?`composer:running_2`:`common:run_command`):e.submitting?z(`common:submitting`):z(oe?`composer:additional_instructions`:`composer:send_task`)})]})})]})]}),(0,G.jsx)(`p`,{className:`composer-note`,children:z(oe?`composer:closing_this_page_does_not_stop_tasks_interruptions`:`composer:codex_runs_with_the_server_project_s_permissions`)})]})}function xD(e){switch(e.kind){case`command`:return z(`approvals:commandApproval`);case`file`:return z(`approvals:fileApproval`);case`permissions`:return z(`approvals:permissionsApproval`);case`questions`:return z(`workspace:your_answer_is_needed`);case`network`:return z(`approvals:networkApproval`,{target:e.title.slice(e.title.indexOf(`:`)+1)});case`elicitation`:return z(e.elicitation?.approval?`approvals:mcpApproval`:`approvals:mcpInteraction`,{server:e.elicitation?.serverName??``});case`unsupported`:return z(`approvals:unsupported`)}}function SD(e,t){switch(t.id){case`accept`:return z(e.kind===`permissions`?`approvals:allowTask`:`approvals:allow_once`);case`acceptForSession`:case`acceptSession`:return z(`approvals:allow_for_this_session`);case`decline`:return z(`approvals:denyDecision`);case`cancel`:return z(e.kind===`command`||e.kind===`network`||e.kind===`file`?`approvals:cancelTask`:`common:cancel`);case`acceptWithRule`:return z(`approvals:commandRule`,{rule:t.label.slice(t.label.indexOf(`:`)+1)});default:return t.id.startsWith(`networkRule:`)?z(`approvals:networkRule`,{rule:t.label.slice(t.label.indexOf(`:`)+1)}):t.label}}var CD={get read(){return z(`approvals:read`)},get write(){return z(`approvals:write`)},get deny(){return z(`approvals:deny_access`)}};function wD({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,G.jsxs)(`div`,{className:`permission-details`,children:[e.network!==void 0&&(0,G.jsxs)(`div`,{className:`permission-network`,children:[(0,G.jsx)(`strong`,{children:z(`approvals:network_access`)}),(0,G.jsx)(`span`,{children:e.network===!0?z(`approvals:network_access_allowed`):e.network===!1?z(`approvals:no_additional_network_access`):z(`approvals:no_network_access_changes_specified`)})]}),n.length>0&&(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h4`,{children:z(`approvals:files_and_directories`)}),(0,G.jsx)(`ul`,{className:`permission-paths`,children:n.map((e,t)=>(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`span`,{className:`permission-access permission-access-${e.access}`,children:CD[e.access]??e.access}),(0,G.jsx)(`code`,{children:e.path})]},`${e.access}-${e.path}-${t}`))})]}),t?.globScanMaxDepth!==void 0&&(0,G.jsx)(`p`,{children:z(`approvals:directory_matching_depth`,{v0:t.globScanMaxDepth})}),e.network===void 0&&n.length===0&&(0,G.jsx)(`p`,{children:z(`approvals:no_additional_network_or_file_access_requested`)})]})}var TD=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}}}},ED=e=>{throw new TD(`VALIDATION_ERROR`,e)};function DD(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 OD(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 DD(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&&DD(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 kD(e,t){let n=()=>ED(`“${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||!OD(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 AD(e){switch(e){case`pending`:return z(`approvals:action_required`);case`responding`:return z(`common:submitting`);case`responded`:return z(`approvals:handled`);case`expired`:return z(`approvals:request_expired`)}}function jD(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 MD(e){let t=[];return e.type===`integer`&&t.push(z(`approvals:enter_an_integer`)),e.minimum!==void 0&&t.push(z(`approvals:minimum`,{v0:e.minimum})),e.maximum!==void 0&&t.push(z(`approvals:maximum`,{v0:e.maximum})),e.minLength!==void 0&&t.push(z(`approvals:at_least_characters`,{count:e.minLength,v0:e.minLength})),e.maxLength!==void 0&&t.push(z(`approvals:at_most_characters`,{count:e.maxLength,v0:e.maxLength})),e.minItems!==void 0&&t.push(z(`approvals:select_at_least_items`,{count:e.minItems,v0:e.minItems})),e.maxItems!==void 0&&t.push(z(`approvals:select_at_most_items`,{count:e.maxItems,v0:e.maxItems})),e.format===`date-time`&&t.push(z(`approvals:include_a_time_zone_e_g_2026_10`)),t.join(` · `)}function ND(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]=z(`approvals:this_field_is_required`));continue}let a=i.type===`number`||i.type===`integer`?Number(e):e;try{kD(i,a),n[i.name]=a}catch{r[i.name]=z(`approvals:check_the_requirements_for_this_field`)}}return{content:n,errors:r}}function PD(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 FD({request:e,actionId:t,status:n,disabled:r,onResolve:i}){let a=e.fields??[],o=n===`pending`?e.approval?z(`approvals:allow_once`):e.mode===`url`?z(`approvals:i_m_done`):a.length===0?z(`common:confirm_and_continue`):a.every(e=>[`boolean`,`enum`,`multiEnum`].includes(e.type))?z(`common:confirm_selection`):z(`common:submit_answer`):AD(n),[s,c]=(0,y.useState)(()=>jD(a)),[l,u]=(0,y.useState)(!1),{content:d,errors:f}=ND(a,s),p=PD(e.url),m=(e.schemaError?z(`errors:unsupportedSchema`):void 0)||(e.mode===`url`&&!p?z(`approvals:this_request_has_no_safe_http_or_https`):void 0),h=(e,t)=>c(n=>({...n,[e]:t}));return(0,G.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,G.jsxs)(`p`,{className:`elicitation-source`,children:[z(`approvals:source`),(0,G.jsx)(`strong`,{children:e.serverName})]}),e.approval?.allowSession&&(0,G.jsx)(`p`,{className:`elicitation-scope subtle`,children:z(`approvals:session_approval_applies_only_to_this_request_s`)}),m&&(0,G.jsx)(`p`,{className:`elicitation-error`,role:`alert`,children:m}),e.mode===`url`?(0,G.jsxs)(`div`,{className:`elicitation-url`,children:[(0,G.jsx)(`span`,{children:z(`approvals:url`)}),(0,G.jsx)(`code`,{children:e.url??z(`approvals:no_url_provided`)}),p&&(0,G.jsx)(`a`,{href:p,target:`_blank`,rel:`noopener noreferrer`,referrerPolicy:`no-referrer`,children:z(`approvals:open_in_new_tab`)}),(0,G.jsx)(`p`,{children:z(`approvals:complete_the_steps_on_the_page_then_click`)})]}):!m&&(0,G.jsx)(`div`,{className:`elicitation-fields`,children:a.map((e,n)=>{let i=`elicitation-${t}-${n}`,a=MD(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,G.jsxs)(`div`,{className:`elicitation-field`,children:[(0,G.jsxs)(`div`,{className:`elicitation-field-heading`,children:[(0,G.jsxs)(`label`,{id:`${i}-label`,htmlFor:e.type===`multiEnum`?void 0:i,children:[e.title,(0,G.jsx)(`span`,{className:`field-necessity`,"aria-hidden":`true`,children:e.required?z(`approvals:required`):z(`approvals:optional`)})]}),!e.required&&c!==void 0&&(0,G.jsxs)(`button`,{type:`button`,className:`field-unset`,disabled:r,onClick:()=>h(e.name,void 0),children:[z(`approvals:leave_blank`),(0,G.jsx)(`span`,{className:`sr-only`,children:e.title})]})]}),e.description&&(0,G.jsx)(`p`,{id:`${i}-description`,className:`field-description`,children:e.description}),e.type===`boolean`||e.type===`enum`?(0,G.jsxs)(`select`,{id:i,className:`text-input`,value:c===void 0?``:e.type===`boolean`?c?`true`:`false`:`option:${String(c)}`,disabled:r,"aria-required":e.required,"aria-invalid":!!o,"aria-describedby":u,onChange:t=>h(e.name,t.target.value===``?void 0:e.type===`boolean`?t.target.value===`true`:t.target.value.slice(7)),children:[(0,G.jsx)(`option`,{value:``,children:z(`approvals:select_an_option`)}),e.type===`boolean`?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`option`,{value:`true`,children:z(`approvals:yes`)}),(0,G.jsx)(`option`,{value:`false`,children:z(`approvals:no`)})]}):e.options?.map(e=>(0,G.jsx)(`option`,{value:`option:${e.value}`,children:e.label},e.value))]}):e.type===`multiEnum`?(0,G.jsx)(`div`,{role:`group`,"aria-labelledby":`${i}-label`,"aria-describedby":u,"aria-invalid":!!o,className:`elicitation-multi-options`,children:e.options?.map(t=>(0,G.jsxs)(`label`,{className:`question-option`,children:[(0,G.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,G.jsx)(`span`,{children:t.label})]},t.value))}):(0,G.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:z(`approvals:not_provided_optional`),autoComplete:`off`,onChange:t=>h(e.name,t.target.value)}),a&&(0,G.jsx)(`p`,{id:`${i}-hint`,className:`field-hint`,children:a}),o&&(0,G.jsx)(`p`,{id:`${i}-error`,className:`elicitation-error`,role:`alert`,children:V(o)})]},e.name)})}),l&&Object.keys(f).length>0&&!m&&(0,G.jsx)(`p`,{className:`elicitation-error`,role:`alert`,children:z(`approvals:check_the_highlighted_fields_before_submitting`)}),(0,G.jsxs)(`div`,{className:`action-options`,children:[!m&&(0,G.jsx)(K,{type:`submit`,disabled:r,children:o}),!m&&e.approval?.allowSession&&(0,G.jsx)(K,{variant:`secondary`,disabled:r,onClick:()=>i({decision:`accept`,persist:`session`}),children:z(`approvals:allow_for_this_session`)}),(0,G.jsx)(K,{variant:`secondary`,disabled:r,onClick:()=>i({decision:`decline`}),children:z(`approvals:deny`)}),(0,G.jsx)(K,{variant:`ghost`,disabled:r,onClick:()=>i({decision:`cancel`}),children:z(`common:cancel`)})]})]})}function ID({action:e,disabled:t,onResolve:n}){let[r,i]=(0,y.useState)({}),[a,o]=(0,y.useState)({}),s=e.status===`pending`,c=e.questions??[],l=e=>r[e]===`__other__`?a[e]?.trim()??``:r[e]?.trim()??``,u=c.length>0&&c.every(e=>l(e.id)),d=c.length>0&&c.every(e=>e.options.length>0&&r[e.id]!==`__other__`);return(0,G.jsxs)(`section`,{className:`action-card${e.kind===`unsupported`?` action-card-unsupported`:``}`,"aria-label":xD(e),children:[(0,G.jsxs)(`div`,{className:`action-heading`,children:[(0,G.jsx)(`span`,{className:`action-icon`,children:(0,G.jsx)(q,{name:e.kind===`questions`?`chat`:`alert`,size:17})}),(0,G.jsx)(`h3`,{children:xD(e)}),(0,G.jsx)(`span`,{className:`action-state`,children:e.kind===`unsupported`&&e.status===`expired`?z(`approvals:request_could_not_be_handled`):AD(e.status)})]}),e.reason&&(0,G.jsx)(`p`,{children:e.reason}),e.cwd&&(0,G.jsxs)(`p`,{className:`mono subtle action-cwd`,children:[(0,G.jsx)(`span`,{children:z(`approvals:working_directory`)}),e.cwd]}),e.command&&(0,G.jsx)(`pre`,{className:`command`,children:(0,G.jsx)(`code`,{children:e.command})}),e.kind===`permissions`&&e.permissionRequest&&(0,G.jsx)(wD,{request:e.permissionRequest}),e.details!==void 0&&(0,G.jsxs)(`details`,{className:`raw-details`,open:e.kind===`network`||e.kind===`file`||void 0,children:[(0,G.jsx)(`summary`,{children:e.kind===`network`?z(`approvals:network_destination`):e.kind===`file`?z(`approvals:change_details`):e.kind===`permissions`||e.kind===`elicitation`?z(`common:technical_details`):z(`approvals:request_details`)}),(0,G.jsx)(`pre`,{children:JSON.stringify(e.details,null,2)})]}),e.kind===`elicitation`&&e.elicitation?(0,G.jsx)(FD,{request:e.elicitation,actionId:e.actionId,status:e.status,disabled:t||!s,onResolve:n}):e.kind===`questions`?(0,G.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),!t&&s&&u&&n({answers:Object.fromEntries(c.map(e=>[e.id,[l(e.id)]]))})},children:[c.map(n=>(0,G.jsxs)(`fieldset`,{disabled:t||!s,children:[(0,G.jsx)(`legend`,{children:n.header}),(0,G.jsx)(`p`,{children:n.question}),n.options.map((t,a)=>(0,G.jsxs)(`label`,{className:`question-option`,children:[(0,G.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,G.jsxs)(`span`,{children:[(0,G.jsx)(`strong`,{children:t.label}),(0,G.jsx)(`small`,{children:t.description})]}),(0,G.jsx)(`span`,{className:`option-number`,children:a+1})]},t.label)),n.options.length>0&&n.isOther&&(0,G.jsxs)(`label`,{className:`question-option`,children:[(0,G.jsx)(`input`,{type:`radio`,name:`${e.actionId}-${n.id}`,checked:r[n.id]===`__other__`,onChange:()=>i(e=>({...e,[n.id]:`__other__`}))}),(0,G.jsx)(`span`,{children:z(`approvals:another_answer`)})]}),(n.options.length===0||r[n.id]===`__other__`)&&(0,G.jsx)(`input`,{className:`text-input`,type:n.isSecret?`password`:`text`,"aria-label":z(`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:z(`common:enter_your_answer`),autoComplete:`off`})]},n.id)),(0,G.jsx)(K,{type:`submit`,disabled:t||!s||!u,children:s?z(d?`common:confirm_selection`:`common:submit_answer`):AD(e.status)})]}):(0,G.jsx)(`div`,{className:`action-options`,children:e.options.map(r=>(0,G.jsx)(K,{variant:/decline|cancel|reject|deny/i.test(r.id)?`secondary`:`default`,disabled:t||!s,onClick:()=>n({decision:r.id}),children:SD(e,r)},r.id))}),e.kind===`unsupported`&&(0,G.jsx)(`p`,{className:`inline-error`,children:z(`approvals:this_interaction_is_unsupported_no_approval_was_sent`)})]})}var LD={get connecting(){return z(`errors:connecting`)},get connected(){return z(`errors:live_connection_healthy`)},get disconnected(){return z(`errors:disconnected`)},get authenticationRequired(){return z(`errors:login_required_again`)}},RD={get accepted(){return z(`errors:accepted_by_gateway`)},get dispatching(){return z(`errors:awaiting_upstream_confirmation`)},get acknowledged(){return z(`errors:submission_confirmed_by_upstream`)},get failed(){return z(`errors:submission_failed`)},get unknown(){return z(`errors:submission_result_needs_checking`)}};function zD({connection:e}){return(0,G.jsxs)(`span`,{className:`connection-badge connection-${e}`,children:[(0,G.jsx)(`span`,{className:`status-dot`}),LD[e]]})}function BD({entry:e,thread:t,onReconcile:n,onDiscardMissing:r,busy:i,refreshing:a}){let[o,s]=(0,y.useState)(!1),[c,l]=(0,y.useState)(!1),u=e.operation?.execution,d=e.kind===`fork`,f=!!(t&&Zd(t.status)&&u?.threadId===t.id),p=!!(!d&&t&&Zd(t.status)&&e.target===t.id);return(0,G.jsxs)(`div`,{className:`operation-card`,children:[(0,G.jsxs)(`div`,{className:`operation-title`,children:[(0,G.jsx)(`strong`,{children:RD[e.status]}),(0,G.jsx)(`span`,{children:Qi(e.createdAt)})]}),(0,G.jsxs)(`dl`,{children:[(0,G.jsx)(`dt`,{children:z(`errors:operation`)}),(0,G.jsx)(`dd`,{children:e.kind}),(0,G.jsx)(`dt`,{children:z(`errors:target`)}),(0,G.jsx)(`dd`,{children:e.target}),(0,G.jsx)(`dt`,{children:z(`errors:operation_id`)}),(0,G.jsx)(`dd`,{children:e.clientOperationId}),e.lookupError?.details&&(0,G.jsx)(`dd`,{children:(0,G.jsxs)(`details`,{className:`raw-details`,children:[(0,G.jsx)(`summary`,{children:z(`common:technical_details`)}),(0,G.jsx)(`pre`,{children:e.lookupError.details})]})}),u&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`dt`,{children:z(`common:sessions`)}),(0,G.jsx)(`dd`,{children:u.threadId}),(0,G.jsx)(`dt`,{children:z(`errors:workspace`)}),(0,G.jsx)(`dd`,{children:u.workspaceKey}),(0,G.jsx)(`dt`,{children:z(`errors:execution_status`)}),(0,G.jsx)(`dd`,{children:u.ended?z(`errors:finished`):z(`errors:end_not_confirmed`)})]})]}),(e.lookupError?.message||e.error)&&(0,G.jsx)(`p`,{className:`inline-error`,role:`alert`,children:V(e.lookupError?.message??e.error)}),wa(e)&&(0,G.jsxs)(`div`,{className:`reconcile`,children:[(0,G.jsx)(`p`,{children:z(`errors:check_session_history_the_session_list_and_the`)}),p?(0,G.jsx)(`p`,{children:z(`errors:this_session_is_still_running_wait_or_interrupt`)}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`label`,{children:[(0,G.jsx)(`input`,{type:`checkbox`,checked:c,onChange:e=>l(e.target.checked)}),z(`errors:i_checked_history_and_the_original_environment_no`)]}),(0,G.jsx)(K,{variant:`secondary`,size:`sm`,disabled:!c||i||a,onClick:()=>r(e.clientOperationId),children:z(`errors:clear_this_browser_s_pending_record`)})]})]}),e.kind===`confirmCompatibility`&&e.status===`unknown`&&(0,G.jsx)(`p`,{className:`subtle`,children:z(`errors:refresh_status_to_check_the_compatibility_confirmation_this`)}),e.kind!==`confirmCompatibility`&&Da(e)&&!e.lookupError?.missing&&!e.operation?.reconciliation&&(0,G.jsxs)(`div`,{className:`reconcile`,children:[(0,G.jsx)(`p`,{children:z(d?`errors:refresh_the_session_list_and_check_for_a`:`errors:tasks_will_not_be_resent_automatically_check_history`)}),f?(0,G.jsx)(`p`,{children:z(`errors:this_task_is_still_running_use_the_interrupt`)}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`label`,{children:[(0,G.jsx)(`input`,{type:`checkbox`,checked:o,onChange:e=>s(e.target.checked)}),z(d?`errors:i_checked_the_session_list_and_history_and`:`errors:i_verified_that_the_previous_execution_has_ended`)]}),(0,G.jsx)(K,{variant:`secondary`,size:`sm`,disabled:!o||i||a,onClick:()=>n(e.clientOperationId),children:z(i?`errors:submitting_reconciliation`:d?`errors:reconcile_this_fork`:`errors:reconcile_and_release_previous_execution`)})]})]}),e.operation?.reconciliation&&(0,G.jsx)(`p`,{className:`subtle`,children:z(`errors:checked_at_original_submission_status_preserved`,{v0:Qi(e.operation.reconciliation.at),v1:z(d?`errors:fork_result_checked_manually_original_task_state_unchanged`:`errors:previous_execution_end_checked_manually`)})})]})}function VD({system:e,connection:t,operations:n,thread:r,selectedId:i,threadReadFailed:a,onRefresh:o,onReconcile:s,onDiscardMissing:c,busy:l,open:u,onOpenChange:d,refreshing:f}){let p=(0,y.useRef)(null);return(0,y.useEffect)(()=>{u&&p.current?.focus()},[u]),(0,G.jsxs)(`details`,{className:`diagnostics`,open:u,onToggle:e=>d(e.currentTarget.open),children:[(0,G.jsxs)(`summary`,{children:[(0,G.jsx)(q,{name:`settings`,size:16}),z(`common:diagnostics`),n.length>0&&(0,G.jsx)(`span`,{className:`count-badge`,children:n.length})]}),(0,G.jsxs)(`div`,{className:`diagnostics-panel`,id:`diagnostics-panel`,ref:p,tabIndex:-1,role:`region`,"aria-label":z(`errors:diagnostics_details`),"aria-busy":f,children:[(0,G.jsxs)(`div`,{className:`diagnostics-heading`,children:[(0,G.jsx)(`h2`,{children:z(`errors:execution_status`)}),(0,G.jsxs)(K,{variant:`ghost`,size:`sm`,disabled:f,onClick:o,children:[(0,G.jsx)(q,{name:`refresh`,size:14}),z(f?`common:checking`:`errors:refresh_status`)]})]}),(0,G.jsxs)(`section`,{className:`operation-section`,"aria-label":z(`errors:current_session_information`),children:[(0,G.jsx)(`h3`,{children:z(`errors:current_session`)}),(0,G.jsxs)(`dl`,{children:[(0,G.jsx)(`dt`,{children:`Thread ID`}),(0,G.jsx)(`dd`,{children:(0,G.jsx)(ef,{id:r?.id===i?r?.id:void 0,placeholder:z(i?a?`errors:failed_to_load_session_details`:`errors:loading_session_details`:`common:session_not_created_yet`)})})]})]}),(0,G.jsxs)(`section`,{className:`operation-section`,children:[(0,G.jsx)(`h3`,{children:z(`errors:operations_and_reconciliation`)}),(0,G.jsx)(`p`,{className:`subtle`,role:`status`,children:f?z(`errors:checking_session_history_and_submission_receipts`):r?.status===`unknown`?z(`errors:session_state_still_needs_checking_inspect_operation_records`):n.length>0?z(`errors:check_submission_records_reconciliation_does_not_resend_tasks`):z(`errors:no_submissions_need_checking`)}),n.map(e=>(0,G.jsx)(BD,{entry:e,thread:r,onReconcile:s,onDiscardMissing:c,busy:l.includes(`reconcile:${e.clientOperationId}`)||l.includes(`${e.kind}:${e.target}`),refreshing:f},e.clientOperationId))]}),(0,G.jsxs)(`dl`,{children:[(0,G.jsx)(`dt`,{children:z(`errors:browser_connection`)}),(0,G.jsx)(`dd`,{children:LD[t]}),(0,G.jsx)(`dt`,{children:`Codex`}),(0,G.jsx)(`dd`,{children:e?.ready?z(`errors:ready`):e?.connection===`starting`?z(`errors:starting`):z(`errors:unavailable`)}),(0,G.jsx)(`dt`,{children:z(`errors:account_authentication`)}),(0,G.jsx)(`dd`,{children:e?.authenticated===!0?z(`errors:available`):e?.authenticated===!1?z(`errors:log_in_to_codex_on_the_server_computer`):z(`errors:unconfirmed`)}),(0,G.jsx)(`dt`,{children:z(`common:running_version`)}),(0,G.jsx)(`dd`,{children:e?.codexVersion??z(`common:not_detected`)}),(0,G.jsx)(`dt`,{children:z(`common:verified_version`)}),(0,G.jsx)(`dd`,{children:e?.verifiedVersion??z(`common:loading`)}),(0,G.jsx)(`dt`,{children:z(`errors:compatibility`)}),(0,G.jsx)(`dd`,{children:e?.compatibility===`verified`?z(`errors:version_verified`):e?.compatibility===`unverified`?e.compatibilityConfirmation===`confirmed`?z(`errors:version_unverified_continued_with_consent`):z(`errors:version_unverified_confirmation_pending`):z(`errors:unavailable`)}),(0,G.jsx)(`dt`,{children:z(`errors:gateway_authentication`)}),(0,G.jsx)(`dd`,{children:e?.authMode===`cloudflare-access`?`Cloudflare Access`:z(`errors:local_mode`)})]}),e?.error&&(0,G.jsx)(`p`,{className:`inline-error`,children:V(e.error)}),e&&(0,G.jsxs)(`details`,{className:`raw-details`,children:[(0,G.jsx)(`summary`,{children:z(`errors:supported_capabilities`)}),(0,G.jsx)(`p`,{children:e.capabilities.join(` · `)||z(`errors:none`)})]})]})]})}async function HD(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 Xn(t.status,e.error??{code:`EXPORT_FAILED`,message:B(`workspace:cannot_read_session_history_no_file_downloaded`)})}throw new Xn(t.status===200?401:t.status,{code:`AUTH_REQUIRED`,message:B(`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(z(`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(z(`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 UD(e){let{system:t}=e,n=(0,y.useRef)(null),[r,i]=(0,y.useState)(),[a,o]=(0,y.useState)(),s=Fa(t),c=La(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,G.jsxs)(G.Fragment,{children:[t?.compatibility===`unverified`&&(0,G.jsxs)(`div`,{className:`compatibility-banner compatibility-notice`,role:`status`,children:[(0,G.jsx)(`span`,{children:z(`workspace:codex_has_not_been_verified_some_features_may`,{v0:t.codexVersion,v1:t.compatibilityConfirmation===`confirmed`?z(`workspace:permission_to_continue_confirmed_this_does_not_verify`):z(`workspace:confirmation_required_before_use`)})}),t.compatibilityConfirmation===`required`&&(0,G.jsx)(K,{variant:`ghost`,size:`sm`,onClick:()=>o(s),children:z(`workspace:view_compatibility_notice`)})]}),(0,G.jsxs)(`dialog`,{ref:n,className:`compatibility-dialog`,"aria-labelledby":`compatibility-title`,"aria-describedby":`compatibility-description`,onCancel:e=>{e.preventDefault(),l()},children:[(0,G.jsxs)(`div`,{className:`compatibility-dialog-heading`,children:[(0,G.jsx)(q,{name:`alert`,size:22}),(0,G.jsx)(`h2`,{id:`compatibility-title`,children:z(`workspace:codex_version_compatibility_is_unverified`)})]}),(0,G.jsx)(`p`,{id:`compatibility-description`,children:z(`workspace:this_codex_version_is_unverified_some_features_may`)}),(0,G.jsxs)(`dl`,{children:[(0,G.jsx)(`dt`,{children:z(`common:running_version`)}),(0,G.jsx)(`dd`,{children:t?.codexVersion??z(`common:not_detected`)}),(0,G.jsx)(`dt`,{children:z(`common:verified_version`)}),(0,G.jsx)(`dd`,{children:t?.verifiedVersion??z(`common:loading`)})]}),t?.ready?!e.canConfirm&&(0,G.jsx)(`p`,{className:`subtle`,role:`status`,children:z(`workspace:wait_for_the_connection_and_codex_authentication_to`)}):(0,G.jsx)(`p`,{className:`inline-error`,role:`status`,children:z(`workspace:codex_is_unavailable_close_this_notice_and_check`)}),e.error&&(0,G.jsx)(`p`,{className:`inline-error`,role:`alert`,children:V(e.error)}),e.uncertain&&(0,G.jsxs)(`div`,{className:`compatibility-uncertain`,role:`status`,children:[(0,G.jsx)(`p`,{children:z(`workspace:the_confirmation_result_needs_checking_refresh_status_or`)}),(0,G.jsx)(K,{variant:`secondary`,size:`sm`,onClick:e.onRefresh,children:z(`workspace:refresh_confirmation_status`)}),t?.ready&&(0,G.jsx)(K,{variant:`secondary`,size:`sm`,disabled:!e.canConfirm||e.submitting,onClick:e.onReconfirm,children:z(`workspace:confirm_again`)})]}),(0,G.jsx)(`p`,{className:`subtle`,children:z(`workspace:you_can_still_view_diagnostics_or_interrupt_tasks`)}),(0,G.jsxs)(`div`,{className:`compatibility-dialog-actions`,children:[(0,G.jsx)(K,{variant:`secondary`,autoFocus:!0,onClick:l,children:z(`workspace:not_now`)}),t?.ready&&(0,G.jsx)(K,{disabled:!e.canConfirm||e.submitting||e.uncertain,onClick:e.onConfirm,children:e.submitting?z(`workspace:confirming`):z(`common:confirm_and_continue`)})]})]})]})}function WD(e){return z(`sidebar:clone_stage_${e.progressStage??(e.status===`cloning`?`connecting`:e.status===`registration-failed`?`registration_failed`:e.status)}`)}function GD(e){let t=e.trim().replace(/\/+$/,``).split(/[/:]/).pop()?.replace(/\.git$/,``)??``;return t&&t!==`.`&&t!==`..`&&!/[\\\s?#\0]/.test(t)?t:``}function KD(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:GD(t),l=JSON.stringify([n,c,i]);(0,y.useEffect)(()=>{if(!e)return;let t=!1,r=setTimeout(()=>{Qn.projectPath(n??``,c).then(e=>{t||s({key:l,path:e.path})},e=>{t||s({key:l,error:$i(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 qD({value:e}){return(0,G.jsx)(`div`,{className:`project-path-preview`,"aria-live":`polite`,children:e.error?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`p`,{className:`inline-error`,role:`alert`,children:V(e.error)}),(0,G.jsx)(K,{variant:`ghost`,size:`sm`,onClick:e.retry,children:z(`sidebar:path_retry`)})]}):(0,G.jsxs)(`div`,{className:`project-directory`,children:[(0,G.jsx)(`span`,{children:z(`sidebar:resolved_path`)}),(0,G.jsx)(`code`,{children:e.pending?z(`sidebar:path_resolving`):e.ready?e.path:`—`})]})})}var JD=`covro.project-clone`;function YD(){try{return sessionStorage.getItem(JD)??void 0}catch{return}}function XD(e){try{e?sessionStorage.setItem(JD,e):sessionStorage.removeItem(JD)}catch{}}var ZD=e=>e?.status===`cloning`||e?.status===`cancelling`;function QD(e){let[t,n]=(0,y.useState)(``),[r,i]=(0,y.useState)(``),[a,o]=(0,y.useState)(YD),[s,c]=(0,y.useState)(),l=KD(!s&&!a,t),[u,d]=(0,y.useState)(!1),[f,p]=(0,y.useState)(),m=(0,y.useRef)(!1),h=u||!(!a||s)||ZD(s),{onBusyChange:g}=e;(0,y.useEffect)(()=>{g(h)},[h,g]),(0,y.useEffect)(()=>{if(!a)return;let e=!1,t,n=async()=>{try{let t=await Qn.projectClone(a);if(e||(c(t),l.setValue(t.path),i(t.name??``),p(void 0),!ZD(t)))return}catch(t){if(e)return;if(p($i(t)),t instanceof Xn&&t.status===404){o(void 0),XD();return}}t=setTimeout(()=>void n(),1e3)};return n(),()=>{e=!0,clearTimeout(t)}},[a,l.setValue]);async function _(){if(h||e.disabled||m.current||!l.ready)return;m.current=!0,d(!0),p(void 0);let n=crypto.randomUUID();XD(n);try{let e=await Qn.cloneProject({clientOperationId:n,repository:t.trim(),path:l.path,...r.trim()?{name:r.trim()}:{}});c(e),o(n)}catch(e){p($i(e)),e instanceof Xn&&e.status<500?XD():(c(void 0),o(n))}finally{m.current=!1,d(!1)}}async function v(t){if(s&&!m.current){m.current=!0,d(!0),p(void 0);try{t===`open`&&s.project?(await e.onImported(s.project.id),XD(),e.onClose()):c(await(t===`cancel`?Qn.cancelProjectClone(s.id):Qn.registerProjectClone(s.id)))}catch(e){p($i(e))}finally{m.current=!1,d(!1)}}}let b=s&&!ZD(s);return(0,G.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),_()},children:[(0,G.jsx)(`p`,{id:`project-dialog-description`,children:z(`sidebar:clone_intro`)}),!s&&!a&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`label`,{className:`project-field`,children:[(0,G.jsx)(`span`,{children:z(`sidebar:clone_repository`)}),(0,G.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||u,"aria-describedby":`clone-auth-help`,"aria-label":z(`sidebar:clone_repository`)}),(0,G.jsx)(`small`,{id:`clone-auth-help`,children:z(`sidebar:clone_auth_help`)})]}),(0,G.jsxs)(`label`,{className:`project-field`,children:[(0,G.jsx)(`span`,{children:z(`sidebar:clone_target`)}),(0,G.jsx)(`input`,{required:!0,maxLength:4096,autoComplete:`off`,spellCheck:!1,placeholder:`/home/you/code/my-project`,value:l.value,onChange:e=>l.setValue(e.target.value),disabled:e.disabled||u,"aria-describedby":`clone-path-help`,"aria-label":z(`sidebar:clone_target`)}),(0,G.jsx)(`small`,{id:`clone-path-help`,children:z(`sidebar:work_dir_clone_help`)})]}),(0,G.jsx)(qD,{value:l}),(0,G.jsxs)(`label`,{className:`project-field`,children:[(0,G.jsx)(`span`,{children:z(`sidebar:project_name_optional`)}),(0,G.jsx)(`input`,{maxLength:100,placeholder:z(`sidebar:defaults_to_directory_name`),value:r,onChange:e=>i(e.target.value),disabled:e.disabled||u})]})]}),(s||a)&&(0,G.jsxs)(`div`,{className:`project-clone-status`,role:`status`,"aria-live":`polite`,children:[(0,G.jsx)(`strong`,{children:s?.percent===void 0?s?WD(s):z(`sidebar:clone_checking`):z(`sidebar:clone_progress_percent`,{v0:WD(s),v1:Ct(s.percent/100,{style:`percent`,maximumFractionDigits:0})})}),ZD(s)&&(0,G.jsx)(`progress`,{"aria-label":z(`sidebar:clone_progress`),max:100,value:s?.percent}),(0,G.jsx)(`code`,{children:s?.path??l.path??l.value}),ZD(s)&&(0,G.jsx)(`small`,{children:z(`sidebar:clone_background_help`)})]}),s?.error&&(0,G.jsx)(`p`,{className:`inline-error project-dialog-error`,role:`alert`,children:V(Vn({code:s.errorCode??`CLONE_FAILED`,message:s.error}))}),f&&(0,G.jsx)(`p`,{className:`inline-error project-dialog-error`,role:`alert`,children:V(f)}),(s?.error||Et(f))&&(0,G.jsxs)(`details`,{className:`project-clone-details`,children:[(0,G.jsx)(`summary`,{children:z(`common:technical_details`)}),(0,G.jsx)(`pre`,{children:s?.error??Et(f)})]}),e.disabled&&(0,G.jsx)(`p`,{className:`subtle`,children:z(`sidebar:your_login_expired_log_in_again_to_manage`)}),(0,G.jsxs)(`div`,{className:`project-dialog-actions`,children:[ZD(s)?(0,G.jsx)(K,{variant:`secondary`,disabled:e.disabled||u||s?.status===`cancelling`,onClick:()=>void v(`cancel`),children:s?.status===`cancelling`?z(`sidebar:clone_cancelling`):z(`sidebar:clone_cancel`)}):(0,G.jsx)(K,{variant:`secondary`,disabled:h,onClick:e.onClose,children:z(`common:close`)}),s?.status===`completed`?(0,G.jsx)(K,{disabled:e.disabled||u,onClick:()=>void v(`open`),children:z(`sidebar:clone_open`)}):s?.status===`registration-failed`?(0,G.jsx)(K,{disabled:e.disabled||u,onClick:()=>void v(`register`),children:z(`sidebar:clone_register_retry`)}):b?(0,G.jsx)(K,{disabled:e.disabled||u,onClick:e=>{e.preventDefault(),XD(),o(void 0),c(void 0),p(void 0)},children:z(`sidebar:clone_empty_retry`)}):!a&&(0,G.jsx)(K,{type:`submit`,disabled:e.disabled||u||!t.trim()||!l.ready,children:z(u?`common:submitting`:`sidebar:clone_start`)})]})]})}function $D(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)(!1),d=KD(!e.project&&!l),[f,p]=(0,y.useState)(),m=e.disabled||s,h=a?z(`sidebar:remove_project_2`):e.project?z(`common:manage_project`):z(`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($i(e))}finally{n.current=!1,c(!1)}}}return(0,G.jsxs)(`dialog`,{ref:t,className:`project-dialog`,"aria-labelledby":`project-dialog-title`,"aria-describedby":`project-dialog-description`,onCancel:t=>{t.preventDefault(),s||e.onClose()},children:[(0,G.jsxs)(`div`,{className:`project-dialog-heading`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(q,{name:`folder`,size:20}),(0,G.jsx)(`h2`,{id:`project-dialog-title`,children:h})]}),(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`sidebar:close_project_management`),disabled:s,onClick:e.onClose,children:(0,G.jsx)(q,{name:`close`,size:17})})]}),!e.project&&(0,G.jsxs)(`div`,{className:`project-import-modes`,role:`group`,"aria-label":z(`sidebar:import_source`),children:[(0,G.jsx)(K,{variant:l?`ghost`:`secondary`,disabled:s,"aria-pressed":!l,onClick:()=>u(!1),children:z(`sidebar:import_existing`)}),(0,G.jsx)(K,{variant:l?`secondary`:`ghost`,disabled:s,"aria-pressed":l,onClick:()=>u(!0),children:z(`sidebar:import_clone`)})]}),l?(0,G.jsx)(QD,{disabled:e.disabled,onBusyChange:c,onImported:e.onImported,onClose:e.onClose}):(0,G.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),g()},children:[a?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`p`,{id:`project-dialog-description`,children:z(`sidebar:remove_from_this_workspace`,{v0:e.project?.name})}),(0,G.jsxs)(`div`,{className:`project-removal-note`,children:[(0,G.jsx)(`p`,{children:z(`sidebar:only_the_project_list_entry_is_removed_server`)}),(0,G.jsx)(`p`,{children:z(`sidebar:add_the_same_directory_later_to_access_its`)})]})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`p`,{id:`project-dialog-description`,children:e.project?z(`sidebar:set_a_recognizable_project_name_or_remove_it`):z(`sidebar:add_an_existing_directory_on_the_server_running`)}),e.project?(0,G.jsxs)(`div`,{className:`project-directory`,children:[(0,G.jsx)(`span`,{children:z(`sidebar:server_directory`)}),(0,G.jsx)(`code`,{children:e.project.rootPath})]}):(0,G.jsxs)(`label`,{className:`project-field`,children:[(0,G.jsx)(`span`,{children:z(`sidebar:server_directory`)}),(0,G.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":z(`sidebar:server_directory`),disabled:m}),(0,G.jsx)(`small`,{id:`project-path-help`,children:z(`sidebar:work_dir_path_help`)})]}),!e.project&&(0,G.jsx)(qD,{value:d}),(0,G.jsxs)(`label`,{className:`project-field`,children:[(0,G.jsx)(`span`,{children:e.project?z(`sidebar:project_name`):z(`sidebar:project_name_optional`)}),(0,G.jsx)(`input`,{autoFocus:!!e.project,required:!!e.project,maxLength:100,placeholder:z(`sidebar:defaults_to_directory_name`),value:r,onChange:e=>i(e.target.value),disabled:m})]})]}),f&&(0,G.jsx)(`p`,{className:`inline-error project-dialog-error`,role:`alert`,children:V(f)}),e.disabled&&(0,G.jsx)(`p`,{className:`subtle`,children:z(`sidebar:your_login_expired_log_in_again_to_manage`)}),(0,G.jsxs)(`div`,{className:`project-dialog-actions`,children:[e.project&&!a&&(0,G.jsx)(K,{className:`project-remove-button`,variant:`ghost`,disabled:m,onClick:()=>{p(void 0),o(!0)},children:z(`sidebar:remove_project`)}),(0,G.jsx)(K,{variant:`secondary`,disabled:s,onClick:()=>{a?(p(void 0),o(!1)):e.onClose()},children:z(a?`sidebar:back`:`common:cancel`)}),(0,G.jsx)(K,{type:`submit`,variant:a?`destructive`:`default`,disabled:m||!a&&(e.project?!r.trim():!d.ready),children:s?z(a?`sidebar:removing`:`common:saving`):a?z(`sidebar:confirm_removal`):e.project?z(`sidebar:save_name`):z(`common:add_project`)})]})]})]})}function eO({notifications:e,onClose:t}){let n=(0,y.useRef)(null);(0,y.useEffect)(()=>{let e=n.current;return e?.showModal(),()=>e?.close()},[]);let{enabled:r,access:i,requesting:a,error:o}=e,s=r&&i===`granted`,c={default:z(`notifications:permission_not_granted`),granted:z(`notifications:permission_granted`),denied:z(`notifications:blocked_by_browser`),unsupported:z(`notifications:unsupported_browser`),insecure:z(`notifications:secure_connection_required`)}[i],l=![`default`,`granted`].includes(i);return(0,G.jsxs)(`dialog`,{ref:n,className:`project-dialog notification-dialog`,"aria-labelledby":`notification-dialog-title`,onCancel:e=>{e.preventDefault(),t()},children:[(0,G.jsxs)(`div`,{className:`project-dialog-heading`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(Zt,{size:20,"aria-hidden":`true`}),(0,G.jsx)(`h2`,{id:`notification-dialog-title`,children:z(`notifications:task_completion_notifications`)})]}),(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`notifications:close_notification_settings`),onClick:t,children:(0,G.jsx)(q,{name:`close`,size:17})})]}),(0,G.jsx)(`p`,{children:z(`notifications:show_project_session_and_result_after_each_turn`)}),(0,G.jsxs)(`div`,{className:`notification-control`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:z(`notifications:browser_notifications`)}),(0,G.jsxs)(`span`,{role:`status`,children:[c,` · `,z(s?`common:on`:`common:off`)]})]}),(0,G.jsx)(K,{role:`switch`,"aria-label":z(`notifications:browser_notifications`),"aria-checked":s,"aria-describedby":`notification-permission-help`,variant:s?`secondary`:`default`,size:`sm`,disabled:a||l,onClick:()=>void e.toggle(),children:z(a?`notifications:waiting_for_permission`:s?`notifications:disable_notifications`:`notifications:enable_notifications`)})]}),(0,G.jsx)(`p`,{id:`notification-permission-help`,className:`notification-help`,children:z(i===`denied`?`notifications:allow_notifications_in_the_browser_s_site_settings`:i===`insecure`?`notifications:use_https_localhost_or_127_0_0_1`:i===`unsupported`?`notifications:use_a_desktop_browser_that_supports_system_notifications`:`notifications:permission_is_requested_only_when_you_click_enable`)}),r&&i===`granted`&&(0,G.jsx)(K,{variant:`secondary`,size:`sm`,onClick:e.test,children:z(`notifications:send_test_notification`)}),o&&(0,G.jsx)(`p`,{className:`inline-error`,role:`alert`,children:V(o)}),(0,G.jsxs)(`section`,{className:`notification-background`,"aria-labelledby":`notification-background-title`,children:[(0,G.jsx)(`h3`,{id:`notification-background-title`,children:z(`notifications:background_notifications_and_sleeping_tabs`)}),(0,G.jsx)(`p`,{children:z(`notifications:keep_this_page_and_browser_open_background_tabs`)}),(0,G.jsxs)(`details`,{children:[(0,G.jsx)(`summary`,{children:z(`notifications:keep_this_site_active`)}),(0,G.jsxs)(`ul`,{children:[(0,G.jsxs)(`li`,{children:[z(`notifications:chrome_settings_performance_always_keep_these_sites_active`),(0,G.jsx)(`a`,{href:`https://support.google.com/chrome/answer/12929150?hl=zh-Hans`,target:`_blank`,rel:`noreferrer`,children:z(`notifications:settings_instructions`)})]}),(0,G.jsxs)(`li`,{children:[z(`notifications:edge_settings_system_and_performance_performance_always_keep`),(0,G.jsx)(`a`,{href:`https://support.microsoft.com/edge/learn-about-performance-features-in-microsoft-edge`,target:`_blank`,rel:`noreferrer`,children:z(`notifications:settings_instructions`)})]})]}),(0,G.jsx)(`p`,{children:z(`notifications:configure_this_manually_in_the_browser_names_may`)})]})]})]})}var tO=1048576,nO=e=>z(`settings:0_0009765625_mib_minimum_1_kib`,{v0:e});function rO(e,t,n,r){return{key:e,get label(){return z(`settings:fieldUnit`,{label:z(t)})},group:`advanced`,unit:`MiB`,maxMiB:n,get help(){return z(`settings:range_default_mib_decimals_must_correspond_to_whole`,{v0:nO(n),v1:r})}}}var iO=e=>(e/tO).toFixed(20).replace(/\.?0+$/,``),aO=[{key:`workDir`,get label(){return z(`settings:work_dir`)},group:`projects`,get help(){return z(`settings:work_dir_help`)}},{key:`host`,get label(){return z(`settings:listen_address`)},group:`network`,get help(){return z(`settings:use_127_0_0_1_localhost_or_1`)}},{key:`port`,get label(){return z(`settings:listen_port`)},group:`network`,type:`number`,get help(){return z(`settings:range_1_65535_use_the_new_port_after`)}},{key:`publicOrigin`,get label(){return z(`settings:allowed_origins`)},group:`network`,multiline:!0,get help(){return z(`settings:one_complete_http_s_origin_per_line_scheme`)}},{key:`issuer`,get label(){return z(`settings:access_team_domain`)},group:`network`,get help(){return z(`settings:for_example_https_your_team_cloudflareaccess_com`)}},{key:`audience`,get label(){return z(`settings:access_application_aud`)},group:`network`,get help(){return z(`settings:enter_the_cloudflare_access_application_s_audience`)}},{key:`binary`,get label(){return z(`settings:codex_executable`)},group:`codex`,get help(){return z(`settings:enter_codex_or_an_absolute_path_on_the`)}},{key:`home`,get label(){return z(`settings:codex_home_optional`)},group:`codex`,get help(){return z(`settings:leave_blank_to_inherit_the_service_environment_or`)}},{key:`requestTimeoutMs`,get label(){return z(`settings:request_timeout_milliseconds`)},group:`codex`,type:`number`,get help(){return z(`settings:range_100_300000_default_30000`)}},rO(`maxLineBytes`,`settings:codex_message_line_limit`,256,64),rO(`eventBytes`,`settings:event_buffer_limit`,64,16),rO(`wsBytes`,`settings:websocket_buffer_limit`,16,4),rO(`itemBytes`,`settings:item_content_limit`,8,2),{key:`developmentOrigins`,get label(){return z(`settings:development_origins`)},group:`advanced`,multiline:!0,get help(){return z(`settings:one_local_http_s_origin_per_line_used`)}}];function oO(e){return{host:e.host,workDir:e.workDir??``,port:String(e.port),publicOrigin:e.publicOrigin.join(`
91
- `),developmentOrigins:e.developmentOrigins.join(`
92
- `),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:iO(e.codex.maxLineBytes),eventBytes:iO(e.limits.eventBytes),wsBytes:iO(e.limits.wsBytes),itemBytes:iO(e.limits.itemBytes)}}var sO=e=>e.split(`
93
- `).map(e=>e.trim()).filter(Boolean),cO=aO.filter(e=>`unit`in e);function lO(e,t){let n=e=>({bytes:NaN,error:z(`settings:fieldError`,{label:t.label,reason:e})}),r=e.trim();if(!r)return n(z(`settings:enter_a_value_in_mib`));if(!/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/.test(r)||!Number.isFinite(Number(r)))return n(z(`settings:enter_a_valid_mib_value_decimals_are_allowed`));if(Number(r)<1/1024||Number(r)>t.maxMiB)return n(z(`settings:range`,{v0:nO(t.maxMiB)}));let[i,a=``]=r.replace(/^\+/,``).split(`.`),o=a.replace(/0+$/,``),s=()=>n(z(`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(tO);return l<1024n*c||l>BigInt(t.maxMiB*tO)*c?n(z(`settings:range`,{v0:nO(t.maxMiB)})):l%c===0n?{bytes:Number(l/c)}:s()}function uO(e){return Object.fromEntries(cO.flatMap(t=>{let{error:n}=lO(e[t.key],t);return n?[[t.key,n]]:[]}))}function dO(e,t){return`unit`in e?`${t} ${e.unit}`:t}function fO(e,t){let n=Object.fromEntries(cO.map(t=>[t.key,lO(e[t.key],t).bytes]));return{...t,workDir:e.workDir.trim()||void 0,host:e.host.trim(),port:Number(e.port),publicOrigin:sO(e.publicOrigin),developmentOrigins:sO(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 pO(e,t){let n=oO(e),r=oO(t);return[...n.mode===r.mode?[]:[{label:z(`common:authentication_mode`),before:n.mode,after:r.mode}],...aO.filter(e=>!([`issuer`,`audience`].includes(e.key)&&r.mode===`local`)&&n[e.key]!==r[e.key]).map(e=>({label:e.label,before:dO(e,n[e.key]),after:dO(e,r[e.key])}))]}var mO=e=>e instanceof Xn?Vn(e.problem):e instanceof Error?e.message:z(`settings:operation_failed_please_retry`);function hO({onClose:e}){let t=(0,y.useRef)(null),n=(0,y.useRef)(null),[r,i]=(0,y.useState)(),[a,o]=(0,y.useState)(),[s,c]=(0,y.useState)(),[l,u]=(0,y.useState)(),[d,f]=(0,y.useState)(!0),[p,m]=(0,y.useState)(``),[h,g]=(0,y.useState)(``),[_,v]=(0,y.useState)({}),[b,x]=(0,y.useState)(!1),[S,C]=(0,y.useState)(!1),w=!!r&&!!a&&JSON.stringify(fO(a,r.saved))!==JSON.stringify(r.saved);(0,y.useEffect)(()=>{t.current?.showModal();let e=new AbortController;return Qn.gatewayConfig().then(t=>{e.signal.aborted||(i(t),o(oO(t.saved)))}).catch(t=>{e.signal.aborted||m(mO(t))}).finally(()=>{e.signal.aborted||f(!1)}),()=>{e.abort(),t.current?.close()}},[]),(0,y.useEffect)(()=>{let e=e=>{w&&e.preventDefault()};return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[w]);let T=()=>{d||(w||l?C(!0):e())};async function E(e){f(!0),m(``),g(``);try{await e()}catch(e){m(mO(e)),e instanceof Xn&&e.problem.code===`CONFIG_CONFLICT`&&x(!0)}finally{f(!1)}}async function D(){await E(async()=>{let e=await Qn.gatewayConfig();i(e),o(oO(e.saved)),v({}),c(void 0),u(void 0),x(!1)})}async function O(e){let t=e.target.files?.[0];e.target.value=``,t&&await E(async()=>{if(t.size>262144)throw Error(z(`settings:configuration_files_cannot_exceed_256_kib`));let e;try{e=JSON.parse(await t.text())}catch{throw Error(z(`settings:cannot_parse_json_check_the_file_format`))}u(await Qn.importGatewayConfig(e)),c(void 0)})}async function k(){await E(async()=>{let e=await Qn.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),g(B(`settings:exported_saved_configuration_from_the_file_unsaved_edits`))})}let A=r&&oO(r.running),j=l?.config??s,M=r&&j?pO(r.saved,j):[];function N(e){if(!a||!A||[`issuer`,`audience`].includes(e.key)&&a.mode!==`cloudflare-access`)return null;let t={id:`gateway-${e.key}`,"aria-labelledby":`gateway-${e.key}-label`,"aria-describedby":`gateway-${e.key}-help${_[e.key]?` gateway-${e.key}-error`:``}`,"aria-invalid":!!_[e.key],value:a[e.key],disabled:d||!r?.writable,onChange:t=>{o({...a,[e.key]:t.target.value}),v(t=>({...t,[e.key]:void 0})),g(``)}};return(0,G.jsxs)(`label`,{className:`project-field`,htmlFor:t.id,children:[(0,G.jsx)(`span`,{id:`gateway-${e.key}-label`,children:e.label}),`multiline`in e?(0,G.jsx)(`textarea`,{...t,rows:3,spellCheck:!1}):(0,G.jsx)(`input`,{...t,type:`type`in e?e.type:`text`,inputMode:`unit`in e?`decimal`:void 0,spellCheck:!1}),(0,G.jsx)(`small`,{id:`gateway-${e.key}-help`,children:e.help}),_[e.key]&&(0,G.jsx)(`small`,{id:`gateway-${e.key}-error`,className:`gateway-error`,role:`alert`,children:_[e.key]}),a[e.key]!==A[e.key]&&(0,G.jsx)(`small`,{className:`gateway-running`,children:z(`settings:currently_running`,{v0:dO(e,A[e.key])||z(`settings:not_set`)})})]},e.key)}return(0,G.jsxs)(`dialog`,{ref:t,className:`project-dialog gateway-dialog`,"aria-labelledby":`gateway-title`,onCancel:e=>{e.preventDefault(),T()},children:[(0,G.jsxs)(`div`,{className:`project-dialog-heading`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(An,{size:20,"aria-hidden":`true`}),(0,G.jsx)(`h2`,{id:`gateway-title`,children:z(`common:service_settings`)})]}),(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`settings:close_service_settings`),disabled:d,onClick:T,children:(0,G.jsx)(q,{name:`close`,size:17})})]}),(0,G.jsx)(`p`,{className:`gateway-intro`,children:z(`settings:service_settings_apply_help`)}),p&&(0,G.jsxs)(`div`,{className:`gateway-error`,role:`alert`,children:[(0,G.jsx)(`p`,{children:V(p)}),Et(p)&&(0,G.jsxs)(`details`,{children:[(0,G.jsx)(`summary`,{children:z(`common:technical_details`)}),(0,G.jsx)(`pre`,{children:Et(p)})]})]}),!r&&(0,G.jsx)(K,{variant:`secondary`,disabled:d,onClick:()=>void D(),children:z(d?`settings:loading_configuration`:`settings:reload_configuration`)}),r&&a&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`gateway-file`,children:[(0,G.jsx)(`span`,{children:z(`settings:configuration_file`)}),(0,G.jsx)(`code`,{children:r.path})]}),(0,G.jsxs)(`div`,{className:`gateway-status`,role:`status`,"data-pending":r.restartRequired,children:[(0,G.jsx)(`strong`,{children:r.restartRequired?z(`settings:saved_restart_to_apply`):z(`settings:saved_and_running_configurations_match`)}),(0,G.jsx)(`span`,{children:z(`settings:saving_does_not_restart_the_service_or_interrupt`)})]}),!r.writable&&(0,G.jsx)(`p`,{className:`gateway-error`,children:r.readOnlyReason}),h&&(0,G.jsx)(`p`,{className:`gateway-notice`,role:`status`,children:V(h)}),b&&(0,G.jsxs)(`div`,{className:`gateway-conflict`,children:[(0,G.jsx)(`p`,{children:z(`settings:reloading_discards_current_edits_and_loads_the_latest`)}),(0,G.jsx)(K,{variant:`secondary`,disabled:d,onClick:()=>void D(),children:z(`settings:discard_edits_and_reload`)})]}),S?(0,G.jsxs)(`section`,{className:`gateway-review`,"aria-label":z(`settings:confirm_discarding_edits`),children:[(0,G.jsx)(`h3`,{children:z(`settings:discard_unsaved_changes`)}),(0,G.jsx)(`p`,{children:z(`settings:the_configuration_file_has_not_been_changed`)}),(0,G.jsxs)(`div`,{className:`project-dialog-actions`,children:[(0,G.jsx)(K,{variant:`secondary`,onClick:()=>C(!1),children:z(`settings:keep_editing`)}),(0,G.jsx)(K,{variant:`destructive`,onClick:e,children:z(`settings:discard_changes_and_close`)})]})]}):j?(0,G.jsxs)(`section`,{className:`gateway-review`,"aria-label":z(l?`settings:import_configuration_preview`:`settings:save_configuration_preview`),children:[(0,G.jsx)(`h3`,{children:z(l?`settings:preview_imported_configuration`:`settings:confirm_configuration_changes`)}),(0,G.jsx)(`p`,{children:z(l?`settings:applying_to_the_form_replaces_editable_settings_but`:`settings:these_changes_apply_after_restarting_the_service_confirm`)}),l&&(0,G.jsx)(`p`,{children:z(`settings:keep_the_current_data_directory_and_initial_project`,{v0:l.preserved.length>0?z(`settings:ignored_from_the_imported_file`,{v0:Dt(l.preserved)}):``})}),M.length?(0,G.jsx)(`div`,{className:`gateway-changes`,children:M.map(e=>(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:e.label}),(0,G.jsx)(`span`,{children:z(`settings:saved`,{v0:e.before||z(`settings:not_set`)})}),(0,G.jsx)(`span`,{children:z(`settings:change_to`,{v0:e.after||z(`settings:not_set`)})})]},e.label))}):(0,G.jsx)(`p`,{children:z(`settings:no_differences_from_the_saved_configuration`)}),(0,G.jsxs)(`details`,{className:`gateway-json`,children:[(0,G.jsx)(`summary`,{children:z(`settings:view_full_json`)}),(0,G.jsx)(`pre`,{children:JSON.stringify(j,null,2)})]}),(0,G.jsxs)(`div`,{className:`project-dialog-actions`,children:[(0,G.jsx)(K,{variant:`secondary`,disabled:d,onClick:()=>{u(void 0),c(void 0)},children:z(`settings:back_to_editing`)}),l?(0,G.jsx)(K,{disabled:d,onClick:()=>{o(oO(l.config)),v({}),u(void 0),g(B(`settings:imported_configuration_applied_to_form_not_saved_yet`))},children:z(`settings:apply_to_form`)}):(0,G.jsx)(K,{disabled:d||b||!M.length,onClick:()=>void E(async()=>{let e=await Qn.saveGatewayConfig(r.revision,j);i(e),o(oO(e.saved)),c(void 0),g(e.restartRequired?B(`settings:configuration_saved_restart_the_service_manually_when_convenient`):B(`settings:configuration_saved_and_matches_the_running_configuration`))}),children:z(d?`common:saving`:`settings:confirm_save`)})]})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`gateway-tools`,children:[(0,G.jsxs)(K,{variant:`secondary`,size:`sm`,disabled:d||!r.writable,onClick:()=>n.current?.click(),children:[(0,G.jsx)(In,{size:15,"aria-hidden":`true`}),z(`settings:import_configuration`)]}),(0,G.jsxs)(K,{variant:`secondary`,size:`sm`,disabled:d,onClick:()=>void k(),children:[(0,G.jsx)(fn,{size:15,"aria-hidden":`true`}),z(`settings:export_saved_configuration`)]}),(0,G.jsx)(`input`,{ref:n,type:`file`,accept:`.json,application/json`,"aria-label":z(`settings:choose_configuration_file`),hidden:!0,onChange:e=>void O(e)})]}),(0,G.jsx)(`p`,{className:`gateway-help`,children:z(`settings:import_updates_service_settings_only_export_includes_initial`)}),(0,G.jsxs)(`form`,{onSubmit:e=>{e.preventDefault();let t=uO(a);v(t);let n=aO.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`})}):E(async()=>{c((await Qn.importGatewayConfig(fO(a,r.saved))).config)})},children:[(0,G.jsxs)(`fieldset`,{disabled:d||!r.writable,children:[(0,G.jsxs)(`section`,{className:`gateway-section`,children:[(0,G.jsx)(`h3`,{children:z(`settings:network_and_access`)}),(0,G.jsxs)(`div`,{className:`gateway-fields`,children:[aO.filter(e=>e.group===`network`).map(N),(0,G.jsxs)(`label`,{className:`project-field`,children:[(0,G.jsx)(`span`,{children:z(`common:authentication_mode`)}),(0,G.jsxs)(`select`,{"aria-label":z(`common:authentication_mode`),value:a.mode,onChange:e=>o({...a,mode:e.target.value}),children:[(0,G.jsx)(`option`,{value:`local`,children:z(`settings:local_tailscale_local`)}),(0,G.jsx)(`option`,{value:`cloudflare-access`,children:`Cloudflare Access`})]}),(0,G.jsx)(`small`,{children:z(`settings:local_mode_listens_only_on_loopback_addresses_use`)}),a.mode!==A?.mode&&(0,G.jsx)(`small`,{className:`gateway-running`,children:z(`settings:currently_running`,{v0:A?.mode})})]})]})]}),(0,G.jsxs)(`section`,{className:`gateway-section`,children:[(0,G.jsx)(`h3`,{children:`Codex`}),(0,G.jsx)(`div`,{className:`gateway-fields`,children:aO.filter(e=>e.group===`codex`).map(N)})]}),(0,G.jsxs)(`section`,{className:`gateway-section`,children:[(0,G.jsx)(`h3`,{children:z(`settings:data_and_projects`)}),(0,G.jsx)(`div`,{className:`gateway-fields`,children:aO.filter(e=>e.group===`projects`).map(N)}),(0,G.jsxs)(`div`,{className:`gateway-file`,children:[(0,G.jsx)(`span`,{children:z(`settings:data_directory_read_only`)}),(0,G.jsx)(`code`,{children:r.saved.dataDir}),(0,G.jsx)(`span`,{children:z(`settings:current_runtime_directory`)}),(0,G.jsx)(`code`,{children:r.running.dataDir})]}),(0,G.jsx)(`p`,{className:`gateway-help`,children:z(`settings:changing_the_data_directory_requires_database_migration_while`)})]}),(0,G.jsxs)(`details`,{className:`gateway-section`,children:[(0,G.jsx)(`summary`,{children:z(`settings:advanced_settings`)}),(0,G.jsx)(`div`,{className:`gateway-fields`,children:aO.filter(e=>e.group===`advanced`).map(N)})]})]}),(0,G.jsxs)(`div`,{className:`gateway-save-bar`,children:[(0,G.jsx)(`span`,{children:z(w?`settings:unsaved_changes`:`settings:no_unsaved_changes`)}),(0,G.jsx)(K,{type:`submit`,disabled:d||!w||!r.writable||b,children:z(d?`settings:validating`:`settings:review_changes`)})]})]})]})]})]})}var gO=[`stable`,`beta`,`dev`],_O=e=>!!(e&&[`installing`,`waiting`,`stopping`,`verifying`].includes(e.phase)),vO=/^(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 yO(e){let t=vO.exec(e);return!(!t||t[4]&&!t[4].split(`.`).every(e=>!/^\d+$/.test(e)||e===`0`||!e.startsWith(`0`)))}function bO(e,t){if(!yO(e)||!yO(t))throw Error(`Invalid release version`);let n=vO.exec(e),r=vO.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 xO=`https://github.com/yuzheng14/covro/releases`;function SO(e){return`${xO}/tag/${encodeURIComponent(`v${e}`)}`}function CO({version:e}){let[t,n]=(0,y.useState)(),[r,i]=(0,y.useState)(0);return(0,y.useEffect)(()=>{let t=new AbortController;return Zn(`/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:SO(e),state:`error`,reason:`unavailable`})}),()=>t.abort()},[e,r]),(0,G.jsxs)(`section`,{className:`update-release-notes`,"aria-label":z(`updates:releaseNotes`),children:[(0,G.jsxs)(`div`,{className:`update-release-notes-heading`,children:[(0,G.jsx)(`h3`,{children:z(`updates:releaseNotesFor`,{version:e})}),(0,G.jsxs)(`a`,{href:t?.url??SO(e),target:`_blank`,rel:`noopener noreferrer`,children:[z(`updates:viewOnGitHub`),` `,(0,G.jsx)(mn,{size:12,"aria-hidden":`true`})]})]}),t?.state===`available`?(0,G.jsx)(`div`,{className:`update-release-notes-content`,role:`region`,"aria-label":z(`updates:releaseNotesContent`),tabIndex:0,children:(0,G.jsx)(RS,{text:t.body,externalBaseUrl:`https://github.com/yuzheng14/covro/blob/${encodeURIComponent(`v${e}`)}/`})}):(0,G.jsx)(`p`,{className:`subtle`,role:`status`,children:t?t.state===`missing`?z(`updates:releaseNotesMissing`):t.state===`empty`?z(`updates:releaseNotesEmpty`):t.reason===`rateLimited`?z(`updates:releaseNotesRateLimited`):z(`updates:releaseNotesFailed`):z(`updates:releaseNotesLoading`)}),t&&t.state!==`available`&&(0,G.jsx)(K,{variant:`ghost`,size:`sm`,onClick:()=>{n(void 0),i(e=>e+1)},children:z(`settings:retry`)})]})}var wO={get stable(){return z(`updates:stable`)},get beta(){return z(`updates:beta`)},get dev(){return z(`updates:development`)}},TO={get installing(){return z(`updates:installing_candidate_version`)},get waiting(){return z(`updates:waiting_for_tasks_to_finish`)},get stopping(){return z(`updates:backing_up_and_restarting`)},get verifying(){return z(`updates:verifying_new_version`)},get succeeded(){return z(`updates:update_successful`)},get rolledBack(){return z(`updates:previous_version_restored`)},get failed(){return z(`updates:update_failed`)}},EO={get verified(){return z(`updates:verified`)},get unverified(){return z(`updates:unverified`)},get unsupported(){return z(`updates:explicitly_unsupported`)},get unknown(){return z(`updates:cannot_confirm`)}};function DO({title:e,value:t}){return(0,G.jsxs)(`section`,{className:`update-codex`,"aria-label":e,"data-state":t.status,children:[(0,G.jsx)(`h3`,{children:e}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{children:`Codex CLI`}),(0,G.jsx)(`strong`,{children:t.version??z(`updates:unrecognized`)}),(0,G.jsx)(`span`,{className:`update-codex-status`,children:EO[t.status]})]}),t.manifest&&(0,G.jsx)(`p`,{className:`subtle`,children:z(`updates:recommended_verified`,{v0:t.manifest.recommended,v1:Dt(t.manifest.verified)})}),t.reason&&(0,G.jsx)(`p`,{children:t.reason})]})}function OO({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=_O(r?.run),m=f&&r&&yO(r.version)&&bO(f.version,r.version)===0,[h,g]=(0,y.useState)(),_=JSON.stringify([l,f?.version,f?.codex]),v=h===_,b=f?.codex,x=!m&&b?.status===`unverified`,S=!m&&f&&(!b||b.status===`unknown`||b.status===`unsupported`||x&&!v);return(0,y.useEffect)(()=>{g(void 0)},[_]),(0,y.useEffect)(()=>{let e=n.current;return e?.showModal(),()=>e?.close()},[]),(0,G.jsxs)(`dialog`,{ref:n,className:`project-dialog update-dialog`,"aria-labelledby":`update-title`,onCancel:e=>{e.preventDefault(),t()},children:[(0,G.jsxs)(`div`,{className:`project-dialog-heading`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(on,{size:20,"aria-hidden":`true`}),(0,G.jsx)(`h2`,{id:`update-title`,children:z(`common:covro_updates`)})]}),(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`updates:close_update_settings`),onClick:t,children:(0,G.jsx)(q,{name:`close`,size:17})})]}),(0,G.jsxs)(`div`,{className:`update-version`,children:[(0,G.jsx)(`span`,{children:z(`updates:current_covro`)}),(0,G.jsx)(`strong`,{children:r?.version??z(`common:loading_2`)}),r?.commit&&(0,G.jsx)(`code`,{children:r.commit.slice(0,8)})]}),r?.codex&&(0,G.jsx)(DO,{title:z(`updates:current_codex`),value:r.codex}),(0,G.jsxs)(`label`,{className:`update-channel`,children:[z(`updates:release_channel`),(0,G.jsx)(`select`,{"aria-label":z(`updates:release_channel`),value:l,disabled:i||p,onChange:t=>{let n=t.target.value;c(n),d(!1),g(void 0),e.check(n)},children:gO.map(e=>(0,G.jsx)(`option`,{value:e,children:wO[e]},e))})]}),(0,G.jsx)(`p`,{className:`subtle`,children:z(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,G.jsxs)(`div`,{className:`update-control`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:z(`updates:auto_update_when_idle`)}),(0,G.jsx)(`p`,{className:`subtle`,children:z(`updates:periodically_check_this_channel_and_install_verified_codex`)})]}),(0,G.jsx)(K,{role:`switch`,"aria-label":z(`updates:auto_update_when_idle`),"aria-checked":r?.settings.automatic??!1,variant:`secondary`,size:`sm`,disabled:i||p||!r?.supported,onClick:()=>r&&void e.configure({...r.settings,automatic:!r.settings.automatic}),children:r?.settings.automatic?z(`common:on`):z(`updates:disabled`)})]}),r&&l!==r.settings.channel&&(0,G.jsx)(`p`,{className:`subtle`,children:z(`updates:subscribed_to_switches_to_after_a_successful_update`,{v0:wO[r.settings.channel],v1:wO[l]})}),f&&(0,G.jsxs)(`div`,{className:`update-available`,children:[(0,G.jsx)(`span`,{children:m?z(`updates:this_channel_is_already_at_the_current_version`):f.downgrade?z(`updates:target_version`):z(`updates:available_version`)}),(0,G.jsx)(`strong`,{children:f.version}),(0,G.jsx)(`span`,{children:wO[f.channel]}),f.commit&&(0,G.jsx)(`code`,{children:f.commit.slice(0,8)})]}),f&&(0,G.jsx)(CO,{version:f.version},`${l}:${f.version}`),f?.codex&&(0,G.jsx)(DO,{title:z(`updates:target_version_compatibility`),value:f.codex}),x&&(0,G.jsxs)(`label`,{className:`update-downgrade update-codex-consent`,children:[(0,G.jsx)(`input`,{type:`checkbox`,"aria-label":z(`updates:allow_trying_an_unverified_codex_combination`),checked:v,disabled:i||p,onChange:e=>g(e.target.checked?_:void 0)}),z(`updates:i_agree_to_try_the_unverified_combination_of`,{v0:b?.version,v1:f?.version})]}),f&&!m&&l===r?.settings.channel&&r.settings.automatic&&b?.status!==`verified`&&(0,G.jsx)(`p`,{className:`update-notice`,role:`status`,children:b?.status===`unverified`?z(`updates:auto_update_is_paused_adjust_the_codex_version`):z(`updates:auto_update_is_paused_restore_the_codex_connection`)}),(0,G.jsxs)(`div`,{className:`update-buttons`,children:[(0,G.jsx)(K,{variant:`secondary`,disabled:i||p,onClick:()=>void e.check(l),children:z(i?`updates:processing`:`updates:check_for_updates`)}),(0,G.jsx)(K,{disabled:i||p||!f||!r?.supported||!!S||f.downgrade&&!u||m&&l===r.settings.channel,onClick:()=>void e.start(l,u,x&&v&&f?.codex.version?{version:f.codex.version,target:f.version}:void 0),children:m?z(`updates:use_this_channel`):f?.downgrade?z(`updates:switch_and_restart`):z(`updates:update_and_restart`)})]}),f?.downgrade&&(0,G.jsxs)(`label`,{className:`update-downgrade`,children:[(0,G.jsx)(`input`,{type:`checkbox`,checked:u,onChange:e=>d(e.target.checked)}),z(`updates:allow_downgrade_incompatible_databases_still_block_switching`)]}),r?.run&&(0,G.jsxs)(`section`,{className:`update-progress`,"data-phase":r.run.phase,role:`status`,children:[(0,G.jsx)(`strong`,{children:TO[r.run.phase]}),(0,G.jsxs)(`span`,{children:[r.run.from,` → `,r.run.target,r.run.sourceChannel&&` · ${wO[r.run.sourceChannel]}`]}),(0,G.jsx)(`p`,{children:z(`updates:${r.run.phase}Description`)}),(0,G.jsxs)(`details`,{children:[(0,G.jsx)(`summary`,{children:z(`common:technical_details`)}),(0,G.jsx)(`pre`,{children:r.run.message})]}),p&&(0,G.jsx)(`progress`,{"aria-label":z(`updates:update_progress`)})]}),(a||r?.checkError||o)&&(0,G.jsxs)(`div`,{className:`inline-error`,role:`alert`,children:[(0,G.jsx)(`p`,{children:V(o??a)??z(`updates:checkFailed`)}),r?.checkError&&(0,G.jsxs)(`details`,{children:[(0,G.jsx)(`summary`,{children:z(`common:technical_details`)}),(0,G.jsx)(`pre`,{children:r.checkError})]})]}),!r?.supported&&r?.unsupportedReason&&(0,G.jsxs)(`div`,{className:`update-notice`,children:[(0,G.jsx)(`p`,{children:z(`updates:manualUpdate`)}),(0,G.jsxs)(`details`,{children:[(0,G.jsx)(`summary`,{children:z(`common:technical_details`)}),(0,G.jsx)(`pre`,{children:r.unsupportedReason})]})]}),(0,G.jsxs)(`p`,{className:`update-source`,children:[z(`updates:version_source_official_npm_registry`,{v0:f?f.channel===`stable`?`latest`:f.channel:l===`stable`?`latest`:`latest / ${l}`}),(0,G.jsxs)(`a`,{href:xO,target:`_blank`,rel:`noreferrer`,children:[z(`updates:update_history`),(0,G.jsx)(mn,{size:12,"aria-hidden":`true`})]})]}),(0,G.jsx)(`p`,{className:`subtle`,children:z(`updates:updates_preserve_configuration_projects_and_session_history_processing`)})]})}function kO(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 AO=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(z(`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(z(`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(z(`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=kO(e,t.page.turns);return{...this.latest,turns:kO(e,this.latest.turns),history:{olderCursor:this.cursor}}}};function jO(e){return{...e,managed:!1,status:`unknown`,actions:[],execution:void 0,resumeError:void 0,runtimeSettings:void 0,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 MO=new eo,NO=(e,t,n,r=`latest`)=>JSON.stringify([e,t,n,r]),PO=class{scope;constructor(e){this.scope=e}async read(e,t,n){let r=await MO.read(NO(this.scope,e,t,n));if(r&&r.id===t&&S(r.projectId)===e&&Array.isArray(r.turns))try{return jO(r)}catch{return}}write(e,t){return MO.write(NO(this.scope,S(e.projectId),e.id,t),jO(e))}remove(e,t){return MO.remove(([n,r,i])=>n===this.scope&&r===e&&i===t)}};function FO(e,t,n){let{projectId:r,scope:i,forbidden:a}=n,o=(0,y.useMemo)(()=>i?new PO(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 AO(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 AO(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 Qn.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=$i(i),i instanceof Xn&&[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:x?m.thread:void 0,loadOlder:_,loadCachedOlder:v,getHistoryCursor:b}}function IO(){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.3.1-dev.3`&&!c.current&&(!e.run||e.run.committed||[`rolledBack`,`failed`].includes(e.run.phase)))){c.current=!0;try{await yo()}catch(e){c.current=!1,s(e instanceof Error?e.message:z(`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 Zn(`/api/updates`);e&&n===u.current&&await d(t)}catch{e&&r(B(`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 Zn(e,t))}catch(e){r(e instanceof Error?e.message:B(`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),start:(e,t,n)=>f(`/api/updates/run`,{clientOperationId:crypto.randomUUID(),channel:e,allowDowngrade:t,codexConfirmation:n})}}function LO(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 RO(e,t=`|`){return e.map(e=>ck(e)).join(t)}function zO(e,t){return typeof t==`bigint`?t.toString():t}var BO=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 VO(e){return new BO(e)}function HO(e){return e==null}function UO(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function WO(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function GO(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function KO(e){return GO(e._zod.def)??e._zod.def.shape}function qO(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return WO(this,t,e),e},enumerable:!0,configurable:!0})}function JO(e,t,n){t in e?WO(e,t,n):e[t]=n}function YO(e,t,n,r){let i=KO(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?qO(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):JO(e,a,r?r(n.value,a):n.value))}}function XO(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?qO(e,n,()=>t[n]):JO(e,n,r.value))}}function ZO(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function QO(e){return JSON.stringify(e)}function $O(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var ek=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function tk(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var nk=VO(()=>{if(Qk.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function rk(e){if(tk(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return tk(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function ik(e){return rk(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var ak=new Set([`string`,`number`,`symbol`]);function ok(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function sk(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Q(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 ck(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function lk(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var uk={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},dk={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function fk(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 YO(i,e,pk(e,t)),sk(e,ZO(n,{shape:i,checks:[]}))}function pk(e,t){let n=KO(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 mk(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(pk(e,t)),a={};return YO(a,e,Reflect.ownKeys(KO(e)).filter(e=>!i.has(e))),sk(e,ZO(n,{shape:a,checks:[]}))}function hk(e,t){if(!rk(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=KO(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 sk(e,ZO(e._zod.def,{shape:gk(e,t)}))}function gk(e,t){let n={};return YO(n,e,Reflect.ownKeys(KO(e))),XO(n,t),n}function _k(e,t){if(!rk(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return sk(e,ZO(e._zod.def,{shape:gk(e,t)}))}function vk(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 YO(n,e,Reflect.ownKeys(KO(e))),YO(n,t,Reflect.ownKeys(KO(t))),sk(e,ZO(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function yk(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(pk(t,n)):void 0,o={};return YO(o,t,Reflect.ownKeys(KO(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),sk(t,ZO(t._zod.def,{shape:o,checks:[]}))}function bk(e,t,n){let r=n?new Set(pk(t,n)):void 0,i={};return YO(i,t,Reflect.ownKeys(KO(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),sk(t,ZO(t._zod.def,{shape:i}))}function xk(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 Sk(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 Ck(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function wk(e){return typeof e==`string`?e:e?.message}function Tk(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 Ek(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Dk(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:wk(e.inst?._zod.def?.error?.(e))??wk(a?.(e))??wk(t?.error?.(e))??wk(n.customError?.(e))??wk(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 Ok=/[\uD800-\uDBFF]/;function kk(e){let t=e.length;if(!Ok.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 Ak(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function jk(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 Mk(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Nk(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Lk(e,n,r.value)}}function Pk(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Fk(e,t,n){return Pk(e,t,n,!1)}function Ik(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return Pk(this,n,r(this))},set(e){Pk(this,n,e)}})}return t}function Lk(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Pk(this,t,n.bind(this))},set(e){Pk(this,t,e)}})}function Rk(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var zk,Bk=!1,Vk={configurable:!0,get(){Bk=!0}};function Hk(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&zk!==e._zod?zk=void 0:(zk=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Vk);let e=Bk;Bk=!1;try{let r=n(this);return Bk?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),Bk||=e,r}catch(n){throw delete this[t],Bk||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function Uk(e,t,n,r){let i=Rk(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 Wk=`~constantCatch`;function Gk(e){let t=()=>e;return t[Wk]=!0,t}var Kk,qk={value:void 0,enumerable:!1},Jk=`captureStackTrace`in Error?Error:null;function Yk(e){let t=Jk;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Jk=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function $(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){qk.value=new a(r);try{Object.defineProperty(n,"_zod",qk)}finally{qk.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),Nk(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?Yk(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 Xk=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Zk=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(Kk=globalThis).__zod_globalConfig??(Kk.__zod_globalConfig={});var Qk=globalThis.__zod_globalConfig;function $k(e){return e&&Object.assign(Qk,e),Qk}function eA(){let e=this._zod;return e.message??=JSON.stringify(e.def,zO,2),e.message}function tA(e){this._zod.message=e}var nA={get:eA,set:tA,enumerable:!0,configurable:!0},rA={value:void 0,enumerable:!1},iA=new WeakSet([Object.prototype,Error.prototype]),aA=(e,t)=>{e.name=`$ZodError`,rA.value=t,Object.defineProperty(e,"issues",rA),rA.value=void 0,Object.defineProperty(e,"message",nA);let n=Object.getPrototypeOf(e);iA.has(n)||(iA.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})}}))},oA=$(`$ZodError`,aA);$(`$ZodError`,aA,void 0,{Parent:Error});function sA(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 cA(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?sA(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function lA(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 uA(e,t){return{callee:t?.callee??e,Err:t?.Err}}var dA=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 Xk;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>Dk(e,o,$k())));throw ek(n,a?.callee??t),n}return s.value};return t},fA=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=>Dk(e,o,$k())));throw ek(n,a?.callee??t),n}return s.value};return t},pA=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 Xk;return a.issues.length?mA(e,a.issues,i):{success:!0,data:a.value}};function mA(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>Dk(e,n,$k()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var hA=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?mA(e,a.issues,i):{success:!0,data:a.value}},gA=Symbol.for(`zod.compile.invalid`),_A=Symbol.for(`zod.compile.fallback`),vA=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==gA)return!0;if(r.definite===!0&&n===void 0)return!1}return yA(e,t,n)});function yA(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[_A]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new Xk;return a.issues.length===0}var bA=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},xA=e=>{let t=dA(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,uA(n,a))};return n},SA=e=>{let t=dA(e),n=(e,r,i,a)=>t(e,r,i,uA(n,a));return n},CA=e=>{let t=fA(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,uA(n,a))};return n},wA=e=>{let t=fA(e),n=async(e,r,i,a)=>await t(e,r,i,uA(n,a));return n},TA=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return pA(e)(t,n,i)},EA=e=>(t,n,r)=>pA(e)(t,n,r),DA=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return hA(e)(t,n,i)},OA=e=>async(t,n,r)=>hA(e)(t,n,r),kA=/^[cC][0-9a-z]{6,}$/,AA=/^[0-9a-z]+$/,jA=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,MA=/^[0-9a-vA-V]{20}$/,NA=/^[A-Za-z0-9]{27}$/,PA=/^[a-zA-Z0-9_-]{21}$/;function FA(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var IA=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,LA=/^([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})$/,RA=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)$/,zA=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,BA=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function VA(){return new RegExp(BA,`u`)}var HA=/^(?:(?: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])$/,UA=/^(([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}|:))$/,WA=/^((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])$/,GA=/^(([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])$/,KA=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,qA=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,JA=/^https?$/,YA=/^\+[1-9]\d{6,14}$/,XA=`(?:(?:\\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 ZA(e){return RegExp(`^${e}$`)}var QA=ZA(XA);function $A(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 ej(e){return RegExp(`^${$A(e)}$`)}function tj(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${$A({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${$A({precision:e.precision})}`:n;return RegExp(`^${XA}T(?:${r})$`)}var nj=/^[\s\S]{0,}$/,rj=/^[^A-Z]*$/,ij=/^[^a-z]*$/,aj=$(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),oj=e=>{let t=e.value;return!HO(t)&&t.length!==void 0},sj=$(`$ZodCheckMaxLength`,(e,t)=>{var n;aj.init(e,t),(n=e._zod.def).when??(n.when=oj),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?kk(r):i)<=t.maximum)return;let a=Ak(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),cj=$(`$ZodCheckMinLength`,(e,t)=>{var n;aj.init(e,t),(n=e._zod.def).when??(n.when=oj),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?kk(r):i)>=t.minimum)return;let a=Ak(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),lj=$(`$ZodCheckLengthEquals`,(e,t)=>{var n;aj.init(e,t),(n=e._zod.def).when??(n.when=oj),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?kk(r):i;if(a===t.length)return;let o=Ak(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})}}),uj=$(`$ZodCheckStringFormat`,(e,t)=>{var n,r;aj.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=()=>{})}),dj=$(`$ZodCheckRegex`,(e,t)=>{uj.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})}}),fj=$(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=rj,uj.init(e,t)}),pj=$(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=ij,uj.init(e,t)}),mj=$(`$ZodCheckIncludes`,(e,t)=>{aj.init(e,t);let n=ok(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})}}),hj=$(`$ZodCheckStartsWith`,(e,t)=>{aj.init(e,t);let n=RegExp(`^${ok(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})}}),gj=$(`$ZodCheckEndsWith`,(e,t)=>{aj.init(e,t);let n=RegExp(`.*${ok(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})}}),_j=$(`$ZodCheckOverwrite`,(e,t)=>{aj.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),vj=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(`
94
- `).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(`
95
- `)}\n};`)(...Object.values(this.closed))}},yj={major:4,minor:6,patch:6},bj=$(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=yj;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=xk(t),a;for(let o of n){if(o._zod.def.when){if(Sk(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 Xk;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(Ek(t.issues,n,e),i||=xk(t,n))});else{if(t.issues.length===n)continue;Ek(t.issues,n,e),i||=xk(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(xk(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new Xk;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 Xk;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return Fk(this,`~standard`,Cj(this))},set"~standard"(e){Pk(this,`~standard`,e)}}),xj=(e,t)=>e.issues.length?{issues:e.issues.map(e=>Dk(e,t,$k()))}:{value:e.value};async function Sj(e,t){let n={async:!0};return xj(await e._zod.run({value:t,issues:[]},n),n)}function Cj(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return xj(r,n)}catch{}return Sj(e,t)},vendor:`zod`,version:1}}var wj=$(`$ZodString`,(e,t)=>{bj.init(e,t),e._zod.pattern=t.pattern??nj,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}}),Tj=$(`$ZodStringFormat`,(e,t)=>{uj.init(e,t),wj.init(e,t)}),Ej=$(`$ZodGUID`,(e,t)=>{t.pattern??=LA,Tj.init(e,t)}),Dj=$(`$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??=RA(e)}else t.pattern??=RA();Tj.init(e,t)}),Oj=$(`$ZodEmail`,(e,t)=>{t.pattern??=zA,Tj.init(e,t)});function kj(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Aj(e,t){return!(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?kj(e)||2:jj(e,t)}function jj(e,t){if(!t.normalize&&t.protocol?.source===JA.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 Mj=/[\t\n\r]/g;function Nj(e){return e.replace(Mj,``)}function Pj(e,t){return t.lastIndex=0,t.test(e.hostname)}function Fj(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var Ij=$(`$ZodURL`,(e,t)=>{Tj.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=Aj(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=Nj(r);return}t.hostname&&!Pj(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&&!Fj(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:Nj(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Lj=$(`$ZodEmoji`,(e,t)=>{t.pattern??=VA(),Tj.init(e,t)}),Rj=$(`$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?PA:FA(t.length),Tj.init(e,t)}),zj=$(`$ZodCUID`,(e,t)=>{t.pattern??=kA,Tj.init(e,t)}),Bj=$(`$ZodCUID2`,(e,t)=>{t.pattern??=AA,Tj.init(e,t)}),Vj=$(`$ZodULID`,(e,t)=>{t.pattern??=jA,Tj.init(e,t)}),Hj=$(`$ZodXID`,(e,t)=>{t.pattern??=MA,Tj.init(e,t)}),Uj=$(`$ZodKSUID`,(e,t)=>{t.pattern??=NA,Tj.init(e,t)}),Wj=$(`$ZodISODateTime`,(e,t)=>{t.pattern??=tj(t),Tj.init(e,t)}),Gj=$(`$ZodISODate`,(e,t)=>{t.pattern??=QA,Tj.init(e,t)}),Kj=$(`$ZodISOTime`,(e,t)=>{t.pattern??=ej(t),Tj.init(e,t)}),qj=$(`$ZodISODuration`,(e,t)=>{t.pattern??=IA,Tj.init(e,t)}),Jj=$(`$ZodIPv4`,(e,t)=>{t.pattern??=HA,Tj.init(e,t)}),Yj=/^[0-9a-fA-F:.]+$/;function Xj(e){return Yj.test(e)?kj(`http://[${e}]`):!1}var Zj=$(`$ZodIPv6`,(e,t)=>{t.pattern??=UA,Tj.init(e,t),e._zod.check=n=>{Xj(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),Qj=$(`$ZodCIDRv4`,(e,t)=>{t.pattern??=WA,Tj.init(e,t)});function $j(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:Xj(n)}var eM=$(`$ZodCIDRv6`,(e,t)=>{t.pattern??=GA,Tj.init(e,t),e._zod.check=n=>{$j(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function tM(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var nM=/^[0-9a-zA-Z+/]*={0,2}$/,rM=$(`$ZodBase64`,(e,t)=>{t.pattern??=nM,Tj.init(e,t),e._zod.check=n=>{tM(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),iM=/^[A-Za-z0-9_-]*$/;function aM(e){if(!iM.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return tM(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var oM=$(`$ZodBase64URL`,(e,t)=>{t.pattern??=iM,Tj.init(e,t),e._zod.check=n=>{aM(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),sM=$(`$ZodE164`,(e,t)=>{t.pattern??=YA,Tj.init(e,t)});function cM(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 lM=$(`$ZodJWT`,(e,t)=>{Tj.init(e,t),e._zod.check=n=>{cM(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),uM=$(`$ZodUnknown`,(e,t)=>{bj.init(e,t),e._zod.parse=e=>e}),dM=$(`$ZodNever`,(e,t)=>{bj.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function fM(e,t){let n=Tk(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 Tk(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,Ek(n.issues,t,e),n}}return i(n,a)}}var pM=e=>Array.isArray(e)?e.length:-1;function mM(e,t,n){e.issues.length&&t.issues.push(...Ck(n,e.issues)),t.value[n]=e.value}var hM=$(`$ZodArray`,(e,t)=>{bj.init(e,t);let n=Qk.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=>mM(t,r,e)));else if(mM(c,r,e),s&&c.issues.length!==0&&xk(c))break}return o.length?Promise.all(o).then(()=>r):r},fM(e,pM)});function gM(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(...Ck(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 _M=[];function vM(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:_M,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=lk(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function yM(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(xk(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=>gM(e,n,i,t,d,f))):gM(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 bM=$(`$ZodObject`,(e,t)=>{bj.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=VO(()=>vM(t));Hk(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)||WO(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=tk,o=t.catchall,s,c=Qk.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(xk(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=>gM(n,t,e,r,a,o))):gM(s,t,e,r,a,o)}return o?yM(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),xM=$(`$ZodObjectJIT`,(e,t)=>{bM.init(e,t);let n=e._zod.parse,r=VO(()=>vM(t)),i=Qk.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new vj([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
96
- let ${e}_ab = false;
97
- for (let i = 0; i < ${e}.issues.length; i++) {
98
- const iss = ${e}.issues[i];
99
- iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
100
- payload.issues.push(iss);
101
- if (iss.continue !== true) ${e}_ab = true;
102
- }
103
- if (${e}_ab && ctx && ctx.abortEarly) {
104
- payload.value = newResult;
105
- return payload;
106
- }`;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)}]`:QO(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(`
107
- const ${n}_present = ${i};
108
- if (!${n}.issues.length || ${n}_present) {
109
- if (${n}.issues.length) {${c(n,r)}
110
- }
111
-
112
- if (${e}) {
113
- newResult[${r}] = ${n}.value;
114
- }
115
- }
116
-
117
- `)}else f?(o.write(`
118
- if (${n}.issues.length) {${c(n,r)}
119
- }
120
- `),d===`defaulted`?o.write(`newResult[${r}] = ${n}.value;`):o.write(`
121
- if (${n}.value !== undefined || ${i}) {
122
- newResult[${r}] = ${n}.value;
123
- }
124
- `)):o.write(`
125
- const ${n}_present = ${i};
126
- if (${n}.issues.length) {${c(n,r)}
127
- }
128
- if (!${n}_present && !${n}.issues.length) {
129
- payload.issues.push({
130
- code: "invalid_type",
131
- expected: "nonoptional",
132
- input: undefined,
133
- path: [${r}]
134
- });
135
- if (ctx && ctx.abortEarly) {
136
- payload.value = newResult;
137
- return payload;
138
- }
139
- }
140
-
141
- if (${n}_present) {
142
- newResult[${r}] = ${n}.value;
143
- }
144
-
145
- `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=tk,c=!Qk.jitless,l=c&&nk.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?yM([],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 SM(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=>!xk(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=>Dk(e,r,$k())))}),t)}var CM=$(`$ZodUnion`,(e,t)=>{bj.init(e,t),Hk(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),Hk(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),Hk(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)))}),Hk(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=>UO(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=>SM(t,r,e,i)):SM(o,r,e,i)}}),wM=$(`$ZodIntersection`,(e,t)=>{bj.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])=>EM(e,t,n)):EM(e,i,a)}});function TM(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(rk(e)&&rk(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=TM(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=TM(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 EM(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=TM(t.value,n.value);if(!c.valid){if(xk(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var DM=$(`$ZodEnum`,(e,t)=>{bj.init(e,t);let n=LO(t.entries),r=new Set(n);e._zod.values=r,Hk(e,`pattern`,e=>{let t=LO(e.def.entries).filter(e=>ak.has(typeof e));return RegExp(t.length?`^(${t.map(e=>ok(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}}),OM=$(`$ZodTransform`,(e,t)=>{bj.init(e,t),e._zod.optin=`optional`,Qk.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Zk(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 Xk;return n.value=i,n}});function kM(e,t){return e.value=t.issues.length?void 0:t.value,e}var AM=$(`$ZodOptional`,(e,t)=>{bj.init(e,t),Hk(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,Hk(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),Hk(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${UO(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=>kM(e,t)):kM(e,r)}return t.innerType._zod.run(e,n)}}),jM=$(`$ZodExactOptional`,(e,t)=>{AM.init(e,t),Hk(e,`values`,e=>e.def.innerType._zod.values),Hk(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),MM=$(`$ZodNullable`,(e,t)=>{bj.init(e,t),Hk(e,`optin`,e=>e.def.innerType._zod.optin),Hk(e,`optout`,e=>e.def.innerType._zod.optout),Hk(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${UO(t.source)}|null)$`):void 0}),Hk(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)}),NM=$(`$ZodDefault`,(e,t)=>{bj.init(e,t),e._zod.optin=`defaulted`,Hk(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=>PM(e,t)):PM(r,t)}});function PM(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var FM=$(`$ZodPrefault`,(e,t)=>{bj.init(e,t),e._zod.optin=`defaulted`,Hk(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))}),IM=$(`$ZodNonOptional`,(e,t)=>{bj.init(e,t),Hk(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=>LM(t,e)):LM(i,e)}});function LM(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 RM(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>Dk(e,r,$k()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var zM=$(`$ZodCatch`,(e,t)=>{bj.init(e,t),Hk(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),Hk(e,`optout`,e=>e.def.innerType._zod.optout),Hk(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=>RM(e,r,t,n)):RM(e,r,t,n)}}),BM=$(`$ZodPipe`,(e,t)=>{bj.init(e,t),Hk(e,`values`,e=>e.def.in._zod.values),Hk(e,`optin`,e=>e.def.in._zod.optin),Hk(e,`optout`,e=>e.def.out._zod.optout),Hk(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=>VM(e,t.in,n)):VM(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>VM(e,t.out,n)):VM(r,t.out,n)}});function VM(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 HM=$(`$ZodReadonly`,(e,t)=>{bj.init(e,t),Hk(e,`propValues`,e=>e.def.innerType._zod.propValues),Hk(e,`values`,e=>e.def.innerType._zod.values),Hk(e,`optin`,e=>e.def.innerType?._zod?.optin),Hk(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(UM):UM(r)}});function UM(e){return e.memo||(e.value=Object.freeze(e.value)),e}var WM=$(`$ZodCustom`,(e,t)=>{aj.init(e,t),bj.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=>GM(t,n,r,e));GM(i,n,r,e)}});function GM(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(Mk(e))}}var KM=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},qM=`~memo`,JM=[];function YM(e){return typeof e==`object`&&!!e}function XM(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var ZM=new WeakMap,QM=0,$M=1,eN=2;function tN(e,t,n){let r=ZM.get(e);if(r!==void 0)return r?eN:QM;if(t.has(e))return eN;t.add(e);let i=QM,a=e=>{if(i!==eN&&e?._zod){let r=tN(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=QM;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?$M:o.value?._zod?tN(o.value,t,n):QM;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=GO(c);s(e?o(e,!0):$M),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?tN(r,t,!1):$M);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),nN(e,i)}function nN(e,t){return t!==$M&&ZM.set(e,t===eN),t}function rN(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var iN,aN=[],oN={alloc(e,t,n){let r=iN;if(!r)return n;iN=void 0;let i={value:n,issues:null};return r.set(t.value,i),aN.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`&&cN(n,e.value))throw new KM;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=tN(e,new Set,!1);if(i===QM)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===eN||r?n=!0:r=!0}let l=s.value;if(!YM(l))return t(s,c);let u=c[qM];u||(u={buckets:new WeakMap,backEdges:void 0},c[qM]=u);let d;i===c?d=a:(d=rN(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(...XM(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;iN=d;let p=aN.length,m=t(s,c);iN=void 0;let h=aN.length>p?aN.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?XM(e.issues):JM),e)):(h&&(h.issues=m.issues.length?XM(m.issues):JM),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function sN(){return oN}function cN(e,t){let n=e[qM]?.backEdges;return n!==void 0&&YM(t)&&n.has(t)}var lN=()=>{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(jk(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${ck(e.values[0])}`:`Invalid option: expected one of ${RO(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`:``}: ${RO(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 uN(){return{localeError:lN()}}var dN,fN=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 pN(){return new fN}(dN=globalThis).__zod_globalRegistry??(dN.__zod_globalRegistry=pN());var mN=globalThis.__zod_globalRegistry;function hN(e){return e.checks&&=[...e.checks],e}function gN(e,t){return new e(hN({type:`string`,...Q(t)}))}function _N(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Q(t)})}function vN(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Q(t)})}function yN(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Q(t)})}function bN(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Q(t)})}function xN(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Q(t)})}function SN(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Q(t)})}function CN(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Q(t)})}function wN(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Q(t)})}function TN(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Q(t)})}function EN(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Q(t)})}function DN(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Q(t)})}function ON(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Q(t)})}function kN(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Q(t)})}function AN(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Q(t)})}function jN(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Q(t)})}function MN(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Q(t)})}function NN(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Q(t)})}function PN(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Q(t)})}function FN(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Q(t)})}function IN(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Q(t)})}function LN(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Q(t)})}function RN(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Q(t)})}function zN(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Q(t)})}function BN(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Q(t)})}function VN(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Q(t)})}function HN(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Q(t)})}function UN(e){return new e({type:`unknown`})}function WN(e,t){return new e({type:`never`,...Q(t)})}function GN(e,t){return new sj({check:`max_length`,...Q(t),maximum:e})}function KN(e,t){return new cj({check:`min_length`,...Q(t),minimum:e})}function qN(e,t){return new lj({check:`length_equals`,...Q(t),length:e})}function JN(e,t){return new dj({check:`string_format`,format:`regex`,...Q(t),pattern:e})}function YN(e){return new fj({check:`string_format`,format:`lowercase`,...Q(e)})}function XN(e){return new pj({check:`string_format`,format:`uppercase`,...Q(e)})}function ZN(e,t){return new mj({check:`string_format`,format:`includes`,...Q(t),includes:e})}function QN(e,t){return new hj({check:`string_format`,format:`starts_with`,...Q(t),prefix:e})}function $N(e,t){return new gj({check:`string_format`,format:`ends_with`,...Q(t),suffix:e})}function eP(e){return new _j({check:`overwrite`,tx:e})}function tP(e){return eP(t=>t.normalize(e))}function nP(){return eP(e=>e.trim())}function rP(){return eP(e=>e.toLowerCase())}function iP(){return eP(e=>e.toUpperCase())}function aP(){return eP(e=>$O(e))}function oP(e,t,n){return new e({type:`array`,element:t,...Q(n)})}function sP(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Q(n)})}function cP(e,t){let n=lP(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Mk(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(Mk(r))}},e(t.value,t)),t);return n}function lP(e,t){let n=new aj({check:`custom`,...Q(t)});return n._zod.check=e,n}function uP(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&WO(e,t,n[t]);return e}function dP(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??mN,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 fP(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 pP(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,pP(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&uP(o.schema,c),t.io===`input`&&CP(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 mP(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function hP(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}/${mP(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+mP(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>
146
-
147
- 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 gP(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;gP(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 _P=new Set([`type`,`properties`,`required`,`additionalProperties`]),vP=[`oneOf`,`anyOf`];function yP(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function bP(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!_P.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]??yP(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}WO(n,r,e.length===1?e[0]:bP(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=yP(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 xP(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of _P)if(t in e)return;let n=t.filter(e=>vP.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=bP(t);else{let e=n[0],i=vP.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=>bP([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,uP(e,r))}function SP(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)):uP(i,s),uP(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())gP(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)??[])xP(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)}uP(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,WO(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:TP(t,`input`,e.processors),output:TP(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function CP(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 CP(r.element,n);if(r.type===`set`)return CP(r.valueType,n);if(r.type===`lazy`)return CP(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 CP(r.innerType,n);if(r.type===`intersection`)return CP(r.left,n)||CP(r.right,n);if(r.type===`record`||r.type===`map`)return CP(r.keyType,n)||CP(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:CP(r.in,n)||CP(r.out,n);if(r.type===`object`){for(let e in r.shape)if(CP(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(CP(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(CP(e,n))return!0;return!!(r.rest&&CP(r.rest,n))}return!1}var wP=(e,t={})=>n=>{let r=dP({...n,processors:t});return pP(e,r),hP(r,e),SP(r,e)},TP=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=dP({...i??{},target:a,io:t,processors:n});return pP(e,o),hP(o,e),SP(o,e)},EP=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},DP=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},OP=(e,t)=>{EP(e,`minimum`,t),DP(e,`maximum`,t)},kP=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},AP=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},jP=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},MP=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},NP=(e,t)=>EP(e,`minimum`,t.minimum),PP=(e,t)=>DP(e,`maximum`,t.maximum),FP=e=>(t,n)=>{MP(t,n.format);let[r,i]=e[n.format];EP(t,`minimum`,r),DP(t,`maximum`,i)},IP={greater_than:(e,t)=>EP(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>DP(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>kP(e,t.value),number_format:FP(uk),bigint_format:FP(dk),min_length:NP,max_length:PP,length_equals:(e,t)=>OP(e,t.length),min_size:NP,max_size:PP,size_equals:(e,t)=>OP(e,t.size),string_format:(e,t)=>{MP(e,t.format),t.pattern&&AP(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)=>jP(e,t.mime)};function LP(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)IP[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&EP(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&EP(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&DP(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&DP(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&kP(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&jP(t,i.mime);for(let e of i.patterns??[])AP(t,e);return t}var RP={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},zP=new Map([[nM,KA],[iM,qA]]),BP=e=>zP.get(e)??e,VP=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=LP(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=RP[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(BP);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}))])}},HP=(e,t,n,r)=>{n.not={}},UP=(e,t,n,r)=>{let i=e._zod.def,a=LO(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)},WP=(e,t,n,r)=>{fP(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},GP=(e,t,n,r)=>{fP(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},KP=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=LP(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=pP(a.element,t,{...r,path:[...r.path,`items`]})};function qP(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?qP(t.out):t.type===`catch`?qP(t.innerType):e._zod.optin}var JP=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&fP(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)WO(i.properties,e,pP(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`?qP(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=pP(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},YP=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>pP(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},XP=(e,t,n,r)=>{let i=e._zod.def,a=pP(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=pP(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)},ZP=(e,t,n,r)=>{let i=e._zod.def,a=pP(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`}]},QP=(e,t,n,r)=>{let i=e._zod.def;pP(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},$P=Symbol();function eF(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(fP(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),$P):JSON.parse(o)}var tF=(e,t,n,r)=>{let i=e._zod.def;pP(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=eF(i.defaultValue,e,t,n,r);o!==$P&&(n.default=o)},nF=(e,t,n,r)=>{let i=e._zod.def;pP(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=eF(i.defaultValue,e,t,n,r);o!==$P&&(n._prefault=o)},rF=(e,t,n,r)=>{let i=e._zod.def;pP(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{fP(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},iF=(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;pP(o,t,r);let s=t.seen.get(e);s.ref=o},aF=(e,t,n,r)=>{let i=e._zod.def;pP(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},oF=(e,t,n,r)=>{let i=e._zod.def;pP(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},sF=new WeakSet([Object.prototype,Error.prototype]);function cF(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 lF=$(`ZodError`,(e,t)=>{oA.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);sF.has(n)||(sF.add(n),cF(n,`format`,e=>t=>lA(e,t)),cF(n,`flatten`,e=>t=>cA(e,t)),cF(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,zO,2)}),cF(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,zO,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),uF=dA(lF),dF=fA(lF),fF=pA(lF),pF=hA(lF),mF=xA(lF),hF=SA(lF),gF=CA(lF),_F=wA(lF),vF=TA(lF),yF=EA(lF),bF=DA(lF),xF=OA(lF);function SF(){Qk.localeError||$k(uN())}function CF(){Qk.memoizer||$k({memoizer:sN()})}var wF=$(`ZodType`,(e,t)=>(SF(),bj.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(ZO(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 sk(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(NI(e,t))},superRefine(e,t){return this.check(PI(e,t))},overwrite(e){return this.check(eP(e))},optional(){return hI(this)},exactOptional(){return _I(this)},nullable(){return yI(this)},nullish(){return hI(yI(this))},nonoptional(e){return TI(this,e)},array(){return rI(this)},or(e){return sI([this,e])},and(e){return lI(this,e)},transform(e){return kI(this,pI(e))},default(e){return xI(this,e)},prefault(e){return CI(this,e)},catch(e){return DI(this,e)},pipe(e){return kI(this,e)},readonly(){return jI(this)},describe(e){let t=this.clone();return mN.add(t,{description:e}),t},meta(...e){if(e.length===0)return mN.get(this);let t=this.clone();return mN.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 Fk(this,`~standard`,{...Cj(this),jsonSchema:{input:TP(this,`input`),output:TP(this,`output`)}})},set"~standard"(e){Pk(this,`~standard`,e)},parse:function e(t,n){return uF(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await dF(this,t,n,{callee:e})},safeParse(e,t){return fF(this,e,t)},async safeParseAsync(e,t){return pF(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Pk(this,`spa`,e)},validate(e,t){return vA(this,e,t)},validateAsync(e,t){return bA(this,e,t)},encode:function e(t,n){return mF(this,t,n,{callee:e})},decode:function e(t,n){return hF(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await gF(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await _F(this,t,n,{callee:e})},safeEncode(e,t){return vF(this,e,t)},safeDecode(e,t){return yF(this,e,t)},async safeEncodeAsync(e,t){return bF(this,e,t)},async safeDecodeAsync(e,t){return xF(this,e,t)},toJSONSchema(e){return wP(this,{})(e)},get description(){return mN.get(this)?.description},get _def(){return this._zod.def}}),TF=$(`_ZodString`,(e,t)=>{wj.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VP(e,t,n,r)},Ik({format:e=>LP(e).format??null,minLength:e=>LP(e).minimum??null,maxLength:e=>LP(e).maximum??null},{regex(...e){return this.check(JN(...e))},includes(...e){return this.check(ZN(...e))},startsWith(...e){return this.check(QN(...e))},endsWith(...e){return this.check($N(...e))},min(...e){return this.check(KN(...e))},max(...e){return this.check(GN(...e))},length(...e){return this.check(qN(...e))},nonempty(...e){return this.check(KN(1,...e))},lowercase(e){return this.check(YN(e))},uppercase(e){return this.check(XN(e))},trim(){return this.check(nP())},normalize(...e){return this.check(tP(...e))},toLowerCase(){return this.check(rP())},toUpperCase(){return this.check(iP())},slugify(){return this.check(aP())}})),EF=$(`ZodString`,(e,t)=>{wj.init(e,t),TF.init(e,t)},{email(e){return this.check(_N(NF,e))},url(e){return this.check(CN(IF,e))},jwt(e){return this.check(RN(ZF,e))},emoji(e){return this.check(wN(LF,e))},guid(e){return this.check(vN(PF,e))},uuid(e){return this.check(yN(FF,e))},uuidv4(e){return this.check(bN(FF,e))},uuidv6(e){return this.check(xN(FF,e))},uuidv7(e){return this.check(SN(FF,e))},nanoid(e){return this.check(TN(RF,e))},cuid(e){return this.check(EN(zF,e))},cuid2(e){return this.check(DN(BF,e))},ulid(e){return this.check(ON(VF,e))},base64(e){return this.check(FN(JF,e))},base64url(e){return this.check(IN(YF,e))},xid(e){return this.check(kN(HF,e))},ksuid(e){return this.check(AN(UF,e))},ipv4(e){return this.check(jN(WF,e))},ipv6(e){return this.check(MN(GF,e))},cidrv4(e){return this.check(NN(KF,e))},cidrv6(e){return this.check(PN(qF,e))},e164(e){return this.check(LN(XF,e))},datetime(e){return this.check(zN(kF,e))},date(e){return this.check(BN(AF,e))},time(e){return this.check(VN(jF,e))},duration(e){return this.check(HN(MF,e))}});function DF(e){return gN(EF,e)}var OF=$(`ZodStringFormat`,(e,t)=>{Tj.init(e,t),TF.init(e,t)}),kF=$(`ZodISODateTime`,(e,t)=>{Wj.init(e,t),OF.init(e,t)}),AF=$(`ZodISODate`,(e,t)=>{Gj.init(e,t),OF.init(e,t)}),jF=$(`ZodISOTime`,(e,t)=>{Kj.init(e,t),OF.init(e,t)}),MF=$(`ZodISODuration`,(e,t)=>{qj.init(e,t),OF.init(e,t)}),NF=$(`ZodEmail`,(e,t)=>{Oj.init(e,t),OF.init(e,t)}),PF=$(`ZodGUID`,(e,t)=>{Ej.init(e,t),OF.init(e,t)}),FF=$(`ZodUUID`,(e,t)=>{Dj.init(e,t),OF.init(e,t)}),IF=$(`ZodURL`,(e,t)=>{Ij.init(e,t),OF.init(e,t)}),LF=$(`ZodEmoji`,(e,t)=>{Lj.init(e,t),OF.init(e,t)}),RF=$(`ZodNanoID`,(e,t)=>{Rj.init(e,t),OF.init(e,t)}),zF=$(`ZodCUID`,(e,t)=>{zj.init(e,t),OF.init(e,t)}),BF=$(`ZodCUID2`,(e,t)=>{Bj.init(e,t),OF.init(e,t)}),VF=$(`ZodULID`,(e,t)=>{Vj.init(e,t),OF.init(e,t)}),HF=$(`ZodXID`,(e,t)=>{Hj.init(e,t),OF.init(e,t)}),UF=$(`ZodKSUID`,(e,t)=>{Uj.init(e,t),OF.init(e,t)}),WF=$(`ZodIPv4`,(e,t)=>{Jj.init(e,t),OF.init(e,t)}),GF=$(`ZodIPv6`,(e,t)=>{Zj.init(e,t),OF.init(e,t)}),KF=$(`ZodCIDRv4`,(e,t)=>{Qj.init(e,t),OF.init(e,t)}),qF=$(`ZodCIDRv6`,(e,t)=>{eM.init(e,t),OF.init(e,t)}),JF=$(`ZodBase64`,(e,t)=>{rM.init(e,t),OF.init(e,t)}),YF=$(`ZodBase64URL`,(e,t)=>{oM.init(e,t),OF.init(e,t)}),XF=$(`ZodE164`,(e,t)=>{sM.init(e,t),OF.init(e,t)}),ZF=$(`ZodJWT`,(e,t)=>{lM.init(e,t),OF.init(e,t)}),QF=$(`ZodUnknown`,(e,t)=>{uM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function $F(){return UN(QF)}var eI=$(`ZodNever`,(e,t)=>{dM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>HP(e,t,n,r)});function tI(e){return WN(eI,e)}var nI=$(`ZodArray`,(e,t)=>{CF(),hM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KP(e,t,n,r),e.element=t.element},{min(e,t){return this.check(KN(e,t))},nonempty(e){return this.check(KN(1,e))},max(e,t){return this.check(GN(e,t))},length(e,t){return this.check(qN(e,t))},unwrap(){return this.element}});function rI(e,t){return oP(nI,e,t)}var iI=$(`ZodObject`,(e,t)=>{CF(),xM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JP(e,t,n,r),Uk(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return dI(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(ZO(this._zod.def,{catchall:e}))},passthrough(){return this.clone(ZO(this._zod.def,{catchall:$F()}))},loose(){return this.clone(ZO(this._zod.def,{catchall:$F()}))},strict(){return this.clone(ZO(this._zod.def,{catchall:tI()}))},strip(){return this.clone(ZO(this._zod.def,{catchall:void 0}))},extend(e){return hk(this,e)},safeExtend(e){return _k(this,e)},merge(e){return vk(this,e)},pick(e){return fk(this,e)},omit(e){return mk(this,e)},partial(...e){return yk(mI,this,e[0])},exactPartial(...e){return yk(gI,this,e[0],`exactPartial`)},required(...e){return bk(wI,this,e[0])}});function aI(e,t){return new iI({type:`object`,shape:e??{},...Q(t)})}var oI=$(`ZodUnion`,(e,t)=>{CM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YP(e,t,n,r),e.options=t.options});function sI(e,t){return new oI({type:`union`,options:e,...Q(t)})}var cI=$(`ZodIntersection`,(e,t)=>{wM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XP(e,t,n,r)});function lI(e,t){return new cI({type:`intersection`,left:e,right:t})}var uI=$(`ZodEnum`,(e,t)=>{DM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UP(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 uI({...t,checks:[],...Q(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 uI({...t,checks:[],...Q(r),entries:i})}});function dI(e,t){return new uI({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Q(t)})}var fI=$(`ZodTransform`,(e,t)=>{CF(),OM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GP(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Zk(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Mk(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(Mk(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function pI(e){return new fI({type:`transform`,transform:e})}var mI=$(`ZodOptional`,(e,t)=>{AM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oF(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function hI(e){return new mI({type:`optional`,innerType:e})}var gI=$(`ZodExactOptional`,(e,t)=>{jM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oF(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _I(e){return new gI({type:`optional`,innerType:e})}var vI=$(`ZodNullable`,(e,t)=>{MM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yI(e){return new vI({type:`nullable`,innerType:e})}var bI=$(`ZodDefault`,(e,t)=>{NM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tF(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function xI(e,t){return new bI({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ik(t)}})}var SI=$(`ZodPrefault`,(e,t)=>{FM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nF(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function CI(e,t){return new SI({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ik(t)}})}var wI=$(`ZodNonOptional`,(e,t)=>{IM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function TI(e,t){return new wI({type:`nonoptional`,innerType:e,...Q(t)})}var EI=$(`ZodCatch`,(e,t)=>{zM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rF(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function DI(e,t){return new EI({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Gk(t)})}var OI=$(`ZodPipe`,(e,t)=>{BM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iF(e,t,n,r),e.in=t.in,e.out=t.out});function kI(e,t){return new OI({type:`pipe`,in:e,out:t})}var AI=$(`ZodReadonly`,(e,t)=>{HM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aF(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function jI(e){return new AI({type:`readonly`,innerType:e})}var MI=$(`ZodCustom`,(e,t)=>{WM.init(e,t),wF.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WP(e,t,n,r)});function NI(e,t={}){return sP(MI,e,t)}function PI(e,t){return cP(e,t)}aI({clientOperationId:DF().uuid(),command:DF().min(1).max(8192).refine(e=>!!e.trim()&&!e.includes(`\0`))}).strict();var FI=e=>e.status===`running`||e.status===`stopping`;function II(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(FI)||s?500:5e3;let g=(0,y.useCallback)((e,t=!1)=>{n(n=>{let r=new Map(n.map(e=>[e.id,t&&FI(e)?{...e,status:`unknown`,error:z(`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 Zn(`/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 Zn(`/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:z(`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?Vn(t.error):void 0)??B(`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 Zn(`/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?Vn(r.error):void 0)??B(`shell:command_could_not_start`)),!1;c({id:n,projectId:e,command:t})}catch(r){if(r instanceof Xn&&r.status>=400&&r.status<500)return o(r.message),!1;c({id:n,projectId:e,command:t}),o(B(`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 Zn(`/api/shell/${encodeURIComponent(e)}/interrupt`,{clientOperationId:crypto.randomUUID()});t.status!==`acknowledged`&&o((t.error?Vn(t.error):void 0)??B(`shell:interrupt_result_is_unconfirmed_refresh_and_check`)),await _()}catch(e){o(e instanceof Error?e.message:B(`shell:interrupt_failed_please_retry`))}finally{f(void 0)}},retry:async()=>{if(s&&!l){u(!0);try{let e=await Zn(`/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?Vn(e.error):void 0)??B(`shell:command_could_not_start`)))}catch(e){o(e instanceof Error?e.message:B(`shell:submission_is_still_unconfirmed`))}finally{u(!1)}}}}}function LI(e,t){(0,y.useEffect)(()=>{let n=e.current,r=window.visualViewport;if(!t||!n||!r)return;let i=0;function a(){n.removeAttribute(`data-mobile-input-focused`),n.style.removeProperty(`--input-viewport-height`),n.style.removeProperty(`--input-viewport-top`)}function o(){let e=document.activeElement;if(r.scale!==1||!(e instanceof HTMLTextAreaElement)||!e.closest(`.composer-box`)||!n.contains(e)){a();return}n.style.setProperty(`--input-viewport-height`,`${r.height}px`),n.style.setProperty(`--input-viewport-top`,`${r.offsetTop}px`),n.setAttribute(`data-mobile-input-focused`,`true`);let t=e.closest(`.bottom-region`);t&&(t.scrollTop=t.scrollHeight)}function s(){cancelAnimationFrame(i),i=requestAnimationFrame(o)}return r.addEventListener(`resize`,s),r.addEventListener(`scroll`,s),document.addEventListener(`focusin`,s),document.addEventListener(`focusout`,s),o(),()=>{cancelAnimationFrame(i),r.removeEventListener(`resize`,s),r.removeEventListener(`scroll`,s),document.removeEventListener(`focusin`,s),document.removeEventListener(`focusout`,s),a()}},[e,t])}var RI={get running(){return z(`common:running`)},get stopping(){return z(`shell:interrupting`)},get completed(){return z(`common:completed`)},get failed(){return z(`common:execution_failed`)},get interrupted(){return z(`common:interrupted`)},get unknown(){return z(`shell:result_unknown`)}};function zI({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(FI),g=n.commands.filter(e=>e.projectId!==f&&FI(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,G.jsxs)(`section`,{className:`shell-panel${i?` shell-collapsed`:``}`,"aria-label":z(`shell:shell_panel`),children:[(0,G.jsxs)(`header`,{className:`shell-header`,children:[(0,G.jsxs)(`div`,{className:`shell-heading`,children:[(0,G.jsx)(q,{name:`terminal`,size:17}),(0,G.jsx)(`strong`,{children:`Shell`}),(0,G.jsx)(`span`,{children:t?.name??z(`shell:select_a_project`)}),h&&(0,G.jsx)(`span`,{className:`shell-running`,children:RI[h.status]})]}),(0,G.jsxs)(`div`,{className:`shell-actions`,children:[(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(i?`shell:expand_shell`:`shell:collapse_shell`),"aria-expanded":!i,"aria-controls":`shell-body`,onClick:a,children:(0,G.jsx)(q,{name:i?`terminal`:`down`,size:15})}),(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`shell:close_shell_panel`),onClick:o,children:(0,G.jsx)(q,{name:`close`,size:15})})]})]}),i?(0,G.jsx)(`p`,{className:`shell-collapsed-note`,children:z(`shell:collapsing_does_not_stop_commands`,{v0:g.length?z(`shell:running_in_other_projects`,{count:g.length,v0:g.length}):``})}):(0,G.jsxs)(`div`,{id:`shell-body`,className:`shell-body`,children:[(0,G.jsxs)(`div`,{className:`shell-location`,children:[(0,G.jsx)(`span`,{children:z(`common:working_directory`)}),(0,G.jsx)(`code`,{children:t?.canonicalRoot??`—`})]}),(0,G.jsx)(`p`,{className:`shell-help`,children:z(`shell:commands_use_the_codex_server_sandbox_independently_of`)}),g.length>0&&(0,G.jsx)(`p`,{className:`shell-background`,role:`status`,children:z(`shell:still_running_in_other_projects_switch_to_view`,{v0:Dt(g.map(e=>e.projectName))})}),!n.connected&&(0,G.jsx)(`p`,{className:`shell-warning`,role:`status`,children:z(`shell:shell_disconnected_reconnecting_received_output_is_preserved_and`)}),n.error&&(0,G.jsx)(`p`,{className:`shell-warning`,role:`alert`,children:V(n.error)}),n.pending&&(0,G.jsxs)(`div`,{className:`shell-warning`,role:`status`,children:[z(`shell:checking_command_submission`),(0,G.jsx)(`code`,{children:n.pending.command}),` `,(0,G.jsx)(K,{variant:`secondary`,size:`sm`,disabled:!n.connected||n.submitting,onClick:()=>void n.retry(),children:z(`shell:check_and_retry_original_submission`)})]}),(0,G.jsxs)(`div`,{className:`shell-result`,children:[(0,G.jsxs)(`div`,{className:`shell-result-toolbar`,children:[(0,G.jsxs)(`label`,{children:[z(`shell:recent_commands`),(0,G.jsxs)(`select`,{"aria-label":z(`shell:recent_shell_commands`),value:m?.id??``,onChange:e=>u(t=>({...t,[f]:e.target.value})),children:[!p.length&&(0,G.jsx)(`option`,{value:``,children:z(`shell:not_run_yet`)}),p.map(e=>(0,G.jsxs)(`option`,{value:e.id,children:[RI[e.status],` · `,e.command.slice(0,70)]},e.id))]})]}),m&&(0,G.jsx)(K,{variant:`ghost`,size:`sm`,onClick:()=>v(m.command),children:z(`shell:reuse_command`)})]}),m?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`shell-command-line`,children:[(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`$`}),(0,G.jsx)(`code`,{children:m.command})]}),(0,G.jsx)(`pre`,{ref:d,className:`shell-output`,"aria-label":z(`shell:shell_output`),tabIndex:0,children:m.output.length?m.output.map((e,t)=>(0,G.jsx)(`span`,{className:e.stream===`stderr`?`shell-stderr`:void 0,children:e.text},t)):(0,G.jsx)(`span`,{className:`shell-output-empty`,children:FI(m)?z(`shell:waiting_for_output`):z(`shell:no_output`)})}),(0,G.jsxs)(`div`,{className:`shell-result-status shell-status-${m.status}`,role:`status`,children:[(0,G.jsx)(`span`,{children:RI[m.status]}),m.exitCode!==void 0&&(0,G.jsx)(`span`,{children:z(`shell:exit_code`,{v0:m.exitCode})}),m.truncated&&(0,G.jsx)(`span`,{children:z(`shell:output_truncated_64_kib_maximum`)})]}),m.error&&(0,G.jsx)(`p`,{className:`shell-warning`,role:`alert`,children:V(m.error)})]}):(0,G.jsxs)(`div`,{className:`shell-empty`,children:[(0,G.jsx)(q,{name:`terminal`,size:25}),(0,G.jsx)(`p`,{children:z(`shell:run_commands_in_the_project_directory_and_view`)}),(0,G.jsx)(`span`,{children:z(`shell:for_example_git_status_pwd_or_project_tests`)})]})]}),(0,G.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,G.jsx)(`label`,{className:`sr-only`,htmlFor:`shell-command-input`,children:z(`shell:shell_command`)}),(0,G.jsx)(`textarea`,{id:`shell-command-input`,rows:2,maxLength:8192,value:_,onChange:e=>v(e.target.value),placeholder:z(`shell:enter_a_command`),disabled:!t?.available,onKeyDown:e=>{e.key===`Enter`&&(e.ctrlKey||e.metaKey)&&e.currentTarget.form?.requestSubmit()}}),(0,G.jsxs)(`div`,{className:`shell-submit-row`,children:[(0,G.jsx)(`span`,{children:z(h?`shell:commands_run_on_the_server_and_can_be`:`shell:ctrl_enter_to_run_10_minute_limit`)}),h?(0,G.jsxs)(K,{variant:`destructive`,size:`sm`,disabled:!n.connected||!!n.interrupting||h.status===`stopping`,onClick:()=>void n.interrupt(h.id),children:[(0,G.jsx)(q,{name:`stop`,size:13}),h.status===`stopping`||n.interrupting===h.id?z(`shell:interrupting_2`):z(`shell:interrupt_command`)]}):(0,G.jsxs)(K,{type:`submit`,size:`sm`,disabled:!r||!n.connected||!_.trim()||!!n.pending||n.submitting,children:[(0,G.jsx)(q,{name:`terminal`,size:14}),n.submitting?z(`common:submitting`):z(`common:run_command`)]})]})]})]})]}):null}var BI=encodeURIComponent;function VI({threadId:e,getHistoryCursor:t,children:n}){let r=(0,y.useRef)(null);return LI(r,yD(navigator)),(0,G.jsx)(`div`,{className:`app-shell`,ref:r,children:(0,G.jsx)(sC,{threadId:e,getHistoryCursor:t,children:n})})}function HI(){St();let e=xo(),[t,n]=(0,y.useState)(!1),[r,i]=(0,y.useState)(!1),a=II(r),[o,s]=(0,y.useState)(!1),c=IO(),[l,u]=(0,y.useState)(!1),{isUnreadCompletion:d,markCompletedRead:f}=Eo(),[p,m]=(0,y.useState)(!1),[h,g]=(0,y.useState)(!1),[_,v]=(0,y.useState)(!1);(0,y.useEffect)(()=>{let e=window.matchMedia(`(min-width: 761px)`),t=()=>{e.matches&&m(!1)};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let[b,S]=(0,y.useState)(!1),[C,w]=(0,y.useState)(!1),T=(0,y.useRef)(!1),[E,D]=(0,y.useState)(),[O,k]=(0,y.useState)(!1),[A,j]=(0,y.useState)(!1),M=(0,y.useRef)(!1),N=e.projects.find(t=>t.id===e.projectId),ee=E?.kind===`manage`?e.projects.find(e=>e.id===E.id):void 0;(0,y.useEffect)(()=>{E?.kind===`manage`&&!ee&&D(void 0)},[E,ee]);let te=()=>{m(!1),D({kind:`add`})},{thread:P,system:F}=e,ne=e.authRequired||!!(e.threadReadFailure&&e.threadReadFailure.id===e.selectedId&&[401,403,404].includes(e.threadReadFailure.status)),re=FO(P,e.selectedId,{projectId:e.projectId,scope:e.cacheScope,forbidden:ne}),ie=(0,y.useRef)(void 0),ae=!(!F?.ready||F.authenticated===!1||e.connection!==`connected`||e.authRequired),oe=ae&&(e.projectId===`@unassigned`||!!N?.available)&&!Ia(F),se=Ra(F,e.connection,e.authRequired),ce=Fa(F)??``,I=(t,n=P?.id??``)=>e.busy.includes(`${t}:${n}`),le=t=>e.operations.some(e=>ka(e,t)),ue=P?.turns.findLast(e=>Zd(e.status)),de=P?.actions.filter(e=>e.status===`pending`||e.status===`responding`||e.kind===`unsupported`&&e.status===`expired`)??[],fe=P?le(P.id)&&!I(`resume`)||P.managed&&P.status===`unknown`||P.execution&&!P.execution.ended&&P.status===`unknown`:!I(`create`,e.projectId)&&le(e.projectId),pe=!!(P&&(!oe||P.archived||le(P.id)||I(`resume`)||P.execution&&!P.execution.ended)),{run:L,refreshThread:R}=e,me=(0,y.useCallback)(()=>{P&&!pe&&(ie.current=`${F?.codexEpoch}:${P.id}`,L(`resume`,P.id,`/api/threads/${BI(P.id)}/resume`).then(()=>R()))},[P,pe,F?.codexEpoch,L,R]);(0,y.useEffect)(()=>{if((!F?.ready||P?.archived)&&(ie.current=void 0),!P||P.managed||pe)return;let e=`${F?.codexEpoch}:${P.id}`;ie.current!==e&&me()},[P,F?.ready,F?.codexEpoch,pe,me]);let he=!!(P&&e.operations.some(e=>e.kind===`fork`&&ka(e,P.id))),ge=F?.capabilities.includes(`thread/fork`)??!1,_e=t=>I(`fork`,t)||e.operations.some(e=>e.kind===`fork`&&ka(e,t)),ve=t=>{if(_e(t.id))return z(`workspace:confirming_the_fork_wait_for_the_receipt_before`);if(!ge)return z(`workspace:this_codex_version_does_not_support_session_forks`);if(!ae)return z(`workspace:you_can_fork_once_the_connection_recovers_and`);if(t.projectId!==null&&!e.projects.find(e=>e.id===t.projectId)?.available)return z(`workspace:the_project_directory_is_unavailable_restore_access_before`);if(Ia(F))return z(`workspace:confirm_compatibility_with_the_current_codex_version_first`);if(t.historyVisible===!1||t.id===P?.id&&!P.turns.length)return z(`workspace:send_the_first_message_to_enable_forking_saved`)},ye=!!(P&&_e(P.id)),be=!(!P?.turns.length||ve(P)),xe=async t=>{if(!ve(t))return e.run(`fork`,t.id,`/api/threads/${BI(t.id)}/fork`,t.id===P?.id?{settings:e.settings}:{})},Se=()=>{P&&be&&xe(P)},Ce=e.connection!==`connected`,we=e.operations.filter(e=>e.kind===`confirmCompatibility`&&e.target===ce),Te=O||I(`confirmCompatibility`,ce)||we.some(e=>e.status===`accepted`||e.status===`dispatching`),Ee=we.some(e=>e.status===`unknown`&&!e.operation?.reconciliation);async function De(){if(!T.current){T.current=!0,w(!0);try{await Promise.all([e.refreshSystem(),e.refreshThread()]),await e.refreshOperations(!0)}finally{T.current=!1,w(!1)}}}async function Oe(){if(se&&!M.current){M.current=!0,k(!0);try{let t=await e.refreshSystem(),n=Ba(ce,t,e.connection,e.authRequired);if(!n)return;await e.run(`confirmCompatibility`,ce,`/api/system/compatibility/confirm`,n)}finally{M.current=!1,k(!1)}}}let ke={project:N,scopeId:e.projectId,selectedId:e.selectedId,thread:P,system:F,connection:e.connection,authRequired:e.authRequired,settings:e.settings,openDraft:e.openDraft,busy:e.busy,operations:e.operations,run:e.run,onResumeAttempt:()=>{ie.current=`${F?.codexEpoch}:${P?.id}`},refreshThread:e.refreshThread,openStatus:()=>S(!0),exportThread:HD},Ae=(0,y.useRef)(ke);Ae.current=ke;let je=_D(()=>Ae.current),Me=je.find(e=>e.name===`rename`);async function Ne(t,n,r){return!oe||e.restoringSelection||e.savingModelDefaults?!1:P?n&&!ue?!1:(await e.run(n?`steer`:`send`,P.id,`/api/threads/${BI(P.id)}/${n?`steer`:`turns`}`,n?{text:t,images:r,expectedTurnId:ue.id}:{text:t,images:r,settings:e.settings},{kind:`send`,key:e.draftKey,text:t,images:r}))?.status===`acknowledged`:!e.selectedId&&e.sendFirstMessage(t,r)}return(0,G.jsxs)(VI,{threadId:P?.id,getHistoryCursor:re.getHistoryCursor,children:[(0,G.jsx)(cf,{onBackups:()=>{m(!1),n(!0)},onGatewaySettings:()=>{m(!1),v(!0)},onUpdates:()=>{m(!1),u(!0)},appVersion:c.status?.version,updateAvailable:!!(c.status?.available&&c.status.available.version!==c.status.version),updating:_O(c.status?.run),onNotificationSettings:()=>{m(!1),g(!0)},notificationStatus:e.notifications.error?z(`workspace:check_settings`):e.notifications.enabled&&e.notifications.access===`granted`?z(`common:on`):z(`common:off`),archiveView:e.archiveView,onArchiveView:e.setArchiveView,onArchive:(t,n)=>{e.archiveThread(t,n)},onFork:e=>{xe(e).then(e=>{e?.status===`acknowledged`&&m(!1)})},forkDisabledReason:ve,forking:_e,archiveDisabledReason:t=>{if(I(`archive`,t.id))return z(`common:saving`);if(le(t.id))return z(`workspace:check_the_session_operation_results_first`);if(!ae)return z(`workspace:available_when_the_connection_recovers`);if(Ia(F))return z(`workspace:confirm_codex_version_compatibility_first`);if(!F?.capabilities.includes(t.archived?`thread/unarchive`:`thread/archive`))return z(`workspace:this_codex_version_does_not_support_this_operation`);if(t.projectId!==null&&!e.projects.find(e=>e.id===t.projectId)?.available)return z(`common:project_directory_unavailable`);if(!t.archived&&(Zd(t.status)||t.pendingActionCount>0))return z(`workspace:finish_the_task_and_resolve_pending_requests_before`);if(!t.archived&&t.managed&&t.status===`unknown`)return z(`workspace:session_state_needs_checking_archiving_is_temporarily_unavailable`)},projects:e.projects,projectsLoaded:e.projectsLoaded,projectId:e.projectId,onProject:t=>{e.setProjectId(t),m(!1)},projectThreads:e.projectThreads,selectedId:e.selectedId,isUnreadCompletion:d,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:te,onManageProject:e=>{m(!1),D({kind:`manage`,id:e.id})},canManageProjects:!e.authRequired,onReorderProjects:e.reorderProjects,onCreate:t=>{e.setProjectId(t),m(!1)},creating:t=>e.firstMessages.includes(t)||I(`create`,t)||le(t),canCreate:t=>ae&&!e.savingModelDefaults&&!Ia(F)&&(t===`@unassigned`||!!e.projects.find(e=>e.id===t)?.available),offline:Ce,open:p,onClose:()=>m(!1)}),(0,G.jsxs)(`main`,{className:`main-panel${r&&!o?` shell-visible`:``}`,children:[(0,G.jsxs)(`header`,{className:`topbar`,children:[(0,G.jsxs)(`div`,{className:`topbar-title`,children:[(0,G.jsx)(K,{className:`mobile-only`,variant:`ghost`,size:`icon`,"aria-label":z(`workspace:open_projects_and_sessions`),onClick:()=>m(!0),children:(0,G.jsx)(q,{name:`menu`})}),(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`breadcrumb`,children:[N?.name??z(`common:unassigned`),(0,G.jsx)(q,{name:`chevron`,size:12}),(0,G.jsx)(`span`,{children:e.selectedId?z(`common:sessions`):z(`workspace:new_session`)})]}),P?(0,G.jsx)(HC,{title:P.title||z(`workspace:new_session`),rename:Me,pending:!!(P&&e.operations.some(e=>e.kind===`rename`&&ka(e,P.id)))},`${P.projectId}:${P.id}`):(0,G.jsx)(`h1`,{children:e.selectedId?re.thread?.title??e.threads.find(t=>t.id===e.selectedId)?.title??z(`common:loading_session`):z(`workspace:start_your_next_task`)}),P&&P.projectId===null&&(0,G.jsxs)(`details`,{className:`workspace-directory`,children:[(0,G.jsx)(`summary`,{children:z(`common:working_directory`)}),(0,G.jsx)(`code`,{children:P.cwd})]})]})]}),(0,G.jsxs)(`div`,{className:`topbar-status`,children:[(0,G.jsxs)(K,{variant:`ghost`,size:`sm`,className:`shell-entry`,"aria-label":z(`workspace:open_shell_panel`),"aria-expanded":r&&!o,onClick:()=>{i(!0),s(!1)},children:[(0,G.jsx)(q,{name:`terminal`,size:16}),(0,G.jsx)(`span`,{children:`Shell`}),a.commands.some(FI)&&(0,G.jsx)(`span`,{className:`shell-entry-count`,"aria-label":z(`workspace:running_shell_commands`),children:a.commands.filter(FI).length})]}),P&&(0,G.jsx)(Qd,{status:P.status,offline:Ce}),(0,G.jsx)(zD,{connection:e.connection}),P?.forkedFromId&&(0,G.jsx)(Yd,{id:`thread-source-hint`,content:z(`workspace:return_to_original_session`),children:(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`workspace:return_to_original_session`),"aria-describedby":`thread-source-hint`,onClick:()=>{e.selectThread(P.forkedFromId)},children:(0,G.jsx)(qt,{size:16})})}),(0,G.jsx)(VD,{system:F,connection:e.connection,operations:e.operations,thread:P,selectedId:e.selectedId,threadReadFailed:e.threadReadFailure?.id===e.selectedId,busy:e.busy,open:b,onOpenChange:S,refreshing:C,onDiscardMissing:e.discardMissingOperation,onRefresh:()=>{De(),Ce&&e.retryConnection()},onReconcile:t=>{e.run(`reconcile`,t,`/api/operations/${BI(t)}/reconcile`,{confirmEnded:!0}).then(e=>{if(e?.status===`acknowledged`)return De()})}})]})]}),F?.demo&&(0,G.jsx)(`div`,{className:`demo-banner`,children:z(`workspace:simulation_mode_results_come_from_the_explicitly_enabled`)}),e.authRequired?(0,G.jsxs)(`div`,{className:`error-banner persistent-banner`,role:`alert`,children:[(0,G.jsx)(q,{name:`alert`}),z(`workspace:your_login_has_expired_disconnecting_this_page_does`),(0,G.jsx)(`a`,{className:`button button-secondary button-small`,href:`/`,children:z(`workspace:reopen_login`)})]}):Ce&&(0,G.jsxs)(`div`,{className:`connection-banner`,role:`status`,children:[(0,G.jsx)(`span`,{children:z(`workspace:live_connection_showing_the_last_known_state`,{v0:e.connection===`connecting`?z(`workspace:connecting`):z(`workspace:disconnected_reconnecting`)})}),(0,G.jsx)(K,{variant:`ghost`,size:`sm`,onClick:e.retryConnection,children:z(`workspace:reconnect_now`)})]}),F&&!F.ready&&(0,G.jsx)(`div`,{className:`error-banner persistent-banner`,role:`alert`,children:z(`workspace:codex_is_unavailable`,{v0:F.error??z(`workspace:check_the_codex_installation_authentication_and_service_on`)})}),(0,G.jsx)(UD,{system:F,onOpenChange:j,canConfirm:se,submitting:Te,uncertain:Ee,error:V(e.error),onRefresh:()=>{e.refreshSystem(),e.refreshOperations()},onConfirm:()=>{Oe()},onReconfirm:()=>{Oe()}}),e.error&&(0,G.jsxs)(`div`,{className:`error-banner dismissible`,role:`alert`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{children:V(e.error)}),Et(e.error)&&(0,G.jsxs)(`details`,{className:`error-technical`,children:[(0,G.jsx)(`summary`,{children:z(`common:technical_details`)}),(0,G.jsx)(`pre`,{children:Et(e.error)})]}),e.errorDetails!==void 0&&(0,G.jsxs)(`details`,{className:`raw-details`,children:[(0,G.jsx)(`summary`,{children:z(`workspace:error_details`)}),(0,G.jsx)(`pre`,{children:JSON.stringify(e.errorDetails,null,2)})]})]}),(0,G.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":z(`workspace:dismiss_error`),onClick:e.clearError,children:(0,G.jsx)(q,{name:`close`,size:15})})]}),e.operations.filter(e=>e.mutation).map(e=>(0,G.jsxs)(`div`,{className:`archive-notice mutation-notice`,role:`status`,children:[e.kind===`rename`?(0,G.jsx)(En,{size:16}):(0,G.jsx)(q,{name:`archive`,size:16}),(0,G.jsx)(`span`,{children:e.kind===`rename`?e.status===`unknown`?z(`workspace:rename_result_awaiting_confirmation`):z(`workspace:saving_session_name`):e.mutation.archived?e.status===`unknown`?z(`workspace:archive_result_awaiting_confirmation`):z(`workspace:archiving_session`):e.status===`unknown`?z(`workspace:unarchive_result_awaiting_confirmation`):z(`workspace:unarchiving`)}),e.status===`unknown`&&(0,G.jsx)(K,{variant:`secondary`,size:`sm`,disabled:C,onClick:()=>void De(),children:z(C?`common:checking`:`workspace:check_submission`)})]},e.clientOperationId)),P?.archived&&(0,G.jsxs)(`div`,{className:`archive-notice`,role:`status`,children:[(0,G.jsx)(q,{name:`archive`,size:18}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:z(`workspace:this_session_is_archived`)}),(0,G.jsx)(`p`,{children:z(`workspace:history_is_preserved_unarchive_to_continue_the_conversation`)})]}),(0,G.jsx)(K,{variant:`secondary`,size:`sm`,disabled:!oe||le(P.id)||I(`archive`)||!F?.capabilities.includes(`thread/unarchive`),onClick:()=>{e.archiveThread(P.id,!1)},children:I(`archive`)?z(`common:saving`):z(`common:unarchive`)})]}),(0,G.jsx)(BC,{thread:re.thread,history:{cached:re.cached,cacheExhausted:re.cacheExhausted,onLoadCachedOlder:re.loadCachedOlder,syncError:P?re.error:e.error,loading:re.loading,error:re.error,onLoadOlder:re.loadOlder,opening:!(!e.selectedId||P),openingError:P?void 0:e.error,onRetryOpen:()=>{e.clearError(),re.error&&re.loadOlder(),e.refreshThread()}},readingEnabled:!p&&!E&&!b&&!e.authRequired&&!A,onReadCompleted:f,offline:Ce,projectName:N?.name,needsProject:e.projectsLoaded&&e.projects.length===0,canAddProject:!e.authRequired,onAddProject:te,questionControls:{disabled:!oe||!P?.managed||!!P.archived||!!fe||I(`send`)||I(`steer`)||I(`resume`),onReply:async e=>Ne(dC(e),!!ue)}}),(0,G.jsxs)(`div`,{className:`bottom-region`,children:[de.length>0&&(0,G.jsx)(`div`,{className:`pending-actions`,"aria-label":z(`workspace:pending_requests`),children:de.map(t=>(0,G.jsx)(ID,{action:t,disabled:!oe||I(`resolve`,t.actionId)||le(t.actionId),onResolve:n=>{e.run(`resolve`,t.actionId,`/api/actions/${BI(t.actionId)}/resolve`,{resolution:n})}},t.actionId))}),fe&&(0,G.jsxs)(`div`,{className:`pending-notice`,role:`status`,children:[(0,G.jsx)(q,{name:`alert`,size:15}),(0,G.jsx)(`span`,{children:z(P?he?`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,G.jsx)(K,{variant:`ghost`,size:`sm`,disabled:C,"aria-expanded":b,"aria-controls":`diagnostics-panel`,onClick:()=>{S(!0),De()},children:z(C?`common:checking`:`workspace:check_submission`)}),P&&!he&&(0,G.jsx)(K,{variant:`secondary`,size:`sm`,disabled:!be,onClick:Se,children:z(`common:fork_into_a_new_session`)})]}),(0,G.jsx)(bD,{commands:je,thread:P,threadLoading:e.restoringSelection||!(!e.selectedId||P),draftKey:e.draftKey,sentDrafts:e.sentDrafts,projectName:N?.name,projectId:e.projectId===`@unassigned`?x:N?.available?N.id:void 0,runtimeKey:F?.ready&&e.connection===`connected`?`${F.codexEpoch}:${e.runtimeDefaultsRevision}`:void 0,settings:e.settings,models:F?.models??[],onSettings:e.setSettings,onSaveModelDefaults:e.saveModelDefaults,savingModelDefaults:e.savingModelDefaults,disabled:!oe||e.restoringSelection||!!fe||!!P?.archived,canInterrupt:ae&&!!(P?.managed&&ue),submitting:e.firstMessages.includes(e.projectId)||I(`send`)||I(`steer`),interrupting:I(`interrupt`),resuming:I(`resume`),canResume:!pe,resumeAttempted:ie.current===`${F?.codexEpoch}:${P?.id}`,canFork:be,forking:ye,onFork:Se,onResume:me,onInterrupt:()=>{P&&ue&&e.run(`interrupt`,P.id,`/api/threads/${BI(P.id)}/interrupt`,{expectedTurnId:ue.id})},onSend:Ne})]}),(0,G.jsx)(zI,{open:r,project:N,shell:a,canExecute:oe&&!!F?.capabilities.includes(`command/exec`),collapsed:o,onCollapse:()=>s(e=>!e),onClose:()=>i(!1)})]}),E&&(E.kind===`add`||ee)&&(0,G.jsx)($D,{project:ee,disabled:e.authRequired,onAdd:e.addProject,onImported:e.openImportedProject,onRename:e.renameProject,onRemove:e.removeProject,onClose:()=>D(e=>e===E?void 0:e)},E.kind===`add`?`add`:E.id),h&&(0,G.jsx)(eO,{notifications:e.notifications,onClose:()=>g(!1)}),t&&(0,G.jsx)(oa,{onClose:()=>n(!1)}),_&&(0,G.jsx)(hO,{onClose:()=>v(!1)}),l&&(0,G.jsx)(OO,{updates:c,onClose:()=>u(!1)})]})}(0,b.createRoot)(document.getElementById(`root`)).render((0,G.jsx)(y.StrictMode,{children:(0,G.jsx)(HI,{})}));export{l as i,o as n,u as r,ES as t};